b57e17beac683b9877790949f92d70665d14906c
[gnulib.git] / ChangeLog
1 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2
3         assert-h: new module, which supports C1X-style static_assert
4         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
5         * lib/verify.h: Revamp so that this can be copied into assert.h,
6         while retaining the ability to use it standalone as before.
7         Rename private identifiers so as not to encroach on the
8         standard C namespace, since this is now used by assert.h.
9         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10         the old verify_true.
11         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12         the old verify_true.  Use _GL_VERIFY_TYPE.
13         (_GL_VERIFY): New macro, with much of the contents of the old verify.
14         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16         defined when this file is copied into the replacement assert.h.
17         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18         and _Static_assert is not built in.
19         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20         defined, and use the new macros mentioned above.
21         * doc/posix-headers/assert.texi: Document this.
22
23 2011-05-05  Bruno Haible  <bruno@clisp.org>
24
25         fclose, fflush: Respect rules for use of AC_LIBOBJ.
26         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
27         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
28         gl_REPLACE_FCLOSE here.
29         * modules/fflush (Depends-on): Remove fclose.
30         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
31         combination with module 'fclose'.
32
33 2011-05-05  Bruno Haible  <bruno@clisp.org>
34
35         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
36         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
37         gl_FUNC_FFLUSH.
38         (gl_FUNC_FFLUSH): Use it.
39         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
40         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
41         gl_REPLACE_FSEEKO here.
42
43 2011-05-05  Bruno Haible  <bruno@clisp.org>
44
45         tzset: Relicense under LGPL.
46         * modules/tzset (License): Change to LGPL.
47         No agreement needed; it's a no-op.
48
49         strtoimax, strtoumax: Relicense under LGPL.
50         * modules/strtoimax (License): Change to LGPL.
51         * modules/strtoumax (License): Likewise.
52         With permission from Jim Meyering, Paul Eggert:
53         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
54         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
55
56         getgroups: Relicense under LGPL.
57         * modules/getgroups (License): Change to LGPL.
58         With permission from Jim Meyering, Paul Eggert, Eric Blake:
59         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
60         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
61         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
62
63         nanosleep: Relicense under LGPL.
64         * modules/nanosleep (License): Change to LGPL.
65         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
66         Haible:
67         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
68         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
69         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
70         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
71
72         futimens: Relicense under LGPL.
73         * modules/futimens (License): Change to LGPL.
74         With permission from Eric Blake:
75         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
76
77         fflush: Relicense under LGPL.
78         * modules/fflush (License): Change to LGPL.
79         With permission from Eric Blake, Bruno Haible, Jim Meyering:
80         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
81         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
82         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
83
84         tmpfile: Relicense under LGPL.
85         * modules/tmpfile (License): Change to LGPL.
86         With permission from Ben Pfaff:
87         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
88
89         isfinite: Relicense under LGPL.
90         * modules/isfinite (License): Change to LGPL.
91         With permission from Ben Pfaff, Bruno Haible:
92         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
93         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
94
95         acosl..tanl: Relicense under LGPL.
96         * modules/acosl (License): Change to LGPL.
97         * modules/asinl (License): Likewise.
98         * modules/atanl (License): Likewise.
99         * modules/cosl (License): Likewise.
100         * modules/expl (License): Likewise.
101         * modules/logl (License): Likewise.
102         * modules/sinl (License): Likewise.
103         * modules/sqrtl (License): Likewise.
104         * modules/tanl (License): Likewise.
105         Source code originally from glibc and Paolo Bonzini. Agreements:
106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
108
109 2011-05-05  Bruno Haible  <bruno@clisp.org>
110
111         signal: Define sighandler_t.
112         * lib/signal.in.h (sighandler_t): New type.
113         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
114         whether sighandler_t is defined.
115         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
116         * modules/signal (Depends-on): Add extensions.
117         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
118         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
119         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
120
121 2011-05-05  Eric Blake  <eblake@redhat.com>
122
123         maint: remove useless REPLACE_*_H macros
124         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
125         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
126         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
127         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
128         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
129         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
130         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
131         * m4/btowc.m4: Update callers.
132         * m4/dirfd.m4: Likewise.
133         * m4/duplocale.m4: Likewise.
134         * m4/fchdir.m4: Likewise.
135         * m4/fdopendir.m4: Likewise.
136         * m4/inet_ntop.m4: Likewise.
137         * m4/inet_pton.m4: Likewise.
138         * m4/ioctl.m4: Likewise.
139         * m4/mbrlen.m4: Likewise.
140         * m4/mbrtowc.m4: Likewise.
141         * m4/mbsinit.m4: Likewise.
142         * m4/mbsnrtowcs.m4: Likewise.
143         * m4/mbsrtowcs.m4: Likewise.
144         * m4/poll.m4: Likewise.
145         * m4/setlocale.m4: Likewise.
146         * m4/wcrtomb.m4: Likewise.
147         * m4/wcsnrtombs.m4: Likewise.
148         * m4/wcsrtombs.m4: Likewise.
149         * m4/wctob.m4: Likewise.
150         * m4/wcwidth.m4: Likewise.
151         * modules/posix_spawn: Likewise.
152         * modules/posix_spawn_file_actions_addclose: Likewise.
153         * modules/posix_spawn_file_actions_adddup2: Likewise.
154         * modules/posix_spawn_file_actions_addopen: Likewise.
155         * modules/posix_spawn_file_actions_destroy: Likewise.
156         * modules/posix_spawn_file_actions_init: Likewise.
157         * modules/posix_spawnattr_destroy: Likewise.
158         * modules/posix_spawnattr_getflags: Likewise.
159         * modules/posix_spawnattr_getpgroup: Likewise.
160         * modules/posix_spawnattr_getschedparam: Likewise.
161         * modules/posix_spawnattr_getschedpolicy: Likewise.
162         * modules/posix_spawnattr_getsigdefault: Likewise.
163         * modules/posix_spawnattr_getsigmask: Likewise.
164         * modules/posix_spawnattr_init: Likewise.
165         * modules/posix_spawnattr_setflags: Likewise.
166         * modules/posix_spawnattr_setpgroup: Likewise.
167         * modules/posix_spawnattr_setschedparam: Likewise.
168         * modules/posix_spawnattr_setschedpolicy: Likewise.
169         * modules/posix_spawnattr_setsigdefault: Likewise.
170         * modules/posix_spawnattr_setsigmask: Likewise.
171         * modules/posix_spawnp: Likewise.
172
173 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
174
175         Add option to do-release-commit-and-tag to specify branch.
176         * build-aux/do-release-commit-and-tag: Add --branch.
177
178 2011-05-03  Bruno Haible  <bruno@clisp.org>
179
180         Avoid unnecessary compilation units, through conditional dependencies.
181         * modules/accept (Depends-on): Add conditions to the dependencies.
182         * modules/acosl (Depends-on): Likewise.
183         * modules/argz (Depends-on): Likewise.
184         * modules/asinl (Depends-on): Likewise.
185         * modules/atanl (Depends-on): Likewise.
186         * modules/atoll (Depends-on): Likewise.
187         * modules/bind (Depends-on): Likewise.
188         * modules/btowc (Depends-on): Likewise.
189         * modules/canonicalize-lgpl (Depends-on): Likewise.
190         * modules/ceil (Depends-on): Likewise.
191         * modules/ceilf (Depends-on): Likewise.
192         * modules/ceill (Depends-on): Likewise.
193         * modules/chdir-long (Depends-on): Likewise.
194         * modules/chown (Depends-on): Likewise.
195         * modules/close (Depends-on): Likewise.
196         * modules/connect (Depends-on): Likewise.
197         * modules/cosl (Depends-on): Likewise.
198         * modules/dirfd (Depends-on): Likewise.
199         * modules/dprintf (Depends-on): Likewise.
200         * modules/dprintf-posix (Depends-on): Likewise.
201         * modules/error (Depends-on): Likewise.
202         * modules/euidaccess (Depends-on): Likewise.
203         * modules/expl (Depends-on): Likewise.
204         * modules/faccessat (Depends-on): Likewise.
205         * modules/fchdir (Depends-on): Likewise.
206         * modules/fclose (Depends-on): Likewise.
207         * modules/fcntl (Depends-on): Likewise.
208         * modules/fdopendir (Depends-on): Likewise.
209         * modules/fflush (Depends-on): Likewise.
210         * modules/floor (Depends-on): Likewise.
211         * modules/floorf (Depends-on): Likewise.
212         * modules/floorl (Depends-on): Likewise.
213         * modules/fnmatch (Depends-on): Likewise.
214         * modules/fopen (Depends-on): Likewise.
215         * modules/fprintf-posix (Depends-on): Likewise.
216         * modules/frexp (Depends-on): Likewise.
217         * modules/frexp-nolibm (Depends-on): Likewise.
218         * modules/frexpl (Depends-on): Likewise.
219         * modules/frexpl-nolibm (Depends-on): Likewise.
220         * modules/fseek (Depends-on): Likewise.
221         * modules/fsusage (Depends-on): Likewise.
222         * modules/ftell (Depends-on): Likewise.
223         * modules/ftello (Depends-on): Likewise.
224         * modules/futimens (Depends-on): Likewise.
225         * modules/getcwd (Depends-on): Likewise.
226         * modules/getcwd-lgpl (Depends-on): Likewise.
227         * modules/getdelim (Depends-on): Likewise.
228         * modules/getdomainname (Depends-on): Likewise.
229         * modules/getgroups (Depends-on): Likewise.
230         * modules/gethostname (Depends-on): Likewise.
231         * modules/getline (Depends-on): Likewise.
232         * modules/getlogin_r (Depends-on): Likewise.
233         * modules/getopt-posix (Depends-on): Likewise.
234         * modules/getpeername (Depends-on): Likewise.
235         * modules/getsockname (Depends-on): Likewise.
236         * modules/getsockopt (Depends-on): Likewise.
237         * modules/getsubopt (Depends-on): Likewise.
238         * modules/getusershell (Depends-on): Likewise.
239         * modules/glob (Depends-on): Likewise.
240         * modules/grantpt (Depends-on): Likewise.
241         * modules/iconv_open (Depends-on): Likewise.
242         * modules/iconv_open-utf (Depends-on): Likewise.
243         * modules/inet_ntop (Depends-on): Likewise.
244         * modules/inet_pton (Depends-on): Likewise.
245         * modules/ioctl (Depends-on): Likewise.
246         * modules/isapipe (Depends-on): Likewise.
247         * modules/isfinite (Depends-on): Likewise.
248         * modules/isinf (Depends-on): Likewise.
249         * modules/lchown (Depends-on): Likewise.
250         * modules/ldexpl (Depends-on): Likewise.
251         * modules/link (Depends-on): Likewise.
252         * modules/linkat (Depends-on): Likewise.
253         * modules/listen (Depends-on): Likewise.
254         * modules/logl (Depends-on): Likewise.
255         * modules/lstat (Depends-on): Likewise.
256         * modules/mbrlen (Depends-on): Likewise.
257         * modules/mbrtowc (Depends-on): Likewise.
258         * modules/mbsinit (Depends-on): Likewise.
259         * modules/mbsnrtowcs (Depends-on): Likewise.
260         * modules/mbsrtowcs (Depends-on): Likewise.
261         * modules/mbtowc (Depends-on): Likewise.
262         * modules/memcmp (Depends-on): Likewise.
263         * modules/mkdir (Depends-on): Likewise.
264         * modules/mkdtemp (Depends-on): Likewise.
265         * modules/mkfifo (Depends-on): Likewise.
266         * modules/mkfifoat (Depends-on): Likewise.
267         * modules/mknod (Depends-on): Likewise.
268         * modules/mkostemp (Depends-on): Likewise.
269         * modules/mkostemps (Depends-on): Likewise.
270         * modules/mkstemp (Depends-on): Likewise.
271         * modules/mkstemps (Depends-on): Likewise.
272         * modules/mktime (Depends-on): Likewise.
273         * modules/nanosleep (Depends-on): Likewise.
274         * modules/open (Depends-on): Likewise.
275         * modules/openat (Depends-on): Likewise.
276         * modules/perror (Depends-on): Likewise.
277         * modules/poll (Depends-on): Likewise.
278         * modules/popen (Depends-on): Likewise.
279         * modules/posix_spawn (Depends-on): Likewise.
280         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
281         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
282         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
283         * modules/posix_spawnp (Depends-on): Likewise.
284         * modules/pread (Depends-on): Likewise.
285         * modules/printf-posix (Depends-on): Likewise.
286         * modules/ptsname (Depends-on): Likewise.
287         * modules/putenv (Depends-on): Likewise.
288         * modules/pwrite (Depends-on): Likewise.
289         * modules/readline (Depends-on): Likewise.
290         * modules/readlink (Depends-on): Likewise.
291         * modules/readlinkat (Depends-on): Likewise.
292         * modules/recv (Depends-on): Likewise.
293         * modules/recvfrom (Depends-on): Likewise.
294         * modules/regex (Depends-on): Likewise.
295         * modules/remove (Depends-on): Likewise.
296         * modules/rename (Depends-on): Likewise.
297         * modules/renameat (Depends-on): Likewise.
298         * modules/rmdir (Depends-on): Likewise.
299         * modules/round (Depends-on): Likewise.
300         * modules/roundf (Depends-on): Likewise.
301         * modules/roundl (Depends-on): Likewise.
302         * modules/rpmatch (Depends-on): Likewise.
303         * modules/select (Depends-on): Likewise.
304         * modules/send (Depends-on): Likewise.
305         * modules/sendto (Depends-on): Likewise.
306         * modules/setenv (Depends-on): Likewise.
307         * modules/setlocale (Depends-on): Likewise.
308         * modules/setsockopt (Depends-on): Likewise.
309         * modules/shutdown (Depends-on): Likewise.
310         * modules/sigaction (Depends-on): Likewise.
311         * modules/signbit (Depends-on): Likewise.
312         * modules/sigprocmask (Depends-on): Likewise.
313         * modules/sinl (Depends-on): Likewise.
314         * modules/sleep (Depends-on): Likewise.
315         * modules/snprintf (Depends-on): Likewise.
316         * modules/snprintf-posix (Depends-on): Likewise.
317         * modules/socket (Depends-on): Likewise.
318         * modules/sprintf-posix (Depends-on): Likewise.
319         * modules/sqrtl (Depends-on): Likewise.
320         * modules/stat (Depends-on): Likewise.
321         * modules/strchrnul (Depends-on): Likewise.
322         * modules/strdup-posix (Depends-on): Likewise.
323         * modules/strerror (Depends-on): Likewise.
324         * modules/strerror_r-posix (Depends-on): Likewise.
325         * modules/strndup (Depends-on): Likewise.
326         * modules/strnlen (Depends-on): Likewise.
327         * modules/strptime (Depends-on): Likewise.
328         * modules/strsep (Depends-on): Likewise.
329         * modules/strsignal (Depends-on): Likewise.
330         * modules/strstr-simple (Depends-on): Likewise.
331         * modules/strtod (Depends-on): Likewise.
332         * modules/strtoimax (Depends-on): Likewise.
333         * modules/strtok_r (Depends-on): Likewise.
334         * modules/strtoumax (Depends-on): Likewise.
335         * modules/symlink (Depends-on): Likewise.
336         * modules/symlinkat (Depends-on): Likewise.
337         * modules/tanl (Depends-on): Likewise.
338         * modules/tcgetsid (Depends-on): Likewise.
339         * modules/tmpfile (Depends-on): Likewise.
340         * modules/trunc (Depends-on): Likewise.
341         * modules/truncf (Depends-on): Likewise.
342         * modules/truncl (Depends-on): Likewise.
343         * modules/uname (Depends-on): Likewise.
344         * modules/unlink (Depends-on): Likewise.
345         * modules/unlockpt (Depends-on): Likewise.
346         * modules/unsetenv (Depends-on): Likewise.
347         * modules/usleep (Depends-on): Likewise.
348         * modules/utimensat (Depends-on): Likewise.
349         * modules/vasprintf (Depends-on): Likewise.
350         * modules/vdprintf (Depends-on): Likewise.
351         * modules/vdprintf-posix (Depends-on): Likewise.
352         * modules/vfprintf-posix (Depends-on): Likewise.
353         * modules/vprintf-posix (Depends-on): Likewise.
354         * modules/vsnprintf (Depends-on): Likewise.
355         * modules/vsnprintf-posix (Depends-on): Likewise.
356         * modules/vsprintf-posix (Depends-on): Likewise.
357         * modules/wcrtomb (Depends-on): Likewise.
358         * modules/wcscasecmp (Depends-on): Likewise.
359         * modules/wcscspn (Depends-on): Likewise.
360         * modules/wcsdup (Depends-on): Likewise.
361         * modules/wcsncasecmp (Depends-on): Likewise.
362         * modules/wcsnrtombs (Depends-on): Likewise.
363         * modules/wcspbrk (Depends-on): Likewise.
364         * modules/wcsrtombs (Depends-on): Likewise.
365         * modules/wcsspn (Depends-on): Likewise.
366         * modules/wcsstr (Depends-on): Likewise.
367         * modules/wcstok (Depends-on): Likewise.
368         * modules/wcswidth (Depends-on): Likewise.
369         * modules/wctob (Depends-on): Likewise.
370         * modules/wctomb (Depends-on): Likewise.
371         * modules/wctype (Depends-on): Likewise.
372         * modules/wcwidth (Depends-on): Likewise.
373         * modules/write (Depends-on): Likewise.
374
375 2011-05-03  Bruno Haible  <bruno@clisp.org>
376
377         Support for conditional dependencies.
378         * doc/gnulib.texi (Module description): Document the syntax of
379         conditional dependencies.
380         * gnulib-tool: New option --conditional-dependencies.
381         (func_usage): Document it.
382         (cond_dependencies): New variable.
383         (func_get_automake_snippet_conditional,
384         func_get_automake_snippet_unconditional): New functions, extracted from
385         func_get_automake_snippet.
386         (func_get_automake_snippet): Use them.
387         (sed_first_32_chars): New variable.
388         (func_module_shellfunc_name): New function.
389         (func_module_shellvar_name): New function.
390         (func_module_conditional_name): New function.
391         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
392         func_cond_module_condition): New functions.
393         (func_modules_transitive_closure): Add support for conditional
394         dependencies.
395         (func_emit_lib_Makefile_am): For a conditional module, enclose the
396         conditional automake snippet in an automake conditional.
397         (func_emit_autoconf_snippets): Emit shell functions that contain the
398         code for conditional modules.
399         (func_import, func_create_testdir): Update specification.
400
401 2011-05-03  Eric Blake  <eblake@redhat.com>
402
403         test-getaddrinfo: report error information
404         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
405
406 2011-05-03  Jim Meyering  <meyering@redhat.com>
407
408         bootstrap: avoid build failure when $GZIP is set
409         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
410         program name.  If defined at all, it is supposed to list gzip options.
411         Reported by Alan Curry in http://debbugs.gnu.org/8609
412
413 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
414
415         readme-release: new module with release instructions
416         * modules/readme-release: New module.
417         * top/README-release: New file, from coreutils, grep, diffutils.
418         * MODULES.html.sh (Support for maintaining and releasing): Add it.
419
420 2011-05-02  Eric Blake  <eblake@redhat.com>
421
422         fflush: also replace fclose when fixing fflush
423         * modules/fflush (Depends-on): Add fclose.
424         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
425         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
426         memstreams with no backing fd.
427         * doc/posix-functions/fclose.texi (fclose): Document the use of
428         fflush module to fix the bug.
429         * tests/test-fclose.c (main): Relax test when fclose is used in
430         isolation.
431
432         fclose: add some tests
433         * modules/fclose-tests: New test module.
434         * tests/test-fclose.c: New file.
435         * doc/posix-functions/fclose.texi (fclose): Document the bug.
436
437         fclose: reduced dependencies
438         * modules/fclose (Depends-on): Switch from fflush/fseeko to
439         simpler lseek.
440         * lib/fclose.c (rpl_fclose): Likewise.
441         Reported by Simon Josefsson.
442
443         exit: drop remaining clients
444         * modules/argmatch (Depends-on): Replace exit with stdlib.
445         * modules/copy-file (Depends-on): Likewise.
446         * modules/execute (Depends-on): Likewise.
447         * modules/exitfail (Depends-on): Likewise.
448         * modules/obstack (Depends-on): Likewise.
449         * modules/pagealign_alloc (Depends-on): Likewise.
450         * modules/pipe-filter-gi (Depends-on): Likewise.
451         * modules/pipe-filter-ii (Depends-on): Likewise.
452         * modules/savewd (Depends-on): Likewise.
453         * modules/spawn-pipe (Depends-on): Likewise.
454         * modules/wait-process (Depends-on): Likewise.
455         * modules/xsetenv (Depends-on): Likewise.
456         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
457         * modules/git-merge-changelog (Depends-on): Likewise.
458         * modules/long-options (Depends-on): Likewise.
459         * modules/pt_chown (Depends-on): Likewise.
460         * modules/sysexits (Depends-on): Likewise.
461
462         freading: relax license from LGPLv3+ to LGPLv2+
463         * modules/freading (License): Relax LGPL version.
464
465 2011-05-02  Bruno Haible  <bruno@clisp.org>
466
467         fchdir: Remove unused dependencies.
468         * modules/fchdir (Depends-on): Remove include_next.
469
470 2011-05-02  Bruno Haible  <bruno@clisp.org>
471
472         gnulib-tool: Refactor.
473         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
474         from func_emit_autoconf_snippets.
475         (func_emit_autoconf_snippets): Use it.
476
477 2011-05-02  Simon Josefsson  <simon@josefsson.org>
478
479         * NEWS: Document removal of 'exit'.
480         * modules/exit: Remove file.
481
482 2011-05-01  Bruno Haible  <bruno@clisp.org>
483
484         Update DEPENDENCIES.
485         * DEPENDENCIES (gettext): Recommend the newest release.
486         Reported by Simon Josefsson.
487
488 2011-05-01  Bruno Haible  <bruno@clisp.org>
489
490         gnulib-tool: Reduce code duplication.
491         * gnulib-tool (func_emit_autoconf_snippets): New function.
492         (func_import, func_create_testdir): Use it.
493
494 2011-04-30  Eric Blake  <eblake@redhat.com>
495
496         fclose: don't fail on non-seekable input stream
497         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
498         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
499         since fflush is allowed to fail in that case.
500
501 2011-04-30  Bruno Haible  <bruno@clisp.org>
502
503         dup3: cleanup
504         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
505
506 2011-04-30  Bruno Haible  <bruno@clisp.org>
507
508         netdb: Make it work in C++ mode.
509         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
510         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
511         module.
512         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
513         gl_MODULE_INDICATOR_FOR_TESTS.
514         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
515         * modules/netdb-c++-tests: New file.
516         * tests/test-netdb-c++.cc: New file.
517
518 2011-04-30  Bruno Haible  <bruno@clisp.org>
519
520         New modules 'vfscanf', 'vscanf'.
521         * modules/vfscanf: New file.
522         * modules/vscanf: New file.
523         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
524         here.
525         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
526         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
527
528 2011-04-30  Bruno Haible  <bruno@clisp.org>
529
530         passfd: Add comments.
531         * lib/passfd.c: Add comments about platforms.
532
533 2011-04-30  Bruno Haible  <bruno@clisp.org>
534
535         sys_uio: Make <sys/uio.h> self-contained.
536         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
537         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
538
539 2011-04-30  Bruno Haible  <bruno@clisp.org>
540
541         sys_socket: Ensure 'struct iovec' definition.
542         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
543         <sys/socket.h>.
544         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
545
546 2011-04-30  Bruno Haible  <bruno@clisp.org>
547
548         sys_uio: Protect definition of 'struct iovec'.
549         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
550         it as a C struct.
551
552 2011-04-30  Bruno Haible  <bruno@clisp.org>
553
554         manywarnings: fix indentation
555         * m4/manywarnings.m4: Indent by 2 spaces consistently.
556
557 2011-04-30  Pádraig Brady <P@draigBrady.com>
558
559         manywarnings: add -Wno-missing-field-initializers if needed.
560         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
561         option if it's needed to allow initialization with { 0, }
562
563 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
564
565         announce-gen: cosmetic improvement
566         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
567
568 2011-04-29  Jim Meyering  <meyering@redhat.com>
569
570         vc-list-files: indent with spaces, not TABs
571         * build-aux/vc-list-files: Convert leading TABs to spaces,
572         to match the style of most other files in gnulib.
573
574         announce-gen: indent with spaces, not TABs
575         * build-aux/announce-gen: Convert all TABs to spaces, to match
576         the style of most other files in gnulib.
577
578 2011-04-29  Eric Blake  <eblake@redhat.com>
579
580         quotearg: avoid uninitialized variable use
581         * lib/quotearg.c (quoting_options_from_style): Initialize
582         remaining fields, and ensure that custom styles are only used via
583         quoting_options rather than quoting_style.
584
585 2011-04-29  Jim Meyering  <meyering@redhat.com>
586
587         maint.mk: remove unused VC-tag variable
588         * top/maint.mk (VC-tag): Remove unused variable.
589
590 2011-04-29  Bruno Haible  <bruno@clisp.org>
591
592         netdb: fix gai_strerror replacements
593         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
594         * modules/netdb: Substitute it.
595
596 2011-04-29  Jim Meyering  <meyering@redhat.com>
597
598         test-getcwd.c: avoid new set-but-not-used warning
599         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
600         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
601         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
602         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
603
604         test-hash.c: avoid a new shadowing warning
605         * tests/test-hash.c (main): Don't shadow "dup".
606
607 2011-04-28  Eric Blake  <eblake@redhat.com>
608
609         getaddrinfo: fix gai_strerror signature
610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
611         and work around mingw with UNICODE defined.
612         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
613         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
614         * modules/netdb (Makefile.am): Substitute it.
615         * lib/netdb.in.h (gai_strerror): Declare replacement.
616         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
617         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
618         the fix.
619
620         getsockopt: avoid compiler warning
621         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
622         Reported by Matthias Bolte.
623
624         tests: drop unused link dependency
625         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
626         * modules/dirent-safer-tests (Makefile.am): Likewise.
627         * modules/fdopendir-tests (Makefile.am): Likewise.
628         * modules/mkfifoat-tests (Makefile.am): Likewise.
629         * modules/openat-safer-tests (Makefile.am): Likewise.
630         * modules/openat-tests (Makefile.am): Likewise.
631         * modules/readlinkat-tests (Makefile.am): Likewise.
632         * modules/symlinkat-tests (Makefile.am): Likewise.
633         * modules/linkat-tests (Makefile.am): Likewise.
634         (Depends-on): Switch to filenamecat-lgpl.
635         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
636         LIBINTL.
637         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
638         * tests/test-linkat.c (main): Don't require xalloc.
639
640         hash, mgetgroups: drop xalloc dependency
641         * lib/hash.c (includes): Adjust includes.
642         * lib/mgetgroups.c (includes): Likewise.
643         (xgetgroups): Move...
644         * lib/xgetgroups.c: ...to new file.
645         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
646         * modules/xgetgroups: New file, split from...
647         * modules/mgetgroups: ...here.
648         (Depends-on): Add xalloc-oversized.
649         * modules/hash (Depends-on): Likewise.
650         * modules/hash-tests (Depends-on): Drop xalloc.
651         (test_hash_LDADD): Drop unused library.
652         * tests/test-hash.c (main): Break xalloc dependency.
653         (includes): Drop unused include.
654
655         xalloc-oversized: new module
656         * modules/xalloc-oversized: New module.
657         * modules/xalloc (Depends-on): Add it.
658         * lib/xalloc.h (xalloc_oversized): Move...
659         * lib/xalloc-oversized.h: ...into new file.
660
661         utimecmp: drop dependency on xmalloc
662         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
663         due to memory pressure.
664         * modules/utimecmp (Depends-on): Drop xalloc.
665
666 2011-04-27  Eric Blake  <eblake@redhat.com>
667
668         getcwd: fix mingw bugs
669         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
670         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
671         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
672
673 2011-04-27  Bruno Haible  <bruno@clisp.org>
674
675         mkstemps: Ensure declaration on MacOS X 10.5.
676         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
677         * doc/glibc-functions/mkstemps.texi: Document header file problem on
678         MacOS X.
679
680 2011-04-27  Bruno Haible  <bruno@clisp.org>
681
682         mkstemp: More documentation.
683         * doc/posix-functions/mkstemp.texi: Document header file problem on
684         MacOS X.
685
686 2011-04-27  Bruno Haible  <bruno@clisp.org>
687
688         mkstemp: Tweak configure message when cross-compiling.
689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
690         result as a guess.
691
692 2011-04-27  Bruno Haible  <bruno@clisp.org>
693
694         clean-temp: Clarify what it does.
695         * lib/clean-temp.h: Add more comments.
696         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
697         module.
698         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
699         * doc/glibc-functions/mkstemps.texi: Likewise.
700         * doc/glibc-functions/mkostemps.texi: Likewise.
701
702 2011-04-27  Eric Blake  <eblake@redhat.com>
703
704         fchdir: avoid extra chdir and fix test
705         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
706         getcwd-lgpl.
707         * lib/fchdir.c (get_name): Any absolute name will do; it does not
708         have to be canonical.
709         (canonicalize_file_name): Drop unused macro.
710         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
711
712         filenamecat-lgpl: fix licence
713         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
714         when it was first created.
715
716         linkat, renameat: add missing dependency
717         * modules/linkat (Depends-on): Require getcwd-lgpl.
718         * modules/renameat (Depends-on): Likewise.
719
720         tests: reduce dependencies
721         * tests/test-linkat.c (main): Use lighter-weight getcwd.
722         * tests/test-renameat.c (main): Likewise.
723         * modules/linkat-tests (Depends-on): Relax dependency.
724         * modules/renameat-tests (Depends-on): Likewise.
725         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
726         dependency explicit.
727
728         save-cwd: reduce default dependency
729         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
730         * lib/save-cwd.c: Update comments.
731         * NEWS: Document the semantic change.
732
733         getcwd: enhance tests
734         * tests/test-getcwd-lgpl.c: New file, taken from...
735         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
736         repeat long path stress tests from m4 probe.
737         * modules/getcwd-lgpl-tests: New module.
738         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
739         * m4/getcwd-abort-bug.m4: Update comment.
740         * m4/getcwd-path-max.m4: Likewise.
741
742         getcwd-lgpl: new module
743         * modules/getcwd-lgpl: New module.
744         * lib/getcwd-lgpl.c: New file.
745         * doc/posix-functions/getcwd.texi (getcwd): Document it.
746         * MODULES.html.sh (lacking POSIX:2008): Likewise.
747         * modules/getcwd (configure.ac): Set C witness.
748         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
749
750         getcwd: tweak comments
751         * m4/getcwd-abort-bug.m4: Fix comments.
752         * m4/getcwd-path-max.m4: Likewise.
753         * m4/getcwd.m4: Likewise.
754
755 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
756         and Eric Blake  <eblake@redhat.com>
757
758         mkstemp: replace if system version uses wrong permissions
759         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
760         read/write mode bits set in file created by mkstemp.
761         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
762
763 2011-04-27  Eric Blake  <eblake@redhat.com>
764
765         passfd: avoid compiler warning
766         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
767         Reported by Laine Stump.
768
769 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
770
771         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
772         required by the NetBSD (and perhaps other 4.4BSD derived) join.
773
774 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
775         and Eric Blake  <eblake@redhat.com>
776
777         mkstemp: mention clean-temp module
778         * lib/mkstemp.c: Add comment.
779         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
780
781 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
782
783         inttypes: also provide default values for 32-bit tests
784         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
785         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
786
787 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
788
789         strtoumax: remove dependency on strtoimax
790         This is like the strtoull change of yesterday.
791         * modules/strtoumax (Files): Add lib/strtoimax.c.
792         (Depends-on): Remove strtoimax and add verify.
793
794         inttypes-incomplete: new module
795         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
796         all but the PRI* and SCN* parts of gl_INTTYPES_H.
797         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
798         of gl_INTTYPES_H.
799         (gl_INTTYPES_H): Rewrite in terms of these new macros.
800         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
801         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
802         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
803         * modules/strtoumax, modules/xstrtol (Depends-on):
804         Depend on inttypes-incomplete, not inttypes.
805         * modules/inttypes-incomplete: New module, containing the contents
806         of the old modules/inttypes module, except that the Files: section
807         omits m4/inttypes-pri.m4, and the configure.ac section invokes
808         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
809         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
810         (Depends-on): Depend only on inttypes-incomplete.
811         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
812
813         inttypes: omit now-redundant strtoimax and strtoumax work
814         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
815         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
816
817         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
818         This supports apps that need pointers to strtoimax and strtoumax,
819         and ports to HP-UX 11.00 64.bit, which has macros that expand to
820         nonexistent functions.  See
821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
822         et seq.
823         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
824         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
825         a macro.
826         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
827
828 2011-04-25  Simon Josefsson  <simon@josefsson.org>
829
830         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
831
832 2011-04-25  Bruno Haible  <bruno@clisp.org>
833
834         strtol, strtoul: Mark modules as obsolete.
835         * modules/strtol (Status, Notice): New sections.
836         * modules/strtoul (Status, Notice): New sections.
837
838 2011-04-25  Bruno Haible  <bruno@clisp.org>
839
840         strtod: Remove check for strtod, unless supporting old platforms.
841         * modules/strtod-obsolete: New file.
842         * m4/strtod-obsolete.m4: New file.
843         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
844         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
845         * modules/strtod (Depends-on): Add strtod-obsolete.
846         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
847
848 2011-04-25  Bruno Haible  <bruno@clisp.org>
849
850         strcase: Make module obsolete.
851         * modules/strcase (Status, Notice): New sections.
852
853 2011-04-25  Bruno Haible  <bruno@clisp.org>
854
855         dup2: Remove check for dup2, unless supporting old obsolete platforms.
856         * modules/dup2-obsolete: New file.
857         * m4/dup2-obsolete.m4: New file.
858         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
859         gl_FUNC_DUP2_OBSOLETE is not also defined.
860         * modules/dup2 (Depends-on): Add dup2-obsolete.
861         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
862
863 2011-04-25  Bruno Haible  <bruno@clisp.org>
864
865         strnlen: Avoid memchr related link error on old obsolete platforms.
866         * modules/memchr-obsolete: New file.
867         * m4/memchr-obsolete.m4: New file.
868         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
869         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
870         * modules/memchr (Depends-on): Add memchr-obsolete.
871         * modules/strnlen (Depends-on): Likewise.
872         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
873
874 2011-04-25  Jim Meyering  <meyering@redhat.com>
875
876         maint.mk: makefile_at_at_check extend and clean up
877         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
878         in addition to */Makefile.am.
879         Exempt legitimate uses of @VAR@ notation, e.g.,
880         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
881         Remove obsolete coreutils-specific comment.
882         Prompted by discussion here:
883         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
884
885 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
886
887         strtoul: remove dependency on strtol
888         This is so that 'configure' need not check for strtol merely because
889         the application needs strtoul.
890         * modules/strtoul (Files): Add lib/strtol.c.
891         (Depends-on): Remove strtol.
892
893         strtoull: remove dependency on strtoul
894         This is like the strtoll change.
895         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
896         (Depends-on): Remove strtoul.
897
898         strtoll: remove dependency on strtol
899         This is so that 'configure' need not check for strtol merely because
900         the application needs strtoll.
901         * modules/strtoll (Files): Add lib/strtol.c.
902         (Depends-on): Remove strtol.
903
904 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
905
906         inttypes: Move some configure check to module 'imaxdiv'.
907         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
908         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
909         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
910
911 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
912
913         inttypes: Move some configure check to module 'imaxabs'.
914         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
915         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
916         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
917
918 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
919
920         inttypes: Remove configure tests that are not needed since 2009-12-31.
921         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
922         gl_cv_header_working_inttypes_h.
923
924 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
925
926         * modules/strnlen (Depends-on): Remove memchr.
927         The strnlen implementation doesn't need the memchr module's fixes; see
928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
929
930         strtol: remove dependency on wchar
931         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
932         * modules/strtol (Depends-on): Remove wchar.
933
934 2011-04-21  Eric Blake  <eblake@redhat.com>
935
936         passfd: fix test regression on Linux
937         * modules/passfd-tests (configure.ac): Correct socketpair check.
938
939         passfd: speed up configure and drop unused code
940         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
941         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
942         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
943         Instead of probing at configure for unix_scm_rights_bsd44_way,
944         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
945         check to a struct member probe.
946         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
947         (sendfd, recvfd): Update preprocessor checks.
948         * modules/passfd (Files): Reflect rename, and drop unused file.
949         (Depends-on): Drop unused dependency.
950
951         passfd: allow compilation on mingw
952         * modules/sys_socket (Depends-on): Add sys_uio.
953         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
954         iovec and a minimal struct msghdr.
955         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
956         * tests/test-sys_socket.c (main): Enhance test.
957         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
958         guaranteed to provide what we need.
959         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
960         * modules/passfd-tests (Depends-on): Add sys_wait.
961         * tests/test-passfd.c (main): Skip test on mingw, for now.
962         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
963         partial 'struct msghdr' implementation.
964
965         sys_uio: new module
966         * modules/sys_uio: New module.
967         * modules/sys_uio-tests: Likewise.
968         * lib/sys_uio.in.h: New file.
969         * m4/sys_uio_h.m4: Likewise.
970         * tests/test-sys_uio.c: Likewise.
971         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
972         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
973
974 2011-04-20  Jim Meyering  <meyering@redhat.com>
975
976         useless-if-before-free: avoid false-positive
977         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
978         disjunct so that it too requires a terminating ";".  Without that,
979         this script would identify as useless one statement from gcc that
980         was not:
981           if (aligned_ptr)
982             free (((void **) aligned_ptr) [-1]);
983
984 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
985
986         doc: update users.txt.
987         * users.txt: Add barcode.
988
989 2011-04-19  Bruno Haible  <bruno@clisp.org>
990
991         ioctl: Remove link dependency on native Windows.
992         * lib/fd-hook.h: Renamed from lib/close-hook.h.
993         (gl_close_fn, gl_ioctl_fn): New types.
994         (struct fd_hook): Renamed from struct close_hook. Change type of
995         private_close_fn field. Add private_ioctl_fn field.
996         (close_hook_fn): Add parameter for primary close method.
997         (execute_close_hooks, execute_all_close_hooks): Likewise.
998         (ioctl_hook_fn): New type.
999         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1000         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1001         argument.
1002         (unregister_fd_hook): Renamed from unregister_close_hook.
1003         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1004         Don't include <unistd.h>.
1005         (close): Remove undef.
1006         (anchor): Update.
1007         (execute_close_hooks): Add argument for primary close method.
1008         (execute_all_close_hooks): Likewise.
1009         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1010         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1011         argument. Allow each argument to be NULL.
1012         (unregister_fd_hook): Renamed from unregister_close_hook.
1013         * lib/close.c (rpl_close): Pass 'close' function pointer to
1014         execute_all_close_hooks.
1015         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1016         (primary_ioctl): New function.
1017         (ioctl): Don't call ioctlsocket here. Instead, call
1018         execute_all_ioctl_hooks.
1019         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1020         close method.
1021         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1022         (fd_sockets_hook): Renamed from close_sockets_hook.
1023         (gl_sockets_startup, gl_sockets_cleanup): Update.
1024         * modules/fd-hook: Renamed from modules/close-hook. Update.
1025         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1026         * modules/sockets (Depends-on): Likewise.
1027         * modules/ioctl (Depends-on): Add fd-hook.
1028         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1029         GNULIB_SOCKET.
1030
1031 2011-04-19  Bruno Haible  <bruno@clisp.org>
1032
1033         Move the support of O_NONBLOCK in open() to the 'open' module.
1034         * modules/nonblocking (Depends-on): Remove 'open'.
1035         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1036         gl_cv_have_open_O_NONBLOCK.
1037         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1038         O_NONBLOCK support.
1039         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1040
1041 2011-04-17  Bruno Haible  <bruno@clisp.org>
1042
1043         pipe2: Simplify code.
1044         * lib/pipe2.c (pipe2): Reduce code duplication.
1045
1046 2011-04-17  Bruno Haible  <bruno@clisp.org>
1047
1048         nonblocking: Add comment.
1049         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1050
1051 2011-04-17  Bruno Haible  <bruno@clisp.org>
1052
1053         nonblocking: Add tests for sockets.
1054         * tests/test-nonblocking-socket.sh: New file.
1055         * tests/test-nonblocking-socket-main.c: New file.
1056         * tests/test-nonblocking-socket-child.c: New file.
1057         * tests/test-nonblocking-socket.h: New file.
1058         * tests/socket-server.h: New file.
1059         * tests/socket-client.h: New file.
1060         * modules/nonblocking-socket-tests: New file.
1061         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1062
1063 2011-04-17  Bruno Haible  <bruno@clisp.org>
1064
1065         nonblocking: Add tests for pipes.
1066         * tests/test-nonblocking-pipe.sh: New file.
1067         * tests/test-nonblocking-pipe-main.c: New file.
1068         * tests/test-nonblocking-pipe-child.c: New file.
1069         * tests/test-nonblocking-pipe.h: New file.
1070         * tests/test-nonblocking-writer.h: New file.
1071         * tests/test-nonblocking-reader.h: New file.
1072         * tests/test-nonblocking-misc.h: New file.
1073         * modules/nonblocking-pipe-tests: New file.
1074         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1075
1076 2011-04-16  Bruno Haible  <bruno@clisp.org>
1077
1078         gettext: Clarify the needed programmer actions.
1079         * modules/gettext (Notice): New field.
1080         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1081
1082 2011-04-16  Bruno Haible  <bruno@clisp.org>
1083
1084         strchrnul: Tweak last commit.
1085         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1086         bug.
1087         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1088         as in _GL_FUNCDECL_SYS.
1089         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1090         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1091
1092 2011-04-15  Eric Blake  <eblake@redhat.com>
1093
1094         strchrnul: work around cygwin bug
1095         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1096         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1098         * modules/string (Makefile.am): Substitute it.
1099         * lib/string.in.h (strchrnul): Use it.
1100
1101 2011-04-15  Bruno Haible  <bruno@clisp.org>
1102
1103         Don't require lib/stdio-write.c when only module 'stdio' is used.
1104         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1105         invocation.
1106         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1107
1108 2011-04-14  Bruno Haible  <bruno@clisp.org>
1109
1110         Support non-blocking pipe I/O in read() on native Windows.
1111         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1112         (read): New declaration.
1113         * lib/read.c: New file.
1114         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1115         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1116         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1117         vscanf): New declarations.
1118         * lib/stdio-read.c: New file.
1119         * m4/read.m4: New file.
1120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1121         REPLACE_READ.
1122         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1123         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1124         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1125         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1126         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1127         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1128         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1129         * modules/read: New file.
1130         * modules/nonblocking (Files): Add lib/stdio-read.c.
1131         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1132         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1133         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1134         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1135         * modules/pread (Depends-on): Add read.
1136         * modules/safe-read (Depends-on): Likewise.
1137         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1138         gets, scanf, vfscanf, vscanf): Verify signatures.
1139         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1140         problem with non-blocking pipes.
1141         * doc/posix-functions/fgetc.texi: Likewise.
1142         * doc/posix-functions/fgets.texi: Likewise.
1143         * doc/posix-functions/fread.texi: Likewise.
1144         * doc/posix-functions/fscanf.texi: Likewise.
1145         * doc/posix-functions/getc.texi: Likewise.
1146         * doc/posix-functions/getchar.texi: Likewise.
1147         * doc/posix-functions/gets.texi: Likewise.
1148         * doc/posix-functions/scanf.texi: Likewise.
1149         * doc/posix-functions/vfscanf.texi: Likewise.
1150         * doc/posix-functions/vscanf.texi: Likewise.
1151
1152 2011-04-14  Bruno Haible  <bruno@clisp.org>
1153
1154         Support non-blocking pipe I/O in write() on native Windows.
1155         * lib/write.c (rpl_write): Split a write request that failed merely
1156         because the byte count was larger than the pipe buffer's size.
1157         * doc/posix-functions/write.texi: Mention the problem with large byte
1158         counts.
1159
1160 2011-04-14  Bruno Haible  <bruno@clisp.org>
1161
1162         wchar: Ensure that wchar_t gets defined on uClibc.
1163         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1164         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1165
1166 2011-04-13  Bruno Haible  <bruno@clisp.org>
1167
1168         safe-write, full-read: Avoid unnecessary compilation units.
1169         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1170         (Depends-on): Remove safe-read. Add ssize_t.
1171         * modules/full-read (Files): Add lib/full-write.c.
1172         (Depends-on): Add full-write.
1173
1174 2011-04-13  Bruno Haible  <bruno@clisp.org>
1175
1176         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1177         * modules/pwrite (Depends-on): Add 'write'.
1178
1179 2011-04-13  Bruno Haible  <bruno@clisp.org>
1180
1181         Support non-blocking pipe I/O in write() on native Windows.
1182         * lib/unistd.in.h (write): Enable replacement also if
1183         GNULIB_UNISTD_H_NONBLOCKING is 1.
1184         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1185         (rpl_write): When failing to write on a non-blocking pipe, change
1186         errno from ENOSPC to EAGAIN.
1187         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1188         putchar, puts, vfprintf, vprintf): Enable replacement also if
1189         GNULIB_STDIO_H_NONBLOCKING is 1.
1190         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1191         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1192         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1193         CALL_WITH_SIGPIPE_EMULATION.
1194         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1195         * m4/nonblocking.m4: New file.
1196         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1197         for non-blocking I/O support.
1198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1199         GNULIB_UNISTD_H_NONBLOCKING.
1200         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1201         required for non-blocking I/O support.
1202         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1203         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1204         lib/stdio-write.c, m4/asm-underscore.m4.
1205         (Depends-on): Add stdio, unistd.
1206         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1207         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1208         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1209         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1210         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1211         problem with non-blocking pipes.
1212         * doc/posix-functions/fputc.texi: Likewise.
1213         * doc/posix-functions/fputs.texi: Likewise.
1214         * doc/posix-functions/fwrite.texi: Likewise.
1215         * doc/posix-functions/printf.texi: Likewise.
1216         * doc/posix-functions/putc.texi: Likewise.
1217         * doc/posix-functions/putchar.texi: Likewise.
1218         * doc/posix-functions/puts.texi: Likewise.
1219         * doc/posix-functions/vfprintf.texi: Likewise.
1220         * doc/posix-functions/vprintf.texi: Likewise.
1221         * doc/posix-functions/write.texi: Likewise.
1222
1223 2011-04-10  Jim Meyering  <meyering@redhat.com>
1224
1225         maint.mk: prohibit doubled words
1226         Detect them also when they're separated by a newline.
1227         There are 3 ways to customize it:
1228           - disable the test on a per file basis, as usual with rules using
1229             $(VC_LIST_EXCEPT)
1230           - replace the default doubled-word-selecting regexp (affects all files)
1231           - ignore a particular file-vs-doubled-word match
1232         I nearly used that last one to ignore the "is is" match in
1233         coreutils' NEWS file, since the text was "ls -is is ..."
1234         To do that, I would have added this line to cfg.mk:
1235           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1236         but it would have ignored any "is is" match in NEWS.
1237         Low probability, but still...
1238         Instead, I changed the text, slightly:
1239           -  ls -is is now consistent with ls -lis in ignoring values returned
1240           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1241         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1242         (prohibit_doubled_word_): Define.
1243         (sc_prohibit_doubled_word): New rule.
1244         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1245
1246 2011-04-10  Jim Meyering  <meyering@redhat.com>
1247
1248         maint: fix doubled-word typo in comment
1249         * m4/gethostname.m4: s/is is/it is/
1250         * m4/getdomainname.m4: Likewise.
1251
1252 2011-04-10  Jim Meyering  <meyering@redhat.com>
1253
1254         maint: remove doubled word: s/it it/it/
1255         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1256
1257 2011-04-10  Jim Meyering  <meyering@redhat.com>
1258
1259         maint.mk: remove useless semicolon and backslash
1260         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1261         semicolon and backslash.
1262
1263 2011-04-10  Bruno Haible  <bruno@clisp.org>
1264
1265         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1266         * modules/stdint-tests (Depends-on): Add wchar.
1267
1268 2011-04-10  Jim Meyering  <meyering@redhat.com>
1269
1270         maint: remove doubled words in comments, e.g., s/a a/a/
1271         * lib/strptime.c (day_of_the_week): s/the the/the/
1272         * tests/test-chown.h (test_chown): s/a a/a/
1273
1274         test-chown.h: correct a cast
1275         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1276         when the destination is a stat.st_gid.
1277
1278 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1279
1280         getaddrinfo: Fix test for sa_len member.
1281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1282         include <sys/types.h> before <sys/socket.h>.
1283
1284 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         maint: change "can not" to "cannot"
1287         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1288         boundaries.
1289
1290 2011-04-09  Jim Meyering  <meyering@redhat.com>
1291
1292         maint: change "a a" to "a"
1293         * tests/test-lchown.h (test_lchown): s/a a/a/
1294
1295         maint.mk: prohibit \<the the\>
1296         * top/maint.mk (sc_prohibit_the_the): New rule.
1297
1298         maint: fix "the the" in comment
1299         * lib/count-one-bits.h: s/the the/the/
1300
1301         maint: change "can not" to "cannot"
1302         But do not change the occurrences in maintain.texi or in
1303         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1304         * doc/gnulib-tool.texi: s/can not/cannot/
1305         * doc/posix-functions/accept.texi (accept): Likewise.
1306         * doc/posix-functions/socket.texi (socket): Likewise.
1307         * lib/mbrtowc.c: Likewise.
1308
1309         maint.mk: prohibit use of "can not"
1310         * top/maint.mk (sc_prohibit_can_not): New rule.
1311         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1312
1313 2011-04-09  Bruno Haible  <bruno@clisp.org>
1314
1315         careadlinkat: Guard against misuse of careadlinkatcwd.
1316         * lib/careadlinkat.c: Include <stdlib.h>.
1317         (careadlinkatcwd): Check that the fd argument is as expected.
1318
1319 2011-04-09  Bruno Haible  <bruno@clisp.org>
1320
1321         careadlinkat: Use common coding style.
1322         * lib/careadlinkat.c: Move gnulib includes after system includes.
1323
1324 2011-04-09  Bruno Haible  <bruno@clisp.org>
1325
1326         careadlinkat: Clarify specification.
1327         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1328         (careadlinkatcwd): Add comment.
1329         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1330
1331 2011-04-09  Bruno Haible  <bruno@clisp.org>
1332
1333         areadlinkat: Avoid link error on many platforms.
1334         * modules/areadlinkat (Depends-on): Add areadlink.
1335
1336 2011-04-09  Bruno Haible  <bruno@clisp.org>
1337
1338         allocator, careadlinkat: Fix double-inclusion guard.
1339         * lib/allocator.h: Fix double-inclusion guard.
1340         * lib/careadlinkat.h: Likewise.
1341
1342 2011-04-09  Bruno Haible  <bruno@clisp.org>
1343
1344         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1345         * lib/relocwrapper.c: Update dependencies hierarchy.
1346         * build-aux/install-reloc: Update list of files to be compiled.
1347         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1348         lib/allocator.[hc].
1349
1350 2011-04-08  Eric Blake  <eblake@redhat.com>
1351
1352         strftime: silence gnulib-tool warning
1353         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1354
1355 2011-04-08  Bruno Haible  <bruno@clisp.org>
1356
1357         verify: Fix syntax error with GCC 4.6 in C++ mode.
1358         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1359         (HAVE_STATIC_ASSERT): New macro.
1360         (verify_true, verify): Use 'static_assert' if it is supported and
1361         '_Static_assert' is not supported.
1362
1363 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1364
1365         allocator: New module.
1366         * modules/allocator, lib/allocator.c: New files.
1367         * lib/allocator.h (stdlib_allocator): New decl.
1368         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1369         Remove.  Do not include <stdlib.h>.
1370         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1371         * modules/careadlinkat (Files): Remove lib/allocator.h.
1372         (Depends-on): Add allocator.
1373
1374         stdlib: let modules use system malloc, realloc
1375         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1376         if !_GL_USE_STDLIB_ALLOC.
1377         (malloc, realloc): Limit this change to a smaller scope.
1378
1379         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1380         (malloc, realloc): Don't #undef; no longer needed.
1381         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1382         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1383         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1384         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1385         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1386         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1387         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1388         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1389
1390         careadlinkat: rename members to avoid problem
1391         * lib/allocator.h (struct allocator): Rename members from
1392         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1393         and realloc are #define'd.  Reported by Eric Blake in
1394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1395         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1396
1397 2011-04-08  Eric Blake  <eblake@redhat.com>
1398
1399         nonblocking: reduce dependency
1400         * tests/test-nonblocking.c: Only test sockets when in use.
1401         * modules/nonblocking-tests (Depends-on): Drop socket.
1402         (Makefile.am): Link even if sockets are not present.
1403         * modules/pipe2-tests (Makefile.am): Likewise.
1404         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1405
1406         pipe2: fix O_NONBLOCK support on mingw
1407         * modules/pipe2 (Depends-on): Add nonblocking.
1408         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1409         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1410         * tests/test-nonblocking.c (main): Likewise.
1411         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1412
1413         fcntl-h: fix O_ACCMODE on cygwin
1414         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1415         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1416
1417         pipe-filter: drop O_NONBLOCK workarounds
1418         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1419         * modules/pipe-filter-ii (Depends-on): Likewise.
1420         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1421
1422         nonblocking: provide O_NONBLOCK for mingw
1423         * modules/nonblocking (Depends-on): Add open.
1424         (configure.ac): Set new witness macro.
1425         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1426         * modules/fcntl-h (Makefile.am): Substitute it.
1427         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1428         nonblocking module is in use.
1429         * lib/nonblocking.c: Adjust portability test.
1430         * lib/open.c (open): Don't let native open see gnulib flag.
1431         * tests/test-fcntl-h.c (main): Enhance test.
1432         * tests/test-open.h (test_open): Likewise.
1433         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1434
1435         careadlinkat: fix compilation error on mingw
1436         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1437         within struct allocator.
1438
1439 2011-04-06  Eric Blake  <eblake@redhat.com>
1440
1441         binary-io: relicense under LGPLv2+
1442         * modules/binary-io (License): Relax to LGPLv2+.
1443         Requested for libvirt, and required by pipe2.
1444
1445 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1446
1447         verify: use _Static_assert if available
1448         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1449         (verify_true, verify): Use it if available.  This generates better
1450         diagnostics with GCC 4.6.0 and later.
1451
1452 2011-04-05  Bruno Haible  <bruno@clisp.org>
1453
1454         Remove leftover generated .h files after config.status changed.
1455
1456         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1457         GL_GENERATE_ALLOCA_H.
1458         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1459         GL_GENERATE_ALLOCA_H evaluates to false.
1460
1461         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1462         GL_GENERATE_ARGZ_H.
1463         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1464         evaluates to false.
1465
1466         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1467         GL_GENERATE_BYTESWAP_H.
1468         * modules/byteswap (Makefile.am): Remove byteswap.h if
1469         GL_GENERATE_BYTESWAP_H evaluates to false.
1470
1471         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1472         GL_GENERATE_ERRNO_H.
1473         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1474         evaluates to false.
1475
1476         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1477         GL_GENERATE_FLOAT_H.
1478         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1479         evaluates to false.
1480
1481         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1482         GL_GENERATE_FNMATCH_H.
1483         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1484         GL_GENERATE_FNMATCH_H evaluates to false.
1485
1486         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1487         GL_GENERATE_GLOB_H.
1488         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1489         evaluates to false.
1490
1491         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1492         automake conditional GL_GENERATE_ICONV_H.
1493         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1494         evaluates to false.
1495
1496         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1497         GL_GENERATE_NETINET_IN_H.
1498         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1499         GL_GENERATE_NETINET_IN_H evaluates to false.
1500
1501         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1502         conditional GL_GENERATE_PTHREAD_H.
1503         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1504         * modules/pthread (Makefile.am): Remove pthread.h if
1505         GL_GENERATE_PTHREAD_H evaluates to false.
1506
1507         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1508         GL_GENERATE_SCHED_H.
1509         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1510         evaluates to false.
1511
1512         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1513         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1514         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1515         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1516
1517         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1518         GL_GENERATE_STDARG_H.
1519         * modules/stdarg (Makefile.am): Remove stdarg.h if
1520         GL_GENERATE_STDARG_H evaluates to false.
1521
1522         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1523         GL_GENERATE_STDBOOL_H.
1524         * modules/stdbool (Makefile.am): Remove stdbool.h if
1525         GL_GENERATE_STDBOOL_H evaluates to false.
1526
1527         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1528         conditional GL_GENERATE_STDDEF_H.
1529         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1530         * modules/stddef (Makefile.am): Remove stddef.h if
1531         GL_GENERATE_STDDEF_H evaluates to false.
1532
1533         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1534         GL_GENERATE_STDINT_H.
1535         * modules/stdint (Makefile.am): Remove stdint.h if
1536         GL_GENERATE_STDINT_H evaluates to false.
1537
1538         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1539         GL_GENERATE_SYSEXITS_H.
1540         * modules/sysexits (Makefile.am): Remove sysexits.h if
1541         GL_GENERATE_SYSEXITS_H evaluates to false.
1542
1543         Reported by Karl Berry and Ralf Wildenhues.
1544
1545 2011-04-05  Bruno Haible  <bruno@clisp.org>
1546
1547         Ensure to rebuild generated .h files when config.status has changed.
1548         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1549         config.status.
1550         * modules/ctype (Makefile.am): Likewise.
1551         * modules/dirent (Makefile.am): Likewise.
1552         * modules/errno (Makefile.am): Likewise.
1553         * modules/fcntl-h (Makefile.am): Likewise.
1554         * modules/float (Makefile.am): Likewise.
1555         * modules/getopt-posix (Makefile.am): Likewise.
1556         * modules/glob (Makefile.am): Likewise.
1557         * modules/iconv-h (Makefile.am): Likewise.
1558         * modules/inttypes (Makefile.am): Likewise.
1559         * modules/langinfo (Makefile.am): Likewise.
1560         * modules/locale (Makefile.am): Likewise.
1561         * modules/math (Makefile.am): Likewise.
1562         * modules/netdb (Makefile.am): Likewise.
1563         * modules/netinet_in (Makefile.am): Likewise.
1564         * modules/poll-h (Makefile.am): Likewise.
1565         * modules/pthread (Makefile.am): Likewise.
1566         * modules/pty (Makefile.am): Likewise.
1567         * modules/sched (Makefile.am): Likewise.
1568         * modules/search (Makefile.am): Likewise.
1569         * modules/selinux-h (Makefile.am): Likewise.
1570         * modules/signal (Makefile.am): Likewise.
1571         * modules/spawn (Makefile.am): Likewise.
1572         * modules/stdarg (Makefile.am): Likewise.
1573         * modules/stdbool (Makefile.am): Likewise.
1574         * modules/stddef (Makefile.am): Likewise.
1575         * modules/stdint (Makefile.am): Likewise.
1576         * modules/stdio (Makefile.am): Likewise.
1577         * modules/stdlib (Makefile.am): Likewise.
1578         * modules/string (Makefile.am): Likewise.
1579         * modules/strings (Makefile.am): Likewise.
1580         * modules/sys_file (Makefile.am): Likewise.
1581         * modules/sys_ioctl (Makefile.am): Likewise.
1582         * modules/sys_select (Makefile.am): Likewise.
1583         * modules/sys_socket (Makefile.am): Likewise.
1584         * modules/sys_stat (Makefile.am): Likewise.
1585         * modules/sys_time (Makefile.am): Likewise.
1586         * modules/sys_times (Makefile.am): Likewise.
1587         * modules/sys_utsname (Makefile.am): Likewise.
1588         * modules/sys_wait (Makefile.am): Likewise.
1589         * modules/sysexits (Makefile.am): Likewise.
1590         * modules/termios (Makefile.am): Likewise.
1591         * modules/time (Makefile.am): Likewise.
1592         * modules/unistd (Makefile.am): Likewise.
1593         * modules/wchar (Makefile.am): Likewise.
1594         * modules/wctype-h (Makefile.am): Likewise.
1595         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1596
1597 2011-04-05  Bruno Haible  <bruno@clisp.org>
1598
1599         pipe2: Relicense under LGPLv2+.
1600         * modules/pipe2 (License): Change to LGPLv2+.
1601         Requested by Eric Blake, for libvirt.
1602
1603 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1604
1605         bootstrap: compute gnulib_extra_files after updating build_aux
1606         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1607         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1608
1609 2011-04-05  Eric Blake  <eblake@redhat.com>
1610
1611         bootstrap: preserve git whitelist item sorting
1612         * build-aux/bootstrap (sort_patterns): New function.
1613         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1614
1615 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1616
1617         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1618         sc_space_tab check.
1619
1620 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1621
1622         areadlink, areadlinkat: rewrite in terms of careadlinkat
1623         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1624         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1625         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1626         (malloc, realloc): Remove #undefs.
1627         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1628         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1629         readlink, ssize_t, stdint, unistd.
1630         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1631         areadlink, stdint.
1632
1633         careadlinkat: new module
1634         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1635         * modules/careadlinkat: New files, written by me with
1636         a review and feedback from Ben Pfaff in
1637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1638
1639 2011-04-01  Bruno Haible  <bruno@clisp.org>
1640
1641         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1642         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1643         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1644         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1645         Reported by Bruce Korb <bruce.korb@gmail.com>.
1646
1647 2011-04-01  Bruno Haible  <bruno@clisp.org>
1648
1649         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1650         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1651         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1652         * modules/wcpcpy (Depends-on): Add extensions.
1653         * modules/wcpncpy (Depends-on): Likewise.
1654         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1655         systems.
1656         * doc/posix-functions/wcpncpy.texi: Likewise.
1657         * doc/posix-functions/wcwidth.texi: Likewise.
1658
1659 2011-03-31  Eric Blake  <eblake@redhat.com>
1660
1661         nonblocking: fix mingw test failures
1662         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1663         non-blocking flag on regular file.
1664         (get_nonblocking_flag): Set errno on invalid fd.
1665         * tests/test-nonblocking.c (main): Avoid test failure on
1666         directories if fchdir is not active.
1667         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1668
1669 2011-03-31  Bruno Haible  <bruno@clisp.org>
1670
1671         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1672         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1673         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1674         Reported by Simon Josefsson <simon@josefsson.org>.
1675
1676 2011-03-31  Bruno Haible  <bruno@clisp.org>
1677         and Eric Blake  <eblake@redhat.com>
1678
1679         nonblocking: new module
1680         * modules/nonblocking: New module.
1681         * modules/nonblocking-tests: Likewise.
1682         * lib/nonblocking.h: New file.
1683         * lib/nonblocking.c: Likewise.
1684         * tests/test-nonblocking.c: New test.
1685         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1686
1687 2011-03-30  Bruno Haible  <bruno@clisp.org>
1688
1689         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1690         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1691         instead of 'printf' format for GCC >= 4.4.
1692         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1693         (fprintf, printf, vfprintf, vprintf): Declare with
1694         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1695         the system's vfprintf() function.
1696         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1697
1698 2011-03-30  Eric Blake  <eblake@redhat.com>
1699
1700         passfd: fix scoping bug
1701         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1702         before sendmsg/recvmsg.
1703
1704         passfd: standardize coding conventions
1705         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1706         can be learned at compile time.
1707         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1708         ifdefs.
1709         (sendfd, recvfd): Follow gnulib code conventions.
1710
1711         passfd: fix incorrect sendmsg arguments
1712         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1713         incorrect msg_controllen value.
1714         * modules/passfd-tests (Depends-on): Check for alarm.
1715         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1716         Reported by Bastien ROUCARIES.
1717
1718 2011-03-30  Bruno Haible  <bruno@clisp.org>
1719
1720         c-strcasestr: Relicense under LGPLv2+.
1721         * modules/c-strcasestr (License): Change to LGPLv2+.
1722         Requested by Eric Blake, for libvirt.
1723
1724 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1725
1726         * users.txt: Add libidn2.  Fix libtasn1 link.
1727
1728 2011-03-30  Jim Meyering  <meyering@redhat.com>
1729
1730         tests: readlink* ("",... fails with EINVAL on newer kernels
1731         readlink and readlinkat have typically failed with ENOENT for
1732         the invalid, empty file name,  "".  However, with the advent
1733         of linux-2.6.39, they fail with EINVAL.
1734         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1735         when operating on the empty file name.
1736         * tests/test-readlink.h (test_readlink): Likewise.
1737
1738 2011-03-29  Bruno Haible  <bruno@clisp.org>
1739
1740         Relicense some modules under LGPLv2+, for libidn2.
1741         * modules/array-mergesort (License): Change to LGPLv2+.
1742         * modules/c-strcaseeq (License): Likewise.
1743         * modules/striconveh (License): Likewise.
1744         * modules/striconveha (License): Likewise.
1745         * modules/uniconv/base (License): Likewise.
1746         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1747         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1748         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1749         * modules/unictype/base (License): Likewise.
1750         * modules/unictype/bidiclass-of (License): Likewise.
1751         * modules/unictype/category-M (License): Likewise.
1752         * modules/unictype/category-none (License): Likewise.
1753         * modules/unictype/category-of (License): Likewise.
1754         * modules/unictype/category-test (License): Likewise.
1755         * modules/unictype/category-test-withtable (License): Likewise.
1756         * modules/unictype/combining-class (License): Likewise.
1757         * modules/unictype/joiningtype-of (License): Likewise.
1758         * modules/unictype/scripts (License): Likewise.
1759         * modules/uninorm/base (License): Likewise.
1760         * modules/uninorm/canonical-decomposition (License): Likewise.
1761         * modules/uninorm/composition (License): Likewise.
1762         * modules/uninorm/decompose-internal (License): Likewise.
1763         * modules/uninorm/decomposition-table (License): Likewise.
1764         * modules/uninorm/nfc (License): Likewise.
1765         * modules/uninorm/nfd (License): Likewise.
1766         * modules/uninorm/u32-normalize (License): Likewise.
1767         * modules/unistr/base (License): Likewise.
1768         * modules/unistr/u32-cpy (License): Likewise.
1769         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1770         * modules/unistr/u32-to-u8 (License): Likewise.
1771         * modules/unistr/u32-uctomb (License): Likewise.
1772         * modules/unistr/u8-check (License): Likewise.
1773         * modules/unistr/u8-mblen (License): Likewise.
1774         * modules/unistr/u8-mbtouc (License): Likewise.
1775         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1776         * modules/unistr/u8-mbtoucr (License): Likewise.
1777         * modules/unistr/u8-prev (License): Likewise.
1778         * modules/unistr/u8-strlen (License): Likewise.
1779         * modules/unistr/u8-to-u32 (License): Likewise.
1780         * modules/unistr/u8-uctomb (License): Likewise.
1781         * modules/unitypes (License): Likewise.
1782         Requested by Simon Josefsson.
1783
1784 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1785
1786         lib-symbol-visibility: Add a notice.
1787         * modules/lib-symbol-visibility (Notice): New field.
1788
1789 2011-03-29  Bruno Haible  <bruno@clisp.org>
1790
1791         getaddrinfo: Doc fix.
1792         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1793         section "fixed in Gnulib".
1794
1795 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1796
1797         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1798         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1799
1800 2011-03-26  Bruno Haible  <bruno@clisp.org>
1801
1802         unictype/property-byname: Reduce the number of load-time relocations.
1803         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1804         (UC_PROPERTY_INDEX_*): New enumeration values.
1805         (uc_property_byname): Convert an index from the lookup table to an
1806         uc_property_t.
1807         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1808         values.
1809
1810 2011-03-26  Bruno Haible  <bruno@clisp.org>
1811
1812         unictype/property-byname: Allow omitted word separators and aliases.
1813         * lib/unictype/pr_byname.gperf: Add property names without word
1814         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1815         for 'space'.
1816
1817 2011-03-26  Bruno Haible  <bruno@clisp.org>
1818
1819         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1820         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1821         also hyphens to space.
1822         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1823         without spaces.
1824         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1825
1826 2011-03-26  Bruno Haible  <bruno@clisp.org>
1827
1828         unictype/joiningtype-byname: Recognize long names as well.
1829         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1830         a long name.
1831         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1832         unictype/joiningtype_byname.h.
1833         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1834         * lib/unictype/joiningtype_byname.gperf: New file.
1835         * modules/unictype/joiningtype-byname (Files): Add
1836         lib/unictype/joiningtype_byname.gperf.
1837         (Depends-on): Add gperf.
1838         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1839         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1840         long names.
1841
1842         Tests for module 'unictype/joiningtype-longname'.
1843         * modules/unictype/joiningtype-longname-tests: New file.
1844         * tests/unictype/test-joiningtype_longname.c: New file.
1845
1846         New module 'unictype/joiningtype-longname'.
1847         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1848         * lib/unictype/joiningtype_longname.c: New file.
1849         * modules/unictype/joiningtype-longname: New file.
1850         * modules/unictype/joiningtype-all (Depends-on): Add
1851         unictype/joiningtype-longname.
1852
1853 2011-03-26  Bruno Haible  <bruno@clisp.org>
1854
1855         unictype/bidiclass-byname: Recognize long names as well.
1856         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1857         name.
1858         * lib/unictype/bidi_byname.c: Include <string.h>,
1859         unictype/bidi_byname.h.
1860         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1861         * lib/unictype/bidi_byname.gperf: New file.
1862         * modules/unictype/bidiclass-byname (Files): Add
1863         lib/unictype/bidi_byname.gperf.
1864         (Depends-on): Add gperf.
1865         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1866         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1867         long names.
1868
1869         Tests for module 'unictype/bidiclass-longname'.
1870         * modules/unictype/bidiclass-longname-tests: New file.
1871         * tests/unictype/test-bidi_longname.c: New file.
1872
1873         New module 'unictype/bidiclass-longname'.
1874         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1875         * lib/unictype/bidi_longname.c: New file.
1876         * modules/unictype/bidiclass-longname: New file.
1877         * modules/unictype/bidiclass-all (Depends-on): Add
1878         unictype/bidiclass-longname.
1879
1880 2011-03-26  Bruno Haible  <bruno@clisp.org>
1881
1882         unictype/bidi*: Rename modules.
1883         * modules/unictype/bidiclass-all: Renamed from
1884         modules/unictype/bidicategory-all.
1885         * modules/unictype/bidiclass-name: Renamed from
1886         modules/unictype/bidiclass-name.
1887         (Description): Update.
1888         * modules/unictype/bidiclass-name-tests: Renamed from
1889         modules/unictype/bidicategory-name-tests.
1890         * modules/unictype/bidiclass-byname: Renamed from
1891         modules/unictype/bidicategory-byname.
1892         (Description): Update.
1893         * modules/unictype/bidiclass-byname-tests: Renamed from
1894         modules/unictype/bidicategory-byname-tests.
1895         * modules/unictype/bidiclass-of: Renamed from
1896         modules/unictype/bidicategory-of.
1897         (Description): Update.
1898         * modules/unictype/bidiclass-of-tests: Renamed from
1899         modules/unictype/bidicategory-of-tests.
1900         * modules/unictype/bidiclass-test: Renamed from
1901         modules/unictype/bidicategory-test.
1902         (Description): Update.
1903         * modules/unictype/bidiclass-test-tests: Renamed from
1904         modules/unictype/bidicategory-test-tests.
1905         * modules/unictype/bidicategory-all: New file, a simple redirection.
1906         * modules/unictype/bidicategory-name: Likewise.
1907         * modules/unictype/bidicategory-byname: Likewise.
1908         * modules/unictype/bidicategory-of: Likewise.
1909         * modules/unictype/bidicategory-test: Likewise.
1910         * modules/unictype/property-bidi-* (Dependencies): Update.
1911         * lib/unictype/bidi_*.c: Update comment.
1912
1913 2011-03-26  Bruno Haible  <bruno@clisp.org>
1914
1915         unictype/bidi*: Rename functions, part 2.
1916         * modules/unictype/bidicategory-name (configure.ac): Update required
1917         libunistring version.
1918         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1919
1920 2011-03-25  Bruno Haible  <bruno@clisp.org>
1921
1922         New module 'unictype/combining-class-all'.
1923         * modules/unictype/combining-class-all: New file.
1924
1925         Tests for module 'unictype/combining-class-byname'.
1926         * modules/unictype/combining-class-byname-tests: New file.
1927         * tests/unictype/test-combiningclass_byname.c: New file.
1928
1929         New module 'unictype/combining-class-byname'.
1930         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1931         * lib/unictype/combiningclass_byname.c: New file.
1932         * lib/unictype/combiningclass_byname.gperf: New file.
1933         * modules/unictype/combining-class-byname: New file.
1934
1935         Tests for module 'unictype/combining-class-longname'.
1936         * modules/unictype/combining-class-longname-tests: New file.
1937         * tests/unictype/test-combiningclass_longname.c: New file.
1938
1939         New module 'unictype/combining-class-longname'.
1940         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1941         * lib/unictype/combiningclass_longname.c: New file.
1942         * modules/unictype/combining-class-longname: New file.
1943
1944         Tests for module 'unictype/combining-class-name'.
1945         * modules/unictype/combining-class-name-tests: New file.
1946         * tests/unictype/test-combiningclass_name.c: New file.
1947
1948         New module 'unictype/combining-class-name'.
1949         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1950         * lib/unictype/combiningclass_name.c: New file.
1951         * modules/unictype/combining-class-name: New file.
1952
1953 2011-03-25  Bruno Haible  <bruno@clisp.org>
1954
1955         unictype/combining-class: Rename source files.
1956         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1957         of unictype/combining.h.
1958         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1959         Update.
1960         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1961         * modules/unictype/combining-class (Description): Fix.
1962         (Files, Makefile.am): Update.
1963         * tests/unictype/test-combiningclass.c: Renamed from
1964         tests/unictype/test-combining.c.
1965         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1966
1967 2011-03-25  Bruno Haible  <bruno@clisp.org>
1968
1969         unictype: Update list of canonical combining classes.
1970         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1971
1972 2011-03-25  Bruno Haible  <bruno@clisp.org>
1973
1974         unictype/category-byname: Recognize long names as well.
1975         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1976         a long name.
1977         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1978         unictype/categ_byname.h.
1979         (UC_CATEGORY_INDEX_*): New enumeration values.
1980         (uc_general_category_byname): Use uc_general_category_lookup and
1981         convert from index to value.
1982         * lib/unictype/categ_byname.gperf: New file.
1983         * modules/unictype/category-byname (Files): Add
1984         lib/unictype/categ_byname.gperf.
1985         (Depends-on): Add gperf.
1986         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1987         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1988         long names.
1989
1990         Tests for module 'unictype/category-longname'.
1991         * modules/unictype/category-longname-tests: New file.
1992         * tests/unictype/test-categ_longname.c: New file.
1993
1994         New module 'unictype/category-longname'.
1995         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1996         * lib/unictype/categ_longname.c: New file.
1997         * modules/unictype/category-longname: New file.
1998         * modules/unictype/category-all (Depends-on): Add it.
1999
2000 2011-03-25  Bruno Haible  <bruno@clisp.org>
2001
2002         Tests for module 'unictype/category-LC'.
2003         * modules/unictype/category-LC-tests: New file.
2004         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2005
2006         New module 'unictype/category-LC'.
2007         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2008         (UC_CATEGORY_LC): New declaration.
2009         (UC_CASED_LETTER): New macro.
2010         * lib/gen-uni-tables.c (is_category_LC): New function.
2011         (output_categories): Also handle category LC.
2012         (UC_CATEGORY_MASK_LC): New enumeration value.
2013         (general_category_byname): Also handle category LC.
2014         * lib/unictype/categ_LC.c: New file.
2015         * lib/unictype/categ_LC.h: New file, automatically generated.
2016         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2017         category LC.
2018         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2019         * modules/unictype/category-LC: New file.
2020         * modules/unictype/category-byname (Depends-on): Add
2021         unictype/category-LC.
2022         * modules/unictype/category-all (Depends-on): Likewise.
2023
2024 2011-03-25  Eric Blake  <eblake@redhat.com>
2025
2026         xmalloc: revert yesterday's regression
2027         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2028         realloc's underlying behavior (allowing allocation of zero-size
2029         objects, especially if malloc-gnu is also in use).
2030
2031 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2032
2033         maint.mk: add missing version to VC-tag
2034         * top/maint.mk: git tag was missing actual tag name; add it.
2035
2036         valgrind: do leak checking, and exit with code 1 on error (not 0)
2037         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2038         to VALGRIND.
2039
2040 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2041
2042         posix-modules: say what it does.
2043         * posix-modules: Add a line to the --help output saying what it does.
2044
2045 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2046
2047         xmalloc: Do not leak if underlying realloc is C99 compatible.
2048         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2049         This avoids a leak on C99-based systems.  See
2050         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2051
2052 2011-03-24  Eric Blake  <eblake@redhat.com>
2053
2054         realloc: document portability problem
2055         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2056         passing 0 size to realloc.
2057
2058 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2059
2060         doc: update users.txt
2061         * users.txt: Add cvsps, tmpwatch
2062
2063 2011-03-23  Matt Rice  <ratmice@gmail.com>
2064
2065         doc: update users.txt
2066         * users.txt: Add gdb.
2067
2068 2011-03-23  Jim Meyering  <meyering@redhat.com>
2069
2070         doc: update users.txt
2071         Looking through matches up to the following URL (there are still
2072         several more pages), I found several projects that use gnulib:
2073         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2074         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2075         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2076
2077 2011-03-22  Bruno Haible  <bruno@clisp.org>
2078
2079         unictype/bidi*: Rename functions.
2080         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2081         uc_bidi_class, uc_is_bidi_class): New declarations.
2082         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2083         uc_bidi_category_byname.
2084         (uc_bidi_category_byname): New function.
2085         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2086         u_bidi_category_name.
2087         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2088         (uc_bidi_category_name): New function.
2089         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2090         uc_bidi_category.
2091         (uc_bidi_category): New function.
2092         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2093         uc_is_bidi_category. Invoke uc_bidi_class.
2094         (uc_is_bidi_category): New function.
2095         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2096         instead of uc_bidi_category_byname.
2097         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2098         instead of uc_bidi_category_name.
2099         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2100         uc_bidi_category.
2101         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2102         instead of uc_is_bidi_category.
2103
2104 2011-03-21  Bruno Haible  <bruno@clisp.org>
2105
2106         New module 'unictype/joininggroup-all'.
2107         * modules/unictype/joininggroup-all: New file.
2108
2109         Tests for module 'unictype/joininggroup-of'.
2110         * modules/unictype/joininggroup-of-tests: New file.
2111         * tests/unictype/test-joininggroup_of.c: New file.
2112         * tests/unictype/test-joininggroup_of.h: New file, automatically
2113         generated by gen-uni-tables.
2114
2115         New module 'unictype/joininggroup-of'.
2116         * modules/unictype/joininggroup-of: New file.
2117         * lib/unictype/joininggroup_of.c: New file.
2118         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2119         gen-uni-tables.
2120
2121         Tests for module 'unictype/joininggroup-byname'.
2122         * modules/unictype/joininggroup-byname-tests: New file.
2123         * tests/unictype/test-joininggroup_byname.c: New file.
2124
2125         New module 'unictype/joininggroup-byname'.
2126         * modules/unictype/joininggroup-byname: New file.
2127         * lib/unictype/joininggroup_byname.c: New file.
2128         * lib/unictype/joininggroup_byname.gperf: New file.
2129
2130         Tests for module 'unictype/joininggroup-name'.
2131         * modules/unictype/joininggroup-name-tests: New file.
2132         * tests/unictype/test-joininggroup_name.c: New file.
2133
2134         New module 'unictype/joininggroup-name'.
2135         * modules/unictype/joininggroup-name: New file.
2136         * lib/unictype/joininggroup_name.c: New file.
2137         * lib/unictype/joininggroup_name.h: New file.
2138
2139         New module 'unictype/joiningtype-all'.
2140         * modules/unictype/joiningtype-all: New file.
2141
2142         Tests for module 'unictype/joiningtype-of'.
2143         * modules/unictype/joiningtype-of-tests: New file.
2144         * tests/unictype/test-joiningtype_of.c: New file.
2145         * tests/unictype/test-joiningtype_of.h: New file, automatically
2146         generated by gen-uni-tables.
2147
2148         New module 'unictype/joiningtype-of'.
2149         * modules/unictype/joiningtype-of: New file.
2150         * lib/unictype/joiningtype_of.c: New file.
2151         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2152         gen-uni-tables.
2153
2154         Tests for module 'unictype/joiningtype-byname'.
2155         * modules/unictype/joiningtype-byname-tests: New file.
2156         * tests/unictype/test-joiningtype_byname.c: New file.
2157
2158         New module 'unictype/joiningtype-byname'.
2159         * modules/unictype/joiningtype-byname: New file.
2160         * lib/unictype/joiningtype_byname.c: New file.
2161
2162         Tests for module 'unictype/joiningtype-name'.
2163         * modules/unictype/joiningtype-name-tests: New file.
2164         * tests/unictype/test-joiningtype_name.c: New file.
2165
2166         New module 'unictype/joiningtype-name'.
2167         * modules/unictype/joiningtype-name: New file.
2168         * lib/unictype/joiningtype_name.c: New file.
2169
2170         unictype: Add support for Arabic shaping properties.
2171         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2172         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2173         declarations.
2174         (UC_JOINING_GROUP_*): New enumeration values.
2175         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2176         declarations.
2177         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2178         (unicode_joining_type): New variable.
2179         (UC_JOINING_GROUP_*): New enumeration values.
2180         (unicode_joining_group): New variable.
2181         (fill_arabicshaping, joining_type_as_c_identifier,
2182         output_joining_type_test, output_joining_type,
2183         joining_group_as_c_identifier, output_joining_group_test,
2184         output_joining_group): New functions.
2185         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2186         fill_arabicshaping and output_joining_type_test, output_joining_type,
2187         output_joining_group_test, output_joining_group.
2188         Reported by Simon Josefsson.
2189
2190 2011-03-21  Jim Meyering  <meyering@redhat.com>
2191
2192         strftime: fix a bug in yesterday's change
2193         * lib/strftime.c (add): Accommodate width's initial value of -1.
2194         Otherwise, nstrftime would copy uninitialized data into
2195         the result buffer.
2196
2197 2011-03-21  Jim Meyering  <meyering@redhat.com>
2198
2199         tests: add strftime-tests module
2200         * tests/test-strftime.c: New file.
2201         * modules/strftime-tests: New module.
2202
2203 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2204
2205         strftime: don't assume a byte count fits in 'int'
2206         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2207         found this problem by static analysis, using gcc -Wstrict-overflow
2208         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2209         on an integer overflow having undefined behavior, but it turns out
2210         that the argument is a size, which might not fit in 'int' anyway,
2211
2212 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         stdio: don't require ignore_value around fwrite
2215
2216         This patch works around libc bug 11959
2217         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2218         Without this patch, applications must often write
2219         ignore_value (fwrite (...)) even though the ignore_value is
2220         not helpful here.  It's common to write many objects, using
2221         fwrite/printf/etc., and then use ferror to detect output error.
2222
2223         I considered making this patch optional, but decided against it,
2224         because libc is obviously being inconsistent here: there is no
2225         reason libc should insist that user code must inspect fwrite
2226         return's value without also insisting that it inspect printf's,
2227         putchar's, etc.  If user code wants to have a strict style where
2228         all these functions' values are checked (so that ferror need not
2229         be checked), we could add support for that style in a new gnulib
2230         module, but in the meantime it's better to be consistent and to
2231         support common usage.
2232
2233         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2234         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2235         that we are compiling in checking mode, and if not C++, and
2236         if not already wrapping fwrite for some other reason.
2237         (fwrite): #define to rpl_fwrite if the latter is defined.
2238
2239 2011-03-20  Bruno Haible  <bruno@clisp.org>
2240
2241         verror: Fix compilation error introduced on 2011-02-13.
2242         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2243         instead of __attribute__.
2244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2245
2246 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2247             Bruno Haible  <bruno@clisp.org>
2248
2249         socklen: do not depend on sys_socket
2250         While trying to modify Emacs to use gnulib's socklen module,
2251         I discovered a circular dependency: socklen depends on sys_socket
2252         and vice versa.  Emacs can use socklen, but it does not need
2253         sys_socket because it has its own substitute for sys/socket.h.
2254         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2255         gl_TYPE_SOCKLEN_T.
2256         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2257         gl_PREREQ_SYS_H_SOCKET.
2258         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2259         gl_PREREQ_SYS_H_SOCKET.
2260         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2261         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2262         * modules/socklen (Depends-on): Do not depend on sys_socket.
2263         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2264
2265 2011-03-20  Jim Meyering  <meyering@redhat.com>
2266
2267         maint.mk: sort file names *after* new transformation
2268         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2269         prefix would have led to an unwarranted failure in GNU parted.
2270         Sort after that transformation.
2271
2272 2011-03-19  Jim Meyering  <meyering@redhat.com>
2273
2274         maint.mk: fix po-file syntax-check rule
2275         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2276         Patch by Bruno Haible.
2277
2278 2011-03-19  Bruno Haible  <bruno@clisp.org>
2279
2280         socklen: Update comment.
2281         * m4/socklen.m4: Update comment about platforms.
2282
2283 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2284             Bruno Haible  <bruno@clisp.org>
2285
2286         inet_ntop, inet_pton: Simplify.
2287         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2288         documented to provide socklen_t and we already depend on sys_socket.
2289         * modules/inet_pton (Depends-on): Likewise.
2290         * lib/arpa_inet.in.h: Adjust comment.
2291
2292 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2293             Bruno Haible  <bruno@clisp.org>
2294
2295         netdb: Simplify.
2296         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2297         documented to provide socklen_t and we already depend on sys_socket.
2298         * lib/netdb.in.h: Adjust comment.
2299
2300 2011-03-19  Bruno Haible  <bruno@clisp.org>
2301
2302         sys_socket, netdb: Document problem with socklen_t.
2303         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2304         platforms.
2305         * doc/posix-headers/netdb.texi: Likewise.
2306
2307 2011-03-18  Eric Blake  <eblake@redhat.com>
2308
2309         maint.mk: let po check work in VPATH build
2310         * top/maint.mk (po_file): Allow cfg.mk override.
2311         (sc_po_check): Allow VPATH use.
2312         Reported by Jiri Denemark.
2313
2314 2011-03-16  Jim Meyering  <meyering@redhat.com>
2315
2316         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2317         Before, you would have had to create one .x-sc_ file per rule in order
2318         to exempt offending files.  Now, you may instead use a Make variable --
2319         usually defined in cfg.mk -- whose name identifies the affected rule.
2320         * top/maint.mk (_sc_excl): Define.
2321         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2322         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2323
2324 2011-03-13  Bruno Haible  <bruno@clisp.org>
2325
2326         ignore-value tests: Avoid warnings.
2327         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2328         empty for gcc < 3.4.
2329
2330 2011-03-13  Bruno Haible  <bruno@clisp.org>
2331
2332         passfd: Fix link error on Solaris.
2333         * modules/passfd (Description): Correct.
2334         (Depends-on): Add socketlib.
2335         (Link): New section.
2336         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2337
2338 2011-03-13  Bruno Haible  <bruno@clisp.org>
2339
2340         passfd: Fix link error on AIX 5.2.
2341         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2342
2343 2011-03-13  Bruno Haible  <bruno@clisp.org>
2344
2345         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2346         * lib/sys_socket.in.h: Include <stddef.h>.
2347         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2348         CMSG_FIRSTHDR. Remove unused variable.
2349
2350 2011-03-13  Bruno Haible  <bruno@clisp.org>
2351
2352         passfd: Fix compilation error on OpenBSD.
2353         * lib/passfd.c: Include <sys/uio.h>.
2354
2355 2011-03-13  Bruno Haible  <bruno@clisp.org>
2356
2357         passfd test: Fix warnings.
2358         * tests/test-passfd.c: Include <sys/wait.h>.
2359         (main): Fix typo.
2360
2361 2011-03-13  Bruno Haible  <bruno@clisp.org>
2362
2363         passfd module, part 4, tweaks.
2364         * tests/test-passfd.c: Reorder includes.
2365         (main): Fix perror and printf calls.
2366
2367 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2368
2369         passfd module, part 4.
2370         * modules/passfd-tests: New file.
2371         * tests/test-passfd.c: New file.
2372
2373 2011-03-13  Jim Meyering  <meyering@redhat.com>
2374
2375         Makefile: rely on GNU make; derive syntax-check rule names
2376         Rather than requiring that each sc_ rule be listed as a dependent
2377         of "check", use features of GNU make to derive the list.
2378         * Makefile (syntax-check-rules): Define.
2379         (check): Depend on the new variable, not the hard-coded list.
2380
2381 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2382             Bruno Haible  <bruno@clisp.org>
2383
2384         passfd module, part 3.
2385         * lib/passfd.h (recvfd): Add a flags argument.
2386         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2387         (recvfd): Add a flags argument.
2388         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2389         exists.
2390         * modules/passfd (Depends-on): Add cloexec.
2391         Suggested by Eric Blake.
2392
2393 2011-03-13  Bruno Haible  <bruno@clisp.org>
2394
2395         passfd module, part 2, tweaks.
2396         * modules/passfd (Files): Reorder.
2397         (Depends-on): Remove errno.
2398         (Include): Remove <sys/socket.h>, <sys/un.h>.
2399         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2400         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2401         specification header. Include <sys/socket.h> always. Don't include
2402         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2403         (sendfd): Clarify that it sets errno when it fails.
2404         (recvfd): Fix specification.
2405
2406 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2407
2408         passfd module, part 2.
2409         * modules/passfd: New file.
2410         * lib/passfd.h: New file.
2411         * lib/passfd.c: New file.
2412
2413 2011-03-12  Bruno Haible  <bruno@clisp.org>
2414
2415         wcswidth, mbswidth: Avoid integer overflow.
2416         * lib/wcswidth.c: Include <limits.h>.
2417         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2418         * lib/mbswidth.c: Include <limits.h>.
2419         (mbsnwidth): Avoid 'int' overflow.
2420         Reported by Jim Meyering.
2421
2422 2011-03-12  Bruno Haible  <bruno@clisp.org>
2423
2424         futimens, utimensat: Avoid endless recursion on Solaris 10.
2425         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2426         Solaris.
2427         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2428         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2429
2430 2011-03-11  Jim Meyering  <meyering@redhat.com>
2431
2432         maint.mk: relax a regexp to accommodate other formatting styles
2433         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2434         between "ngettext" and the following "(".
2435
2436 2011-03-11  Pádraig Brady <P@draigBrady.com>
2437
2438         maint.mk: suppress a false positive warning
2439         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2440         diagnostics are marked with ngettext.
2441
2442 2011-03-10  Eric Blake  <eblake@redhat.com>
2443
2444         wchar: add explicit dependencies, for Tru64
2445         * modules/mbmemcasecoll (Depends-on): Add wchar.
2446         * modules/mbtowc (Depends-on): Likewise.
2447         * modules/vasnprintf (Depends-on): Likewise.
2448         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2449         * modules/wctomb (Depends-on): Likewise.
2450         Reported by Peter O'Gorman.
2451
2452 2011-03-08  Bruno Haible  <bruno@clisp.org>
2453
2454         passfd module, part 1, tweaks.
2455         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2456         Improve indentation. Improve AC_MSG_CHECKING messages.
2457         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2458         gl_SOCKET_FAMILIES.
2459
2460 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2461
2462         passfd module, part 1.
2463         * m4/afunix.m4: New file.
2464         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2465         sockets.
2466
2467 2011-03-08  Bruno Haible  <bruno@clisp.org>
2468
2469         regex-quote: New API.
2470         * lib/regex-quote.h: Include <stdbool.h>.
2471         (struct regex_quote_spec): New type.
2472         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2473         New declarations.
2474         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2475         'const struct regex_quote_spec *' argument.
2476         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2477         (pcre_special): New constant.
2478         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2479         New functions.
2480         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2481         'const struct regex_quote_spec *' argument.
2482         * modules/regex-quote (Depends-on): Add stdbool.
2483         * tests/test-regex-quote.c (check): Update for new API. Add test for
2484         anchored results.
2485         * NEWS: Mention the API change.
2486         Reported by Reuben Thomas and Eric Blake.
2487
2488 2011-03-06  Bruno Haible  <bruno@clisp.org>
2489
2490         regex-quote: Fix creation of POSIX extended regular expressions.
2491         * lib/regex-quote.c (ere_special): Add grouping and alternation
2492         operators.
2493
2494 2011-03-05  Bruno Haible  <bruno@clisp.org>
2495
2496         doc: Improve doc regarding autopoint vs. gnulib.
2497         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2498         disable autopoint while running autoreconf.
2499         Suggested by Ralf Wildenhues.
2500
2501 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2502
2503         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2504         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2505
2506 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2507
2508         parse-duration: remove xalloc.h dependency
2509         * lib/parse-duration.c (parse_period): handle NULL return from
2510         strdup instead of calling xstrdup().
2511         * modules/parse-duration: remove "xalloc" dependency
2512
2513 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2514
2515         bootstrap: honor m4_base when running aclocal
2516         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2517
2518 2011-03-02  Jim Meyering  <meyering@redhat.com>
2519
2520         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2521         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2522         on request from Matt Booth.
2523
2524 2011-03-01  Eric Blake  <eblake@redhat.com>
2525
2526         test-link: work on Hurd
2527         * tests/test-link.h (test_link): Hurd rejects linking directories
2528         with EISDIR instead of the POSIX-mandated EPERM.
2529
2530 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2531
2532         stdio: simplify by moving files to printf-posix, sigpipe
2533         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2534         since this symbol is needed only if printf is replaced.
2535         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2536         Require gl_ASM_SYMBOL_PREFIX.
2537         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2538         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2539         (Depends-on): Add 'raise'.
2540         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2541         * modules/stdio (Files): Remove lib/stdio-write.c,
2542         m4/asm-underscore.m4.
2543         (Depends-on): Remove 'raise'.
2544
2545         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2546         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2547         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2548         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2549
2550 2011-02-28  Bruno Haible  <bruno@clisp.org>
2551
2552         localcharset: Assume ANSI C behaviour of free().
2553         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2554         calling free().
2555         Suggested by Simon Josefsson <simon@josefsson.org>.
2556
2557 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2558             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2559             Bruno Haible  <bruno@clisp.org>  (tiny change)
2560
2561         On Cygwin, use /proc file system instead of win32 API.
2562         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2563         Win32 file names.
2564         (DllMain): Simplify by removing Cygwin specific code.
2565         (find_shared_library_fullname): Use Linux specific implementation also
2566         for Cygwin.
2567         (get_shared_library_fullname): Update accordingly.
2568         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2569         Win32 file names.
2570         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2571         Cygwin specific code.
2572
2573 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2574             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2575
2576         Fix OpenMP flag detection for various Fortran compilers.
2577         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2578         OpenMP-conditional compilation construct, to force compile
2579         failure with missing OpenMP flag.
2580         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2581
2582 2011-02-25  Eric Blake  <eblake@redhat.com>
2583
2584         strstr: expand test coverage
2585         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2586         compilation.
2587         * tests/test-memmem.c (main): Duplicate tests.
2588         * tests/test-strcasestr.c (main): Likewise.
2589         * tests/test-c-strcasestr.c (main): Likewise.
2590
2591 2011-02-25  Jim Meyering  <meyering@redhat.com>
2592
2593         maint.mk: detect missing-NL-at-EOF, too
2594         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2595         it also detects when a file lacks a newline at EOF.
2596         (require_exactly_one_NL_at_EOF_): Renamed from
2597         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2598         since people may well have .x-sc_... file names tied to the
2599         existing name.  Suggested by Eric Blake.
2600
2601 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         dirname: move m4/dos.m4 functionality into lib/dosname.h
2604
2605         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2606         extracts symbols from it, puts them into config.h; but it's much
2607         easier to use the symbols directly.  filename.h already does this,
2608         but it disagrees with dos.m4 in some respects.  This patch
2609         introduces a different include file dosname.h that packages up
2610         dos.m4, and then later we can work on merging filename.h and
2611         dosname.h.  Applications that need only the easy-to-configure
2612         symbols should consider including dosname.h rather than dirname.h.
2613         * NEWS: Mention incompatible changes.
2614         * m4/dos.m4: Remove.
2615         * lib/dosname.h, modules/dosname: New files.
2616         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2617         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2618         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2619         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2620         Include dosname.h, not dirname.h.
2621         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2622         Include dosname.h, for definitions of symbols like ISSLASH
2623         that used to be in config.h.
2624         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2625         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2626         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2627         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2628         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2629         * modules/rmdir (Files): Likewise.
2630         * modules/stat (Files): Likewise.
2631         * modules/unlink (Files): Likewise.
2632         * modules/dirname-lgpl (Depends-on): Add dosname.
2633         * modules/lstat (Depends-on): Likewise.
2634         * modules/openat (Depends-on): Likewise.
2635         * modules/rmdir (Depends-on): Likewise.
2636         * modules/savewd (Depends-on): Likewise.
2637         * modules/stat (Depends-on): Likewise.
2638         * modules/unlink (Depends-on): Likewise.
2639         * modules/openat (Depends-on): Remove dirname-lgpl.
2640         * modules/savewd (Depends-on): Likewise.
2641         * tests/test-dirname.c: Do not use removed symbols like
2642         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2643         the remaining symbols, e.g., ISSLASH ('\\').
2644
2645 2011-02-25  Eric Blake  <eblake@redhat.com>
2646
2647         strstr: revert patches that introduced bug and pessimization
2648         * lib/str-two-way.h: Add another reference.
2649         (two_way_short_needle, two_way_long_needle): Revert changes from
2650         2011-02-24; they pessimize search speed.
2651         (critical_factorization): Partially revert changes from
2652         2010-06-22; they violate the requirement that the left half of the
2653         needle be smaller than the period of the needle.
2654
2655 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2656
2657         filenamecat: remove unnecessary dependency on dirname-lgpl
2658         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2659         is no direct dependency, just an indirect one via filenamecat-lgpl.
2660
2661         remove: remove unnecessary use of m4/dos.m4
2662         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2663         * modules/remove (FILES): Remove m4/dos.m4.
2664
2665         * lib/openat-proc.c: Don't include dirname.h; not needed.
2666
2667         backupfile: remove unnecessary use of m4/dos.m4
2668         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2669         of its symbols are used by the backupfile code.  backupfile.c does
2670         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2671         for the rare case of programs that want all their backup file
2672         names to live within 8+3 limits, and dos.m4 doesn't address that.
2673         * modules/backupfile (Files): Remove m4/dos.m4.
2674
2675 2011-02-24  Jim Meyering  <meyering@redhat.com>
2676
2677         strstr: fix a bug whereby strstr would mistakenly return NULL
2678         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2679         in period calculation.
2680         (two_way_long_needle): Likewise.
2681         The original problem was reported by Mike Stump in
2682         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2683         Ralf Wildenhues provided the short needle and haystack.
2684         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2685         Add a more involved test to trigger the bug in two_way_long_needle.
2686
2687 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2688
2689         gnulib-tool: remove use of bold display in help screen
2690         * gnulib-tool (func_usage): Do not use bold display anymore in the
2691         help screen.  That was just meant to be a temporary emphasis for a
2692         backward-incompatible change.
2693
2694 2011-02-23  Bruno Haible  <bruno@clisp.org>
2695
2696         Fix misindentation of preprocessor directives.
2697         * lib/argp-namefrob.h: Reindent preprocessor directives.
2698         * lib/getopt_int.h (struct _getopt_data): Likewise.
2699         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2700         * lib/vasnprintf.c (decode_long_double): Likewise.
2701         * tests/test-argmatch.c: Insert blank lines, for clarity.
2702         * tests/test-exclude.c: Likewise.
2703
2704 2011-02-22  Bruno Haible  <bruno@clisp.org>
2705
2706         ioctl: Fix for MacOS X in 64-bit mode.
2707         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2708         value.
2709         Suggested by Eric Blake.
2710         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2711
2712 2011-02-22  Jim Meyering  <meyering@redhat.com>
2713
2714         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2715         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2716         in lib/.
2717
2718 2011-02-22  Eric Blake  <eblake@redhat.com>
2719
2720         maint: avoid any CDPATH issue
2721         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2722
2723         maint: adjust cpp indentation for my modules, as well
2724         * Makefile (sc_cpp_indent_check): Add my name.
2725         * lib/fbufmode.c: Filter through cppi.
2726         * lib/fpurge.c: Likewise.
2727         * lib/freadable.c: Likewise.
2728         * lib/freading.c: Likewise.
2729         * lib/fwritable.c: Likewise.
2730         * lib/fwriting.c: Likewise.
2731         * lib/sigaction.c: Likewise.
2732
2733 2011-02-22  Jim Meyering  <meyering@redhat.com>
2734
2735         maint: adjust cpp indentation to reflect nesting depth
2736         I.e., in a block of code that begins with an unnested "#if",
2737         put one space between the "#" in column 1 and following token.
2738         For example,
2739         -#include <sys/vfs.h>
2740         +# include <sys/vfs.h>
2741         Do this only in .c files that are part of a module I maintain.
2742         * lib/linkat.c: Filter through cppi.
2743         * lib/nanosleep.c: Likewise.
2744         * lib/openat.c: Likewise.
2745         * lib/openat-die.c: Likewise.
2746         * lib/dup3.c: Likewise.
2747         * lib/fchownat.c: Likewise.
2748         * lib/flock.c: Likewise.
2749         * lib/fsync.c: Likewise.
2750         * lib/fts.c: Likewise.
2751         * lib/getpass.c: Likewise.
2752         * lib/gettimeofday.c: Likewise.
2753         * lib/userspec.c: Likewise.
2754         * Makefile (sc_cpp_indent_check): New rule, to check this.
2755
2756 2011-02-22  Bruno Haible  <bruno@clisp.org>
2757
2758         New module 'wctomb'.
2759         * lib/stdlib.in.h (wctomb): New declaration.
2760         * lib/wctomb.c: New file.
2761         * lib/wctomb-impl.h: New file.
2762         * m4/wctomb.m4: New file.
2763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2764         REPLACE_WCTOMB.
2765         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2766         REPLACE_WCTOMB.
2767         * modules/wctomb: New file.
2768         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2769         * doc/posix-functions/wctomb.texi: Mention the new module.
2770         * modules/wctob (Depends-on): Add wctomb.
2771
2772 2011-02-22  Bruno Haible  <bruno@clisp.org>
2773
2774         New module 'mbtowc'.
2775         * lib/stdlib.in.h (mbtowc): New declaration.
2776         * lib/mbtowc.c: New file.
2777         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2778         * m4/mbtowc.m4: New file.
2779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2780         REPLACE_MBTOWC.
2781         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2782         REPLACE_MBTOWC.
2783         * modules/mbtowc: New file.
2784         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2785         * doc/posix-functions/mbtowc.texi: Mention the new module.
2786         * modules/btowc (Depends-on): Add mbtowc.
2787
2788 2011-02-22  Bruno Haible  <bruno@clisp.org>
2789
2790         wcrtomb: Add more tests for native Windows platforms.
2791         * tests/test-wcrtomb-w32-1.sh: New file.
2792         * tests/test-wcrtomb-w32-2.sh: New file.
2793         * tests/test-wcrtomb-w32-3.sh: New file.
2794         * tests/test-wcrtomb-w32-4.sh: New file.
2795         * tests/test-wcrtomb-w32-5.sh: New file.
2796         * tests/test-wcrtomb-w32.c: New file.
2797         * modules/wcrtomb-tests (Files): Add them.
2798         (Makefile.am): Arrange to run these tests.
2799         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2800         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2801
2802 2011-02-20  Bruno Haible  <bruno@clisp.org>
2803
2804         wcrtomb: Enhance test.
2805         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2806
2807 2011-02-20  Bruno Haible  <bruno@clisp.org>
2808
2809         mbrtowc: Tiny optimization.
2810         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2811
2812 2011-02-20  Jim Meyering  <meyering@redhat.com>
2813
2814         test-exclude.c: remove unmatched #endif
2815         * tests/test-exclude.c: Remove stray #endif, left over from
2816         the change of a week ago.
2817
2818 2011-02-19  Jim Meyering  <meyering@redhat.com>
2819
2820         git-version-gen: skip "-dirty" check when appropriate
2821         * build-aux/git-version-gen: Don't run any git commands when the
2822         version string comes from .tarball-version.  Prior to this, we
2823         would run git update-index --refresh even from a just-unpacked
2824         tarball directory, and that could affect a .git/ directory in a
2825         parent of the build directory.  Reported by Mike Frysinger.
2826
2827 2011-02-19  Bruno Haible  <bruno@clisp.org>
2828
2829         unictype/property-byname: Reduce the size of the 'data' segment.
2830         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2831
2832 2011-02-19  Bruno Haible  <bruno@clisp.org>
2833
2834         unictype/scripts: Reduce the size of the 'data' segment.
2835         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2836         '%pic'.
2837         * lib/unictype/scripts_byname.gperf: Regenerated.
2838
2839 2011-02-19  Bruno Haible  <bruno@clisp.org>
2840
2841         stdint: Update documentation.
2842         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2843
2844 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2845
2846         stdint: omit redundant check for wchar.h
2847         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2848         always tests whether wchar.h exists, so remove the now-redundant test.
2849
2850 2011-02-18  Bruno Haible  <bruno@clisp.org>
2851
2852         stdint: Cut dependency to module 'wchar'.
2853         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2854         include the necessary prerequisites.
2855         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2856         * modules/stdint (Depends-on): Remove wchar.
2857         (Makefile.am): Substitute HAVE_WCHAR_H.
2858         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2859
2860 2011-02-18  Eric Blake  <eblake@redhat.com>
2861
2862         longlong: skip, rather than fail, on cross-compilation
2863         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2864         when cross-compiling; regression from 2011-02-16.
2865
2866 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2867
2868         * NEWS: Mention 2011-02-08 change to stdlib.
2869
2870 2011-02-17  Bruno Haible  <bruno@clisp.org>
2871
2872         getloadavg: Add comments about platforms.
2873         * m4/getloadavg.m4: Add comment.
2874         * lib/getloadavg.c: Likewise.
2875
2876 2011-02-17  Bruno Haible  <bruno@clisp.org>
2877
2878         getloadavg: Fix link error on Solaris 2.6.
2879         * modules/getloadavg (Link): New section.
2880         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2881         linking test-getloadavg.
2882         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2883         getloadavg.
2884
2885 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2886
2887         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2888         It was 'int', but this doesn't match the IRIX 6.5 manual.
2889         Suggested by Bruno Haible in
2890         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2891
2892 2011-02-17  Bruno Haible  <bruno@clisp.org>
2893
2894         havelib: Fix comments.
2895         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2896         change.
2897
2898 2011-02-17  Bruno Haible  <bruno@clisp.org>
2899
2900         havelib: Update config.rpath.
2901         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2902
2903 2011-02-17  Bruno Haible  <bruno@clisp.org>
2904
2905         getloadavg test: Add some plausibility checks.
2906         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2907         is improbable.
2908
2909 2011-02-16  Eric Blake  <eblake@redhat.com>
2910
2911         maintainer-makefile: make syntax-check a no-op from tarballs
2912         * top/maint.mk (no-vc-detected): New rule.
2913         (local-checks-available): Use it to avoid hanging if someone tries
2914         'make syntax-check' from a tarball.  Also append to any non-syntax
2915         checks already defined in cfg.mk.
2916
2917 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2918
2919         longlong: tune, particularly for common case of c99
2920
2921         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2922         or running anything if c99, or if unsigned long long int does not
2923         work.  In either case, we know the answer without further tests.
2924         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2925         it at most once, and use its results for both long long int and
2926         unsigned long long int.  This is more likely to be efficient in
2927         the common case where the program wants to check for both long
2928         long int and unsigned long long int.
2929         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2930         since the answer is already known.
2931
2932 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2933
2934         getloadavg: set errno
2935         * lib/getloadavg.c: Set errno when returning -1.  If no other
2936         error number looks appropriate, set it to ENOSYS if the getloadavg
2937         looks like it can't possibly ever work, ENOTSUP otherwise.
2938         Suggested by Bruno Haible in
2939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2940
2941         getloadavg: trim unused parts and speed up 'configure'
2942         * NEWS: Document this.
2943         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2944         always compiled if getloadavg is absent.
2945         Move test code to ...
2946         * tests/test-getloadavg.c: New file, containing previous
2947         contents of test from lib/getloadavg.c.  It also contains
2948         suggestions by Bruno Haible in
2949         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2950         * modules/getloadavg-tests: New file.
2951         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2952         Do tests in the same order as they're needed for getloadavg.c.
2953         Omit setgid-related tests that generate symbols KMEM_GROUP,
2954         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2955         Do only the tests that are needed to see whether the system has
2956         getloadavg, moving the other tests into ...
2957         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2958         NLIST_NAME_UNION; nobody should be using it.  Do not define
2959         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2960         relevant, as the user of this module shouldn't care how getloadavg
2961         is implemented.
2962
2963         getloadavg: omit unused var
2964         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2965
2966 2011-02-15  Jim Meyering  <meyering@redhat.com>
2967
2968         doc: update users.txt
2969         * users.txt: Update iwhd's URL.
2970
2971 2011-02-13  Bruno Haible  <bruno@clisp.org>
2972
2973         Consistent macro naming for macros that use GCC __attribute__.
2974         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2975         _ATTRIBUTE_NONNULL_.
2976         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2977         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2978         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2979         ATTRIBUTE_DEPRECATED.
2980         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2981         ATTRIBUTE_NORETURN.
2982         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2983         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2984         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2985         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2986         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2987         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2988         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2989         ATTRIBUTE_SENTINEL.
2990         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2991         ATTRIBUTE_RETURN_CHECK.
2992         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2993         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2994         ATTRIBUTE_NORETURN.
2995         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2996         Reported by Paul Eggert.
2997
2998 2011-02-13  Bruno Haible  <bruno@clisp.org>
2999
3000         Don't interfere with a program's definition of __attribute__.
3001         * lib/argp.h (__attribute__): Remove definition.
3002         (_GL_ATTRIBUTE_FORMAT): New macro.
3003         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3004         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3005         (_GL_ATTRIBUTE_FORMAT): New macro.
3006         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3007         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3008         GCC 3 or newer.
3009         * lib/error.h (__attribute__): Remove definition.
3010         (_GL_ATTRIBUTE_FORMAT): New macro.
3011         (error, error_at_line): Use it.
3012         * lib/hash.h (__attribute__): Remove definition.
3013         (ATTRIBUTE_WUR): Update definition. Define always.
3014         * lib/openat.h (__attribute__): Remove definition.
3015         (ATTRIBUTE_NORETURN): Update definition. Define always.
3016         * lib/sigpipe-die.h (__attribute__): Remove definition.
3017         (ATTRIBUTE_NORETURN): Update definition. Define always.
3018         * lib/vasnprintf.h (__attribute__): Remove definition.
3019         (_GL_ATTRIBUTE_FORMAT): New macro.
3020         (asnprintf, vasnprintf): Use it.
3021         * lib/xalloc.h (__attribute__): Remove definition.
3022         (ATTRIBUTE_NORETURN): Update definition. Define always.
3023         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3024         * lib/xmemdup0.h (__attribute__): Remove definition.
3025         (ATTRIBUTE_NORETURN): Update definition. Define always.
3026         * lib/xprintf.h (__attribute__): Remove definition.
3027         (_GL_ATTRIBUTE_FORMAT): New macro.
3028         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3029         * lib/xstrtol.h (__attribute__): Remove definition.
3030         (ATTRIBUTE_NORETURN): Update definition. Define always.
3031         * lib/xvasprintf.h (__attribute__): Remove definition.
3032         (_GL_ATTRIBUTE_FORMAT): New macro.
3033         (xasprintf, xvasprintf): Use it.
3034         * tests/test-argmatch.c (__attribute__): Remove definition.
3035         (ATTRIBUTE_NORETURN): Update definition. Define always.
3036         * tests/test-exclude.c (__attribute__): Remove definition.
3037         (ATTRIBUTE_NORETURN): Update definition. Define always.
3038         Reported by Paul Eggert.
3039
3040 2011-02-13  Bruno Haible  <bruno@clisp.org>
3041
3042         mbrtowc: Add more tests for native Windows platforms.
3043         * tests/test-mbrtowc-w32-1.sh: New file.
3044         * tests/test-mbrtowc-w32-2.sh: New file.
3045         * tests/test-mbrtowc-w32-3.sh: New file.
3046         * tests/test-mbrtowc-w32-4.sh: New file.
3047         * tests/test-mbrtowc-w32-5.sh: New file.
3048         * tests/test-mbrtowc-w32.c: New file.
3049         * modules/mbrtowc-tests (Files): Add them.
3050         (Makefile.am): Arrange to run these tests.
3051         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3052         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3053
3054 2011-02-13  Bruno Haible  <bruno@clisp.org>
3055
3056         mbrtowc: Work around native Windows bug.
3057         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3058         guess when no suitable locale for testing was found.
3059         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3060
3061 2011-02-13  Bruno Haible  <bruno@clisp.org>
3062
3063         mbsinit: Work around mingw bug.
3064         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3065         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3066         Windows.
3067         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3068
3069 2011-02-13  Bruno Haible  <bruno@clisp.org>
3070
3071         mbsinit: Don't crash for a NULL argument.
3072         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3073         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3074
3075 2011-02-13  Bruno Haible  <bruno@clisp.org>
3076
3077         Don't interfere with a program's definition of __attribute__.
3078         * lib/stdio.in.h (__attribute__): Remove definition.
3079         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3080         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3081         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3082         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3083         * lib/string.in.h (__attribute__): Remove definition.
3084         Reported by Paul Eggert.
3085
3086 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3087
3088         stdlib: don't get in the way of non-GCC __attribute__
3089         See thread starting at
3090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3091         Revert previous stdlib change, installing the following instead:
3092         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3093         to get in the way of a non-GCC compiler that supports __attribute__.
3094         (_GL_ATTRIBUTE_RETURN): New macro.
3095         (_Exit): Use it instead of __attribute__.
3096
3097 2011-02-12  Bruno Haible  <bruno@clisp.org>
3098
3099         quotearg test: Avoid test failure on mingw.
3100         * tests/test-quotearg.sh: Convert the locale identifier from native
3101         Windows syntax to Unix syntax.
3102
3103 2011-02-12  Bruno Haible  <bruno@clisp.org>
3104
3105         setlocale: Prefer gnulib's override over libintl's override.
3106         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3107         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3108         GNULIB_defined_setlocale is set.
3109
3110 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3111
3112         stdlib: support non-GCC __attribute__
3113
3114         Fix a serious and tricky problem encountered when attempting to
3115         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3116         5.5, but it crashed due to memory corruption on Solaris 10 with
3117         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3118         bits that are otherwise zero.  This tagging is optional inside
3119         Emacs but is preferred and is used when __attribute__ ((__aligned
3120         (8))) works, as it does with both recent-enough GCC and with Sun C
3121         5.11.  However, Sun C 5.11 is not GCC and does not #define
3122         __GNUC__ and __GNUC_MINOR__.
3123
3124         When I added the getloadavg module to Emacs, it brought in
3125         stdlib.in.h, which contained this fragment:
3126
3127            #ifndef __attribute__
3128            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3129            #  define __attribute__(Spec)   /* empty */
3130            # endif
3131            #endif
3132
3133         When files that include <stdlib.h> were compiled with Sun C 5.11,
3134         the above code disabled __attribute__ ((__aligned (8))), which
3135         caused variables to not be properly aligned, which eventually led
3136         to the pointer corruption mentioned above.  (This was a bit hard
3137         to diagnose, unfortunately.)
3138
3139         Several "#define __attribute__(X) /* empty */" code snippets need
3140         to be eradicated from Gnulib to work with non-GCC compilers that
3141         support __attribute__.  The Autoconf way to do this is to test for
3142         each kind of attribute that we want support for, and selectively
3143         enable that in source code.
3144
3145         Fix this problem just for stdlib.h, by adding a test for the
3146         __noreturn__ attribute, and change stdlib.in.h to use that test
3147         when needed.  This technique can be easily generalized to the
3148         other *.in.h files and attributes, and a similar technique can be
3149         used for *.h and *.c files.  This patch is enough to solve the
3150         problem for Emacs + getloadavg, and I thought I'd publish it for
3151         feedback before undertaking further, similar fixes in other
3152         modules.
3153
3154         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3155         because it's not needed for stdlib.h.  It merely substitutes the
3156         value directly into stdlib.h.  We may well need to #define it, or
3157         similar symbols, for other modules, but it's nice to also have an
3158         option to not #define it for applications like Emacs that do not
3159         need it.
3160
3161         * lib/stdlib.in.h (__attribute__): Do not #define.
3162         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3163         be defined only if the _Exit module is also used.
3164         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3166         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3167         platforms.
3168         * modules/_Exit (Files): Add m4/attribute.m4.
3169         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3170         * m4/attribute.m4: New file.
3171
3172 2011-02-12  Bruno Haible  <bruno@clisp.org>
3173
3174         wcsrtombs: Work around bug on native Windows.
3175         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3176         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3177         instead of len.
3178         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3179
3180 2011-02-12  Bruno Haible  <bruno@clisp.org>
3181
3182         mbsrtowcs: Work around bug on native Windows.
3183         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3184         against mingw bug.
3185         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3186
3187 2011-02-12  Bruno Haible  <bruno@clisp.org>
3188
3189         Avoid setlocale bugs in tests.
3190         * modules/btowc (Dependencies): Add setlocale.
3191         * modules/c-strcase (Dependencies): Likewise.
3192         * modules/mbmemcasecmp (Dependencies): Likewise.
3193         * modules/mbmemcasecoll (Dependencies): Likewise.
3194         * modules/mbrtowc (Dependencies): Likewise.
3195         * modules/mbscasecmp (Dependencies): Likewise.
3196         * modules/mbscasestr (Dependencies): Likewise.
3197         * modules/mbschr (Dependencies): Likewise.
3198         * modules/mbscspn (Dependencies): Likewise.
3199         * modules/mbsinit (Dependencies): Likewise.
3200         * modules/mbsncasecmp (Dependencies): Likewise.
3201         * modules/mbsnrtowcs (Dependencies): Likewise.
3202         * modules/mbspbrk (Dependencies): Likewise.
3203         * modules/mbspcasecmp (Dependencies): Likewise.
3204         * modules/mbsrchr (Dependencies): Likewise.
3205         * modules/mbsrtowcs (Dependencies): Likewise.
3206         * modules/mbsspn (Dependencies): Likewise.
3207         * modules/mbsstr (Dependencies): Likewise.
3208         * modules/nl_langinfo (Dependencies): Likewise.
3209         * modules/quotearg (Dependencies): Likewise.
3210         * modules/unicase/locale-language (Dependencies): Likewise.
3211         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3212         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3213         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3214         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3215         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3216         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3217         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3218         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3219         * modules/vasnprintf-posix (Dependencies): Likewise.
3220         * modules/wcrtomb (Dependencies): Likewise.
3221         * modules/wcsnrtombs (Dependencies): Likewise.
3222         * modules/wcsrtombs (Dependencies): Likewise.
3223
3224 2011-02-12  Bruno Haible  <bruno@clisp.org>
3225
3226         setlocale: Workaround native Windows bug.
3227         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3228         succeeds but sets LC_CTYPE to "C", report a failure.
3229         * tests/test-setlocale2.sh: New file.
3230         * tests/test-setlocale2.c: New file.
3231         * modules/setlocale-tests (Files): Add the new files.
3232         (Makefile.am): Enable test-setlocale2.sh test.
3233         * doc/posix-functions/setlocale.texi: Mention workaround.
3234
3235 2011-02-11  Bruno Haible  <bruno@clisp.org>
3236
3237         Tests for module 'setlocale'.
3238         * modules/setlocale-tests: New file.
3239         * tests/test-setlocale1.sh: New file.
3240         * tests/test-setlocale1.c: New file.
3241
3242         New module 'setlocale'.
3243         * lib/locale.in.h (setlocale): New declaration.
3244         * lib/setlocale.c: New file, based on
3245         gettext/gettext-runtime/intl/setlocale.c.
3246         * m4/setlocale.m4: New file.
3247         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3248         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3249         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3250         REPLACE_SETLOCALE.
3251         * modules/setlocale: New file.
3252         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3253         * doc/posix-functions/setlocale.texi: Mention the new module.
3254
3255 2011-02-11  Bruno Haible  <bruno@clisp.org>
3256
3257         Prepare for locale dependent tests on mingw.
3258         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3259         because it has the wrong locale encoding.
3260         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3261         French_France.1252 instead of "fr".
3262         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3263         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3264         because it has the wrong locale encoding.
3265         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3266         native Windows, try Turkish_Turkey.65001.
3267         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3268         Chinese_China.54936.
3269
3270         Prepare for locale dependent tests on mingw.
3271         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3272         differently.
3273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3274         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3277
3278 2011-02-11  Eric Blake  <eblake@redhat.com>
3279
3280         strptime: avoid compiler warnings
3281         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3282         compiler warnings about dead code.
3283         Reported by Daniel P. Berrange.
3284
3285 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3286
3287         doc: update users.txt
3288         * users.txt: Add rcs.
3289
3290 2011-02-10  John W. Eaton  <jwe@gnu.org>
3291
3292         doc: update users.txt
3293         * users.txt: Add octave.
3294
3295 2011-02-10  Jim Meyering  <meyering@redhat.com>
3296
3297         doc: update users.txt
3298         * users.txt: Add iwhd.
3299
3300 2011-02-09  Bruno Haible  <bruno@clisp.org>
3301
3302         gnulib-tool: Make copyright notice adjustment more robust.
3303         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3304         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3305         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3306         License".
3307         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3308
3309 2011-02-06  Bruno Haible  <bruno@clisp.org>
3310
3311         New module 'towctrans'.
3312         * modules/towctrans: New file.
3313         * lib/wctype.in.h (towctrans): New declaration.
3314         * lib/towctrans.c: New file.
3315         * lib/towctrans-impl.h: New file.
3316         * m4/towctrans.m4: New file.
3317         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3318         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3319         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3320         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3321         * doc/posix-functions/towctrans.texi: Mention the new module.
3322
3323 2011-02-06  Bruno Haible  <bruno@clisp.org>
3324
3325         New module 'wctrans'.
3326         * modules/wctrans: New file.
3327         * lib/wctype.in.h (wctrans): New declaration.
3328         * lib/wctrans.c: New file.
3329         * lib/wctrans-impl.h: New file.
3330         * m4/wctrans.m4: New file.
3331         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3332         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3333         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3334         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3335         * doc/posix-functions/wctrans.texi: Mention the new module.
3336
3337 2011-02-06  Bruno Haible  <bruno@clisp.org>
3338
3339         New module 'iswctype'.
3340         * modules/iswctype: New file.
3341         * lib/wctype.in.h (iswctype): New declaration.
3342         * lib/iswctype.c: New file.
3343         * lib/iswctype-impl.h: New file.
3344         * m4/iswctype.m4: New file.
3345         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3346         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3347         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3348         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3349         * doc/posix-functions/iswctype.texi: Mention the new module and the
3350         HP-UX 11.00 problem.
3351
3352 2011-02-06  Bruno Haible  <bruno@clisp.org>
3353
3354         New module 'wctype'.
3355         * modules/wctype: Change to represent the wctype() substitute.
3356         * lib/wctype.in.h (wctype): New declaration.
3357         * lib/wctype.c: New file.
3358         * lib/wctype-impl.h: New file.
3359         * m4/wctype.m4: New file.
3360         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3361         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3362         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3363         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3364         * doc/posix-functions/wctype.texi: Mention the new module and the
3365         HP-UX 11.00 problem.
3366
3367 2011-02-06  Bruno Haible  <bruno@clisp.org>
3368
3369         wctype-h: Ensure wctype_t and wctrans_t are defined.
3370         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3371         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3372         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3373         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3374         HAVE_WCTRANS_T.
3375         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3376
3377 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3378
3379         flock: fix license typo
3380
3381         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3382         omitted.
3383
3384 2011-02-08  Bruno Haible  <bruno@clisp.org>
3385
3386         Split large sed scripts, for HP-UX sed.
3387         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3388         to avoid HP-UX limit of 99 commands, in the near future.
3389         * modules/stdlib (Makefile.am): Likewise.
3390         * modules/unistd (Makefile.am): Likewise.
3391         * modules/wchar (Makefile.am): Likewise.
3392         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3393         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3394         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3395
3396 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3397             Bruno Haible  <bruno@clisp.org>
3398
3399         stdlib: improve random_r modularization
3400         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3401         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3402         you also need the random_r module to get this material right.
3403         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3404         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3405         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3406
3407 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3408
3409         stdlib: don't depend on stdint
3410         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3411         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3412         be independent of whether stdint.h is needed.
3413         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3414         here, instead of ...
3415         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3416         struct random_data should be using the random_r module, not just
3417         the stdlib module (which wouldn't make sense: what package needs
3418         just struct random_data without also needing random_r?).
3419         * modules/stdlib (Depends-on): Remove stdint.
3420
3421         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3422         See the thread rooted at
3423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3424         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3425         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3426         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3427         __VMS)); previously it was always included (via fcntl--.h).
3428         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3429         hand; this is good enough for load averages.  Also, do not use
3430         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3431         flags directly if available and don't bother otherwise.  (Packages
3432         that need the extra reliability should use the modules that define
3433         these flags on older platforms that lack them.)
3434         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3435         fcntl-safer.
3436
3437 2011-02-08  Jim Meyering  <meyering@redhat.com>
3438
3439         di-set.h, ino-map.h: add multiple-inclusion guard
3440         Technically, the guard is required only for ino-map.h, due to its
3441         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3442         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3443         * lib/ino-map.h: Likewise.
3444
3445 2011-02-06  Bruno Haible  <bruno@clisp.org>
3446
3447         iswblank: Ensure declaration on glibc systems.
3448         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3449         * modules/iswblank (Dependencies): Add 'extensions'.
3450         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3451
3452 2011-02-06  Bruno Haible  <bruno@clisp.org>
3453
3454         New module 'iswblank'.
3455         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3456         * modules/iswblank: New file.
3457         * modules/wctype-h (Files): Remove lib/iswblank.c.
3458         (Makefile.am): Substitute GNULIB_ISWBLANK.
3459         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3460         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3461         (gl_WCTYPE_H_DEFAULTS): New macro.
3462         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3463         * modules/iswblank-tests: New file.
3464         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3465         * tests/test-wctype-h.c (main): Remove iswblank tests.
3466         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3467         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3468         of 'wctype-h'.
3469         * NEWS: Mention the change.
3470         * modules/mbchar (Depends-on): Add iswblank.
3471
3472 2011-02-08  Bruno Haible  <bruno@clisp.org>
3473
3474         di-set tests: Refactor.
3475         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3476         unnecessary includes.
3477         (ASSERT): Remove macro.
3478         (main): Make C90 compliant by avoiding variable declaration after
3479         statement.
3480         * modules/di-set-tests (Files): Add tests/macros.h.
3481
3482 2011-02-08  Bruno Haible  <bruno@clisp.org>
3483
3484         ino-map tests: Refactor.
3485         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3486         unnecessary includes.
3487         (ASSERT): Remove macro.
3488         (main): Make C90 compliant by avoiding variable declaration after
3489         statement.
3490         * modules/ino-map-tests (Files): Add tests/macros.h.
3491
3492 2011-02-08  Jim Meyering  <meyering@redhat.com>
3493
3494         di-set: add "const" to a cast
3495         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3496         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3497
3498 2011-02-06  Bruno Haible  <bruno@clisp.org>
3499
3500         Rename module 'wctype' to 'wctype-h'.
3501         * modules/wctype-h: Renamed from modules/wctype.
3502         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3503         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3504         (Files, Depends-on, Makefile.am): Update.
3505         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3506         (Files, Makefile.am): Update.
3507         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3508         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3509         * doc/posix-headers/wctype.texi: Update.
3510         * doc/posix-functions/iswalnum.texi: Update.
3511         * doc/posix-functions/iswalpha.texi: Update.
3512         * doc/posix-functions/iswblank.texi: Update.
3513         * doc/posix-functions/iswcntrl.texi: Update.
3514         * doc/posix-functions/iswdigit.texi: Update.
3515         * doc/posix-functions/iswgraph.texi: Update.
3516         * doc/posix-functions/iswlower.texi: Update.
3517         * doc/posix-functions/iswprint.texi: Update.
3518         * doc/posix-functions/iswpunct.texi: Update.
3519         * doc/posix-functions/iswspace.texi: Update.
3520         * doc/posix-functions/iswupper.texi: Update.
3521         * doc/posix-functions/iswxdigit.texi: Update.
3522         * doc/posix-functions/towlower.texi: Update.
3523         * doc/posix-functions/towupper.texi: Update.
3524         * NEWS: Mention the change.
3525         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3526         * modules/mbchar (Dependencies): Likewise.
3527         * modules/mbswidth (Dependencies): Likewise.
3528         * modules/quotearg (Dependencies): Likewise.
3529         * modules/regex (Dependencies): Likewise.
3530         * modules/wcscasecmp (Dependencies): Likewise.
3531         * modules/wcsncasecmp (Dependencies): Likewise.
3532         * modules/wcwidth (Dependencies): Likewise.
3533
3534 2011-02-06  Bruno Haible  <bruno@clisp.org>
3535
3536         New module 'wcswidth'.
3537         * modules/wcswidth: New file.
3538         * lib/wchar.in.h (wcswidth): New declaration.
3539         * lib/wcswidth.c: New file.
3540         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3541         * m4/wcswidth.m4: New file.
3542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3544         REPLACE_WCSWIDTH.
3545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3546         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3547         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3548         * doc/posix-functions/wcswidth.texi: Mention the new module.
3549
3550 2011-02-06  Bruno Haible  <bruno@clisp.org>
3551
3552         New module 'wcstok'.
3553         * modules/wcstok: New file.
3554         * lib/wchar.in.h (wcstok): New declaration.
3555         * lib/wcstok.c: New file.
3556         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3557         * m4/wcstok.m4: New file.
3558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3561         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3562         * doc/posix-functions/wcstok.texi: Mention the new module.
3563
3564 2011-02-06  Bruno Haible  <bruno@clisp.org>
3565
3566         New module 'wcsstr'.
3567         * modules/wcsstr: New file.
3568         * lib/wchar.in.h (wcsstr): New declaration.
3569         * lib/wcsstr.c: New file.
3570         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3571         * m4/wcsstr.m4: New file.
3572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3575         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3576         * doc/posix-functions/wcsstr.texi: Mention the new module.
3577
3578 2011-02-06  Bruno Haible  <bruno@clisp.org>
3579
3580         New module 'wcspbrk'.
3581         * modules/wcspbrk: New file.
3582         * lib/wchar.in.h (wcspbrk): New declaration.
3583         * lib/wcspbrk.c: New file.
3584         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3585         * m4/wcspbrk.m4: New file.
3586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3589         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3590         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3591
3592 2011-02-06  Bruno Haible  <bruno@clisp.org>
3593
3594         New module 'wcsspn'.
3595         * modules/wcsspn: New file.
3596         * lib/wchar.in.h (wcsspn): New declaration.
3597         * lib/wcsspn.c: New file.
3598         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3599         * m4/wcsspn.m4: New file.
3600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3603         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3604         * doc/posix-functions/wcsspn.texi: Mention the new module.
3605
3606 2011-02-06  Bruno Haible  <bruno@clisp.org>
3607
3608         New module 'wcscspn'.
3609         * modules/wcscspn: New file.
3610         * lib/wchar.in.h (wcscspn): New declaration.
3611         * lib/wcscspn.c: New file.
3612         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3613         * m4/wcscspn.m4: New file.
3614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3617         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3618         * doc/posix-functions/wcscspn.texi: Mention the new module.
3619
3620 2011-02-06  Bruno Haible  <bruno@clisp.org>
3621
3622         New module 'wcsrchr'.
3623         * modules/wcsrchr: New file.
3624         * lib/wchar.in.h (wcsrchr): New declaration.
3625         * lib/wcsrchr.c: New file.
3626         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3627         * m4/wcsrchr.m4: New file.
3628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3631         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3632         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3633
3634 2011-02-06  Bruno Haible  <bruno@clisp.org>
3635
3636         New module 'wcschr'.
3637         * modules/wcschr: New file.
3638         * lib/wchar.in.h (wcschr): New declaration.
3639         * lib/wcschr.c: New file.
3640         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3641         * m4/wcschr.m4: New file.
3642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3645         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3646         * doc/posix-functions/wcschr.texi: Mention the new module.
3647
3648 2011-02-06  Bruno Haible  <bruno@clisp.org>
3649
3650         New module 'wcsdup'.
3651         * modules/wcsdup: New file.
3652         * lib/wchar.in.h (wcsdup): New declaration.
3653         * lib/wcsdup.c: New file.
3654         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3655         * m4/wcsdup.m4: New file.
3656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3659         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3660         * doc/posix-functions/wcsdup.texi: Mention the new module.
3661
3662 2011-02-06  Bruno Haible  <bruno@clisp.org>
3663
3664         New module 'wcsxfrm'.
3665         * modules/wcsxfrm: New file.
3666         * lib/wchar.in.h (wcsxfrm): New declaration.
3667         * lib/wcsxfrm.c: New file.
3668         * lib/wcsxfrm-impl.h: New file.
3669         * m4/wcsxfrm.m4: New file.
3670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3673         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3674         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3675
3676 2011-02-06  Bruno Haible  <bruno@clisp.org>
3677
3678         New module 'wcscoll'.
3679         * modules/wcscoll: New file.
3680         * lib/wchar.in.h (wcscoll): New declaration.
3681         * lib/wcscoll.c: New file.
3682         * lib/wcscoll-impl.h: New file.
3683         * m4/wcscoll.m4: New file.
3684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3687         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3688         * doc/posix-functions/wcscoll.texi: Mention the new module.
3689
3690 2011-02-06  Bruno Haible  <bruno@clisp.org>
3691
3692         New module 'wcsncasecmp'.
3693         * modules/wcsncasecmp: New file.
3694         * lib/wchar.in.h (wcsncasecmp): New declaration.
3695         * lib/wcsncasecmp.c: New file.
3696         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3697         * m4/wcsncasecmp.m4: New file.
3698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3701         HAVE_WCSNCASECMP.
3702         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3703         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3704
3705 2011-02-06  Bruno Haible  <bruno@clisp.org>
3706
3707         New module 'wcscasecmp'.
3708         * modules/wcscasecmp: New file.
3709         * lib/wchar.in.h (wcscasecmp): New declaration.
3710         * lib/wcscasecmp.c: New file.
3711         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3712         * m4/wcscasecmp.m4: New file.
3713         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3714         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3716         HAVE_WCSCASECMP.
3717         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3718         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3719
3720 2011-02-05  Bruno Haible  <bruno@clisp.org>
3721
3722         New module 'wcsncmp'.
3723         * modules/wcsncmp: New file.
3724         * lib/wchar.in.h (wcsncmp): New declaration.
3725         * lib/wcsncmp.c: New file.
3726         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3727         * m4/wcsncmp.m4: New file.
3728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3731         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3732         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3733
3734 2011-02-05  Bruno Haible  <bruno@clisp.org>
3735
3736         New module 'wcscmp'.
3737         * modules/wcscmp: New file.
3738         * lib/wchar.in.h (wcscmp): New declaration.
3739         * lib/wcscmp.c: New file.
3740         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3741         * m4/wcscmp.m4: New file.
3742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3745         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3746         * doc/posix-functions/wcscmp.texi: Mention the new module.
3747
3748 2011-02-05  Bruno Haible  <bruno@clisp.org>
3749
3750         New module 'wcsncat'.
3751         * modules/wcsncat: New file.
3752         * lib/wchar.in.h (wcsncat): New declaration.
3753         * lib/wcsncat.c: New file.
3754         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3755         * m4/wcsncat.m4: New file.
3756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3759         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3760         * doc/posix-functions/wcsncat.texi: Mention the new module.
3761
3762 2011-02-05  Bruno Haible  <bruno@clisp.org>
3763
3764         New module 'wcscat'.
3765         * modules/wcscat: New file.
3766         * lib/wchar.in.h (wcscat): New declaration.
3767         * lib/wcscat.c: New file.
3768         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3769         * m4/wcscat.m4: New file.
3770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3773         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3774         * doc/posix-functions/wcscat.texi: Mention the new module.
3775
3776 2011-02-05  Bruno Haible  <bruno@clisp.org>
3777
3778         New module 'wcpncpy'.
3779         * modules/wcpncpy: New file.
3780         * lib/wchar.in.h (wcpncpy): New declaration.
3781         * lib/wcpncpy.c: New file.
3782         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3783         * m4/wcpncpy.m4: New file.
3784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3786         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3787         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3788         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3789
3790 2011-02-05  Bruno Haible  <bruno@clisp.org>
3791
3792         New module 'wcsncpy'.
3793         * modules/wcsncpy: New file.
3794         * lib/wchar.in.h (wcsncpy): New declaration.
3795         * lib/wcsncpy.c: New file.
3796         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3797         * m4/wcsncpy.m4: New file.
3798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3801         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3802         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3803
3804 2011-02-05  Bruno Haible  <bruno@clisp.org>
3805
3806         New module 'wcpcpy'.
3807         * modules/wcpcpy: New file.
3808         * lib/wchar.in.h (wcpcpy): New declaration.
3809         * lib/wcpcpy.c: New file.
3810         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3811         * m4/wcpcpy.m4: New file.
3812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3814         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3815         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3816         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3817
3818 2011-02-05  Bruno Haible  <bruno@clisp.org>
3819
3820         New module 'wcscpy'.
3821         * modules/wcscpy: New file.
3822         * lib/wchar.in.h (wcscpy): New declaration.
3823         * lib/wcscpy.c: New file.
3824         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3825         * m4/wcscpy.m4: New file.
3826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3829         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3830         * doc/posix-functions/wcscpy.texi: Mention the new module.
3831
3832 2011-02-05  Bruno Haible  <bruno@clisp.org>
3833
3834         New module 'wcsnlen'.
3835         * modules/wcsnlen: New file.
3836         * lib/wchar.in.h (wcsnlen): New declaration.
3837         * lib/wcsnlen.c: New file.
3838         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3839         * m4/wcsnlen.m4: New file.
3840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3843         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3844         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3845
3846 2011-02-05  Bruno Haible  <bruno@clisp.org>
3847
3848         New module 'wcslen'.
3849         * modules/wcslen: New file.
3850         * lib/wchar.in.h (wcslen): New declaration.
3851         * lib/wcslen.c: New file.
3852         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3853         * m4/wcslen.m4: New file.
3854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3857         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3858         * doc/posix-functions/wcslen.texi: Mention the new module.
3859
3860 2011-02-05  Bruno Haible  <bruno@clisp.org>
3861
3862         New module 'wmemset'.
3863         * modules/wmemset: New file.
3864         * lib/wchar.in.h (wmemset): New declaration.
3865         * lib/wmemset.c: New file.
3866         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3867         * m4/wmemset.m4: New file.
3868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3870         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3871         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3872         * doc/posix-functions/wmemset.texi: Mention the new module.
3873
3874 2011-02-05  Bruno Haible  <bruno@clisp.org>
3875
3876         New module 'wmemmove'.
3877         * modules/wmemmove: New file.
3878         * lib/wchar.in.h (wmemmove): New declaration.
3879         * lib/wmemmove.c: New file.
3880         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3881         * m4/wmemmove.m4: New file.
3882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3884         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3885         HAVE_WMEMMOVE.
3886         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3887         * doc/posix-functions/wmemmove.texi: Mention the new module.
3888
3889 2011-02-05  Bruno Haible  <bruno@clisp.org>
3890
3891         New module 'wmemcpy'.
3892         * modules/wmemcpy: New file.
3893         * lib/wchar.in.h (wmemcpy): New declaration.
3894         * lib/wmemcpy.c: New file.
3895         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3896         * m4/wmemcpy.m4: New file.
3897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3899         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3900         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3901         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3902
3903 2011-02-05  Bruno Haible  <bruno@clisp.org>
3904
3905         New module 'wmemcmp'.
3906         * modules/wmemcmp: New file.
3907         * lib/wchar.in.h (wmemcmp): New declaration.
3908         * lib/wmemcmp.c: New file.
3909         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3910         * m4/wmemcmp.m4: New file.
3911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3913         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3914         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3915         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3916
3917 2011-02-07  Jim Meyering  <meyering@redhat.com>
3918
3919         di-set, ino-map: new modules, from coreutils
3920         * lib/di-set.c: New file.
3921         * lib/di-set.h: Likewise.
3922         * lib/ino-map.c: Likewise.
3923         * lib/ino-map.h: Likewise.
3924         * modules/di-set: Likewise.
3925         * modules/di-set-tests: Likewise.
3926         * modules/ino-map: Likewise.
3927         * modules/ino-map-tests: Likewise.
3928         * tests/test-di-set.c: Likewise.
3929         * tests/test-ino-map.c: Likewise.
3930
3931 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3932
3933         getloadavg: merge minor changes from Emacs
3934
3935         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3936         (getloadavg): Use memset, not bzero.
3937
3938         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3939         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3940         clash (bug#86).
3941
3942 2010-11-14  Bruno Haible  <bruno@clisp.org>
3943
3944         Allow multiple gnulib generated replacements to coexist.
3945         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3946         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3947         * lib/langinfo.in.h (nl_item): Likewise.
3948         * lib/math.in.h (_NaN, NAN): Likewise.
3949         * lib/netdb.in.h (struct addrinfo): Likewise.
3950         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3951         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3952         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3953         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3954         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3955         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3956         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3957         pthread_mutexattr_init, pthread_mutexattr_settype,
3958         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3959         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3960         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3961         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3962         * lib/sched.in.h (struct sched_param): Likewise.
3963         * lib/se-selinux.in.h (security_class_t, security_context_t,
3964         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3965         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3966         lsetfilecon, fsetfilecon, security_check_context,
3967         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3968         Likewise.
3969         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3970         Likewise.
3971         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3972         _gl_function_taking_int_returning_void_t, union sigval,
3973         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3974         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3975         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3976         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3977         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3978         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3979         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3980         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3981         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3982         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3983         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3984         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3985         socklen_t, rpl_fd_isset): Likewise.
3986         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3987         * lib/sys_time.in.h (struct timeval): Likewise.
3988         * lib/sys_times.in.h (struct tms): Likewise.
3989         * lib/sys_utsname.in.h (struct utsname):
3990         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3991         * lib/unistd.in.h (getpagesize): Likewise.
3992         * lib/wchar.in.h (mbstate_t): Likewise.
3993         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3994         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3995         towlower, towupper): Likewise.
3996         Reported by Sam Steingold <sds@gnu.org>.
3997
3998 2011-02-05  Eric Blake  <eblake@redhat.com>
3999
4000         unsetenv: work around Haiku issues
4001         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4002         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4003
4004 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4005
4006         libposix: avoid calling error() within libposix
4007         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4008         is defined.
4009
4010 2011-02-05  Eric Blake  <eblake@redhat.com>
4011
4012         strerror_r-posix: port to cygwin
4013         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4014         implementation.
4015         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4016         * tests/test-strerror_r.c (main): Fix test.
4017         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4018         issue.
4019
4020 2011-02-05  Bruno Haible  <bruno@clisp.org>
4021
4022         New module 'wmemchr'.
4023         * modules/wmemchr: New file.
4024         * lib/wchar.in.h (wmemchr): New declaration.
4025         * lib/wmemchr.c: New file.
4026         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4027         * m4/wmemchr.m4: New file.
4028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4030         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4031         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4032         * doc/posix-functions/wmemchr.texi: Mention the new module.
4033
4034 2011-02-04  Eric Blake  <eblake@redhat.com>
4035
4036         fdopendir: detect FreeBSD bug
4037         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4038         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4039
4040 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4041
4042         stdbool: do not define HAVE_STDBOOL_H
4043         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4044         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4045         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4046         imported from the latest Autoconf git.  It was motivated by Emacs,
4047         which uses gnulib but does not need HAVE_STDBOOL_H.
4048
4049 2011-02-04  Bruno Haible  <bruno@clisp.org>
4050
4051         wcsnrtombs: Prepare for new module wwcsnrtombs.
4052         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4053         * lib/wcsnrtombs.c: Include it.
4054         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4055
4056         wcsrtombs: Prepare for new module wwcsrtombs.
4057         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4058         * lib/wcsrtombs.c: Include it.
4059         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4060
4061         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4062         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4063         * lib/mbsnrtowcs.c: Include it.
4064         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4065
4066         mbsrtowcs: Prepare for new module mbsrtowwcs.
4067         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4068         * lib/mbsrtowcs.c: Include it.
4069         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4070
4071 2011-02-04  Bruno Haible  <bruno@clisp.org>
4072
4073         vasnprintf: Reduce use of malloc for small format strings.
4074         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4075         (arguments): Add room for the first 7 arguments.
4076         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4077         (char_directives, u8_directives, u16_directives, u32_directives): Add
4078         room for the first 7 directives.
4079         * lib/printf-parse.c: Include <string.h>.
4080         (PRINTF_PARSE): Change memory handling code so that it uses the first
4081         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4082         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4083         Reported by Pádraig Brady <P@draigbrady.com>.
4084
4085 2011-01-31  Eric Blake  <eblake@redhat.com>
4086
4087         dup2: work around Haiku bug
4088         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4089         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4090         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4091         * tests/test-dup2.c (main): Enhance test.
4092
4093 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4094
4095         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4096         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4097         declared by eglibc 2.11.2.
4098         * lib/stdio.in.h: Likewise.
4099
4100 2011-01-31  Eric Blake  <eblake@redhat.com>
4101
4102         ignore-value: add missing test dependency
4103         * tests/test-ignore-value.c: Revert previous change; stdio.h
4104         provides off_t.
4105         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4106
4107 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4108
4109         mktime: clarify long_int width checking
4110         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4111         the top level, to make it clearer that the assumption about
4112         long_int width is being checked.  See
4113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4114
4115 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4116
4117         ignore-value: Fix self-test.
4118         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4119
4120 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4121
4122         TYPE_MAXIMUM: avoid theoretically undefined behavior
4123         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4124         negative number, which the C Standard says has undefined behavior.
4125         In practice this is not a problem, but might as well do it by the book.
4126         Reported by Rich Felker and Eric Blake; see
4127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4128         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4129         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4131         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4132         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4133         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4134
4135         mktime: #undef mktime before #defining it
4136         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4137
4138         mktime: systematically normalize tm_isdst comparisons
4139         * lib/mktime.c (isdst_differ): New function.
4140         (__mktime_internal): Use it systematically for all isdst comparisons.
4141         This completes the fix for libc BZ #6723, and removes the need for
4142         normalizing tm_isdst.  See
4143         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4144         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4145
4146         mktime: fix some integer overflow issues and sidestep the rest
4147
4148         This was prompted by a bug report by Benjamin Lindner for MinGW
4149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4150         His bug is due to signed integer overflow (0 - INT_MIN), and I
4151         I scanned through mktime.c looking for other integer overflow
4152         problems, fixing all the bugs I found.
4153
4154         Although the C Standard says the resulting code is still not safe
4155         in the presence of integer overflow, in practice it should be good
4156         enough for all real-world two's-complement implementations, except
4157         for debugging environments that deliberately trap on integer
4158         overflow (e.g., gcc -ftrapv).
4159
4160         * lib/mktime.c (WRAPV): New macro.
4161         (SHR): Also check that long_int and time_t shift right in the
4162         usual way, before using the fast-but-unportable method.
4163         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4164         used.  The code already assumed two's complement, so there's
4165         no need to test for alternatives.  All uses removed.
4166         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4167         the C standard.  Problem reported by Rich Felker in
4168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4169         (twos_complement_arithmetic): Also check long_int and time_t.
4170         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4171         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4172         (__mktime_internal): Avoid integer overflow with unary subtraction
4173         in two instances where -1 - X is an adequate replacement for -X,
4174         since the calculations are approximate.
4175
4176 2011-01-29  Eric Blake  <eblake@redhat.com>
4177
4178         mktime: avoid infinite loop
4179         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4180         type; behavior is still undefined but portable to all known targets.
4181         Reported by Rich Felker.
4182
4183 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4184
4185         rename, unlink, same-inode: Relicense.
4186         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4187         * modules/unlink (License): Likewise.
4188         * modules/same-inode (License): Likewise.
4189
4190 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4191
4192         mktime: avoid problems on NetBSD 5 / i386
4193         * lib/mktime.c (long_int): New type.  This works around a problem
4194         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4195         but time_t is 64 bits, and where I expect the existing code is
4196         wrong in some cases.
4197         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4198         (ydhms_diff): Bring back the compile-time check for wide-enough
4199         year and yday.
4200
4201         mktime: fix misspelling in comment
4202         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4203         This merges all recent glibc changes of importance.
4204
4205 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4206
4207         move-if-change: cope with concurrent mv of identical file.
4208         * build-aux/move-if-change (CMPPROG): Accept environment
4209         variable as an override for `cmp'.
4210         (usage): Document CMPPROG.
4211         Adjust comparison to drop stdout.  Cope with failure of mv if
4212         the target file exists and is identical to the source, for
4213         parallel builds.
4214         Report from H.J. Lu against binutils in PR binutils/12283.
4215
4216 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4217
4218         * users.txt: Mention sharutils.
4219
4220 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4221
4222         * users.txt: Mention OATH Toolkit.
4223
4224 2011-01-27  Bruno Haible  <bruno@clisp.org>
4225
4226         Prepare for supporting FreeBSD 10.
4227         * build-aux/config.libpath: Remove handling of freebsd1*.
4228
4229 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4230
4231         Prepare for supporting FreeBSD 10.
4232         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4233         match FreeBSD 10.0.
4234
4235 2011-01-27  Bruno Haible  <bruno@clisp.org>
4236
4237         vma-iter, get-rusage-as: Add OpenBSD support.
4238         * modules/vma-iter (configure.ac): Test for mquery.
4239         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4240         * lib/vma-iter.c: Include <sys/mman.h>.
4241         (vma_iterate): Add an implementation based on mquery().
4242         * lib/resource-ext.h (get_rusage_as): Update comments.
4243         * lib/get-rusage-as.c: Likewise.
4244         * lib/get-rusage-data.c: Likewise.
4245
4246 2011-01-26  Karl Berry  <karl@gnu.org>
4247
4248         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4249         variables to make it easier to override the makeinfo program used.
4250
4251 2011-01-26  Eric Blake  <eblake@redhat.com>
4252
4253         fcntl: work around Haiku F_DUPFD bugs
4254         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4255         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4256         cloexec bit on duplication.
4257         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4258
4259 2011-01-26  Bruno Haible  <bruno@clisp.org>
4260
4261         Enable memory leak tests on AIX.
4262         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4263         * tests/test-fprintf-posix3.c (main): Likewise.
4264
4265 2011-01-26  Bruno Haible  <bruno@clisp.org>
4266
4267         Tests for module 'get-rusage-data'.
4268         * modules/get-rusage-data-tests: New file.
4269         * tests/test-get-rusage-data.c: New file.
4270
4271         New module 'get-rusage-data'.
4272         * lib/resource-ext.h (get_rusage_data): New declaration.
4273         * lib/get-rusage-data.c: New file.
4274         * modules/get-rusage-data: New file.
4275
4276 2011-01-25  Bruno Haible  <bruno@clisp.org>
4277
4278         get-rusage-as: Allow for easier testing.
4279         * lib/resource-ext.h (get_rusage_as): Add comment.
4280         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4281         (main): New function for interactive testing.
4282
4283 2011-01-25  Bruno Haible  <bruno@clisp.org>
4284
4285         vma-iter: Treat Haiku like BeOS.
4286         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4287         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4288
4289 2011-01-25  Eric Blake  <eblake@redhat.com>
4290
4291         c-stack: fix regression on cygwin when libsigsegv is present
4292         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4293
4294 2011-01-24  Bruno Haible  <bruno@clisp.org>
4295
4296         vma-iter: Avoid empty intervals.
4297         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4298         on an empty interval.
4299
4300 2011-01-24  Jim Meyering  <meyering@redhat.com>
4301
4302         u64: remove unnecessary #include
4303         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4304
4305 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4306
4307         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4308         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4309
4310 2011-01-23  Bruno Haible  <bruno@clisp.org>
4311
4312         New module 'vma-iter'.
4313         * lib/vma-iter.h: New file.
4314         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4315         * modules/vma-iter: New file.
4316         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4317         for get_rusage_as_via_iterator.
4318         (vma_iterate_callback): New function.
4319         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4320         * modules/get-rusage-as (Depends-on): Add vma-iter.
4321
4322 2011-01-23  Bruno Haible  <bruno@clisp.org>
4323
4324         uninorm: Tweak includes.
4325         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4326         Reported by Jim Meyering.
4327
4328 2011-01-23  Bruno Haible  <bruno@clisp.org>
4329
4330         get-rusage-as: Improve on NetBSD.
4331         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4332         /proc, like on FreeBSD.
4333
4334 2011-01-23  Jim Meyering  <meyering@redhat.com>
4335
4336         xreadlink.h: remove unnecessary #include
4337         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4338
4339         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4340         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4341
4342 2011-01-23  Bruno Haible  <bruno@clisp.org>
4343
4344         get-rusage-as: Fix bug.
4345         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4346         original limit when aborting the first loop.
4347
4348 2011-01-23  Bruno Haible  <bruno@clisp.org>
4349
4350         wctype: Ensure valid C syntax.
4351         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4352         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4353
4354 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4355
4356         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4357         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4358         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4359         as they are needed only for configure's test case.
4360         This removes two unnecessary symbols from config.h.
4361
4362         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4363         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4365         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4366         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4367         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4368         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4369         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4370         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4371         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4372         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4373         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4374         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4375         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4376         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4377         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4378         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4379         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4380
4381 2011-01-21  Eric Blake  <eblake@redhat.com>
4382
4383         maintainer-makefile: work with older git for submodule check
4384         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4385         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4386         Reported by Matthias Bolte.
4387
4388         bootstrap: minor portability fixes
4389         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4390         (usage): Omit leading capital and trailing . on help phrases, per
4391         GNU Coding Standards.
4392         (check_versions, top level): Prefix messages with script name.
4393
4394 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4395
4396         bootstrap: support --no-git option
4397         * build-aux/bootstrap: Add --no-git option, to be used when
4398         --gnulib-srcdir points to the exact desired checkout.
4399
4400 2011-01-21  Eric Blake  <eblake@redhat.com>
4401
4402         strerror_r-posix: work with glibc 2.13
4403         * lib/strerror_r.c (strerror_r): Fix return type.
4404
4405 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4406             Bruno Haible  <bruno@clisp.org>
4407
4408         uN_strstr: New unit tests.
4409         * modules/unistr/u8-strstr-tests: New file.
4410         * modules/unistr/u16-strstr-tests: New file.
4411         * modules/unistr/u32-strstr-tests: New file.
4412         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4413         * tests/unistr/test-u8-strstr.c: New file.
4414         * tests/unistr/test-u16-strstr.c: New file.
4415         * tests/unistr/test-u32-strstr.c: New file.
4416
4417 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4418             Bruno Haible  <bruno@clisp.org>
4419
4420         Make uN_strstr functions O(n) worst-case.
4421         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4422         16-bit and 32-bit unit cases, use the unibyte algorithm from
4423         lib/mbsstr.c.
4424         * lib/unistr/u8-strstr.c: Include <string.h>.
4425         (UNIT_IS_UINT8_T): New macro.
4426         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4427         (U_STRLEN, U_STRNLEN): New macros.
4428         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4429         (U_STRLEN, U_STRNLEN): New macros.
4430         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4431         (configure.ac): Update required libunistring version.
4432         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4433         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4434         malloca.
4435         (configure.ac): Update required libunistring version.
4436         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4437         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4438         malloca.
4439         (configure.ac): Update required libunistring version.
4440
4441 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4442             Bruno Haible  <bruno@clisp.org>
4443
4444         Prepare for faster uN_strstr functions.
4445         * lib/str-kmp.h: Support definable UNITs.
4446         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4447         needle_len argument.
4448         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4449         * lib/mbscasestr.c (mbscasestr): Likewise.
4450
4451 2011-01-21  Pádraig Brady <P@draigBrady.com>
4452
4453         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4454         * tests/test-malloca.c (main): Unset the environment variable
4455         to greatly speed up the test.
4456         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4457         * modules/malloca-tests: Depend on unsetenv.
4458
4459 2011-01-21  Pádraig Brady <P@draigBrady.com>
4460
4461         ignore-value: remove stdint dependency
4462         * lib/ignore-value.h: Remove <stdint.h>
4463         * modules/ignore-value: Remove stdint dependency.
4464
4465 2011-01-21  Jim Meyering  <meyering@redhat.com>
4466
4467         maint.mk: adjust variable name to be consistent with other gl_ vars
4468         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4469         to be lower case.
4470
4471 2011-01-20  Jim Meyering  <meyering@redhat.com>
4472
4473         maint.mk: make "check" depend on public-submodule-commit by default
4474         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4475
4476 2011-01-20  Bruno Haible  <bruno@clisp.org>
4477
4478         mbfile, mbiter: Complete change from 2008-12-21.
4479         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4480         * m4/mbiter.m4 (gl_MBITER): Likewise.
4481
4482 2011-01-20  Jim Meyering  <meyering@redhat.com>
4483
4484         init.sh: insert space between each function name and "()"
4485         * tests/init.sh: Make it a little easier to see that a function's
4486         name is "warn_", and not "warn" when looking at the first part of
4487         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4488
4489 2011-01-20  Jim Meyering  <meyering@redhat.com>
4490
4491         mountlist: clean up code formatting
4492         * lib/mountlist.c (read_file_system_list): Split a long line,
4493         correct bracing style, use NULL in place of "(struct statfs *)0",
4494         don't parenthesize return value, add spaces around "=" and after
4495         ";-in-for-stmt".
4496
4497 2011-01-14  Markus Duft <mduft@gentoo.org>
4498
4499         mountlist: add support for Interix
4500         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4501         Apply statvfs to all entries of /dev/fs.
4502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4503         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4504
4505 2011-01-20  Jim Meyering  <meyering@redhat.com>
4506
4507         maint.mk: improve the public-submodule-commit rule
4508         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4509         to suppress printing of its commands... unless V=1.
4510         Add git submodule's --quiet option to suppress printing of e.g.,
4511         "Entering gnulib" output.
4512         "cd" into $(srcdir) before running git submodule.
4513
4514 2011-01-20  Bruno Haible  <bruno@clisp.org>
4515
4516         include_next: Fix bug introduced on 2011-01-18.
4517         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4518         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4519         ac_cv_header_... variable if the second argument is not 'check'.
4520         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4521         gl_NEXT_HEADERS_INTERNAL.
4522
4523 2011-01-20  Bruno Haible  <bruno@clisp.org>
4524
4525         Allow the user to avoid the GNULIB_TEST_* macros.
4526         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4527         Suggested by Paul Eggert.
4528
4529 2011-01-14  Jim Meyering  <meyering@redhat.com>
4530
4531         bootstrap: avoid failure when there is no .gitmodules file
4532         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4533         has been assigned to, even when its value is the empty string.
4534         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4535         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4536         Reported by John W. Eaton <jwe@gnu.org>.
4537
4538 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4539
4540         assume <ctype.h>, ..., <time.h> exist
4541         For years gnulib has been assuming the existence of the headers
4542         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4543         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4544         them, since they don't appear to be needed.
4545         * README (Portability guidelines): Document this.
4546         * lib/flock.c: Assume <fcntl.h> exists.
4547         * lib/regex_internal.h: Assume <locale.h> exists.
4548         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4549         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4550         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4551         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4552         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4553         * m4/regex.m4 (gl_REGEX): Likewise.
4554         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4555         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4556         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4557         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4558         * tests/test-argp.c: Likewise.
4559         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4560
4561         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4562         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4563         AA_APPLE_UNIVERSAL_BUILD.  See
4564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4565         * NEWS: Document this.
4566
4567 2011-01-19  Eric Blake  <eblake@redhat.com>
4568
4569         c-stack: assume stack overflow if SA_SIGINFO unsupported
4570         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4571         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4572         sigaction will work.
4573         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4574         behavior match Linux.
4575         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4576
4577         stdbool-tests: accomodate Haiku
4578         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4579
4580         binary-io: fix O_TEXT on Haiku
4581         * modules/binary-io (Depends-on): Add fcntl-h.
4582         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4583         than blindly undefining O_TEXT.
4584         Reported by Scott McCreary.
4585
4586 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4587
4588         include_next: do not check for standard headers like stddef.h
4589
4590         I found this problem when modifying Emacs to use gnulib.
4591         I noticed that it added HAVE_STDDEF_H to config.h, even though
4592         gnulib always assumes <stddef.h> exists as per README and this
4593         symbol is unnecessary.
4594         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4595         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4596         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4597         faster for headers like stddef.h that are known to exist.
4598         (gl_CHECK_NEXT_HEADERS): Use it.
4599         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4600         rather than gl_CHECK_NEXT_HEADERS.
4601         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4602         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4603
4604 2011-01-18  Eric Blake  <eblake@redhat.com>
4605
4606         ansi-c++-opt: skip C++ dependency style if C++ is unused
4607         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4608         tests when we know C++ compilation is not desired.
4609         Reported by Scott McCreary.
4610
4611 2011-01-18  Bruno Haible  <bruno@clisp.org>
4612
4613         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4614         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4615         (main): Perform test also when getrlimit and setrlimit don't exist or
4616         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4617         limiting the address space size using setrlimit, compare the address
4618         space size before and after the the test.
4619         * tests/test-dprintf-posix2.c: Likewise.
4620         * tests/test-fprintf-posix3.sh: Update skip messages.
4621         * tests/test-dprintf-posix2.sh: Likewise.
4622         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4623         * modules/dprintf-posix-tests (Depends-on): Likewise.
4624         Reported by Bruce Korb <bkorb@gnu.org> and
4625         Gary V. Vaughan <gary@gnu.org>.
4626
4627 2011-01-18  Bruno Haible  <bruno@clisp.org>
4628
4629         get-rusage-as: Improvement for Cygwin.
4630         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4631         areas that are merely reserved.
4632
4633 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         strftime: remove dependencies on multibyte modules
4636
4637         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4638         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4639         only if __osf__ is defined, and I suspect OSF doesn't need these
4640         other modules.  If my guess is wrong, we'll need to come up with a
4641         variant of strftime that doesn't need the multibyte modules.
4642
4643         I discovered this problem when attempting modify Emacs to use the
4644         strftime module.  With the previous gnulib, this caused Emacs to
4645         need 31 new files, ranging from lib/config.charset to
4646         m4/wint_t.m4.  This was overkill and I expect would be offputting
4647         to the Emacs maintainers.  After this change, only 6 new files are
4648         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4649         stdbool.m4, and tm_gmtoff.m4.
4650
4651         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4652         Suggested by Bruno Haible in
4653         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4654         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4655         and do not check for wchar.h.
4656         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4657         (Depends-on): Remove mbrlen, mbsinit, wchar.
4658
4659 2011-01-18  Bruno Haible  <bruno@clisp.org>
4660
4661         Tests for module 'get-rusage-as'.
4662         * modules/get-rusage-as-tests: New file.
4663         * tests/test-get-rusage-as.c: New file.
4664
4665         New module 'get-rusage-as'.
4666         * modules/get-rusage-as: New file.
4667         * lib/resource-ext.h: New file.
4668         * lib/get-rusage-as.c: New file.
4669
4670 2011-01-17  Eric Blake  <eblake@redhat.com>
4671
4672         sigaction: relax license from LGPLv3+ to LGPLv2+
4673         * modules/sigaction (License): Relax to LGPLv2+.
4674
4675 2011-01-14  Bruno Haible  <bruno@clisp.org>
4676
4677         filemode: Make function declarations usable in C++ mode.
4678         * lib/filemode.h: Enclose function declarations in extern "C" block.
4679         Reported by John W. Eaton <jwe@gnu.org>.
4680
4681 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4682
4683         save-cwd: no longer include "xgetcwd.h"
4684         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4685         This avoids a compilation failure in projects that use save-cwd
4686         without also using the xgetcwd module.
4687
4688 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4689
4690         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4691         This is so that a program like Emacs, which needs only dtoastr,
4692         does not have to bother with distributing and compiling ftoastr
4693         and ldtoastr.
4694         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4695         * modules/dtoastr, modules/ldtoastr: New files.
4696         * modules/ftoastr: Now works just for 'float'.
4697         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4698         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4699         dtoastr.c, ldtoastr.c.
4700
4701 2011-01-11  Jim Meyering  <meyering@redhat.com>
4702
4703         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4704         There is no need to work around the lack of the fchdir function,
4705         since gnulib can now provide a replacement when required.
4706         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4707         * modules/save-cwd (Depends-on): Add fchdir.
4708
4709 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4710
4711         openat, save-cwd: avoid xmalloc
4712
4713         This removes a direct (but undocumented) dependency of openat on
4714         xalloc, along with an indirect dependency via save-cwd.  It also
4715         removes a dependency of save-cwd on xgetcwd, and thereby
4716         indirectly on xalloc.  This change causes the openat substitute
4717         to fall back on save_cwd when memory is tight, and for save_cwd to
4718         fail instead of dying when memory is tight, but that's good enough.
4719         Problem and initial idea for fix reported by Bastien Roucaries in
4720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4721
4722         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4723         xalloc.h (for xmalloc).
4724         (openat_proc_name): Use malloc, not xmalloc.
4725         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4726         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4727
4728         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4729         This avoids heap allocation for file names whose lengths are in
4730         the range 512..1023, with the upper bound increasing to at most
4731         4031 depending on the platform's PATH_MAX.  (We do not want
4732         pathmax.h here as it might supply a non-constant PATH_MAX.)
4733         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4734         Perhaps they should be moved to malloca.h?
4735         (OPENAT_BUFFER_SIZE): Use them.
4736
4737 2011-01-10  Bruno Haible  <bruno@clisp.org>
4738
4739         doc: Update users.txt.
4740         * users.txt: Add recutils.
4741
4742 2011-01-09  Karl Berry  <karl@gnu.org>
4743
4744         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4745
4746         * doc/configmake.texi: New file.
4747         * doc/gnulib.texi: Include it.
4748         * modules/configmake: Move documentation from here.
4749
4750 2011-01-09  Bruno Haible  <bruno@clisp.org>
4751
4752         Update to Unicode 6.0.0.
4753         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4754         (get_lbp): Update for Unicode 6.0.0.
4755         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4756         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4757         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4758         U+11001, U+11038..U+11046. Remove U+06DE.
4759         (uc_width): Fix bounds of planes.
4760         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4761         lib/uniwidth/width.c.
4762         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4763         trailing whitespace removed.
4764         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4765         without comments, but with the original copyright notice.
4766         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4767         * lib/unicase/ignorable.h: Likewise.
4768         * lib/unicase/tocasefold.h: Likewise.
4769         * lib/unicase/tolower.h: Likewise.
4770         * lib/unicase/totitle.h: Likewise.
4771         * lib/unicase/toupper.h: Likewise.
4772         * lib/unictype/bidi_of.h: Likewise.
4773         * lib/unictype/blocks.h: Likewise.
4774         * lib/unictype/categ_C.h: Likewise.
4775         * lib/unictype/categ_Cn.h: Likewise.
4776         * lib/unictype/categ_L.h: Likewise.
4777         * lib/unictype/categ_Ll.h: Likewise.
4778         * lib/unictype/categ_Lm.h: Likewise.
4779         * lib/unictype/categ_Lo.h: Likewise.
4780         * lib/unictype/categ_Lu.h: Likewise.
4781         * lib/unictype/categ_M.h: Likewise.
4782         * lib/unictype/categ_Mc.h: Likewise.
4783         * lib/unictype/categ_Me.h: Likewise.
4784         * lib/unictype/categ_Mn.h: Likewise.
4785         * lib/unictype/categ_N.h: Likewise.
4786         * lib/unictype/categ_Nd.h: Likewise.
4787         * lib/unictype/categ_No.h: Likewise.
4788         * lib/unictype/categ_P.h: Likewise.
4789         * lib/unictype/categ_Po.h: Likewise.
4790         * lib/unictype/categ_S.h: Likewise.
4791         * lib/unictype/categ_Sc.h: Likewise.
4792         * lib/unictype/categ_Sk.h: Likewise.
4793         * lib/unictype/categ_Sm.h: Likewise.
4794         * lib/unictype/categ_So.h: Likewise.
4795         * lib/unictype/categ_of.h: Likewise.
4796         * lib/unictype/combining.h: Likewise.
4797         * lib/unictype/ctype_alnum.h: Likewise.
4798         * lib/unictype/ctype_alpha.h: Likewise.
4799         * lib/unictype/ctype_graph.h: Likewise.
4800         * lib/unictype/ctype_lower.h: Likewise.
4801         * lib/unictype/ctype_print.h: Likewise.
4802         * lib/unictype/ctype_punct.h: Likewise.
4803         * lib/unictype/ctype_upper.h: Likewise.
4804         * lib/unictype/decdigit.h: Likewise.
4805         * lib/unictype/digit.h: Likewise.
4806         * lib/unictype/numeric.h: Likewise.
4807         * lib/unictype/pr_alphabetic.h: Likewise.
4808         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4809         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4810         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4811         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4812         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4813         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4814         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4815         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4816         * lib/unictype/pr_case_ignorable.h: Likewise.
4817         * lib/unictype/pr_cased.h: Likewise.
4818         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4819         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4820         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4821         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4822         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4823         * lib/unictype/pr_combining.h: Likewise.
4824         * lib/unictype/pr_composite.h: Likewise.
4825         * lib/unictype/pr_currency_symbol.h: Likewise.
4826         * lib/unictype/pr_decimal_digit.h: Likewise.
4827         * lib/unictype/pr_deprecated.h: Likewise.
4828         * lib/unictype/pr_format_control.h: Likewise.
4829         * lib/unictype/pr_grapheme_base.h: Likewise.
4830         * lib/unictype/pr_grapheme_extend.h: Likewise.
4831         * lib/unictype/pr_grapheme_link.h: Likewise.
4832         * lib/unictype/pr_id_continue.h: Likewise.
4833         * lib/unictype/pr_id_start.h: Likewise.
4834         * lib/unictype/pr_ideographic.h: Likewise.
4835         * lib/unictype/pr_lowercase.h: Likewise.
4836         * lib/unictype/pr_math.h: Likewise.
4837         * lib/unictype/pr_numeric.h: Likewise.
4838         * lib/unictype/pr_other_alphabetic.h: Likewise.
4839         * lib/unictype/pr_other_id_continue.h: Likewise.
4840         * lib/unictype/pr_other_math.h: Likewise.
4841         * lib/unictype/pr_punctuation.h: Likewise.
4842         * lib/unictype/pr_sentence_terminal.h: Likewise.
4843         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4844         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4845         * lib/unictype/pr_unified_ideograph.h: Likewise.
4846         * lib/unictype/pr_uppercase.h: Likewise.
4847         * lib/unictype/pr_xid_continue.h: Likewise.
4848         * lib/unictype/pr_xid_start.h: Likewise.
4849         * lib/unictype/scripts.h: Likewise.
4850         * lib/unictype/scripts_byname.gperf: Likewise.
4851         * lib/unictype/sy_java_ident.h: Likewise.
4852         * lib/unigbrk/gbrkprop.h: Likewise.
4853         * lib/unilbrk/lbrkprop1.h: Likewise.
4854         * lib/unilbrk/lbrkprop2.h: Likewise.
4855         * lib/uninorm/decomposition-table2.h: Likewise.
4856         * lib/uniwbrk/wbrkprop.h: Likewise.
4857         * tests/unicase/test-cased.c: Likewise.
4858         * tests/unicase/test-ignorable.c: Likewise.
4859         * tests/unicase/test-uc_tolower.c: Likewise.
4860         * tests/unicase/test-uc_totitle.c: Likewise.
4861         * tests/unicase/test-uc_toupper.c: Likewise.
4862         * tests/unictype/test-categ_C.c: Likewise.
4863         * tests/unictype/test-categ_Cn.c: Likewise.
4864         * tests/unictype/test-categ_L.c: Likewise.
4865         * tests/unictype/test-categ_Ll.c: Likewise.
4866         * tests/unictype/test-categ_Lm.c: Likewise.
4867         * tests/unictype/test-categ_Lo.c: Likewise.
4868         * tests/unictype/test-categ_Lu.c: Likewise.
4869         * tests/unictype/test-categ_M.c: Likewise.
4870         * tests/unictype/test-categ_Mc.c: Likewise.
4871         * tests/unictype/test-categ_Me.c: Likewise.
4872         * tests/unictype/test-categ_Mn.c: Likewise.
4873         * tests/unictype/test-categ_N.c: Likewise.
4874         * tests/unictype/test-categ_Nd.c: Likewise.
4875         * tests/unictype/test-categ_No.c: Likewise.
4876         * tests/unictype/test-categ_P.c: Likewise.
4877         * tests/unictype/test-categ_Po.c: Likewise.
4878         * tests/unictype/test-categ_S.c: Likewise.
4879         * tests/unictype/test-categ_Sc.c: Likewise.
4880         * tests/unictype/test-categ_Sk.c: Likewise.
4881         * tests/unictype/test-categ_Sm.c: Likewise.
4882         * tests/unictype/test-categ_So.c: Likewise.
4883         * tests/unictype/test-ctype_alnum.c: Likewise.
4884         * tests/unictype/test-ctype_alpha.c: Likewise.
4885         * tests/unictype/test-ctype_graph.c: Likewise.
4886         * tests/unictype/test-ctype_lower.c: Likewise.
4887         * tests/unictype/test-ctype_print.c: Likewise.
4888         * tests/unictype/test-ctype_punct.c: Likewise.
4889         * tests/unictype/test-ctype_upper.c: Likewise.
4890         * tests/unictype/test-decdigit.h: Likewise.
4891         * tests/unictype/test-digit.h: Likewise.
4892         * tests/unictype/test-numeric.h: Likewise.
4893         * tests/unictype/test-pr_alphabetic.c: Likewise.
4894         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4895         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4896         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4897         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4898         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4899         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4900         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4901         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4902         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4903         * tests/unictype/test-pr_cased.c: Likewise.
4904         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4905         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4906         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4907         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4908         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4909         * tests/unictype/test-pr_combining.c: Likewise.
4910         * tests/unictype/test-pr_composite.c: Likewise.
4911         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4912         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4913         * tests/unictype/test-pr_deprecated.c: Likewise.
4914         * tests/unictype/test-pr_format_control.c: Likewise.
4915         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4916         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4917         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4918         * tests/unictype/test-pr_id_continue.c: Likewise.
4919         * tests/unictype/test-pr_id_start.c: Likewise.
4920         * tests/unictype/test-pr_ideographic.c: Likewise.
4921         * tests/unictype/test-pr_lowercase.c: Likewise.
4922         * tests/unictype/test-pr_math.c: Likewise.
4923         * tests/unictype/test-pr_numeric.c: Likewise.
4924         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4925         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4926         * tests/unictype/test-pr_other_math.c: Likewise.
4927         * tests/unictype/test-pr_punctuation.c: Likewise.
4928         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4929         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4930         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4931         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4932         * tests/unictype/test-pr_uppercase.c: Likewise.
4933         * tests/unictype/test-pr_xid_continue.c: Likewise.
4934         * tests/unictype/test-pr_xid_start.c: Likewise.
4935         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4936         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4937         changes.
4938         * lib/unictype/categ_Cc.h: Likewise.
4939         * lib/unictype/categ_Cf.h: Likewise.
4940         * lib/unictype/categ_Co.h: Likewise.
4941         * lib/unictype/categ_Cs.h: Likewise.
4942         * lib/unictype/categ_Lt.h: Likewise.
4943         * lib/unictype/categ_Nl.h: Likewise.
4944         * lib/unictype/categ_Pc.h: Likewise.
4945         * lib/unictype/categ_Pd.h: Likewise.
4946         * lib/unictype/categ_Pe.h: Likewise.
4947         * lib/unictype/categ_Pf.h: Likewise.
4948         * lib/unictype/categ_Pi.h: Likewise.
4949         * lib/unictype/categ_Ps.h: Likewise.
4950         * lib/unictype/categ_Z.h: Likewise.
4951         * lib/unictype/categ_Zl.h: Likewise.
4952         * lib/unictype/categ_Zp.h: Likewise.
4953         * lib/unictype/categ_Zs.h: Likewise.
4954         * lib/unictype/ctype_blank.h: Likewise.
4955         * lib/unictype/ctype_cntrl.h: Likewise.
4956         * lib/unictype/ctype_digit.h: Likewise.
4957         * lib/unictype/ctype_space.h: Likewise.
4958         * lib/unictype/ctype_xdigit.h: Likewise.
4959         * lib/unictype/mirror.h: Likewise.
4960         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4961         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4962         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4963         * lib/unictype/pr_bidi_control.h: Likewise.
4964         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4965         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4966         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4967         * lib/unictype/pr_bidi_pdf.h: Likewise.
4968         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4969         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4970         * lib/unictype/pr_dash.h: Likewise.
4971         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4972         * lib/unictype/pr_diacritic.h: Likewise.
4973         * lib/unictype/pr_extender.h: Likewise.
4974         * lib/unictype/pr_hex_digit.h: Likewise.
4975         * lib/unictype/pr_hyphen.h: Likewise.
4976         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4977         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4978         * lib/unictype/pr_ignorable_control.h: Likewise.
4979         * lib/unictype/pr_iso_control.h: Likewise.
4980         * lib/unictype/pr_join_control.h: Likewise.
4981         * lib/unictype/pr_left_of_pair.h: Likewise.
4982         * lib/unictype/pr_line_separator.h: Likewise.
4983         * lib/unictype/pr_logical_order_exception.h: Likewise.
4984         * lib/unictype/pr_non_break.h: Likewise.
4985         * lib/unictype/pr_not_a_character.h: Likewise.
4986         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4987         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4988         * lib/unictype/pr_other_id_start.h: Likewise.
4989         * lib/unictype/pr_other_lowercase.h: Likewise.
4990         * lib/unictype/pr_other_uppercase.h: Likewise.
4991         * lib/unictype/pr_paired_punctuation.h: Likewise.
4992         * lib/unictype/pr_paragraph_separator.h: Likewise.
4993         * lib/unictype/pr_pattern_syntax.h: Likewise.
4994         * lib/unictype/pr_pattern_white_space.h: Likewise.
4995         * lib/unictype/pr_private_use.h: Likewise.
4996         * lib/unictype/pr_quotation_mark.h: Likewise.
4997         * lib/unictype/pr_radical.h: Likewise.
4998         * lib/unictype/pr_soft_dotted.h: Likewise.
4999         * lib/unictype/pr_space.h: Likewise.
5000         * lib/unictype/pr_titlecase.h: Likewise.
5001         * lib/unictype/pr_variation_selector.h: Likewise.
5002         * lib/unictype/pr_white_space.h: Likewise.
5003         * lib/unictype/pr_zero_width.h: Likewise.
5004         * lib/unictype/sy_c_ident.h: Likewise.
5005         * lib/unictype/sy_c_whitespace.h: Likewise.
5006         * lib/unictype/sy_java_whitespace.h: Likewise.
5007         * lib/uninorm/composition-table.gperf: Likewise.
5008         * lib/uninorm/decomposition-table1.h: Likewise.
5009         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5010         LB8.
5011         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5012         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5013         * modules/unictype/*: Bump version number of expected libunistring
5014         version.
5015
5016 2011-01-09  Bruno Haible  <bruno@clisp.org>
5017
5018         Update to Unicode 5.2.0.
5019         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5020         trailing whitespace removed.
5021
5022 2011-01-09  Bruno Haible  <bruno@clisp.org>
5023
5024         New Unicode character properties, from Unicode 5.2.0.
5025         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5026         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5027         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5028         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5029         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5030         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5031         uc_is_property_cased, uc_is_property_case_ignorable,
5032         uc_is_property_changes_when_lowercased,
5033         uc_is_property_changes_when_uppercased,
5034         uc_is_property_changes_when_titlecased,
5035         uc_is_property_changes_when_casefolded,
5036         uc_is_property_changes_when_casemapped): New declarations.
5037         * lib/unictype/pr_byname.gperf: Add the new properties.
5038         * modules/unictype/property-byname (Depends-on): Depend on the new
5039         properties modules.
5040         * modules/unictype/property-all (Depends-on): Likewise.
5041         * MODULES.html.sh (Unicode string functions): Add
5042         unictype/property-case-ignorable, unictype/property-cased,
5043         unictype/property-changes-when-casefolded,
5044         unictype/property-changes-when-casemapped,
5045         unictype/property-changes-when-lowercased,
5046         unictype/property-changes-when-titlecased,
5047         unictype/property-changes-when-uppercased.
5048
5049         New module 'unictype/property-changes-when-casemapped'.
5050         * modules/unictype/property-changes-when-casemapped: New file.
5051         * lib/unictype/pr_changes_when_casemapped.c: New file.
5052         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5053         generated by gen-uni-tables.
5054         * modules/unictype/property-changes-when-casemapped-tests: New file.
5055         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5056         automatically generated by gen-uni-tables.
5057
5058         New module 'unictype/property-changes-when-casefolded'.
5059         * modules/unictype/property-changes-when-casefolded: New file.
5060         * lib/unictype/pr_changes_when_casefolded.c: New file.
5061         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5062         generated by gen-uni-tables.
5063         * modules/unictype/property-changes-when-casefolded-tests: New file.
5064         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5065         automatically generated by gen-uni-tables.
5066
5067         New module 'unictype/property-changes-when-titlecased'.
5068         * modules/unictype/property-changes-when-titlecased: New file.
5069         * lib/unictype/pr_changes_when_titlecased.c: New file.
5070         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5071         generated by gen-uni-tables.
5072         * modules/unictype/property-changes-when-titlecased-tests: New file.
5073         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5074         automatically generated by gen-uni-tables.
5075
5076         New module 'unictype/property-changes-when-uppercased'.
5077         * modules/unictype/property-changes-when-uppercased: New file.
5078         * lib/unictype/pr_changes_when_uppercased.c: New file.
5079         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5080         generated by gen-uni-tables.
5081         * modules/unictype/property-changes-when-uppercased-tests: New file.
5082         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5083         automatically generated by gen-uni-tables.
5084
5085         New module 'unictype/property-changes-when-lowercased'.
5086         * modules/unictype/property-changes-when-lowercased: New file.
5087         * lib/unictype/pr_changes_when_lowercased.c: New file.
5088         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5089         generated by gen-uni-tables.
5090         * modules/unictype/property-changes-when-lowercased-tests: New file.
5091         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5092         automatically generated by gen-uni-tables.
5093
5094         New module 'unictype/property-case-ignorable'.
5095         * modules/unictype/property-case-ignorable: New file.
5096         * lib/unictype/pr_case_ignorable.c: New file.
5097         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5098         by gen-uni-tables.
5099         * modules/unictype/property-case-ignorable-tests: New file.
5100         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5101         generated by gen-uni-tables.
5102
5103         New module 'unictype/property-cased'.
5104         * modules/unictype/property-cased: New file.
5105         * lib/unictype/pr_cased.c: New file.
5106         * lib/unictype/pr_cased.h: New file, automatically generated by
5107         gen-uni-tables.
5108         * modules/unictype/property-cased-tests: New file.
5109         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5110         gen-uni-tables.
5111
5112 2011-01-09  Bruno Haible  <bruno@clisp.org>
5113
5114         Update to Unicode 5.2.0.
5115         * lib/gen-uni-tables.c (output_predicate, output_category,
5116         output_combclass, output_bidi_category, output_decimal_digit_test,
5117         output_decimal_digit, output_digit_test, output_digit,
5118         output_numeric_test, output_numeric, output_mirror, output_scripts,
5119         output_scripts_byname, output_blocks, output_ident_category): Fix
5120         comment header.
5121         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5122         get_wbp.
5123         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5124         items.
5125         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5126         Changes_When_Lowercased, Changes_When_Uppercased,
5127         Changes_When_Titlecased, Changes_When_Casefolded,
5128         Changes_When_Casemapped.
5129         (is_property_alphabetic, is_property_default_ignorable_code_point):
5130         Update for Unicode 5.2.0.
5131         (is_property_cased, is_property_case_ignorable,
5132         is_property_changes_when_lowercased,
5133         is_property_changes_when_uppercased,
5134         is_property_changes_when_titlecased,
5135         is_property_changes_when_casefolded,
5136         is_property_changes_when_casemapped): New functions.
5137         (output_properties): Output also the properties cased, case_ignorable,
5138         changes_when_lowercased, changes_when_uppercased,
5139         changes_when_titlecased, changes_when_casefolded,
5140         changes_when_casemapped.
5141         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5142         Unicode TR#11 revision 17 -> 19.
5143         (LBP_CP): New enumeration value.
5144         (LBP_*): Adjust values accordingly.
5145         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5146         TR#14 revision 22 -> 24.
5147         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5148         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5149         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5150         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5151         is_WBP_MIDLETTER.
5152         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5153         the code1 and code2 of each composition rule.
5154         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5155         * lib/unicase/ignorable.h: Likewise.
5156         * lib/unicase/tocasefold.h: Likewise.
5157         * lib/unicase/tolower.h: Likewise.
5158         * lib/unicase/totitle.h: Likewise.
5159         * lib/unicase/toupper.h: Likewise.
5160         * lib/unictype/bidi_of.h: Likewise.
5161         * lib/unictype/blocks.h: Likewise.
5162         * lib/unictype/categ_C.h: Likewise.
5163         * lib/unictype/categ_Cf.h: Likewise.
5164         * lib/unictype/categ_Cn.h: Likewise.
5165         * lib/unictype/categ_L.h: Likewise.
5166         * lib/unictype/categ_Ll.h: Likewise.
5167         * lib/unictype/categ_Lm.h: Likewise.
5168         * lib/unictype/categ_Lo.h: Likewise.
5169         * lib/unictype/categ_Lu.h: Likewise.
5170         * lib/unictype/categ_M.h: Likewise.
5171         * lib/unictype/categ_Mc.h: Likewise.
5172         * lib/unictype/categ_Mn.h: Likewise.
5173         * lib/unictype/categ_N.h: Likewise.
5174         * lib/unictype/categ_Nd.h: Likewise.
5175         * lib/unictype/categ_Nl.h: Likewise.
5176         * lib/unictype/categ_No.h: Likewise.
5177         * lib/unictype/categ_P.h: Likewise.
5178         * lib/unictype/categ_Pd.h: Likewise.
5179         * lib/unictype/categ_Po.h: Likewise.
5180         * lib/unictype/categ_S.h: Likewise.
5181         * lib/unictype/categ_Sc.h: Likewise.
5182         * lib/unictype/categ_So.h: Likewise.
5183         * lib/unictype/categ_of.h: Likewise.
5184         * lib/unictype/combining.h: Likewise.
5185         * lib/unictype/ctype_alnum.h: Likewise.
5186         * lib/unictype/ctype_alpha.h: Likewise.
5187         * lib/unictype/ctype_graph.h: Likewise.
5188         * lib/unictype/ctype_lower.h: Likewise.
5189         * lib/unictype/ctype_print.h: Likewise.
5190         * lib/unictype/ctype_punct.h: Likewise.
5191         * lib/unictype/ctype_upper.h: Likewise.
5192         * lib/unictype/decdigit.h: Likewise.
5193         * lib/unictype/digit.h: Likewise.
5194         * lib/unictype/numeric.h: Likewise.
5195         * lib/unictype/pr_alphabetic.h: Likewise.
5196         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5197         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5198         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5199         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5200         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5201         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5202         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5203         * lib/unictype/pr_combining.h: Likewise.
5204         * lib/unictype/pr_composite.h: Likewise.
5205         * lib/unictype/pr_currency_symbol.h: Likewise.
5206         * lib/unictype/pr_dash.h: Likewise.
5207         * lib/unictype/pr_decimal_digit.h: Likewise.
5208         * lib/unictype/pr_deprecated.h: Likewise.
5209         * lib/unictype/pr_diacritic.h: Likewise.
5210         * lib/unictype/pr_extender.h: Likewise.
5211         * lib/unictype/pr_grapheme_base.h: Likewise.
5212         * lib/unictype/pr_grapheme_extend.h: Likewise.
5213         * lib/unictype/pr_grapheme_link.h: Likewise.
5214         * lib/unictype/pr_id_continue.h: Likewise.
5215         * lib/unictype/pr_id_start.h: Likewise.
5216         * lib/unictype/pr_ideographic.h: Likewise.
5217         * lib/unictype/pr_ignorable_control.h: Likewise.
5218         * lib/unictype/pr_logical_order_exception.h: Likewise.
5219         * lib/unictype/pr_lowercase.h: Likewise.
5220         * lib/unictype/pr_numeric.h: Likewise.
5221         * lib/unictype/pr_other_alphabetic.h: Likewise.
5222         * lib/unictype/pr_punctuation.h: Likewise.
5223         * lib/unictype/pr_sentence_terminal.h: Likewise.
5224         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5225         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5226         * lib/unictype/pr_unified_ideograph.h: Likewise.
5227         * lib/unictype/pr_uppercase.h: Likewise.
5228         * lib/unictype/pr_xid_continue.h: Likewise.
5229         * lib/unictype/pr_xid_start.h: Likewise.
5230         * lib/unictype/pr_zero_width.h: Likewise.
5231         * lib/unictype/scripts.h: Likewise.
5232         * lib/unictype/scripts_byname.gperf: Likewise.
5233         * lib/unictype/sy_java_ident.h: Likewise.
5234         * lib/unigbrk/gbrkprop.h: Likewise.
5235         * lib/unilbrk/lbrkprop1.h: Likewise.
5236         * lib/unilbrk/lbrkprop2.h: Likewise.
5237         * lib/unilbrk/lbrktables.h: Likewise.
5238         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5239         LBP_CP. Implement rule LB30.
5240         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5241         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5242         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5243         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5244         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5245         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5246         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5247         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5248         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5249         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5250         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5251         bits instead of 16 bits in the code1 and code2 of each composition
5252         rule.
5253         (uc_composition): Update for Unicode 5.2.0.
5254         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5255         * lib/uninorm/decomposition-table2.h: Likewise.
5256         * lib/uniwbrk/wbrkprop.h: Likewise.
5257         * tests/unicase/test-cased.c: Likewise.
5258         * tests/unicase/test-ignorable.c: Likewise.
5259         * tests/unicase/test-uc_tolower.c: Likewise.
5260         * tests/unicase/test-uc_totitle.c: Likewise.
5261         * tests/unicase/test-uc_toupper.c: Likewise.
5262         * tests/unictype/test-categ_C.c: Likewise.
5263         * tests/unictype/test-categ_Cf.c: Likewise.
5264         * tests/unictype/test-categ_Cn.c: Likewise.
5265         * tests/unictype/test-categ_L.c: Likewise.
5266         * tests/unictype/test-categ_Ll.c: Likewise.
5267         * tests/unictype/test-categ_Lm.c: Likewise.
5268         * tests/unictype/test-categ_Lo.c: Likewise.
5269         * tests/unictype/test-categ_Lu.c: Likewise.
5270         * tests/unictype/test-categ_M.c: Likewise.
5271         * tests/unictype/test-categ_Mc.c: Likewise.
5272         * tests/unictype/test-categ_Mn.c: Likewise.
5273         * tests/unictype/test-categ_N.c: Likewise.
5274         * tests/unictype/test-categ_Nd.c: Likewise.
5275         * tests/unictype/test-categ_Nl.c: Likewise.
5276         * tests/unictype/test-categ_No.c: Likewise.
5277         * tests/unictype/test-categ_P.c: Likewise.
5278         * tests/unictype/test-categ_Pd.c: Likewise.
5279         * tests/unictype/test-categ_Po.c: Likewise.
5280         * tests/unictype/test-categ_S.c: Likewise.
5281         * tests/unictype/test-categ_Sc.c: Likewise.
5282         * tests/unictype/test-categ_So.c: Likewise.
5283         * tests/unictype/test-ctype_alnum.c: Likewise.
5284         * tests/unictype/test-ctype_alpha.c: Likewise.
5285         * tests/unictype/test-ctype_graph.c: Likewise.
5286         * tests/unictype/test-ctype_lower.c: Likewise.
5287         * tests/unictype/test-ctype_print.c: Likewise.
5288         * tests/unictype/test-ctype_punct.c: Likewise.
5289         * tests/unictype/test-ctype_upper.c: Likewise.
5290         * tests/unictype/test-decdigit.h: Likewise.
5291         * tests/unictype/test-digit.h: Likewise.
5292         * tests/unictype/test-numeric.h: Likewise.
5293         * tests/unictype/test-pr_alphabetic.c: Likewise.
5294         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5295         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5296         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5297         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5298         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5299         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5300         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5301         * tests/unictype/test-pr_combining.c: Likewise.
5302         * tests/unictype/test-pr_composite.c: Likewise.
5303         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5304         * tests/unictype/test-pr_dash.c: Likewise.
5305         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5306         * tests/unictype/test-pr_deprecated.c: Likewise.
5307         * tests/unictype/test-pr_diacritic.c: Likewise.
5308         * tests/unictype/test-pr_extender.c: Likewise.
5309         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5310         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5311         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5312         * tests/unictype/test-pr_id_continue.c: Likewise.
5313         * tests/unictype/test-pr_id_start.c: Likewise.
5314         * tests/unictype/test-pr_ideographic.c: Likewise.
5315         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5316         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5317         * tests/unictype/test-pr_lowercase.c: Likewise.
5318         * tests/unictype/test-pr_numeric.c: Likewise.
5319         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5320         * tests/unictype/test-pr_punctuation.c: Likewise.
5321         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5322         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5323         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5324         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5325         * tests/unictype/test-pr_uppercase.c: Likewise.
5326         * tests/unictype/test-pr_xid_continue.c: Likewise.
5327         * tests/unictype/test-pr_xid_start.c: Likewise.
5328         * tests/unictype/test-pr_zero_width.c: Likewise.
5329         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5330         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5331         changed behaviour: line breaking is now disallowed between a letter
5332         or '=' and '('.
5333         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5334         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5335         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5336         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5337         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5338         lib/uniwidth/width.c.
5339         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5340         without comments, but with the original copyright notice.
5341         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5342         changes.
5343         * lib/unictype/categ_Cc.h: Likewise.
5344         * lib/unictype/categ_Co.h: Likewise.
5345         * lib/unictype/categ_Cs.h: Likewise.
5346         * lib/unictype/categ_Lt.h: Likewise.
5347         * lib/unictype/categ_Me.h: Likewise.
5348         * lib/unictype/categ_Pc.h: Likewise.
5349         * lib/unictype/categ_Pe.h: Likewise.
5350         * lib/unictype/categ_Pf.h: Likewise.
5351         * lib/unictype/categ_Pi.h: Likewise.
5352         * lib/unictype/categ_Ps.h: Likewise.
5353         * lib/unictype/categ_Sk.h: Likewise.
5354         * lib/unictype/categ_Sm.h: Likewise.
5355         * lib/unictype/categ_Z.h: Likewise.
5356         * lib/unictype/categ_Zl.h: Likewise.
5357         * lib/unictype/categ_Zp.h: Likewise.
5358         * lib/unictype/categ_Zs.h: Likewise.
5359         * lib/unictype/ctype_blank.h: Likewise.
5360         * lib/unictype/ctype_cntrl.h: Likewise.
5361         * lib/unictype/ctype_digit.h: Likewise.
5362         * lib/unictype/ctype_space.h: Likewise.
5363         * lib/unictype/ctype_xdigit.h: Likewise.
5364         * lib/unictype/mirror.h: Likewise.
5365         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5366         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5367         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5368         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5369         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5370         * lib/unictype/pr_bidi_control.h: Likewise.
5371         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5372         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5373         * lib/unictype/pr_bidi_pdf.h: Likewise.
5374         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5375         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5376         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5377         * lib/unictype/pr_format_control.h: Likewise.
5378         * lib/unictype/pr_hex_digit.h: Likewise.
5379         * lib/unictype/pr_hyphen.h: Likewise.
5380         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5381         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5382         * lib/unictype/pr_iso_control.h: Likewise.
5383         * lib/unictype/pr_join_control.h: Likewise.
5384         * lib/unictype/pr_left_of_pair.h: Likewise.
5385         * lib/unictype/pr_line_separator.h: Likewise.
5386         * lib/unictype/pr_math.h: Likewise.
5387         * lib/unictype/pr_non_break.h: Likewise.
5388         * lib/unictype/pr_not_a_character.h: Likewise.
5389         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5390         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5391         * lib/unictype/pr_other_id_continue.h: Likewise.
5392         * lib/unictype/pr_other_id_start.h: Likewise.
5393         * lib/unictype/pr_other_lowercase.h: Likewise.
5394         * lib/unictype/pr_other_math.h: Likewise.
5395         * lib/unictype/pr_other_uppercase.h: Likewise.
5396         * lib/unictype/pr_paired_punctuation.h: Likewise.
5397         * lib/unictype/pr_paragraph_separator.h: Likewise.
5398         * lib/unictype/pr_pattern_syntax.h: Likewise.
5399         * lib/unictype/pr_pattern_white_space.h: Likewise.
5400         * lib/unictype/pr_private_use.h: Likewise.
5401         * lib/unictype/pr_quotation_mark.h: Likewise.
5402         * lib/unictype/pr_radical.h: Likewise.
5403         * lib/unictype/pr_soft_dotted.h: Likewise.
5404         * lib/unictype/pr_space.h: Likewise.
5405         * lib/unictype/pr_titlecase.h: Likewise.
5406         * lib/unictype/pr_variation_selector.h: Likewise.
5407         * lib/unictype/pr_white_space.h: Likewise.
5408         * lib/unictype/sy_c_ident.h: Likewise.
5409         * lib/unictype/sy_c_whitespace.h: Likewise.
5410         * lib/unictype/sy_java_whitespace.h: Likewise.
5411         * modules/uni*/*: Bump version number of expected libunistring version.
5412         Reported by Simon Josefsson.
5413
5414 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5415
5416         useless-if-before-free: fix typo in --help and make the internal,
5417         automatic version date update process work once again.
5418         --help output contained a NUL character instead of the
5419         backslash-zero that was intended.  Also, the "must lie within
5420         the first 8 lines" line is on line 9, and hence not getting
5421         automatically updated.
5422         * build-aux/useless-if-before-free: Fix the former by adding a
5423         backslash, and the latter by condensing the three lines of what-it-does
5424         to a single line, leaving one line of slack for the future.
5425
5426 2011-01-09  Bruno Haible  <bruno@clisp.org>
5427
5428         uniwidth/width: Fix width of U+1D173..U+1D17A.
5429         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5430         symbolic_width, output_width_property_test): New functions.
5431         (main): Invoke output_nonspacing_property, output_width_property_test.
5432         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5433         U+1D173..U+1D17A.
5434         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5435         1.
5436         * modules/uniwidth/*: Bump version number of expected libunistring
5437         version.
5438         * modules/unilbrk/*: Likewise.
5439
5440 2011-01-08  Bruno Haible  <bruno@clisp.org>
5441
5442         uninorm tests: Preserve copyright of Unicode data file.
5443         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5444         Mention modifications.
5445
5446 2011-01-08  Bruno Haible  <bruno@clisp.org>
5447
5448         gen-uni-tables: Prepare for Unicode 5.2.0.
5449         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5450         (debug_output_lbp, output_lbp): Update.
5451
5452 2011-01-08  Bruno Haible  <bruno@clisp.org>
5453
5454         unilbrk: Clarify gen-uni-tables.c code.
5455         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5456         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5457         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5458
5459 2011-01-07  Bruno Haible  <bruno@clisp.org>
5460
5461         strtod: Restore errno when successfully parsing Infinity or NaN.
5462         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5463         restore the original errno.
5464
5465 2011-01-07  Bruno Haible  <bruno@clisp.org>
5466
5467         remove test: Avoid failure on HP-UX 11.
5468         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5469
5470 2011-01-07  Bruno Haible  <bruno@clisp.org>
5471
5472         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5473         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5474         error code.
5475
5476 2011-01-07  Pádraig Brady <P@draigBrady.com>
5477
5478         ignore-value: fixup comments, and add Eric Blake
5479         as an author since he rewrote the macros.
5480         * lib/ignore-value.h (ignore_value):  State that
5481         we now support aggregates.  Also specify exactly
5482         when the GCC warn_unused_result feature was added.
5483
5484 2011-01-06  Eric Blake  <eblake@redhat.com>
5485
5486         ignore-value: support aggregate types
5487         * lib/ignore-value.h (ignore_value): Provide separate gcc
5488         definition.
5489         * modules/ignore-value-tests: New test module.
5490         * tests/test-ignore-value.c: New test.
5491
5492         maint.mk: improve sc_prohibit_strcmp regex
5493         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5494         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5495         definition of STRNEQ.
5496
5497         signal: work around Haiku issue with SIGBUS
5498         * lib/siglist.h: Add comment.
5499         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5500         strsignal's favoring of SIGSEGV.
5501         * tests/test-signal.c (main): Avoid test failure.
5502         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5503         Reported by Scott McCreary.
5504
5505         maint.mk: add pre-release check to ensure submodule commits are public
5506         * top/maint.mk (public-submodule-commit): New rule.
5507         (submodule-checks): New variable.
5508         (alpha beta stable): Depend on the variable.
5509
5510 2011-01-05  Pádraig Brady <P@draigBrady.com>
5511         and Jim Meyering  <meyering@redhat.com>
5512
5513         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5514         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5515         (ATTRIBUTE_DEPRECATED): Define.
5516         (_ignore_case): New function.
5517         (ignore_value): New macro, to replace the old function.
5518         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5519         * modules/ignore-value (Depends-on): Add stdint.
5520
5521 2011-01-04  Eric Blake  <eblake@redhat.com>
5522
5523         doc: regenerate INSTALL
5524         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5525         @firstparagraphindent support, now that autoconf dropped it.
5526         (INSTALL_PRELUDE): Reinstate old macro.
5527         * doc/install.texi: Resync from autoconf.
5528         * doc/INSTALL: Reflect recent autoconf update.
5529         * doc/INSTALL.ISO: Likewise.
5530         * doc/INSTALL.UTF-8: Likewise.
5531         Reported by Karl Berry.
5532
5533 2011-01-04  Bruce Korb  <address@hidden>
5534
5535         git-version-gen: avoid a sub-shell
5536         * build-aux/git-version-gen: Redirect stderr in `...` via
5537         "exec 2>...", rather than via an added sub-shell.
5538
5539 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5540
5541         git-version-gen: use (...) rather than sh -c '...'
5542         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5543         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5544
5545 2011-01-03  Jim Meyering  <meyering@redhat.com>
5546
5547         git-version-gen: convert leading TABs to spaces
5548         * build-aux/git-version-gen: Expand leading TABs.
5549
5550         git-version-gen: handle failed "git rev-list"
5551         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5552         from git and proceeding as if it had succeeded but printed no SHA1
5553         checksums, suppress the diagnostic and handle the failure.
5554         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5555
5556         git-version-gen: include command name in one more diagnostic
5557         * build-aux/git-version-gen: When the required .tarball-version file
5558         was missing or unreadable, you might see the diagnostic from "cat",
5559         but no trace of the name of the invoking script.  Now, you still see
5560         the diagnostic from cat, but also get one from "git-version-gen: ".
5561         Inspired by a patch from Bruce Korb.
5562
5563         update-copyright: adjust test to match changed code
5564         * tests/test-update-copyright.sh: Change test's expected output
5565         to match new actual output.
5566
5567 2011-01-02  Bruno Haible  <bruno@clisp.org>
5568
5569         getlogin_r: Avoid test failure on HP-UX 11.
5570         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5571         ERANGE when the second argument is zero.
5572         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5573         portability problem.
5574
5575 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5576
5577         * build-aux/update-copyright: doc Simon's changes
5578
5579 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5580
5581         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5582         environment variable.
5583
5584 2011-01-02  Bruno Haible  <bruno@clisp.org>
5585
5586         unigbrk: Avoid gcc warnings.
5587         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5588         unused variable.
5589         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5590         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5591         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5592         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5593         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5594         Change type of first argument to 'const char *'.
5595         (main): Remove unused variable.
5596         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5597         type of first argument to 'const char *'.
5598         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5599         Likewise.
5600         (main): Change type of variable 's'.
5601         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5602         to 'int'.
5603
5604 2011-01-02  Bruno Haible  <bruno@clisp.org>
5605
5606         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5607         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5608         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5609         bug.
5610         * lib/pwrite.c: Undo 2010-12-31 patch.
5611         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5612
5613 2011-01-02  Bruno Haible  <bruno@clisp.org>
5614
5615         pread: Fix test whether it works.
5616         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5617
5618 2011-01-02  Bruno Haible  <bruno@clisp.org>
5619
5620         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5621         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5622         ends in "6". Don't require a specific month name. Try also the locale
5623         names found on HP-UX 11 and Solaris 7.
5624
5625 2011-01-02  Bruno Haible  <bruno@clisp.org>
5626
5627         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5628         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5629         C linkage.
5630         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5631
5632 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5633
5634         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5635         for consistency, since the "cluster" term is not used elsewhere.
5636         * lib/unigbrk.in.h: Update name.
5637         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5638         * lib/unigbrk/u16-grapheme-next.c: Update name.
5639         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5640         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5641         * lib/unigbrk/u32-grapheme-next.c: Update name.
5642         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5643         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5644         * lib/unigbrk/u8-grapheme-next.c: Update name.
5645         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5646         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5647         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5648         Suggested by Bruno Haible.
5649
5650 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5651
5652         Remove module 'u8-grapheme-len' as too redundant with
5653         'u8-grapheme-next'.
5654         * modules/unigbrk/u8-grapheme-len: Delete file.
5655         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5656         * lib/unigbrk.in.h: Remove prototype for deleted function.
5657         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5658         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5659
5660         Remove module 'u16-grapheme-len' as too redundant with
5661         'u16-grapheme-next'.
5662         * modules/unigbrk/u16-grapheme-len: Delete file.
5663         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5664         * lib/unigbrk.in.h: Remove prototype for deleted function.
5665         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5666         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5667
5668         Remove module 'u32-grapheme-len' as too redundant with
5669         'u32-grapheme-next'.
5670         * modules/unigbrk/u32-grapheme-len: Delete file.
5671         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5672         * lib/unigbrk.in.h: Remove prototype for deleted function.
5673         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5674         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5675
5676         Suggested by Bruno Haible.
5677
5678 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5679
5680         * unigbrk.in.h: Fix typo: "ben" => "been".
5681         Reported by Bruno Haible.
5682
5683 2011-01-01  Jim Meyering  <meyering@redhat.com>
5684
5685         maint: update almost all copyright ranges to include 2011
5686         Run the new "make update-copyright" rule.
5687
5688 2011-01-01  Jim Meyering  <meyering@redhat.com>
5689
5690         maint: update-copyright: exempt doc/INSTALL*
5691         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5692         since they are generated.  Suggested by Bruno Haible.
5693
5694 2011-01-01  Jim Meyering  <meyering@redhat.com>
5695
5696         maint: refine the update-copyright rule
5697         * Makefile (update-copyright): Also exclude any file that includes
5698         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5699         code that merely generates the comment.
5700
5701 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5702
5703         New module 'u8-grapheme-len'.
5704         * modules/unigbrk/u8-grapheme-len: New file.
5705         * modules/unigbrk/u8-grapheme-len-tests: New file.
5706         * lib/unigbrk.in.h: Add prototype for new function.
5707         * lib/unigbrk/u8-grapheme-len.c: New file.
5708         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5709
5710         New module 'u16-grapheme-len'.
5711         * modules/unigbrk/u16-grapheme-len: New file.
5712         * modules/unigbrk/u16-grapheme-len-tests: New file.
5713         * lib/unigbrk.in.h: Add prototype for new function.
5714         * lib/unigbrk/u16-grapheme-len.c: New file.
5715         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5716
5717         New module 'u32-grapheme-len'.
5718         * modules/unigbrk/u32-grapheme-len: New file.
5719         * modules/unigbrk/u32-grapheme-len-tests: New file.
5720         * lib/unigbrk.in.h: Add prototype for new function.
5721         * lib/unigbrk/u32-grapheme-len.c: New file.
5722         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5723
5724         New module 'u8-grapheme-next'.
5725         * modules/unigbrk/u8-grapheme-next: New file.
5726         * modules/unigbrk/u8-grapheme-next-tests: New file.
5727         * lib/unigbrk.in.h: Add prototype for new function.
5728         * lib/unigbrk/u8-grapheme-next.c: New file.
5729         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5730
5731         New module 'u16-grapheme-next'.
5732         * modules/unigbrk/u16-grapheme-next: New file.
5733         * modules/unigbrk/u16-grapheme-next-tests: New file.
5734         * lib/unigbrk.in.h: Add prototype for new function.
5735         * lib/unigbrk/u16-grapheme-next.c: New file.
5736         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5737
5738         New module 'u32-grapheme-next'.
5739         * modules/unigbrk/u32-grapheme-next: New file.
5740         * modules/unigbrk/u32-grapheme-next-tests: New file.
5741         * lib/unigbrk.in.h: Add prototype for new function.
5742         * lib/unigbrk/u32-grapheme-next.c: New file.
5743         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5744
5745         New module 'u8-grapheme-prev'.
5746         * modules/unigbrk/u8-grapheme-prev: New file.
5747         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5748         * lib/unigbrk.in.h: Add prototype for new function.
5749         * lib/unigbrk/u8-grapheme-prev.c: New file.
5750         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5751
5752         New module 'u16-grapheme-prev'.
5753         * modules/unigbrk/u16-grapheme-prev: New file.
5754         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5755         * lib/unigbrk.in.h: Add prototype for new function.
5756         * lib/unigbrk/u16-grapheme-prev.c: New file.
5757         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5758
5759         New module 'u32-grapheme-prev'.
5760         * modules/unigbrk/u32-grapheme-prev: New file.
5761         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5762         * lib/unigbrk.in.h: Add prototype for new function.
5763         * lib/unigbrk/u32-grapheme-prev.c: New file.
5764         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5765
5766         New module 'u8-grapheme-breaks'.
5767         * modules/unigbrk/u8-grapheme-breaks: New file.
5768         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5769         * lib/unigbrk.in.h: Add prototype for new function.
5770         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5771         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5772
5773         New module 'u16-grapheme-breaks'.
5774         * modules/unigbrk/u16-grapheme-breaks: New file.
5775         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5776         * lib/unigbrk.in.h: Add prototype for new function.
5777         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5778         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5779
5780         New module 'u32-grapheme-breaks'.
5781         * modules/unigbrk/u32-grapheme-breaks: New file.
5782         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5783         * lib/unigbrk.in.h: Add prototype for new function.
5784         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5785         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5786
5787         New module 'ulc-grapheme-breaks'.
5788         * modules/unigbrk/ulc-grapheme-breaks: New file.
5789         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5790         * m4/locale-ar.m4: New file.
5791         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5792         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5793         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5794
5795 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5796
5797         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5798         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5799         modified how this file was generated before I initially submitted
5800         the module, but failed to regenerate it.  This meant that several
5801         of the level2 entries were wrong.
5802         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5803         Remove the division-by-2 that is folded into the table now that
5804         gbrkprop.h has been regenerated properly.  Now -1 entries are
5805         handled correctly.
5806
5807         New module 'unigbrk/uc-gbrk-prop-tests'.
5808         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5809         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5810         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5811         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5812
5813 2011-01-01  Bruno Haible  <bruno@clisp.org>
5814
5815         Avoid use of hexadecimal escapes.
5816         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5817         instead of hexadecimal escapes.
5818
5819 2011-01-01  Jim Meyering  <meyering@redhat.com>
5820
5821         maint: new rule to update copyright year ranges
5822         * Makefile (update-copyright): New rule.
5823
5824         maint: indent with TABs in Makefile
5825         * Makefile: Expand leading sequences of spaces to TABs
5826
5827         version-etc: update the copyright year it reports
5828         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5829
5830 2010-12-31  Bruno Haible  <bruno@clisp.org>
5831
5832         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5833         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5834         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5835         zero.
5836
5837 2010-12-31  Bruno Haible  <bruno@clisp.org>
5838
5839         pwrite: Work around HP-UX 11.11 bug.
5840         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5841         works and set REPLACE_PWRITE if not.
5842         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5843         function.
5844         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5845
5846 2010-12-31  Bruno Haible  <bruno@clisp.org>
5847
5848         pread: Work around HP-UX 11 bugs.
5849         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5850         and set REPLACE_PREAD if not.
5851         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5852
5853 2010-12-31  Eric Blake  <eblake@redhat.com>
5854
5855         nl_langinfo: fix YESEXPR on Irix 6.5
5856         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5857         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5858         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5859         it.
5860
5861 2010-12-31  Bruno Haible  <bruno@clisp.org>
5862
5863         iconv: Document HP-UX 11 bug.
5864         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5865
5866 2010-12-31  Bruno Haible  <bruno@clisp.org>
5867
5868         ldexpl: Fix link error on HP-UX 11.
5869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5870         LDEXPL_LIBM, using $ISNANL_LIBM.
5871
5872 2010-12-31  Eric Blake  <eblake@redhat.com>
5873
5874         ftello: avoid compilation failure with SunStudio c89
5875         * lib/ftello.c (ftello): Use lseek, not llseek.
5876
5877         tests: avoid failing coreutils tests on cygwin
5878         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5879         (create_exe_shims_): Return 0 when skipping.
5880
5881 2010-12-31  Bruno Haible  <bruno@clisp.org>
5882
5883         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5884         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5885
5886 2010-12-31  Bruno Haible  <bruno@clisp.org>
5887
5888         waitpid: Fix link error in C++ mode.
5889         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5890
5891 2010-12-31  Bruno Haible  <bruno@clisp.org>
5892
5893         isnan: Use GCC built-ins when possible.
5894         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5895         __builtin_isnan.
5896         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5897         (isnan): Define using GCC built-ins for GCC >= 4.0.
5898
5899 2010-12-31  Bruno Haible  <bruno@clisp.org>
5900
5901         isnand: Fix mistake.
5902         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5903         __builtin_isnand.
5904
5905 2010-12-31  Bruno Haible  <bruno@clisp.org>
5906
5907         open: Avoid C++ error on HP-UX 11.
5908         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5909
5910 2010-12-31  Bruno Haible  <bruno@clisp.org>
5911
5912         time_r: Add missing declarations on HP-UX 11.
5913         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5914         instead of HAVE_LOCALTIME_R.
5915         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5916         HAVE_LOCALTIME_R always.
5917         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5918         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5919         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5920         HAVE_LOCALTIME_R.
5921         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5922         * doc/posix-functions/localtime_r.texi: Likewise.
5923
5924 2010-12-29  Eric Blake  <eblake@redhat.com>
5925
5926         mountlist: tweak previous commit
5927         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5928         Reported by Paul Eggert.
5929
5930         mountlist: fix local drive detection on cygwin
5931         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5932         that works for cygwin.
5933
5934 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5935
5936         ftoastr, snprintf: ftoastr + snprintf module
5937         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5938         since the snprintf module now should be good enough here.
5939         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5940         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5941         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5942         GNULIB_SNPRINTF only for the test directory, and the latter
5943         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5944         seems to suffice by itself.
5945
5946 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         alloca: one step towards thread-safety
5949         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5950         need for a static variable.  All callers changed.  This does not
5951         make the alloca replacement thread-safe, but it's one step.
5952
5953         tests: minor indenting change
5954         * tests/init.sh: Sync from coreutils housekeeping patch
5955         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5956         to keep lines within 80 columns.
5957
5958 2010-12-28  Jim Meyering  <meyering@redhat.com>
5959
5960         regex: don't infloop on persistent failing calloc
5961         * lib/regexec.c (build_trtable): Return failure indication upon
5962         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5963         In glibc, this was fixed for version 2.13:
5964         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5965
5966 2010-12-28  Bruno Haible  <bruno@clisp.org>
5967             Paul Eggert <eggert@cs.ucla.edu>
5968
5969         linkat: Make implementation robust against system behaviour variations.
5970         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5971         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5972         way, and to -2 if it needs a generic runtime test.
5973         * lib/linkat.c (solaris_optimized_link_immediate,
5974         solaris_optimized_link_follow): New functions.
5975         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5976         (check_same_link): Use it.
5977
5978 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5979
5980         New module 'unigbrk/base'.
5981         * modules/unigbrk/base: New file.
5982         * lib/unigbrk.in.h: New file.
5983
5984         New module 'unigbrk/uc-gbrk-prop'.
5985         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5986         * modules/unigbrk/uc-gbrk-prop: New file.
5987         * lib/unigbrk/gbrkprop.h: New file.
5988         * lib/unigbrk/uc-gbrk-prop.c: New file.
5989
5990         New module 'unigbrk/uc-is-grapheme-break'.
5991         * modules/unigbrk/uc-is-grapheme-break: New file.
5992         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5993         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5994         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5995         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5996         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5997
5998         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5999
6000 2010-12-27  Bruno Haible  <bruno@clisp.org>
6001
6002         linkat test: Avoid failure on Solaris 11 2010-11.
6003         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6004
6005 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6006
6007         utimens: work around glibc rounding bug on more platforms
6008         * lib/utimens.c (fdutimens): Work around rounding bug even if
6009         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6010         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6011
6012 2010-12-27  Bruno Haible  <bruno@clisp.org>
6013
6014         select tests: Improve comments.
6015         * tests/test-select.c (do_select): Add comments.
6016
6017 2010-12-27  Bruno Haible  <bruno@clisp.org>
6018
6019         select tests: Safer way of handling timeout.
6020         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6021         at every invocation.
6022
6023 2010-12-27  Bruno Haible  <bruno@clisp.org>
6024
6025         select tests: Use 'bool' where appropriate.
6026         * tests/test-select.c (connect_to_socket): Change argument type to
6027         'bool'.
6028
6029 2010-12-27  Bruno Haible  <bruno@clisp.org>
6030
6031         select tests: Use existing modules.
6032         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6033         (configure.ac): Don't test for unistd.h.
6034         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6035         declared in <unistd.h>.
6036
6037 2010-12-27  Bruno Haible  <bruno@clisp.org>
6038
6039         mbrtowc: Work around a Solaris 7 bug.
6040         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6041         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6042         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6043         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6044         MBRTOWC_NULL_ARG1_BUG.
6045         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6046         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6047         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6048         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6049
6050 2010-12-27  Jim Meyering  <meyering@redhat.com>
6051
6052         read-file.c: tweak syntax
6053         * lib/read-file.c (fread_file): Remove space after "*" in function
6054         definitions.
6055
6056 2010-12-27  Bruno Haible  <bruno@clisp.org>
6057
6058         times test: Avoid gcc warnings on OSF/1.
6059         * tests/test-times.c (main): Cast printf arguments from clock_t to
6060         'long int'.
6061
6062 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         utimens: work around glibc rounding bug on older Linux kernels
6065         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6066         on Linux with a glibc whose utimes might not work, then work
6067         around a longstanding glibc bug involving rounding rather than
6068         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6070
6071 2010-12-26  Bruno Haible  <bruno@clisp.org>
6072
6073         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6074         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6075         _GL_CXXALIAS_SYS.
6076         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6077
6078 2010-12-26  Bruno Haible  <bruno@clisp.org>
6079
6080         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6081         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6082         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6083         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6084         looking for the declaration.
6085         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6086         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6087         problem.
6088         * doc/posix-functions/inet_pton.texi: Likewise.
6089
6090 2010-12-26  Bruno Haible  <bruno@clisp.org>
6091
6092         arpa_inet: Use the common idioms with C++ support.
6093         * lib/arpa_inet.in.h: Include c++defs.h.
6094         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6095         support.
6096         * modules/arpa_inet (Depends-on): Add c++defs.
6097         (Makefile.am): Substitute the contents of c++defs.h.
6098         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6099         * modules/arpa_inet-c++-tests: New file.
6100         * tests/test-arpa_inet-c++.cc: New file.
6101
6102 2010-12-25  Bruno Haible  <bruno@clisp.org>
6103
6104         Fix more C++ link errors on Solaris 8.
6105         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6106         $(LIB_EACCESS).
6107         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6108         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6109         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6110         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6111         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6112
6113 2010-12-25  Bruno Haible  <bruno@clisp.org>
6114
6115         printf-posix: Fix link error when a non-GCC compiler is used.
6116         * lib/stdio.in.h (printf): When not using GCC, override printf
6117         correctly.
6118         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6119
6120 2010-12-25  Bruno Haible  <bruno@clisp.org>
6121
6122         strerror_r-posix: Update doc.
6123         * doc/posix-functions/strerror_r.texi: Update doc about the return
6124         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6125
6126 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6127
6128         utimens: simplify the logic of the previous change
6129         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6130         This should not affect whether the test succeeds or fails.
6131
6132         utimens: configure better on hosts with NFS clock skew
6133         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6134         uses the clock of the local host.  It might use the clock of the
6135         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6136         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6137
6138 2010-12-25  Bruno Haible  <bruno@clisp.org>
6139
6140         ptsname test: Avoid failure on Solaris.
6141         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6142         open a pseudo-terminal; don't use BSD-style ptys.
6143         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6144
6145 2010-12-25  Bruno Haible  <bruno@clisp.org>
6146
6147         ptsname: Avoid ERANGE failure on some systems.
6148         * lib/ptsname.c (buffer): Increase size.
6149
6150 2010-12-25  Bruno Haible  <bruno@clisp.org>
6151
6152         rename, renameat: Avoid test failures at NFS mounted locations.
6153         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6154         so that subsequent mkdir calls succeed.
6155
6156 2010-12-25  Bruno Haible  <bruno@clisp.org>
6157
6158         iswblank: Fix C++ link error on Solaris 8.
6159         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6160         _GL_FUNCDECL_SYS.
6161
6162 2010-12-25  Bruno Haible  <bruno@clisp.org>
6163
6164         unistd: Fix C++ link error on Solaris 8.
6165         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6166
6167 2010-12-25  Bruno Haible  <bruno@clisp.org>
6168
6169         readlink doc: Mention an old glibc bug.
6170         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6171
6172 2010-12-25  Bruno Haible  <bruno@clisp.org>
6173
6174         fcntl-h: Fix for use of C++ on glibc systems.
6175         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6176         also on glibc systems in C++ mode.
6177         Reported by Gary V. Vaughan <gary@gnu.org>.
6178
6179 2010-12-25  Bruno Haible  <bruno@clisp.org>
6180
6181         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6182         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6183
6184 2010-12-25  Bruno Haible  <bruno@clisp.org>
6185
6186         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6187         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6188         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6189         test whether truncl works according to ISO C 99 with IEC 60559.
6190         * m4/truncl-ieee.m4: New file.
6191         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6192         m4/signbit.m4.
6193         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6194
6195 2010-12-25  Bruno Haible  <bruno@clisp.org>
6196
6197         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6198         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6199         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6200         test whether ceill works according to ISO C 99 with IEC 60559.
6201         * m4/ceill-ieee.m4: New file.
6202         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6203         m4/signbit.m4.
6204         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6205
6206 2010-12-25  Bruno Haible  <bruno@clisp.org>
6207
6208         Ensure all prerequisites of <wchar.h> are included.
6209         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6210         before <wchar.h>.
6211         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6212         gl_MBRLEN_NUL_RETVAL): Likewise.
6213         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6214         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6215         AC_FUNC_MBRTOWC): Likewise.
6216         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6217         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6218         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6219         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6220         Likewise.
6221         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6222         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6223         (gl_WCHAR_H): Improve comments.
6224         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6225
6226 2010-12-25  Bruno Haible  <bruno@clisp.org>
6227
6228         strtok_r: Fix C syntax error in autoconf macro.
6229         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6230         characters in test program.
6231
6232 2010-12-24  Bruno Haible  <bruno@clisp.org>
6233
6234         ceil, trunc, round: Fix gcc warnings.
6235         * lib/ceil.c (MIN): Undefine before redefining.
6236         * lib/trunc.c (MIN): Likewise.
6237         * lib/round.c (MIN): Likewise.
6238         Include <math.h> first.
6239
6240 2010-12-24  Bruno Haible  <bruno@clisp.org>
6241
6242         select tests: Avoid failures on OSF/1 5.1.
6243         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6244         failure of closing the last socket; it may fail with ECONNRESET.
6245
6246 2010-12-24  Eric Blake  <eblake@redhat.com>
6247
6248         stdint: avoid HP-UX 10.20 preprocessor bug
6249         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6250         than #if.
6251         * tests/test-floor2.c (main): Likewise.
6252         Reported by Peter O'Gorman.
6253
6254         pipe: make obsoletion transition easier
6255         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6256         * modules/pipe (Files): Include revived file.
6257         (Include): Drop reference, to mirror getdate's behavior.
6258
6259 2010-12-24  Bruno Haible  <bruno@clisp.org>
6260
6261         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6262         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6263         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6264         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6265
6266 2010-12-24  Bruno Haible  <bruno@clisp.org>
6267
6268         gethostname: Ensure declaration on NonStop Kernel.
6269         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6270         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6271
6272 2010-12-24  Bruno Haible  <bruno@clisp.org>
6273
6274         sys_select: Ensure all necessary types on NonStop Kernel.
6275         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6276         include <sys/time.h>.
6277         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6278         NonStop Kernel.
6279         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6280
6281 2010-12-24  Bruno Haible  <bruno@clisp.org>
6282
6283         sys_select: Remove unneeded include.
6284         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6285         have <sys/select.h>.
6286
6287 2010-12-24  Bruno Haible  <bruno@clisp.org>
6288
6289         gethostname: Provide a fallback for HOST_NAME_MAX.
6290         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6291         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6292         instead.
6293         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6294
6295 2010-12-24  Bruno Haible  <bruno@clisp.org>
6296
6297         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6298         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6299         (SA_RESTART): Likewise.
6300         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6301
6302 2010-12-24  Bruno Haible  <bruno@clisp.org>
6303
6304         signal: Define NSIG.
6305         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6306         * tests/test-signal.c (nsig): New variable.
6307         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6308
6309 2010-12-24  Bruno Haible  <bruno@clisp.org>
6310
6311         rename, renameat: Avoid test failures on OSF/1 5.1.
6312         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6313         alternative error codes.
6314         * tests/test-renameat.c (main): Likewise.
6315
6316 2010-12-24  Bruno Haible  <bruno@clisp.org>
6317
6318         *printf: Detect large precisions bug on Solaris 10/SPARC.
6319         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6320         by Paul Eggert.
6321         * tests/test-snprintf-posix.h (test_function): Add this test code here
6322         too.
6323         * tests/test-sprintf-posix.h (test_function): Likewise.
6324         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6325         * tests/test-vasprintf-posix.c (test_function): Likewise.
6326         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6327         around by gnulib.
6328         * doc/posix-functions/printf.texi: Likewise.
6329         * doc/posix-functions/snprintf.texi: Likewise.
6330         * doc/posix-functions/sprintf.texi: Likewise.
6331         * doc/posix-functions/vfprintf.texi: Likewise.
6332         * doc/posix-functions/vprintf.texi: Likewise.
6333         * doc/posix-functions/vsnprintf.texi: Likewise.
6334         * doc/posix-functions/vsprintf.texi: Likewise.
6335         * doc/posix-functions/dprintf.texi: Undo last commit.
6336         * doc/posix-functions/vdprintf.texi: Likewise.
6337
6338 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6339
6340         tests: port test-fdutimensat.c to Solaris 8
6341         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6342         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6343         On Solaris 8, it fails with errno == ENOSYS, because there is no
6344         futimens (so it can't use the fd), and there is no lutimens (so it
6345         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6346
6347         vsnprintf: make more consistent with snprintf; doc fixes
6348
6349         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6350         the byte count return problem was promoted from the snprintf-posix
6351         to the snprintf module.
6352         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6353         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6354         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6355         * tests/test-snprintf.c (main): Check the byte count returned.
6356         * tests/test-vsnprintf.c (main): Likewise.
6357
6358 2010-12-23  Eric Blake  <eblake@redhat.com>
6359
6360         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6361         * modules/sigpipe (License): Relax license.
6362
6363 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6364
6365         doc: document Solaris printf bug with large float precisions
6366         * doc/posix-functions/dprintf.texi (dprintf):
6367         * doc/posix-functions/fprintf.texi (fprintf):
6368         * doc/posix-functions/printf.texi (printf):
6369         * doc/posix-functions/snprintf.texi (snprintf):
6370         * doc/posix-functions/sprintf.texi (sprintf):
6371         * doc/posix-functions/vdprintf.texi (vdprintf):
6372         * doc/posix-functions/vfprintf.texi (vfprintf):
6373         * doc/posix-functions/vprintf.texi (vprintf):
6374         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6375         * doc/posix-functions/vsprintf.texi (vsprintf):
6376         Mention that these functions mishandle large floating point
6377         precisions on Solaris 10.  The same bug is also present in Solaris
6378         8, and I assume earlier.  This causes "cd gnulib-tests; make
6379         check" to fail on Solaris 8 (and I assume, later) when building
6380         the latest coreutils, in test-vasprintf-posix's call to
6381         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6382         the wide flavors (e.g., wprintf) so this patch just updates the
6383         documentation for the narrow ones.
6384
6385         test-posixtm.c: add two tests
6386         * tests/test-posixtm.c: Add two tests, to highlight the
6387         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6388         around this bug; this is merely to document it.
6389
6390 2010-12-22  Bruno Haible  <bruno@clisp.org>
6391
6392         getlogin_r: Work around portability problem on OSF/1.
6393         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6394         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6395         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6396         test for a truncated result.
6397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6398         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6399         * modules/getlogin_r (Depends-on): Add memchr.
6400         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6401
6402 2010-12-22  Bruno Haible  <bruno@clisp.org>
6403
6404         ptsname: Avoid test failure on OSF/1 5.1.
6405         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6406         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6407         (same_slave): New function.
6408         (main): Use it to compare ptsname's result with the expected file name.
6409
6410 2010-12-22  Bruno Haible  <bruno@clisp.org>
6411
6412         Port extended stdio modules to HP NonStop Kernel.
6413         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6414         macros.
6415         * lib/fbufmode.c: Update comments.
6416         * lib/fflush.c: Likewise.
6417         * lib/fpurge.c: Likewise.
6418         * lib/freadable.c: Likewise.
6419         * lib/freadahead.c: Likewise.
6420         * lib/freading.c: Likewise.
6421         * lib/freadptr.c: Likewise.
6422         * lib/freadseek.c: Likewise.
6423         * lib/fseeko.c: Likewise.
6424         * lib/fseterr.c: Likewise.
6425         * lib/fwritable.c: Likewise.
6426         * lib/fwriting.c: Likewise.
6427         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6428
6429 2010-12-22  Bruno Haible  <bruno@clisp.org>
6430
6431         ttyname_r: Work around bug on OSF/1 5.1.
6432         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6433         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6434         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6435         present.
6436         * lib/ttyname_r.c (ttyname_r): Update comments.
6437
6438 2010-12-22  Bruno Haible  <bruno@clisp.org>
6439
6440         round: Implement result sign according to IEEE 754.
6441         * lib/round.c (MIN, MINUS_ZERO): New macros.
6442         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6443         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6444         * tests/test-round-ieee.c (main): Likewise.
6445         * tests/test-roundl-ieee.c (main): Likewise.
6446
6447         trunc: Implement result sign according to IEEE 754.
6448         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6449         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6450         * tests/test-trunc2.c: Include minus-zero.h.
6451         (MINUS_ZERO): New macro.
6452         (trunc_reference): Keep in sync with lib/trunc.c.
6453         * tests/test-truncf2.c: Include minus-zero.h.
6454         (MINUS_ZERO): New macro.
6455         (truncf_reference): Keep in sync with lib/trunc.c.
6456         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6457         * tests/test-trunc-ieee.c (main): Likewise.
6458         * tests/test-truncl-ieee.c (main): Likewise.
6459
6460         ceil: Implement result sign according to IEEE 754.
6461         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6462         (FUNC): Return -0.0 for -1 < x < 0.
6463         * tests/test-ceil2.c: Include minus-zero.h.
6464         (MINUS_ZERO): New macro.
6465         (ceil_reference): Keep in sync with lib/ceil.c.
6466         * tests/test-ceilf2.c: Include minus-zero.h.
6467         (MINUS_ZERO): New macro.
6468         (ceilf_reference): Keep in sync with lib/ceil.c.
6469         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6470         * tests/test-ceil-ieee.c (main): Likewise.
6471         * tests/test-ceill-ieee.c (main): Likewise.
6472
6473         floor: Implement result sign according to IEEE 754.
6474         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6475         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6476         * tests/test-floorf2.c (floorf_reference): Likewise.
6477         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6478         * tests/test-floor-ieee.c (main): Likewise.
6479         * tests/test-floorl-ieee.c (main): Likewise.
6480
6481 2010-12-22  Bruno Haible  <bruno@clisp.org>
6482
6483         getaddrinfo: Update doc.
6484         * doc/posix-functions/gai_strerror.texi: Return type is also different
6485         on AIX and HP-UX.
6486
6487 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6488
6489         getaddrinfo, inet_ntop: Update doc for Solaris.
6490         * doc/posix-functions/gai_strerror.texi: Return type is also an
6491         issue on Solaris 9 and earlier.
6492         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6493         on Solaris 10 and earlier.
6494
6495 2010-12-21  Bruno Haible  <bruno@clisp.org>
6496
6497         New module 'roundl-ieee'.
6498         * modules/roundl-ieee: New file.
6499         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6500         test whether roundl works according to ISO C 99 with IEC 60559.
6501         * m4/roundl-ieee.m4: New file.
6502         * modules/roundl-ieee-tests: New file.
6503         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6504         * tests/test-roundl.c (main): Remove signbit tests.
6505         * modules/roundl-tests (Depends-on): Remove signbit.
6506         * doc/posix-functions/roundl.texi: Mention the new module.
6507
6508 2010-12-21  Bruno Haible  <bruno@clisp.org>
6509
6510         New module 'truncl-ieee'.
6511         * modules/truncl-ieee: New file.
6512         * modules/truncl-ieee-tests: New file.
6513         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6514         * tests/test-truncl.c (main): Remove signbit tests.
6515         * modules/truncl-tests (Depends-on): Remove signbit.
6516         * doc/posix-functions/truncl.texi: Mention the new module.
6517
6518 2010-12-21  Bruno Haible  <bruno@clisp.org>
6519
6520         New module 'ceill-ieee'.
6521         * modules/ceill-ieee: New file.
6522         * modules/ceill-ieee-tests: New file.
6523         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6524         * tests/test-ceill.c (main): Remove signbit tests.
6525         * modules/ceill-tests (Depends-on): Remove signbit.
6526         * doc/posix-functions/ceill.texi: Mention the new module.
6527
6528 2010-12-21  Bruno Haible  <bruno@clisp.org>
6529
6530         New module 'floorl-ieee'.
6531         * modules/floorl-ieee: New file.
6532         * modules/floorl-ieee-tests: New file.
6533         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6534         * tests/test-floorl.c (main): Remove signbit tests.
6535         * modules/floorl-tests (Depends-on): Remove signbit.
6536         * doc/posix-functions/floorl.texi: Mention the new module.
6537
6538 2010-12-21  Bruno Haible  <bruno@clisp.org>
6539
6540         New module 'round-ieee'.
6541         * modules/round-ieee: New file.
6542         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6543         whether round works according to ISO C 99 with IEC 60559.
6544         * m4/round-ieee.m4: New file.
6545         * modules/round-ieee-tests: New file.
6546         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6547         * tests/test-round1.c (main): Remove signbit tests.
6548         * modules/round-tests (Depends-on): Remove 'signbit'.
6549         * doc/posix-functions/round.texi: Mention the new module.
6550
6551 2010-12-21  Bruno Haible  <bruno@clisp.org>
6552
6553         New module 'trunc-ieee'.
6554         * modules/trunc-ieee: New file.
6555         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6556         whether trunc works according to ISO C 99 with IEC 60559.
6557         * m4/trunc-ieee.m4: New file.
6558         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6560         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6561         * modules/trunc-ieee-tests: New file.
6562         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6563         * tests/test-trunc1.c (main): Remove signbit tests.
6564         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6565         * doc/posix-functions/trunc.texi: Mention the new module.
6566
6567 2010-12-21  Bruno Haible  <bruno@clisp.org>
6568
6569         New module 'ceil-ieee'.
6570         * modules/ceil-ieee: New file.
6571         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6572         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6573         ISO C 99 with IEC 60559.
6574         * m4/ceil-ieee.m4: New file.
6575         * modules/ceil (Files): Add lib/ceil.c.
6576         (Depends-on): Add 'float'.
6577         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6578         * lib/math.in.h (ceil): New declaration.
6579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6580         REPLACE_CEIL.
6581         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6582         * modules/ceil-ieee-tests: New file.
6583         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6584         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6585         * doc/posix-functions/ceil.texi: Mention the new module.
6586
6587 2010-12-21  Bruno Haible  <bruno@clisp.org>
6588
6589         New module 'floor-ieee'.
6590         * modules/floor-ieee: New file.
6591         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6592         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6593         ISO C 99 with IEC 60559.
6594         * m4/floor-ieee.m4: New file.
6595         * modules/floor (Files): Add lib/floor.c.
6596         (Depends-on): Add 'float'.
6597         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6598         * lib/math.in.h (floor): New declaration.
6599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6600         REPLACE_FLOOR.
6601         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6602         * modules/floor-ieee-tests: New file.
6603         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6604         * tests/test-math-c++.cc: Check the signature of 'floor'.
6605         * doc/posix-functions/floor.texi: Mention the new module.
6606
6607 2010-12-21  Bruno Haible  <bruno@clisp.org>
6608
6609         New module 'roundf-ieee'.
6610         * modules/roundf-ieee: New file.
6611         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6612         test whether roundf works according to ISO C 99 with IEC 60559.
6613         * m4/roundf-ieee.m4: New file.
6614         * modules/roundf-ieee-tests: New file.
6615         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6616         * tests/test-roundf1.c (main): Remove signbit tests.
6617         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6618         * doc/posix-functions/roundf.texi: Mention the new module.
6619
6620 2010-12-21  Bruno Haible  <bruno@clisp.org>
6621
6622         New module 'truncf-ieee'.
6623         * modules/truncf-ieee: New file.
6624         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6625         test whether truncf works according to ISO C 99 with IEC 60559.
6626         * m4/truncf-ieee.m4: New file.
6627         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6629         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6630         * modules/truncf-ieee-tests: New file.
6631         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6632         * tests/test-truncf1.c (main): Remove signbit tests.
6633         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6634         * doc/posix-functions/truncf.texi: Mention the new module.
6635
6636 2010-12-21  Bruno Haible  <bruno@clisp.org>
6637
6638         New module 'ceilf-ieee'.
6639         * modules/ceilf-ieee: New file.
6640         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6641         test whether ceilf works according to ISO C 99 with IEC 60559.
6642         * m4/ceilf-ieee.m4: New file.
6643         * modules/ceilf-ieee-tests: New file.
6644         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6645         * tests/test-ceilf1.c (main): Remove signbit tests.
6646         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6647         * doc/posix-functions/ceilf.texi: Mention the new module.
6648
6649 2010-12-21  Bruno Haible  <bruno@clisp.org>
6650
6651         New module 'floorf-ieee'.
6652         * modules/floorf-ieee: New file.
6653         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6654         test whether floorf works according to ISO C 99 with IEC 60559.
6655         * m4/floorf-ieee.m4: New file.
6656         * modules/floorf-ieee-tests: New file.
6657         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6658         * tests/test-floorf1.c (main): Remove signbit tests.
6659         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6660         * doc/posix-functions/floorf.texi: Mention the new module.
6661
6662 2010-12-21  Bruno Haible  <bruno@clisp.org>
6663
6664         Support for minus zero in autoconf macros.
6665         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6666         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6667         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6668         * tests/minus-zero.h: Update comments.
6669
6670 2010-12-21  Bruno Haible  <bruno@clisp.org>
6671
6672         Tests for module 'ceil'.
6673         * modules/ceil-tests: New file.
6674         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6675         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6676
6677 2010-12-21  Bruno Haible  <bruno@clisp.org>
6678
6679         Tests for module 'floor'.
6680         * modules/floor-tests: New file.
6681         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6682         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6683
6684 2010-12-21  Bruno Haible  <bruno@clisp.org>
6685
6686         math: Fix indentation.
6687         * lib/math.in.h (floorf): Fix indentation.
6688
6689 2010-12-21  Bruno Haible  <bruno@clisp.org>
6690
6691         Fix cross-compilation guesses on Solaris.
6692         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6693         not match "solaris2.10".
6694         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6695         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6696         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6697
6698 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6701         This fixes a problem observed with the latest coreutils snapshot
6702         that caused a test to fail on Solaris 8.  src/csplit.c's call
6703         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6704         earlier, instead of returning the number of bytes that would have
6705         been generated; this causes csplit to incorrectly report memory
6706         exhaustion.
6707         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6708         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6709         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6710         comments to match.
6711         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6712         Fix typo in matching older versions of Solaris: "solaris2.10"
6713         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6714         only for guessing while cross-compiling.
6715         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6716
6717 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6718
6719         ftoastr: fix comment again
6720         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6721         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6722         Also, simplify example a bit by using flags = 0.
6723
6724 2010-12-20  Bruno Haible  <bruno@clisp.org>
6725
6726         round*, trunc*: Update documentation regarding glibc.
6727         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6728         * doc/posix-functions/round.texi: Likewise.
6729         * doc/posix-functions/roundl.texi: Likewise.
6730         * doc/posix-functions/truncf.texi: Likewise.
6731         * doc/posix-functions/trunc.texi: Likewise.
6732         * doc/posix-functions/truncl.texi: Likewise.
6733
6734 2010-12-20  Bruno Haible  <bruno@clisp.org>
6735
6736         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6737         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6738         * doc/posix-functions/round.texi: Likewise.
6739         * doc/posix-functions/roundl.texi: Likewise.
6740
6741 2010-12-20  Bruno Haible  <bruno@clisp.org>
6742
6743         ttyname_r: Add missing declaration on HP-UX 11.
6744         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6745         HAVE_TTYNAME_R.
6746         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6747         declared. Set HAVE_TTYNAME_R always.
6748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6749         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6750         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6751         HAVE_TTYNAME_R.
6752         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6753
6754 2010-12-20  Bruno Haible  <bruno@clisp.org>
6755
6756         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6757         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6758         * doc/posix-functions/getlogin_r.texi: Likewise.
6759         * tests/test-getlogin.c: Include <errno.h>.
6760         (main): Avoid test failure on HP-UX 11.11.
6761         * tests/test-getlogin_r.c (main): Likewise.
6762
6763 2010-12-20  Bruno Haible  <bruno@clisp.org>
6764
6765         getlogin_r: Add missing declaration on HP-UX 11.
6766         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6767         declared also when it exists as a function.
6768         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6769
6770 2010-12-20  Bruno Haible  <bruno@clisp.org>
6771
6772         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6773         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6774         through wcrtomb.
6775
6776 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6777
6778         ftoastr: fix comment
6779         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6781
6782 2010-12-19  Bruno Haible  <bruno@clisp.org>
6783
6784         isnan: Ensure it is a macro.
6785         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6786         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6787         Solaris.
6788
6789 2010-12-19  Bruno Haible  <bruno@clisp.org>
6790
6791         ldexpl test: Fix link error on OSF/1 5.1.
6792         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6793
6794 2010-12-19  Bruno Haible  <bruno@clisp.org>
6795
6796         wctype: Make it work in C++ mode on OSF/1 5.1.
6797         * lib/wctype.in.h (iswblank): Declare but not define here.
6798         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6799         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6800         * modules/wctype (Files): Add lib/iswblank.c.
6801
6802 2010-12-19  Bruno Haible  <bruno@clisp.org>
6803
6804         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6805         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6806         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6807
6808 2010-12-19  Bruno Haible  <bruno@clisp.org>
6809
6810         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6811         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6812         _POSIX_PII_SOCKET.
6813         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6814         * doc/posix-functions/recvfrom.texi: Likewise.
6815         * doc/posix-functions/send.texi: Likewise.
6816         * doc/posix-functions/sendto.texi: Likewise.
6817
6818 2010-12-19  Bruno Haible  <bruno@clisp.org>
6819
6820         tcgetsid: Add missing declaration on OSF/1 5.1.
6821         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6822         HAVE_TCGETSID.
6823         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6824         Don't set HAVE_TCGETSID.
6825         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6826         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6827         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6828         HAVE_TCGETSID.
6829         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6830
6831 2010-12-19  Bruno Haible  <bruno@clisp.org>
6832
6833         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6834         * lib/stdio.in.h: During the include_next statement, let recursive
6835         includes of this file include only the system header file.
6836
6837 2010-12-19  Bruno Haible  <bruno@clisp.org>
6838
6839         iconv_open: Fix regression from 2010-12-04.
6840         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6841         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6842
6843 2010-12-19  Bruno Haible  <bruno@clisp.org>
6844
6845         stdbool test: Avoid a gcc warning.
6846         * tests/test-stdbool.c (main): Fail if e1 is false.
6847         Reported by Jim Meyering.
6848
6849 2010-12-19  Jim Meyering  <meyering@redhat.com>
6850
6851         setenv: restore to working order
6852         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6853         mistakenly removed.
6854         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6855         HAVE_SETENV.
6856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6857         HAVE_SETENV.
6858
6859 2010-12-19  Bruno Haible  <bruno@clisp.org>
6860
6861         Document some different function declarations on OSF/1 5.1.
6862         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6863         * doc/posix-functions/inet_ntop.texi: Likewise.
6864         * doc/posix-functions/gethostname.texi: Likewise.
6865         * lib/unistd.in.h (gethostname): Update comment.
6866
6867 2010-12-19  Bruno Haible  <bruno@clisp.org>
6868
6869         doc: Mention vasprintf-posix module.
6870         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6871         the 'vasprintf-posix' module.
6872         * doc/glibc-functions/vasprintf.texi: Likewise.
6873
6874 2010-12-19  Bruno Haible  <bruno@clisp.org>
6875
6876         unsetenv: Add missing declaration on OSF/1 5.1.
6877         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6878         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6879         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6881         not HAVE_UNSETENV.
6882         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6883         HAVE_UNSETENV.
6884         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6885
6886 2010-12-19  Bruno Haible  <bruno@clisp.org>
6887
6888         setenv: Add missing declaration on OSF/1 5.1.
6889         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6890         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6891         declared. Don't set HAVE_SETENV.
6892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6893         not HAVE_SETENV.
6894         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6895         HAVE_SETENV.
6896         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6897
6898 2010-12-19  Bruno Haible  <bruno@clisp.org>
6899
6900         nl_langinfo tests: Avoid gcc warning.
6901         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6902
6903 2010-12-19  Bruno Haible  <bruno@clisp.org>
6904
6905         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6906         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6907         _GL_CXXALIAS_SYS.
6908
6909 2010-12-19  Bruno Haible  <bruno@clisp.org>
6910
6911         stdbool: Relax test.
6912         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6913         address to 'bool' work in static initializer, for compilers other than
6914         GCC.
6915
6916 2010-12-19  Bruno Haible  <bruno@clisp.org>
6917
6918         ftello: Add missing declaration on OSF/1 5.1.
6919         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6920         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6922         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6923         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6924
6925 2010-12-19  Bruno Haible  <bruno@clisp.org>
6926
6927         fseeko: Add missing declaration on OSF/1 5.1.
6928         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6929         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6931         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6932         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6933
6934 2010-12-19  Bruno Haible  <bruno@clisp.org>
6935
6936         fchdir: Add missing declaration on OSF/1 5.1.
6937         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6938         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6940         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6941         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6942
6943 2010-12-19  Bruno Haible  <bruno@clisp.org>
6944
6945         relocatable-prog-wrapper: Separate from relocatable-prog.
6946         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6947         uninstall-relocwrapper rule here.
6948         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6949         Reported by Ian Beckwith <ianb@erislabs.net>.
6950
6951 2010-12-19  Bruno Haible  <bruno@clisp.org>
6952
6953         unistr/u8-mbsnlen: Add missing dependency.
6954         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6955         Reported by Ian Beckwith <ianb@erislabs.net>.
6956
6957 2010-12-19  Bruno Haible  <bruno@clisp.org>
6958
6959         iconv: Make it possible again to use this module without 'iconv-h'.
6960         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6961         if it is not defined.
6962         Reported by Ian Beckwith <ianb@erislabs.net>.
6963
6964 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6965
6966         acl: port to Solaris 8 when copying from tmpfs to ufs
6967         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6968         error number.  Problem observed on Solaris 8 with latest
6969         coreutils, with "mv A B", where A is on a tmpfs file system and B
6970         is on a ufs file system.  This caused coreutils' mv/part-symlink
6971         test to fail.
6972
6973         tests: set fail=0 at start
6974         * tests/init.sh (setup_): Move fail=0 initialization here ...
6975         (mktempd_): ... from here, so that tests can rely on fail being
6976         set to 0 initially.  This fixes a problem in coreutils; see:
6977         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6978
6979 2010-12-18  Bruno Haible  <bruno@clisp.org>
6980
6981         memmem-simple: Stylistic changes.
6982         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6983         Fix preprocessor directive indentation.
6984
6985 2010-12-15  Pádraig Brady <P@draigBrady.com>
6986
6987         memmem, memmem-simple: reorganize and expand empty needle check
6988         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6989         functional checks to memmem-simple so that one has a fully functional
6990         memmem by using just this module.
6991         Restrict the performance only check to the memmem module.
6992         Also expand the empty needle check to ensure the correct
6993         pointer is returned, not just a non NULL pointer.
6994         * doc/glibc-functions/memmem.texi: Rearrange the portability
6995         documentation to correlate with the rearranged checks.
6996         Clarify exactly how the memmem and memmem-simple modules
6997         relate to each other.
6998
6999 2010-12-15  Pádraig Brady <P@draigBrady.com>
7000             Bruno Haible  <bruno@clisp.org>
7001
7002         Improve cross-compilation guesses for uClibc.
7003         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7004         that uClibc does not have the glibc bug.
7005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7006         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7007
7008 2010-12-14  Eric Blake  <eblake@redhat.com>
7009
7010         configmake: provide fallbacks for oldest supported autotools
7011         * m4/configmake.m4: New file.
7012         * modules/configmake (Files): Ship it.
7013         (configure.ac): Use it to guarantee fallbacks.
7014
7015 2010-12-13  Pádraig Brady <P@draigBrady.com>
7016
7017         read-file: Improve handling of large files
7018         * lib/read-file.c (fread_file): Minimize realloc()s
7019         for regular files, and better manage sizes around SIZE_MAX.
7020
7021 2010-12-13  Eric Blake  <eblake@redhat.com>
7022
7023         cloexec, fcntl: relax license
7024         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7025         consent from all contributors.
7026         * modules/fcntl (License): Likewise.
7027
7028 2010-12-10  Bruno Haible  <bruno@clisp.org>
7029
7030         Tests for module 'pipe-posix'.
7031         * modules/pipe-posix-tests: New file.
7032         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7033
7034 2010-12-10  Bruno Haible  <bruno@clisp.org>
7035
7036         pipe-posix: Make it work in C++ mode.
7037         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7038         (pipe): Use common idiom, not a macro definition.
7039         * lib/pipe.c: New file.
7040         * m4/pipe.m4: New file.
7041         * modules/pipe-posix (Description): Enhance.
7042         (Files): Add lib/pipe.c, m4/pipe.m4.
7043         (configure.ac): Invoke gl_FUNC_PIPE.
7044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7045         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7046         * tests/test-unistd-c++.cc: Check the signature of pipe.
7047
7048 2010-12-10  Bruno Haible  <bruno@clisp.org>
7049
7050         Rename module 'pipe' to 'spawn-pipe'.
7051         * modules/spawn-pipe: New file, renamed from modules/pipe.
7052         (Files, configure.ac, Makefile.am): Update.
7053         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7054         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7055         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7056         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7057         "spawn-pipe.h" instead of "pipe.h".
7058         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7059         to gl_SPAWN_PIPE.
7060         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7061         (Files, Makefile.am): Update.
7062         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7063         Update.
7064         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7065         Include "spawn-pipe.h" instead of "pipe.h".
7066         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7067         * lib/javacomp.c: Likewise.
7068         * lib/javaversion.c: Likewise.
7069         * lib/pipe-filter-gi.c: Likewise.
7070         * lib/pipe-filter-ii.c: Likewise.
7071         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7072         * modules/javacomp (Depends-on): Likewise.
7073         * modules/javaversion (Depends-on): Likewise.
7074         * modules/pipe-filter-gi (Depends-on): Likewise.
7075         * modules/pipe-filter-ii (Depends-on): Likewise.
7076         * MODULES.html.sh (Executing programs): Update.
7077         * NEWS: Mention the change.
7078
7079 2010-12-10  Eric Blake  <eblake@redhat.com>
7080
7081         pipe-posix: new module
7082         * modules/pipe-posix: New file.
7083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7084         (gl_UNISTD_H): Check for declaration.
7085         * modules/unistd (Makefile.am): Substitute it.
7086         * lib/unistd.in.h (pipe): Provide it for mingw.
7087         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7088         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7089
7090 2010-12-07  Bruno Haible  <bruno@clisp.org>
7091
7092         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7093         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7094         u8_strcmp_gnu.
7095         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7096
7097 2010-12-06  Bruno Haible  <bruno@clisp.org>
7098
7099         Update internal documentation.
7100         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7101
7102 2010-12-04  Bruno Haible  <bruno@clisp.org>
7103
7104         Put more information about failed tests into the test return codes.
7105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7106         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7107         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7108         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7109         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7111         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7112         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7113         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7114         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7115         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7116         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7117         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7118         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7119         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7120         returns a bit mask.
7121         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7122         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7123         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7124         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7125         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7128         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7129         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7130         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7131         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7132         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7133         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7135         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7136         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7137         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7138         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7139         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7140         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7141         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7142         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7143         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7144         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7145         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7146         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7147         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7148         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7149         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7150         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7151         gl_PRINTF_PRECISION): Likewise.
7152         * m4/regex.m4 (gl_REGEX): Likewise.
7153         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7154         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7156         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7159         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7160         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7161         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7162         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7163         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7164         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7165         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7166         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7167         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7168         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7169         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7170         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7172         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7173         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7174         enumerated value.
7175         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7176
7177 2010-12-04  Bruno Haible  <bruno@clisp.org>
7178
7179         Update for Solaris 11 2010-11.
7180         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7181         Express, released in November 2010.
7182
7183 2010-12-04  Bruno Haible  <bruno@clisp.org>
7184
7185         nproc: Relax license.
7186         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7187         and Paul Eggert.
7188         Requested by Ludovic Courtès <ludo@gnu.org>.
7189
7190 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7191
7192         utimecmp: fine-grained src to nearby coarse-grained dest
7193
7194         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7195         and the source is on a file system with higher-resolution time
7196         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7197         not work, and the time stamps are close together, the algorithm to
7198         determine the exact resolution from the read-back mtime was buggy:
7199         it had a "!=" where it should have had an "==".  This bug has been
7200         in the code ever since it was introduced to gnulib.
7201         Problem reported by Dan Jacobson in
7202         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7203
7204 2010-11-30  Bruno Haible  <bruno@clisp.org>
7205
7206         strerror_r-posix: Fix autoconf test.
7207         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7208
7209 2010-11-28  Bruno Haible  <bruno@clisp.org>
7210             Paul Eggert  <eggert@cs.ucla.edu>
7211
7212         Tests for module 'getdomainname'.
7213         * modules/getdomainname-tests: New file.
7214         * tests/test-getdomainname.c: New file, based on
7215         tests/test-gethostname.c.
7216
7217 2010-11-28  Bruno Haible  <bruno@clisp.org>
7218             Paul Eggert  <eggert@cs.ucla.edu>
7219
7220         getdomainname: Use the system function when possible.
7221         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7222         (getdomainname): Replace if needed. Provide the declaration if it is
7223         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7224         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7225         (getdomainname): When the system has getdomainname, call the system
7226         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7227         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7228         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7229         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7230         the function if its second argument is of type 'int' or if it is found
7231         in libnsl.
7232         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7233         <sys/systeminfo.h> and sysinfo().
7234         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7236         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7237         HAVE_GETDOMAINNAME.
7238         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7239         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7240         * doc/glibc-functions/getdomainname.texi: Document the problems with
7241         the getdomainname declaration.
7242
7243 2010-11-28  Bruno Haible  <bruno@clisp.org>
7244
7245         sys_socket: Ensure ss_family field on AIX.
7246         * lib/sys_socket.in.h (ss_family): New macro definition.
7247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7248         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7249         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7250         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7251         * modules/sys_socket (Makefile.am): Substitute
7252         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7253         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7254
7255 2010-11-27  Bruno Haible  <bruno@clisp.org>
7256
7257         readline: Improve configure output.
7258         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7259         "checking for readline..." result understandable.
7260
7261 2010-11-27  Bruno Haible  <bruno@clisp.org>
7262
7263         *printf-posix: Detect a bug on Solaris 10/x86.
7264         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7265         for floating-point output.
7266         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7267         directive.
7268         * tests/test-snprintf-posix.h (test_function): Likewise.
7269         * tests/test-sprintf-posix.h (test_function): Likewise.
7270         * tests/test-vasprintf-posix.c (test_function): Likewise.
7271         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7272         * doc/posix-functions/printf.texi: Likewise.
7273         * doc/posix-functions/snprintf.texi: Likewise.
7274         * doc/posix-functions/sprintf.texi: Likewise.
7275         * doc/posix-functions/vfprintf.texi: Likewise.
7276         * doc/posix-functions/vprintf.texi: Likewise.
7277         * doc/posix-functions/vsnprintf.texi: Likewise.
7278         * doc/posix-functions/vsprintf.texi: Likewise.
7279         * doc/glibc-functions/obstack_printf.texi: Likewise.
7280         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7281
7282 2010-11-27  Bruno Haible  <bruno@clisp.org>
7283
7284         Fix link error when module libunistring-optional is in use.
7285         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7286         * modules/striconveha-tests (Makefile.am): Likewise.
7287
7288 2010-11-27  Bruno Haible  <bruno@clisp.org>
7289
7290         regex: Mention link dependencies.
7291         * modules/regex (Link): New section.
7292         * modules/rpmatch (Link): Likewise.
7293         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7294
7295 2010-11-27  Bruno Haible  <bruno@clisp.org>
7296
7297         ftoastr: Fix compilation error on Solaris.
7298         * lib/ftoastr.c: Include <config.h>.
7299
7300 2010-11-27  Bruno Haible  <bruno@clisp.org>
7301
7302         getloadavg: Update documentation.
7303         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7304
7305 2010-11-27  Bruno Haible  <bruno@clisp.org>
7306
7307         sys_socket: Fix test whether the functions are declared.
7308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7309         not <sys/select.h>.
7310
7311 2010-11-27  Bruno Haible  <bruno@clisp.org>
7312
7313         getpass: Make sure to get system declaration on some platforms.
7314         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7315         gl_USE_SYSTEM_EXTENSIONS.
7316         * modules/getpass (Depends-on): Add extensions.
7317
7318 2010-11-26  Bruno Haible  <bruno@clisp.org>
7319
7320         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7321         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7322         'iconv' module is present.
7323         (ICONV_CONST): New macro.
7324         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7325         ICONV_CONST.
7326         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7327         set ICONV_CONST.
7328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7329         here.
7330         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7331         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7332         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7333         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7334         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7335         present.
7336
7337 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7338
7339         ftoastr: comment fix
7340         * lib/ftoastr.c: "little" -> "little or no" in comment
7341
7342 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7343
7344         stdint: port to GCC 4.3 + OSX + Octave
7345         On this platform, stdint.h is buggy and defines int64_t to long
7346         long int.  The replacement defined it to long int, causing
7347         problems with C++ style name mangling.  Instead, trust the system
7348         definition if INT64_MAX is defined, and likewise for the unsigned
7349         variant.   Problem reported by Jarno Rajahalme in
7350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7351         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7352         and don't mess with int64_t and INT64_MAX in this case.
7353         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7354
7355 2010-11-24  Bruno Haible  <bruno@clisp.org>
7356
7357         doc: Corrections regarding MacOS X 10.4 and 10.5.
7358         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7359         MacOS X.
7360         Reported by Simon Josefsson.
7361
7362 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7363
7364         Uninstall ".bin" files installed by relocwrapper.
7365         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7366         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7367         unless it is already there.
7368
7369 2010-11-21  Bruno Haible  <bruno@clisp.org>
7370
7371         Update for NetBSD 5.0.
7372         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7373         NetBSD; the test fails on NetBSD 5.0.
7374         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7375         about NetBSD.
7376
7377 2010-11-21  Bruno Haible  <bruno@clisp.org>
7378
7379         Update for HP-UX 11.23 and HP-UX 11.31.
7380         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7381         HP-UX.
7382
7383 2010-11-21  Bruno Haible  <bruno@clisp.org>
7384
7385         Update for MacOS X 10.5.
7386         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7387         MacOS X; the test fails on MacOS X 10.5.8.
7388         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7389         about MacOS X.
7390
7391 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7392
7393         bootstrap: add bootstrap_sync option.
7394         See discussion at
7395         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7396         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7397         * build-aux/bootstrap: Accept --bootstrap-sync to update
7398         bootstrap if it is not identical to the local gnulib's
7399         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7400         enable this by default.  Accept --no-bootstrap-sync to disable
7401         it.
7402
7403 2010-11-20  Bruno Haible  <bruno@clisp.org>
7404
7405         Ensure that <features.h> is included before __GLIBC__ is tested.
7406         * lib/printf-parse.h: Include <features.h>.
7407         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7408         Reported by Mike Frysinger <vapier@gentoo.org>.
7409
7410         Ensure that <features.h> is included before __GLIBC__ is tested.
7411         * lib/wchar.in.h: Include <features.h>.
7412         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7413         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7414         Reported by Mike Frysinger <vapier@gentoo.org>.
7415
7416         Ensure that <features.h> is included before __GLIBC__ is tested.
7417         * lib/arpa_inet.in.h: Include <features.h>.
7418         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7419         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7420         Reported by Mike Frysinger <vapier@gentoo.org>.
7421
7422         Ensure that <features.h> is included before __GLIBC__ is tested.
7423         * build-aux/link-warning.h: Include <features.h>.
7424         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7425         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7426         Reported by Mike Frysinger <vapier@gentoo.org>.
7427
7428         Ensure that <features.h> is included before __GLIBC__ is tested.
7429         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7430         Reported by Mike Frysinger <vapier@gentoo.org>.
7431
7432 2010-11-20  Bruno Haible  <bruno@clisp.org>
7433
7434         memmem: Fix autoconf test.
7435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7436
7437 2010-11-20  Bruno Haible  <bruno@clisp.org>
7438
7439         Port to uClibc.
7440         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7441         * lib/fcntl.in.h: Likewise.
7442         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7443         * lib/mbrtowc.c (mbrtowc): Likewise.
7444         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7445         * lib/strerror_r.c: Likewise.
7446         * lib/unistr/u8-strnlen.c: Likewise.
7447         * lib/vasnprintf.c (decimal_point_char): Likewise.
7448         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7449         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7451         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7452         * tests/test-sigaction.c (handler, main): Likewise.
7453         * lib/freading.h: Treat uClibc like a non-glibc platform.
7454         * lib/freading.c: Likewise.
7455         * lib/gettext.h: Likewise.
7456         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7457         Likewise.
7458         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7459         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7460         * lib/propername.c (proper_name_utf8): Likewise.
7461         * lib/spawn.in.h: Likewise.
7462         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7463         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7464         mem_cd_iconveh_internal): Likewise.
7465         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7466         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7467         strstr, strcasestr): Likewise.
7468         * lib/unicodeio.c (unicode_to_mb): Likewise.
7469         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7470         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7471         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7472         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7473         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7474         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7475         * lib/unistr/u8-stpncpy.c: Likewise.
7476         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7477         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7478         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7479         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7480         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7481         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7482         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7485         Likewise.
7486         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7487         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7491         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7492         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7493         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7494         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7495         * tests/test-striconveha.c (main): Likewise.
7496         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7497         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7498         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7499         * doc/posix-functions/getline.texi: Likewise.
7500         Reported by Mike Frysinger <vapier@gentoo.org>.
7501
7502 2010-11-20  Bruno Haible  <bruno@clisp.org>
7503
7504         nproc: Fix condition.
7505         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7506         HAVE_PTHREAD_AFFINITY_NP.
7507
7508 2010-11-20  Bruno Haible  <bruno@clisp.org>
7509
7510         Fix a comment.
7511         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7512
7513 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7514
7515         ftoastr: don't assume snprintf
7516         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7517         Implement a subset of snprintf here, by using sprintf safely.
7518         * modules/ftoastr (Depends-on): Remove snprintf.
7519
7520 2010-11-19  Jim Meyering  <meyering@redhat.com>
7521
7522         test-rename.h: fix compilation failure
7523         * tests/test-rename.h (test_rename): Add omitted "}".
7524
7525 2010-11-17  Jim Meyering  <meyering@redhat.com>
7526
7527         maint.mk: add a URL discussing the no-@acronym policy
7528         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7529
7530 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7531
7532         ftoastr: depend on snprintf, improve comments
7533         * lib/ftoastr.c: Also mention Loitsch's draft.
7534         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7535         needed in the current implementation, but it might simplify
7536         speeding up the code later.
7537         * modules/ftoastr: Depend on snprintf; this improves portability.
7538         Suggested by Bruno Haible in the same email.
7539
7540         ftoastr: port to hosts lacking strtof and strtold
7541         Problem reported by Bruno Haible in
7542         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7543         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7544         environment and strtold (and presumably strtof) are not available.
7545         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7546         (configure.ac): Require gl_C99_STRTOLD.
7547
7548 2010-11-18  Bruno Haible  <bruno@clisp.org>
7549
7550         c-strtold: Avoid link error on AIX 7.
7551         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7552         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7553         (gl_C_STRTOLD): Test whether strtold_l exists.
7554         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7555
7556 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7557
7558         intprops: new macro INT_BITS_STRLEN_BOUND
7559         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7560         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7561         not exposed.  Also, it uses a slightly tighter bound than before;
7562         though this makes no practical difference, we might as well be as
7563         tight as we easily can.
7564
7565         ftoastr: new module, for lossless conversion of floats to short strings
7566         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7567         * modules/ftoastr: New files.
7568
7569 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7570
7571         bootstrap: port to Solaris sed
7572         * build-aux/bootstrap (get_version): Port to Solaris sed.
7573         See Ralf Wildenhues's note in
7574         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7575
7576 2010-11-14  Jim Meyering  <meyering@redhat.com>
7577
7578         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7579         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7580         and move definition closer to sole use.
7581
7582 2010-11-13  Jim Meyering  <meyering@redhat.com>
7583
7584         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7585         Now we require at least autoconf-2.59, which means the work-around
7586         is no longer needed.
7587         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7588         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7589         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7590         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7591         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7592
7593 2010-11-13  Bruno Haible  <bruno@clisp.org>
7594
7595         rename, renameat: Avoid test failures at NFS mounted locations.
7596         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7597         functions.
7598         (test_rename): Use assert_nonexistent.
7599         * tests/test-rename.c: Include <dirent.h>.
7600         * tests/test-renameat.c: Likewise.
7601         Reported by Gary V. Vaughan <gary@gnu.org>.
7602
7603         rename, renameat: Document Linux bug with NFS
7604         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7605         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7606         * doc/posix-functions/renameat.texi: Likewise.
7607         Suggested by Eric Blake.
7608
7609 2010-11-13  Bruno Haible  <bruno@clisp.org>
7610
7611         rename test: Add comments.
7612         * tests/test-rename.h (test_rename): Add structure and comments.
7613
7614 2010-11-13  Eric Blake  <eblake@redhat.com>
7615
7616         maintainer-makefile: cover a few more files
7617         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7618         scripts generated within C files, for libvirt.
7619
7620 2010-11-13  Bruno Haible  <bruno@clisp.org>
7621
7622         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7623         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7624         character, return the number of bytes that belong together, not always
7625         1.
7626         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7627         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7628         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7629         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7630         number of bytes of an invalid character.
7631         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7632         (main): Invoke it.
7633         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7634         results.
7635         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7636         malformed byte sequences.
7637         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7638         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7639         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7640         Reported by Ben Pfaff and Paolo Bonzini.
7641
7642 2010-11-13  Bruno Haible  <bruno@clisp.org>
7643
7644         openat: Work around glibc bug with fchownat() and empty file names.
7645         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7646         (gl_FUNC_FCHOWNAT): Invoke it.
7647         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7648         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7649         Reported by Gary V. Vaughan <gary@gnu.org>.
7650
7651 2010-11-13  Bruno Haible  <bruno@clisp.org>
7652
7653         openat: Ensure autoconf macro ordering.
7654         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7655         gl_USE_SYSTEM_EXTENSIONS.
7656         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7657
7658 2010-11-13  Bruno Haible  <bruno@clisp.org>
7659
7660         Update comments.
7661         * lib/unistr/u8-check.c: Update file name in comments.
7662         * lib/unistr/u8-mblen.c: Likewise.
7663         * lib/unistr/u8-prev.c: Likewise.
7664         * lib/unistr/u8-strmblen.c: Likewise.
7665         * lib/unistr/u8-strmbtouc.c: Likewise.
7666
7667 2010-11-13  Jim Meyering  <meyering@redhat.com>
7668
7669         tests: avoid test failure on Solaris 10 due to lack of PATH export
7670         * tests/test-update-copyright.sh: Don't forget to export PATH.
7671
7672         init.sh: ensure that IFS is defined, just in case...
7673         * tests/init.sh (setup_): Ensure that IFS is defined,
7674         so that saving and restoring it works as expected.  This
7675         appears to be useful at least for an old version of dash
7676         from a long time ago (RH 6).  See here for details:
7677         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7678
7679         maint.mk: tighten "test a == b" check
7680         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7681         test to files that contain something like #!/bin/sh.
7682         Without this, coreutils would get two false positives in
7683         the comments of C source files.
7684
7685 2010-11-12  Eric Blake  <eblake@redhat.com>
7686
7687         bootstrap: fix typo in previous attempt
7688         * build-aux/bootstrap (buildreq): Correct the grouping.
7689         Reported by Paul Eggert.
7690
7691         maintainer-makefile: prohibit test x == x
7692         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7693         Based on a report by Matthias Bolte.
7694
7695         bootstrap: allow FreeBSD gzip
7696         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7697         which has no '.' and goes to stderr.
7698         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7699         Reported by Matthias Bolte.
7700
7701         maintainer-makefile: check for i18n setup
7702         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7703         will likely work.
7704
7705 2010-11-12  Bruno Haible  <bruno@clisp.org>
7706
7707         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7708         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7709         * lib/nanosleep.c (nanosleep): Likewise.
7710
7711 2010-11-11  Bruno Haible  <bruno@clisp.org>
7712
7713         fcntl-h: Fix for use of C++ on glibc systems.
7714         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7715         also on glibc systems in C++ mode.
7716         Reported by Gary V. Vaughan <gary@gnu.org>.
7717
7718 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7719
7720         mknod: avoid false failure with dash
7721         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7722
7723 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7724
7725         unlink: Fix "is it should" typo in diagnostic.
7726         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7728
7729 2010-11-11  Bruno Haible  <bruno@clisp.org>
7730
7731         Tests for module 'strerror_r-posix'.
7732         * modules/strerror_r-posix-tests: New file.
7733         * tests/test-strerror_r.c: New file.
7734         * tests/test-string-c++.cc: Check the signature of strerror_r.
7735
7736         New module 'strerror_r-posix'.
7737         * lib/string.in.h (strerror_r): New declaration.
7738         * lib/strerror_r.c: New file.
7739         * m4/strerror_r.m4: New file.
7740         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7741         of strerror_r.
7742         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7743         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7744         * modules/strerror_r-posix: New file.
7745         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7746         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7747         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7748         portability problems.
7749
7750 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7751
7752         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7753         line is also considered for output. Quoted function name in shell
7754         command, so temporary files for functions like MyClass::operator()
7755         are removed correctly without errors.
7756
7757 2010-11-09  Bruno Haible  <bruno@clisp.org>
7758
7759         * doc/posix-functions/strerror.texi: List more failing platforms.
7760
7761         * doc/posix-functions/strerror.texi: Add a comment.
7762
7763 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7764
7765         fdopendir: fix bug on MacOS X when low on file descriptors
7766
7767         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7768         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7769         All callers changed.
7770         (fdopendir): Invoke save_cwd at the top level, not after using
7771         multiple dup() calls to use up file descriptors.  Then retry
7772         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7773         less than the maximum number of open file descriptors, because
7774         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7775         on Mac OS X 10.6.4 for tar 1.24
7776         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7777         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7778         and for tar 1.25
7779         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7780
7781 2010-11-07  Bruno Haible  <bruno@clisp.org>
7782
7783         vasnprintf: Support I flag on glibc systems.
7784         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7785         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7786         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7787         snprintf function.
7788         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7789         glibc systems.
7790         * tests/test-vasnprintf-posix3.c: New file.
7791         * modules/vasnprintf-posix-tests (Files): Add it.
7792         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7793
7794 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7795
7796         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7797         * MODULES.html.sh: For compiler warnings, use name
7798         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7799
7800 2010-11-05  Eric Blake  <eblake@redhat.com>
7801
7802         ceil, floor: avoid spurious failure with icc
7803         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7804         [denormals-as-zero] when optimizing without -mieee-fp option.
7805         * tests/test-floorf2.c (floorf_reference): Likewise.
7806         * tests/test-ceilf1.c (dummy): New function.
7807         (main): Use it to outsmart icc's optimization.
7808         * tests/test-floorf1.c (dummy, main): Likewise.
7809
7810         tests: require working signbit
7811         * modules/ceilf-tests (Depends-on): Add signbit.
7812         * modules/ceill-tests (Depends-on): Likewise.
7813         * modules/floorf-tests (Depends-on): Likewise.
7814         * modules/floorl-tests (Depends-on): Likewise.
7815         * modules/round-tests (Depends-on): Likewise.
7816         * modules/roundf-tests (Depends-on): Likewise.
7817         * modules/roundl-tests (Depends-on): Likewise.
7818         * modules/trunc-tests (Depends-on): Likewise.
7819         * modules/truncf-tests (Depends-on): Likewise.
7820         * modules/truncl-tests (Depends-on): Likewise.
7821
7822         strtod: work around icc bug
7823         * lib/strtod.c (minus_zero): Define to working value.
7824         (strtod): Use it to avoid icc bug.
7825
7826         copysign: enhance tests
7827         * modules/copysign-tests (Files): Add minus-zero.h.
7828         * tests/test-copysign.c (main): Also test zeros.
7829
7830 2010-11-04  Eric Blake  <eblake@redhat.com>
7831
7832         ceil, floor, round, trunc: enhance tests of -0
7833         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7834         * tests/test-ceill.c (main): Likewise.
7835         * tests/test-floorf1.c (main): Likewise.
7836         * tests/test-floorl.c (main): Likewise.
7837         * tests/test-round1.c (main): Likewise.
7838         * tests/test-roundf1.c (main): Likewise.
7839         * tests/test-roundl.c (main): Likewise.
7840         * tests/test-trunc1.c (main): Likewise.
7841         * tests/test-truncf1.c (main): Likewise.
7842         * tests/test-truncl.c (main): Likewise.
7843
7844 2010-11-04  Eric Blake  <eblake@redhat.com>
7845
7846         frexp, tests: work around ICC bug with -zero
7847         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7848         works with more compilers.
7849         * tests/minus-zero.h: New file.
7850         * modules/ceilf-tests (Files): Include it.
7851         * modules/ceill-tests (Files): Likewise.
7852         * modules/floorf-tests (Files): Likewise.
7853         * modules/floorl-tests (Files): Likewise.
7854         * modules/frexp-nolibm-tests (Files): Likewise.
7855         * modules/frexp-tests (Files): Likewise.
7856         * modules/frexpl-nolibm-tests (Files): Likewise.
7857         * modules/frexpl-tests (Files): Likewise.
7858         * modules/isnan-tests (Files): Likewise.
7859         * modules/isnand-nolibm-tests (Files): Likewise.
7860         * modules/isnand-tests (Files): Likewise.
7861         * modules/isnanf-nolibm-tests (Files): Likewise.
7862         * modules/isnanf-tests (Files): Likewise.
7863         * modules/isnanl-nolibm-tests (Files): Likewise.
7864         * modules/isnanl-tests (Files): Likewise.
7865         * modules/round-tests (Files): Likewise.
7866         * modules/roundf-tests (Files): Likewise.
7867         * modules/roundl-tests (Files): Likewise.
7868         * modules/ldexpl-tests (Files): Likewise.
7869         * modules/signbit-tests (Files): Likewise.
7870         * modules/snprintf-posix-tests (Files): Likewise.
7871         * modules/sprintf-posix-tests (Files): Likewise.
7872         * modules/strtod-tests (Files): Likewise.
7873         * modules/trunc-tests (Files): Likewise.
7874         * modules/truncf-tests (Files): Likewise.
7875         * modules/truncl-tests (Files): Likewise.
7876         * modules/vsnprintf-posix-tests (Files): Likewise.
7877         * modules/vsprintf-posix-tests (Files): Likewise.
7878         * modules/vasnprintf-posix-tests (Files): Likewise.
7879         * modules/vasprintf-posix-tests (Files): Likewise.
7880         * tests/test-ceilf1.c (main): Use it.
7881         * tests/test-ceill.c (main): Likewise.
7882         * tests/test-floorf1.c (main): Likewise.
7883         * tests/test-floorl.c (main): Likewise.
7884         * tests/test-frexp.c (main): Likewise.
7885         * tests/test-frexpl.c (main): Likewise.
7886         * tests/test-isnan.c (main): Likewise.
7887         * tests/test-isnand.h (main): Likewise.
7888         * tests/test-isnanf.h (main): Likewise.
7889         * tests/test-isnanl.h (main): Likewise.
7890         * tests/test-ldexpl.c (main): Likewise.
7891         * tests/test-round.c (main): Likewise.
7892         * tests/test-roundf.c (main): Likewise.
7893         * tests/test-roundl.c (main): Likewise.
7894         * tests/test-signbit.c (test_signbitf, test_signbitd)
7895         (test_signbitl): Likewise.
7896         * tests/test-snprintf-posix.h (test_function): Likewise.
7897         * tests/test-sprintf-posix.h (test_function): Likewise.
7898         * tests/test-strtod.c (main): Likewise.
7899         * tests/test-trunc1.c (main): Likewise.
7900         * tests/test-truncf1.c (main): Likewise.
7901         * tests/test-truncl.c (main): Likewise.
7902
7903         isnanl: work around icc bug
7904         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7905
7906 2010-11-03  Eric Blake  <eblake@redhat.com>
7907
7908         tests: fix compiler warnings
7909         * tests/test-getopt.h (test_getopt): Fix condition.
7910         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7911         * tests/test-pipe2.c (main): Likewise.
7912         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7913
7914         utimens: fix broken m4 test
7915         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7916
7917 2010-10-28  Bruno Haible  <bruno@clisp.org>
7918
7919         posix_spawn*, getdtablesize: Relax license.
7920         * modules/posix_spawn (License): Change to LGPLv2+.
7921         * modules/posix_spawnp (License): Likewise.
7922         * modules/posix_spawn-internal (License): Likewise.
7923         * modules/posix_spawnattr_init (License): Likewise.
7924         * modules/posix_spawnattr_getflags (License): Likewise.
7925         * modules/posix_spawnattr_setflags (License): Likewise.
7926         * modules/posix_spawnattr_getpgroup (License): Likewise.
7927         * modules/posix_spawnattr_setpgroup (License): Likewise.
7928         * modules/posix_spawnattr_getschedparam (License): Likewise.
7929         * modules/posix_spawnattr_setschedparam (License): Likewise.
7930         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7931         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7932         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7933         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7934         * modules/posix_spawnattr_getsigmask (License): Likewise.
7935         * modules/posix_spawnattr_setsigmask (License): Likewise.
7936         * modules/posix_spawnattr_destroy (License): Likewise.
7937         * modules/posix_spawn_file_actions_init (License): Likewise.
7938         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7939         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7940         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7941         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7942         * modules/getdtablesize (License): Likewise.
7943         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7944
7945 2010-10-26  Bruno Haible  <bruno@clisp.org>
7946
7947         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7948         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7949         Cygwin and mingw.
7950         Suggested by Eric Blake.
7951
7952 2010-10-26  Bruno Haible  <bruno@clisp.org>
7953
7954         stdio: Work around compilation error due to renameat() on Solaris 10.
7955         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7956         * lib/renameat.c: Don't include <unistd.h> here.
7957         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7958         Reported by Paul Eggert and Eric Blake.
7959
7960 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         renameat: port to Solaris 10, which declares renameat in unistd.h
7963
7964         * lib/renameat.c: Include unistd.h before stdio.h, because
7965         Solaris 10 declares renameat in unistd.h.  Problem encountered
7966         when building GNU tar 1.24 on Solaris 10.
7967
7968 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7969
7970         fdopendir: fix C89 compilation
7971         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7972         compilers.
7973
7974 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         inttostr: simplify by removing unnecessary redundancy
7977         * lib/anytostr.c: Don't include verify.h.
7978         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7979         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7980         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7981         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7982         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7983         Likewise.
7984         * modules/inttostr (Depends-on): Remove 'verify'.
7985
7986 2010-10-23  Bruno Haible  <bruno@clisp.org>
7987
7988         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7989         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7990         Reported by Eric Blake.
7991
7992 2010-10-23  Bruno Haible  <bruno@clisp.org>
7993
7994         Tests: Fix LOCALE_JA on MirBSD 10.
7995         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7996         to an UTF-8 locale.
7997         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7998         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7999         Reported by Eric Blake.
8000
8001 2010-10-21  Bruno Haible  <bruno@clisp.org>
8002
8003         nl_langinfo test: Avoid test failure on NetBSD 5.
8004         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8005         Reported by Eric Blake.
8006
8007 2010-10-21  Eric Blake  <eblake@redhat.com>
8008
8009         c-stack: work around libsigsegv 2.8 bug
8010         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8011         overflow on at least PowerPC64.
8012
8013 2010-10-17  Bruno Haible  <bruno@clisp.org>
8014
8015         userspec: Drop redundant file.
8016         * modules/userspec (Files): Remove lib/inttostr.h.
8017
8018 2010-10-17  Bruno Haible  <bruno@clisp.org>
8019
8020         nl_langinfo tests: Silence some warnings.
8021         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8022         Reported by Jim Meyering.
8023
8024 2010-10-17  Bruno Haible  <bruno@clisp.org>
8025
8026         Make use of GCC's attribute __alloc_size__.
8027         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8028         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8029         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8030         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8031         __alloc_size__.
8032         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8033         Suggested by Jim Meyering.
8034
8035 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8036
8037         bootstrap: anchor .gitignore entries.
8038         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8039         with...
8040         (insert_vc_ignore): ... this new function, which prepends `/' to
8041         all .gitignore entries before passing them to
8042         insert_sorted_if_absent.
8043
8044 2010-10-16  Bruno Haible  <bruno@clisp.org>
8045
8046         nextafter: Fix configure check.
8047         * modules/nextafter (configure.ac): Correct expected prototype.
8048
8049 2010-10-16  Bruno Haible  <bruno@clisp.org>
8050
8051         termios: Update documentation.
8052         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8053
8054 2010-10-16  Bruno Haible  <bruno@clisp.org>
8055
8056         tests: Make them compile with TinyCC.
8057         * tests/test-strstr.c (main): Remove parentheses around array
8058         initializer.
8059
8060 2010-10-15  Eric Blake  <eblake@redhat.com>
8061
8062         ignore-value: make header idempotent
8063         * lib/ignore-value.h: Add double-inclusion guards.
8064         Reported by Stefan Berger.
8065
8066 2010-10-15  Jim Meyering  <meyering@redhat.com>
8067
8068         GNUmakefile: handle "stable" target, not "major"
8069         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8070         lists in maint.mk and announce-gen.  Without this, "make stable"
8071         would fail to ensure that $(VERSION) is up to date.
8072
8073 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8074
8075         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8076         & co.
8077
8078 2010-10-14  Bruno Haible  <bruno@clisp.org>
8079
8080         vasnprintf: Don't set errno to 0.
8081         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8082         block that sets it to 0.
8083         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8084
8085 2010-10-14  Bruno Haible  <bruno@clisp.org>
8086
8087         socketlib: Fix.
8088         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8089         gl_PREREQ_SYS_H_WINSOCK2.
8090         Reported by Ian Beckwith <ianb@erislabs.net>.
8091
8092 2010-10-13  Jim Meyering  <meyering@redhat.com>
8093
8094         test-select-stdin.c: avoid warn_unused_result warnings
8095         * tests/test-select-stdin.c: Include "macros.h".
8096         ASSERT that read and fflush succeed.
8097
8098 2010-10-13  Jim Meyering  <meyering@redhat.com>
8099
8100         git-version-gen: do require git-VC'd files in cwd
8101         * build-aux/git-version-gen: Reject a git version string
8102         if there are no commits associated with the current directory.
8103         This avoids an unlikely false-positive (unrelated dir whose parent
8104         repository also contains a tag matching v*), as pointed out
8105         by Giuseppe Scrivano in
8106         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8107
8108 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8109
8110         argv-iter: omit nonconforming declaration
8111         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8112         enum arg_iter_err declaration, which doesn't conform to C99.
8113         Solaris 10 cc warns about this.
8114
8115 2010-10-13  Eric Blake  <eblake@redhat.com>
8116
8117         termios: fix compilation on mingw
8118         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8119         (gl_TERMIOS_H): Adjust it on mingw.
8120         * modules/termios (Makefile.am): Substitute new key.
8121         * lib/termios.in.h (includes): Make include_next conditional.
8122         * doc/posix-headers/termios.texi (termios.h): Update
8123         documentation.
8124         Reported by Daniel P. Berrange.
8125
8126 2010-10-13  Jim Meyering  <meyering@redhat.com>
8127
8128         git-version-gen: don't require that .git/ be in the current dir
8129         * build-aux/git-version-gen: Adjust this script so that it works
8130         when run from any working directory beneath the top-level .git/-
8131         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8132         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8133
8134         test-select: avoid warn_unused_result warnings
8135         * tests/test-select.c: Include "macros.h".
8136         ASSERT that each call to read, write, and pipe succeeds.
8137         While not technically required, also check each "close".
8138         * modules/select-tests (Files): Add tests/macros.h.
8139
8140         test-symlinkat: remove declaration of unused local
8141         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8142
8143         test-inttostr: avoid shadowing warnings
8144         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8145         and use malloc rather than the stack for the same reason as
8146         mentioned in the comment justifying the other allocation.
8147
8148 2010-10-11  Bruno Haible  <bruno@clisp.org>
8149
8150         stdlib: Allow multiple gnulib generated replacements to coexist.
8151         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8152         Reported by Sam Steingold <sds@gnu.org>.
8153
8154 2010-10-11  Jim Meyering  <meyering@redhat.com>
8155
8156         fix a documentation typo
8157         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8158
8159 2010-10-11  Eric Blake  <eblake@redhat.com>
8160
8161         futimens: work around Solaris 11 bug
8162         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8163         * tests/test-futimens.h (test_futimens): Enhance, rather than
8164         weaken test.
8165         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8166
8167 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8168
8169         Indentation.
8170         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8171         higher-level operators more to the left.
8172
8173 2010-10-11  Jim Meyering  <meyering@redhat.com>
8174
8175         test-futimens: avoid unwarranted test failure on Solaris 5.11
8176         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8177         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8178         because it tries to dereference the NULL name argument.
8179
8180 2010-10-11  Bruno Haible  <bruno@clisp.org>
8181
8182         Indentation.
8183         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8184         indentation.
8185
8186 2010-10-11  Jim Meyering  <meyering@redhat.com>
8187
8188         spawn.in.h: make indentation consistent with parentheses
8189         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8190         Make indentation consistent with parentheses.
8191
8192 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8193
8194         Fix mismatched parens in previous commit
8195         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8196         parens.
8197
8198 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8199
8200         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8201
8202         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8203         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8204         * lib/malloca.c: Include "verify.h".
8205         (verify1): Remove, replacing with a verify call.
8206         * lib/relocwrapper.c (verify1): Likewise.
8207         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8208         Likewise.
8209         * modules/malloca (Depends-on): Add 'verify'.
8210         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8211         * modules/vasnprintf (Depends-on): Add 'verify'.
8212         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8213         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8214         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8215         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8216         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8217         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8218         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8219
8220         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8221
8222         Formerly the style was sometimes 2*X - 1, because the C standard
8223         was wrongly thought to disallow ?: in integral constant expressions.
8224         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8225         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8226         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8227         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8228         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8229         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8230         verify that time_t cannot be floating.
8231
8232 2010-10-08  Eric Blake  <eblake@redhat.com>
8233
8234         time: enforce recent POSIX ruling that time_t is integral
8235         * lib/time.in.h (__time_t_must_be_integral): Detect any
8236         problematic systems, allowing the rest of gnulib to assume POSIX.
8237
8238 2010-10-08  Jim Meyering  <meyering@redhat.com>
8239
8240         fdopendir: fix a bug on systems lacking openat and /proc support
8241         OpenBSD 4.7 is one such system.  The most noticeable effect was
8242         failure of any application making nontrivial use of fts: rm, du,
8243         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8244           ./rm: traversal failed: `a': Bad file descriptor
8245         Debugging that, you see that even though FD 6 was closed just
8246         prior to the opendir call in fd_clone_opendir, its resulting
8247         dir->dd_fd was 8, rather than the expected value of 6:
8248
8249         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8250         93                close (fd);
8251         (gdb) n
8252         94                dir = fd_clone_opendir (dupfd);
8253         (gdb) n
8254         95                saved_errno = errno;
8255         (gdb) p dir->dd_fd
8256         $11 = 8
8257
8258         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8259         The problem is that on OpenBSD, fd_clone_opendir has to resort
8260         to using the old-style save/restore CWD mechanism, due to its
8261         lack of openat/proc support, and *that* would steal the FD (6)
8262         that opendir was supposed to use.
8263
8264         The fix is to squirrel away the desired FD so that save_cwd uses a
8265         different one, and then free the dest FD right before calling opendir.
8266         That guarantees opendir will use the required file descriptor.
8267
8268         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8269
8270 2010-10-08  Bruno Haible  <bruno@clisp.org>
8271
8272         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8273         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8274
8275 2010-10-08  Bruno Haible  <bruno@clisp.org>
8276
8277         nanosleep: Make replacement POSIX compliant.
8278         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8279         is out of range.
8280         Reported by Jim Meyering.
8281
8282 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8283
8284         bootstrap: add hook for altering gnulib.mk, for Bison
8285         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8286         the Bison bootstrapping process can rewrite file names and variables
8287         in this file before later parts of 'bootstrap' use the file.
8288         Bison wants to include lib/gnulib.mk from the top-level makefile,
8289         so it needs the file names in this file to be relative to the top
8290         level, not relative to lib; plus it needs variable names to be
8291         rewritten.
8292         (slurp): Use the new function.
8293
8294         bootstrap: reformat for readability
8295         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8296
8297 2010-10-08  Eric Blake  <eblake@redhat.com>
8298
8299         docs: update cygwin progress
8300         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8301         1.7.7.
8302         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8303         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8304         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8305         * doc/posix-functions/carg.texi (carg): Likewise.
8306         * doc/posix-functions/cargf.texi (cargf): Likewise.
8307         * doc/posix-functions/casin.texi (casin): Likewise.
8308         * doc/posix-functions/casinf.texi (casinf): Likewise.
8309         * doc/posix-functions/casinh.texi (casinh): Likewise.
8310         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8311         * doc/posix-functions/catan.texi (catan): Likewise.
8312         * doc/posix-functions/catanf.texi (catanf): Likewise.
8313         * doc/posix-functions/catanh.texi (catanh): Likewise.
8314         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8315         * doc/posix-functions/ccos.texi (ccos): Likewise.
8316         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8317         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8318         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8319         * doc/posix-functions/cexp.texi (cexp): Likewise.
8320         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8321         * doc/posix-functions/cimag.texi (cimag): Likewise.
8322         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8323         * doc/posix-functions/clog.texi (clog): Likewise.
8324         * doc/posix-functions/clogf.texi (clogf): Likewise.
8325         * doc/posix-functions/conj.texi (conj): Likewise.
8326         * doc/posix-functions/conjf.texi (conjf): Likewise.
8327         * doc/posix-functions/cpow.texi (cpow): Likewise.
8328         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8329         * doc/posix-functions/cproj.texi (cproj): Likewise.
8330         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8331         * doc/posix-functions/creal.texi (creal): Likewise.
8332         * doc/posix-functions/crealf.texi (crealf): Likewise.
8333         * doc/posix-functions/csin.texi (csin): Likewise.
8334         * doc/posix-functions/csinf.texi (csinf): Likewise.
8335         * doc/posix-functions/csinh.texi (csinh): Likewise.
8336         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8337         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8338         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8339         * doc/posix-functions/ctan.texi (ctan): Likewise.
8340         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8341         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8342         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8343         * doc/posix-headers/complex.texi (complex.h): Likewise.
8344
8345 2010-10-07  Jim Meyering  <meyering@redhat.com>
8346
8347         parse-datetime: avoid compilation failure on OpenBSD 4.7
8348         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8349         This works around a compilation failure on OpenBSD 4.7:
8350         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8351
8352 2010-10-07  Eric Blake  <eblake@redhat.com>
8353
8354         docs: update cygwin progress
8355         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8356         1.7.6.
8357         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8358         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8359         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8360         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8361         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8362         Likewise.
8363         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8364         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8365         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8366         Likewise.
8367         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8368         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8369         Likewise.
8370         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8371         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8372         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8373         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8374         Likewise.
8375         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8376         Likewise.
8377         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8378
8379         docs: update parse-datetime history
8380         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8381         documentation of this function's history and alternatives.
8382
8383         cygwin: use more robust version check
8384         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8385         exclude an eventual cygwin 1.9.1.
8386         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8388         (gl_FUNC_STRCASESTR): Likewise.
8389         Reported by Bruno Haible.
8390
8391 2010-10-06  Bruno Haible  <bruno@clisp.org>
8392
8393         string, sys_select: Avoid #including large headers unless necessary.
8394         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8395         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8396         OSF/1, BeOS, Haiku.
8397         Reported by Jim Meyering.
8398
8399 2010-10-05  Eric Blake  <eblake@redhat.com>
8400
8401         memmem, strstr, strcasestr: fix bug with long periodic needle
8402         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8403         periodic needle having false positive.
8404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8405         and cygwin 1.7.7.
8406         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8407         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8408         (gl_FUNC_STRCASESTR): Likewise.
8409         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8410         * tests/test-memmem.c (main): Expose the bug.
8411         * tests/test-strcasestr.c (main): Likewise.
8412         * tests/test-strstr.c (main): Likewise.
8413         * tests/test-c-strcasestr.c (main): Likewise.
8414         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8415         * doc/posix-functions/strstr.texi (strstr): Likewise.
8416         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8417         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8418
8419 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8420
8421         parse-datetime: do some more renaming
8422         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8423         parse_datetime, not get_date.  Mention the renaming.
8424         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8425         in comments.
8426         * m4/bison.m4: Likewise.
8427
8428 2010-10-05  Eric Blake  <eblake@redhat.com>
8429
8430         parse-datetime: better name than get_date
8431         * NEWS: Reword the deprecation notice.
8432         * modules/get_date: Rename to modules/parse-datetime.
8433         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8434         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8435         * lib/get_date.y: Rename to lib/parse-datetime.y.
8436         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8437         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8438         * doc/getdate.texi: Provide fallback wrapper.
8439         * lib/getdate.h: Move guts, and wrap...
8440         * lib/parse-datetime.h: ...new file.
8441         * lib/parse-datetime.y (get_date): Rename...
8442         (parse_datetime): ...to this.
8443         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8444         (gl_PARSE_DATETIME): ...to this.
8445         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8446         documentation.
8447         * modules/getdate (Files): Provide fallback docs and header.
8448         (Notice, Depends-on): Update references.
8449         * tests/test-parse-datetime.c: Likewise.
8450         * DEPENDENCIES: Likewise.
8451         * MODULES.html.sh (Date and time <time.h>): Likewise.
8452         * doc/parse-datetime.texi (Date input formats)
8453         (Authors of parse_datetime): Likewise.
8454         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8455         (Include): Likewise.
8456         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8457         * gnulib-tool: Likewise.
8458         * m4/bison.m4 (gl_BISON): Likewise.
8459         Suggested by Bruno Haible.
8460
8461 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8462
8463         more ports to Solaris tr, which needs [] around ranges
8464         * gnulib-tool: Solaris tr needs [] around ranges.
8465         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8466         * tests/test-pipe-filter-gi1.c (main): Likewise.
8467         * tests/test-pipe-filter-ii1.c (main): Likewise.
8468
8469 2010-10-05  Eric Blake  <eblake@redhat.com>
8470
8471         bootstrap: fix Solaris regression
8472         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8473         around ranges.
8474         Reported by Pádraig Brady.
8475
8476         bootstrap: work with pkg-config
8477         * build-aux/bootstrap (check_versions): Also transliterate - in
8478         prerequisite name.
8479         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8480         prerequisites that were already found, to avoid confusion.
8481         Reported by Justin Clift.
8482
8483         faccessat: remove unused wrappers
8484         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8485         presence of these wrappers dragged in -lgen on Solaris.
8486         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8487
8488 2010-10-05  Jim Meyering  <meyering@redhat.com>
8489
8490         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8491         * Makefile (sc_pragma_columns): New syntax-check rule.
8492
8493 2010-10-04  Bruno Haible  <bruno@clisp.org>
8494
8495         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8496         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8497         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8498         Reported by Bruce Korb and Eric Blake.
8499
8500 2010-10-04  Bruno Haible  <bruno@clisp.org>
8501
8502         threadlib: Make option --with-libpth-prefix work.
8503         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8504         use $LIBPTH, not just -lpth.
8505
8506 2010-10-04  Bruno Haible  <bruno@clisp.org>
8507
8508         Avoid line length limitation from HP NonStop system header files.
8509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8510         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8511         * lib/ctype.in.h: Likewise.
8512         * lib/dirent.in.h: Likewise.
8513         * lib/errno.in.h: Likewise.
8514         * lib/fcntl.in.h: Likewise.
8515         * lib/float.in.h: Likewise.
8516         * lib/getopt.in.h: Likewise.
8517         * lib/iconv.in.h: Likewise.
8518         * lib/inttypes.in.h: Likewise.
8519         * lib/langinfo.in.h: Likewise.
8520         * lib/locale.in.h: Likewise.
8521         * lib/math.in.h: Likewise.
8522         * lib/netdb.in.h: Likewise.
8523         * lib/netinet_in.in.h: Likewise.
8524         * lib/poll.in.h: Likewise.
8525         * lib/pthread.in.h: Likewise.
8526         * lib/pty.in.h: Likewise.
8527         * lib/sched.in.h: Likewise.
8528         * lib/se-selinux.in.h: Likewise.
8529         * lib/search.in.h: Likewise.
8530         * lib/signal.in.h: Likewise.
8531         * lib/spawn.in.h: Likewise.
8532         * lib/stdarg.in.h: Likewise.
8533         * lib/stddef.in.h: Likewise.
8534         * lib/stdint.in.h: Likewise.
8535         * lib/stdio.in.h: Likewise.
8536         * lib/stdlib.in.h: Likewise.
8537         * lib/string.in.h: Likewise.
8538         * lib/strings.in.h: Likewise.
8539         * lib/sys_file.in.h: Likewise.
8540         * lib/sys_ioctl.in.h: Likewise.
8541         * lib/sys_select.in.h: Likewise.
8542         * lib/sys_socket.in.h: Likewise.
8543         * lib/sys_stat.in.h: Likewise.
8544         * lib/sys_time.in.h: Likewise.
8545         * lib/sys_times.in.h: Likewise.
8546         * lib/sys_utsname.in.h: Likewise.
8547         * lib/sys_wait.in.h: Likewise.
8548         * lib/sysexits.in.h: Likewise.
8549         * lib/termios.in.h: Likewise.
8550         * lib/time.in.h: Likewise.
8551         * lib/unistd.in.h: Likewise.
8552         * lib/wchar.in.h: Likewise.
8553         * lib/wctype.in.h: Likewise.
8554         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8555         * modules/ctype (Makefile.am): Likewise.
8556         * modules/dirent (Makefile.am): Likewise.
8557         * modules/errno (Makefile.am): Likewise.
8558         * modules/fcntl-h (Makefile.am): Likewise.
8559         * modules/float (Makefile.am): Likewise.
8560         * modules/getopt-posix (Makefile.am): Likewise.
8561         * modules/iconv-h (Makefile.am): Likewise.
8562         * modules/inttypes (Makefile.am): Likewise.
8563         * modules/langinfo (Makefile.am): Likewise.
8564         * modules/locale (Makefile.am): Likewise.
8565         * modules/math (Makefile.am): Likewise.
8566         * modules/netdb (Makefile.am): Likewise.
8567         * modules/netinet_in (Makefile.am): Likewise.
8568         * modules/poll-h (Makefile.am): Likewise.
8569         * modules/pthread (Makefile.am): Likewise.
8570         * modules/pty (Makefile.am): Likewise.
8571         * modules/sched (Makefile.am): Likewise.
8572         * modules/search (Makefile.am): Likewise.
8573         * modules/selinux-h (Makefile.am): Likewise.
8574         * modules/signal (Makefile.am): Likewise.
8575         * modules/spawn (Makefile.am): Likewise.
8576         * modules/stdarg (Makefile.am): Likewise.
8577         * modules/stddef (Makefile.am): Likewise.
8578         * modules/stdint (Makefile.am): Likewise.
8579         * modules/stdio (Makefile.am): Likewise.
8580         * modules/stdlib (Makefile.am): Likewise.
8581         * modules/string (Makefile.am): Likewise.
8582         * modules/strings (Makefile.am): Likewise.
8583         * modules/sys_file (Makefile.am): Likewise.
8584         * modules/sys_ioctl (Makefile.am): Likewise.
8585         * modules/sys_select (Makefile.am): Likewise.
8586         * modules/sys_socket (Makefile.am): Likewise.
8587         * modules/sys_stat (Makefile.am): Likewise.
8588         * modules/sys_time (Makefile.am): Likewise.
8589         * modules/sys_times (Makefile.am): Likewise.
8590         * modules/sys_utsname (Makefile.am): Likewise.
8591         * modules/sys_wait (Makefile.am): Likewise.
8592         * modules/sysexits (Makefile.am): Likewise.
8593         * modules/termios (Makefile.am): Likewise.
8594         * modules/time (Makefile.am): Likewise.
8595         * modules/unistd (Makefile.am): Likewise.
8596         * modules/wchar (Makefile.am): Likewise.
8597         * modules/wctype (Makefile.am): Likewise.
8598
8599 2010-10-04  Bruno Haible  <bruno@clisp.org>
8600
8601         read-file tests: Avoid a test failure on NonStop Kernel.
8602         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8603         a regular file.
8604         Reported by Joachim Schmitz <schmitz@hp.com>.
8605
8606 2010-10-03  Bruno Haible  <bruno@clisp.org>
8607
8608         gnulib-tool: Fixes for --create-testdir with --libtool.
8609         * gnulib-tool (func_get_automake_snippet): Don't augment
8610         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8611         an executable.
8612         (func_create_testdir): Handle module 'alloca' like func_import.
8613         Reported by Bruce Korb <bruce.korb@gmail.com>.
8614
8615 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8616
8617         Avoid some lines longer than 80 characters.
8618         * lib/stdint.in.h: Break long comment lines.
8619         * lib/math.in.h: Likewise.
8620         (_GL_NUM_UINT_WORDS): New macro, for readability.
8621         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8622         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8623         * lib/stdlib.in.h: Likewise.
8624         * lib/spawn.in.h: Likewise.
8625         * lib/sys_socket.in.h: Update an URL.
8626         * lib/sys_stat.in.h: Break long line.
8627
8628 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8629
8630         Improve pmccabe2html.
8631         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8632         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8633         when the sources change. Remove the line in the HTML about "Used
8634         ranges" (which implied that there might be other unused ranges),
8635         rename "Resume" to "Summary" (easier to understand for more users).
8636         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8637         styles, and some unnecessary blank lines.
8638
8639 2010-10-03  Bruno Haible  <bruno@clisp.org>
8640             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8641
8642         acl: Add support for ACLs on NonStop Kernel.
8643         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8644         Check whether the function aclsort() exists.
8645         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8646         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8647         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8648         (acl_nontrivial [HAVE_ACLSORT]: New function.
8649         (file_has_acl): Implement for NonStop Kernel.
8650         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8651         (qset_acl): Implement for NonStop Kernel.
8652         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8653         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8654         (main): Implement for NonStop Kernel.
8655         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8656         Kernel. Handle this flavor.
8657         * tests/test-set-mode-acl.sh: Likewise.
8658         * tests/test-copy-acl.sh: Likewise.
8659         * tests/test-copy-file.sh: Likewise.
8660
8661 2010-10-03  Bruno Haible  <bruno@clisp.org>
8662
8663         Info about ACLs on NonStop Kernel.
8664         * doc/acl-resources.txt: Add info about NonStop Kernel.
8665         References by Joachim Schmitz <schmitz@hp.com>.
8666
8667 2010-10-02  Bruno Haible  <bruno@clisp.org>
8668
8669         Define missing EDQUOT on NonStop Kernel.
8670         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8671         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8672         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8673         missing.
8674         * doc/posix-headers/errno.texi: Mention the NSK bug.
8675         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8676         Reported by Joachim Schmitz <schmitz@hp.com>.
8677
8678 2010-10-02  Bruno Haible  <bruno@clisp.org>
8679
8680         Update doc for POSIX:2008.
8681         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8682         Update URL of POSIX specification.
8683
8684 2010-10-02  Bruno Haible  <bruno@clisp.org>
8685
8686         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8687         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8688         from gnulib, not from Automake.
8689
8690 2010-10-02  Bruno Haible  <bruno@clisp.org>
8691
8692         New module 'system-posix'.
8693         * modules/system-posix: New file.
8694         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8695         module is present.
8696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8697         GNULIB_SYSTEM_POSIX.
8698         * modules/stdlib (Depends-on): Remove sys_wait.
8699         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8700         * doc/posix-functions/system.texi: Mention the new module.
8701         * doc/posix-headers/stdlib.texi: Likewise.
8702         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8703         define test_sys_wait_macros to a no-op.
8704         Reported by Sam Steingold <sds@gnu.org>.
8705
8706 2010-09-30  Bruno Haible  <bruno@clisp.org>
8707
8708         More renaming from 'getdate' to 'get_date'.
8709         * doc/get_date.texi: Renamed from doc/getdate.texi.
8710         * modules/get_date (Files): Update.
8711         * MODULES.html.sh (Date and time <time.h>): Update.
8712         * DEPENDENCIES: Update.
8713         * gnulib-tool: Update comment.
8714         * m4/bison.m4 (gl_BISON): Likewise.
8715         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8716
8717 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8718
8719         bootstrap: support ACLOCAL_FLAGS during aclocal
8720         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8721         can add additional -I dir for third-party .m4 files.
8722
8723 2010-09-30  Eric Blake  <eblake@redhat.com>
8724
8725         bootstrap: use glibtoolize on MacOS
8726         * build-aux/bootstrap (check_versions): Convert libtool into
8727         libtoolize.
8728         (tool search): Move libtool check earlier, and look for
8729         glibtoolize for MacOS.
8730         (gnulib_tool_options): Auto-add --libtool when appropriate.
8731         Reported by Justin Clift.
8732
8733         poll: fix typo that broke test on MacOS
8734         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8735         Reported by Justin Clift.
8736
8737         getdate: rename to get_date
8738         Note: getdate.h is not renamed, to minimize client impact.
8739         * modules/getdate: Mark obsolete.  Move old contents...
8740         * modules/get_date: ...to new module name.
8741         * modules/getdate-tests: Move...
8742         * modules/get_date-tests: ...here.
8743         * m4/getdate.m4: Move...
8744         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8745         * lib/getdate.y: Move...
8746         * lib/get_date.y: ...here.
8747         * tests/test-getdate.c: Move...
8748         * tests/test-get_date.c: ...here.
8749         * doc/posix-functions/getdate.texi (getdate): Update name.
8750         * NEWS: Mention the change.
8751
8752 2010-09-29  Bruno Haible  <bruno@clisp.org>
8753
8754         Separate the module 'waitpid' from the module 'sys_wait'.
8755         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8756         present.
8757         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8758         gl_MODULE_INDICATOR_FOR_TESTS.
8759         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8760         * modules/sys_wait (Depends-on): Remove waitpid.
8761         (Makefile.am): Substitute GNULIB_WAITPID.
8762         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8763         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8764         signature only if the 'waitpid' module is present.
8765         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8766         * NEWS: Mention the change.
8767         * modules/grantpt (Depends-on): Add waitpid.
8768         * modules/wait-process (Depends-on): Likewise.
8769
8770 2010-09-29  Bruno Haible  <bruno@clisp.org>
8771
8772         More tests for module 'sys_wait'.
8773         * modules/sys_wait-c++-tests: New file.
8774         * tests/test-sys_wait-c++.cc: New file.
8775         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8776         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8777
8778 2010-09-29  Bruno Haible  <bruno@clisp.org>
8779
8780         New module 'waitpid'.
8781         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8782         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8783         Don't include <process.h>.
8784         (waitpid): Declare only, using modern idiom.
8785         * m4/waitpid.m4: New file.
8786         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8787         * modules/waitpid: New file.
8788         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8789         (Makefile.am): Update.
8790         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8791
8792 2010-09-28  Bruno Haible  <bruno@clisp.org>
8793
8794         poll: Assume ANSI C.
8795         * lib/poll.c (poll): Use an ANSI C declaration.
8796
8797 2010-09-28  Bruno Haible  <bruno@clisp.org>
8798
8799         poll-h: Create poll.h on all platforms.
8800         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8801         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8802         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8803         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8804         (gl_REPLACE_POLL_H): Don't set POLL_H.
8805         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8806         * modules/poll-h (Depends-on): Add include_next.
8807         (Makefile.am): Create poll.h unconditionally. Substitute also
8808         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8809
8810 2010-09-28  Bruno Haible  <bruno@clisp.org>
8811
8812         Tests for module 'poll-h'.
8813         * modules/poll-h-c++-tests: New file.
8814         * tests/test-poll-h-c++.cc: New file.
8815
8816         Tests for module 'poll-h'.
8817         * modules/poll-h-tests: New file.
8818         * tests/test-poll-h.c: New file.
8819
8820 2010-09-28  Bruno Haible  <bruno@clisp.org>
8821
8822         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8823         * modules/poll-h (Depends-on): Add 'extensions'.
8824
8825 2010-09-28  Bruno Haible  <bruno@clisp.org>
8826
8827         New module 'poll-h'.
8828         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8829         (poll): Use modern idiom.
8830         * modules/poll-h: New file.
8831         * modules/poll (Files): Remove lib/poll.in.h.
8832         (Depends-on): Add poll-h.
8833         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8834         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8835         * m4/poll_h.m4: New file.
8836         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8837         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8838         and invoke gl_REPLACE_POLL_H.
8839         * lib/poll.c: Use common idiom.
8840         * tests/test-poll.c: Likewise.
8841         * doc/posix-headers/poll.texi: Mention the poll-h module.
8842         Suggested by Eric Blake.
8843
8844 2010-09-26  Bruno Haible  <bruno@clisp.org>
8845
8846         sys_wait: Implement WSTOPSIG.
8847         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8848         Reported by Simon Josefsson.
8849
8850 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8851
8852         stdlib, sys_wait: Avoid compilation error on mingw.
8853         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8854
8855 2010-09-26  Bruno Haible  <bruno@clisp.org>
8856
8857         stdlib tests: Avoid code duplication.
8858         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8859         * modules/sys_wait-tests (Files): Likewise.
8860         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8861         * tests/test-stdlib.c: Include test-sys_wait.h.
8862         (main): Invoke test_sys_wait_macros.
8863         * tests/test-sys_wait.c: Include test-sys_wait.h.
8864         (main): Invoke test_sys_wait_macros.
8865
8866 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8867
8868         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8869         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8870         sure Windows sockets are working before calling getaddrinfo.
8871         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8872         * doc/gnulib.texi (Windows sockets): Fix typo.
8873
8874 2010-09-25  Bruno Haible  <bruno@clisp.org>
8875
8876         Tests for module 'regex-quote'.
8877         * modules/regex-quote-tests: New file.
8878         * tests/test-regex-quote.c: New file.
8879
8880         New module 'regex-quote'.
8881         * lib/regex-quote.h: New file.
8882         * lib/regex-quote.c: New file.
8883         * modules/regex-quote: New file.
8884         Suggested by Reuben Thomas <rrt@sc3d.org>.
8885
8886 2010-09-24  Bruno Haible  <bruno@clisp.org>
8887
8888         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8889         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8890
8891 2010-09-23  Bruno Haible  <bruno@clisp.org>
8892
8893         setenv: Relax license.
8894         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8895         Blake.
8896         Requested by Eric Blake.
8897
8898 2010-09-22  Bruno Haible  <bruno@clisp.org>
8899
8900         termios: Relax license.
8901         * modules/termios (License): Change to LGPLv2+.
8902         Requested by Eric Blake.
8903
8904 2010-09-22  Bruno Haible  <bruno@clisp.org>
8905
8906         threadlib: Allow the package to change the default to 'no'.
8907         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8908         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8909         Reported by Paul Eggert.
8910
8911 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8912             Bruno Haible  <bruno@clisp.org>
8913
8914         Fix endless loop in mbmemcasecoll.
8915         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8916         byte.
8917         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8918
8919 2010-09-22  Bruno Haible  <bruno@clisp.org>
8920
8921         Tests for module 'memcoll'.
8922         * modules/memcoll-tests: New file.
8923         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8924
8925         memcoll, xmemcoll: Clarify size vs. length.
8926         * modules/memcoll.c (memcoll0): Clarify specification.
8927         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8928         passed to collate_error.
8929
8930 2010-09-22  Bruno Haible  <bruno@clisp.org>
8931
8932         Tests for module 'memcasecmp'.
8933         * modules/memcasecmp-tests: New file.
8934         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8935
8936 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8937
8938         * lib/pthread.in.h: Add split double-inclusion guard, and include
8939         system <pthread.h> if there is one.  Use @@-style as in other
8940         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8941         pthread.h doesn't.
8942         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8943         (pthread_mutexattr_settype, pthread_mutex_trylock):
8944         New static inline functions, if there's no system <pthread.h>.
8945         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8946         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8947         Approximate with mutexes if the system lacks spinlocks, as in
8948         MacOS.
8949         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8950         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8951         @@-style.  Check for spinlocks separately.
8952         (gl_PTHREAD_DEFAULTS): New macro.
8953         * modules/pthread: Redo to use a more typical style for in.h files.
8954
8955 2010-09-21  Eric Blake  <eblake@redhat.com>
8956
8957         net_if: enhance tests
8958         * tests/test-net_if.c (main): Move signature checks earlier.
8959         Print failures to stderr.
8960         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8961         Document the bug that we do not yet fix.
8962
8963 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8964
8965         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8966         about gnulib, not GSS.
8967
8968 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8969
8970         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8971         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8972         for Emacs.
8973         * build-aux/pmccabe2html: Make Makefile.am example code more
8974         cut-and-paste friendly.
8975
8976 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8977
8978         * tests/test-net_if.c: New file.
8979         * modules/net_if-tests: New file.
8980
8981 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8982
8983         pthread: add pthread_spin_destroy
8984         * lib/pthread.in.h (pthread_spin_destroy): New function.
8985
8986 2010-09-19  Bruno Haible  <bruno@clisp.org>
8987
8988         gnulib-tool: Fix --help output.
8989         * gnulib-tool (func_usage): Fix help message.
8990         Reported by Reuben Thomas <rrt@sc3d.org>.
8991
8992 2010-09-18  Jim Meyering  <meyering@redhat.com>
8993
8994         maint.mk: avoid unexpanded \n in two diagnostics
8995         * top/maint.mk (sc_prohibit_always_true_header_tests):
8996         Don't use a literal \n in a halt=... assignment.  It would not be
8997         expanded, and the two \n bytes would appear in the diagnostic output
8998         rather than the desired newline.  Use halt=$$(printf ... instead.
8999         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9000
9001 2010-09-18  Bruno Haible  <bruno@clisp.org>
9002
9003         netinet_in: Doc tweak.
9004         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9005         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9006
9007 2010-09-18  Jim Meyering  <meyering@redhat.com>
9008
9009         init.sh: correct an outdated comment
9010         * tests/init.sh (create_exe_shims_):  s/function/alias/
9011
9012         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9013         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9014         a file named "*.exe" is removed between the glob expansion and the
9015         processing of that oddly named file.
9016
9017 2010-09-17  Eric Blake  <eblake@redhat.com>
9018
9019         mirbsd: add some more support
9020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9021         in BSD family.
9022         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9023         devices as OpenBSD.
9024         * m4/host-os.m4 (mirbsd): Add MirBSD.
9025
9026         tests: fix unportable assumption on sys/wait.h
9027         * tests/test-sys_wait.c (main): Relax test.
9028         * tests/test-stdlib.c (main): Likewise.
9029
9030         init.sh: accomodate directory with no .exes
9031         * tests/init.sh: Accomodate directory containing only scripts.
9032
9033         tests: avoid compiler warning
9034         * tests/test-stdlib.c (main): Use the variable.
9035
9036         fdutimens, fdutimensat: update signature, again
9037         * lib/utimens.h (gl_futimens): Delete, and move signature...
9038         (fdutimens): ...here.
9039         (fdutimensat): Rearrange signature.
9040         (lutimensat): Rename variable for clarity.
9041         * lib/fdutimensat.c (fdutimensat): Update signature.
9042         * lib/utimens.c (fdutimens): Likewise.
9043         (gl_futimens): Delete.
9044         (utimens, lutimens): Update callers.
9045         * lib/futimens.c (futimens): Likewise.
9046         * tests/test-fdutimensat.c: Likewise.
9047         * tests/test-utimens.c: Likewise.
9048         * tests/test-futimens.h: Update comment.
9049         * NEWS: Mention this.
9050         Suggested by Paul Eggert.
9051
9052 2010-09-17  Bruno Haible  <bruno@clisp.org>
9053
9054         Take over the maintenance of some older macros from Autoconf.
9055         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9056         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9057         GNU Autoconf.
9058         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9059         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9060
9061 2010-09-17  Eric Blake  <eblake@redhat.com>
9062
9063         fdutimensat: drop atflag validation
9064         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9065         with valid fd, to close a race scenario where futimens is
9066         unsupported and FILE was replaced by a symlink.
9067         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9068         accordingly.
9069         Suggested by Paul Eggert.
9070
9071 2010-09-16  Bruno Haible  <bruno@clisp.org>
9072
9073         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9074         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9075
9076 2010-09-16  Bruno Haible  <bruno@clisp.org>
9077
9078         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9079         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9080         login_tty exists.
9081         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9082
9083 2010-09-16  Bruno Haible  <bruno@clisp.org>
9084
9085         login_tty: Make the replacement code work on BSD systems.
9086         * lib/login_tty.c: Include <sys/ioctl.h>.
9087         (login_tty): Use ioctl TIOCSCTTY when available.
9088         * modules/login_tty (Depends-on): Add sys_ioctl.
9089         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9090
9091 2010-09-16  Bruno Haible  <bruno@clisp.org>
9092
9093         login_tty: Stricter unit test.
9094         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9095         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9096         and tcgetsid() after login_tty.
9097         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9098
9099 2010-09-16  Bruno Haible  <bruno@clisp.org>
9100
9101         New module 'tcgetsid'.
9102         * lib/tcgetsid.c: New file.
9103         * m4/tcgetsid.m4: New file.
9104         * modules/tcgetsid: New file.
9105         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9106         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9107         GNULIB_TCGETSID, HAVE_TCGETSID.
9108         * lib/termios.in.h: Include <sys/types.h>.
9109         (tcgetsid): New declaration.
9110         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9111         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9112         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9113         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9114
9115 2010-09-16  Bruno Haible  <bruno@clisp.org>
9116
9117         Tests for module 'termios'.
9118         * modules/termios-c++-tests: New file.
9119         * modules/termios-tests: New file.
9120         * tests/test-termios-c++.cc: New file.
9121         * tests/test-termios.c: New file.
9122
9123         New module 'termios'.
9124         * modules/termios: New file.
9125         * lib/termios.in.h: New file.
9126         * m4/termios_h.m4: New file.
9127         * doc/posix-headers/termios.texi: Mention the new module.
9128
9129 2010-09-16  Eric Blake  <eblake@redhat.com>
9130
9131         fdutimensat: add an atflag parameter
9132         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9133         * lib/utimens.h (fdutimensat): Update prototype.
9134         * tests/test-fdutimensat.c: Adjust test to match.
9135         * NEWS: Document the change.
9136         Suggested by Paul Eggert.
9137
9138 2010-09-16  Bruno Haible  <bruno@clisp.org>
9139
9140         Fix typos in comments.
9141         * lib/striconveh.h: Fix typo in comment.
9142         * lib/login_tty.c (login_tty): Likewise.
9143
9144 2010-09-15  Bruno Haible  <bruno@clisp.org>
9145
9146         stdlib: clarify MirBSD WEXITSTATUS bug
9147         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9148         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9149
9150 2010-09-15  Eric Blake  <eblake@redhat.com>
9151
9152         stdlib: work around MirBSD WEXITSTATUS bug
9153         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9154         * modules/stdlib (Depends-on): Add sys_wait.
9155         * tests/test-sys_wait.c (main): Enhance test.
9156         * tests/test-stdlib.c (main): Likewise.
9157         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9158
9159         docs: mention MacOS issue with WEXITSTATUS(constant)
9160         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9161         issue.
9162         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9163
9164         strnlen: add tests
9165         * modules/strnlen-tests: New file.
9166         * tests/test-strnlen.c: Likewise.
9167
9168 2010-09-14  Bruno Haible  <bruno@clisp.org>
9169
9170         unistr/base: Avoid link errors when module 'libunistring' is also used.
9171         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9172         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9173         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9174         Declare also when HAVE_LIBUNISTRING is set.
9175         Reported by Pádraig Brady <P@draigbrady.com>.
9176
9177 2010-09-14  Eric Blake  <eblake@redhat.com>
9178
9179         test-rawmemchr: make more robust
9180         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9181         (Depends-on, configure.ac): Add needed prerequisites to use it.
9182         * modules/memchr-tests (Files, Depends-on, configure.ac):
9183         Likewise, to avoid implicit reliance on memchr module prereqs.
9184         * tests/test-memchr.c (main): Ensure proper masking.
9185         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9186         reads.
9187
9188         memchr: detect glibc Alpha bug
9189         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9190         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9191         Alpha.
9192         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9193         * tests/test-memchr.c (main): Enhance test.
9194         Reported by Nelson H. F. Beebe.
9195
9196 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9197
9198         fts, getcwd, glob: audit for dirfd returning -1
9199         * lib/fts.c (opendir): Remove #define; no longer used.
9200         (opendirat): New arg PDIR_FD.  All callers changed.
9201         (fts_build, _opendir2): Use new opendirat to avoid the need for
9202         dirfd, or for checking whether dirfd returns a negative value.
9203         Don't use opendir; always use openat followed by fdopendir.
9204         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9205         it.
9206         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9207         returns -1 here.
9208         * modules/fts (Depends-on): Remove dirfd.
9209         * modules/getcwd (Depends-on): Likewise.
9210
9211 2010-09-13  Eric Blake  <eblake@redhat.com>
9212
9213         float: fix broken MirBSD header
9214         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9215         * doc/posix-headers/float.texi (float.h): Document it.
9216
9217 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9218
9219         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9220         * lib/fts.c (opendirat): New arg extra_flags.
9221         (__opendir2): Use it to avoid following symlinks when opening
9222         a directory, if symlinks are not supposed to be followed.  See
9223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9224
9225         fdopendir: preserve argument fd before returning
9226         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9227         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9228         (fdopendir): Use them, arranging for FD to be open to the same
9229         directory that it was when it started.  (It might be temporarily
9230         closed while fdopendir is running, so this not thread- or
9231         signal-safe.)  Be careful to do the right thing even when file
9232         descriptors are scarce and dup fails with errno == EMFILE.  See
9233         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9234
9235 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9236
9237         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9238         * NEWS: Document change.
9239         * m4/regex.m4: Disable test for regoff_t size.
9240
9241 2010-09-13  Jim Meyering  <meyering@redhat.com>
9242
9243         fts: don't operate on an invalid file descriptor after failed dup
9244         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9245         negative file descriptor.
9246
9247 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9248
9249         savedir: add streamsavedir, deprecate fdsavedir
9250         * NEWS: Mention deprecation of fdsavedir.
9251         * lib/savedir.c (streamsavedir): New extern function, whose name
9252         ends in "savedir" to be consistent with the others.  This differs
9253         from savedirstream in that it doesn't close its argument.  The
9254         next version of GNU tar will use this instead of fdsavedir, to
9255         avoid some race conditions and conserve file descriptors.
9256         (savedirstream): Reimplement as a wrapper around streamsavedir.
9257         (fdsavedir): Add a comment deprecating this function.  As far as
9258         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9259         * lib/savedir.h (streamsavedir): New decl.
9260         (fdsavedir): Add a comment deprecating this.
9261
9262 2010-09-10  Bruno Haible  <bruno@clisp.org>
9263
9264         langinfo: Fix last commit.
9265         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9266         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9268
9269 2010-09-10  Bruno Haible  <bruno@clisp.org>
9270
9271         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9272         * lib/progreloc.c (O_EXEC): Define fallback.
9273
9274 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9275
9276         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9277         * NEWS: Document recent changes to fcntl-h.
9278         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9279         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9280         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9281         Similarly for O_SEARCH; this last was already true, but not documented.
9282         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9283         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9284         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9285         Likewise.
9286         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9287         is zero, not whether it is defined.
9288         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9289         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9290         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9291
9292 2010-09-10  Bruno Haible  <bruno@clisp.org>
9293
9294         langinfo, nl_langinfo: Fix for IRIX 5.3.
9295         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9296         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9297         HAVE_LANGINFO_YESEXPR.
9298         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9299         HAVE_LANGINFO_YESEXPR.
9300         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9301         HAVE_LANGINFO_T_FMT_AMPM is 0.
9302         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9303         HAVE_LANGINFO_YESEXPR is 0.
9304         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9305         NOEXPR.
9306         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9307         * doc/posix-functions/nl_langinfo.texi: Likewise.
9308         Reported by Eric Blake.
9309
9310 2010-09-10  Bruno Haible  <bruno@clisp.org>
9311
9312         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9313         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9314         on FreeBSD 8.0 and OpenBSD 4.6.
9315         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9316         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9317         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9318         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9319         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9320         ac_includes_default.
9321         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9322
9323 2010-09-09  Eric Blake  <eblake@redhat.com>
9324
9325         strsignal: work around NetBSD bug
9326         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9327         * lib/string.in.h (includes): Likewise.
9328         * doc/posix-functions/strsignal.texi (strsignal): Document the
9329         bug.
9330         Reported by Nelson H. F. Beebe.
9331
9332         gnulib-tool: work with NetBSD /bin/sh
9333         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9334         (func_get_description, func_get_comment, func_get_status)
9335         (func_get_notice, func_get_applicability, func_get_filelist)
9336         (func_get_dependencies, func_get_autoconf_early_snippet)
9337         (func_get_autoconf_snippet, func_get_automake_snippet)
9338         (func_get_include_directive, func_get_link_directive)
9339         (func_get_license, func_get_maintainer, func_import): Avoid
9340         shell syntax errors from parsing syntax extensions.
9341
9342 2010-09-09  Bruno Haible  <bruno@clisp.org>
9343
9344         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9345         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9346         a reliable way to determine whether the 'alias' command works.
9347
9348 2010-09-08  Jim Meyering  <meyering@redhat.com>
9349
9350         init.sh: penalize a set-x-impaired shell; don't disqualify it
9351         * tests/init.sh: Too many shells corrupt application stderr when
9352         you set -x, so we can't afford to disqualify them, since at least
9353         on Irix-6.5, that would disqualify all bourne shells.
9354         Instead, use a two-pass approach.
9355         On the first pass, try to find a shell that meets the stricter
9356         condition that set -x does not corrupt stderr.
9357         If no shell meets the stricter condition, retest each candidate
9358         shell, but without that extra condition.  Finally, when
9359         VERBOSE=yes is requested and set -x might cause trouble, simply
9360         issue a warning and refrain from enabling debug output.
9361
9362 2010-09-08  Eric Blake  <eblake@redhat.com>
9363
9364         unsetenv: fix OpenBSD bug
9365         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9366         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9367         documentation.
9368         Reported by Jim Meyering.
9369
9370         strtod: work around IRIX 6.5 bug
9371         * lib/strtod.c (strtod): Reparse number on shorter string if
9372         exponent parse was invalid.
9373         * tests/test-strtod.c (main): Add check for "0x1p 2".
9374         Reported by Tom G. Christensen.
9375
9376         getopt: optimize previous patch
9377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9378         empty variable.  Speed up awk script.
9379         Reported by Paolo Bonzini.
9380
9381 2010-09-08  Jim Meyering  <meyering@redhat.com>
9382
9383         test.sh: disqualify shells for which set -x corrupts stderr
9384         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9385         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9386         appear in stderr output.  For example, this command:
9387             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9388         prints "P=1" on those two systems:
9389
9390 2010-09-08  Bruno Haible  <bruno@clisp.org>
9391
9392         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9393         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9394         commands, because some shells ignore redirections when there is an
9395         error in the command lookup.
9396         Reported by Eric Blake.
9397
9398 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9399
9400         * lib/regex.h: Fix a mention of `regex_compile' (should be
9401         `re_compile_pattern').
9402         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9403         (re_set_registers): Correct name of parameter in comment.
9404
9405         * doc/regex.texi: Add documentation for missing syntax flags.
9406         Remove commented-out documentation of defunct syntax option
9407         RE_NO_EMPTY_ALTS.
9408         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9409         Add documentation of re_set_registers.
9410         Document trick to re-use a pattern buffer by setting fastmap manually.
9411         Update documentation of struct re_pattern_buffer per public members.
9412         Uncomment documentation of equivalence class operators and
9413         collating symbol operators, since they are now implemented,
9414         Explain leftmost-longest matching in relation to alternatives.
9415         Tidy documentation of substring matching.
9416         Remove POSIX documentation, which is done better in
9417         glibc, and refer the reader there. Keep BSD API documentation, as
9418         that is not readily available elsewhere.
9419
9420 2010-09-07  Eric Blake  <eblake@redhat.com>
9421
9422         getopt: handle POSIXLY_CORRECT set but not exported
9423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9424         export state of POSIXLY_CORRECT, due to bash set -o posix.
9425         Reported by Dustin J. Mitchell.
9426
9427 2010-09-05  Bruno Haible  <bruno@clisp.org>
9428
9429         gnulib-tool: Highlight the changed options.
9430         * gnulib-tool (func_usage): Display the --import, --add-import,
9431         --remove-import explanations in bold font.
9432
9433 2010-09-06  Karl Berry  <karl@gnu.org>
9434
9435         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9436
9437 2010-09-05  Bruno Haible  <bruno@clisp.org>
9438
9439         uniwidth/width: Update comment.
9440         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9441         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9442
9443 2010-09-05  Bruno Haible  <bruno@clisp.org>
9444
9445         isinf, isnan: Relax license.
9446         * modules/isinf (License): Change from GPL to LGPL, with consent from
9447         Ben Pfaff.
9448         * modules/isnan (License): Likewise.
9449         Requested by Ludovic Courtès.
9450
9451 2010-09-04  Bruno Haible  <bruno@clisp.org>
9452
9453         gnulib-tool: Help migration from --import to --add-import or --update.
9454         * gnulib-tool: Emit a verbose error message when --import is used
9455         without any module name.
9456
9457 2010-09-04  Bruno Haible  <bruno@clisp.org>
9458
9459         Update doc about gnulib-tool.
9460         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9461         'gnulib-tool --update' in more detail.
9462         Reported by Eric Blake.
9463
9464 2010-09-04  Bruno Haible  <bruno@clisp.org>
9465
9466         gnulib-tool: Change --import. New options --add/remove-import.
9467         * gnulib-tool: New options --add-import, --remove-import.
9468         (func_usage): Document them.
9469         (have_associative): Define always.
9470         (func_import): In import mode, don't merge the specified settings with
9471         the cached settings. Implement remove-import mode.
9472         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9473         Explain when to use them versus --import.
9474         (Simple update): Use --add-import instead of --import.
9475         * NEWS: Mention the change.
9476
9477 2010-09-04  Bruno Haible  <bruno@clisp.org>
9478
9479         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9480         separate gnulib.mk.
9481
9482 2010-09-04  Bruno Haible  <bruno@clisp.org>
9483
9484         gnulib-tool: Don't talk about CVS any more.
9485         * gnulib-tool (func_usage, func_import): Write "version control"
9486         instead of CVS.
9487
9488 2010-09-04  Jim Meyering  <meyering@redhat.com>
9489
9490         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9491         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9492         false positives (whose names may be ill-chosen) when searching
9493         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9494         would cause a false-positive.
9495
9496         avoid coreutils "make distcheck" failure
9497         Coreutils tests with an absolute build directory name that contains
9498         a space.  Not quoting this directory name caused a failure.
9499         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9500         * tests/test-vc-list-files-cvs.sh: Likewise.
9501
9502 2010-09-04  Bruno Haible  <bruno@clisp.org>
9503
9504         gnulib-tool: Avoid error when run in a package without Makefile.am.
9505         * gnulib-tool: When collecting the m4dirs in a package that does not
9506         have a Makefile.am, eliminate those directories that contain no
9507         gnulib-cache.m4. Fix expression that counts these directories.
9508
9509 2010-09-04  Bruno Haible  <bruno@clisp.org>
9510
9511         update-copyright test: Improve output when perl is missing or too old.
9512         * tests/test-update-copyright.sh: Move test of Perl version down after
9513         the test whether Perl exists. Provide an explanation relating Perl's
9514         error message to Automake's SKIP: message.
9515
9516 2010-09-04  Bruno Haible  <bruno@clisp.org>
9517
9518         Don't augment PATH in TESTS_ENVIRONMENT.
9519         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9520         set abs_aux_dir instead of augmenting PATH.
9521         * modules/vc-list-files-tests (Makefile.am): Likewise.
9522         * tests/test-update-copyright.sh: Augment PATH here.
9523         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9524         path_prepend_.
9525         * tests/test-vc-list-files-git.sh: Likewise.
9526
9527 2010-09-04  Jim Meyering  <meyering@redhat.com>
9528
9529         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9530         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9531
9532 2010-09-04  Bruno Haible  <bruno@clisp.org>
9533
9534         strdup: Fix compilation error in C++ mode.
9535         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9536         the macro.
9537
9538 2010-09-04  Bruno Haible  <bruno@clisp.org>
9539
9540         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9541         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9542         macro into a function.
9543         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9544
9545 2010-09-04  Bruno Haible  <bruno@clisp.org>
9546
9547         Set PATH_SEPARATOR the same way autoconf does.
9548         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9549         the value of PATH_SEPARATOR the same way autoconf-generated configure
9550         scripts do.
9551         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9552         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9553
9554 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9555
9556         Set PATH_SEPARATOR the same way autoconf does.
9557         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9558         the same way autoconf-generated configure scripts do.
9559         * posix-modules: Likewise.
9560
9561 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         hash: fix safe_hasher const typo
9564         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9565         const; otherwise, there is a type error later.
9566
9567 2010-09-02  Jim Meyering  <meyering@redhat.com>
9568
9569         test-update-copyright.sh: require perl 5.8.0
9570         * tests/test-update-copyright.sh: Require 5.8.0,
9571         which Tom G. Christensen has confirmed is adequate,
9572         while 5.6.1 is not.
9573
9574 2010-09-02  Eric Blake  <eblake@redhat.com>
9575
9576         tests: init.sh improvements for re-exec'ing with zsh
9577         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9578         -vx through shell re-exec.
9579         Reported by Tom G. Christensen.
9580
9581         wctype: fix typo in previous commit
9582         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9583         Reported by Ludovic Courtès.
9584
9585 2010-09-02  Jim Meyering  <meyering@redhat.com>
9586
9587         test-update-copyright.sh: skip test if Perl is too old
9588         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9589         Reported by Tom G. Christensen.
9590
9591 2010-09-02  Bruno Haible  <bruno@clisp.org>
9592
9593         wctype: Avoid compilation error on IRIX 6.5.30.
9594         * lib/wctype.in.h (iswblank): Declare with a replacement if
9595         REPLACE_ISWBLANK is set.
9596         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9597         declared. Set REPLACE_ISWBLANK.
9598         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9599         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9600         * doc/posix-headers/wctype.texi: Likewise.
9601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9602
9603 2010-09-01  Bruno Haible  <bruno@clisp.org>
9604
9605         New module 'socketlib'.
9606         * modules/socketlib: New file.
9607         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9608         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9609         * modules/sockets (Depends-on): Add socketlib.
9610         Suggested by Sam Steingold <sds@gnu.org>.
9611
9612 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9613
9614         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9615
9616         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9617         when one needs search access to a directory but not read access.
9618         On systems where it is available, it works in some cases where
9619         O_RDONLY does not, namely on directories that are searchable but
9620         not readable, and which need only to be searchable.  If O_SEARCH
9621         is not available, fall back to the traditional method of using
9622         O_RDONLY.
9623
9624         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9625         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9626         when opening a directory that needs only to be searchable.
9627         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9628         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9629         * lib/openat-proc.c (openat_proc_name): Likewise.
9630         * lib/openat.c (openat_needs_fchdir): Likewise.
9631         * lib/save-cwd.c (save_cwd): Likewise.
9632         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9633
9634 2010-08-28  Bruno Haible  <bruno@clisp.org>
9635
9636         New module 'host-cpu-c-abi'.
9637         * modules/host-cpu-c-abi: New file.
9638         * m4/host-cpu-c-abi.m4: New file, based on part of
9639         clisp/src/m4/general.m4.
9640         Requested by Sam Steingold <sds@gnu.org>.
9641
9642 2010-08-31  Eric Blake  <eblake@redhat.com>
9643         and Jim Meyering  <meyering@redhat.com>
9644
9645         hash: factor, and guard against misbehaving hasher function
9646         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9647         of table->hasher's return value.  Also protect against a hash value
9648         so large that adding it to table->bucket results in a NULL pointer.
9649         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9650         Use it in place of open-coded check-and-abort.
9651
9652 2010-08-30  Bruno Haible  <bruno@clisp.org>
9653
9654         hash: silence spurious clang warning
9655         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9656         Reported by Eric Blake.
9657
9658 2010-08-30  Eric Blake  <eblake@redhat.com>
9659
9660         strstr, memmem, strcasestr: avoid leaked shell message
9661         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9662         FreeBSD.
9663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9664         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9665
9666         tests: silence clang warning
9667         * tests/test-malloca.c (do_allocation): Avoid dead store.
9668
9669 2010-08-29  Bruno Haible  <bruno@clisp.org>
9670
9671         gettext: Fix recent mistake.
9672         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9673
9674 2010-08-29  Bruno Haible  <bruno@clisp.org>
9675
9676         selinux-h: Offer a --without-selinux option.
9677         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9678         --without-selinux was specified, skip all tests and define
9679         HAVE_SELINUX_SELINUX_H to 0.
9680         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9681         set LIB_SELINUX to empty.
9682         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9683         gl_LIBSELINUX. If --without-selinux was specified, replace
9684         selinux/context.h.
9685         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9686
9687 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9688             Bruno Haible  <bruno@clisp.org>
9689
9690         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9691         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9692         of HAVE_REALLOC.
9693         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9694         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9695         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9696         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9697
9698 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9699             Bruno Haible  <bruno@clisp.org>
9700
9701         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9702         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9703         HAVE_CALLOC.
9704         * lib/xmalloc.c: Update accordingly.
9705         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9706         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9707         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9708
9709 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9710             Bruno Haible  <bruno@clisp.org>
9711
9712         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9713         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9714         HAVE_MALLOC.
9715         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9716         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9717         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9718
9719 2010-08-29  Bruno Haible  <bruno@clisp.org>
9720
9721         Update modules list.
9722         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9723         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9724         (String handling <string.h>): Add astrxfrm.
9725         (File system functions): Add readlinkat.
9726
9727 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9728
9729         Tests for module 'realloc-gnu'.
9730         * modules/realloc-gnu-tests: New file.
9731         * tests/test-realloc-gnu.c: New file.
9732
9733         Tests for module 'calloc-gnu'.
9734         * modules/calloc-gnu-tests: New file.
9735         * tests/test-calloc-gnu.c: New file.
9736
9737         Tests for module 'malloc-gnu'.
9738         * modules/malloc-gnu-tests: New file.
9739         * tests/test-malloc-gnu.c: New file.
9740
9741 2010-08-28  Bruno Haible  <bruno@clisp.org>
9742
9743         Rename module 'realloc' -> 'realloc-gnu'.
9744         * modules/realloc-gnu: New file, copied from modules/realloc.
9745         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9746         obsolete.
9747         * modules/mgetgroups (Depends-on): Update.
9748         * doc/posix-functions/realloc.texi: Update.
9749         * NEWS: Mention the change.
9750
9751         Rename module 'calloc' -> 'calloc-gnu'.
9752         * modules/calloc-gnu: New file, copied from modules/calloc.
9753         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9754         obsolete.
9755         * doc/posix-functions/calloc.texi: Update.
9756         * NEWS: Mention the change.
9757
9758         Rename module 'malloc' -> 'malloc-gnu'.
9759         * modules/malloc-gnu: New file, copied from modules/malloc.
9760         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9761         obsolete.
9762         * modules/argp (Depends-on): Update.
9763         * modules/regex (Depends-on): Update.
9764         * doc/posix-functions/malloc.texi: Update.
9765         * NEWS: Mention the change.
9766
9767 2010-08-28  Eric Blake  <eblake@redhat.com>
9768
9769         pread, pwrite: add missing dependency
9770         * modules/pread (Depends-on): Add extensions.
9771         * modules/pwrite (Depends-on): Likewise.
9772
9773 2010-08-28  Bruno Haible  <bruno@clisp.org>
9774
9775         unistr/u*-strchr: Fix tests dependencies.
9776         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9777         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9778         Reported by Ian Beckwith <ianb@erislabs.net>.
9779
9780 2010-08-28  Bruno Haible  <bruno@clisp.org>
9781
9782         read-file: Don't occupy too much unused memory.
9783         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9784
9785 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9786             Eric Blake  <eblake@redhat.com>
9787             Bruno Haible  <bruno@clisp.org>
9788
9789         read-file: Avoid memory reallocations with regular files.
9790         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9791         (fread_file): With regular files, use the remaining length as the
9792         initial buffer size.  Check against overflow.
9793         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9794         sys_stat.
9795
9796 2010-08-28  Bruno Haible  <bruno@clisp.org>
9797
9798         ftello: Relax license.
9799         * modules/ftello (License): Relax to LGPLv2+.
9800         Reported by Eric Blake.
9801
9802 2010-08-28  Bruno Haible  <bruno@clisp.org>
9803
9804         Avoid relocwrapper link errors due to gnulib replacement functions.
9805         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9806         function.
9807         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9808
9809 2010-08-28  Bruno Haible  <bruno@clisp.org>
9810
9811         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9812         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9813         defined.
9814         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9815         Suggested by Eric Blake.
9816
9817 2010-08-28  Bruno Haible  <bruno@clisp.org>
9818
9819         sys_socket, netdb: Ensure socklen_t gets defined.
9820         * modules/sys_socket (Depends-on): Add socklen.
9821         * modules/netdb (Depends-on): Likewise.
9822         * modules/getaddrinfo (Depends-on): Remove socklen.
9823         * modules/getsockopt (Depends-on): Likewise.
9824         * modules/setsockopt (Depends-on): Likewise.
9825         * tests/test-sys_socket.c: Check that socklen_t is defined.
9826         * tests/test-netdb.c: Likewise.
9827         * m4/socklen.m4: Update comments.
9828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9829
9830 2010-08-27  Eric Blake  <eblake@redhat.com>
9831
9832         login_tty: add missing dependency
9833         * modules/login_tty (Depends-on): Add pty.
9834
9835 2010-08-26  Eric Blake  <eblake@redhat.com>
9836
9837         lib-symbol-versions: fix m4 quoting
9838         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9839         format for AC_LINK_IFELSE.
9840
9841         glob: fix compile test
9842         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9843
9844         btowc: fix missing file
9845         * modules/btowc (Files): Also ship locale-fr.m4.
9846
9847         lseek: fix link test
9848         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9849         AC_LINK_IFELSE.
9850
9851         include_next: silence autoconf 2.68 warning
9852         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9853         AC_COMPILE_IFELSE as special.
9854         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9855         autoconf < 2.68.
9856
9857         acl: fix compilation test
9858         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9859         AC_COMPILE_IFELSE.
9860
9861 2010-08-26  Bruno Haible  <bruno@clisp.org>
9862
9863         Modernize AC_TRY_RUN invocations.
9864         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9865         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9866         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9867         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9868         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9869         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9870         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9871         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9872         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9873         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9874         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9875         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9876         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9877         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9878         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9879         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9880         gl_MBRLEN_NUL_RETVAL): Likewise.
9881         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9882         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9883         Likewise.
9884         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9885         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9886         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9887         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9888         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9889         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9890         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9891         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9892         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9893         Likewise.
9894         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9895         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9896         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9897         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9898         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9899         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9900         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9901         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9902         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9904
9905 2010-08-26  Bruno Haible  <bruno@clisp.org>
9906
9907         Modernize AC_TRY_LINK invocations.
9908         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9909         AC_TRY_LINK.
9910         * m4/argp.m4 (gl_ARGP): Likewise.
9911         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9912         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9913         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9914         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9915         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9916         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9917         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9918         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9919         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9920         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9921         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9922         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9923         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9924         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9925         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9926         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9927         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9928         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9929         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9930         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9931         Likewise.
9932         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9933         Likewise.
9934         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9935         Likewise.
9936         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9938         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9939         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9940         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9941         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9942         * m4/servent.m4 (gl_SERVENT): Likewise.
9943         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9944         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9945         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9946         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9947         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9948         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9951         * modules/tsearch-tests (configure.ac): Likewise.
9952
9953 2010-08-26  Bruno Haible  <bruno@clisp.org>
9954
9955         Modernize AC_TRY_COMPILE invocations.
9956         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9957         AC_TRY_COMPILE.
9958         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9959         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9960         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9961         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9962         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9963         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9964         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9965         * m4/lock.m4 (gl_LOCK): Likewise.
9966         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9967         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9968         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9969         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9970         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9971         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9972         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9974         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9975         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9976         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9977         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9978         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9979         extraneous semicolon.
9980
9981 2010-08-26  Jim Meyering  <meyering@redhat.com>
9982
9983         stat-time: relax license LGPL
9984         * modules/stat-time (License): Change from GPL to LGPL,
9985         with consent from all contributors, for use in libguile.
9986         Requested by Ludovic Courtès.
9987
9988 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9989
9990         poll: return immediately on POLLHUP.
9991         * lib/poll.c (poll): Always set timeout before wait_timeout is
9992         computed.
9993
9994 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9995
9996         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9997         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9998         rmdir ("dir/.//"), unlinkat.
9999
10000 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10001
10002         stdbool: avoid spurious failure with modern xlc
10003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10004
10005 2010-08-24  Bruno Haible  <bruno@clisp.org>
10006
10007         getloadavg: simplify code
10008         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10009         gl_have_func. Update comments.
10010
10011 2010-08-24  Eric Blake  <eblake@redhat.com>
10012
10013         getloadavg: don't define SVR4 on cygwin
10014         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10015         only define SVR4 when -lkvm is required.
10016         Reported by Yaakov Selkowitz.
10017
10018 2010-08-24  Bruno Haible  <bruno@clisp.org>
10019
10020         priv-set: fix comment
10021         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10022
10023 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10024
10025         priv-set: fix comments
10026         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10027         to match code, as suggested by David Bartley in:
10028         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10029
10030 2010-08-23  Eric Blake  <eblake@redhat.com>
10031
10032         stdbool: avoid rejecting clang
10033         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10034         * tests/test-stdbool.c: Enable more tests if using the system
10035         <stdbool.h> instead of the gnulib replacement.
10036         (main): Move xlc bug test to a runtime test for all compilers.
10037         Reported by Anders Kaseorg.
10038
10039         argz: fix shell quoting issue
10040         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10041         Reported by Charles Wilson.
10042
10043 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10044             Erik Faye-Lund <kusmabite@gmail.com>
10045
10046         poll, select: handle ERROR_BROKEN_PIPE.
10047         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10048         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10049         * lib/select.c (win32_compute_revents): Do not mark a pipe
10050         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10051
10052 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10053
10054         fts: allow compilation with C++
10055         * lib/fts_.h: Specify extern "C" linkage with C++.
10056
10057 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10058
10059         Fix gnulib-tool sed script de-commentation for AIX sed.
10060         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10061         sed.
10062
10063 2010-08-17  Eric Blake  <eblake@redhat.com>
10064
10065         test-stddef: test for (some) offsetof bugs
10066         * tests/test-stddef.c: Enhance test to ensure correct type of
10067         offsetof.
10068         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10069         that we are not fixing at this time.
10070
10071 2010-08-15  Bruno Haible  <bruno@clisp.org>
10072
10073         stpncpy: Allow stpncpy to be defined as a macro.
10074         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10075         if it's already correctly declared.
10076         * lib/string.in.h (stpncpy): Undefine before redefining.
10077         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10078
10079 2010-08-14  Bruno Haible  <bruno@clisp.org>
10080
10081         Rename module 'memxfrm' to 'amemxfrm'.
10082         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10083         (amemxfrm): Renamed from memxfrm.
10084         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10085         (amemxfrm): Renamed from memxfrm.
10086         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10087         * NEWS: Mention the change.
10088         * MODULES.html.sh (String handling <string.h>): Update.
10089         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10090         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10091         * lib/unicase/u16-casexfrm.c: Likewise.
10092         * lib/unicase/u32-casexfrm.c: Likewise.
10093         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10094         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10095         * lib/uninorm/u16-normxfrm.c: Likewise.
10096         * lib/uninorm/u32-normxfrm.c: Likewise.
10097         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10098         memxfrm.
10099         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10100         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10101         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10102         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10103         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10104         Suggested by Paul Eggert.
10105
10106 2010-08-14  Bruno Haible  <bruno@clisp.org>
10107
10108         Tests for module 'astrxfrm'.
10109         * modules/astrxfrm-tests: New file.
10110         * tests/test-astrxfrm.c: New file.
10111
10112         New module 'astrxfrm'.
10113         * lib/astrxfrm.h: New file.
10114         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10115         * modules/astrxfrm: New file.
10116
10117 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10118
10119         regex: Tweak doc.
10120         * doc/regex.texi (Overview): Don't mention regex.c.
10121         (GNU Regular Expression Compiling): Likewise.
10122         (Match-end-of-line Operator): Mention 'not_eol'.
10123
10124 2010-08-14  Brian Gough  <bjg@gnu.org>
10125             Bruno Haible  <bruno@clisp.org>
10126
10127         git-merge-changelog: add doc relating to use with bzr and hg.
10128         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10129
10130 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10131
10132         pthread: fix pthread.h creation for srcdir != builddir
10133         * modules/pthread (Makefile.am): Fix the rule to work also in a
10134         non-srcdir build.
10135
10136 2010-08-13  Karl Berry  <karl@gnu.org>
10137
10138         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10139         * doc/posix-*/*: force line break before @url of POSIX
10140         specifications.
10141         Suggested by Werner Lemberg.
10142
10143 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         strtod: fix const diagnostic
10146         * lib/strtod.c (strtod): Don't assign const char * to char *,
10147         as this elicits a warning from GCC when warnings are enabled.
10148
10149 2010-08-10  Pádraig Brady <P@draigbrady.com>
10150         and Eric Blake  <eblake@redhat.com>
10151
10152         copy-acl: ignore ENOTSUP on HP-UX
10153         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10154         so that it is available for HP-UX.
10155         * lib/copy-acl.c (qcopy_acl): Use it.
10156         Reported by Patrick M. Callahan.
10157
10158 2010-08-10  Eric Blake  <eblake@redhat.com>
10159
10160         open, chown: relax license
10161         * modules/open (License): Change to LGPLv2+, with consent by all
10162         authors, for use in augeas.
10163         * modules/chown (License): Likewise.
10164         * modules/lchown (Likewise): Likewise.
10165         Requested by Adam Stokes.
10166
10167 2010-08-09  Karl Berry  <karl@gnu.org>
10168
10169         * build-aux/ar-lib: new file, import from Automake.
10170         * config/srclist.txt: autocheck for updates.
10171
10172 2010-08-09  Eric Blake  <eblake@redhat.com>
10173
10174         readlinkat: adjust client modules
10175         * modules/areadlinkat (Depends-on): Use readlinkat, not
10176         symlinkat.
10177         * modules/areadlinkat-with-size (Depends-on): Likewise.
10178
10179         mknod: be more vocal about danger of running tests as root
10180         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10181         root, since that is just asking for problems.
10182         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10183
10184         readlinkat: split into its own module
10185         * modules/symlinkat: Split readlinkat...
10186         * modules/readlinkat: ...into separate module.
10187         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10188         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10189         * lib/symlinkat.c (readlinkat): Move...
10190         * lib/readlinkat.c: ...into new file.
10191         * modules/symlinkat-tests: Split readlinkat test...
10192         * modules/readlinkat-tests: ...into separate module.
10193         * tests/test-symlinkat.c: Split...
10194         * tests/test-readlinkat.c: ...into new file.
10195         * NEWS: Document the split.
10196         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10197         * lib/unistd.in.h (readlinkat): Likewise.
10198         Suggested by Bruno Haible.
10199
10200 2010-08-08  Bruno Haible  <bruno@clisp.org>
10201
10202         memxfrm: Speed up.
10203         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10204         that usually only one call to strxfrm is necessary for each string
10205         part.
10206         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10207
10208 2010-08-07  Karl Berry  <karl@gnu.org>
10209
10210         * doc/posix-headers/limits.texi,
10211         * doc/posix-functions/malloc.texi,
10212         * doc/posix-functions/strsignal.texi: missing @item.
10213         * doc/ld-version-script.texi: spurious leading i.
10214         * doc/regex.texi (Interval Operators): no commas inside @var.
10215
10216 2010-08-01  Bruno Haible  <bruno@clisp.org>
10217
10218         Integrate the regex documentation.
10219         * doc/gnulib.texi: Define 'cn' index.
10220         (Regular expressions): New a chapter that includes regex.texi and
10221         regexprops-generic.texi.
10222         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10223         syntax.
10224
10225         Whitespace cleanup.
10226         * doc/regex.texi: Remove trailing spaces.
10227
10228         Add regex documentation.
10229         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10230         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10231         Written by Kathy A. Hargreaves and Karl Berry.
10232
10233 2010-08-01  Bruno Haible  <bruno@clisp.org>
10234
10235         link: Update documentation.
10236         * doc/posix-functions/link.texi: Update regarding Solaris.
10237
10238 2010-07-31  Bruno Haible  <bruno@clisp.org>
10239
10240         Update modules list.
10241         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10242         (String handling <string.h>): Add memcmp2, memxfrm.
10243         (Container data structures): Add xlist, xsublist, xoset.
10244         (Core language properties): Add alignof, unused-parameter.
10245         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10246         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10247         (Unibyte characters <ctype.h>): New section.
10248         (String handling <string.h>): New section.
10249         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10250         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10251         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10252         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10253         tan, tanh, tanl, y0, y1, yn.
10254         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10255         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10256         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10257         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10258         unlockpt, vdprintf, vdprintf-posix.
10259         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10260         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10261         xconcat-filename.
10262         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10263         getdtablesize, pipe2, pipe2-safer.
10264         (Security): New section.
10265         (Networking functions): Add accept4.
10266         (Signal handling): Add sigpipe.
10267         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10268         mbmemcasecoll.
10269         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10270         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10271         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10272         pipe-filter-ii.
10273         (Misc): Add argp-version-etc, login_tty, parse-duration.
10274
10275 2010-07-31  Bruno Haible  <bruno@clisp.org>
10276
10277         Improve doc in MODULES.html.
10278         * modules/linkat (Description): Add the word "function".
10279         * modules/mkfifo (Description): Likewise.
10280         * modules/mknod (Description): Likewise.
10281         * modules/remove (Description): Likewise.
10282         * modules/renameat (Description): Likewise.
10283         * modules/stat (Description): Likewise.
10284         * modules/symlink (Description): Likewise.
10285         * modules/unlink (Description): Likewise.
10286
10287 2010-07-31  Bruno Haible  <bruno@clisp.org>
10288
10289         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10290         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10291         option --enable/disable-c++ instead of --enable/disable-cxx.
10292         * NEWS: Mention the change.
10293
10294 2010-07-31  Bruno Haible  <bruno@clisp.org>
10295
10296         readlink, areadlink: Relax test a bit.
10297         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10298         alternative to ENOTDIR.
10299         * tests/test-areadlink.h (test_areadlink): Likewise.
10300         Reported by Rainer Tammer.
10301
10302 2010-07-31  Bruno Haible  <bruno@clisp.org>
10303
10304         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10305         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10306         character, perform the search using U_STRCHR.
10307         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10308         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10309         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10310         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10311         Suggested by Paolo Bonzini.
10312
10313 2010-07-31  Bruno Haible  <bruno@clisp.org>
10314
10315         unistr/u*-strstr: Fix dependencies.
10316         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10317         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10318         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10319
10320 2010-07-31  Bruno Haible  <bruno@clisp.org>
10321
10322         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10323         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10324         the beginning of the loop.
10325         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10326         cases in 'switch' statement.
10327
10328         unistr/u8-strchr: Fix several bugs.
10329         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10330         the string. When not found, return NULL, not a pointer near the end.
10331
10332         More tests for unistr/u8-strchr.
10333         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10334         that the function does not read past the first occurrence of the byte
10335         being searched.
10336         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10337         * tests/unistr/test-u16-strchr.c (main): New function.
10338         * tests/unistr/test-u32-strchr.c (main): New function.
10339
10340 2010-07-31  Bruno Haible  <bruno@clisp.org>
10341
10342         posix-modules: Ignore backup files of documentation files.
10343         * posix-modules: grep only through files named *.texi.
10344
10345 2010-07-31  Bruno Haible  <bruno@clisp.org>
10346
10347         symlinkat: Fix documentation.
10348         * doc/posix-functions/readlinkat.texi: Fix module name.
10349
10350 2010-07-31  Bruno Haible  <bruno@clisp.org>
10351
10352         fchownat: Replace also when chown has the trailing slash bug.
10353         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10354         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10355         introduced on 2010-04-10.
10356         Reported by Rainer Tammer.
10357
10358 2010-07-31  Bruno Haible  <bruno@clisp.org>
10359
10360         linkat: Work around AIX 7.1 bug.
10361         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10362         whether linkat handles trailing slash correctly. If not, replace linkat
10363         and define LINKAT_TRAILING_SLASH_BUG.
10364         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10365         check whether (fd1,file1) points to a directory if file1 or file2 ends
10366         in a slash. Code taken from lib/link.c.
10367         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10368         Reported by Rainer Tammer.
10369
10370 2010-07-31  Bruno Haible  <bruno@clisp.org>
10371
10372         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10373         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10374         This disables an xlc optimization that was causing wrong test results.
10375         Reported by Rainer Tammer.
10376
10377 2010-07-31  Bruno Haible  <bruno@clisp.org>
10378
10379         iconv: Work around AIX 6.1..7.1 bug.
10380         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10381         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10382         cross-compiling, guess no on all versions of AIX.
10383         Reported by Rainer Tammer.
10384
10385 2010-07-31  Bruno Haible  <bruno@clisp.org>
10386
10387         readlink: Relax test a bit.
10388         * tests/test-readlink.h (test_readlink): Allow different errno value
10389         when readlink is called with a file name that ends in / and refers to
10390         a file.
10391         Suggested by Eric Blake.
10392         Reported by Rainer Tammer.
10393
10394 2010-07-31  Bruno Haible  <bruno@clisp.org>
10395
10396         copysign: Does not require -lm on glibc systems.
10397         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10398         gl_COMMON_DOUBLE_MATHFUNC.
10399         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10400
10401 2010-07-31  Bruno Haible  <bruno@clisp.org>
10402
10403         duplocale: Work around AIX 7.1 bug.
10404         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10405         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10406         * lib/duplocale.c (rpl_duplocale): Update comment.
10407         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10408         Reported by Rainer Tammer.
10409
10410 2010-07-30  Bruno Haible  <bruno@clisp.org>
10411
10412         dirfd: Avoid link error on AIX 7.1.
10413         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10414         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10415         exist, set REPLACE_DIRFD.
10416         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10417         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10418         * doc/posix-functions/dirfd.texi: Update.
10419         Reported by Rainer Tammer.
10420
10421 2010-07-30  Eric Blake  <eblake@redhat.com>
10422
10423         strtod: next round of AIX fixes
10424         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10425         exponent.
10426         * tests/test-strtod.c (main): Enhance tests.
10427         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10428         Reported by Rainer Tammer.
10429
10430         futimens: fix configure check
10431         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10432         Reported by Bruno Haible.
10433
10434 2010-07-30  Bruno Haible  <bruno@clisp.org>
10435
10436         getline: Update regarding AIX.
10437         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10438         Reported by Rainer Tammer.
10439
10440 2010-07-30  Bruno Haible  <bruno@clisp.org>
10441
10442         wcwidth: Drop replacement on AIX 7.
10443         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10444         AIX 7.
10445         Reported by Rainer Tammer.
10446
10447 2010-07-30  Bruno Haible  <bruno@clisp.org>
10448
10449         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10450         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10451         a 'char *'.
10452         Reported by Rainer Tammer.
10453
10454 2010-07-30  Bruno Haible  <bruno@clisp.org>
10455
10456         unlink: Update regarding AIX.
10457         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10458         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10459         Reported by Rainer Tammer.
10460
10461 2010-07-30  Bruno Haible  <bruno@clisp.org>
10462
10463         symlink: Update regarding AIX.
10464         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10465         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10466         Reported by Rainer Tammer.
10467
10468 2010-07-30  Bruno Haible  <bruno@clisp.org>
10469
10470         strndup: Update regarding AIX.
10471         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10472         AIX 7.
10473         Reported by Rainer Tammer.
10474
10475 2010-07-30  Bruno Haible  <bruno@clisp.org>
10476
10477         stat: Update regarding AIX.
10478         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10479         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10480         Reported by Rainer Tammer.
10481
10482 2010-07-30  Bruno Haible  <bruno@clisp.org>
10483
10484         truncl: Fix autoconf test.
10485         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10486         whether truncl works.
10487         Reported by Rainer Tammer.
10488
10489 2010-07-30  Bruno Haible  <bruno@clisp.org>
10490
10491         round: Update regarding AIX.
10492         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10493         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10494         Reported by Rainer Tammer.
10495
10496 2010-07-30  Bruno Haible  <bruno@clisp.org>
10497
10498         rename: Update regarding AIX.
10499         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10500         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10501         Reported by Rainer Tammer.
10502
10503 2010-07-30  Bruno Haible  <bruno@clisp.org>
10504
10505         printf.m4: Update regarding AIX.
10506         * m4/printf.m4: Update comments regarding AIX.
10507         Reported by Rainer Tammer.
10508
10509 2010-07-30  Bruno Haible  <bruno@clisp.org>
10510
10511         iconv: Update regarding AIX.
10512         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10513         AIX 7.
10514         Reported by Rainer Tammer.
10515
10516 2010-07-30  Bruno Haible  <bruno@clisp.org>
10517
10518         getopt: Update regarding AIX.
10519         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10520         no on AIX.
10521         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10522         Reported by Rainer Tammer.
10523
10524 2010-07-30  Bruno Haible  <bruno@clisp.org>
10525
10526         ldexpl; Update regarding AIX.
10527         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10528         on AIX 7.
10529         Reported by Rainer Tammer.
10530
10531 2010-07-30  Bruno Haible  <bruno@clisp.org>
10532
10533         frexpl: Update regarding AIX.
10534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10535         on AIX 7.
10536         Reported by Rainer Tammer.
10537
10538 2010-07-30  Bruno Haible  <bruno@clisp.org>
10539
10540         open, fopen: Update regarding AIX.
10541         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10542         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10543         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10544         * doc/posix-functions/fopen.texi: Likewise.
10545         Reported by Rainer Tammer.
10546
10547 2010-07-30  Bruno Haible  <bruno@clisp.org>
10548
10549         chown: Update doc regarding AIX.
10550         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10551         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10552         Reported by Rainer Tammer.
10553
10554 2010-07-30  Eric Blake  <eblake@redhat.com>
10555
10556         strtod: fix bug in replacement function on AIX
10557         * lib/strtod.c (strtod): Special case broken "0x" parse in
10558         underlying strtod.
10559         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10560         * doc/posix-functions/strtod.texi (strtod): Likewise.
10561         Reported by Rainer Tammer.
10562
10563 2010-07-30  Bruno Haible  <bruno@clisp.org>
10564
10565         mbrlen: Fix cross-compilation guess for AIX.
10566         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10567         guess. Leftover from 2008-12-22.
10568
10569 2010-07-30  Bruno Haible  <bruno@clisp.org>
10570
10571         mbrtowc: Fix cross-compilation guess for AIX.
10572         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10573         guess. Leftover from 2008-12-21.
10574
10575 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10576
10577         init.sh: work around trap limitation of some shells
10578         * tests/init.sh (setup_): Move exit trap outside of shell function.
10579
10580 2010-07-29  Eric Blake  <eblake@redhat.com>
10581
10582         strtod: aid debugging
10583         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10584         understanding why strtod is rejected.
10585
10586 2010-07-28  Bruno Haible  <bruno@clisp.org>
10587
10588         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10589         * lib/unistr/u8-chr.c: Include <string.h>.
10590         * tests/unistr/test-u8-chr.c: Likewise.
10591         * tests/unistr/test-u16-chr.c: Likewise.
10592         * tests/unistr/test-u32-chr.c: Likewise.
10593         * tests/unistr/test-u8-strchr.c: Likewise.
10594         * tests/unistr/test-u16-strchr.c: Likewise.
10595         * tests/unistr/test-u32-strchr.c: Likewise.
10596         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10597         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10598         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10599         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10600
10601 2010-07-28  Bruno Haible  <bruno@clisp.org>
10602
10603         Use spaces for indentation, not tabs.
10604         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10605
10606 2010-07-27  Bruno Haible  <bruno@clisp.org>
10607
10608         mbspcasecmp: Fix function specification.
10609         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10610         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10611         Reported by Eric Blake <eblake@redhat.com>.
10612
10613 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10614
10615         timespec: use cast and not conditional, as truncation isn't possible
10616         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10617         instead of a conditional.  Comment about the situation in more detail.
10618         This undoes most of the 2009-10-29 patch.
10619
10620 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10621
10622         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10623         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10624         * lib/unistr/u8-strchr.c: Likewise.
10625         * modules/unistr/u8-chr: Depend on memchr.
10626
10627         unistr/u*-strchr: add tests
10628         * modules/unistr/u8-strchr-tests: New file.
10629         * modules/unistr/u16-strchr-tests: New file.
10630         * modules/unistr/u32-strchr-tests: New file.
10631         * tests/unistr/test-strchr.h: New file.
10632         * tests/unistr/test-u8-strchr.c: New file.
10633         * tests/unistr/test-u16-strchr.c: New file.
10634         * tests/unistr/test-u32-strchr.c: New file.
10635
10636         unistr/u*-chr: test multibyte sequences more
10637         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10638         test vector.
10639         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10640         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10641         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10642
10643         unistr/u*-chr: test multibyte sequences
10644         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10645
10646         unistr/u*-chr: prepare for multibyte tests
10647         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10648         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10649         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10650         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10651         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10652         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10653
10654 2010-07-18  Bruno Haible  <bruno@clisp.org>
10655
10656         unistr/u8-strchr: Optimize non-ASCII argument case.
10657         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10658         because the first byte often matches anyway.
10659         Reported by Pádraig Brady <P@draigbrady.com>.
10660
10661 2010-07-15  Karl Berry  <karl@gnu.org>
10662
10663         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10664
10665 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10666
10667         getcwd: on Solaris, work better if ancestors are inaccessible
10668         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10669         buffer and size, try again with a large buffer.  This works better
10670         on Solaris, since its getcwd succeeds even if the path to the root
10671         is inaccessible, and this is helpful in common cases such as .zfs
10672         hidden directories.  Problem reported by J Chapman Flack in
10673         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10674         Use system getcwd if it's declared, not merely if it's partly
10675         working; use the partly-working test only to avoid needless effort
10676         if the system getcwd fails.
10677         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10678         comment that was already obsolete and is now even more obsolete.
10679         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10680         now might call strdup.
10681
10682 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10683
10684         pthread: Add enough so that coreutils/src/sort.c compiles.
10685         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10686         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10687         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10688         Include <sys/types.h>, in case it defines pthread_t.
10689         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10690         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10691         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10692         (pthread_rwlockattr_t, pthread_spinlock_t):
10693         New typedefs, if HAVE_PTHREAD_T is not defined.
10694         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10695         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10696         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10697         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10698         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10699         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10700         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10701         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10702         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10703         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10704         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10705         New macros.
10706         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10707         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10708         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10709         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10710         (pthread_spin_unlock): New dummy functions.
10711         (pthread_create): Return EAGAIN; don't set errno.
10712         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10713         require AC_C_INLINE.
10714         * modules/pthread (Depends-on): Add sched, time.
10715         (pthread.h): Use AM_V_GEN.
10716
10717 2010-07-13  Bruno Haible  <bruno@clisp.org>
10718
10719         striconveh: Don't malloc memory if the result buffer is sufficient.
10720         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10721         buffer if its size is sufficient.
10722         Reported by Ludovic Courtès <ludo@gnu.org>.
10723
10724 2010-07-13  Bruno Haible  <bruno@clisp.org>
10725
10726         strtod: Add safety check.
10727         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10728
10729 2010-07-12  Bruno Haible  <bruno@clisp.org>
10730
10731         Unify tests that set gl_cv_func_ldexpl_no_libm.
10732         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10733         gl_FUNC_LDEXPL.
10734         (gl_FUNC_LDEXPL): Invoke it.
10735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10736
10737 2010-07-12  Bruno Haible  <bruno@clisp.org>
10738
10739         Unify tests that set gl_cv_func_ldexp_no_libm.
10740         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10741         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10742         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10743         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10744         * modules/strtod (Files): Add m4/ldexp.m4.
10745
10746 2010-07-12  Bruno Haible  <bruno@clisp.org>
10747
10748         Unify tests that set gl_cv_func_frexpl_no_libm.
10749         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10750         gl_FUNC_FREXPL_NO_LIBM.
10751         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10752         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10753
10754 2010-07-12  Bruno Haible  <bruno@clisp.org>
10755
10756         Unify tests that set gl_cv_func_frexp_no_libm.
10757         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10758         gl_FUNC_FREXP_NO_LIBM.
10759         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10760         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10761
10762 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10763
10764         memcoll: clarify sizes versus lengths, document better, and tweak perf
10765         * lib/memcoll.c (strcoll_loop, memcoll0):
10766         Improve quality of descriptive comments.  Name variables
10767         consistently as to whether they are lengths (which do not include
10768         terminating null) versus sizes (which do).
10769         * lib/xmemcoll.c (xmemcoll0): Likewise.
10770         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10771         returned when s1size == 0; this is easier to compile and saves
10772         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10773
10774 2010-07-12  Bruno Haible  <bruno@clisp.org>
10775
10776         Tests for module '_Exit'.
10777         * modules/_Exit-tests: New file.
10778         * tests/test-_Exit.sh: New file.
10779         * tests/test-_Exit.c: New file.
10780
10781         New module '_Exit'.
10782         * lib/stdlib.in.h (__attribute__): New macro.
10783         (_Exit): New declaration.
10784         * lib/_Exit.c: New file.
10785         * m4/_Exit.m4: New file.
10786         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10787         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10788         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10789         * modules/_Exit: New file.
10790         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10791         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10792
10793 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10794
10795         strtod: make it more-accurate typically, and don't require libm
10796         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10797         Include limits.h.  Don't include string.h.
10798         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10799         (locale_isspace): New function, so that no casts are needed to
10800         check whether *s is a space.
10801         (ldexp): Provide an unused dummy if not available.
10802         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10803         (strtod): Use them.  This implementation prefers to use the
10804         underlying strtod if available, falling back on our own code
10805         only to fix known bugs.  This is more likely to produce an
10806         accurate result.  Also, it avoids the use of libm functions.
10807         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10808         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10809         was absent, but it caused a test failure with coreutils.
10810         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10811         with libm.
10812         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10813         * modules/strtod-tests (Makefile.am): Likewise.
10814
10815 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10816             Bruno Haible  <bruno@clisp.org>
10817
10818         unistr/u8-strchr: Optimize ASCII argument case.
10819         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10820
10821 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10822
10823         (x)memcoll: minor tweaks
10824         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10825         is after the type that it qualifies.
10826         (memcoll0): Likewise.
10827         * lib/memcoll.h (memcoll0): Likewise.
10828         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10829         * lib/xmemcoll.h (xmemcoll0): Likewise.
10830         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10831         differs from memcoll in that the NUL byte is part of the argument.
10832         Omit the abort-checks, as performance is a real issue here.  Plus,
10833         the checks were wrong anyway (an off-by-one error).  Omit local
10834         variable 'diff', as it's a bit clearer that way.
10835         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10836         no longer needed.
10837
10838 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10839
10840         (x)memcoll: speedup when input is known to be NUL delimited
10841         * lib/memcoll.c: Include stdlib.
10842         (memcoll0) New function.
10843         (strcoll_loop) New function, refactored for use in both memcoll
10844         and memcoll0.
10845         * lib/memcoll.h: Add prototype for memcoll0.
10846         * lib/xmemcoll.c: (xmemcoll0) New function.
10847         (collate_error) New function, refactored for use in both xmemcoll
10848         and xmemcoll0.
10849         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10850         * m4/memcoll.m4: add inline invocation.
10851
10852 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10853
10854         * build-aux/bootstrap: Remove any local translations
10855         from the translation project synchronization directory,
10856         so that local only translations are not distributed.
10857
10858 2010-07-04  Bruno Haible  <bruno@clisp.org>
10859
10860         fsusage: Clarify which code applies to which platforms.
10861         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10862         platform.
10863         * lib/fsusage.c (get_fs_usage): Likewise.
10864
10865 2010-07-04  Bruno Haible  <bruno@clisp.org>
10866
10867         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10868         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10869         Reported by Martin Lambers <marlam@marlam.de>.
10870
10871 2010-07-04  Jim Meyering  <meyering@redhat.com>
10872
10873         hash: once again explicitly disallow insertion of NULL
10874         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10875         inserting a NULL pointer cannot work with these functions.
10876         Add a comment with details.
10877         This reverts part of the 2010-07-01 commit, 5bef1a35
10878         "hash: extend module to deal with non-pointer keys".
10879
10880 2010-07-01  Bruno Haible  <bruno@clisp.org>
10881
10882         stdbool: Update doc.
10883         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10884         Info from Christian Weisgerber <naddy@mips.inka.de>.
10885
10886 2010-07-01  Jim Meyering  <meyering@redhat.com>
10887
10888         hash: extend module to deal with non-pointer keys
10889         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10890         but that allows insertion of non-pointer entries.
10891         Do not disallow an ENTRY value of NULL.
10892         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10893         * lib/hash.h (hash_insert0): Declare.
10894
10895 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10896
10897         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10898         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10899         not present (i.e. with autoconf 2.59 and when using gettextize, not
10900         gnulib), require AC_GNU_SOURCE instead.
10901
10902 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10903
10904         idpriv-drop: Fix tests.
10905         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10906         not to the test-idpriv-droptemp program.
10907
10908 2010-06-29  Bruno Haible  <bruno@clisp.org>
10909
10910         string: Fix syntax error with g++ 2.96.
10911         * lib/string.in.h (__pure__): Remove definition.
10912         (_GL_ATTRIBUTE_PURE): New macro.
10913         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10914         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10915         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10916
10917 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10918
10919         unitypes: Fix bug introduced on 2010-05-18.
10920         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10921
10922 2010-06-22  Eric Blake  <eblake@redhat.com>
10923
10924         memmem: slight optimization
10925         * lib/str-two-way.h (critical_factorization): Update comments.
10926         Reduce work during factorization phase.
10927         Reported by Carlos Bueno <carlos@bueno.org>.
10928
10929 2010-06-21  Bruno Haible  <bruno@clisp.org>
10930
10931         Fix HAVE_CALLOC_POSIX misnomer.
10932         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10933         !HAVE_CALLOC_POSIX.
10934         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10935         HAVE_CALLOC_POSIX.
10936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10937         instead of HAVE_CALLOC_POSIX.
10938         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10939         HAVE_CALLOC_POSIX.
10940
10941         Use modern idiom for calloc() replacement.
10942         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10943         AC_FUNC_CALLOC.
10944         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10945         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10946         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10947         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10948         (gl_REPLACE_CALLOC): New macro.
10949
10950 2010-06-21  Bruno Haible  <bruno@clisp.org>
10951
10952         Fix HAVE_REALLOC_POSIX misnomer.
10953         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10954         !HAVE_REALLOC_POSIX.
10955         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10956         HAVE_REALLOC_POSIX.
10957         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10958         instead of HAVE_REALLOC_POSIX.
10959         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10960         HAVE_REALLOC_POSIX.
10961
10962         Use modern idiom for realloc() replacement.
10963         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10964         AC_FUNC_REALLOC.
10965         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10966         Autoconf's AC_FUNC_REALLOC.
10967         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10968         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10969         (gl_REPLACE_REALLOC): New macro.
10970         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10971
10972 2010-06-21  Bruno Haible  <bruno@clisp.org>
10973
10974         Fix HAVE_MALLOC_POSIX misnomer.
10975         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10976         !HAVE_MALLOC_POSIX.
10977         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10978         HAVE_MALLOC_POSIX.
10979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10980         instead of HAVE_MALLOC_POSIX.
10981         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10982         HAVE_MALLOC_POSIX.
10983
10984         Use modern idiom for malloc() replacement.
10985         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10986         AC_FUNC_MALLOC.
10987         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10988         Autoconf's AC_FUNC_MALLOC.
10989         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10990         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10991         (gl_REPLACE_MALLOC): New macro.
10992         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10993
10994 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10995
10996         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10997         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10998         This macro takes 3 arguments, not 4.
10999
11000 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11001
11002         ipv6: fix detection under mingw
11003         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11004         in6_addr.
11005
11006 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11007
11008         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11009         that strtod() works when cross-compiling to a glibc version known
11010         to work.
11011
11012 2010-06-15  Bruno Haible  <bruno@clisp.org>
11013
11014         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11015
11016 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11017
11018         select: Correct timeout.
11019         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11020
11021 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11022
11023         git-version-gen: init shell var to avoid env var influence
11024         * build-aux/git-version-gen (v): Init shell var to empty.
11025
11026 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11027
11028         priv-set: Don't assume that priv.h exists merely because getppriv does.
11029         See Jan Andersen's bug report about AIX 5L in
11030         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11031         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11032         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11033         * lib/priv-set.h: Likewise.
11034         * tests/test-priv-set.c: Likewise.
11035
11036 2010-06-13  Bruno Haible  <bruno@clisp.org>
11037
11038         relocatable: Make it easier to test whether to install wrappers.
11039         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11040         RELOCATABLE_VIA_WRAPPER.
11041
11042 2010-06-13  Bruno Haible  <bruno@clisp.org>
11043
11044         gnulib-tool: Display specified modules and dependencies differently.
11045         * gnulib-tool (func_show_module_list): New function.
11046         (func_import, func_create_testdir): Invoke it.
11047         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11048
11049 2010-06-13  Bruno Haible  <bruno@clisp.org>
11050
11051         gnulib-tool: Align code of func_import and func_create_testdir.
11052         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11053         specified_modules.
11054
11055 2010-06-12  Jim Meyering  <meyering@redhat.com>
11056
11057         test-inttostr: avoid spurious failure on Solaris 9
11058         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11059         to accept "%ju".  Reported by Bruno Haible.
11060
11061 2010-06-11  Jim Meyering  <meyering@redhat.com>
11062
11063         test-sys_socket: mark variables as used more readably
11064         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11065         as "used" explicitly via (void) statement casts.  This is more
11066         readable than using them in an artificial return expression.
11067         Suggestion from Bruno Haible.
11068
11069 2010-06-11  Bruno Haible  <bruno@clisp.org>
11070
11071         Avoid some more warnings from "gcc -Wwrite-strings".
11072         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11073         to 'const char *'.
11074         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11075         * tests/test-c-strcasestr.c (main): Likewise.
11076         * tests/test-mbscasestr1.c (main): Likewise.
11077         * tests/test-mbscasestr2.c (main): Likewise.
11078         * tests/test-memmem.c (main): Likewise.
11079         * tests/test-strstr.c (main): Likewise.
11080         * tests/test-strcasestr.c (main): Likewise.
11081
11082 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11083
11084         init.sh: change framework_failure_ to fail with status 99, not 1
11085         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11086         automake's parallel-tests rule that this is an unexpected failure,
11087         even if the test is listed in XFAIL_TESTS.
11088
11089 2010-06-11  Jim Meyering  <meyering@redhat.com>
11090
11091         test-inttostr: avoid warnings about 4-6KB literal strings
11092         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11093         Include "macros.h", for its definition of ASSERT.
11094         (CK): s/assert/ASSERT/
11095         * modules/inttostr-tests (Files): Add macros.h.
11096
11097         init.sh: don't use $ME_ or skip_ before they are defined
11098         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11099         their first uses.  Also hoist their companions: warn_, fail_,
11100         framework_failure_, $stderr_fileno.  Prompted by a patch from
11101         Stefano Lattarini.
11102
11103         test-sys_socket: avoid set-but-not-used warnings from gcc
11104         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11105         avoid warning about set-but-not-used variables.
11106
11107         test-xvasprintf: avoid 'const' discard warnings
11108         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11109         "const" when assigning from literal strings.
11110         (test_xasprintf): Add "void" in function argument list to placate
11111         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11112
11113         tests: avoid compilation warnings in argmatch and exclude tests...
11114         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11115         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11116         Since it always exits, declare with the "noreturn" attribute.
11117         * tests/test-argmatch.c: Likewise.
11118
11119         tests: avoid 'const' discard warnings in mbsstr tests
11120         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11121         * tests/test-mbsstr2.c (main): Likewise.
11122
11123         test-verify: avoid warning from gcc's -Wmissing-declarations
11124         * tests/test-verify.c (function): Declare to be static.
11125
11126         test-inttostr.c: include <string.h> for use of strcmp
11127         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11128
11129         test-linkat: avoid failed assertion on "other" architectures
11130         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11131         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11132         sparc: https://bugs.launchpad.net/bugs/591968
11133
11134 2010-06-11  Jim Meyering  <meyering@redhat.com>
11135
11136         printf.m4: avoid autoconf's "Expanded Before Required" warning
11137         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11138         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11139         autoconf warning.
11140
11141 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11142
11143         Replacement header templates are now named with ".in", not "_".
11144         * doc/gnulib-intro.texi: Correct.
11145
11146 2010-06-10  Jim Meyering  <meyering@redhat.com>
11147
11148         inttostr-tests: depend on snprintf, not snprintf-posix
11149         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11150         snprintf-posix, to avoid this aclocal failure:
11151           missing file gnulib-tests/vasnprintf.c
11152           configure.ac:45: error: expected source file, required through \
11153           AC_LIBSOURCES, not found
11154
11155 2010-06-10  Jim Meyering  <meyering@redhat.com>
11156
11157         inttostr: add a new function, inttostr, and tests
11158         The namesake function was not available.  The existence of the
11159         template file, inttostr.c makes its addition nontrivial.
11160         * lib/anytostr.c: Rename from inttostr.c.
11161         (anytostr): Rename from inttostr.
11162         * lib/inttostr.c: New file.
11163         * modules/inttostr (Files): Add anytostr.c.
11164         (Makefile.am): Set lib_SOURCES instead of ...
11165         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11166         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11167         * lib/offtostr.c: Likewise.
11168         * lib/uinttostr.c: Likewise.
11169         * lib/umaxtostr.c: Likewise.
11170         * modules/inttostr-tests: New file.
11171         * tests/test-inttostr.c: New file.  Test these functions.
11172
11173 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11174             Bruno Haible  <bruno@clisp.org>
11175
11176         Add "Extending Gnulib" chapter to manual.
11177         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11178         chapter.
11179         (Extending Gnulib): New chapter.
11180         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11181         chapter.
11182
11183 2010-06-09  Bruno Haible  <bruno@clisp.org>
11184
11185         Avoid relocwrapper link errors due to gnulib replacement functions.
11186         * lib/areadlink.c: Use the system's malloc, realloc functions.
11187         (areadlink): Set errno to ENOMEM explicitly.
11188         * modules/areadlink (Depends-on): Remove malloc-posix.
11189         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11190
11191 2010-06-09  Bruno Haible  <bruno@clisp.org>
11192
11193         Avoid relocwrapper link errors due to gnulib replacement functions.
11194         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11195         * lib/malloca.c: Likewise.
11196         * lib/relocatable.c: Likewise.
11197         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11198         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11199         * lib/setenv.c: Use the system's malloc, realloc functions.
11200         * lib/strerror.c: Use the system's sprintf function.
11201         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11202
11203 2010-06-04  Bruno Haible  <bruno@clisp.org>
11204
11205         Prefer documented low-level autoconf macro names.
11206         * m4/lib-link.m4: Use m4_translit instead of translit.
11207         * m4/environ.m4: Likewise.
11208         * m4/mathfunc.m4: Likewise.
11209         * m4/onceonly.m4: Likewise.
11210         * m4/stdint.m4: Likewise.
11211         Suggested by Eric Blake.
11212
11213 2010-06-04  Martin Lambers  <marlam@marlam.de>
11214             Bruno Haible  <bruno@clisp.org>
11215
11216         havelib: Allow library names with '+' characters.
11217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11218         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11219
11220 2010-06-09  Bruno Haible  <bruno@clisp.org>
11221
11222         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11223         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11224         realloc failed.
11225
11226 2010-06-08  Peter Simons  <simons@cryp.to>
11227
11228         maint.mk: make the news-check rule more configurable
11229         * top/maint.mk (news-check-lines-spec) New variable.
11230         (news-check): Use "sed -n 1,10p" in place of "head".
11231
11232 2010-06-07  Jim Meyering  <meyering@redhat.com>
11233
11234         do-release-commit-and-tag: fix typo in --help
11235         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11236
11237         regex: avoid new dead-code warning with gcc-4.6.0
11238         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11239         if-block containing a while-loop.  It's been unused for at least
11240         5 years.
11241
11242 2010-06-05  Bruno Haible  <bruno@clisp.org>
11243
11244         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11245         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11246
11247 2010-06-04  Bruno Haible  <bruno@clisp.org>
11248
11249         Update to GNU gettext 0.18.1.
11250         * modules/gettext (configure.ac): Require gettext infrastructure from
11251         version 0.18.1.
11252
11253 2010-06-03  Bruno Haible  <bruno@clisp.org>
11254
11255         Don't use AC_LIBOBJ with file names in subdirectories.
11256         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11257         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11258         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11259         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11260         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11261         gl_LIBUNISTRING_LIBSOURCE.
11262         (Makefile.am): Augment lib_SOURCES here, conditionally.
11263         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11264
11265 2010-06-03  Bruno Haible  <bruno@clisp.org>
11266
11267         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11268         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11269         expansion does not end with a newline.
11270         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11271         unnecessary newline.
11272
11273 2010-06-03  Bruno Haible  <bruno@clisp.org>
11274
11275         Reduce dependencies.
11276         * tests/test-quotearg.h: New file, extracted from
11277         tests/test-quotearg.c.
11278         * tests/test-quotearg-simple.c: New file, extracted from
11279         tests/test-quotearg.c.
11280         * tests/test-quotearg.c: Don't include <ctype.h>.
11281         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11282         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11283         use_quote_double_quotes, use_quotearg_colon): Moved to
11284         tests/test-quotearg.h.
11285         (results_g, flag_results, custom_quotes, custom_results): Moved
11286         to tests/test-quotearg-simple.c.
11287         (main): Moved the part that does not depend on gettext to
11288         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11289         performed.
11290         * modules/quotearg-simple: New file.
11291         * modules/quotearg-simple-tests: New file.
11292         * modules/quotearg (Depends-on): Add quotearg-simple.
11293         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11294         (Files): Add tests/test-quotearg.h.
11295         Reported by Paolo Bonzini.
11296
11297 2010-06-03  Bruno Haible  <bruno@clisp.org>
11298
11299         Reduce dependencies.
11300         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11301
11302 2010-06-03  Bruno Haible  <bruno@clisp.org>
11303
11304         time: Undefine more broken macros.
11305         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11306         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11307         Reported by Eric Blake.
11308
11309 2010-06-03  Bruno Haible  <bruno@clisp.org>
11310
11311         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11312         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11313         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11314         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11315         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11316         Reported by Ludovic Courtès <ludo@gnu.org>.
11317
11318 2010-06-02  Eric Blake  <eblake@redhat.com>
11319
11320         time: work with mingw + pthreads-win32 library
11321         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11322         if timespec is defined only in pthread.h.
11323         * modules/time (Makefile.am): Substitute it.
11324         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11325         <pthread.h>, when needed.
11326         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11327         from the library.
11328
11329 2010-05-31  Bruno Haible  <bruno@clisp.org>
11330
11331         Avoid expanding two macros in the wrong order.
11332         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11333         gl_LIBUNISTRING if it is defined.
11334         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11335         autoconf >= 2.64.
11336         Reported by Ludovic Courtès <ludo@gnu.org>.
11337
11338 2010-05-27  Jim Meyering  <meyering@redhat.com>
11339
11340         maint.mk: also prohibit "#undef" of always-defined symbols
11341         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11342         Allow more than one space before the symbol name.
11343         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11344         the regexp uses alternation.
11345
11346 2010-05-26  Eric Blake  <eblake@redhat.com>
11347
11348         maint.mk: avoid echo -e
11349         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11350         Convert all uses of echo -* to printf.
11351         Reported by Matthias Bolte.
11352
11353 2010-05-25  Bruno Haible  <bruno@clisp.org>
11354
11355         Update to GNU gettext 0.18, part 2.
11356         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11357         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11358
11359 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11360
11361         Add missing include in test-pwrite.c.
11362         * tests/test-pwrite.c: Include string.h, for strcmp.
11363
11364 2010-05-24  Bruno Haible  <bruno@clisp.org>
11365
11366         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11367
11368 2010-05-24  Bruno Haible  <bruno@clisp.org>
11369
11370         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11371         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11372         iconveh_error argument.
11373         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11374         U_STRCONV_TO_LOCALE.
11375         * lib/unistr/u16-strcoll.c: Likewise.
11376         * lib/unistr/u32-strcoll.c: Likewise.
11377         * modules/unistr/u8-strcoll (Depends-on): Add
11378         uniconv/u8-strconv-to-enc, localcharset. Remove
11379         uniconv/u8-strconv-to-locale.
11380         (configure.ac): Bump version number.
11381         * modules/unistr/u16-strcoll (Depends-on): Add
11382         uniconv/u16-strconv-to-enc, localcharset. Remove
11383         uniconv/u16-strconv-to-locale.
11384         (configure.ac): Bump version number.
11385         * modules/unistr/u32-strcoll (Depends-on): Add
11386         uniconv/u32-strconv-to-enc, localcharset. Remove
11387         uniconv/u32-strconv-to-locale.
11388         (configure.ac): Bump version number.
11389
11390 2010-05-24  Bruno Haible  <bruno@clisp.org>
11391
11392         Avoid a test failure on NetBSD 5.0.
11393         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11394         an iconv() bug.
11395
11396 2010-05-24  Bruno Haible  <bruno@clisp.org>
11397
11398         Adjust #include directive style.
11399         * modules/regex (Includes): Recommend to write <regex.h>.
11400
11401 2010-05-24  Bruno Haible  <bruno@clisp.org>
11402
11403         regex: Don't require alloca.
11404         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11405         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11406         only inside if (0).
11407
11408 2010-05-23  Jim Meyering  <meyering@redhat.com>
11409
11410         test-renameat.c: include <sys/stat.h>
11411         * tests/test-renameat.c: Include <sys/stat.h>; required for
11412         definition of S_IS* macros.
11413
11414 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11415
11416         Update maintainer documentation for 'relocatable-prog' module.
11417         * doc/relocatable-maint.texi: Update.
11418         Comments by Bruno Haible.
11419
11420 2010-05-23  Bruno Haible  <bruno@clisp.org>
11421
11422         git-merge-changelog: Enable --split-merged-entry by default.
11423         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11424         (usage): Don't mention this option any more.
11425         Reported by Ralf Wildenhues.
11426
11427 2010-05-23  Jim Meyering  <meyering@redhat.com>
11428
11429         test-pwrite: do not leave behind a test file named "out"
11430         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11431         The trivial-looking use of init.sh is really necessary.
11432         It ensures that the temporary file, "out", is created in
11433         a temporary directory, and removed upon termination.
11434         * tests/test-pwrite.sh: Re-add file.
11435         * modules/pwrite-tests: Reference it.
11436
11437 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11438
11439         Fix output redirection buglet in init.sh.
11440         * tests/init.sh: Fix redirection of stderr.
11441
11442 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11443
11444         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11445
11446 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11447
11448         * modules/valgrind-tests: New file.
11449         * m4/valgrind-tests.m4: New file.
11450         * doc/valgrind-tests.texi: New file.
11451         * doc/gnulib.texi (Running self-tests under valgrind): New
11452         section.
11453
11454 2010-05-19  Bruno Haible  <bruno@clisp.org>
11455
11456         Clean up dead code in recent commit.
11457         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11458         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11459         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11460         Suggested by Paolo Bonzini.
11461
11462 2010-05-19  Bruno Haible  <bruno@clisp.org>
11463
11464         Avoid valgrind error reports from libunistring.
11465         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11466         * modules/libunistring (Files): Add it.
11467         * modules/libunistring-optional (Files): Likewise.
11468
11469 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11470             Bruno Haible  <bruno@clisp.org>
11471
11472         New module 'libunistring-optional'.
11473         * modules/libunistring-optional: New file.
11474         * m4/libunistring-base.m4: New file.
11475         * m4/libunistring-optional.m4: New file.
11476         * lib/unicase.in.h: Renamed from lib/unicase.h.
11477         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11478         * lib/unictype.in.h: Renamed from lib/unictype.h.
11479         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11480         * lib/uniname.in.h: Renamed from lib/uniname.h.
11481         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11482         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11483         * lib/unistr.in.h: Renamed from lib/unistr.h.
11484         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11485         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11486         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11487         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11488         gl_LIBUNISTRING. If the library was found, determine the installed
11489         version and set LIBUNISTRING_VERSION.
11490         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11491         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11492         handle a configuration option --with-included-libunistring.
11493         * modules/libunistring (Files): Add m4/absolute-header.m4.
11494         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11495         Add m4/libunistring-base.m4.
11496         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11497         (Makefile.am): Build unicase.h from unicase.in.h.
11498         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11499         Add m4/libunistring-base.m4.
11500         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11501         (Makefile.am): Build uniconv.h from uniconv.in.h.
11502         * modules/unictype/base (Files): Use unictype.in.h instead of
11503         unictype.h. Add m4/libunistring-base.m4.
11504         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11505         (Makefile.am): Build unictype.h from unictype.in.h.
11506         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11507         Add m4/libunistring-base.m4.
11508         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11509         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11510         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11511         Add m4/libunistring-base.m4.
11512         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11513         (Makefile.am): Build uniname.h from uniname.in.h.
11514         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11515         Add m4/libunistring-base.m4.
11516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11517         (Makefile.am): Build uninorm.h from uninorm.in.h.
11518         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11519         unistdio.h. Add m4/libunistring-base.m4.
11520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11521         (Makefile.am): Build unistdio.h from unistdio.in.h.
11522         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11523         Add m4/libunistring-base.m4.
11524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11525         (Makefile.am): Build unistr.h from unistr.in.h.
11526         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11527         Add m4/libunistring-base.m4.
11528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11529         (Makefile.am): Build unitypes.h from unitypes.in.h.
11530         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11531         Add m4/libunistring-base.m4.
11532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11533         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11534         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11535         uniwidth.h. Add m4/libunistring-base.m4.
11536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11537         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11538         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11539         instead of augmenting lib_SOURCES.
11540         * modules/unicase/empty-suffix-context: Likewise.
11541         * modules/unicase/locale-language: Likewise.
11542         * modules/unicase/tolower: Likewise.
11543         * modules/unicase/totitle: Likewise.
11544         * modules/unicase/toupper: Likewise.
11545         * modules/unicase/u8-casecmp: Likewise.
11546         * modules/unicase/u8-casecoll: Likewise.
11547         * modules/unicase/u8-casefold: Likewise.
11548         * modules/unicase/u8-casexfrm: Likewise.
11549         * modules/unicase/u8-ct-casefold: Likewise.
11550         * modules/unicase/u8-ct-tolower: Likewise.
11551         * modules/unicase/u8-ct-totitle: Likewise.
11552         * modules/unicase/u8-ct-toupper: Likewise.
11553         * modules/unicase/u8-is-cased: Likewise.
11554         * modules/unicase/u8-is-casefolded: Likewise.
11555         * modules/unicase/u8-is-lowercase: Likewise.
11556         * modules/unicase/u8-is-titlecase: Likewise.
11557         * modules/unicase/u8-is-uppercase: Likewise.
11558         * modules/unicase/u8-prefix-context: Likewise.
11559         * modules/unicase/u8-suffix-context: Likewise.
11560         * modules/unicase/u8-tolower: Likewise.
11561         * modules/unicase/u8-totitle: Likewise.
11562         * modules/unicase/u8-toupper: Likewise.
11563         * modules/unicase/u16-casecmp: Likewise.
11564         * modules/unicase/u16-casecoll: Likewise.
11565         * modules/unicase/u16-casefold: Likewise.
11566         * modules/unicase/u16-casexfrm: Likewise.
11567         * modules/unicase/u16-ct-casefold: Likewise.
11568         * modules/unicase/u16-ct-tolower: Likewise.
11569         * modules/unicase/u16-ct-totitle: Likewise.
11570         * modules/unicase/u16-ct-toupper: Likewise.
11571         * modules/unicase/u16-is-cased: Likewise.
11572         * modules/unicase/u16-is-casefolded: Likewise.
11573         * modules/unicase/u16-is-lowercase: Likewise.
11574         * modules/unicase/u16-is-titlecase: Likewise.
11575         * modules/unicase/u16-is-uppercase: Likewise.
11576         * modules/unicase/u16-prefix-context: Likewise.
11577         * modules/unicase/u16-suffix-context: Likewise.
11578         * modules/unicase/u16-tolower: Likewise.
11579         * modules/unicase/u16-totitle: Likewise.
11580         * modules/unicase/u16-toupper: Likewise.
11581         * modules/unicase/u32-casecmp: Likewise.
11582         * modules/unicase/u32-casecoll: Likewise.
11583         * modules/unicase/u32-casefold: Likewise.
11584         * modules/unicase/u32-casexfrm: Likewise.
11585         * modules/unicase/u32-ct-casefold: Likewise.
11586         * modules/unicase/u32-ct-tolower: Likewise.
11587         * modules/unicase/u32-ct-totitle: Likewise.
11588         * modules/unicase/u32-ct-toupper: Likewise.
11589         * modules/unicase/u32-is-cased: Likewise.
11590         * modules/unicase/u32-is-casefolded: Likewise.
11591         * modules/unicase/u32-is-lowercase: Likewise.
11592         * modules/unicase/u32-is-titlecase: Likewise.
11593         * modules/unicase/u32-is-uppercase: Likewise.
11594         * modules/unicase/u32-prefix-context: Likewise.
11595         * modules/unicase/u32-suffix-context: Likewise.
11596         * modules/unicase/u32-tolower: Likewise.
11597         * modules/unicase/u32-totitle: Likewise.
11598         * modules/unicase/u32-toupper: Likewise.
11599         * modules/unicase/ulc-casecmp: Likewise.
11600         * modules/unicase/ulc-casecoll: Likewise.
11601         * modules/unicase/ulc-casexfrm: Likewise.
11602         * modules/uniconv/u8-conv-from-enc: Likewise.
11603         * modules/uniconv/u8-conv-to-enc: Likewise.
11604         * modules/uniconv/u8-strconv-from-enc: Likewise.
11605         * modules/uniconv/u8-strconv-from-locale: Likewise.
11606         * modules/uniconv/u8-strconv-to-enc: Likewise.
11607         * modules/uniconv/u8-strconv-to-locale: Likewise.
11608         * modules/uniconv/u16-conv-from-enc: Likewise.
11609         * modules/uniconv/u16-conv-to-enc: Likewise.
11610         * modules/uniconv/u16-strconv-from-enc: Likewise.
11611         * modules/uniconv/u16-strconv-from-locale: Likewise.
11612         * modules/uniconv/u16-strconv-to-enc: Likewise.
11613         * modules/uniconv/u16-strconv-to-locale: Likewise.
11614         * modules/uniconv/u32-conv-from-enc: Likewise.
11615         * modules/uniconv/u32-conv-to-enc: Likewise.
11616         * modules/uniconv/u32-strconv-from-enc: Likewise.
11617         * modules/uniconv/u32-strconv-from-locale: Likewise.
11618         * modules/uniconv/u32-strconv-to-enc: Likewise.
11619         * modules/uniconv/u32-strconv-to-locale: Likewise.
11620         * modules/unictype/bidicategory-byname: Likewise.
11621         * modules/unictype/bidicategory-name: Likewise.
11622         * modules/unictype/bidicategory-of: Likewise.
11623         * modules/unictype/bidicategory-test: Likewise.
11624         * modules/unictype/block-list: Likewise.
11625         * modules/unictype/block-test: Likewise.
11626         * modules/unictype/category-C: Likewise.
11627         * modules/unictype/category-Cc: Likewise.
11628         * modules/unictype/category-Cf: Likewise.
11629         * modules/unictype/category-Cn: Likewise.
11630         * modules/unictype/category-Co: Likewise.
11631         * modules/unictype/category-Cs: Likewise.
11632         * modules/unictype/category-L: Likewise.
11633         * modules/unictype/category-Ll: Likewise.
11634         * modules/unictype/category-Lm: Likewise.
11635         * modules/unictype/category-Lo: Likewise.
11636         * modules/unictype/category-Lt: Likewise.
11637         * modules/unictype/category-Lu: Likewise.
11638         * modules/unictype/category-M: Likewise.
11639         * modules/unictype/category-Mc: Likewise.
11640         * modules/unictype/category-Me: Likewise.
11641         * modules/unictype/category-Mn: Likewise.
11642         * modules/unictype/category-N: Likewise.
11643         * modules/unictype/category-Nd: Likewise.
11644         * modules/unictype/category-Nl: Likewise.
11645         * modules/unictype/category-No: Likewise.
11646         * modules/unictype/category-P: Likewise.
11647         * modules/unictype/category-Pc: Likewise.
11648         * modules/unictype/category-Pd: Likewise.
11649         * modules/unictype/category-Pe: Likewise.
11650         * modules/unictype/category-Pf: Likewise.
11651         * modules/unictype/category-Pi: Likewise.
11652         * modules/unictype/category-Po: Likewise.
11653         * modules/unictype/category-Ps: Likewise.
11654         * modules/unictype/category-S: Likewise.
11655         * modules/unictype/category-Sc: Likewise.
11656         * modules/unictype/category-Sk: Likewise.
11657         * modules/unictype/category-Sm: Likewise.
11658         * modules/unictype/category-So: Likewise.
11659         * modules/unictype/category-Z: Likewise.
11660         * modules/unictype/category-Zl: Likewise.
11661         * modules/unictype/category-Zp: Likewise.
11662         * modules/unictype/category-Zs: Likewise.
11663         * modules/unictype/category-and: Likewise.
11664         * modules/unictype/category-and-not: Likewise.
11665         * modules/unictype/category-byname: Likewise.
11666         * modules/unictype/category-name: Likewise.
11667         * modules/unictype/category-none: Likewise.
11668         * modules/unictype/category-of: Likewise.
11669         * modules/unictype/category-or: Likewise.
11670         * modules/unictype/category-test: Likewise.
11671         * modules/unictype/combining-class: Likewise.
11672         * modules/unictype/ctype-alnum: Likewise.
11673         * modules/unictype/ctype-alpha: Likewise.
11674         * modules/unictype/ctype-blank: Likewise.
11675         * modules/unictype/ctype-cntrl: Likewise.
11676         * modules/unictype/ctype-digit: Likewise.
11677         * modules/unictype/ctype-graph: Likewise.
11678         * modules/unictype/ctype-lower: Likewise.
11679         * modules/unictype/ctype-print: Likewise.
11680         * modules/unictype/ctype-punct: Likewise.
11681         * modules/unictype/ctype-space: Likewise.
11682         * modules/unictype/ctype-upper: Likewise.
11683         * modules/unictype/ctype-xdigit: Likewise.
11684         * modules/unictype/decimal-digit: Likewise.
11685         * modules/unictype/digit: Likewise.
11686         * modules/unictype/mirror: Likewise.
11687         * modules/unictype/numeric: Likewise.
11688         * modules/unictype/property-alphabetic: Likewise.
11689         * modules/unictype/property-ascii-hex-digit: Likewise.
11690         * modules/unictype/property-bidi-arabic-digit: Likewise.
11691         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11692         * modules/unictype/property-bidi-block-separator: Likewise.
11693         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11694         * modules/unictype/property-bidi-common-separator: Likewise.
11695         * modules/unictype/property-bidi-control: Likewise.
11696         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11697         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11698         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11699         * modules/unictype/property-bidi-european-digit: Likewise.
11700         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11701         * modules/unictype/property-bidi-left-to-right: Likewise.
11702         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11703         * modules/unictype/property-bidi-other-neutral: Likewise.
11704         * modules/unictype/property-bidi-pdf: Likewise.
11705         * modules/unictype/property-bidi-segment-separator: Likewise.
11706         * modules/unictype/property-bidi-whitespace: Likewise.
11707         * modules/unictype/property-byname: Likewise.
11708         * modules/unictype/property-combining: Likewise.
11709         * modules/unictype/property-composite: Likewise.
11710         * modules/unictype/property-currency-symbol: Likewise.
11711         * modules/unictype/property-dash: Likewise.
11712         * modules/unictype/property-decimal-digit: Likewise.
11713         * modules/unictype/property-default-ignorable-code-point: Likewise.
11714         * modules/unictype/property-deprecated: Likewise.
11715         * modules/unictype/property-diacritic: Likewise.
11716         * modules/unictype/property-extender: Likewise.
11717         * modules/unictype/property-format-control: Likewise.
11718         * modules/unictype/property-grapheme-base: Likewise.
11719         * modules/unictype/property-grapheme-extend: Likewise.
11720         * modules/unictype/property-grapheme-link: Likewise.
11721         * modules/unictype/property-hex-digit: Likewise.
11722         * modules/unictype/property-hyphen: Likewise.
11723         * modules/unictype/property-id-continue: Likewise.
11724         * modules/unictype/property-id-start: Likewise.
11725         * modules/unictype/property-ideographic: Likewise.
11726         * modules/unictype/property-ids-binary-operator: Likewise.
11727         * modules/unictype/property-ids-trinary-operator: Likewise.
11728         * modules/unictype/property-ignorable-control: Likewise.
11729         * modules/unictype/property-iso-control: Likewise.
11730         * modules/unictype/property-join-control: Likewise.
11731         * modules/unictype/property-left-of-pair: Likewise.
11732         * modules/unictype/property-line-separator: Likewise.
11733         * modules/unictype/property-logical-order-exception: Likewise.
11734         * modules/unictype/property-lowercase: Likewise.
11735         * modules/unictype/property-math: Likewise.
11736         * modules/unictype/property-non-break: Likewise.
11737         * modules/unictype/property-not-a-character: Likewise.
11738         * modules/unictype/property-numeric: Likewise.
11739         * modules/unictype/property-other-alphabetic: Likewise.
11740         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11741         * modules/unictype/property-other-grapheme-extend: Likewise.
11742         * modules/unictype/property-other-id-continue: Likewise.
11743         * modules/unictype/property-other-id-start: Likewise.
11744         * modules/unictype/property-other-lowercase: Likewise.
11745         * modules/unictype/property-other-math: Likewise.
11746         * modules/unictype/property-other-uppercase: Likewise.
11747         * modules/unictype/property-paired-punctuation: Likewise.
11748         * modules/unictype/property-paragraph-separator: Likewise.
11749         * modules/unictype/property-pattern-syntax: Likewise.
11750         * modules/unictype/property-pattern-white-space: Likewise.
11751         * modules/unictype/property-private-use: Likewise.
11752         * modules/unictype/property-punctuation: Likewise.
11753         * modules/unictype/property-quotation-mark: Likewise.
11754         * modules/unictype/property-radical: Likewise.
11755         * modules/unictype/property-sentence-terminal: Likewise.
11756         * modules/unictype/property-soft-dotted: Likewise.
11757         * modules/unictype/property-space: Likewise.
11758         * modules/unictype/property-terminal-punctuation: Likewise.
11759         * modules/unictype/property-test: Likewise.
11760         * modules/unictype/property-titlecase: Likewise.
11761         * modules/unictype/property-unassigned-code-value: Likewise.
11762         * modules/unictype/property-unified-ideograph: Likewise.
11763         * modules/unictype/property-uppercase: Likewise.
11764         * modules/unictype/property-variation-selector: Likewise.
11765         * modules/unictype/property-white-space: Likewise.
11766         * modules/unictype/property-xid-continue: Likewise.
11767         * modules/unictype/property-xid-start: Likewise.
11768         * modules/unictype/property-zero-width: Likewise.
11769         * modules/unictype/scripts: Likewise.
11770         * modules/unictype/syntax-c-ident: Likewise.
11771         * modules/unictype/syntax-c-whitespace: Likewise.
11772         * modules/unictype/syntax-java-ident: Likewise.
11773         * modules/unictype/syntax-java-whitespace: Likewise.
11774         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11775         * modules/unilbrk/u8-width-linebreaks: Likewise.
11776         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11777         * modules/unilbrk/u16-width-linebreaks: Likewise.
11778         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11779         * modules/unilbrk/u32-width-linebreaks: Likewise.
11780         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11781         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11782         * modules/uniname/uniname: Likewise.
11783         * modules/uninorm/canonical-decomposition: Likewise.
11784         * modules/uninorm/composition: Likewise.
11785         * modules/uninorm/decomposing-form: Likewise.
11786         * modules/uninorm/decomposition: Likewise.
11787         * modules/uninorm/filter: Likewise.
11788         * modules/uninorm/nfc: Likewise.
11789         * modules/uninorm/nfd: Likewise.
11790         * modules/uninorm/nfkc: Likewise.
11791         * modules/uninorm/nfkd: Likewise.
11792         * modules/uninorm/u8-normalize: Likewise.
11793         * modules/uninorm/u8-normcmp: Likewise.
11794         * modules/uninorm/u8-normcoll: Likewise.
11795         * modules/uninorm/u8-normxfrm: Likewise.
11796         * modules/uninorm/u16-normalize: Likewise.
11797         * modules/uninorm/u16-normcmp: Likewise.
11798         * modules/uninorm/u16-normcoll: Likewise.
11799         * modules/uninorm/u16-normxfrm: Likewise.
11800         * modules/uninorm/u32-normalize: Likewise.
11801         * modules/uninorm/u32-normcmp: Likewise.
11802         * modules/uninorm/u32-normcoll: Likewise.
11803         * modules/uninorm/u32-normxfrm: Likewise.
11804         * modules/unistdio/u8-asnprintf: Likewise.
11805         * modules/unistdio/u8-asprintf: Likewise.
11806         * modules/unistdio/u8-snprintf: Likewise.
11807         * modules/unistdio/u8-sprintf: Likewise.
11808         * modules/unistdio/u8-u8-asnprintf: Likewise.
11809         * modules/unistdio/u8-u8-asprintf: Likewise.
11810         * modules/unistdio/u8-u8-snprintf: Likewise.
11811         * modules/unistdio/u8-u8-sprintf: Likewise.
11812         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11813         * modules/unistdio/u8-u8-vasprintf: Likewise.
11814         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11815         * modules/unistdio/u8-u8-vsprintf: Likewise.
11816         * modules/unistdio/u8-vasnprintf: Likewise.
11817         * modules/unistdio/u8-vasprintf: Likewise.
11818         * modules/unistdio/u8-vsnprintf: Likewise.
11819         * modules/unistdio/u8-vsprintf: Likewise.
11820         * modules/unistdio/u16-asnprintf: Likewise.
11821         * modules/unistdio/u16-asprintf: Likewise.
11822         * modules/unistdio/u16-snprintf: Likewise.
11823         * modules/unistdio/u16-sprintf: Likewise.
11824         * modules/unistdio/u16-u16-asnprintf: Likewise.
11825         * modules/unistdio/u16-u16-asprintf: Likewise.
11826         * modules/unistdio/u16-u16-snprintf: Likewise.
11827         * modules/unistdio/u16-u16-sprintf: Likewise.
11828         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11829         * modules/unistdio/u16-u16-vasprintf: Likewise.
11830         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11831         * modules/unistdio/u16-u16-vsprintf: Likewise.
11832         * modules/unistdio/u16-vasnprintf: Likewise.
11833         * modules/unistdio/u16-vasprintf: Likewise.
11834         * modules/unistdio/u16-vsnprintf: Likewise.
11835         * modules/unistdio/u16-vsprintf: Likewise.
11836         * modules/unistdio/u32-asnprintf: Likewise.
11837         * modules/unistdio/u32-asprintf: Likewise.
11838         * modules/unistdio/u32-snprintf: Likewise.
11839         * modules/unistdio/u32-sprintf: Likewise.
11840         * modules/unistdio/u32-u32-asnprintf: Likewise.
11841         * modules/unistdio/u32-u32-asprintf: Likewise.
11842         * modules/unistdio/u32-u32-snprintf: Likewise.
11843         * modules/unistdio/u32-u32-sprintf: Likewise.
11844         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11845         * modules/unistdio/u32-u32-vasprintf: Likewise.
11846         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11847         * modules/unistdio/u32-u32-vsprintf: Likewise.
11848         * modules/unistdio/u32-vasnprintf: Likewise.
11849         * modules/unistdio/u32-vasprintf: Likewise.
11850         * modules/unistdio/u32-vsnprintf: Likewise.
11851         * modules/unistdio/u32-vsprintf: Likewise.
11852         * modules/unistdio/ulc-asnprintf: Likewise.
11853         * modules/unistdio/ulc-asprintf: Likewise.
11854         * modules/unistdio/ulc-fprintf: Likewise.
11855         * modules/unistdio/ulc-snprintf: Likewise.
11856         * modules/unistdio/ulc-sprintf: Likewise.
11857         * modules/unistdio/ulc-vasnprintf: Likewise.
11858         * modules/unistdio/ulc-vasprintf: Likewise.
11859         * modules/unistdio/ulc-vfprintf: Likewise.
11860         * modules/unistdio/ulc-vsnprintf: Likewise.
11861         * modules/unistdio/ulc-vsprintf: Likewise.
11862         * modules/unistr/u8-check: Likewise.
11863         * modules/unistr/u8-chr: Likewise.
11864         * modules/unistr/u8-cmp: Likewise.
11865         * modules/unistr/u8-cmp2: Likewise.
11866         * modules/unistr/u8-cpy: Likewise.
11867         * modules/unistr/u8-cpy-alloc: Likewise.
11868         * modules/unistr/u8-endswith: Likewise.
11869         * modules/unistr/u8-mblen: Likewise.
11870         * modules/unistr/u8-mbsnlen: Likewise.
11871         * modules/unistr/u8-mbtouc: Likewise.
11872         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11873         * modules/unistr/u8-mbtoucr: Likewise.
11874         * modules/unistr/u8-move: Likewise.
11875         * modules/unistr/u8-next: Likewise.
11876         * modules/unistr/u8-prev: Likewise.
11877         * modules/unistr/u8-set: Likewise.
11878         * modules/unistr/u8-startswith: Likewise.
11879         * modules/unistr/u8-stpcpy: Likewise.
11880         * modules/unistr/u8-stpncpy: Likewise.
11881         * modules/unistr/u8-strcat: Likewise.
11882         * modules/unistr/u8-strchr: Likewise.
11883         * modules/unistr/u8-strcmp: Likewise.
11884         * modules/unistr/u8-strcoll: Likewise.
11885         * modules/unistr/u8-strcpy: Likewise.
11886         * modules/unistr/u8-strcspn: Likewise.
11887         * modules/unistr/u8-strdup: Likewise.
11888         * modules/unistr/u8-strlen: Likewise.
11889         * modules/unistr/u8-strmblen: Likewise.
11890         * modules/unistr/u8-strmbtouc: Likewise.
11891         * modules/unistr/u8-strncat: Likewise.
11892         * modules/unistr/u8-strncmp: Likewise.
11893         * modules/unistr/u8-strncpy: Likewise.
11894         * modules/unistr/u8-strnlen: Likewise.
11895         * modules/unistr/u8-strpbrk: Likewise.
11896         * modules/unistr/u8-strrchr: Likewise.
11897         * modules/unistr/u8-strspn: Likewise.
11898         * modules/unistr/u8-strstr: Likewise.
11899         * modules/unistr/u8-strtok: Likewise.
11900         * modules/unistr/u8-to-u16: Likewise.
11901         * modules/unistr/u8-to-u32: Likewise.
11902         * modules/unistr/u8-uctomb: Likewise.
11903         * modules/unistr/u16-check: Likewise.
11904         * modules/unistr/u16-chr: Likewise.
11905         * modules/unistr/u16-cmp: Likewise.
11906         * modules/unistr/u16-cmp2: Likewise.
11907         * modules/unistr/u16-cpy: Likewise.
11908         * modules/unistr/u16-cpy-alloc: Likewise.
11909         * modules/unistr/u16-endswith: Likewise.
11910         * modules/unistr/u16-mblen: Likewise.
11911         * modules/unistr/u16-mbsnlen: Likewise.
11912         * modules/unistr/u16-mbtouc: Likewise.
11913         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11914         * modules/unistr/u16-mbtoucr: Likewise.
11915         * modules/unistr/u16-move: Likewise.
11916         * modules/unistr/u16-next: Likewise.
11917         * modules/unistr/u16-prev: Likewise.
11918         * modules/unistr/u16-set: Likewise.
11919         * modules/unistr/u16-startswith: Likewise.
11920         * modules/unistr/u16-stpcpy: Likewise.
11921         * modules/unistr/u16-stpncpy: Likewise.
11922         * modules/unistr/u16-strcat: Likewise.
11923         * modules/unistr/u16-strchr: Likewise.
11924         * modules/unistr/u16-strcmp: Likewise.
11925         * modules/unistr/u16-strcoll: Likewise.
11926         * modules/unistr/u16-strcpy: Likewise.
11927         * modules/unistr/u16-strcspn: Likewise.
11928         * modules/unistr/u16-strdup: Likewise.
11929         * modules/unistr/u16-strlen: Likewise.
11930         * modules/unistr/u16-strmblen: Likewise.
11931         * modules/unistr/u16-strmbtouc: Likewise.
11932         * modules/unistr/u16-strncat: Likewise.
11933         * modules/unistr/u16-strncmp: Likewise.
11934         * modules/unistr/u16-strncpy: Likewise.
11935         * modules/unistr/u16-strnlen: Likewise.
11936         * modules/unistr/u16-strpbrk: Likewise.
11937         * modules/unistr/u16-strrchr: Likewise.
11938         * modules/unistr/u16-strspn: Likewise.
11939         * modules/unistr/u16-strstr: Likewise.
11940         * modules/unistr/u16-strtok: Likewise.
11941         * modules/unistr/u16-to-u32: Likewise.
11942         * modules/unistr/u16-to-u8: Likewise.
11943         * modules/unistr/u16-uctomb: Likewise.
11944         * modules/unistr/u32-check: Likewise.
11945         * modules/unistr/u32-chr: Likewise.
11946         * modules/unistr/u32-cmp: Likewise.
11947         * modules/unistr/u32-cmp2: Likewise.
11948         * modules/unistr/u32-cpy: Likewise.
11949         * modules/unistr/u32-cpy-alloc: Likewise.
11950         * modules/unistr/u32-endswith: Likewise.
11951         * modules/unistr/u32-mblen: Likewise.
11952         * modules/unistr/u32-mbsnlen: Likewise.
11953         * modules/unistr/u32-mbtouc: Likewise.
11954         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11955         * modules/unistr/u32-mbtoucr: Likewise.
11956         * modules/unistr/u32-move: Likewise.
11957         * modules/unistr/u32-next: Likewise.
11958         * modules/unistr/u32-prev: Likewise.
11959         * modules/unistr/u32-set: Likewise.
11960         * modules/unistr/u32-startswith: Likewise.
11961         * modules/unistr/u32-stpcpy: Likewise.
11962         * modules/unistr/u32-stpncpy: Likewise.
11963         * modules/unistr/u32-strcat: Likewise.
11964         * modules/unistr/u32-strchr: Likewise.
11965         * modules/unistr/u32-strcmp: Likewise.
11966         * modules/unistr/u32-strcoll: Likewise.
11967         * modules/unistr/u32-strcpy: Likewise.
11968         * modules/unistr/u32-strcspn: Likewise.
11969         * modules/unistr/u32-strdup: Likewise.
11970         * modules/unistr/u32-strlen: Likewise.
11971         * modules/unistr/u32-strmblen: Likewise.
11972         * modules/unistr/u32-strmbtouc: Likewise.
11973         * modules/unistr/u32-strncat: Likewise.
11974         * modules/unistr/u32-strncmp: Likewise.
11975         * modules/unistr/u32-strncpy: Likewise.
11976         * modules/unistr/u32-strnlen: Likewise.
11977         * modules/unistr/u32-strpbrk: Likewise.
11978         * modules/unistr/u32-strrchr: Likewise.
11979         * modules/unistr/u32-strspn: Likewise.
11980         * modules/unistr/u32-strstr: Likewise.
11981         * modules/unistr/u32-strtok: Likewise.
11982         * modules/unistr/u32-to-u16: Likewise.
11983         * modules/unistr/u32-to-u8: Likewise.
11984         * modules/unistr/u32-uctomb: Likewise.
11985         * modules/uniwbrk/u8-wordbreaks: Likewise.
11986         * modules/uniwbrk/u16-wordbreaks: Likewise.
11987         * modules/uniwbrk/u32-wordbreaks: Likewise.
11988         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11989         * modules/uniwbrk/wordbreak-property: Likewise.
11990         * modules/uniwidth/u8-strwidth: Likewise.
11991         * modules/uniwidth/u8-width: Likewise.
11992         * modules/uniwidth/u16-strwidth: Likewise.
11993         * modules/uniwidth/u16-width: Likewise.
11994         * modules/uniwidth/u32-strwidth: Likewise.
11995         * modules/uniwidth/u32-width: Likewise.
11996         * modules/uniwidth/width: Likewise.
11997         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11998         with $(LIBUNISTRING).
11999         * modules/unicase/ignorable-tests: Likewise.
12000         * modules/unicase/locale-language-tests: Likewise.
12001         * modules/unicase/tolower-tests: Likewise.
12002         * modules/unicase/totitle-tests: Likewise.
12003         * modules/unicase/toupper-tests: Likewise.
12004         * modules/unicase/u8-casecmp-tests: Likewise.
12005         * modules/unicase/u8-casecoll-tests: Likewise.
12006         * modules/unicase/u8-casefold-tests: Likewise.
12007         * modules/unicase/u8-is-cased-tests: Likewise.
12008         * modules/unicase/u8-is-casefolded-tests: Likewise.
12009         * modules/unicase/u8-is-lowercase-tests: Likewise.
12010         * modules/unicase/u8-is-titlecase-tests: Likewise.
12011         * modules/unicase/u8-is-uppercase-tests: Likewise.
12012         * modules/unicase/u8-tolower-tests: Likewise.
12013         * modules/unicase/u8-totitle-tests: Likewise.
12014         * modules/unicase/u8-toupper-tests: Likewise.
12015         * modules/unicase/u16-casecmp-tests: Likewise.
12016         * modules/unicase/u16-casecoll-tests: Likewise.
12017         * modules/unicase/u16-casefold-tests: Likewise.
12018         * modules/unicase/u16-is-cased-tests: Likewise.
12019         * modules/unicase/u16-is-casefolded-tests: Likewise.
12020         * modules/unicase/u16-is-lowercase-tests: Likewise.
12021         * modules/unicase/u16-is-titlecase-tests: Likewise.
12022         * modules/unicase/u16-is-uppercase-tests: Likewise.
12023         * modules/unicase/u16-tolower-tests: Likewise.
12024         * modules/unicase/u16-totitle-tests: Likewise.
12025         * modules/unicase/u16-toupper-tests: Likewise.
12026         * modules/unicase/u32-casecmp-tests: Likewise.
12027         * modules/unicase/u32-casecoll-tests: Likewise.
12028         * modules/unicase/u32-casefold-tests: Likewise.
12029         * modules/unicase/u32-is-cased-tests: Likewise.
12030         * modules/unicase/u32-is-casefolded-tests: Likewise.
12031         * modules/unicase/u32-is-lowercase-tests: Likewise.
12032         * modules/unicase/u32-is-titlecase-tests: Likewise.
12033         * modules/unicase/u32-is-uppercase-tests: Likewise.
12034         * modules/unicase/u32-tolower-tests: Likewise.
12035         * modules/unicase/u32-totitle-tests: Likewise.
12036         * modules/unicase/u32-toupper-tests: Likewise.
12037         * modules/unicase/ulc-casecmp-tests: Likewise.
12038         * modules/unicase/ulc-casecoll-tests: Likewise.
12039         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12040         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12041         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12042         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12043         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12044         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12045         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12046         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12047         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12048         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12049         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12050         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12051         * modules/unictype/bidicategory-byname-tests: Likewise.
12052         * modules/unictype/bidicategory-name-tests: Likewise.
12053         * modules/unictype/bidicategory-of-tests: Likewise.
12054         * modules/unictype/bidicategory-test-tests: Likewise.
12055         * modules/unictype/block-list-tests: Likewise.
12056         * modules/unictype/block-of-tests: Likewise.
12057         * modules/unictype/block-test-tests: Likewise.
12058         * modules/unictype/category-C-tests: Likewise.
12059         * modules/unictype/category-Cc-tests: Likewise.
12060         * modules/unictype/category-Cf-tests: Likewise.
12061         * modules/unictype/category-Cn-tests: Likewise.
12062         * modules/unictype/category-Co-tests: Likewise.
12063         * modules/unictype/category-Cs-tests: Likewise.
12064         * modules/unictype/category-L-tests: Likewise.
12065         * modules/unictype/category-Ll-tests: Likewise.
12066         * modules/unictype/category-Lm-tests: Likewise.
12067         * modules/unictype/category-Lo-tests: Likewise.
12068         * modules/unictype/category-Lt-tests: Likewise.
12069         * modules/unictype/category-Lu-tests: Likewise.
12070         * modules/unictype/category-M-tests: Likewise.
12071         * modules/unictype/category-Mc-tests: Likewise.
12072         * modules/unictype/category-Me-tests: Likewise.
12073         * modules/unictype/category-Mn-tests: Likewise.
12074         * modules/unictype/category-N-tests: Likewise.
12075         * modules/unictype/category-Nd-tests: Likewise.
12076         * modules/unictype/category-Nl-tests: Likewise.
12077         * modules/unictype/category-No-tests: Likewise.
12078         * modules/unictype/category-P-tests: Likewise.
12079         * modules/unictype/category-Pc-tests: Likewise.
12080         * modules/unictype/category-Pd-tests: Likewise.
12081         * modules/unictype/category-Pe-tests: Likewise.
12082         * modules/unictype/category-Pf-tests: Likewise.
12083         * modules/unictype/category-Pi-tests: Likewise.
12084         * modules/unictype/category-Po-tests: Likewise.
12085         * modules/unictype/category-Ps-tests: Likewise.
12086         * modules/unictype/category-S-tests: Likewise.
12087         * modules/unictype/category-Sc-tests: Likewise.
12088         * modules/unictype/category-Sk-tests: Likewise.
12089         * modules/unictype/category-Sm-tests: Likewise.
12090         * modules/unictype/category-So-tests: Likewise.
12091         * modules/unictype/category-Z-tests: Likewise.
12092         * modules/unictype/category-Zl-tests: Likewise.
12093         * modules/unictype/category-Zp-tests: Likewise.
12094         * modules/unictype/category-Zs-tests: Likewise.
12095         * modules/unictype/category-and-not-tests: Likewise.
12096         * modules/unictype/category-and-tests: Likewise.
12097         * modules/unictype/category-byname-tests: Likewise.
12098         * modules/unictype/category-name-tests: Likewise.
12099         * modules/unictype/category-none-tests: Likewise.
12100         * modules/unictype/category-of-tests: Likewise.
12101         * modules/unictype/category-or-tests: Likewise.
12102         * modules/unictype/category-test-withtable-tests: Likewise.
12103         * modules/unictype/combining-class-tests: Likewise.
12104         * modules/unictype/ctype-alnum-tests: Likewise.
12105         * modules/unictype/ctype-alpha-tests: Likewise.
12106         * modules/unictype/ctype-blank-tests: Likewise.
12107         * modules/unictype/ctype-cntrl-tests: Likewise.
12108         * modules/unictype/ctype-digit-tests: Likewise.
12109         * modules/unictype/ctype-graph-tests: Likewise.
12110         * modules/unictype/ctype-lower-tests: Likewise.
12111         * modules/unictype/ctype-print-tests: Likewise.
12112         * modules/unictype/ctype-punct-tests: Likewise.
12113         * modules/unictype/ctype-space-tests: Likewise.
12114         * modules/unictype/ctype-upper-tests: Likewise.
12115         * modules/unictype/ctype-xdigit-tests: Likewise.
12116         * modules/unictype/decimal-digit-tests: Likewise.
12117         * modules/unictype/digit-tests: Likewise.
12118         * modules/unictype/mirror-tests: Likewise.
12119         * modules/unictype/numeric-tests: Likewise.
12120         * modules/unictype/property-alphabetic-tests: Likewise.
12121         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12122         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12123         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12124         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12125         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12126         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12127         * modules/unictype/property-bidi-control-tests: Likewise.
12128         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12129         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12130         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12131         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12132         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12133         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12134         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12135         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12136         * modules/unictype/property-bidi-pdf-tests: Likewise.
12137         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12138         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12139         * modules/unictype/property-byname-tests: Likewise.
12140         * modules/unictype/property-combining-tests: Likewise.
12141         * modules/unictype/property-composite-tests: Likewise.
12142         * modules/unictype/property-currency-symbol-tests: Likewise.
12143         * modules/unictype/property-dash-tests: Likewise.
12144         * modules/unictype/property-decimal-digit-tests: Likewise.
12145         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12146         * modules/unictype/property-deprecated-tests: Likewise.
12147         * modules/unictype/property-diacritic-tests: Likewise.
12148         * modules/unictype/property-extender-tests: Likewise.
12149         * modules/unictype/property-format-control-tests: Likewise.
12150         * modules/unictype/property-grapheme-base-tests: Likewise.
12151         * modules/unictype/property-grapheme-extend-tests: Likewise.
12152         * modules/unictype/property-grapheme-link-tests: Likewise.
12153         * modules/unictype/property-hex-digit-tests: Likewise.
12154         * modules/unictype/property-hyphen-tests: Likewise.
12155         * modules/unictype/property-id-continue-tests: Likewise.
12156         * modules/unictype/property-id-start-tests: Likewise.
12157         * modules/unictype/property-ideographic-tests: Likewise.
12158         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12159         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12160         * modules/unictype/property-ignorable-control-tests: Likewise.
12161         * modules/unictype/property-iso-control-tests: Likewise.
12162         * modules/unictype/property-join-control-tests: Likewise.
12163         * modules/unictype/property-left-of-pair-tests: Likewise.
12164         * modules/unictype/property-line-separator-tests: Likewise.
12165         * modules/unictype/property-logical-order-exception-tests: Likewise.
12166         * modules/unictype/property-lowercase-tests: Likewise.
12167         * modules/unictype/property-math-tests: Likewise.
12168         * modules/unictype/property-non-break-tests: Likewise.
12169         * modules/unictype/property-not-a-character-tests: Likewise.
12170         * modules/unictype/property-numeric-tests: Likewise.
12171         * modules/unictype/property-other-alphabetic-tests: Likewise.
12172         * modules/unictype/property-other-default-ignorable-code-point-tests:
12173         Likewise.
12174         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12175         * modules/unictype/property-other-id-continue-tests: Likewise.
12176         * modules/unictype/property-other-id-start-tests: Likewise.
12177         * modules/unictype/property-other-lowercase-tests: Likewise.
12178         * modules/unictype/property-other-math-tests: Likewise.
12179         * modules/unictype/property-other-uppercase-tests: Likewise.
12180         * modules/unictype/property-paired-punctuation-tests: Likewise.
12181         * modules/unictype/property-paragraph-separator-tests: Likewise.
12182         * modules/unictype/property-pattern-syntax-tests: Likewise.
12183         * modules/unictype/property-pattern-white-space-tests: Likewise.
12184         * modules/unictype/property-private-use-tests: Likewise.
12185         * modules/unictype/property-punctuation-tests: Likewise.
12186         * modules/unictype/property-quotation-mark-tests: Likewise.
12187         * modules/unictype/property-radical-tests: Likewise.
12188         * modules/unictype/property-sentence-terminal-tests: Likewise.
12189         * modules/unictype/property-soft-dotted-tests: Likewise.
12190         * modules/unictype/property-space-tests: Likewise.
12191         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12192         * modules/unictype/property-test-tests: Likewise.
12193         * modules/unictype/property-titlecase-tests: Likewise.
12194         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12195         * modules/unictype/property-unified-ideograph-tests: Likewise.
12196         * modules/unictype/property-uppercase-tests: Likewise.
12197         * modules/unictype/property-variation-selector-tests: Likewise.
12198         * modules/unictype/property-white-space-tests: Likewise.
12199         * modules/unictype/property-xid-continue-tests: Likewise.
12200         * modules/unictype/property-xid-start-tests: Likewise.
12201         * modules/unictype/property-zero-width-tests: Likewise.
12202         * modules/unictype/scripts-tests: Likewise.
12203         * modules/unictype/syntax-c-ident-tests: Likewise.
12204         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12205         * modules/unictype/syntax-java-ident-tests: Likewise.
12206         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12207         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12208         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12209         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12210         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12211         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12212         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12213         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12214         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12215         * modules/uniname/uniname-tests: Likewise.
12216         * modules/uninorm/canonical-decomposition-tests: Likewise.
12217         * modules/uninorm/compat-decomposition-tests: Likewise.
12218         * modules/uninorm/composition-tests: Likewise.
12219         * modules/uninorm/decomposing-form-tests: Likewise.
12220         * modules/uninorm/decomposition-tests: Likewise.
12221         * modules/uninorm/filter-tests: Likewise.
12222         * modules/uninorm/nfc-tests: Likewise.
12223         * modules/uninorm/nfd-tests: Likewise.
12224         * modules/uninorm/nfkc-tests: Likewise.
12225         * modules/uninorm/nfkd-tests: Likewise.
12226         * modules/uninorm/u8-normcmp-tests: Likewise.
12227         * modules/uninorm/u8-normcoll-tests: Likewise.
12228         * modules/uninorm/u16-normcmp-tests: Likewise.
12229         * modules/uninorm/u16-normcoll-tests: Likewise.
12230         * modules/uninorm/u32-normcmp-tests: Likewise.
12231         * modules/uninorm/u32-normcoll-tests: Likewise.
12232         * modules/unistdio/u8-asnprintf-tests: Likewise.
12233         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12234         * modules/unistdio/u8-vasprintf-tests: Likewise.
12235         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12236         * modules/unistdio/u8-vsprintf-tests: Likewise.
12237         * modules/unistdio/u16-asnprintf-tests: Likewise.
12238         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12239         * modules/unistdio/u16-vasprintf-tests: Likewise.
12240         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12241         * modules/unistdio/u16-vsprintf-tests: Likewise.
12242         * modules/unistdio/u32-asnprintf-tests: Likewise.
12243         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12244         * modules/unistdio/u32-vasprintf-tests: Likewise.
12245         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12246         * modules/unistdio/u32-vsprintf-tests: Likewise.
12247         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12248         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12249         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12250         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12251         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12252         * modules/unistr/u8-check-tests: Likewise.
12253         * modules/unistr/u8-chr-tests: Likewise.
12254         * modules/unistr/u8-cmp-tests: Likewise.
12255         * modules/unistr/u8-cmp2-tests: Likewise.
12256         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12257         * modules/unistr/u8-cpy-tests: Likewise.
12258         * modules/unistr/u8-mblen-tests: Likewise.
12259         * modules/unistr/u8-mbsnlen-tests: Likewise.
12260         * modules/unistr/u8-mbtouc-tests: Likewise.
12261         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12262         * modules/unistr/u8-mbtoucr-tests: Likewise.
12263         * modules/unistr/u8-move-tests: Likewise.
12264         * modules/unistr/u8-next-tests: Likewise.
12265         * modules/unistr/u8-prev-tests: Likewise.
12266         * modules/unistr/u8-set-tests: Likewise.
12267         * modules/unistr/u8-stpcpy-tests: Likewise.
12268         * modules/unistr/u8-stpncpy-tests: Likewise.
12269         * modules/unistr/u8-strcat-tests: Likewise.
12270         * modules/unistr/u8-strcmp-tests: Likewise.
12271         * modules/unistr/u8-strcoll-tests: Likewise.
12272         * modules/unistr/u8-strcpy-tests: Likewise.
12273         * modules/unistr/u8-strdup-tests: Likewise.
12274         * modules/unistr/u8-strlen-tests: Likewise.
12275         * modules/unistr/u8-strmblen-tests: Likewise.
12276         * modules/unistr/u8-strmbtouc-tests: Likewise.
12277         * modules/unistr/u8-strncat-tests: Likewise.
12278         * modules/unistr/u8-strncmp-tests: Likewise.
12279         * modules/unistr/u8-strncpy-tests: Likewise.
12280         * modules/unistr/u8-strnlen-tests: Likewise.
12281         * modules/unistr/u8-to-u16-tests: Likewise.
12282         * modules/unistr/u8-to-u32-tests: Likewise.
12283         * modules/unistr/u8-uctomb-tests: Likewise.
12284         * modules/unistr/u16-check-tests: Likewise.
12285         * modules/unistr/u16-chr-tests: Likewise.
12286         * modules/unistr/u16-cmp-tests: Likewise.
12287         * modules/unistr/u16-cmp2-tests: Likewise.
12288         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12289         * modules/unistr/u16-cpy-tests: Likewise.
12290         * modules/unistr/u16-mblen-tests: Likewise.
12291         * modules/unistr/u16-mbsnlen-tests: Likewise.
12292         * modules/unistr/u16-mbtouc-tests: Likewise.
12293         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12294         * modules/unistr/u16-mbtoucr-tests: Likewise.
12295         * modules/unistr/u16-move-tests: Likewise.
12296         * modules/unistr/u16-next-tests: Likewise.
12297         * modules/unistr/u16-prev-tests: Likewise.
12298         * modules/unistr/u16-set-tests: Likewise.
12299         * modules/unistr/u16-stpcpy-tests: Likewise.
12300         * modules/unistr/u16-stpncpy-tests: Likewise.
12301         * modules/unistr/u16-strcat-tests: Likewise.
12302         * modules/unistr/u16-strcmp-tests: Likewise.
12303         * modules/unistr/u16-strcoll-tests: Likewise.
12304         * modules/unistr/u16-strcpy-tests: Likewise.
12305         * modules/unistr/u16-strdup-tests: Likewise.
12306         * modules/unistr/u16-strlen-tests: Likewise.
12307         * modules/unistr/u16-strmblen-tests: Likewise.
12308         * modules/unistr/u16-strmbtouc-tests: Likewise.
12309         * modules/unistr/u16-strncat-tests: Likewise.
12310         * modules/unistr/u16-strncmp-tests: Likewise.
12311         * modules/unistr/u16-strncpy-tests: Likewise.
12312         * modules/unistr/u16-strnlen-tests: Likewise.
12313         * modules/unistr/u16-to-u32-tests: Likewise.
12314         * modules/unistr/u16-to-u8-tests: Likewise.
12315         * modules/unistr/u16-uctomb-tests: Likewise.
12316         * modules/unistr/u32-check-tests: Likewise.
12317         * modules/unistr/u32-chr-tests: Likewise.
12318         * modules/unistr/u32-cmp-tests: Likewise.
12319         * modules/unistr/u32-cmp2-tests: Likewise.
12320         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12321         * modules/unistr/u32-cpy-tests: Likewise.
12322         * modules/unistr/u32-mblen-tests: Likewise.
12323         * modules/unistr/u32-mbsnlen-tests: Likewise.
12324         * modules/unistr/u32-mbtouc-tests: Likewise.
12325         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12326         * modules/unistr/u32-mbtoucr-tests: Likewise.
12327         * modules/unistr/u32-move-tests: Likewise.
12328         * modules/unistr/u32-next-tests: Likewise.
12329         * modules/unistr/u32-prev-tests: Likewise.
12330         * modules/unistr/u32-set-tests: Likewise.
12331         * modules/unistr/u32-stpcpy-tests: Likewise.
12332         * modules/unistr/u32-stpncpy-tests: Likewise.
12333         * modules/unistr/u32-strcat-tests: Likewise.
12334         * modules/unistr/u32-strcmp-tests: Likewise.
12335         * modules/unistr/u32-strcoll-tests: Likewise.
12336         * modules/unistr/u32-strcpy-tests: Likewise.
12337         * modules/unistr/u32-strdup-tests: Likewise.
12338         * modules/unistr/u32-strlen-tests: Likewise.
12339         * modules/unistr/u32-strmblen-tests: Likewise.
12340         * modules/unistr/u32-strmbtouc-tests: Likewise.
12341         * modules/unistr/u32-strncat-tests: Likewise.
12342         * modules/unistr/u32-strncmp-tests: Likewise.
12343         * modules/unistr/u32-strncpy-tests: Likewise.
12344         * modules/unistr/u32-strnlen-tests: Likewise.
12345         * modules/unistr/u32-to-u16-tests: Likewise.
12346         * modules/unistr/u32-to-u8-tests: Likewise.
12347         * modules/unistr/u32-uctomb-tests: Likewise.
12348         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12349         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12350         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12351         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12352         * modules/uniwidth/u8-strwidth-tests: Likewise.
12353         * modules/uniwidth/u8-width-tests: Likewise.
12354         * modules/uniwidth/u16-strwidth-tests: Likewise.
12355         * modules/uniwidth/u16-width-tests: Likewise.
12356         * modules/uniwidth/u32-strwidth-tests: Likewise.
12357         * modules/uniwidth/u32-width-tests: Likewise.
12358         * modules/uniwidth/width-tests: Likewise.
12359
12360 2010-05-18  Richard Jones  <rjones@redhat.com>
12361
12362         doc: users.txt: list hivex
12363         * users.txt: Add hivex.
12364
12365 2010-05-18  Richard Jones  <rjones@redhat.com>
12366
12367         doc: users.txt: list febootstrap
12368         * users.txt: Add febootstrap.
12369
12370 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12371
12372         bootstrap: fix an error when gnulib is not used as a git submodule
12373         * build-aux/bootstrap (gnulib_path): If its length is zero then
12374         assign "gnulib" to it.
12375         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12376
12377 2010-05-16  Bruno Haible  <bruno@clisp.org>
12378
12379         Avoid autoconf warnings about AM_ICONV.
12380         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12381         2.64.
12382
12383 2010-05-16  Bruno Haible  <bruno@clisp.org>
12384
12385         absolute-header: Make the macro usable in more situations.
12386         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12387         from gl_ABSOLUTE_HEADER.
12388         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12389
12390 2010-05-16  James Youngman  <jay@gnu.org>
12391
12392         doc: update users.txt
12393         * users.txt: Add CSSC.
12394
12395 2010-05-16  Jim Meyering  <meyering@redhat.com>
12396
12397         init.sh: fix an error in the previous change; add more comments
12398         * tests/init.sh: Compare exit code in loop against 9, not 2.
12399         Patch by Bruno Haible.
12400         Make the two tests more similar by adding an empty "then" clause.
12401         Add comments.
12402
12403         init.sh: avoid unnecessary shell re-exec
12404         * tests/init.sh: Improve the re-exec-required check to first test the
12405         current shell.  If it passes the test, do not search for a shell that
12406         does pass, and do not re-exec.  This test is particularly contorted to
12407         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12408         of $(...) evokes a syntax error and causes immediate shell exit with
12409         status 2.  Bruno Haible reported that the re-exec made it impossible
12410         to single-step through any init.sh-using script.
12411
12412 2010-05-16  Bruno Haible  <bruno@clisp.org>
12413
12414         Fix collision between gnulib's and libintl's printf replacements.
12415         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12416         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12417         (printf): When using GNU C, map the __printf__ function to rpl_printf
12418         via __asm__. When not using GNU C, define rpl_printf instead of
12419         __printf__.
12420         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12421         commit.
12422         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12423         commit.
12424         * m4/asm-underscore.m4: New file.
12425         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12426         * modules/stdio (Files): Add m4/asm-underscore.m4.
12427         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12428         Reported by Ben Pfaff.
12429
12430 2010-05-16  Bruno Haible  <bruno@clisp.org>
12431
12432         verify: Avoid skipping the test on openSUSE 11.0.
12433         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12434
12435 2010-05-13  Bruno Haible  <bruno@clisp.org>
12436
12437         Avoid useless warnings from G++.
12438         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12439         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12440         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12441
12442 2010-05-11  Jim Meyering  <meyering@redhat.com>
12443
12444         maint.mk: tweak preceding change
12445         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12446         regexps tighter by anchoring at EOL, and make the new group "shy"
12447         for slightly decreased overhead.
12448
12449 2010-05-11  Eric Blake  <eblake@redhat.com>
12450
12451         maint.mk: gnulib doesn't guarantee NSIG
12452         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12453
12454 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12455
12456         test-pwrite.c: Remove unused variable declaration.
12457         * tests/test-pwrite.c (main): Remove read_buf declaration.
12458
12459         Remove useless test-pwrite.sh file.
12460         * tests/test-pwrite.sh: Delete file.
12461         * modules/pwrite-tests: Remove references.
12462         Reported by Bruno Haible.
12463
12464 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12465
12466         init.sh: fix a typo
12467         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12468
12469 2010-05-10  Jim Meyering  <meyering@redhat.com>
12470
12471         maint.mk: avoid using a temporary file in the always-defined-macros check
12472         * top/maint.mk (.re-defmac): Remove rule.
12473         (gl_trap_): Remove definition.
12474         (sc_prohibit_always-defined_macros): Rewrite not to create and
12475         depend on a temporary file.  Instead, depend on GNU grep's ability
12476         to read a list of regular expressions from stdin when given "-f -".
12477
12478 2010-05-09  Bruno Haible  <bruno@clisp.org>
12479
12480         Update to GNU gettext 0.18, part 1.
12481         * m4/gettext.m4: Update to GNU gettext 0.18.
12482         * m4/intl.m4: Likewise.
12483         * m4/po.m4: Likewise.
12484         * modules/gettext (Files): Add m4/fcntl-o.m4.
12485         (configure.ac): Require gettext infrastructure from version 0.18.
12486
12487 2010-05-09  Jim Meyering  <meyering@redhat.com>
12488
12489         init.sh: enable MALLOC_PERTURB_
12490         * tests/init.sh: Enable glibc's malloc-perturbing option.
12491
12492         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12493         With my recent change in init.sh from the two-line form:
12494             -#   : ${srcdir=.}
12495             -#   . "$srcdir/init.sh"; path_prepend_ .
12496             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12497         I noticed that using the one-line form would cause this test
12498         to fail with a false-positive, or to stop working altogether,
12499         depending on whether help-version changed or all the tests did.
12500         * top/maint.mk (_hv_regex): Remove this definition.
12501         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12502         (_hv_regex_strong): Use a stronger regex to check for conformance.
12503         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12504         Give a separate diagnostic for lack of conforming use.
12505
12506         maint.mk: prohibit definition of symbols defined by gnulib
12507         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12508         definition of symbols defined by gnulib.
12509
12510 2010-05-09  Bruno Haible  <bruno@clisp.org>
12511
12512         acl: Avoid test failure on Cygwin-hosted mingw.
12513         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12514
12515 2010-05-09  Bruno Haible  <bruno@clisp.org>
12516
12517         error: Use system's fcntl function.
12518         * lib/error.c (fcntl): Undefine.
12519
12520 2010-05-09  Jim Meyering  <meyering@redhat.com>
12521
12522         verify: adjust formatting to be more consistent
12523         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12524         argument-list '('s, and after one comma.
12525
12526 2010-05-09  Bruno Haible  <bruno@clisp.org>
12527
12528         error: More reliable output on mingw.
12529         * lib/error.c: Include <windows.h>.
12530         (is_open): New function.
12531         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12532         defined.
12533
12534 2010-05-09  Bruno Haible  <bruno@clisp.org>
12535
12536         vasnprintf: Fix syntax errors in libintl build on mingw.
12537         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12538         pad_ourselves and prec_ourselves after use.
12539
12540 2010-05-08  Bruno Haible  <bruno@clisp.org>
12541
12542         * lib/config.charset: Update comments for Cygwin 1.7.
12543         * lib/localcharset.c: Likewise.
12544
12545 2010-05-07  Jim Meyering  <meyering@redhat.com>
12546
12547         init.sh: improve comments
12548         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12549         . "${srcdir=.}/init.sh"; path_prepend_ .
12550         Add a note about path_prepend_ and the alternative of using
12551         TESTS_ENVIRONMENT.
12552
12553 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12554
12555         exclude: Unescape hashed patterns in wildcard mode.
12556         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12557         to the hash list.
12558         * tests/test-exclude8.sh: New test case.
12559         * modules/exclude-tests: Add new test.
12560
12561 2010-05-05  Eric Blake  <eblake@redhat.com>
12562
12563         verify: automate tests
12564         * modules/verify-tests: New module.
12565         * tests/test-verify.sh: New file.
12566         * tests/test-verify.c: Guard each negative test with a unique id.
12567         Also avoid warning about unused left hand of comma expressions.
12568
12569 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12570
12571         Further improvements to verify.h, suggested by Eric Blake.
12572         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12573         the GL_* versions, to avoid collision with OpenGL.
12574         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12575         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12576         than testing merely whether it's defined.
12577
12578         Modify verify.h to pacify gcc -Wredundant_decls.
12579         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12580         These use the prefix "GL_" since they're likely to be useful elsewhere.
12581         We may need to break them out into a different .h file.
12582         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12583         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12584         of verify_function__.
12585
12586 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12587
12588         Tests for module pwrite.
12589         * modules/pwrite-tests: New file.
12590         * tests/test-pwrite.sh: New file.
12591         * tests/test-pwrite.c: New file.
12592
12593         New module pwrite.
12594         * lib/unistd.in.h (pwrite): New declaration.
12595         * lib/pwrite.c: New file, from glibc with modifications.
12596         * m4/pwrite.m4: New file.
12597         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12598         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12599         REPLACE_PWRITE.
12600         * modules/pwrite: New file.
12601         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12602         REPLACE_PWRITE.
12603         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12604         * doc/posix-functions/pwrite.texi: Mention the new module.
12605
12606 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12607
12608         pread: Update documentation.
12609         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12610
12611 2010-05-04  Eric Blake  <eblake@redhat.com>
12612
12613         docs: update cygwin progress
12614         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12615         this bug.
12616         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12617         Added in cygwin 1.7.2.
12618         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12619         Likewise.
12620         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12621         Likewise.
12622         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12623         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12624         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12625         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12626         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12627         Mention nproc module.
12628         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12629         bug in cygwin 1.7.5 addition.
12630         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12631         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12632         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12633         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12634         1.7.5.
12635         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12636         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12637         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12638         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12639         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12640         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12641         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12642         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12643         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12644         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12645         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12646         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12647         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12648         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12649         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12650         Likewise.
12651         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12652         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12653         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12654         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12655         Likewise.
12656         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12657         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12658         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12659         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12660         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12661         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12662         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12663         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12664         Likewise.
12665         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12666         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12667         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12668         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12669         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12670         Likewise.
12671         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12672         Likewise.
12673         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12674         Likewise.
12675         * doc/glibc-functions/xdrrec_endofrecord.texi
12676         (xdrrec_endofrecord): Likewise.
12677         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12678         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12679         Likewise.
12680         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12681         Likewise.
12682
12683 2010-05-04  Jim Meyering  <meyering@redhat.com>
12684
12685         gendocs.sh: make its "-s FILE" option more useful
12686         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12687         $PACKAGE to reflect the probably-different basename of "FILE".
12688
12689 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12690
12691         bootstrap: don't ignore download_po_files failure
12692         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12693         failure.
12694
12695 2010-05-03  Jim Meyering  <meyering@redhat.com>
12696
12697         maint.mk: allow to pass options to gendocs.sh
12698         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12699         (gendocs_options_): New overridable variable.
12700
12701         gnu-web-doc-update: don't ignore configure or build failure
12702         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12703
12704         announce-gen: backslash-escape '@'s in --help output
12705         * build-aux/announce-gen: Fix syntax errors.
12706
12707         maint.mk, announce-gen: allow project-specific announcement mail headers
12708         * top/maint.mk (translation_project_): Define default.
12709         (announcement_Cc_, announcement_mail_headers_): Likewise.
12710         (announcement): Invoke announce-gen with new --mail-headers option.
12711         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12712
12713         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12714         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12715         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12716         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12717         line in the "err2" output file when running "make check" in verbose
12718         mode (i.e., with set -x enabled).
12719
12720 2010-05-03  Bruno Haible  <bruno@clisp.org>
12721
12722         wctob: Fix for weird platforms.
12723         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12724         argument value.
12725
12726 2010-05-03  Jim Meyering  <meyering@redhat.com>
12727
12728         maint.mk: prohibit unwarranted use of <strings.h>
12729         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12730         strings.h in a file that does not also use strcasecmp, strncasecmp,
12731         ffs or ffsll.
12732
12733         maint.mk: remove obsolete comments
12734         * top/maint.mk: Remove stale, commented-out rules.
12735
12736 2010-05-02  Bruno Haible  <bruno@clisp.org>
12737
12738         wcwidth: Declare also when it's aliased.
12739         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12740         macro.
12741
12742 2010-05-02  Bruno Haible  <bruno@clisp.org>
12743
12744         Fix regression from 2010-04-25.
12745         * gnulib-tool (func_modules_transitive_closure): Check the status of
12746         all modules, not only of the tests that are of the form foo-tests where
12747         foo is a module.
12748
12749 2010-05-02  Bruno Haible  <bruno@clisp.org>
12750
12751         wctob: Work around nasty Cygwin 1.7.2 bug.
12752         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12753         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12754
12755 2010-05-01  Bruno Haible  <bruno@clisp.org>
12756
12757         fpurge: Sharper test.
12758         * tests/test-fpurge.c (main): Add one more ftell check.
12759         * modules/fpurge-tests (Depends-on): Add ftell.
12760         Suggested by Eric Blake.
12761
12762 2010-05-01  Bruno Haible  <bruno@clisp.org>
12763
12764         ftello: Another test.
12765         * tests/test-ftello3.c: New file.
12766         * modules/ftello-tests (Files): Add it.
12767         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12768         MOSTLYCLEANFILES.
12769
12770         ftell: Another test.
12771         * tests/test-ftell3.c: New file.
12772         * modules/ftell-tests (Files): Add it.
12773         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12774         MOSTLYCLEANFILES.
12775
12776 2010-05-01  Bruno Haible  <bruno@clisp.org>
12777
12778         ftell, ftello: Work around Solaris bug.
12779         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12780         * lib/ftello.c: Include stdio-impl.h.
12781         (ftello): On Solaris, when _IOWRT is set, compute the result without
12782         looking at _IOREAD.
12783         * modules/ftello (Files): Add lib/stdio-impl.h.
12784         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12785         * doc/posix-functions/ftello.texi: Likewise.
12786         Reported by Eric Blake.
12787
12788 2010-05-01  Bruno Haible  <bruno@clisp.org>
12789
12790         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12791         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12792         the _IOWRT flag is also set.
12793
12794 2010-05-01  Bruno Haible  <bruno@clisp.org>
12795
12796         Fix doc about a HP-UX stdio bug.
12797         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12798         * doc/posix-functions/ftello.texi: Likewise.
12799
12800 2010-05-01  Bruno Haible  <bruno@clisp.org>
12801
12802         lseek test: Fix failure on Solaris.
12803         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12804         output.
12805
12806 2010-04-30  Jim Meyering  <meyering@redhat.com>
12807
12808         bootstrap: don't ignore failure to generate po*/Makevars
12809         * build-aux/bootstrap (with_gettext): Don't ignore failure
12810         to create po/Makevars or runtime-po/Makevars.
12811
12812 2010-04-29  Eric Blake  <eblake@redhat.com>
12813
12814         headers: relax license to LGPLv2+
12815         * modules/fcntl-h (License): Relax license.
12816         * modules/getopt-posix (License): Likewise.
12817         * modules/locale (License): Likewise.
12818         * modules/math (License): Likewise.
12819         * modules/pty (License): Likewise.
12820         * modules/sched (License): Likewise.
12821         * modules/search (License): Likewise.
12822         * modules/spawn (License): Likewise.
12823         * modules/stdarg (License): Likewise.
12824         * modules/sysexits (License): Likewise.
12825
12826 2010-04-29  Jim Meyering  <meyering@redhat.com>
12827
12828         inttypes: relax license to LGPLv2+
12829         * modules/inttypes (License): Relax license.
12830
12831 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12832
12833         * top/maint.mk (indent): Run twice to produce idempotent results.
12834
12835 2010-04-28  Bruno Haible  <bruno@clisp.org>
12836
12837         getdate: Generate getdate.c in the source directory.
12838         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12839         MOSTLYCLEANFILES.
12840         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12841
12842 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12843
12844         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12845         is not declared as a const *; avoid warnings in that case.
12846
12847 2010-04-28  Eric Blake  <eblake@redhat.com>
12848
12849         canonicalize-lgpl: avoid compiler warning
12850         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12851         declaration' / 'extraneous semicolon' warning with some compilers.
12852         Reported by Andreas Gruenbacher.
12853
12854 2010-04-28  Jim Meyering  <meyering@redhat.com>
12855
12856         init.sh: ensure a more reliable exit status when exiting via trap
12857         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12858         Inspired by patches from Dmitry V. Levin.
12859         Also trap on signal 3 (SIGQUIT).
12860
12861 2010-04-27  Bruno Haible  <bruno@clisp.org>
12862
12863         Update doc about utimes().
12864         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12865         'utimens' module.
12866         Reported by Andreas Gruenbacher <agruen@suse.de>.
12867
12868 2010-04-27  Eric Blake  <eblake@redhat.com>
12869
12870         full-read, full-write: relax license
12871         * modules/full-read (License): Drop to LGPLv2+.
12872         * modules/full-write (License): Likewise.
12873         * modules/safe-read (License): Likewise.
12874         * modules/safe-write (License): Likewise.
12875
12876         pthread: mention library for linking
12877         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12878
12879 2010-04-27  Jim Meyering  <meyering@redhat.com>
12880
12881         maint.mk: fix a bug introduced in last change
12882         * top/maint.mk (gl_assured_headers_): Now that all names are on
12883         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12884         is not anchored to end of word, it should be adequate.
12885
12886         maint.mk: avoid side-effect in latest syntax-check
12887         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12888         to run commands via $(shell...), and hence to incur cost only when
12889         the new rule is actually run.
12890
12891         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12892         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12893         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12894         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12895         (gl_assured_headers_, az_, AZ_): Define.
12896         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12897
12898 2010-04-26  Jim Meyering  <jim@meyering.net>
12899             Bruno Haible  <bruno@clisp.org>
12900
12901         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12902         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12903         Prompted by an exchange with Gilles Espinasse.
12904
12905 2010-04-26  Jim Meyering  <meyering@redhat.com>
12906
12907         git-version-gen: aesthetic tweak
12908         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12909         so that the command remains on a single line.
12910
12911 2010-04-26  Eric Blake  <eblake@redhat.com>
12912
12913         git-version-gen: allow use on EBCDIC hosts
12914         * build-aux/git-version-gen (dirty): Use literal rather than tying
12915         ourselves to ascii.
12916         Reported by Steve Goetze.
12917
12918 2010-04-25  Bruno Haible  <bruno@clisp.org>
12919
12920         netdb: Add support for GNULIB_POSIXCHECK.
12921         * lib/netdb.in.h: Include warn-on-use.h.
12922         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12923         functions are used when GNULIB_POSIXCHECK is defined and the
12924         getaddrinfo module is not in use.
12925         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12926         freeaddrinfo, gai_strerror, getnameinfo are declared.
12927         * modules/netdb (Depends-on): Add warn-on-use.
12928         (Makefile.am): Include warn-on-use.h in netdb.h.
12929
12930 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12931
12932         build: avoid "make check" failure without .git/ directory
12933         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12934         there is no .git/ directory.
12935
12936 2010-04-25  Bruno Haible  <bruno@clisp.org>
12937
12938         ptsname: Fix misuse of ttyname_r.
12939         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12940         of errno.
12941
12942 2010-04-25  Bruno Haible  <bruno@clisp.org>
12943
12944         ttyname_r: Make it work on Solaris 10.
12945         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12946         if the system function has the POSIX declaration. Test whether the
12947         function fails if the buffer is less than 128 bytes large.
12948         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12949         system's ttyname_r function. Provide a reasonably large buffer.
12950         * modules/ttyname_r (Depends-on): Add extensions.
12951         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12952
12953 2010-04-25  Bruno Haible  <bruno@clisp.org>
12954
12955         Use the 'extensions' module for some more functions on Solaris.
12956         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12957         module.
12958         * doc/posix-functions/ctime_r.texi: Likewise.
12959         * doc/posix-functions/getgrgid_r.texi: Likewise.
12960         * doc/posix-functions/getgrnam_r.texi: Likewise.
12961         * doc/posix-functions/getpwnam_r.texi: Likewise.
12962         * doc/posix-functions/getpwuid_r.texi: Likewise.
12963         * doc/posix-functions/readdir_r.texi: Likewise.
12964         * doc/posix-functions/sigwait.texi: Likewise.
12965         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12966         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12967
12968 2010-04-25  Bruno Haible  <bruno@clisp.org>
12969
12970         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12971         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12972         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12973         * lib/ttyname_r.c: Include <limits.h>.
12974         (ttyname_r): Define using the system's ttyname_r function, if it exists
12975         and not on Solaris.
12976         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12977         set.
12978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12979         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12980         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12981         Reported by Simon Josefsson.
12982
12983 2010-04-25  Bruno Haible  <bruno@clisp.org>
12984
12985         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12986         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12987         * doc/posix-functions/ctime_r.texi: Likewise.
12988         * doc/posix-functions/getgrgid_r.texi: Likewise.
12989         * doc/posix-functions/getgrnam_r.texi: Likewise.
12990         * doc/posix-functions/getlogin_r.texi: Likewise.
12991         * doc/posix-functions/getpwnam_r.texi: Likewise.
12992         * doc/posix-functions/getpwuid_r.texi: Likewise.
12993         * doc/posix-functions/readdir_r.texi: Likewise.
12994         * doc/posix-functions/sigwait.texi: Likewise.
12995         * doc/posix-functions/ttyname_r.texi: Likewise.
12996         Reported by Simon Josefsson.
12997
12998 2010-04-25  Bruno Haible  <bruno@clisp.org>
12999
13000         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13001         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13002         also to --create-testdir.
13003         (func_acceptable): Don't consider the status of *-tests modules here.
13004         (func_modules_transitive_closure): Consider it here, before including a
13005         test module.
13006         (func_import, func_create_testdir): Set inc_all_direct_tests,
13007         inc_all_indirect_tests.
13008         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13009         --create-testdir and --create-megatestdir.
13010
13011 2010-04-25  Bruno Haible  <bruno@clisp.org>
13012
13013         gnulib-tool: Add --without-*-tests options.
13014         * gnulib-tool (func_usage): Document the --without-*-tests options.
13015         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13016         excl_unportable_tests): New variables.
13017         Fail if they are specified with --import or --update.
13018         (func_acceptable): Respect the excl_*_tests variables.
13019         (func_import): Set the excl_*_tests variables to empty.
13020
13021 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13022             Bruno Haible  <bruno@clisp.org>
13023
13024         Work around a MacOS X 10.4 bug with openpty.
13025         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13026         * tests/test-openpty.c (main): Close the master side explicitly.
13027
13028 2010-04-25  Bruno Haible  <bruno@clisp.org>
13029
13030         strnlen: Fix a C++ test error on MacOS X and Solaris.
13031         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13032         the function is not declared.
13033         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13034         Simon Josefsson.
13035
13036 2010-04-24  Bruno Haible  <bruno@clisp.org>
13037
13038         Avoid a gcc warning.
13039         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13040         of correct type for %08lx directive.
13041         Reported by Eric Blake.
13042
13043 2010-04-24  Bruno Haible  <bruno@clisp.org>
13044
13045         vasnprintf: Correct errno value in case of out-of-memory.
13046         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13047         or sprintf. Use the errno value from SNPRINTF or sprintf.
13048         Reported by Ian Beckwith <ianb@erislabs.net>.
13049
13050 2010-04-24  Bruno Haible  <bruno@clisp.org>
13051
13052         ansi-c++-opt: Find correct compiler when cross-compiling.
13053         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13054         AC_CHECK_PROGS.
13055         Reported by Simon Josefsson.
13056
13057 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13058
13059         vc-list-files: Add support for subversion
13060         * build-aux/vc-list-files: Use "svn list" to generate the list of
13061         files controlled by subversion.
13062
13063 2010-04-23  Jim Meyering  <meyering@redhat.com>
13064
13065         vc-list-files tests: convert to use init.sh
13066         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13067         path_prepend_.
13068         Use Exit, not exit.
13069         Use skip_ rather than open coding it.
13070         Remove trap set-up and compare definitions.
13071         * tests/test-vc-list-files-git.sh: Likewise.
13072         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13073
13074 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13075
13076         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13077         backup files.
13078
13079 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13080
13081         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13082
13083 2010-04-20  Eric Blake  <eblake@redhat.com>
13084
13085         tests: be robust to ignored SIGPIPE
13086         * tests/test-select-in.sh: Consume all output.
13087         * tests/test-lseek.sh: Check correct exit status, while avoiding
13088         EPIPE.
13089
13090 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13091             Bruno Haible  <bruno@clisp.org>
13092
13093         visibility: Don't use -fvisibility if it leads to a warning.
13094         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13095         yes, don't pretend that visibility works if it leads to a warning.
13096         Reported by Mike Gran <spk121@yahoo.com>.
13097
13098 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13099
13100         * build-aux/bootstrap: Use "git -h" for testing for supported options
13101         instead of "git --help".  The short-form option only shows a summary,
13102         and doesn't layout the full man page.  Grep for the full option name
13103         in the summary, too.
13104
13105 2010-04-19  Bruno Haible  <bruno@clisp.org>
13106
13107         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13108         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13109         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13110         mention of RELOCATABLE_STRIP.
13111         Reported by Sylvain Beucler <beuc@beuc.net>.
13112
13113 2010-04-19  Bruno Haible  <bruno@clisp.org>
13114
13115         * lib/diffseq.h: Fix typo in comment.
13116         Reported by Eric Blake.
13117
13118 2010-04-19  Bruno Haible  <bruno@clisp.org>
13119
13120         ioctl: Move autoconf macro to a .m4 file.
13121         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13122         * modules/ioctl (Files): Add it.
13123         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13124         Reported by Ian Beckwith <ianb@erislabs.net>.
13125
13126 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13127             Bruno Haible  <bruno@clisp.org>
13128
13129         diffseq: Accommodate use-case with abstract arrays.
13130         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13131         is not defined.
13132         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13133         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13134
13135 2010-04-18  Bruno Haible  <bruno@clisp.org>
13136
13137         * doc/posix-headers/stdbool.texi: More precise wording.
13138
13139 2010-04-17  Jim Meyering  <meyering@redhat.com>
13140
13141         maint.mk: use gnu-style indentation in an embedded perl script
13142         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13143         Rename variable: s/two/last_two_bytes/
13144
13145 2010-04-16  Eric Blake  <eblake@redhat.com>
13146
13147         test-stdbool: skip test that fails with Solaris CC
13148         * tests/test-stdbool.c (f): Skip test that causes compilation
13149         error under buggy C++ compiler.
13150         * lib/stdbool.in.h: Document the limitation.
13151         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13152
13153         setenv: allow compilation with C++
13154         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13155         register keyword.
13156
13157         stdint: allow test to pass with C++
13158         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13159
13160         getopt: allow compilation with C++
13161         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13162         struct.
13163         * lib/getopt.c (_getopt_internal_r): Use correct type.
13164         Reported by Dagobert Michelson, via Joel E. Denny.
13165
13166 2010-04-16  Bruno Haible  <bruno@clisp.org>
13167
13168         Override netdb.h always.
13169         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13170         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13171         Reported by Ludovic Courtès <ludo@gnu.org>.
13172
13173 2010-04-15  Bruno Haible  <bruno@clisp.org>
13174
13175         openpty: Fix mistake from 2010-03-21.
13176         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13177         Reported by Simon Josefsson.
13178
13179 2010-04-15  Eric Blake  <eblake@redhat.com>
13180
13181         test-forkpty: fix expected signature
13182         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13183         Reported by Simon Josefsson.
13184
13185 2010-04-15  Jim Meyering  <meyering@redhat.com>
13186
13187         maint.mk: texinfo_suffix_re_: correct the default regexp
13188         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13189
13190         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13191         make it configurable via texinfo_suffix_re_.
13192
13193 2010-04-14  Eric Blake  <eblake@redhat.com>
13194
13195         strtok_r: relax license to LGPLv2+
13196         * modules/strtok_r (License): Relax license.
13197         Reported by Matthias Bolte.
13198
13199 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13200
13201         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13202         version 1.4.4 by default instead of requiring the libgcrypt
13203         version used during build.  This makes it possible to use the
13204         application with older but still binary compatible libgcrypt
13205         versions.
13206
13207 2010-04-13  Eric Blake  <eblake@redhat.com>
13208
13209         getopt-gnu: match recent glibc fixes and posix ruling
13210         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13211         '+' handling, when requesting extensions.
13212         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13213         'W;' handling.
13214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13215         * doc/posix-functions/getopt.texi (getopt): Document this.
13216         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13217         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13218         Likewise.
13219
13220         getopt: merge bug fixes from glibc
13221         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13222         diagnostics.  Honor '+:' correctly.  Reject ';'.
13223
13224         getopt-posix: detect MacOS bug
13225         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13226         optind when missing a required argument.
13227         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13228         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13229         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13230         Likewise.
13231
13232         getopt-posix: avoid spurious failure on Solaris
13233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13234         an indicator that setting optind=1 is sufficient for reset.
13235
13236         getopt-posix: avoid spurious failure on FreeBSD
13237         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13238         in POSIX mode, since the m4 test uses it.
13239
13240         gnulib-tool: silence warning on BSD sh
13241         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13242
13243 2010-04-13  Jim Meyering  <meyering@redhat.com>
13244
13245         doc: users.txt: GNU patch now uses gnulib
13246         * users.txt: Add patch.
13247
13248 2010-04-12  Jim Meyering  <meyering@redhat.com>
13249
13250         maint.mk: generate more concise timing data for syntax-check rules
13251         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13252         " done" from each line that reports a syntax-check test duration.
13253
13254 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13255
13256         git-version-gen: use "git update-index..." rather than "git status"
13257         * build-aux/git-version-gen: Use git update-index --refresh, not
13258         "git status".  With some versions of git, "git status" would fail
13259         to update the index and result in an unwarranted "-dirty" suffix.
13260
13261 2010-04-11  Jim Meyering  <meyering@redhat.com>
13262
13263         openat: correct formatting (no semantic change)
13264         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13265         Suggested by Bruno Haible.
13266
13267 2010-04-11  Bruno Haible  <bruno@clisp.org>
13268
13269         Stricter declaration checking in testdirs.
13270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13271         If for_tests is true, augment AM_CPPFLAGS to define
13272         GNULIB_STRICT_CHECKING.
13273         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13274         GNULIB_STRICT_CHECKING is defined, verify that the function is
13275         declared.
13276
13277 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13278             Bruno Haible  <bruno@clisp.org>
13279
13280         libunistring: Improve configure output.
13281         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13282         Don't say "consider installing GNU libunistring" when checking again
13283         with libiconv.
13284
13285 2010-04-11  Bruno Haible  <bruno@clisp.org>
13286
13287         libunistring: Correct value of $LTLIBUNISTRING.
13288         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13289         correct the value of $LTLIBUNISTRING.
13290
13291 2010-04-11  Bruno Haible  <bruno@clisp.org>
13292
13293         havelib: Add static libraries to LIBS in the right order.
13294         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13295         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13296
13297 2010-04-11  Bruno Haible  <bruno@clisp.org>
13298
13299         libunistring: Detect libunistring also when it depends on libiconv.
13300         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13301         the second AC_LIB_HAVE_LINKFLAGS invocation.
13302
13303 2010-04-11  James Youngman  <jay@gnu.org>
13304
13305         close-stream: declare local scalars to be "const"
13306         * lib/close-stream.c (close_stream): Make boolean variables const
13307         to document the fact that we set but do not change them.
13308
13309 2010-04-11  Bruno Haible  <bruno@clisp.org>
13310
13311         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13312
13313 2010-04-11  Jim Meyering  <meyering@redhat.com>
13314
13315         maint.mk: don't include dist-check.mk
13316         * top/maint.mk: Remove bogus include directive.
13317
13318         maint.mk: improve empty-line-at-EOF check
13319         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13320         solution, rather than tail+Perl-based one.  The latter would read
13321         a few kilobytes from the end of each file, and did not handle empty
13322         files properly.
13323
13324         maint.mk: print the elapsed time for each syntax-check rule
13325         * top/maint.mk (sc_m_rules_): Save start time in a file.
13326         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13327         (local-check): Interpose the .z rules
13328
13329 2010-04-11  Jim Meyering  <meyering@redhat.com>
13330
13331         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13332         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13333         empty file with one that ends in an empty line.
13334
13335 2010-04-10  Bruno Haible  <bruno@clisp.org>
13336
13337         mkdir: Make it work on mingw64.
13338         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13339         * lib/mkdir.c: Update comment.
13340         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13341
13342 2010-04-10  Bruno Haible  <bruno@clisp.org>
13343
13344         Don't override improved macro from newer autoconf.
13345         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13346         autoconf >= 2.62.
13347         Reported by Joel E. Denny <jdenny@clemson.edu>.
13348
13349 2010-04-10  Jim Meyering  <meyering@redhat.com>
13350
13351         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13352         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13353
13354         maint.mk: correct a diagnostic
13355         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13356         in diagnostic; now use $prohibit.
13357
13358 2010-04-10  Bruno Haible  <address@hidden>
13359
13360         fchownat: Fix a C++ test error on Solaris 8.
13361         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13362         the function does not exist.
13363
13364 2010-04-10  Bruno Haible  <bruno@clisp.org>
13365
13366         vasnprintf: Add more tests.
13367         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13368         (test_function): Test converting an invalid wide string.
13369
13370         vasnprintf: Correct handling of unconvertible wide string arguments.
13371         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13372         VASNPRINTF.
13373         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13374         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13375         smaller than the expected maximum need for the directive. Set errno to
13376         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13377         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13379         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13380         * modules/vasnprintf (Files): Add m4/printf.m4.
13381         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13382
13383 2010-04-10  Bruno Haible  <bruno@clisp.org>
13384
13385         vasnprintf: Fix crash in %ls directive.
13386         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13387         string is passed as argument to %ls, with no precision and no width.
13388         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13389
13390 2010-04-10  Bruno Haible  <bruno@clisp.org>
13391
13392         vasnprintf: Fix multiple test failures on mingw.
13393         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13394         _snprintf, or snwprintf, not _snwprintf.
13395
13396 2010-04-10  Bruno Haible  <bruno@clisp.org>
13397
13398         write: Fix a C++ test error on mingw.
13399         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13400
13401 2010-04-10  Bruno Haible  <bruno@clisp.org>
13402
13403         vasnprintf test: Reduce code duplication.
13404         * tests/test-vasnprintf.c (test_function): New function, extracted from
13405         test_vasnprintf.
13406         (test_vasnprintf, test_asnprintf): Invoke it.
13407
13408 2010-04-10  Bruno Haible  <bruno@clisp.org>
13409
13410         strnlen: Fix warning in C++ mode on MacOS X.
13411         * lib/string.in.h (strnlen): Use the modern idiom.
13412         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13413         defining strnlen as a macro already in <config.h>.
13414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13415         REPLACE_STRNLEN.
13416         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13417         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13418
13419 2010-04-08  James Youngman  <jay@gnu.org>
13420
13421         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13422         the example.
13423
13424 2010-04-09  Jim Meyering  <meyering@redhat.com>
13425
13426         maint.mk: print better diagnostic when there is no $(_hv_file)
13427         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13428         announce that when $(_hv_file) (aka help-version) does not exist.
13429
13430         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13431         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13432         not try to interpret its random input bytes.  Jarno Rajahalme reported
13433         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13434         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13435         (mktempd_): Likewise, just in case.
13436
13437         ftruncate: add two years to projected module removal date: 2012
13438         * m4/ftruncate.m4: Adjust comments.
13439
13440         ftruncate: mark module as obsolete; even MinGW provides it, now
13441         * modules/ftruncate (Status): Obsolete.
13442         (Notice): Say that.
13443         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13445
13446 2010-04-08  Bruno Haible  <bruno@clisp.org>
13447
13448         Fix side effects from tests-related modules.
13449         * modules/dprintf-posix (Comment): New section.
13450         * modules/fprintf-posix (Comment): Likewise.
13451         * modules/obstack-printf-posix (Comment): Likewise.
13452         * modules/printf-posix (Comment): Likewise.
13453         * modules/snprintf-posix (Comment): Likewise.
13454         * modules/sprintf-posix (Comment): Likewise.
13455         * modules/vasnprintf-posix (Comment): Likewise.
13456         * modules/vasprintf-posix (Comment): Likewise.
13457         * modules/vdprintf-posix (Comment): Likewise.
13458         * modules/vfprintf-posix (Comment): Likewise.
13459         * modules/vprintf-posix (Comment): Likewise.
13460         * modules/vsnprintf-posix (Comment): Likewise.
13461         * modules/vsprintf-posix (Comment): Likewise.
13462         * modules/xprintf-posix (Comment): Likewise.
13463         * modules/xvasprintf-posix (Comment): Likewise.
13464         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13465         * modules/floorf-tests (Depends-on): Likewise.
13466         * modules/round-tests (Depends-on): Likewise.
13467         * modules/roundf-tests (Depends-on): Likewise.
13468         * modules/trunc-tests (Depends-on): Likewise.
13469         * modules/truncf-tests (Depends-on): Likewise.
13470         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13471         'fprintf-posix' module is not present.
13472         * tests/test-floorf2.c (check): Likewise.
13473         * tests/test-trunc2.c (check): Likewise.
13474         * tests/test-truncf2.c (check): Likewise.
13475         * tests/test-round2.c (equal): Likewise.
13476         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13477
13478 2010-04-07  Karl Berry  <karl@gnu.org>
13479
13480         * config/srclist.txt,
13481         * config/srclistvars.sh,
13482         * config/srclist-update: doc fixes.
13483
13484 2010-04-07  Jim Meyering  <meyering@redhat.com>
13485
13486         maint.mk: add a PATH crosschecking syntax-check rule
13487         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13488         Useful if you use a test like the one in help-version (coreutils,
13489         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13490         printed by prog --version.
13491
13492 2010-04-06  Bruno Haible  <bruno@clisp.org>
13493
13494         Fix link error on mingw.
13495         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13496         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13497
13498 2010-04-06  Bruno Haible  <bruno@clisp.org>
13499
13500         Assume rmdir exists.
13501         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13502
13503 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13504
13505         doc: update users.txt
13506         * users.txt: Add gcal.
13507
13508 2010-04-06  Jim Meyering  <meyering@redhat.com>
13509
13510         init.sh: simply unset TMPDIR rather than risking env -i
13511         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13512         although it probably works fine on all Unix-based systems, some
13513         systems (Cygwin?) cannot tolerate a totally cleared environment.
13514         Suggestion from Eric Blake.
13515
13516 2010-04-06  Jim Meyering  <meyering@redhat.com>
13517
13518         init.sh: portability fix: use env's POSIX-specified -i option not -u
13519         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13520         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13521
13522 2010-04-05  Bruno Haible  <bruno@clisp.org>
13523
13524         btowc: Work around Cygwin 1.7.2 bug.
13525         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13526         does not map NUL to 0.
13527         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13528
13529 2010-04-05  Bruno Haible  <bruno@clisp.org>
13530
13531         Make the multithread modules work on Cygwin 1.7.2.
13532         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13533         imported symbols can be declared weak, so that it returns "no" on
13534         Cygwin 1.7.2.
13535
13536 2010-04-05  Bruno Haible  <bruno@clisp.org>
13537
13538         Use the module 'strncat'.
13539         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13540
13541         Tests for module 'strncat'.
13542         * modules/strncat-tests: New file.
13543         * tests/test-strncat.c: New file.
13544
13545         New module 'strncat'.
13546         * lib/string.in.h (strncat): New declaration.
13547         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13548         * m4/strncat.m4: New file, based on m4/memchr.m4.
13549         * modules/strncat: New file.
13550         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13551         is declared.
13552         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13553         REPLACE_STRNCAT.
13554         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13555         REPLACE_STRNCAT.
13556         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13557         module.
13558         * tests/test-string-c++.cc: Check signature of strncat.
13559
13560 2010-04-05  Jim Meyering  <meyering@redhat.com>
13561
13562         xstrtoumax-tests: convert to use init.sh
13563         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13564         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13565         Use Exit, not exit.
13566         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13567
13568         xstrtoimax-tests: convert to use init.sh
13569         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13570         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13571         Use Exit, not exit.
13572         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13573
13574 2010-04-05  Bruno Haible  <bruno@clisp.org>
13575
13576         sys_socket: Avoid #define replacements in C++ mode.
13577         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13578         warning to the function if possible, rather than #defining the symbol
13579         to a dysfunctional alias.
13580
13581 2010-04-05  Bruno Haible  <bruno@clisp.org>
13582
13583         fseeko: Fix C++ test error on mingw.
13584         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13585         gl_FUNC_FSEEKO.
13586         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13587         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13588         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13589         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13590
13591 2010-04-05  Bruno Haible  <bruno@clisp.org>
13592
13593         duplocale: Improve test output.
13594         * tests/test-duplocale.c (main): Print reason for skipped test.
13595
13596 2010-04-05  Bruno Haible  <bruno@clisp.org>
13597
13598         Assume rmdir exists.
13599         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13600         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13601
13602 2010-04-05  Bruno Haible  <bruno@clisp.org>
13603
13604         Fix link error on Solaris 8 with cc.
13605         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13606
13607 2010-04-05  Bruno Haible  <bruno@clisp.org>
13608
13609         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13610         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13611
13612 2010-04-05  Bruno Haible  <bruno@clisp.org>
13613
13614         vasprintf: Update documentation.
13615         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13616
13617 2010-04-05  Bruno Haible  <bruno@clisp.org>
13618
13619         ptsname: Improve test.
13620         * tests/test-ptsname.c (main): Also try the various master names of BSD
13621         systems.
13622
13623 2010-04-05  Bruno Haible  <bruno@clisp.org>
13624
13625         memchr: Avoid a possible C++ test error.
13626         * lib/string.in.h (memchr): Provide declaration if function is missing.
13627         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13628         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13630         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13631
13632 2010-04-05  Bruno Haible  <bruno@clisp.org>
13633
13634         strtok_r: Improve idiom.
13635         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13636         AC_LIBOBJ is used.
13637
13638 2010-04-05  Bruno Haible  <bruno@clisp.org>
13639
13640         strdup: Improve idiom.
13641         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13642         AC_LIBOBJ is used.
13643         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13644         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13645         when AC_LIBOBJ is used.
13646
13647 2010-04-05  Bruno Haible  <bruno@clisp.org>
13648
13649         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13650         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13651         don't set REPLACE_MBSINIT to 1.
13652         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13653         don't set REPLACE_MBRTOWC to 1.
13654         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13655         exist, don't set REPLACE_MBSRTOWCS to 1.
13656         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13657         exist, don't set REPLACE_MBSNRTOWCS to 1.
13658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13659         don't set REPLACE_WCRTOMB to 1.
13660         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13661         exist, don't set REPLACE_WCSRTOMBS to 1.
13662         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13663         exist, don't set REPLACE_WCSNRTOMBS to 1.
13664
13665 2010-04-05  Bruno Haible  <bruno@clisp.org>
13666
13667         ldexpl: Improve idiom.
13668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13669         make sure to set HAVE_DECL_LDEXPL to 0.
13670
13671 2010-04-05  Jim Meyering  <meyering@redhat.com>
13672
13673         xstrtol-tests: convert to use init.sh
13674         * modules/xstrtol-tests (Files): Add tests/init.sh.
13675         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13676         Use Exit, not exit.
13677         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13678
13679         atexit-tests: convert to use init.sh
13680         * modules/atexit-tests (Files): Add tests/init.sh.
13681         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13682         Use Exit, not exit.
13683         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13684
13685         init.sh: fix typo
13686         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13687
13688         init.sh: make it easier for a test script to write to the tty, ...
13689         when using automake's parallel-tests mode.
13690         * tests/init.sh (stderr_fileno_): Define overridable variable.
13691         (warn_): New function, to use it.
13692         (fail_, skip_, framework_failure_): Use warn_.
13693
13694 2010-04-04  Bruno Haible  <bruno@clisp.org>
13695
13696         btowc: Avoid warning.
13697         * lib/btowc.c: Include <stdlib.h>.
13698         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13699
13700 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13701             Bruno Haible  <bruno@clisp.org>
13702
13703         wchar: Port to NetBSD 1.5.
13704         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13705         * lib/wctype.in.h (WEOF): Likewise.
13706
13707 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13708             Bruno Haible  <bruno@clisp.org>
13709
13710         Port extended stdio to NetBSD 1.5.
13711         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13712         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13713         older.
13714
13715 2010-04-04  Bruno Haible  <bruno@clisp.org>
13716
13717         string: Remove unused substitution.
13718         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13719         HAVE_DECL_STRERROR.
13720         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13721
13722 2010-04-04  Bruno Haible  <bruno@clisp.org>
13723
13724         strtod: Avoid a possible C++ test error.
13725         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13726         set REPLACE_STRTOD.
13727
13728 2010-04-04  Bruno Haible  <bruno@clisp.org>
13729
13730         strerror: Update documentation.
13731         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13732
13733 2010-04-04  Bruno Haible  <bruno@clisp.org>
13734
13735         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13736         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13737         _GL_CXXALIAS_SYS_CAST.
13738
13739 2010-04-04  Bruno Haible  <bruno@clisp.org>
13740
13741         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13742         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13743         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13744         REPLACE_FREXPL to 1.
13745         * doc/posix-functions/frexpl.texi: Update documentation.
13746
13747 2010-04-04  Bruno Haible  <bruno@clisp.org>
13748
13749         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13750         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13751
13752 2010-04-04  Bruno Haible  <bruno@clisp.org>
13753
13754         Implement nanosleep for native Windows.
13755         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13756
13757 2010-04-04  Bruno Haible  <bruno@clisp.org>
13758
13759         math: Fix some C++ test errors on Solaris 8.
13760         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13761
13762 2010-04-04  Bruno Haible  <bruno@clisp.org>
13763
13764         math: Fix some C++ test errors on Cygwin.
13765         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13766         truncl): Provide declaration if the system does not have it.
13767         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13768         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13769         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13770         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13771         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13772         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13773         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13774         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13775         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13776         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13777         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13778         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13779         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13780         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13781         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13782         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13784         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13785         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13786         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13787         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13788         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13789
13790 2010-04-04  Bruno Haible  <bruno@clisp.org>
13791
13792         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13793         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13794         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13795         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13796         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13797         * m4/isinf.m4 (gl_ISINF): Likewise.
13798         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13799
13800 2010-04-04  Bruno Haible  <bruno@clisp.org>
13801
13802         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13803         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13804
13805 2010-04-04  Bruno Haible  <bruno@clisp.org>
13806
13807         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13808         * modules/tmpfile (configure.ac): Update.
13809
13810         tmpfile: Fix C++ test error on mingw.
13811         * lib/stdio.in.h (tmpfile): New declaration.
13812         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13813         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13814         * modules/tmpfile (Depends-on): Add stdio.
13815         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13816         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13817         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13818         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13819         REPLACE_TMPFILE.
13820         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13821
13822 2010-04-04  Bruno Haible  <bruno@clisp.org>
13823
13824         ioctl: Fix C++ test error on mingw.
13825         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13826         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13827         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13828
13829 2010-04-03  Bruno Haible  <bruno@clisp.org>
13830
13831         wcwidth: Fix C++ test error on mingw.
13832         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13834         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13835
13836 2010-04-03  Bruno Haible  <bruno@clisp.org>
13837
13838         nanosleep: Fix C++ test error on mingw.
13839         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13840         * lib/time.in.h (nanosleep): Use modern idiom.
13841         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13842         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13843         REPLACE_NANOSLEEP to 1.
13844         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13845         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13846
13847 2010-04-03  Bruno Haible  <bruno@clisp.org>
13848
13849         strptime: Fix C++ test error on mingw.
13850         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13851         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13852         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13853         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13854         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13855         not REPLACE_STRPTIME.
13856         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13857         REPLACE_STRPTIME.
13858
13859 2010-04-03  Bruno Haible  <bruno@clisp.org>
13860
13861         timegm: Fix C++ test error on mingw.
13862         * lib/time.in.h (timegm): Use modern idiom.
13863         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13864         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13865         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13866         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13867
13868 2010-04-03  Bruno Haible  <bruno@clisp.org>
13869
13870         timegm: Assume declaration if function exists.
13871         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13872         if it exists. Don't clobber ac_cv_func_timegm.
13873
13874 2010-04-03  Bruno Haible  <bruno@clisp.org>
13875
13876         time_r: Fix C++ test error on mingw.
13877         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13878         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13879         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13880         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13881         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13882
13883 2010-04-03  Bruno Haible  <bruno@clisp.org>
13884
13885         time_r: Minor updates.
13886         * modules/time_r (Description): Mention the provided functions.
13887         * lib/time_r.c: Don't include <string.h>.
13888         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13889         * doc/posix-functions/localtime_r.texi: Likewise.
13890
13891 2010-04-03  Bruno Haible  <bruno@clisp.org>
13892
13893         time: Fix regression introduced on 2010-03-08.
13894         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13895         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13896
13897 2010-04-03  Jim Meyering  <meyering@redhat.com>
13898
13899         maint.mk: don't silently disable project-specific syntax-check rules
13900         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13901         that they need to convert their project-specific syntax-check rules
13902         to use the new _sc_search_regexp.
13903
13904 2010-04-03  Bruno Haible  <bruno@clisp.org>
13905
13906         fchdir: Fix regression introduced on 2010-03-08.
13907         * lib/unistd.in.h (fchdir): Fix declaration.
13908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13910         REPLACE_FCHDIR.
13911         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13912         REPLACE_FCHDIR.
13913
13914 2010-04-03  Bruno Haible  <bruno@clisp.org>
13915
13916         getpagesize: Fix C++ test error on mingw.
13917         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13918         system does not declare the function.
13919         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13920         declared.
13921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13922         HAVE_DECL_GETPAGESIZE.
13923         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13924
13925 2010-04-03  Bruno Haible  <bruno@clisp.org>
13926
13927         stdio: Make C++ tests work on mingw.
13928         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13929         does not declare the function.
13930
13931 2010-04-03  Bruno Haible  <bruno@clisp.org>
13932
13933         ftello: Fix C++ test error on mingw.
13934         * lib/stdio.in.h (ftello): Use modern idiom.
13935         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13936         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13937         is missing and that it needs to be replaced.
13938         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13940         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13941
13942 2010-04-03  Bruno Haible  <bruno@clisp.org>
13943
13944         fseeko: Fix C++ test error on mingw.
13945         * lib/stdio.in.h (fseeko): Use modern idiom.
13946         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13948         is missing and that it needs to be replaced.
13949         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13951         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13952
13953 2010-04-03  Bruno Haible  <bruno@clisp.org>
13954
13955         mkstemp: Fix C++ test error on mingw.
13956         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13958         function is missing and that it needs to be replaced.
13959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13960         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13961
13962 2010-04-03  Bruno Haible  <bruno@clisp.org>
13963
13964         stpncpy: Fix C++ test error on mingw.
13965         * lib/string.in.h (stpncpy): Use modern idiom.
13966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13967         function is missing and that it needs to be replaced.
13968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13969         REPLACE_STPNCPY.
13970         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13971
13972 2010-04-03  Bruno Haible  <bruno@clisp.org>
13973
13974         sys_stat: Fix C++ test error on mingw.
13975         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13976         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13977
13978 2010-04-03  Bruno Haible  <bruno@clisp.org>
13979
13980         pty: Update doc.
13981         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13982
13983 2010-04-03  Bruno Haible  <bruno@clisp.org>
13984
13985         unistd: Fix C++ test error on mingw.
13986         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13987
13988 2010-04-03  Bruno Haible  <bruno@clisp.org>
13989
13990         Update doc regarding mingw.
13991         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13992         * doc/glibc-functions/login_tty.texi: Likewise.
13993         * doc/glibc-functions/forkpty.texi: Likewise.
13994
13995 2010-04-03  Bruno Haible  <bruno@clisp.org>
13996
13997         stdlib: Avoid compilation failure of c-strtold on mingw.
13998         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13999
14000 2010-04-03  Bruno Haible  <bruno@clisp.org>
14001
14002         locale: Make C++ tests work on Cygwin and mingw.
14003         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14004         cannot provide the function.
14005         Reported by Simon Josefsson.
14006
14007 2010-04-03  Bruno Haible  <bruno@clisp.org>
14008
14009         localename: Port to MacOS X 10.6.
14010         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14011         memory layout of the locales in MacOS X 10.6 as well.
14012         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14013
14014 2010-04-02  Bruno Haible  <bruno@clisp.org>
14015
14016         gnulib-tool: Ensure that long-running tests are executed last.
14017         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14018         running tests after the one for the other tests.
14019
14020 2010-04-02  Bruno Haible  <bruno@clisp.org>
14021
14022         gnulib-tool: Ensure the tests in the main directory are executed first.
14023         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14024         start with the current directory.
14025
14026 2010-04-02  Bruno Haible  <bruno@clisp.org>
14027
14028         Tests for module 'havelib', moved here from GNU gettext.
14029         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14030         modifications.
14031         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14032         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14033         with modifications.
14034         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14035         modifications.
14036         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14037         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14038         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14039         with modifications.
14040         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14041         with modifications.
14042         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14043         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14044         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14045         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14046         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14047         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14048         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14049         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14050         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14051         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14052         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14053         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14054         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14055         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14056         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14057         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14058         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14059         with modifications.
14060         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14061         with modifications.
14062         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14063         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14064         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14065         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14066         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14067         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14068         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14069         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14070         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14071         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14072         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14073         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14074         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14075         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14076         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14077         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14078         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14079         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14080         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14081         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14082         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14083         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14084         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14085         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14086         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14087         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14088         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14089         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14090         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14091         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14092         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14093         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14094         * tests/havelib/rpathx/rpathx.c: New file, from
14095         gettext/autoconf-lib-link.
14096         * tests/havelib/rpathx/Makefile.am: New file, from
14097         gettext/autoconf-lib-link.
14098         * tests/havelib/rpathx/configure.ac: New file, from
14099         gettext/autoconf-lib-link with modifications.
14100         * tests/havelib/rpathy/rpathy.c: New file, from
14101         gettext/autoconf-lib-link.
14102         * tests/havelib/rpathy/Makefile.am: New file, from
14103         gettext/autoconf-lib-link.
14104         * tests/havelib/rpathy/configure.ac: New file, from
14105         gettext/autoconf-lib-link with modifications.
14106         * tests/havelib/rpathz/rpathz.c: New file, from
14107         gettext/autoconf-lib-link.
14108         * tests/havelib/rpathz/Makefile.am: New file, from
14109         gettext/autoconf-lib-link.
14110         * tests/havelib/rpathz/configure.ac: New file, from
14111         gettext/autoconf-lib-link with modifications.
14112         * tests/havelib/rpathlx/usex.c: New file, from
14113         gettext/autoconf-lib-link.
14114         * tests/havelib/rpathlx/Makefile.am: New file, from
14115         gettext/autoconf-lib-link.
14116         * tests/havelib/rpathlx/configure.ac: New file, from
14117         gettext/autoconf-lib-link with modifications.
14118         * tests/havelib/rpathly/usey.c: New file, from
14119         gettext/autoconf-lib-link.
14120         * tests/havelib/rpathly/Makefile.am: New file, from
14121         gettext/autoconf-lib-link.
14122         * tests/havelib/rpathly/configure.ac: New file, from
14123         gettext/autoconf-lib-link with modifications.
14124         * tests/havelib/rpathlz/usez.c: New file, from
14125         gettext/autoconf-lib-link.
14126         * tests/havelib/rpathlz/Makefile.am: New file, from
14127         gettext/autoconf-lib-link.
14128         * tests/havelib/rpathlz/configure.ac: New file, from
14129         gettext/autoconf-lib-link with modifications.
14130         * tests/havelib/rpathlyx/usey.c: New file, from
14131         gettext/autoconf-lib-link.
14132         * tests/havelib/rpathlyx/Makefile.am: New file, from
14133         gettext/autoconf-lib-link.
14134         * tests/havelib/rpathlyx/configure.ac: New file, from
14135         gettext/autoconf-lib-link with modifications.
14136         * tests/havelib/rpathlzyx/usez.c: New file, from
14137         gettext/autoconf-lib-link.
14138         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14139         gettext/autoconf-lib-link.
14140         * tests/havelib/rpathlzyx/configure.ac: New file, from
14141         gettext/autoconf-lib-link with modifications.
14142         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14143         with modifications.
14144
14145 2010-04-02  Bruno Haible  <bruno@clisp.org>
14146
14147         gnulib-tool: Create distributed built sources also for the tests.
14148         * gnulib-tool (func_create_testdir): Also generate distributed built
14149         sources in the tests directory.
14150
14151 2010-04-02  Bruno Haible  <bruno@clisp.org>
14152
14153         gnulib-tool: Obey user's environment variables.
14154         * gnulib-tool (func_create_testdir): When creating built sources,
14155         respect the environment variables for autoconf, automake, etc. given by
14156         the user.
14157
14158 2010-04-02  Bruno Haible  <bruno@clisp.org>
14159
14160         gnulib-tool: Provide the value of --m4-base to modules.
14161         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14162         of gl_m4_base.
14163
14164 2010-04-02  Eric Blake  <eblake@redhat.com>
14165
14166         maint.mk: fix some fallout
14167         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14168         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14169
14170 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14171
14172         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14173         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14174         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14175         (sc_cast_of_x_alloc_return_value): Likewise.
14176         (sc_cast_of_alloca_return_value): Likewise.
14177         (sc_space_tab): Likewise.
14178         (sc_prohibit_atoi_atof): Likewise.
14179         (sc_prohibit_magic_number_exit): Likewise.
14180         (sc_error_exit_success): Likewise.
14181         (sc_file_system): Likewise.
14182         (sc_prohibit_have_config_h): Likewise.
14183         (sc_require_config_h): Likewise.
14184         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14185         (sc_obsolete_symbols): Likewise.
14186         (sc_changelog): Likewise.
14187         (sc_program_name): Likewise.
14188         (sc_the_the): Likewise.
14189         (sc_trailing_blank): Likewise.
14190         (sc_two_space_separator_in_usage): Likewise.
14191         (sc_useless_cpp_parens): Likewise.
14192         (sc_GPL_version): Likewise.
14193         (sc_GFDL_version): Likewise.
14194         (sc_texinfo_acronym): Likewise.
14195         (sc_prohibit_cvs_keyword): Likewise.
14196         (sc_prohibit_stat_st_blocks): Likewise.
14197         (sc_prohibit_S_IS_definition): Likewise.
14198         (sc_redundant_const): Likewise.
14199         (sc_makefile_TAB_only_indentation): Likewise.
14200         (sc_m4_quote_check): Likewise.
14201         (sc_makefile_path_separator_check): Likewise.
14202         (sc_copyright_check): Likewise.
14203         (sc_Wundef_boolean): Likewise.
14204         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14205
14206         maint.mk: match 0 or more whitespace-before-function-call '('
14207         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14208         that have zero or two-and-more spaces between the function name
14209         and the open parenthesis.
14210         (sc_error_message_warn_fatal): Likewise.
14211         (sc_error_message_uppercase): Likewise.
14212         (sc_error_message_period): Likewise.
14213
14214 2010-03-31  Eric Blake  <eblake@redhat.com>
14215
14216         maint.mk: check for [ as well as test
14217         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14218         Based on a libvirt report by Matthias Bolte.
14219
14220         gnumakefile: don't squelch _version output
14221         * top/GNUmakefile (_version): Create one-shot dependency rather
14222         than using $(shell) when version must be regenerated.
14223         (_autoreconf): Run verbosely, by default.
14224
14225         sys_time: avoid compiler warnings
14226         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14227         unconditional, fixing regression from 2010-03-29.
14228         Reported by Simon Josefsson.
14229
14230 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14231
14232         maint.mk: s/_header_without_use/_sc_header_without_use/
14233         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14234         (sc_prohibit_assert_without_use): Use the new name.
14235         (sc_prohibit_close_stream_without_use): Likewise.
14236         (sc_prohibit_getopt_without_use): Likewise.
14237         (sc_prohibit_quotearg_without_use): Likewise.
14238         (sc_prohibit_quote_without_use): Likewise.
14239         (sc_prohibit_long_options_without_use): Likewise.
14240         (sc_prohibit_inttostr_without_use): Likewise.
14241         (sc_prohibit_ignore_value_without_use): Likewise.
14242         (sc_prohibit_error_without_use): Likewise.
14243         (sc_prohibit_xalloc_without_use): Likewise.
14244         (sc_prohibit_hash_without_use): Likewise.
14245         (sc_prohibit_hash_pjw_without_use): Likewise.
14246         (sc_prohibit_safe_read_without_use): Likewise.
14247         (sc_prohibit_argmatch_without_use): Likewise.
14248         (sc_prohibit_canonicalize_without_use): Likewise.
14249         (sc_prohibit_root_dev_ino_without_use): Likewise.
14250         (sc_prohibit_openat_without_use): Likewise.
14251         (sc_prohibit_c_ctype_without_use): Likewise.
14252         (sc_prohibit_signal_without_use): Likewise.
14253         (sc_prohibit_intprops_without_use): Likewise.
14254
14255 2010-03-30  Eric Blake  <eblake@redhat.com>
14256
14257         maint: improve module indicators
14258         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14259         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14260         columns, and avoid extra macro expansion.
14261
14262         fdopendir: work around FreeBSD bug
14263         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14264         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14265         * modules/dirent (Makefile.am): Substitute it.
14266         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14267         declaration.
14268         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14269         fix.
14270         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14271
14272 2010-03-29  Bruno Haible  <bruno@clisp.org>
14273
14274         Emit #pragma system_header after the inclusion guard, not before.
14275         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14276         guard that spans the entire file, not before. This enables an
14277         optimization in GCC's preprocessor.
14278         * lib/ctype.in.h: Likewise.
14279         * lib/dirent.in.h: Likewise.
14280         * lib/errno.in.h: Likewise.
14281         * lib/float.in.h: Likewise.
14282         * lib/getopt.in.h: Likewise.
14283         * lib/iconv.in.h: Likewise.
14284         * lib/langinfo.in.h: Likewise.
14285         * lib/locale.in.h: Likewise.
14286         * lib/math.in.h: Likewise.
14287         * lib/netdb.in.h: Likewise.
14288         * lib/netinet_in.in.h: Likewise.
14289         * lib/pty.in.h: Likewise.
14290         * lib/sched.in.h: Likewise.
14291         * lib/se-selinux.in.h: Likewise.
14292         * lib/search.in.h: Likewise.
14293         * lib/spawn.in.h: Likewise.
14294         * lib/stdarg.in.h: Likewise.
14295         * lib/stdint.in.h: Likewise.
14296         * lib/string.in.h: Likewise.
14297         * lib/strings.in.h: Likewise.
14298         * lib/sys_file.in.h: Likewise.
14299         * lib/sys_ioctl.in.h: Likewise.
14300         * lib/sys_time.in.h: Likewise.
14301         * lib/sys_times.in.h: Likewise.
14302         * lib/sys_utsname.in.h: Likewise.
14303         * lib/sys_wait.in.h: Likewise.
14304         * lib/sysexits.in.h: Likewise.
14305         * lib/wctype.in.h: Likewise.
14306
14307 2010-03-28  James Youngman  <jay@gnu.org>
14308
14309         save-cwd: don't leak a file descriptor when the caller execs.
14310         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14311         saved file descriptor.
14312         * modules/save-cwd (Depends-on): Depend on cloexec.
14313
14314 2010-03-29  Bruno Haible  <bruno@clisp.org>
14315
14316         Remove vestiges of fts-lgpl module.
14317         * lib/fts_.h: Assume GNULIB_FTS is 1.
14318         * lib/fts.c: Likewise.
14319         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14320
14321 2010-03-28  Bruno Haible  <bruno@clisp.org>
14322
14323         Fix definition of tests witness macro.
14324         * gnulib-tool (func_import): Fix definition of witness macro.
14325
14326 2010-03-28  Bruno Haible  <bruno@clisp.org>
14327
14328         Fix ioctl's protoype on glibc systems.
14329         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14330         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14331         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14332         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14333         signature. If not, arrange to replace the ioctl function.
14334         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14335         REPLACE_IOCTL.
14336         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14337         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14338         Reported by Ludovic Courtès <ludo@gnu.org>.
14339
14340 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14341
14342         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14343         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14344         made it so grep -r --include=GLOB* ... did not work.
14345
14346 2010-03-26  Jim Meyering  <meyering@redhat.com>
14347             Eric Blake  <eblake@redhat.com>
14348
14349         maint.mk: prohibit use of test's -o and -a operators
14350         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14351
14352 2010-03-28  Bruno Haible  <bruno@clisp.org>
14353
14354         Remove unused GNULIB_XYZ macro definitions.
14355         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14356         invocation.
14357
14358 2010-03-28  Bruno Haible  <bruno@clisp.org>
14359
14360         Mark privileged tests modules.
14361         * modules/idpriv-drop-tests (Status): New section.
14362         * modules/idpriv-droptemp-tests (Status): New section.
14363
14364 2010-03-28  Bruno Haible  <bruno@clisp.org>
14365
14366         Split C++ tests into separate tests modules.
14367         * modules/dirent-c++-tests: New file, extracted from
14368         modules/dirent-tests.
14369         * modules/dirent-tests: Depend on it.
14370         * modules/fcntl-h-c++-tests: New file, extracted from
14371         modules/fcntl-h-tests.
14372         * modules/fcntl-h-tests: Depend on it.
14373         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14374         * modules/glob-tests: Depend on it.
14375         * modules/iconv-h-c++-tests: New file, extracted from
14376         modules/iconv-h-tests.
14377         * modules/iconv-h-tests: Depend on it.
14378         * modules/langinfo-c++-tests: New file, extracted from
14379         modules/langinfo-tests.
14380         * modules/langinfo-tests: Depend on it.
14381         * modules/locale-c++-tests: New file, extracted from
14382         modules/locale-tests.
14383         * modules/locale-tests: Depend on it.
14384         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14385         * modules/math-tests: Depend on it.
14386         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14387         * modules/pty-tests: Depend on it.
14388         * modules/search-c++-tests: New file, extracted from
14389         modules/search-tests.
14390         * modules/search-tests: Depend on it.
14391         * modules/signal-c++-tests: New file, extracted from
14392         modules/signal-tests.
14393         * modules/signal-tests: Depend on it.
14394         * modules/spawn-c++-tests: New file, extracted from
14395         modules/spawn-tests.
14396         * modules/spawn-tests: Depend on it.
14397         * modules/stdio-c++-tests: New file, extracted from
14398         modules/stdio-tests.
14399         * modules/stdio-tests: Depend on it.
14400         * modules/stdlib-c++-tests: New file, extracted from
14401         modules/stdlib-tests.
14402         * modules/stdlib-tests: Depend on it.
14403         * modules/string-c++-tests: New file, extracted from
14404         modules/string-tests.
14405         * modules/string-tests: Depend on it.
14406         * modules/sys_ioctl-c++-tests: New file, extracted from
14407         modules/sys_ioctl-tests.
14408         * modules/sys_ioctl-tests: Depend on it.
14409         * modules/sys_select-c++-tests: New file, extracted from
14410         modules/sys_select-tests.
14411         * modules/sys_select-tests: Depend on it.
14412         * modules/sys_socket-c++-tests: New file, extracted from
14413         modules/sys_socket-tests.
14414         * modules/sys_socket-tests: Depend on it.
14415         * modules/sys_stat-c++-tests: New file, extracted from
14416         modules/sys_stat-tests.
14417         * modules/sys_stat-tests: Depend on it.
14418         * modules/sys_time-c++-tests: New file, extracted from
14419         modules/sys_time-tests.
14420         * modules/sys_time-tests: Depend on it.
14421         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14422         * modules/time-tests: Depend on it.
14423         * modules/unistd-c++-tests: New file, extracted from
14424         modules/unistd-tests.
14425         * modules/unistd-tests: Depend on it.
14426         * modules/wchar-c++-tests: New file, extracted from
14427         modules/wchar-tests.
14428         * modules/wchar-tests: Depend on it.
14429         * modules/wctype-c++-tests: New file, extracted from
14430         modules/wctype-tests.
14431         * modules/wctype-tests: Depend on it.
14432         Reported by Simon Josefsson.
14433
14434 2010-03-28  Bruno Haible  <bruno@clisp.org>
14435
14436         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14437         * gnulib-tool (func_exists_module): New function, extracted from
14438         func_verify_module.
14439         (func_verify_module): Use it.
14440         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14441         'foo' only if 'foo' exists.
14442         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14443         module.
14444
14445 2010-03-28  Bruno Haible  <bruno@clisp.org>
14446
14447         gnulib-tool: Add support for special categories of tests.
14448         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14449         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14450         (func_usage): Document them.
14451         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14452         inc_unportable_tests, inc_all_tests): New variables.
14453         (func_acceptable): Consider these variables.
14454         (func_modules_transitive_closure): Make it work when the 'Status' field
14455         consists of multiple words.
14456         (func_import): Store and restore the values of inc_cxx_tests,
14457         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14458         inc_all_tests in gnulib-comp.m4.
14459         (func_create_testdir): Set inc_all_tests to true.
14460         * doc/gnulib.texi (Extra tests modules): New section.
14461         Suggested by Jim Meyering.
14462
14463 2010-03-28  Bruno Haible  <bruno@clisp.org>
14464
14465         ansi-c++-opt: Allow turning off the C++ build by default.
14466         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14467         gl_CXX_CHOICE_DEFAULT_NO is defined.
14468         Requested by Eric Blake.
14469
14470 2010-03-28  Bruno Haible  <bruno@clisp.org>
14471
14472         unistd: Avoid #define replacements in C++ mode.
14473         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14474         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14475         setsockopt, shutdown, select): In C++, attach a warning to the function
14476         if possible, rather than #defining the symbol to a dysfunctional alias.
14477         Reported by John W. Eaton <jwe@gnu.org>.
14478
14479 2010-03-28  Bruno Haible  <bruno@clisp.org>
14480
14481         Fix link errors on mingw.
14482         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14483         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14484         $(LIBSOCKET).
14485         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14486         $(LIBSOCKET).
14487
14488 2010-03-28  Bruno Haible  <bruno@clisp.org>
14489             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14490
14491         lib-ignore: Determine different options for different compilers.
14492         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14493         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14494         Add comments.
14495         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14496         * NEWS: Mention the change.
14497
14498 2010-03-27  Bruno Haible  <bruno@clisp.org>
14499
14500         Remove unused GNULIB_XYZ macro definitions.
14501         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14502         * modules/fseek (configure.ac): Likewise.
14503         * modules/ioctl (configure.ac): Likewise.
14504         * modules/open (configure.ac): Likewise.
14505         * modules/stdlib-safer (configure.ac): Likewise.
14506
14507 2010-03-27  Bruno Haible  <bruno@clisp.org>
14508
14509         Add a remark about certain modules.
14510         * modules/malloc (Comment): New section.
14511         * modules/realloc (Comment): Likewise.
14512         * modules/sigpipe (Comment): Likewise.
14513
14514 2010-03-27  Bruno Haible  <bruno@clisp.org>
14515
14516         Resolve conflict between the two kinds of module indicators.
14517         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14518         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14519         * modules/canonicalize (configure.ac): Invoke
14520         gl_MODULE_INDICATOR_FOR_TESTS.
14521         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14522         GNULIB_XYZ.
14523         * tests/test-dirent-c++.cc: Likewise.
14524         * tests/test-dirent-safer.c: Likewise.
14525         * tests/test-dup2.c: Likewise.
14526         * tests/test-fchdir.c: Likewise.
14527         * tests/test-fcntl-h-c++.cc: Likewise.
14528         * tests/test-getopt.c: Likewise.
14529         * tests/test-getopt.h: Likewise.
14530         * tests/test-langinfo-c++.cc: Likewise.
14531         * tests/test-locale-c++.cc: Likewise.
14532         * tests/test-math-c++.cc: Likewise.
14533         * tests/test-pty-c++.cc: Likewise.
14534         * tests/test-search-c++.cc: Likewise.
14535         * tests/test-signal-c++.cc: Likewise.
14536         * tests/test-spawn-c++.cc: Likewise.
14537         * tests/test-stdio-c++.cc: Likewise.
14538         * tests/test-stdlib-c++.cc: Likewise.
14539         * tests/test-string-c++.cc: Likewise.
14540         * tests/test-sys_ioctl-c++.cc: Likewise.
14541         * tests/test-sys_select-c++.cc: Likewise.
14542         * tests/test-sys_socket-c++.cc: Likewise.
14543         * tests/test-sys_stat-c++.cc: Likewise.
14544         * tests/test-sys_time-c++.cc: Likewise.
14545         * tests/test-time-c++.cc: Likewise.
14546         * tests/test-unistd-c++.cc: Likewise.
14547         * tests/test-wchar-c++.cc: Likewise.
14548         * tests/uninorm/test-u8-nfc.c: Likewise.
14549         * tests/uninorm/test-u8-nfd.c: Likewise.
14550         * tests/uninorm/test-u8-nfkc.c: Likewise.
14551         * tests/uninorm/test-u8-nfkd.c: Likewise.
14552         * tests/uninorm/test-u16-nfc.c: Likewise.
14553         * tests/uninorm/test-u16-nfd.c: Likewise.
14554         * tests/uninorm/test-u16-nfkc.c: Likewise.
14555         * tests/uninorm/test-u16-nfkd.c: Likewise.
14556         * tests/uninorm/test-u32-nfc.c: Likewise.
14557         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14558         * tests/uninorm/test-u32-nfd.c: Likewise.
14559         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14560         * tests/uninorm/test-u32-nfkc.c: Likewise.
14561         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14562         * tests/uninorm/test-u32-nfkd.c: Likewise.
14563         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14564         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14565
14566 2010-03-27  Bruno Haible  <bruno@clisp.org>
14567
14568         Distinguish two kinds of module indicators.
14569         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14570         gl_MODULE_INDICATOR.
14571         (gl_MODULE_INDICATOR): New macro.
14572         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14573         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14574         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14575         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14576         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14577         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14578         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14579         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14580         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14581         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14582         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14583         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14586         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14587         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14588         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14589         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14590         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14591         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14592         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14593         * modules/cloexec (configure.ac): Likewise.
14594         * modules/getopt-gnu (configure.ac): Likewise.
14595         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14596         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14597         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14598         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14599
14600 2010-03-27  Bruno Haible  <bruno@clisp.org>
14601
14602         New module description field 'Comment'.
14603         * gnulib-tool: New option --extract-comment.
14604         (func_usage): Document it.
14605         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14606         (func_get_comment): New function.
14607         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14608
14609 2010-03-27  Bruno Haible  <bruno@clisp.org>
14610
14611         Addendum to 2010-02-07 commit.
14612         * gnulib-tool (func_usage): Document --extract-applicability option.
14613
14614 2010-03-27  Bruno Haible  <bruno@clisp.org>
14615
14616         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14617         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14618         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14619         rather than link errors.
14620
14621 2010-03-27  Bruno Haible  <bruno@clisp.org>
14622
14623         Avoid side effects from tests-related modules on the compilation of lib.
14624         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14625         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14626         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14627         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14628         macro.
14629         (func_import): Define a witness macro. Assign it a value that depends
14630         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14631         tests-related modules.
14632         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14633         Reported by Jim Meyering.
14634
14635 2010-03-27  Bruno Haible  <bruno@clisp.org>
14636
14637         Factorize common .m4 code.
14638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14639         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14640         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14641         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14642         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14643         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14644         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14645         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14646         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14647         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14648         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14649         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14650         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14651         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14652         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14653         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14654         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14655         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14657         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14658         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14659         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14660         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14662         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14663         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14664         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14665         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14666         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14667         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14668         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14669         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14670
14671 2010-03-27  Bruno Haible  <bruno@clisp.org>
14672
14673         Fix a compilation error on Cygwin with g++ >= 4.3.
14674         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14675         if it is undefined or if we alias it to chmod.
14676         (lstat): Don't warn about the use of this function if it is undefined
14677         or if we alias it to stat.
14678         Reported by Simon Josefsson.
14679
14680 2010-03-27  Bruno Haible  <bruno@clisp.org>
14681
14682         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14683         * modules/getlogin (configure.ac): Update.
14684
14685         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14686         * modules/getlogin_r (configure.ac): Update.
14687
14688         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14690         * modules/inet_ntop (configure.ac): Update.
14691
14692         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14693         * modules/inet_pton (configure.ac): Update.
14694
14695         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14696         * modules/mbslen (configure.ac): Update.
14697
14698         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14699         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14700         * modules/forkpty (configure.ac): Update.
14701         * modules/openpty (configure.ac): Update.
14702
14703 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14704
14705         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14706         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14707
14708 2010-03-25  Eric Blake  <eblake@redhat.com>
14709
14710         maint: use pragma consistently across replacement headers
14711         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14712         * lib/dirent.in.h (system_header): Likewise.
14713         * lib/errno.in.h (system_header): Likewise.
14714         * lib/float.in.h (system_header): Likewise.
14715         * lib/getopt.in.h (system_header): Likewise.
14716         * lib/iconv.in.h (system_header): Likewise.
14717         * lib/inttypes.in.h (system_header): Likewise.
14718         * lib/langinfo.in.h (system_header): Likewise.
14719         * lib/locale.in.h (system_header): Likewise.
14720         * lib/math.in.h (system_header): Likewise.
14721         * lib/netdb.in.h (system_header): Likewise.
14722         * lib/netinet_in.in.h (system_header): Likewise.
14723         * lib/pty.in.h (system_header): Likewise.
14724         * lib/sched.in.h (system_header): Likewise.
14725         * lib/se-selinux.in.h (system_header): Likewise.
14726         * lib/search.in.h (system_header): Likewise.
14727         * lib/spawn.in.h (system_header): Likewise.
14728         * lib/stdarg.in.h (system_header): Likewise.
14729         * lib/stdint.in.h (system_header): Likewise.
14730         * lib/string.in.h (system_header): Likewise.
14731         * lib/strings.in.h (system_header): Likewise.
14732         * lib/sys_file.in.h (system_header): Likewise.
14733         * lib/sys_ioctl.in.h (system_header): Likewise.
14734         * lib/sys_socket.in.h (system_header): Likewise.
14735         * lib/sys_times.in.h (system_header): Likewise.
14736         * lib/sys_utsname.in.h (system_header): Likewise.
14737         * lib/sys_wait.in.h (system_header): Likewise.
14738         * lib/sysexits.in.h (system_header): Likewise.
14739         * lib/unistd.in.h (system_header): Likewise.
14740         * lib/wctype.in.h (system_header): Likewise.
14741
14742         arpa/inet: fix mingw compilation warning
14743         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14744         Reported by Matthew Bolte.
14745
14746 2010-03-25  Bruno Haible  <bruno@clisp.org>
14747
14748         Avoid collision between gnulib wrapper and libintl wrapper.
14749         * lib/printf.c (printf): Don't define if a printf wrapper is already
14750         defined in intl/printf.c.
14751         Reported by Michel Boaventura <michel@michelboaventura.com>.
14752
14753 2010-03-25  Bruno Haible  <bruno@clisp.org>
14754
14755         Use ANSI C.
14756         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14757
14758 2010-03-25  Bruno Haible  <bruno@clisp.org>
14759
14760         Minor formatting changes.
14761         * lib/acosl.c: Insert space before function argument list.
14762         * lib/argz.c: Likewise.
14763         * lib/asinl.c: Likewise.
14764         * lib/expl.c: Likewise.
14765         * lib/gen-uni-tables.c: Likewise.
14766         * lib/gettext.h: Likewise.
14767         * lib/glthread/lock.h: Likewise.
14768         * lib/tanl.c: Likewise.
14769         * lib/uniname/uniname.c: Likewise.
14770         * tests/test-idpriv-drop.c: Likewise.
14771         * tests/test-idpriv-droptemp.c: Likewise.
14772         * tests/test-lock.c: Likewise.
14773         * tests/test-tls.c: Likewise.
14774         * lib/argp-help.c: Insert space before function-like macro argument
14775         list.
14776         * lib/memcmp.c: Likewise.
14777         * tests/test-base64.c: Likewise.
14778         * lib/localename.c: Insert space before sizeof's argument list.
14779         * lib/safe-alloc.h: Likewise.
14780         * lib/file-set.h: Insert space before macro argument list.
14781         * tests/test-argp.c: Likewise.
14782         * lib/argp-namefrob.h: Insert space before function parameter list.
14783         * lib/getaddrinfo.c: Likewise.
14784         * lib/netdb.in.h: Likewise.
14785         * lib/parse-duration.h: Likewise.
14786         * lib/parse-duration.c: Likewise.
14787         * lib/poll.c: Likewise.
14788         * lib/select.c: Likewise.
14789         * lib/trim.h: Likewise.
14790         * tests/test-usleep.c: Likewise.
14791         * lib/ldexpl.c: Insert space before function parameter list and before
14792         function argument list.
14793         * lib/logl.c: Likewise.
14794         * lib/sqrtl.c: Likewise.
14795         * lib/trim.c: Likewise.
14796         * lib/cosl.c: Use GNU style indentation. Insert space before function
14797         argument list.
14798         * lib/sinl.c: Likewise.
14799         * lib/tsearch.c: Insert space after 'for'.
14800         Reported by Jim Meyering.
14801
14802 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14803
14804         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14805         config header before grepping, as it's not present before
14806         autoreconf/configure are run.  Reported by Simon Josefsson.
14807
14808 2010-03-23  Bruno Haible  <bruno@clisp.org>
14809
14810         pt_chown: Make it work with automake < 1.11.
14811         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14812         Reported by Simon Josefsson.
14813
14814 2010-03-23  Bruno Haible  <bruno@clisp.org>
14815
14816         pt_chown: Don't depend on GPLed modules.
14817         * lib/pt_chown.c: Don't include idpriv.h.
14818         (main): Don't drop privileges.
14819         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14820         Reported by Simon Josefsson.
14821
14822 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14823
14824         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14825         suggestions from karl@freefriends.org (Karl Berry).
14826
14827 2010-03-22  Eric Blake  <eblake@redhat.com>
14828
14829         gethostname: further tweaks
14830         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14831         are overriding gethostname.
14832         Suggested by Bruno Haible.
14833
14834 2010-03-21  Bruno Haible  <bruno@clisp.org>
14835
14836         Fix comments.
14837         * lib/forkpty.c (rpl_forkpty): Fix comment.
14838         * lib/openpty.c (rpl_openpty): Likewise.
14839         Reported by Eric Blake.
14840
14841 2010-03-22  Eric Blake  <eblake@redhat.com>
14842
14843         gethostname: fix build on mingw
14844         * lib/unistd.in.h (includes): Work around fact that mingw
14845         <winsock2.h> re-includes <unistd.h>, by avoiding any
14846         redeclarations if we are being included by <winsock2.h>.
14847         Reported by Matthias Bolte.
14848
14849 2010-03-21  Bruno Haible  <bruno@clisp.org>
14850
14851         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14852         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14853         modifications.
14854         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14855         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14856         provide the replacement.
14857         * modules/forkpty (Depends-on): Add openpty, login_tty.
14858         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14859         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14860         * doc/glibc-functions/forkpty.texi: More supported platforms.
14861         * config/srclist.txt: Add forkpty.c (commented).
14862
14863 2010-03-21  Bruno Haible  <bruno@clisp.org>
14864
14865         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14866         (Makefile.am): Verify that PTY_LIB is defined.
14867
14868         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14869
14870 2010-03-21  Bruno Haible  <bruno@clisp.org>
14871
14872         Tests for module 'login_tty'.
14873         * modules/login_tty-tests: New file.
14874         * tests/test-login_tty.c: New file.
14875
14876         New module 'login_tty'.
14877         * lib/login_tty.c: New file.
14878         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14879         * modules/login_tty: New file.
14880         * doc/glibc-functions/login_tty.texi: Mention the new module.
14881
14882 2010-03-21  Bruno Haible  <bruno@clisp.org>
14883
14884         login_tty: Documentation.
14885         * doc/glibc-functions/login_tty.texi: New file.
14886         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14887
14888 2010-03-21  Bruno Haible  <bruno@clisp.org>
14889
14890         pty: Consistent macro naming.
14891         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14892         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14893         * modules/pty (configure.ac): Update.
14894
14895 2010-03-21  Bruno Haible  <bruno@clisp.org>
14896
14897         Tests for openpty: Make stricter.
14898         * tests/test-openpty.c (main): Add test of canonical processing and
14899         erase.
14900         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14901
14902         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14903         * lib/openpty.c (openpty): New replacement function.
14904         * lib/pty.in.h: Include <termios.h>.
14905         (openpty): Update declaration. Add comments.
14906         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14907         is not declared, arrange to provide the replacement. Check for _getpty
14908         and posix_openpt.
14909         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14910         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14911         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14912         * modules/pty-tests (test_pty_c___LDADD): New variable.
14913         * doc/glibc-functions/openpty.texi: More supported platforms.
14914
14915 2010-03-21  Bruno Haible  <bruno@clisp.org>
14916
14917         setenv: Tweaks.
14918         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14919         the test program.
14920         * doc/posix-functions/setenv.texi: Update platforms list.
14921
14922 2010-03-21  Bruno Haible  <bruno@clisp.org>
14923
14924         New module 'unlockpt'.
14925         * lib/unlockpt.c: New file, from glibc with modifications.
14926         * m4/unlockpt.m4: New file.
14927         * modules/unlockpt: New file.
14928         * lib/stdlib.in.h (unlockpt): New declaration.
14929         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14930         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14931         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14932         HAVE_UNLOCKPT.
14933         * doc/posix-functions/unlockpt.texi: Mention the new module.
14934         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14935         * config/srclist.txt: Add unlockpt.c (commented).
14936
14937 2010-03-21  Jim Meyering  <meyering@redhat.com>
14938
14939         maint.mk: prohibit inclusion of "intprops.h" without use
14940         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14941
14942 2010-03-21  Bruno Haible  <bruno@clisp.org>
14943
14944         New module 'grantpt'.
14945         * lib/grantpt.c: New file, from glibc with modifications.
14946         * m4/grantpt.m4: New file.
14947         * modules/grantpt: New file.
14948         * lib/stdlib.in.h (grantpt): New declaration.
14949         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14950         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14951         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14952         HAVE_GRANTPT.
14953         * doc/posix-functions/grantpt.texi: Mention the new module.
14954         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14955         * config/srclist.txt: Add grantpt.c (commented).
14956
14957 2010-03-21  Bruno Haible  <bruno@clisp.org>
14958
14959         New module 'pt_chown'.
14960         * lib/pt_chown.c: New file, from glibc with modifications.
14961         * lib/pty-private.h: New file, from glibc with modifications.
14962         * modules/pt_chown: New file.
14963         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14964
14965 2010-03-21  Bruno Haible  <bruno@clisp.org>
14966
14967         Tests for module 'ptsname'.
14968         * modules/ptsname-tests: New file.
14969         * tests/test-ptsname.c: New file.
14970
14971         New module 'ptsname'.
14972         * lib/ptsname.c: New file, from glibc with modifications.
14973         * m4/ptsname.m4: New file.
14974         * modules/ptsname: New file.
14975         * lib/stdlib.in.h (ptsname): New declaration.
14976         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14977         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14978         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14979         HAVE_PTSNAME.
14980         * doc/posix-functions/ptsname.texi: Mention the new module.
14981         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14982         * config/srclist.txt: Add ptsname.c (commented).
14983
14984 2010-03-21  Bruno Haible  <bruno@clisp.org>
14985
14986         Tests for module 'ttyname_r'.
14987         * modules/ttyname_r-tests: New file.
14988         * tests/test-ttyname_r.c: New file.
14989
14990         New module 'ttyname_r'.
14991         * lib/ttyname_r.c: New file.
14992         * m4/ttyname_r.m4: New file.
14993         * modules/ttyname_r: New file.
14994         * lib/unistd.in.h (ttyname_r): New declaration.
14995         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14996         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14997         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14998         HAVE_TTYNAME_R.
14999         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15000         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15001
15002 2010-03-20  Bruno Haible  <bruno@clisp.org>
15003
15004         signal: Undefine macro definitions in C++ mode.
15005         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15006         sigfillset): Undefine macro definitions from the system header in C++
15007         mode.
15008         Reported by John W. Eaton <jwe@gnu.org>.
15009
15010 2010-03-20  Bruno Haible  <bruno@clisp.org>
15011
15012         Ensure no #include statements inside extern "C" { ... }.
15013         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15014         contain #include statements.
15015         * lib/time.in.h: Likewise.
15016
15017 2010-03-20  Bruno Haible  <bruno@clisp.org>
15018
15019         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15020         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15021         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15022         Reported by John W. Eaton <jwe@gnu.org>.
15023
15024 2010-03-20  Bruno Haible  <bruno@clisp.org>
15025
15026         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15027         Reported by Jim Meyering.
15028
15029 2010-03-20  Bruno Haible  <bruno@clisp.org>
15030
15031         pipe: Set errno upon failure.
15032         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15033         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15034         errno value in error message.
15035
15036 2010-03-20  Bruno Haible  <bruno@clisp.org>
15037             Jim Meyering  <meyering@redhat.com>
15038
15039         lchown: Avoid "unused variable" warning.
15040         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15041
15042 2010-03-20  Bruno Haible  <bruno@clisp.org>
15043
15044         Work around unlink() bug on MacOS X 10.5.6.
15045         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15046         attempting to unlink a parent directory.
15047         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15048         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15049         activate for the replacement function.
15050         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15051
15052 2010-03-20  Bruno Haible  <bruno@clisp.org>
15053
15054         Fix link errors on Solaris 8.
15055         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15056         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15057
15058 2010-03-19  Jim Meyering  <meyering@redhat.com>
15059
15060         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15061         The _LIBC implementation of build_range_exp correctly honors the
15062         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15063         However, the non-_LIBC implementation would ignore that syntax-bit
15064         flag and return REG_ERANGE unconditionally.
15065         This change makes it honor that flag.
15066         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15067         Make two pointer parameters "const".
15068         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15069         (parse_bracket_exp): Update caller.
15070
15071         regex.m4: correct the reversed range endpoint ([b-a]) test
15072         * m4/regex.m4: When requiring that [b-a] evoke failure,
15073         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15074         test pass once again for x86-based systems.
15075
15076 2010-03-19  Bruno Haible  <bruno@clisp.org>
15077
15078         scandir: Fix link error on Solaris 8.
15079         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15080         macros.
15081
15082 2010-03-19  Bruno Haible  <bruno@clisp.org>
15083
15084         getusershell: Fix documentation.
15085         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15086         module.
15087         * doc/glibc-functions/setusershell.texi: Likewise.
15088
15089         getusershell: Provide declaration, missing on Solaris 9.
15090         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15091         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15092         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15093         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15095         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15096         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15097         HAVE_GETUSERSHELL.
15098         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15099
15100 2010-03-19  Bruno Haible  <bruno@clisp.org>
15101
15102         wctype: Provide iswblank function.
15103         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15104         exists and is fine.
15105         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15106         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15107         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15108         * doc/posix-functions/iswblank.texi: Update.
15109
15110 2010-03-19  Bruno Haible  <bruno@clisp.org>
15111
15112         Tests of module 'pty' in C++ mode.
15113         * modules/pty-tests: New file.
15114         * tests/test-pty-c++.cc: New file.
15115         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15116
15117 2010-03-19  Eric Blake  <eblake@redhat.com>
15118
15119         logb: fix documentation
15120         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15121         1.5 declaration bug.
15122
15123         forkpty, openpty: prefer glibc's const-safe prototype
15124         * lib/forkpty.c (rpl_forkpty): New file.
15125         * lib/openpty.c (rpl_openpty): Likewise.
15126         * modules/forkpty (Files): Distribute it.
15127         * modules/openpty (Files): Likewise.
15128         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15129         check...
15130         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15131         replacement for for non-const BSD signature.
15132         * modules/pty (Makefile.am): Substitute witnesses.
15133         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15134         * tests/test-forkpty.c: Update signature check.
15135         * tests/test-openpty.c: Likewise.
15136         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15137         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15138
15139         forkpty, openpty: split functions into new modules
15140         * modules/pty (Makefile.am): Substitute new witnesses.
15141         (Libraries): Move library detection...
15142         * modules/forkpty: ...into new module.
15143         * modules/openpty: Another new module.
15144         * modules/pty-tests: Rename and split...
15145         * modules/forkpty-tests: ...to this...
15146         * modules/openpty-tests: ...and this.
15147         * tests/test-pty.c: Rename and split...
15148         * tests/test-forkpty.c: ...to this...
15149         * tests/test-openpty.c: ...and this.
15150         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15151         (gl_PTY): Split library searching...
15152         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15153         (gl_FORKPTY, gl_OPENPTY): New macros.
15154         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15155         * NEWS: Mention the split.
15156         * MODULES.html.sh (Misc): Document the modules.
15157         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15158         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15159
15160         pty: improve replacement header
15161         * lib/pty.in.h: New file.
15162         * modules/pty (Files): Ship it.
15163         (Makefile.am): Always build replacement.
15164         * m4/pty.m4: Rename...
15165         * m4/pty_h.m4: ...to this.
15166         (gl_PTY): Modernize setting of witness macros; update check of
15167         forkpty to take proper advantage of cache.
15168         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15169
15170         getopt: avoid compiler warning
15171         * lib/getopt.c (attribute_hidden): Remove unused macro.
15172
15173 2010-03-18  Bruno Haible  <bruno@clisp.org>
15174
15175         Fix link errors on Solaris 8.
15176         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15177         * modules/search-tests (test_search_c___LDADD): Likewise.
15178         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15179         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15180         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15181         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15182         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15183         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15184         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15185
15186 2010-03-18  Bruno Haible  <bruno@clisp.org>
15187
15188         Fix bug introduced on 2010-03-14.
15189         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15190         (gl_SPAWN_H): Require it.
15191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15192         Reported by Simon Josefsson.
15193
15194 2010-03-18  Bruno Haible  <bruno@clisp.org>
15195
15196         Fix typo introduced on 2009-12-31.
15197         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15198         posix_spawn_file_actions_adddup2.
15199
15200 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15201         and Eric Blake  <eblake@redhat.com>
15202
15203         test-vc-list-files-git: make more robust
15204         * tests/test-vc-list-files-git.sh: Unset problematic environment
15205         variables.  Chain commands together.
15206
15207 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15208
15209         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15210         `AC_CHECK_DECL' invocation.
15211
15212 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15213
15214         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15215         appears before executable statements. Suggested by Petr Sumbera
15216         <Petr.Sumbera@Sun.COM>.
15217
15218 2010-03-14  Bruno Haible  <bruno@clisp.org>
15219
15220         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15221         portability problems. Instead use a simpler test.
15222         (main): Check that invalid arguments are rejected only on Linux.
15223
15224 2010-03-14  Bruno Haible  <bruno@clisp.org>
15225
15226         Fix bug introduced on 2009-12-31.
15227         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15228         gl_PREREQ_SYS_H_WINSOCK2 always.
15229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15230         SYS_SOCKET_H variable.
15231         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15232         Update comments.
15233         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15234         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15235         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15236         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15237         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15238
15239 2010-03-14  Bruno Haible  <bruno@clisp.org>
15240
15241         Fix values returned by sinl, cosl.
15242         * lib/trigl.h: Add specification comments.
15243         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15244         that combines the values from the precomputed table with the values of
15245         the Chebyshev polynomials.
15246
15247 2010-03-14  Bruno Haible  <bruno@clisp.org>
15248
15249         Fix compilation error when modules 'posix_spawn[p]' are not used.
15250         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15251         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15252
15253 2010-03-14  Bruno Haible  <bruno@clisp.org>
15254
15255         Fix compilation error on mingw when module 'time_r' is not used.
15256         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15257         is 1.
15258         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15259         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15260         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15261         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15262
15263 2010-03-14  Bruno Haible  <bruno@clisp.org>
15264
15265         Fix compilation error with Sun C.
15266         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15267         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15268         instead of GCC specific ULONG_LONG_MAX.
15269         * lib/xstrtoll.c: Likewise.
15270         * lib/xstrtoull.c: Likewise.
15271
15272 2010-03-13  Bruno Haible  <bruno@clisp.org>
15273
15274         Allow the user to disable C++ code and tests.
15275         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15276         (gl_PROG_ANSI_CXX): Require it.
15277
15278 2010-03-13  Bruno Haible  <bruno@clisp.org>
15279
15280         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15281         cases.
15282
15283 2010-03-13  Bruno Haible  <bruno@clisp.org>
15284
15285         Test that gnulib does not break the standard C++ headers.
15286         * tests/test-locale-c++2.cc: New file.
15287         * modules/locale-tests (Files): Add it.
15288         (Makefile.am): Compile it for test-locale-c++.
15289         * tests/test-math-c++2.cc: New file.
15290         * modules/math-tests (Files): Add it.
15291         (Makefile.am): Compile it for test-math-c++.
15292         * tests/test-signal-c++2.cc: New file.
15293         * modules/signal-tests (Files): Add it.
15294         (Makefile.am): Compile it for test-signal-c++.
15295         * tests/test-stdio-c++2.cc: New file.
15296         * modules/stdio-tests (Files): Add it.
15297         (Makefile.am): Compile it for test-stdio-c++.
15298         * tests/test-stdlib-c++2.cc: New file.
15299         * modules/stdlib-tests (Files): Add it.
15300         (Makefile.am): Compile it for test-stdlib-c++.
15301         * tests/test-string-c++2.cc: New file.
15302         * modules/string-tests (Files): Add it.
15303         (Makefile.am): Compile it for test-string-c++.
15304         * tests/test-time-c++2.cc: New file.
15305         * modules/time-tests (Files): Add it.
15306         (Makefile.am): Compile it for test-time-c++.
15307         Reported by John W. Eaton <jwe@gnu.org>.
15308
15309 2010-03-13  Bruno Haible  <bruno@clisp.org>
15310
15311         * gnulib-tool (func_usage): Clarify which options are available for
15312         --create-testdir and --create-megatestdir.
15313
15314 2010-03-13  Bruno Haible  <bruno@clisp.org>
15315
15316         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15317         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15318         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15319         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15320         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15321         when appropriate.
15322         Reported by Jim Meyering.
15323
15324 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15325
15326         * gnulib-tool (func_import): Explain origin of code.
15327
15328 2010-03-12  Bruno Haible  <bruno@clisp.org>
15329
15330         Fix problem with automake's definition of CXXLINK.
15331         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15332         Reported by Simon Josefsson and Ludovic Courtès.
15333
15334 2010-03-12  Bruno Haible  <bruno@clisp.org>
15335
15336         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15337         stable releases.
15338
15339 2010-03-11  Bruno Haible  <bruno@clisp.org>
15340
15341         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15342         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15343         whether the system provides one variant or multiple variants of the
15344         function.
15345         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15346         C++ compilers.
15347         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15348         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15349         Reported by Jim Meyering.
15350
15351 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15352
15353         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15354
15355 2010-03-08  Bruno Haible  <bruno@clisp.org>
15356
15357         gnulib-tool: Add support for --libtool in --create-testdir.
15358         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15359         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15360
15361 2010-03-08  Eric Blake  <eblake@redhat.com>
15362
15363         gnulib-tool.texi: mention possibility of git submodule
15364         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15365         submodules.
15366         * doc/.gitignore: Ignore another generated file.
15367
15368 2010-03-08  Karl Berry  <karl@gnu.org>
15369
15370         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15371         of committing gnulib files while skipping others.
15372
15373 2010-03-07  Bruno Haible  <bruno@clisp.org>
15374
15375         Tests of module 'wctype' in C++ mode.
15376         * tests/test-wctype-c++.cc: New file.
15377         * modules/wctype-tests (Files): Add it and tests/signature.h.
15378         (Depends-on): Add ansi-c++-opt.
15379         (Makefile.am): Arrange to compile and run test-wctype-c++.
15380
15381         Tests of module 'wchar' in C++ mode.
15382         * tests/test-wchar-c++.cc: New file.
15383         * modules/wchar-tests (Files): Add it and tests/signature.h.
15384         (Depends-on): Add ansi-c++-opt.
15385         (Makefile.am): Arrange to compile and run test-wchar-c++.
15386         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15387         gl_MODULE_INDICATOR.
15388
15389         Tests of module 'unistd' in C++ mode.
15390         * tests/test-unistd-c++.cc: New file.
15391         * modules/unistd-tests (Files): Add it and tests/signature.h.
15392         (Depends-on): Add ansi-c++-opt.
15393         (Makefile.am): Arrange to compile and run test-unistd-c++.
15394         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15395         gl_MODULE_INDICATOR.
15396
15397         Tests of module 'time' in C++ mode.
15398         * tests/test-time-c++.cc: New file.
15399         * modules/time-tests (Files): Add it and tests/signature.h.
15400         (Depends-on): Add ansi-c++-opt.
15401         (Makefile.am): Arrange to compile and run test-time-c++.
15402         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15403
15404         Tests of module 'sys_time' in C++ mode.
15405         * tests/test-sys_time-c++.cc: New file.
15406         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15407         (Depends-on): Add ansi-c++-opt.
15408         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15409         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15410         gl_MODULE_INDICATOR.
15411
15412         Tests of module 'sys_stat' in C++ mode.
15413         * tests/test-sys_stat-c++.cc: New file.
15414         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15415         (Depends-on): Add ansi-c++-opt.
15416         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15418         gl_MODULE_INDICATOR.
15419
15420         Tests of module 'sys_socket' in C++ mode.
15421         * tests/test-sys_socket-c++.cc: New file.
15422         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15423         (Depends-on): Add ansi-c++-opt.
15424         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15425         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15426         gl_MODULE_INDICATOR.
15427
15428         Tests of module 'sys_select' in C++ mode.
15429         * tests/test-sys_select-c++.cc: New file.
15430         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15431         (Depends-on): Add ansi-c++-opt.
15432         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15433         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15434         gl_MODULE_INDICATOR.
15435
15436         Tests of module 'sys_ioctl' in C++ mode.
15437         * tests/test-sys_ioctl-c++.cc: New file.
15438         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15439         (Depends-on): Add ansi-c++-opt.
15440         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15442         gl_MODULE_INDICATOR.
15443
15444         Tests of module 'string' in C++ mode.
15445         * tests/test-string-c++.cc: New file.
15446         * modules/string-tests (Files): Add it and tests/signature.h.
15447         (Depends-on): Add ansi-c++-opt.
15448         (Makefile.am): Arrange to compile and run test-string-c++.
15449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15450         gl_MODULE_INDICATOR.
15451
15452         Tests of module 'stdlib' in C++ mode.
15453         * tests/test-stdlib-c++.cc: New file.
15454         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15455         (Depends-on): Add ansi-c++-opt.
15456         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15457         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15458         gl_MODULE_INDICATOR.
15459
15460         Tests of module 'stdio' in C++ mode.
15461         * tests/test-stdio-c++.cc: New file.
15462         * modules/stdio-tests (Files): Add it and tests/signature.h.
15463         (Depends-on): Add ansi-c++-opt.
15464         (Makefile.am): Arrange to compile and run test-stdio-c++.
15465         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15466         gl_MODULE_INDICATOR.
15467
15468         Tests of module 'spawn' in C++ mode.
15469         * tests/test-spawn-c++.cc: New file.
15470         * modules/spawn-tests (Files): Add it and tests/signature.h.
15471         (Depends-on): Add ansi-c++-opt.
15472         (Makefile.am): Arrange to compile and run test-spawn-c++.
15473         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15474         gl_MODULE_INDICATOR.
15475
15476         Tests of module 'signal' in C++ mode.
15477         * tests/test-signal-c++.cc: New file.
15478         * modules/signal-tests (Files): Add it and tests/signature.h.
15479         (Depends-on): Add ansi-c++-opt.
15480         (Makefile.am): Arrange to compile and run test-signal-c++.
15481         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15482         gl_MODULE_INDICATOR.
15483
15484         Tests of module 'search' in C++ mode.
15485         * tests/test-search-c++.cc: New file.
15486         * modules/search-tests (Files): Add it and tests/signature.h.
15487         (Depends-on): Add ansi-c++-opt.
15488         (Makefile.am): Arrange to compile and run test-search-c++.
15489         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15490         gl_MODULE_INDICATOR.
15491
15492         Tests of module 'math' in C++ mode.
15493         * tests/test-math-c++.cc: New file.
15494         * modules/math-tests (Files): Add it and tests/signature.h.
15495         (Depends-on): Add ansi-c++-opt.
15496         (Makefile.am): Arrange to compile and run test-math-c++.
15497         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15498
15499         Tests of module 'locale' in C++ mode.
15500         * tests/test-locale-c++.cc: New file.
15501         * modules/locale-tests (Files): Add it and tests/signature.h.
15502         (Depends-on): Add ansi-c++-opt.
15503         (Makefile.am): Arrange to compile and run test-locale-c++.
15504         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15505         gl_MODULE_INDICATOR.
15506
15507         Tests of module 'langinfo' in C++ mode.
15508         * tests/test-langinfo-c++.cc: New file.
15509         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15510         (Depends-on): Add ansi-c++-opt.
15511         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15512         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15513         gl_MODULE_INDICATOR.
15514
15515         Tests of module 'iconv-h' in C++ mode.
15516         * tests/test-iconv-h-c++.cc: New file.
15517         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15518         (Depends-on): Add ansi-c++-opt.
15519         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15520
15521         Tests of module 'glob' in C++ mode.
15522         * tests/test-glob-c++.cc: New file.
15523         * modules/glob-tests (Files): Add it.
15524         (Depends-on): Add ansi-c++-opt.
15525         (Makefile.am): Arrange to compile and run test-glob-c++.
15526
15527         Tests of module 'fcntl-h' in C++ mode.
15528         * tests/test-fcntl-h-c++.cc: New file.
15529         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15530         (Depends-on): Add ansi-c++-opt.
15531         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15532         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15533         gl_MODULE_INDICATOR.
15534
15535         Tests of module 'dirent' in C++ mode.
15536         * tests/test-dirent-c++.cc: New file.
15537         * modules/dirent-tests (Files): Add it and tests/signature.h.
15538         (Depends-on): Add ansi-c++-opt.
15539         (Makefile.am): Arrange to compile and run test-dirent-c++.
15540         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15541         gl_MODULE_INDICATOR.
15542
15543         New module 'ansi-c++-opt'.
15544         * modules/ansi-c++-opt: New file.
15545         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15546
15547         Document C++ namespace mode.
15548         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15549
15550         wctype: Avoid #define replacements in C++ mode.
15551         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15552         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15553         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15554         In C++, define a namespaced alias symbol.
15555         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15556         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15557         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15558         rule.
15559
15560         wchar: Avoid #define replacements in C++ mode.
15561         * lib/wchar.in.h: Include c++defs.h.
15562         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15563         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15564         symbol.
15565         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15566         * modules/wchar (Depends-on): Add c++defs.
15567         (Makefile.am): Update wchar.h rule.
15568
15569         unistd: Avoid #define replacements in C++ mode.
15570         * lib/unistd.in.h: Include c++defs.h.
15571         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15572         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15573         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15574         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15575         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15576         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15577         symbol.
15578         (environ): Update.
15579         * modules/unistd (Depends-on): Add c++defs.
15580         (Makefile.am): Update unistd.h rule.
15581
15582         time: Avoid #define replacements in C++ mode.
15583         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15584         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15585         define a namespaced alias symbol.
15586         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15587         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15588         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15589         * modules/time (Depends-on): Add c++defs, warn-on-use.
15590         (Makefile.am): Update time.h rule.
15591         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15592         * modules/nanosleep (configure.ac): Likewise.
15593         * modules/strptime (configure.ac): Likewise.
15594         * modules/timegm (configure.ac): Likewise.
15595
15596         sys_time: Avoid #define replacements in C++ mode.
15597         * lib/sys_time.in.h: Include c++defs.h.
15598         (gettimeofday): In C++, define a namespaced alias symbol.
15599         * modules/sys_time (Depends-on): Add c++defs.
15600         (Makefile.am): Update sys/time.h rule.
15601
15602         sys_stat: Avoid #define replacements in C++ mode.
15603         * lib/sys_stat.in.h: Include c++defs.h.
15604         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15605         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15606         namespaced alias symbol.
15607         In C++, define a namespaced alias symbol.
15608         * modules/sys_stat (Depends-on): Add c++defs.
15609         (Makefile.am): Update sys/stat.h rule.
15610
15611         sys_socket: Avoid #define replacements in C++ mode.
15612         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15613         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15614         definitions also when the system has a <sys/socket.h>.
15615         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15616         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15617         In C++, define a namespaced alias symbol.
15618         * modules/sys_socket (Depends-on): Add c++defs.
15619         (Makefile.am): Update sys/socket.h rule.
15620
15621         sys_select: Avoid #define replacements in C++ mode.
15622         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15623         definitions also when the system has a <sys/select.h>.
15624         (select): In C++, define a namespaced alias symbol.
15625         * modules/sys_select (Depends-on): Add c++defs.
15626         (Makefile.am): Update sys/select.h rule.
15627
15628         sys_ioctl: Avoid #define replacements in C++ mode.
15629         * lib/sys_ioctl.in.h: Include c++defs.h.
15630         (ioctl): In C++, define a namespaced alias symbol.
15631         * modules/sys_ioctl (Depends-on): Add c++defs.
15632         (Makefile.am): Update sys/ioctl.h rule.
15633
15634         string: Avoid #define replacements in C++ mode.
15635         * lib/string.in.h: Include c++defs.h.
15636         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15637         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15638         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15639         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15640         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15641         * modules/string (Depends-on): Add c++defs.
15642         (Makefile.am): Update string.h rule.
15643
15644         stdlib: Avoid #define replacements in C++ mode.
15645         * lib/stdlib.in.h: Include c++defs.h.
15646         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15647         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15648         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15649         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15650         symbol.
15651         * modules/stdlib (Depends-on): Add c++defs.
15652         (Makefile.am): Update stdlib.h rule.
15653
15654         stdio: Avoid #define replacements in C++ mode.
15655         * lib/stdio.in.h: Include c++defs.h.
15656         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15657         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15658         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15659         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15660         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15661         namespaced alias symbol.
15662         * modules/stdio (Depends-on): Add c++defs.
15663         (Makefile.am): Update stdio.h rule.
15664
15665         spawn: Avoid #define replacements in C++ mode.
15666         * lib/spawn.in.h: Include c++defs.h.
15667         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15668         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15669         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15670         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15671         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15672         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15673         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15674         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15675         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15676         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15677         In C++, define a namespaced alias symbol.
15678         * modules/spawn (Depends-on): Add c++defs.
15679         (Makefile.am): Update spawn.h rule.
15680
15681         signal: Avoid #define replacements in C++ mode.
15682         * lib/signal.in.h: Include c++defs.h.
15683         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15684         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15685         namespaced alias symbol.
15686         * modules/signal (Depends-on): Add c++defs.
15687         (Makefile.am): Update signal.h rule.
15688
15689         search: Avoid #define replacements in C++ mode.
15690         * lib/search.in.h: Include c++defs.h.
15691         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15692         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15693         symbol.
15694         * modules/search (Depends-on): Add c++defs.
15695         (Makefile.am): Update search.h rule.
15696
15697         math: Avoid #define replacements in C++ mode.
15698         * lib/math.in.h: Include c++defs.h.
15699         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15700         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15701         trunc, truncl): In C++, define a namespaced alias symbol.
15702         * modules/math (Depends-on): Add c++defs.
15703         (Makefile.am): Update math.h rule.
15704
15705         locale: Avoid #define replacements in C++ mode.
15706         * lib/locale.in.h: Include c++defs.h.
15707         (duplocale): In C++, define a namespaced alias symbol.
15708         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15709         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15710         * modules/locale (Depends-on): Add c++defs.
15711         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15712
15713         langinfo: Avoid #define replacements in C++ mode.
15714         * lib/langinfo.in.h: Include c++defs.h.
15715         (nl_langinfo): In C++, define a namespaced alias symbol.
15716         * modules/langinfo (Depends-on): Add c++defs.
15717         (Makefile.am): Update langinfo.h rule.
15718
15719         iconv-h: Avoid #define replacements in C++ mode.
15720         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15721         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15722         symbol.
15723         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15724         whenever iconv is present.
15725         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15726         (Makefile.am): Update iconv.h rule.
15727
15728         glob: Avoid #define replacements in C++ mode.
15729         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15730         (_gl_glob_errfunc_fn): New type.
15731         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15732         symbol.
15733         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15734         (Makefile.am): Update glob.h rule.
15735
15736         fcntl-h: Avoid #define replacements in C++ mode.
15737         * lib/fcntl.in.h: Include c++defs.h.
15738         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15739         * modules/fcntl-h (Depends-on): Add c++defs.
15740         (Makefile.am): Update fcntl.h rule.
15741
15742         dirent: Avoid #define replacements in C++ mode.
15743         * lib/dirent.in.h: Include c++defs.h.
15744         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15745         namespaced alias symbol.
15746         (dirfd): Update declaration.
15747         * modules/dirent (Depends-on): Add c++defs.
15748         (Makefile.am): Update dirent.h rule.
15749
15750         ctype: Make it usable in C++ code.
15751         * lib/ctype.in.h: Include c++defs.h.
15752         (isblank): Declare as extern "C".
15753         * modules/ctype (Depends-on): Add c++defs.
15754         (Makefile.am): Update ctype.h rule.
15755
15756         New module 'c++defs'.
15757         * modules/c++defs: New file.
15758         * build-aux/c++defs.h: New file.
15759         Reported by John W. Eaton <jwe@gnu.org>.
15760
15761 2010-03-07  Bruno Haible  <bruno@clisp.org>
15762
15763         logb: Provide missing declaration for Cygwin.
15764         * lib/math.in.h (logb): New declaration.
15765         * m4/logb.m4: New file.
15766         * modules/logb (Files): Add m4/logb.m4.
15767         (Depends-on): Add math.
15768         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15769         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15771         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15772         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15773
15774 2010-03-07  Bruno Haible  <bruno@clisp.org>
15775
15776         Fix test-cond link error.
15777         * tests/test-cond.c: Include <stdio.h>.
15778
15779 2010-03-07  Bruno Haible  <bruno@clisp.org>
15780
15781         Fix test-dirent-safer link error.
15782         * modules/dirent-safer-tests (Makefile.am): Define
15783         test_dirent_safer_LDADD.
15784
15785 2010-03-07  Bruno Haible  <bruno@clisp.org>
15786
15787         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15788         among default module list.
15789
15790 2010-03-07  Bruno Haible  <bruno@clisp.org>
15791
15792         Fix link error on platforms with GNU libiconv.
15793         * modules/unistr/u8-strcoll-tests (Makefile): Define
15794         test_u8_strcoll_LDADD.
15795         * modules/unistr/u16-strcoll-tests (Makefile): Define
15796         test_u16_strcoll_LDADD.
15797         * modules/unistr/u32-strcoll-tests (Makefile): Define
15798         test_u32_strcoll_LDADD.
15799
15800 2010-03-07  Bruno Haible  <bruno@clisp.org>
15801
15802         Use POSIX declarations for socket functions.
15803         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15804         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15805         rpl_sendto): Change declaration to match POSIX.
15806         * lib/connect.c (rpl_connect): Likewise.
15807         * lib/accept.c (rpl_accept): Likewise.
15808         * lib/bind.c (rpl_bind): Likewise.
15809         * lib/getpeername.c (rpl_getpeername): Likewise.
15810         * lib/getsockname.c (rpl_getsockname): Likewise.
15811         * lib/recv.c (rpl_recv): Likewise.
15812         * lib/send.c (rpl_send): Likewise.
15813         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15814         * lib/sendto.c (rpl_sendto): Likewise.
15815
15816 2010-03-06  Bruno Haible  <bruno@clisp.org>
15817
15818         Clarify access, euidaccess, faccessat.
15819         * doc/posix-functions/faccessat.texi: Mention security problem under
15820         "Other problems", not "Portability problems".
15821         * doc/posix-functions/access.texi: Likewise. Mention a related security
15822         problem.
15823         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15824         * lib/euidaccess.c: Add comments about platforms.
15825         * lib/unistd.in.h (access, euidaccess): Add warnings.
15826
15827 2010-03-07  Bruno Haible  <bruno@clisp.org>
15828
15829         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15830         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15831         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15832         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15833         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15834         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15835         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15836         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15837         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15838         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15839         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15840         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15841         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15842         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15843         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15844         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15845         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15846         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15847         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15848         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15849         Likewise.
15850         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15851         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15852         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15853         Likewise.
15854         * tests/test-spawn.c (main): Make it work when
15855         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15856
15857 2010-03-07  Bruno Haible  <bruno@clisp.org>
15858
15859         Fix incorrect Makefile.am generation in German locale.
15860         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15861         Execute sed command with character range in C locale.
15862
15863 2010-03-06  Bruno Haible  <bruno@clisp.org>
15864
15865         Tests for module 'iconv-h'.
15866         * modules/iconv-h-tests: New file.
15867         * tests/test-iconv-h.c: New file.
15868
15869         New module 'iconv-h'.
15870         * modules/iconv-h: New file.
15871         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15872         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15873         (configure.ac): Remove gl_ICONV_H.
15874         (Makefile.am): Remove rule for iconv.h.
15875
15876 2010-03-06  Bruno Haible  <bruno@clisp.org>
15877
15878         More consistent naming of *.m4 files.
15879         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15880         * modules/wctype (Files): Update.
15881
15882         More consistent naming of *.m4 files.
15883         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15884         * modules/wchar (Files): Update.
15885
15886 2010-03-06  Jim Meyering  <meyering@redhat.com>
15887
15888         euidaccess: relax license to LGPLv2+
15889         * modules/euidaccess (License): Relax to LGPLv2+.
15890
15891 2010-03-06  Bruno Haible  <bruno@clisp.org>
15892
15893         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15894         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15895         (Makefile.am): Augment lib_SOURCES instead.
15896
15897 2010-03-04  Jim Meyering  <meyering@redhat.com>
15898
15899         utime: remove obsolete module
15900         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15901         unnecessary for years, and has been marked as obsolete for 10 months.
15902         * modules/utime: Remove file.
15903         * lib/utime.c: Remove file.
15904         * m4/utime.m4: Remove file.
15905         * m4/utimes-null.m4: Remove file.
15906         * doc/posix-functions/utime.texi (utime): Remove reference to
15907         the module.  Move the sole "fixed by gnulib" item into the
15908         "problems not fixed by Gnulib" list.
15909         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15910
15911 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15912
15913         * modules/exit (License): Relax license to LGPLv2+.
15914         (Status): Mark as obsolete.
15915         * NEWS: Mention deprecated 'exit' module.
15916         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15917         of now obsolete 'exit'.
15918
15919 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15920
15921         fts-lgpl: remove unused module
15922         * modules/fts-lgpl: Remove.
15923         * MODULES.html.sh (func_all_modules): Adjust.
15924         * check-module (find_included_lib_files): Adjust.
15925         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15926
15927 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15928
15929         copy-acl: enhance Solaris ACL error handling
15930         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15931         * lib/set-mode-acl.c (qset_acl): Likewise.
15932
15933 2010-03-02  Bruno Haible  <bruno@clisp.org>
15934
15935         spawn: Don't override the system defined values on FreeBSD 8.
15936         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15937         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15938         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15939         if HAVE_POSIX_SPAWN is 1.
15940         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15941
15942 2010-03-01  Bruno Haible  <bruno@clisp.org>
15943
15944         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15945         regarding Automake.
15946
15947 2010-02-25  Bruno Haible  <bruno@clisp.org>
15948
15949         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15950         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15951         setting, not afterwards.
15952         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15953
15954 2010-02-24  Eric Blake  <eblake@redhat.com>
15955
15956         bootstrap, git-version-gen: use timestamp
15957         * build-aux/git-version-gen (scriptversion): Force UTC.
15958         * build-aux/bootstrap (scriptversion): New variable.
15959
15960         bootstrap: allow older git
15961         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15962         older than 1.6.4.  Requested by the libvirt project.
15963
15964 2010-02-23  Eric Blake  <eblake@redhat.com>
15965
15966         warn-on-use: work with old autoconf
15967         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15968         AS_VAR semantics of autoconf 2.60.
15969         Reported by Bruno Haible.
15970
15971         bootstrap: improve some comments
15972         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15973         clarification comments.
15974
15975         gettimeofday: provide correct function
15976         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15977         when replacement is declared, otherwise provide gettimeofday.
15978         Reported by Michael Goffioul.
15979
15980 2010-02-23  Jim Meyering  <meyering@redhat.com>
15981
15982         lib-ignore: relax license to "unlimited", not LGPLv2+
15983         * modules/lib-ignore (License): Relax to "unlimited".
15984
15985 2010-02-23  Jim Meyering  <meyering@redhat.com>
15986
15987         lib-ignore: relax license to LGPLv2+
15988         * modules/lib-ignore (License): Relax to LGPLv2+.
15989
15990 2010-02-22  Eric Blake  <eblake@redhat.com>
15991
15992         lseek: avoid bash 3.2 broken pipe bug
15993         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15994         warning from bash 3.2.
15995         Reported by Ben Pfaff, with analysis from Bruno Haible.
15996
15997         bootstrap: support non-FSF copyright holder
15998         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15999         bootstrap.conf override of COPYRIGHT_HOLDER.
16000         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16001
16002         bootstrap: interoperate with gettext 0.14.1
16003         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16004
16005         bootstrap: allow for alternate submodule location
16006         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16007         hardcoding submodule location.
16008         (gnulib_mk): Allow direct use of Makefile.am.
16009
16010         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16011         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16012         rather than reconfiguring where the submodule points.
16013
16014         gettimeofday: restore support for platforms that lack function
16015         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16016         replacement if function is missing.
16017         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16018         * modules/sys_time (Makefile.am): Substitute it.
16019         * lib/sys_time.in.h (gettimeofday): Check it.
16020         Reported by Michael Goffioul.
16021
16022 2010-02-21  Bruno Haible  <bruno@clisp.org>
16023
16024         * lib/stdio.in.h (obstack_printf): Fix typo.
16025
16026 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16027
16028         vc-list-files: use bzr ls's -R option
16029         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16030         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16031
16032 2010-02-21  Jim Meyering  <meyering@redhat.com>
16033
16034         init.sh: fix EXEEXT shims to work also for names like test-prog
16035         * tests/init.sh: Re-exec a better shell, when needed.
16036         If the current shell lacks support for posix $(...), an init.sh-using
16037         test will now try to find a shell that supports that.  If EXEEXT is
16038         nonempty, we also require support for hyphen-in-alias-name and shell
16039         substitutions like ${var#glob}.  Failure to find such a shell results
16040         in a skipped test.
16041
16042 2010-02-21  Bruno Haible  <bruno@clisp.org>
16043
16044         Really work around around "broken pipe" error message from bash 3.2.
16045         * gnulib-tool (func_reset_sigpipe): Remove function.
16046         (echo): In bash 3.2, define to a function that uses printf.
16047         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16048
16049 2010-02-20  Bruno Haible  <bruno@clisp.org>
16050
16051         Restore support for automake 1.9.6 with autoconf 2.61.
16052         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16053         Reported by James Youngman <jay@gnu.org>.
16054
16055 2010-02-20  Bruno Haible  <bruno@clisp.org>
16056
16057         Improve *printf warning condition.
16058         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16059         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16060         and the function is overridden due to SIGPIPE emulation.
16061
16062 2010-02-20  Bruno Haible  <bruno@clisp.org>
16063
16064         * lib/stdio.in.h: Tweak comments.
16065
16066 2010-02-19  Bruno Haible  <bruno@clisp.org>
16067
16068         Make it easier to find modules. New gnulib-tool option '--find'.
16069         * gnulib-tool: New option --find.
16070         (func_usage): Document it.
16071         (func_sanitize_modulelist): New function, extracted from
16072         func_all_modules.
16073         (func_all_modules): Invoke it.
16074         * doc/gnulib-tool.texi (Which modules?): New node.
16075
16076 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16077
16078         * lib/sys_select.in.h: Provide select replacement even if
16079         sys/select.h exists on a system, for Interix.
16080
16081 2010-02-18  Jim Meyering  <meyering@redhat.com>
16082
16083         init.sh: don't use $(...) just yet
16084         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16085         to accommodate e.g., Solaris' /bin/sh.
16086
16087 2010-02-17  Bruno Haible  <bruno@clisp.org>
16088
16089         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16090         Reported by Ludovic Courtès <ludo@gnu.org>.
16091
16092 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16093
16094         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16095         linking with -lintl.
16096
16097 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16098
16099         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16100         if not provided by the system's netdb.h.  Reported by
16101         ludo@gnu.org (Ludovic Courtès).
16102
16103 2010-02-15  Jim Meyering  <meyering@redhat.com>
16104
16105         init.sh: improve portability and efficiency
16106         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16107         "dummy" in a for loop.
16108         Use '!', not '^' to select the complement of a character set used
16109         in a "case" statement.
16110         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16111         Suggestions from Eric Blake.
16112
16113         init.sh: automatically accommodate programs with the .exe suffix
16114         Automatically arrange for an invocation of "prog" to execute the
16115         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16116         may use the simpler "prog", yet still work when built on a system
16117         that requires specifying the added suffix.
16118         Do this by constructing a function named "prog" that invokes
16119         "prog.exe" for each .exe file in selected directories.
16120         * tests/init.sh (find_exe_basenames_): New function.
16121         (create_exe_shim_functions_): New function.
16122         (path_prepend_): Use it.
16123
16124         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16125         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16126         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16127
16128 2010-02-14  Jim Meyering  <meyering@redhat.com>
16129
16130         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16131         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16132         (sc_prohibit_hash_pjw_without_use): New rule.
16133
16134         maint.mk: allow the default upload destination dir to be overridden
16135         * top/maint.mk (upload_dest_dir_): Define with a default that
16136         preserves the status quo.
16137         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16138         Reported by Peter Simons.
16139
16140         maint.mk: prohibit inclusion of "hash.h" without_use
16141         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16142
16143 2010-02-10  Jim Meyering  <meyering@redhat.com>
16144
16145         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16146         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16147
16148 2010-02-09  Eric Blake  <ebb9@byu.net>
16149         and Bruno Haible  <bruno@clisp.org>
16150
16151         obstack-printf-posix: ensure declaration
16152         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16153         extracted from gl_FUNC_OBSTACK_PRINTF.
16154         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16155         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16156         Likewise.
16157         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16158         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16159         0.
16160
16161 2010-02-08  Bruno Haible  <bruno@clisp.org>
16162
16163         gnulib-tool: Fix typo in 2010-02-07 commit.
16164         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16165         Reported by Eric Blake.
16166
16167 2010-02-07  Bruno Haible  <bruno@clisp.org>
16168
16169         gnulib-tool: Fix up caching patches.
16170         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16171         option --no-cache. Use associative arrays when supported by the shell.
16172         (sed_comments): New variable.
16173         (modcache): Renamed from do_cache.
16174         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16175         abbreviate unnecessarily.
16176         (have_associative): New variable.
16177         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16178         way also for ksh and zsh.
16179         (func_init_sed_convert_to_cache_statements): New function, extracted
16180         from func_cache_lookup_module. Add support for associative arrays.
16181         Don't set the c_MODULE_cached variable here. Ignore all lines before
16182         the first field header. Remove only the final newline, not all trailing
16183         newlines. Support empty fields correctly. Limit the use of 'eval' to
16184         assignments.
16185         (func_get_description, func_get_status, func_get_notice,
16186         func_get_applicability, func_get_filelist, func_get_dependencies,
16187         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16188         func_get_automake_snippet, func_get_include_directive,
16189         func_get_link_directive, func_get_license, func_get_maintainer):
16190         Update documentation. List the unoptimized code first. Add support for
16191         associative arrays. Limit the use of 'eval' to assignments.
16192         (func_get_applicability): Undo stylistic pessimisations.
16193         (func_get_automake_snippet, func_get_include_directive): Reduce code
16194         duplication.
16195         (func_modules_transitive_closure, func_modules_add_dummy,
16196         func_modules_notice, func_modules_to_filelist, func_add_file,
16197         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16198         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16199         func_create_testdir, func_create_megatestdir): Update documentation.
16200
16201 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16202
16203         * gnulib-tool (func_cache_lookup_module): Store the module name
16204         belonging to the cache variable; error out if two different
16205         module names map to the same cache variable name.
16206
16207 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16208
16209         gnulib-tool: Make caching optional.
16210         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16211         Update matching short versions of --no-changelog.
16212         (func_usage): Update.
16213         (sed_extract_cache_prog): Renamed from ...
16214         (sed_extract_prog): ... this; revert to old extraction script.
16215         (func_get_description, func_get_status)
16216         (func_get_notice, func_get_applicability, func_get_filelist)
16217         (func_get_dependencies, func_get_autoconf_early_snippet)
16218         (func_get_autoconf_snippet, func_get_automake_snippet)
16219         (func_get_include_directive, func_get_link_directive)
16220         (func_get_license, func_get_maintainer): If $do_cache is false,
16221         use old, non-caching extraction scripts.
16222         Suggestion by Bruno Haible.
16223
16224 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16225
16226         gnulib-tool: cache module metainformation.
16227         * gnulib-tool (sed_extract_prog): Match newline before each
16228         header, and rewrite header to a shell variable suffix.
16229         (func_cache_var, func_cache_lookup_module): New functions,
16230         to turn a module name into a cache variable prefix, and to
16231         look up and cache module metainformation.
16232         (func_get_description, func_get_status)
16233         (func_get_notice, func_get_applicability, func_get_filelist)
16234         (func_get_dependencies, func_get_autoconf_early_snippet)
16235         (func_get_autoconf_snippet, func_get_automake_snippet)
16236         (func_get_include_directive, func_get_link_directive)
16237         (func_get_license, func_get_maintainer): Use
16238         func_cache_lookup_module.
16239
16240 2010-02-07  Bruno Haible  <bruno@clisp.org>
16241
16242         fnctl: Fix missing dependency.
16243         * modules/fcntl (Depends-on): Add getdtablesize.
16244         Reported by John W. Eaton <jwe@gnu.org>.
16245
16246 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16247
16248         Argp: fix recognition of short alias options.
16249
16250         * lib/argp-parse.c (convert_options): Fix improper use of
16251         `|' between character values.
16252         * tests/test-argp.c (group1_option): New alias option
16253         --read (-r).
16254         (group1_parser): Special handling for 'r'.
16255         (test15): New test case.
16256         (test_fun): Add test15.
16257         * tests/test-argp-2.sh: Update expected --help and --usage
16258         outputs.
16259
16260 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16261
16262         * tests/test-argp.c: Fix indentation.
16263
16264 2010-02-04  Eric Blake  <ebb9@byu.net>
16265
16266         gettimeofday: expose type of second argument
16267         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16268         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16269         * tests/test-gettimeofday.c: Use it to silence warning.
16270         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16271         the issue.
16272
16273 2010-02-03  Jim Meyering  <meyering@redhat.com>
16274
16275         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16276         * lib/regcomp.c (TYPE_SIGNED): Define.
16277         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16278
16279         regcomp.c: avoid a new -Wshadow warning
16280         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16281
16282 2010-02-01  Jim Meyering  <meyering@redhat.com>
16283
16284         removing useless parentheses in cpp #define directives
16285         For motivation, see commit c0221df4, "define STREQ(a,b)
16286         consistently, removing useless parentheses"
16287         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16288         * lib/mountlist.c (MNT_IGNORE): Likewise.
16289         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16290
16291 2010-02-01  Eric Blake  <ebb9@byu.net>
16292
16293         sys_time: use link-warning
16294         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16295         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16296         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16297         * modules/sys_time (Depends-on): Add warn-on-use.
16298         (Makefile.am): Always build replacement.
16299         (configure.ac): Update substitutions.
16300         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16301         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16302         bother with SYS_TIME_H.
16303         * modules/gettimeofday (configure.ac): Declare indicator.
16304         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16305         in use.
16306
16307         closein-tests: silence compiler warning
16308         * tests/test-closein.c (main): Ignore fread result.
16309         * modules/closein-tests (Depends-on): Add ignore-value.
16310
16311         tests: silence warning about system return
16312         * tests/test-areadlink-with-size.c (main): Ignore system result.
16313         * tests/test-areadlink.c (main): Likewise.
16314         * tests/test-areadlinkat-with-size.c (main): Likewise.
16315         * tests/test-areadlinkat.c (main): Likewise.
16316         * tests/test-canonicalize-lgpl.c (main): Likewise.
16317         * tests/test-canonicalize.c (main): Likewise.
16318         * tests/test-chown.c (main): Likewise.
16319         * tests/test-fchownat.c (main): Likewise.
16320         * tests/test-fdutimensat.c (main): Likewise.
16321         * tests/test-fstatat.c (main): Likewise.
16322         * tests/test-futimens.c (main): Likewise.
16323         * tests/test-lchown.c (main): Likewise.
16324         * tests/test-link.c (main): Likewise.
16325         * tests/test-linkat.c (main): Likewise.
16326         * tests/test-lstat.c (main): Likewise.
16327         * tests/test-mkdir.c (main): Likewise.
16328         * tests/test-mkdirat.c (main): Likewise.
16329         * tests/test-mkfifo.c (main): Likewise.
16330         * tests/test-mkfifoat.c (main): Likewise.
16331         * tests/test-mknod.c (main): Likewise.
16332         * tests/test-readlink.c (main): Likewise.
16333         * tests/test-remove.c (main): Likewise.
16334         * tests/test-rename.c (main): Likewise.
16335         * tests/test-renameat.c (main): Likewise.
16336         * tests/test-rmdir.c (main): Likewise.
16337         * tests/test-symlink.c (main): Likewise.
16338         * tests/test-symlinkat.c (main): Likewise.
16339         * tests/test-unlink.c (main): Likewise.
16340         * tests/test-unlinkat.c (main): Likewise.
16341         * tests/test-utimens.c (main): Likewise.
16342         * tests/test-utimensat.c (main): Likewise.
16343         * modules/areadlink-tests (Depends-on): Add ignore-value.
16344         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16345         * modules/areadlinkat-tests (Depends-on): Likewise.
16346         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16347         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16348         * modules/canonicalize-tests (Depends-on): Likewise.
16349         * modules/chown-tests (Depends-on): Likewise.
16350         * modules/fdutimensat-tests (Depends-on): Likewise.
16351         * modules/futimens-tests (Depends-on): Likewise.
16352         * modules/lchown-tests (Depends-on): Likewise.
16353         * modules/link-tests (Depends-on): Likewise.
16354         * modules/linkat-tests (Depends-on): Likewise.
16355         * modules/lstat-tests (Depends-on): Likewise.
16356         * modules/mkdir-tests (Depends-on): Likewise.
16357         * modules/mkfifo-tests (Depends-on): Likewise.
16358         * modules/mkfifoat-tests (Depends-on): Likewise.
16359         * modules/mknod-tests (Depends-on): Likewise.
16360         * modules/openat-tests (Depends-on): Likewise.
16361         * modules/readlink-tests (Depends-on): Likewise.
16362         * modules/remove-tests (Depends-on): Likewise.
16363         * modules/rename-tests (Depends-on): Likewise.
16364         * modules/renameat-tests (Depends-on): Likewise.
16365         * modules/rmdir-tests (Depends-on): Likewise.
16366         * modules/symlink-tests (Depends-on): Likewise.
16367         * modules/symlinkat-tests (Depends-on): Likewise.
16368         * modules/unlink-tests (Depends-on): Likewise.
16369         * modules/utimens-tests (Depends-on): Likewise.
16370         * modules/utimensat-tests (Depends-on): Likewise.
16371
16372 2010-01-31  Bruno Haible  <bruno@clisp.org>
16373
16374         Perform the same test for many <math.h> functions.
16375         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16376         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16377         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16378         of gl_MATHFUNC.
16379         * modules/acos (configure.ac): Likewise.
16380         * modules/asin (configure.ac): Likewise.
16381         * modules/atan (configure.ac): Likewise.
16382         * modules/atan2 (configure.ac): Likewise.
16383         * modules/cbrt (configure.ac): Likewise.
16384         * modules/copysign (configure.ac): Likewise.
16385         * modules/cos (configure.ac): Likewise.
16386         * modules/cosh (configure.ac): Likewise.
16387         * modules/erf (configure.ac): Likewise.
16388         * modules/erfc (configure.ac): Likewise.
16389         * modules/exp (configure.ac): Likewise.
16390         * modules/fmod (configure.ac): Likewise.
16391         * modules/hypot (configure.ac): Likewise.
16392         * modules/j0 (configure.ac): Likewise.
16393         * modules/j1 (configure.ac): Likewise.
16394         * modules/jn (configure.ac): Likewise.
16395         * modules/lgamma (configure.ac): Likewise.
16396         * modules/log (configure.ac): Likewise.
16397         * modules/log10 (configure.ac): Likewise.
16398         * modules/log1p (configure.ac): Likewise.
16399         * modules/pow (configure.ac): Likewise.
16400         * modules/remainder (configure.ac): Likewise.
16401         * modules/sin (configure.ac): Likewise.
16402         * modules/sinh (configure.ac): Likewise.
16403         * modules/tan (configure.ac): Likewise.
16404         * modules/tanh (configure.ac): Likewise.
16405         * modules/y0 (configure.ac): Likewise.
16406         * modules/y1 (configure.ac): Likewise.
16407         * modules/yn (configure.ac): Likewise.
16408         Suggested by Paolo Bonzini.
16409
16410 2010-01-31  Bruno Haible  <bruno@clisp.org>
16411
16412         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16413
16414 2010-01-31  Bruno Haible  <bruno@clisp.org>
16415
16416         Work around getdelim() bug on FreeBSD 8.0.
16417         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16418         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16419         not work.
16420         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16421         is 1.
16422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16423         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16424         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16425         a non-zero size.
16426         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16427
16428 2010-01-31  Bruno Haible  <bruno@clisp.org>
16429
16430         Work around getline() bug on FreeBSD 8.0.
16431         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16432         and a non-zero size.
16433         * tests/test-getline.c (main): Likewise.
16434         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16435         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16436
16437 2010-01-28  Eric Blake  <ebb9@byu.net>
16438
16439         regex: fix build failure
16440         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16441         platforms.
16442
16443 2010-01-28  Jim Meyering  <meyering@redhat.com>
16444
16445         regex: do not ignore memory allocation failure
16446         * lib/regex_internal.c (create_cd_newstate): Detect
16447         re_node_set_init_copy failure.   Extracted from glibc commit
16448         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16449
16450         regex: sync more white-space changes from libc
16451         * lib/regex_internal.c: White-space only changes.
16452         * lib/regexec.c: Likewise.
16453
16454         regex: add many uses of __attribute_warn_unused_result__
16455         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16456         * lib/regexec.c: Likewise.
16457         Extracted from a messy glibc commit.
16458
16459         regcomp.c: spelling and merge-artifact from glibc
16460         * lib/regcomp.c: Merge remainder of glibc's
16461         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16462
16463         regcomp.c: sync white-space changes from glibc
16464         * lib/regcomp.c: Merge to accommodate white space
16465         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16466
16467         regcomp.c: do not ignore internal return values
16468         * lib/regcomp.c: Do not ignore internal return values.
16469         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16470         but without its white-space changes and spelling fixes.
16471
16472         regex_internal.h: define __attribute_warn_unused_result__
16473         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16474
16475         maint: add a syntax-check rule to check for vulnerable Makefile.in
16476         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16477
16478 2010-01-27  Jim Meyering  <meyering@redhat.com>
16479
16480         ncftpput-ftp: clean up spaces
16481         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16482         Remove trailing blanks.
16483
16484 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16485
16486         * build-aux/git-version-gen: Fix copyright statement.
16487         * build-aux/gnupload: Likewise.
16488         * tests/test-arcfour.c: Likewise.
16489         * tests/test-arctwo.c: Likewise.
16490         * tests/test-count-one-bits.c: Likewise.
16491         * tests/test-crc.c: Likewise.
16492         * tests/test-des.c: Likewise.
16493         * tests/test-gc-arcfour.c: Likewise.
16494         * tests/test-gc-arctwo.c: Likewise.
16495         * tests/test-gc-des.c: Likewise.
16496         * tests/test-gc-hmac-md5.c: Likewise.
16497         * tests/test-gc-hmac-sha1.c: Likewise.
16498         * tests/test-gc-md2.c: Likewise.
16499         * tests/test-gc-md4.c: Likewise.
16500         * tests/test-gc-md5.c: Likewise.
16501         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16502         * tests/test-gc-rijndael.c: Likewise.
16503         * tests/test-gc-sha1.c: Likewise.
16504         * tests/test-gc.c: Likewise.
16505         * tests/test-gethostname.c: Likewise.
16506         * tests/test-gettimeofday.c: Likewise.
16507         * tests/test-hash.c: Likewise.
16508         * tests/test-hmac-md5.c: Likewise.
16509         * tests/test-hmac-sha1.c: Likewise.
16510         * tests/test-md2.c: Likewise.
16511         * tests/test-md4.c: Likewise.
16512         * tests/test-md5.c: Likewise.
16513         * tests/test-memchr.c: Likewise.
16514         * tests/test-memchr2.c: Likewise.
16515         * tests/test-memcmp.c: Likewise.
16516         * tests/test-memmem.c: Likewise.
16517         * tests/test-memrchr.c: Likewise.
16518         * tests/test-rawmemchr.c: Likewise.
16519         * tests/test-read-file.c: Likewise.
16520         * tests/test-rijndael.c: Likewise.
16521         * tests/test-sockets.c: Likewise.
16522         * tests/test-strchrnul.c: Likewise.
16523         * tests/test-strstr.c: Likewise.
16524         * tests/test-strtod.c: Likewise.
16525         * build-aux/ncftpput-ftp: Likewise.
16526
16527 2010-01-26  Eric Blake  <ebb9@byu.net>
16528
16529         ignore-value: update recommended header name
16530         * modules/ignore-value (Include): Only use <> for headers that
16531         exist in glibc.
16532
16533 2010-01-26  Jim Meyering  <meyering@redhat.com>
16534
16535         test-userspec.c: avoid compiler warnings
16536         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16537         and "initialization discards qualifiers..." warnings.
16538         Put the first "uid" in its own scope, and make char* members "const".
16539
16540 2010-01-25  Bruno Haible  <bruno@clisp.org>
16541
16542         gnulib-tool: Make warning diagnostics consistent.
16543         * gnulib-tool (func_warning): New function.
16544         Use it everywhere where gnulib-tool produces output to stderr and it is
16545         not a fatal error.
16546
16547 2010-01-25  Bruno Haible  <bruno@clisp.org>
16548
16549         Fix test dependencies.
16550         * modules/xstrtol-tests (Depends-on): Add inttypes.
16551         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16552
16553 2010-01-25 Pádraig Brady <P@draigBrady.com>
16554
16555         syntax-check: detect incorrect boolean macro values in config.h
16556         * modules/maintainer-makefile (configure.ac): Parameterize the location
16557         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16558         The logic is from Eric Blake and the location indicated by Jim Meyering.
16559         Note the more natural CONFIG_HEADER name is prohibited by automake
16560         for backwards compatibility reasons.
16561         * top/maint.mk (sc_Wundef_boolean): New rule.
16562
16563 2010-01-25  Jim Meyering  <meyering@redhat.com>
16564
16565         bootstrap: detect MacOS 10.6's shasum, too
16566         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16567         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16568
16569 2010-01-23  Jim Meyering  <meyering@redhat.com>
16570
16571         xstrtoll: new module
16572         * modules/xstrtoll: New file.
16573         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16574         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16575         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16576         ./configure fails if you use this module and lack "long long".
16577         * modules/xstrtoll-tests: New module.
16578         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16579         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16580         new init.sh-based test framework.
16581
16582 2010-01-24  Bruno Haible  <bruno@clisp.org>
16583
16584         Tests for module 'yn'.
16585         * modules/yn-tests: New file.
16586         * tests/test-yn.c: New file.
16587
16588         Tests for module 'y1'.
16589         * modules/y1-tests: New file.
16590         * tests/test-y1.c: New file.
16591
16592         Tests for module 'y0'.
16593         * modules/y0-tests: New file.
16594         * tests/test-y0.c: New file.
16595
16596         Tests for module 'tanh'.
16597         * modules/tanh-tests: New file.
16598         * tests/test-tanh.c: New file.
16599
16600         Tests for module 'tan'.
16601         * modules/tan-tests: New file.
16602         * tests/test-tan.c: New file.
16603
16604         Tests for module 'sqrt'.
16605         * modules/sqrt-tests: New file.
16606         * tests/test-sqrt.c: New file.
16607
16608         Tests for module 'sinh'.
16609         * modules/sinh-tests: New file.
16610         * tests/test-sinh.c: New file.
16611
16612         Tests for module 'sin'.
16613         * modules/sin-tests: New file.
16614         * tests/test-sin.c: New file.
16615
16616         Tests for module 'rint'.
16617         * modules/rint-tests: New file.
16618         * tests/test-rint.c: New file.
16619
16620         Tests for module 'remainder'.
16621         * modules/remainder-tests: New file.
16622         * tests/test-remainder.c: New file.
16623
16624         Tests for module 'pow'.
16625         * modules/pow-tests: New file.
16626         * tests/test-pow.c: New file.
16627
16628         Tests for module 'nextafter'.
16629         * modules/nextafter-tests: New file.
16630         * tests/test-nextafter.c: New file.
16631
16632         Tests for module 'modf'.
16633         * modules/modf-tests: New file.
16634         * tests/test-modf.c: New file.
16635
16636         Tests for module 'logb'.
16637         * modules/logb-tests: New file.
16638         * tests/test-logb.c: New file.
16639
16640         Tests for module 'log1p'.
16641         * modules/log1p-tests: New file.
16642         * tests/test-log1p.c: New file.
16643
16644         Tests for module 'log10'.
16645         * modules/log10-tests: New file.
16646         * tests/test-log10.c: New file.
16647
16648         Tests for module 'log'.
16649         * modules/log-tests: New file.
16650         * tests/test-log.c: New file.
16651
16652         Tests for module 'lgamma'.
16653         * modules/lgamma-tests: New file.
16654         * tests/test-lgamma.c: New file.
16655
16656         Tests for module 'ldexp'.
16657         * modules/ldexp-tests: New file.
16658         * tests/test-ldexp.c: New file.
16659
16660         Tests for module 'jn'.
16661         * modules/jn-tests: New file.
16662         * tests/test-jn.c: New file.
16663
16664         Tests for module 'j1'.
16665         * modules/j1-tests: New file.
16666         * tests/test-j1.c: New file.
16667
16668         Tests for module 'j0'.
16669         * modules/j0-tests: New file.
16670         * tests/test-j0.c: New file.
16671
16672         Tests for module 'hypot'.
16673         * modules/hypot-tests: New file.
16674         * tests/test-hypot.c: New file.
16675
16676         Tests for module 'fmod'.
16677         * modules/fmod-tests: New file.
16678         * tests/test-fmod.c: New file.
16679
16680         Tests for module 'fabs'.
16681         * modules/fabs-tests: New file.
16682         * tests/test-fabs.c: New file.
16683
16684         Tests for module 'exp'.
16685         * modules/exp-tests: New file.
16686         * tests/test-exp.c: New file.
16687
16688         Tests for module 'erfc'.
16689         * modules/erfc-tests: New file.
16690         * tests/test-erfc.c: New file.
16691
16692         Tests for module 'erf'.
16693         * modules/erf-tests: New file.
16694         * tests/test-erf.c: New file.
16695
16696         Tests for module 'cosh'.
16697         * modules/cosh-tests: New file.
16698         * tests/test-cosh.c: New file.
16699
16700         Tests for module 'cos'.
16701         * modules/cos-tests: New file.
16702         * tests/test-cos.c: New file.
16703
16704         Tests for module 'copysign'.
16705         * modules/copysign-tests: New file.
16706         * tests/test-copysign.c: New file.
16707
16708         Tests for module 'cbrt'.
16709         * modules/cbrt-tests: New file.
16710         * tests/test-cbrt.c: New file.
16711
16712         Tests for module 'atan2'.
16713         * modules/atan2-tests: New file.
16714         * tests/test-atan2.c: New file.
16715
16716         Tests for module 'atan'.
16717         * modules/atan-tests: New file.
16718         * tests/test-atan.c: New file.
16719
16720         Tests for module 'asin'.
16721         * modules/asin-tests: New file.
16722         * tests/test-asin.c: New file.
16723
16724         Tests for module 'acos'.
16725         * modules/acos-tests: New file.
16726         * tests/test-acos.c: New file.
16727
16728 2010-01-24  Bruno Haible  <bruno@clisp.org>
16729
16730         Fix tests for common <math.h> functions.
16731         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16732         code snippet that references the function pointer, rather than merely
16733         calling the function. Substitute the FUNC_LIBM variable.
16734         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16735         * modules/acos (configure.ac): Likewise.
16736         * modules/asin (configure.ac): Likewise.
16737         * modules/atan (configure.ac): Likewise.
16738         * modules/atan2 (configure.ac): Likewise.
16739         * modules/cbrt (configure.ac): Likewise.
16740         * modules/copysign (configure.ac): Likewise.
16741         * modules/cos (configure.ac): Likewise.
16742         * modules/cosh (configure.ac): Likewise.
16743         * modules/erf (configure.ac): Likewise.
16744         * modules/erfc (configure.ac): Likewise.
16745         * modules/exp (configure.ac): Likewise.
16746         * modules/fabs (configure.ac): Likewise.
16747         * modules/fmod (configure.ac): Likewise.
16748         * modules/hypot (configure.ac): Likewise.
16749         * modules/j0 (configure.ac): Likewise.
16750         * modules/j1 (configure.ac): Likewise.
16751         * modules/jn (configure.ac): Likewise.
16752         * modules/ldexp (configure.ac): Likewise.
16753         * modules/lgamma (configure.ac): Likewise.
16754         * modules/log (configure.ac): Likewise.
16755         * modules/log10 (configure.ac): Likewise.
16756         * modules/log1p (configure.ac): Likewise.
16757         * modules/logb (configure.ac): Likewise.
16758         * modules/modf (configure.ac): Likewise.
16759         * modules/nextafter (configure.ac): Likewise.
16760         * modules/pow (configure.ac): Likewise.
16761         * modules/remainder (configure.ac): Likewise.
16762         * modules/rint (configure.ac): Likewise.
16763         * modules/sin (configure.ac): Likewise.
16764         * modules/sinh (configure.ac): Likewise.
16765         * modules/tan (configure.ac): Likewise.
16766         * modules/tanh (configure.ac): Likewise.
16767         * modules/y0 (configure.ac): Likewise.
16768         * modules/y1 (configure.ac): Likewise.
16769         * modules/yn (configure.ac): Likewise.
16770
16771 2010-01-24  Bruno Haible  <bruno@clisp.org>
16772
16773         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16774         * tests/test-acosl.c (x): New variable.
16775         (main): Store argument in x and fetch it from x.
16776         * tests/test-asinl.c (x): New variable.
16777         (main): Store argument in x and fetch it from x.
16778         * tests/test-atanl.c (x): New variable.
16779         (main): Store argument in x and fetch it from x.
16780         * tests/test-cosl.c (x): New variable.
16781         (main): Store argument in x and fetch it from x.
16782         * tests/test-expl.c (x): New variable.
16783         (main): Store argument in x and fetch it from x.
16784         * tests/test-logl.c (x): New variable.
16785         (main): Store argument in x and fetch it from x.
16786         * tests/test-sinl.c (x): New variable.
16787         (main): Store argument in x and fetch it from x.
16788         * tests/test-sqrtl.c (x): New variable.
16789         (main): Store argument in x and fetch it from x.
16790         * tests/test-tanl.c (x): New variable.
16791         (main): Store argument in x and fetch it from x.
16792
16793 2010-01-24  Bruno Haible  <bruno@clisp.org>
16794
16795         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16796         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16797         assignments to the initial TESTS_ENVIRONMENT.
16798         * doc/gnulib.texi (Unit test modules): Document it.
16799         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16800         TESTS_ENVIRONMENT.
16801         * modules/btowc-tests (Makefile.am): Likewise.
16802         * modules/c-stack-tests (Makefile.am): Likewise.
16803         * modules/c-strcase-tests (Makefile.am): Likewise.
16804         * modules/copy-file-tests (Makefile.am): Likewise.
16805         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16806         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16807         * modules/mbrtowc-tests (Makefile.am): Likewise.
16808         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16809         * modules/mbscasestr-tests (Makefile.am): Likewise.
16810         * modules/mbschr-tests (Makefile.am): Likewise.
16811         * modules/mbscspn-tests (Makefile.am): Likewise.
16812         * modules/mbsinit-tests (Makefile.am): Likewise.
16813         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16814         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16815         * modules/mbspbrk-tests (Makefile.am): Likewise.
16816         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16817         * modules/mbsrchr-tests (Makefile.am): Likewise.
16818         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16819         * modules/mbsspn-tests (Makefile.am): Likewise.
16820         * modules/mbsstr-tests (Makefile.am): Likewise.
16821         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16822         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16823         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16824         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16825         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16826         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16827         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16828         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16829         * modules/wcrtomb-tests (Makefile.am): Likewise.
16830         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16831         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16832         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16833         assignments from TESTS_ENVIRONMENT.
16834         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16835         augmentation.
16836         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16837         * modules/atexit-tests (Makefile.am): Likewise.
16838         * modules/binary-io-tests (Makefile.am): Likewise.
16839         * modules/closein-tests (Makefile.am): Likewise.
16840         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16841         * modules/exclude-tests (Makefile.am): Likewise.
16842         * modules/fflush-tests (Makefile.am): Likewise.
16843         * modules/fpending-tests (Makefile.am): Likewise.
16844         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16845         * modules/freadahead-tests (Makefile.am): Likewise.
16846         * modules/freadptr-tests (Makefile.am): Likewise.
16847         * modules/freadseek-tests (Makefile.am): Likewise.
16848         * modules/fseek-tests (Makefile.am): Likewise.
16849         * modules/fseeko-tests (Makefile.am): Likewise.
16850         * modules/ftell-tests (Makefile.am): Likewise.
16851         * modules/ftello-tests (Makefile.am): Likewise.
16852         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16853         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16854         * modules/lseek-tests (Makefile.am): Likewise.
16855         * modules/parse-duration-tests (Makefile.am): Likewise.
16856         * modules/perror-tests (Makefile.am): Likewise.
16857         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16858         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16859         * modules/pipe-tests (Makefile.am): Likewise.
16860         * modules/pread-tests (Makefile.am): Likewise.
16861         * modules/printf-posix-tests (Makefile.am): Likewise.
16862         * modules/select-tests (Makefile.am): Likewise.
16863         * modules/sigpipe-tests (Makefile.am): Likewise.
16864         * modules/tsearch-tests (Makefile.am): Likewise.
16865         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16866         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16867         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16868         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16869         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16870         * modules/version-etc-tests (Makefile.am): Likewise.
16871         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16872         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16873         * modules/xalloc-die-tests (Makefile.am): Likewise.
16874         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16875         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16876         * modules/xstrtol-tests (Makefile.am): Likewise.
16877         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16878         * modules/yesno-tests (Makefile.am): Likewise.
16879         Suggested by Jim Meyering.
16880
16881 2010-01-24  Bruno Haible  <bruno@clisp.org>
16882
16883         More documentation.
16884         * doc/gnulib.texi (Writing modules): New chapter.
16885         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16886         the new chapter.
16887
16888 2010-01-24  Jim Meyering  <meyering@redhat.com>
16889
16890         maint.mk: do not prepend "./" after filtering
16891         * top/maint.mk (_prepend_srcdir_prefix): New variable
16892         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16893         "./" when $(srcdir) is ".".
16894
16895         define STREQ(a,b) consistently, removing useless parentheses
16896         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16897         since the only risk is that "a" or "b" contains an unparenthesized
16898         comma, but if either did that, STREQ would have 3 or more arguments.
16899         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16900         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16901         * lib/hash-triple.c (STREQ): Likewise.
16902         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16903         * lib/getugroups.c (STREQ): Likewise.
16904
16905 2010-01-23  Jim Meyering  <meyering@redhat.com>
16906
16907         maint.mk: fix syntax-check in a non-srcdir build directory
16908         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16909         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16910
16911 2010-01-22  Jim Meyering  <meyering@redhat.com>
16912
16913         userspec: add unit tests
16914         * tests/test-userspec.c: New file.
16915         * modules/userspec-tests: Likewise.
16916
16917 2010-01-21  Jim Meyering  <meyering@redhat.com>
16918
16919         maint.mk: handle source file names containing "." robustly
16920         * top/maint.mk (_dot_escaped_srcdir): Define.
16921         (VC_LIST): Use it in LHS of sed substitution.
16922
16923 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16924
16925         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16926         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16927         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16928         from a non-srcdir build.
16929
16930 2010-01-20  Eric Blake  <ebb9@byu.net>
16931
16932         warn-on-use: use instead of link-warning
16933         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16934         * modules/unistd (Depends-on, Makefile.am): Likewise.
16935         * modules/arpa_inet (Depends-on): Replace link-warning with
16936         warn-on-use.
16937         (Makefile.am): Update rules accordingly.
16938         * modules/ctype (Depends-on, Makefile.am): Likewise.
16939         * modules/dirent (Depends-on, Makefile.am): Likewise.
16940         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16941         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16942         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16943         * modules/locale (Depends-on, Makefile.am): Likewise.
16944         * modules/math (Depends-on, Makefile.am): Likewise.
16945         * modules/search (Depends-on, Makefile.am): Likewise.
16946         * modules/signal (Depends-on, Makefile.am): Likewise.
16947         * modules/spawn (Depends-on, Makefile.am): Likewise.
16948         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16949         * modules/string (Depends-on, Makefile.am): Likewise.
16950         * modules/strings (Depends-on, Makefile.am): Likewise.
16951         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16952         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16953         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16954         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16955         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16956         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16957         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16958         * modules/wchar (Depends-on, Makefile.am): Likewise.
16959         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16960         should be poisoned.
16961         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16962         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16963         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16964         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16965         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16966         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16967         * m4/math_h.m4 (gl_MATH_H): Likewise.
16968         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16969         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16970         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16971         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16972         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16973         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16974         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16975         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16976         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16979         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16980         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16981         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16982         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16983         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16984         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16985         GL_LINK_WARNING.
16986         * lib/ctype.in.h: Likewise.
16987         * lib/dirent.in.h: Likewise.
16988         * lib/fcntl.in.h: Likewise.
16989         * lib/inttypes.in.h: Likewise.
16990         * lib/langinfo.in.h: Likewise.
16991         * lib/locale.in.h: Likewise.
16992         * lib/math.in.h: Likewise.
16993         * lib/search.in.h: Likewise.
16994         * lib/signal.in.h: Likewise.
16995         * lib/spawn.in.h: Likewise.
16996         * lib/stdio.in.h: Likewise.
16997         * lib/stdlib.in.h: Likewise.
16998         * lib/string.in.h: Likewise.
16999         * lib/strings.in.h: Likewise.
17000         * lib/sys_file.in.h: Likewise.
17001         * lib/sys_ioctl.in.h: Likewise.
17002         * lib/sys_select.in.h: Likewise.
17003         * lib/sys_socket.in.h: Likewise.
17004         * lib/sys_stat.in.h: Likewise.
17005         * lib/sys_times.in.h: Likewise.
17006         * lib/sys_utsname.in.h: Likewise.
17007         * lib/unistd.in.h: Likewise.
17008         * lib/wchar.in.h: Likewise.
17009
17010 2010-01-20  Bruno Haible  <bruno@clisp.org>
17011
17012         Avoid duplicate -lm.
17013         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17014         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17015         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17016         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17017         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17018         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17019         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17020         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17021         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17022         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17023         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17024         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17025         Reported by Paolo Bonzini.
17026
17027 2010-01-19  Bruno Haible  <bruno@clisp.org>
17028
17029         langinfo, nl_langinfo: Relicense under LGPLv2+.
17030         * modules/langinfo (License): Change to LGPLv2+.
17031         * modules/nl_langinfo (License): Likewise.
17032         Patch by David Lutterkort <lutter@redhat.com>.
17033
17034 2010-01-19  Bruno Haible  <bruno@clisp.org>
17035
17036         Avoid compilation error with cc on OSF/1 5.1.
17037         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17038         statement, not before.
17039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17040
17041 2010-01-18  Bruno Haible  <bruno@clisp.org>
17042
17043         Avoid a link error due to the __printf__ symbol.
17044         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17045         and 2.6.x.
17046         (__format__, __printf__): Remove definitions.
17047         * lib/argp-fmtstream.h: Likewise.
17048         * lib/argp.h: Likewise.
17049         * lib/error.h: Likewise.
17050         * lib/vasnprintf.h: Likewise.
17051         * lib/xprintf.h: Likewise.
17052         * lib/xvasprintf.h: Likewise.
17053         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17054
17055 2010-01-18  Bruno Haible  <bruno@clisp.org>
17056
17057         Tests for module 'tanl'.
17058         * modules/tanl-tests: New file.
17059         * tests/test-tanl.c: New file.
17060
17061         Tests for module 'sqrtl'.
17062         * modules/sqrtl-tests: New file.
17063         * tests/test-sqrtl.c: New file.
17064
17065         Tests for module 'sinl'.
17066         * modules/sinl-tests: New file.
17067         * tests/test-sinl.c: New file.
17068
17069         Tests for module 'logl'.
17070         * modules/logl-tests: New file.
17071         * tests/test-logl.c: New file.
17072
17073         Tests for module 'expl'.
17074         * modules/expl-tests: New file.
17075         * tests/test-expl.c: New file.
17076
17077         Tests for module 'cosl'.
17078         * modules/cosl-tests: New file.
17079         * tests/test-cosl.c: New file.
17080
17081         Tests for module 'atanl'.
17082         * modules/atanl-tests: New file.
17083         * tests/test-atanl.c: New file.
17084
17085         Tests for module 'asinl'.
17086         * modules/asinl-tests: New file.
17087         * tests/test-asinl.c: New file.
17088
17089         Tests for module 'acosl'.
17090         * modules/acosl-tests: New file.
17091         * tests/test-acosl.c: New file.
17092
17093         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17094         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17095         tanl): Use the standard gnulib idiom.
17096         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17097         * lib/sinl.c: Likewise.
17098         * lib/tanl.c: Don't include trigl.c.
17099         (kernel_tanl): Make static.
17100         * lib/sincosl.c: Include trigl.h first.
17101         * lib/trigl.c: Likewise.
17102         * m4/acosl.m4: New file.
17103         * m4/asinl.m4: New file.
17104         * m4/atanl.m4: New file.
17105         * m4/cosl.m4: New file.
17106         * m4/expl.m4: New file.
17107         * m4/logl.m4: New file.
17108         * m4/sinl.m4: New file.
17109         * m4/sqrtl.m4: New file.
17110         * m4/tanl.m4: New file.
17111         * m4/mathl.m4: Remove file.
17112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17113         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17114         Don't initialize GNULIB_MATHL.
17115         * modules/acosl: New file.
17116         * modules/asinl: New file.
17117         * modules/atanl: New file.
17118         * modules/cosl: New file.
17119         * modules/expl: New file.
17120         * modules/logl: New file.
17121         * modules/sinl: New file.
17122         * modules/sqrtl: New file.
17123         * modules/tanl: New file.
17124         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17125         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17126         substitute GNULIB_MATHL.
17127         * modules/mathl: Rewritten.
17128         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17129         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17130         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17131         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17132         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17133         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17134         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17135         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17136         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17137
17138 2010-01-18  Bruno Haible  <bruno@clisp.org>
17139
17140         sqrt: Make gl_FUNC_SQRT requirable.
17141         * m4/sqrt.m4: New file.
17142         * modules/sqrt (Files): Add it.
17143         (configure.ac): Invoke gl_FUNC_SQRT.
17144
17145 2010-01-18  Bruno Haible  <bruno@clisp.org>
17146
17147         New modules for common <math.h> functions.
17148         * m4/mathfunc.m4: New file.
17149         * modules/acos: New file.
17150         * modules/asin: New file.
17151         * modules/atan: New file.
17152         * modules/atan2: New file.
17153         * modules/cbrt: New file.
17154         * modules/copysign: New file.
17155         * modules/cos: New file.
17156         * modules/cosh: New file.
17157         * modules/erf: New file.
17158         * modules/erfc: New file.
17159         * modules/exp: New file.
17160         * modules/fabs: New file.
17161         * modules/fmod: New file.
17162         * modules/hypot: New file.
17163         * modules/j0: New file.
17164         * modules/j1: New file.
17165         * modules/jn: New file.
17166         * modules/ldexp: New file.
17167         * modules/lgamma: New file.
17168         * modules/log: New file.
17169         * modules/log10: New file.
17170         * modules/log1p: New file.
17171         * modules/logb: New file.
17172         * modules/modf: New file.
17173         * modules/nextafter: New file.
17174         * modules/pow: New file.
17175         * modules/remainder: New file.
17176         * modules/rint: New file.
17177         * modules/sin: New file.
17178         * modules/sinh: New file.
17179         * modules/sqrt: New file.
17180         * modules/tan: New file.
17181         * modules/tanh: New file.
17182         * modules/y0: New file.
17183         * modules/y1: New file.
17184         * modules/yn: New file.
17185         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17186         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17187         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17188         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17189         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17190         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17191         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17192         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17193         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17194         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17195         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17196         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17197         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17198         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17199         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17200         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17201         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17202         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17203         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17204         * doc/posix-functions/log.texi: Mention the 'log' module.
17205         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17206         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17207         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17208         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17209         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17210         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17211         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17212         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17213         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17214         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17215         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17216         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17217         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17218         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17219         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17220         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17221
17222 2010-01-18  Jim Meyering  <meyering@redhat.com>
17223
17224         ignore-value: relax license to LGPLv2+
17225         * modules/ignore-value (License): Relax to LGPLv2+.
17226
17227         getdate: don't leak when TZ contains two or more '"'s
17228         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17229         double quote in TZ after the first one.
17230
17231         readtokens: do not leak internal token_lengths buffer
17232         * lib/readtokens.c (readtokens): Free the local, lengths,
17233         when the supplied "token_lengths" parameter is NULL.
17234
17235 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17236
17237         Fix a couple of missing LIBTHREAD link failures on AIX.
17238         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17239         $(LIBTHREAD).
17240         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17241
17242         Link test-poll against INET_PTON_LIB.
17243         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17244         for inet_pton on Solaris 10.
17245
17246 2010-01-17  Bruno Haible  <bruno@clisp.org>
17247
17248         unistdio/*-sprintf: Fix typo in module description.
17249         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17250         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17251         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17252         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17253         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17254         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17255         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17256         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17257
17258 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17259
17260         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17261         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17262         variables in shell case patterns, for AIX and HP-UX ksh.
17263
17264         Split large sed scripts, for HP-UX sed.
17265         * modules/stdio: Split sed scripts around 50 sed commands,
17266         to avoid HP-UX limit of 99 commands, in the near future.
17267         * modules/string: Likewise.
17268         * modules/unistd: Likewise.
17269
17270         gnulib-tool: avoid writing in the current directory.
17271         * gnulib-tool (func_emit_lib_Makefile_am)
17272         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17273         not in the current directory, so concurrent gnulib-tool
17274         instances do not interfere.
17275
17276 2010-01-16  Jim Meyering  <meyering@redhat.com>
17277
17278         doc: update users.txt
17279         * users.txt: Add grep.
17280         (diffutils, gzip): Update URLs.
17281
17282 2010-01-12  Bruno Haible  <bruno@clisp.org>
17283
17284         posix_spawn: Avoid test failure on Cygwin.
17285         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17286         characters.
17287         Reported by Simon Josefsson.
17288
17289 2010-01-12  Bruno Haible  <bruno@clisp.org>
17290
17291         * tests/test-cond.c (main): When skipping the test, show the reason.
17292
17293 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17294
17295         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17296
17297 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17298
17299         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17300         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17301
17302 2010-01-12  Eric Blake  <ebb9@byu.net>
17303
17304         build: guarantee AS_VAR_IF
17305         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17306         (gl_AS_VAR_IF): Move...
17307         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17308         Reported by Simon Josefsson.
17309
17310 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17311
17312         * lib/stdio.in.h: Fix typo.
17313
17314 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17315
17316         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17317         libgpg-error.
17318
17319 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17320
17321         * tests/test-xalloc-die.sh: Use $EXEEXT.
17322
17323 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17324             Bruno Haible  <bruno@clisp.org>
17325
17326         getlogin, getlogin_r: Avoid test failure.
17327         * tests/test-getlogin.c: Include <stdio.h>.
17328         (main): Skip the test when the function fails because stdin is not a
17329         tty.
17330         * tests/test-getlogin_r.c: Include <stdio.h>.
17331         (main): Skip the test when the function fails because stdin is not a
17332         tty.
17333
17334 2010-01-11  Eric Blake  <ebb9@byu.net>
17335
17336         tests: avoid more large file warnings
17337         * tests/test-fflush.c: Avoid warning about ftell use.
17338         * tests/test-fseek.c: Avoid warning about fseek use.
17339
17340 2010-01-10  Bruno Haible  <bruno@clisp.org>
17341
17342         nproc: Work better on Linux when /proc and /sys are not mounted.
17343         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17344         as lower bound when, on glibc/Linux systems,
17345         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17346         Suggested by Pádraig Brady <P@draigbrady.com>.
17347         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17348
17349         nproc: Refactor.
17350         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17351         extracted from num_processors.
17352         (num_processors): Call it.
17353
17354 2010-01-11  Jim Meyering  <meyering@redhat.com>
17355
17356         utimecmp: avoid new warning from upcoming gcc-4.5.0
17357         * lib/utimecmp.c (BILLION): Define using #define rather than an
17358         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17359
17360 2010-01-11  Eric Blake  <ebb9@byu.net>
17361
17362         math: add portability warnings for classification macros
17363         * modules/math (Depends-on): Add warn-on-use.
17364         (Makefile.am): Provide new substitutions.
17365         * m4/math_h.m4 (gl_MATH_H): Require inline.
17366         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17367         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17368         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17369         implement warnings.
17370
17371         unistd: warn on use of environ without module
17372         * modules/unistd (Depends-on): Add warn-on-use.
17373         (Makefile.am): Provide new substitutions.
17374         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17375         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17376
17377         stdio: warn on suspicious uses
17378         * modules/stdio (Depends-on): Add warn-on-use.
17379         (Makefile.am): Provide new substitutions.
17380         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17381         fseeko.
17382         * lib/stdio.in.h (gets): Always warn on use.
17383         (fseek, ftell): Adjust when warnings are issued, and honor
17384         _GL_NO_LARGE_FILES as a way to silence the warning.
17385         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17386         any warning about large file offsets.
17387         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17388         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17389         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17390         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17391         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17392         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17393         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17394         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17395
17396         warn-on-use: new module
17397         * modules/warn-on-use: New file.
17398         * build-aux/warn-on-use.h: Likewise.
17399         * m4/warn-on-use.m4: Likewise.
17400         * MODULES.html.sh (Support for building): Mention it.
17401
17402 2010-01-10  Bruno Haible  <bruno@clisp.org>
17403
17404         Tests for module 'unistr/u32-strdup'.
17405         * modules/unistr/u32-strdup-tests: New file.
17406         * tests/unistr/test-u32-strdup.c: New file.
17407
17408         Tests for module 'unistr/u16-strdup'.
17409         * modules/unistr/u16-strdup-tests: New file.
17410         * tests/unistr/test-u16-strdup.c: New file.
17411
17412         Tests for module 'unistr/u8-strdup'.
17413         * modules/unistr/u8-strdup-tests: New file.
17414         * tests/unistr/test-u8-strdup.c: New file.
17415         * tests/unistr/test-strdup.h: New file.
17416
17417         Tests for module 'unistr/u32-strncmp'.
17418         * modules/unistr/u32-strncmp-tests: New file.
17419         * tests/unistr/test-u32-strncmp.c: New file.
17420
17421         Tests for module 'unistr/u16-strncmp'.
17422         * modules/unistr/u16-strncmp-tests: New file.
17423         * tests/unistr/test-u16-strncmp.c: New file.
17424
17425         Tests for module 'unistr/u8-strncmp'.
17426         * modules/unistr/u8-strncmp-tests: New file.
17427         * tests/unistr/test-u8-strncmp.c: New file.
17428         * tests/unistr/test-strncmp.h: New file.
17429
17430         Tests for module 'unistr/u32-strcoll'.
17431         * modules/unistr/u32-strcoll-tests: New file.
17432         * tests/unistr/test-u32-strcoll.c: New file.
17433
17434         Tests for module 'unistr/u16-strcoll'.
17435         * modules/unistr/u16-strcoll-tests: New file.
17436         * tests/unistr/test-u16-strcoll.c: New file.
17437
17438         Tests for module 'unistr/u8-strcoll'.
17439         * modules/unistr/u8-strcoll-tests: New file.
17440         * tests/unistr/test-u8-strcoll.c: New file.
17441
17442         Tests for module 'unistr/u32-strcmp'.
17443         * modules/unistr/u32-strcmp-tests: New file.
17444         * tests/unistr/test-u32-strcmp.c: New file.
17445         * tests/unistr/test-u32-strcmp.h: New file.
17446
17447         Tests for module 'unistr/u16-strcmp'.
17448         * modules/unistr/u16-strcmp-tests: New file.
17449         * tests/unistr/test-u16-strcmp.c: New file.
17450         * tests/unistr/test-u16-strcmp.h: New file.
17451
17452         Tests for module 'unistr/u8-strcmp'.
17453         * modules/unistr/u8-strcmp-tests: New file.
17454         * tests/unistr/test-u8-strcmp.c: New file.
17455         * tests/unistr/test-u8-strcmp.h: New file.
17456         * tests/unistr/test-strcmp.h: New file.
17457
17458         Tests for module 'unistr/u32-strncat'.
17459         * modules/unistr/u32-strncat-tests: New file.
17460         * tests/unistr/test-u32-strncat.c: New file.
17461
17462         Tests for module 'unistr/u16-strncat'.
17463         * modules/unistr/u16-strncat-tests: New file.
17464         * tests/unistr/test-u16-strncat.c: New file.
17465
17466         Tests for module 'unistr/u8-strncat'.
17467         * modules/unistr/u8-strncat-tests: New file.
17468         * tests/unistr/test-u8-strncat.c: New file.
17469         * tests/unistr/test-strncat.h: New file.
17470
17471         Tests for module 'unistr/u32-strcat'.
17472         * modules/unistr/u32-strcat-tests: New file.
17473         * tests/unistr/test-u32-strcat.c: New file.
17474
17475         Tests for module 'unistr/u16-strcat'.
17476         * modules/unistr/u16-strcat-tests: New file.
17477         * tests/unistr/test-u16-strcat.c: New file.
17478
17479         Tests for module 'unistr/u8-strcat'.
17480         * modules/unistr/u8-strcat-tests: New file.
17481         * tests/unistr/test-u8-strcat.c: New file.
17482         * tests/unistr/test-strcat.h: New file.
17483
17484         Tests for module 'unistr/u32-stpncpy'.
17485         * modules/unistr/u32-stpncpy-tests: New file.
17486         * tests/unistr/test-u32-stpncpy.c: New file.
17487
17488         Tests for module 'unistr/u16-stpncpy'.
17489         * modules/unistr/u16-stpncpy-tests: New file.
17490         * tests/unistr/test-u16-stpncpy.c: New file.
17491
17492         Tests for module 'unistr/u8-stpncpy'.
17493         * modules/unistr/u8-stpncpy-tests: New file.
17494         * tests/unistr/test-u8-stpncpy.c: New file.
17495         * tests/unistr/test-stpncpy.h: New file.
17496
17497         Tests for module 'unistr/u32-strncpy'.
17498         * modules/unistr/u32-strncpy-tests: New file.
17499         * tests/unistr/test-u32-strncpy.c: New file.
17500
17501         Tests for module 'unistr/u16-strncpy'.
17502         * modules/unistr/u16-strncpy-tests: New file.
17503         * tests/unistr/test-u16-strncpy.c: New file.
17504
17505         Tests for module 'unistr/u8-strncpy'.
17506         * modules/unistr/u8-strncpy-tests: New file.
17507         * tests/unistr/test-u8-strncpy.c: New file.
17508         * tests/unistr/test-strncpy.h: New file.
17509
17510         Tests for module 'unistr/u32-stpcpy'.
17511         * modules/unistr/u32-stpcpy-tests: New file.
17512         * tests/unistr/test-u32-stpcpy.c: New file.
17513
17514         Tests for module 'unistr/u16-stpcpy'.
17515         * modules/unistr/u16-stpcpy-tests: New file.
17516         * tests/unistr/test-u16-stpcpy.c: New file.
17517
17518         Tests for module 'unistr/u8-stpcpy'.
17519         * modules/unistr/u8-stpcpy-tests: New file.
17520         * tests/unistr/test-u8-stpcpy.c: New file.
17521         * tests/unistr/test-stpcpy.h: New file.
17522
17523         Tests for module 'unistr/u32-strcpy'.
17524         * modules/unistr/u32-strcpy-tests: New file.
17525         * tests/unistr/test-u32-strcpy.c: New file.
17526
17527         Tests for module 'unistr/u16-strcpy'.
17528         * modules/unistr/u16-strcpy-tests: New file.
17529         * tests/unistr/test-u16-strcpy.c: New file.
17530
17531         Tests for module 'unistr/u8-strcpy'.
17532         * modules/unistr/u8-strcpy-tests: New file.
17533         * tests/unistr/test-u8-strcpy.c: New file.
17534         * tests/unistr/test-strcpy.h: New file.
17535
17536         Tests for module 'unistr/u32-strnlen'.
17537         * modules/unistr/u32-strnlen-tests: New file.
17538         * tests/unistr/test-u32-strnlen.c: New file.
17539
17540         Tests for module 'unistr/u16-strnlen'.
17541         * modules/unistr/u16-strnlen-tests: New file.
17542         * tests/unistr/test-u16-strnlen.c: New file.
17543
17544         Tests for module 'unistr/u8-strnlen'.
17545         * modules/unistr/u8-strnlen-tests: New file.
17546         * tests/unistr/test-u8-strnlen.c: New file.
17547         * tests/unistr/test-strnlen.h: New file.
17548
17549         Tests for module 'unistr/u32-strlen'.
17550         * modules/unistr/u32-strlen-tests: New file.
17551         * tests/unistr/test-u32-strlen.c: New file.
17552
17553         Tests for module 'unistr/u16-strlen'.
17554         * modules/unistr/u16-strlen-tests: New file.
17555         * tests/unistr/test-u16-strlen.c: New file.
17556
17557         Tests for module 'unistr/u8-strlen'.
17558         * modules/unistr/u8-strlen-tests: New file.
17559         * tests/unistr/test-u8-strlen.c: New file.
17560
17561         Tests for module 'unistr/u32-prev'.
17562         * modules/unistr/u32-prev-tests: New file.
17563         * tests/unistr/test-u32-prev.c: New file.
17564
17565         Tests for module 'unistr/u16-prev'.
17566         * modules/unistr/u16-prev-tests: New file.
17567         * tests/unistr/test-u16-prev.c: New file.
17568
17569         Tests for module 'unistr/u8-prev'.
17570         * modules/unistr/u8-prev-tests: New file.
17571         * tests/unistr/test-u8-prev.c: New file.
17572
17573         Tests for module 'unistr/u32-next'.
17574         * modules/unistr/u32-next-tests: New file.
17575         * tests/unistr/test-u32-next.c: New file.
17576
17577         Tests for module 'unistr/u16-next'.
17578         * modules/unistr/u16-next-tests: New file.
17579         * tests/unistr/test-u16-next.c: New file.
17580
17581         Tests for module 'unistr/u8-next'.
17582         * modules/unistr/u8-next-tests: New file.
17583         * tests/unistr/test-u8-next.c: New file.
17584
17585         Tests for module 'unistr/u32-strmbtouc'.
17586         * modules/unistr/u32-strmbtouc-tests: New file.
17587         * tests/unistr/test-u32-strmbtouc.c: New file.
17588
17589         Tests for module 'unistr/u16-strmbtouc'.
17590         * modules/unistr/u16-strmbtouc-tests: New file.
17591         * tests/unistr/test-u16-strmbtouc.c: New file.
17592
17593         Tests for module 'unistr/u8-strmbtouc'.
17594         * modules/unistr/u8-strmbtouc-tests: New file.
17595         * tests/unistr/test-u8-strmbtouc.c: New file.
17596
17597         Tests for module 'unistr/u32-strmblen'.
17598         * modules/unistr/u32-strmblen-tests: New file.
17599         * tests/unistr/test-u32-strmblen.c: New file.
17600
17601         Tests for module 'unistr/u16-strmblen'.
17602         * modules/unistr/u16-strmblen-tests: New file.
17603         * tests/unistr/test-u16-strmblen.c: New file.
17604
17605         Tests for module 'unistr/u8-strmblen'.
17606         * modules/unistr/u8-strmblen-tests: New file.
17607         * tests/unistr/test-u8-strmblen.c: New file.
17608
17609         Tests for module 'unistr/u32-cpy-alloc'.
17610         * modules/unistr/u32-cpy-alloc-tests: New file.
17611         * tests/unistr/test-u32-cpy-alloc.c: New file.
17612
17613         Tests for module 'unistr/u16-cpy-alloc'.
17614         * modules/unistr/u16-cpy-alloc-tests: New file.
17615         * tests/unistr/test-u16-cpy-alloc.c: New file.
17616
17617         Tests for module 'unistr/u8-cpy-alloc'.
17618         * modules/unistr/u8-cpy-alloc-tests: New file.
17619         * tests/unistr/test-u8-cpy-alloc.c: New file.
17620         * tests/unistr/test-cpy-alloc.h: New file.
17621
17622         Tests for module 'unistr/u32-mbsnlen'.
17623         * modules/unistr/u32-mbsnlen-tests: New file.
17624         * tests/unistr/test-u32-mbsnlen.c: New file.
17625
17626         Tests for module 'unistr/u16-mbsnlen'.
17627         * modules/unistr/u16-mbsnlen-tests: New file.
17628         * tests/unistr/test-u16-mbsnlen.c: New file.
17629
17630         Tests for module 'unistr/u8-mbsnlen'.
17631         * modules/unistr/u8-mbsnlen-tests: New file.
17632         * tests/unistr/test-u8-mbsnlen.c: New file.
17633
17634         Tests for module 'unistr/u32-chr'.
17635         * modules/unistr/u32-chr-tests: New file.
17636         * tests/unistr/test-u32-chr.c: New file.
17637
17638         Tests for module 'unistr/u16-chr'.
17639         * modules/unistr/u16-chr-tests: New file.
17640         * tests/unistr/test-u16-chr.c: New file.
17641
17642         Tests for module 'unistr/u8-chr'.
17643         * modules/unistr/u8-chr-tests: New file.
17644         * tests/unistr/test-u8-chr.c: New file.
17645         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17646
17647         Tests for module 'unistr/u32-cmp2'.
17648         * modules/unistr/u32-cmp2-tests: New file.
17649         * tests/unistr/test-u32-cmp2.c: New file.
17650
17651         Tests for module 'unistr/u16-cmp2'.
17652         * modules/unistr/u16-cmp2-tests: New file.
17653         * tests/unistr/test-u16-cmp2.c: New file.
17654
17655         Tests for module 'unistr/u8-cmp2'.
17656         * modules/unistr/u8-cmp2-tests: New file.
17657         * tests/unistr/test-u8-cmp2.c: New file.
17658         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17659
17660         Tests for module 'unistr/u32-cmp'.
17661         * modules/unistr/u32-cmp-tests: New file.
17662         * tests/unistr/test-u32-cmp.c: New file.
17663
17664         Tests for module 'unistr/u16-cmp'.
17665         * modules/unistr/u16-cmp-tests: New file.
17666         * tests/unistr/test-u16-cmp.c: New file.
17667
17668         Tests for module 'unistr/u8-cmp'.
17669         * modules/unistr/u8-cmp-tests: New file.
17670         * tests/unistr/test-u8-cmp.c: New file.
17671         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17672
17673         Tests for module 'unistr/u32-set'.
17674         * modules/unistr/u32-set-tests: New file.
17675         * tests/unistr/test-u32-set.c: New file.
17676
17677         Tests for module 'unistr/u16-set'.
17678         * modules/unistr/u16-set-tests: New file.
17679         * tests/unistr/test-u16-set.c: New file.
17680
17681         Tests for module 'unistr/u8-set'.
17682         * modules/unistr/u8-set-tests: New file.
17683         * tests/unistr/test-u8-set.c: New file.
17684         * tests/unistr/test-set.h: New file.
17685
17686         Tests for module 'unistr/u32-move'.
17687         * modules/unistr/u32-move-tests: New file.
17688         * tests/unistr/test-u32-move.c: New file.
17689
17690         Tests for module 'unistr/u16-move'.
17691         * modules/unistr/u16-move-tests: New file.
17692         * tests/unistr/test-u16-move.c: New file.
17693
17694         Tests for module 'unistr/u8-move'.
17695         * modules/unistr/u8-move-tests: New file.
17696         * tests/unistr/test-u8-move.c: New file.
17697         * tests/unistr/test-move.h: New file.
17698
17699         Tests for module 'unistr/u32-cpy'.
17700         * modules/unistr/u32-cpy-tests: New file.
17701         * tests/unistr/test-u32-cpy.c: New file.
17702
17703         Tests for module 'unistr/u16-cpy'.
17704         * modules/unistr/u16-cpy-tests: New file.
17705         * tests/unistr/test-u16-cpy.c: New file.
17706
17707         Tests for module 'unistr/u8-cpy'.
17708         * modules/unistr/u8-cpy-tests: New file.
17709         * tests/unistr/test-u8-cpy.c: New file.
17710         * tests/unistr/test-cpy.h: New file.
17711
17712 2010-01-09  Bruno Haible  <bruno@clisp.org>
17713
17714         Tests for module 'unistr/u32-uctomb'.
17715         * modules/unistr/u32-uctomb-tests: New file.
17716         * tests/unistr/test-u32-uctomb.c: New file.
17717
17718         Tests for module 'unistr/u16-uctomb'.
17719         * modules/unistr/u16-uctomb-tests: New file.
17720         * tests/unistr/test-u16-uctomb.c: New file.
17721
17722         Tests for module 'unistr/u8-uctomb'.
17723         * modules/unistr/u8-uctomb-tests: New file.
17724         * tests/unistr/test-u8-uctomb.c: New file.
17725
17726         Tests for module 'unistr/u32-mbtoucr'.
17727         * modules/unistr/u32-mbtoucr-tests: New file.
17728         * tests/unistr/test-u32-mbtoucr.c: New file.
17729
17730         Tests for module 'unistr/u16-mbtoucr'.
17731         * modules/unistr/u16-mbtoucr-tests: New file.
17732         * tests/unistr/test-u16-mbtoucr.c: New file.
17733
17734         Tests for module 'unistr/u8-mbtoucr'.
17735         * modules/unistr/u8-mbtoucr-tests: New file.
17736         * tests/unistr/test-u8-mbtoucr.c: New file.
17737
17738         Tests for module 'unistr/u32-mbtouc'.
17739         * modules/unistr/u32-mbtouc-tests: New file.
17740         * tests/unistr/test-u32-mbtouc.c: New file.
17741
17742         Tests for module 'unistr/u16-mbtouc'.
17743         * modules/unistr/u16-mbtouc-tests: New file.
17744         * tests/unistr/test-u16-mbtouc.c: New file.
17745
17746         Tests for module 'unistr/u8-mbtouc'.
17747         * modules/unistr/u8-mbtouc-tests: New file.
17748         * tests/unistr/test-u8-mbtouc.c: New file.
17749
17750         Tests for module 'unistr/u32-mbtouc-unsafe'.
17751         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17752         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17753         * tests/unistr/test-u32-mbtouc.h: New file.
17754
17755         Tests for module 'unistr/u16-mbtouc-unsafe'.
17756         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17757         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17758         * tests/unistr/test-u16-mbtouc.h: New file.
17759
17760         Tests for module 'unistr/u8-mbtouc-unsafe'.
17761         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17762         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17763         * tests/unistr/test-u8-mbtouc.h: New file.
17764
17765         Tests for module 'unistr/u32-mblen'.
17766         * modules/unistr/u32-mblen-tests: New file.
17767         * tests/unistr/test-u32-mblen.c: New file.
17768
17769         Tests for module 'unistr/u16-mblen'.
17770         * modules/unistr/u16-mblen-tests: New file.
17771         * tests/unistr/test-u16-mblen.c: New file.
17772
17773         Tests for module 'unistr/u8-mblen'.
17774         * modules/unistr/u8-mblen-tests: New file.
17775         * tests/unistr/test-u8-mblen.c: New file.
17776
17777         Tests for module 'unistr/u32-to-u16'.
17778         * modules/unistr/u32-to-u16-tests: New file.
17779         * tests/unistr/test-u32-to-u16.c: New file.
17780
17781         Tests for module 'unistr/u32-to-u8'.
17782         * modules/unistr/u32-to-u8-tests: New file.
17783         * tests/unistr/test-u32-to-u8.c: New file.
17784
17785         Tests for module 'unistr/u16-to-u32'.
17786         * modules/unistr/u16-to-u32-tests: New file.
17787         * tests/unistr/test-u16-to-u32.c: New file.
17788
17789         Tests for module 'unistr/u16-to-u8'.
17790         * modules/unistr/u16-to-u8-tests: New file.
17791         * tests/unistr/test-u16-to-u8.c: New file.
17792
17793         Tests for module 'unistr/u8-to-u32'.
17794         * modules/unistr/u8-to-u32-tests: New file.
17795         * tests/unistr/test-u8-to-u32.c: New file.
17796
17797         Tests for module 'unistr/u8-to-u16'.
17798         * modules/unistr/u8-to-u16-tests: New file.
17799         * tests/unistr/test-u8-to-u16.c: New file.
17800
17801         Tests for module 'unistr/u32-check'.
17802         * modules/unistr/u32-check-tests: New file.
17803         * tests/unistr/test-u32-check.c: New file.
17804
17805         Tests for module 'unistr/u16-check'.
17806         * modules/unistr/u16-check-tests: New file.
17807         * tests/unistr/test-u16-check.c: New file.
17808
17809         Tests for module 'unistr/u8-check'.
17810         * modules/unistr/u8-check-tests: New file.
17811         * tests/unistr/test-u8-check.c: New file.
17812
17813         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17814         (category_equals): New function.
17815         (main): Add more tests.
17816         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17817
17818         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17819
17820 2010-01-10  Bruno Haible  <bruno@clisp.org>
17821
17822         unistr/u*-strcoll: Try harder to distinguish different strings.
17823         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17824         compare s1 and s2 to see if they are different.
17825
17826 2010-01-10  Bruno Haible  <bruno@clisp.org>
17827
17828         unistr/u*-stpncpy: Fix the return value.
17829         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17830         description of the return value consistent with stpncpy in glibc.
17831         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17832         written non-NUL unit.
17833
17834 2010-01-10  Bruno Haible  <bruno@clisp.org>
17835
17836         unistr/u*-next: Add missing dependencies.
17837         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17838         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17839         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17840
17841 2010-01-10  Bruno Haible  <bruno@clisp.org>
17842
17843         unistr/u8-mbsnlen: Fix return value for incomplete character.
17844         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17845         u8_mblen.
17846         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17847         Remove unistr/u8-mblen.
17848         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17849         u16_mblen.
17850         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17851         Remove unistr/u16-mblen.
17852
17853 2010-01-10  Bruno Haible  <bruno@clisp.org>
17854
17855         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17856         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17857         Reported by Brian Gough <bjg@gnu.org> and
17858         Chris Clayton <chris2553@googlemail.com> via
17859         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17860
17861 2010-01-09  Bruno Haible  <bruno@clisp.org>
17862
17863         unistr/u16-to-u32: Reject invalid input.
17864         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17865         u16_mbtouc.
17866         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17867         Remove unistr/u16-mbtouc.
17868
17869         unistr/u16-to-u8: Reject invalid input.
17870         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17871         u16_mbtouc.
17872         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17873         Remove unistr/u16-mbtouc.
17874
17875         unistr/u8-to-u32: Reject invalid input.
17876         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17877         u8_mbtouc.
17878         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17879         Remove unistr/u8-mbtouc.
17880
17881         unistr/u8-to-u16: Reject invalid input.
17882         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17883         u8_mbtouc.
17884         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17885         Remove unistr/u8-mbtouc.
17886
17887 2010-01-09  Bruno Haible  <bruno@clisp.org>
17888
17889         Tests for module 'getlogin'.
17890         * modules/getlogin-tests: New file.
17891         * tests/test-getlogin.c: New file.
17892
17893         New module 'getlogin'.
17894         * lib/unistd.in.h (getlogin): New declaration.
17895         * lib/getlogin.c: New file.
17896         * m4/getlogin.m4: New file.
17897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17898         HAVE_GETLOGIN.
17899         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17900         HAVE_GETLOGIN.
17901         * modules/getlogin: New file.
17902         * doc/posix-functions/getlogin.texi: Mention the new module.
17903         Reported by John W. Eaton <jwe@gnu.org>.
17904
17905 2010-01-09  Bruno Haible  <bruno@clisp.org>
17906
17907         getlogin_r: Support for native Windows.
17908         * lib/getlogin_r.c: Include <windows.h>
17909         (getlogin_r): Implement for native Windows.
17910         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17911         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17912         via John W. Eaton <jwe@gnu.org>.
17913
17914 2010-01-09  Bruno Haible  <bruno@clisp.org>
17915
17916         getlogin_r: Small fixes.
17917         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17918         succeeds.
17919         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17920         before testing whether getlogin_r is declared. No need to set
17921         HAVE_DECL_GETLOGIN_R to 1.
17922         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17923
17924 2010-01-09  Bruno Haible  <bruno@clisp.org>
17925
17926         * lib/unistd.in.h (getlogin_r): Add comment.
17927
17928 2010-01-09  Bruno Haible  <bruno@clisp.org>
17929
17930         Tests for module 'getlogin_r'.
17931         * modules/getlogin_r-tests: New file.
17932         * tests/test-getlogin_r.c: New file.
17933
17934 2010-01-09  Jim Meyering  <meyering@redhat.com>
17935
17936         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17937         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17938         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17939
17940 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17941
17942         * lib/dup2.c (rpl_dup2): Improve comment.
17943
17944 2010-01-08  Eric Blake  <ebb9@byu.net>
17945
17946         maint.mk: allow packages to add makefile @@ exceptions
17947         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17948         (sc_makefile_check): Rename...
17949         (sc_makefile_at_at_check): ...to this, and use hook.
17950
17951         dup2: work around mingw bug
17952         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17953         Reported by Simon Josefsson.
17954
17955 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17956
17957         glob: Fix C++ compilation.
17958         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17959         C++.
17960
17961 2010-01-07  Bruno Haible  <bruno@clisp.org>
17962
17963         Fix indentation of wctype.in.h, broken since 2007-01-06.
17964         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17965
17966 2010-01-07  Bruno Haible  <bruno@clisp.org>
17967
17968         mbslen: Avoid collision with system function.
17969         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17970         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17971         * m4/mbslen.m4: New file.
17972         * modules/mbslen (Files): Add it.
17973         (configure.ac): Invoke gl_MBSLEN.
17974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17975         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17977         via Ian Beckwith <ianb@erislabs.net>.
17978
17979 2010-01-07  Bruno Haible  <bruno@clisp.org>
17980
17981         dirent: Document the last fix.
17982         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17983
17984 2010-01-07  Bruno Haible  <bruno@clisp.org>
17985
17986         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17987         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17988         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17989         va_list are defined.
17990         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17991         Reported by Eric Blake.
17992
17993 2010-01-07  Bruno Haible  <bruno@clisp.org>
17994
17995         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17996         * modules/xlist (Depends-on): Add 'list',
17997         * modules/xoset (Depends-on): Add 'oset'.
17998         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17999
18000 2010-01-07  Bruno Haible  <bruno@clisp.org>
18001
18002         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18003         * doc/posix-functions/strncasecmp.texi: Likewise.
18004
18005 2010-01-07  Bruno Haible  <bruno@clisp.org>
18006
18007         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18008
18009 2010-01-07  John W. Eaton  <jwe@octave.org>
18010
18011         wctype: allow C++ use
18012         * lib/wctype.in.h: Add extern "C" block for C++.
18013
18014 2010-01-06  Eric Blake  <ebb9@byu.net>
18015
18016         maint.mk: detect incorrect GFDL usage
18017         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18018
18019 2010-01-06  Jim Meyering  <meyering@redhat.com>
18020         and Eric Blake  <ebb9@byu.net>
18021
18022         maint.mk: ignore multi-line copyright in NEWS
18023         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18024
18025 2010-01-06  Eric Blake  <ebb9@byu.net>
18026
18027         select: add missing dependency
18028         * modules/select-tests (Depends-on): Move sockets dependency...
18029         * modules/select (Depends-on): ...here.
18030         Reported by Ian Beckwith.
18031
18032         doc: regenerate INSTALL
18033         * doc/INSTALL: Reflect recent autoconf update.
18034         * doc/INSTALL.ISO: Likewise.
18035         * doc/INSTALL.UTF-8: Likewise.
18036
18037         pread: fix compilation on glibc
18038         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18039         Reported by Ralf Wildenhues.
18040
18041         dirent: fix test failure
18042         * lib/dirent.in.h (includes): Guarantee ino_t.
18043         Reported by Ralf Wildenhues.
18044
18045 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18046
18047         linkat, renameat: avoid bad free
18048         * lib/at-func2.c (at_func2): Fix typo.
18049         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18050
18051 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18052
18053         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18054         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18055         to avoid failure of symlink test later.
18056
18057 2010-01-06  Eric Blake  <ebb9@byu.net>
18058
18059         stdio, unistd: guarantee ssize_t
18060         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18061         2008 are exposed when needed.
18062         * lib/stdio.in.h (includes): Likewise.
18063         Reported by Ralf Wildenhues.
18064
18065 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18066
18067         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18068         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18069         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18070
18071 2010-01-06  Jim Meyering  <meyering@redhat.com>
18072
18073         readtokens: this module *does* require xalloc.h
18074         It uses only functions that were omitted by the old syntax-check rule.
18075         * lib/readtokens.c: Include "xalloc.h" once again.
18076         * modules/readtokens (Depends-on): Add xalloc.
18077         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18078
18079 2010-01-05  Eric Blake  <ebb9@byu.net>
18080
18081         maint: support 'make announcement' from a VPATH build
18082         * top/maint.mk (announcement): Look for correct NEWS file.
18083
18084 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18085
18086         utimens (fdutimens): ignore a negative FD, per contract
18087         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18088         when we have a valid file descriptor.  Otherwise, using a brand
18089         new glibc (with just-patched futimens that now fails with EBADF)
18090         would cause this function to fail with ENOSYS.
18091         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18092         See also http://bugzilla.redhat.com/552320.
18093
18094 2010-01-05  Eric Blake  <ebb9@byu.net>
18095
18096         strcase: document what it provides
18097         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18098         gnulib module.
18099         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18100         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18101
18102 2010-01-05  Jim Meyering  <meyering@redhat.com>
18103
18104         maint: remove useless inclusions of "xalloc.h"
18105         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18106         * lib/readtokens.c: Likewise.
18107         * lib/same.c: Likewise.
18108         * modules/getloadavg (Depends-on): Remove xalloc.
18109         * modules/readtokens: Likewise.
18110         * modules/same: Likewise.
18111
18112         maint.mk: include 4 more function names in alloca.h-checking regexp
18113         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18114         regexp.  Before, we would give a false-positive (saying alloca.h
18115         is included unnecessarily) when the only uses involved omitted symbols.
18116
18117         xalloc.h: use consistent formatting
18118         * lib/xalloc.h: Move declarations to start in the first column.
18119
18120 2010-01-05  Eric Blake  <ebb9@byu.net>
18121
18122         mkdir: avoid xalloc
18123         * lib/mkdir.c (includes): Drop unused header.
18124         Reported by John W. Eaton.
18125
18126 2010-01-04  Jim Meyering  <meyering@redhat.com>
18127
18128         nl_langinfo: avoid configure-time syntax error
18129         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18130         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18131         the empty string.  Don't let that provoke a shell syntax error.
18132
18133         regcomp, regexec, fnmatch: avoid array bounds read error
18134         * lib/regcomp.c (build_equiv_class): From glibc:
18135         Use only the low 24 bits of a findidx return value as an index
18136         into the weights array.  Patch by Ulrich Drepper:
18137         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18138         * lib/regexec.c (check_node_accept_bytes): Likewise.
18139         * lib/fnmatch_loop.c (FCT): Likewise.
18140
18141         regcomp: skip collseq lookup when there are no rules
18142         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18143         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18144
18145         regcomp: recognize ill-formed { } expressions
18146         * lib/regcomp.c (parse_dup_op): From glibc:
18147         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18148
18149         regcomp: fix typo in comment
18150         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18151         s/satisfy/satisfies/.
18152
18153         regcomp: sync from glibc: remove dead store
18154         * lib/regcomp.c (duplicate_node_closure): Remove useless
18155         search_duplicated_node call and dead store.
18156
18157         regcomp: sync from glibc; always use nl_langinfo
18158         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18159         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18160         * modules/regex (Depends-on): Add nl_langinfo.
18161
18162 2010-01-04  Eric Blake  <ebb9@byu.net>
18163
18164         fdopendir: fix configure test
18165         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18166
18167 2010-01-01  Bruno Haible  <bruno@clisp.org>
18168
18169         wchar: Remove unused configure check.
18170         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18171
18172 2010-01-01  Eric Blake  <ebb9@byu.net>
18173
18174         headers: make check of system header explicit
18175         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18176         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18177         ourselves.
18178         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18179         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18180         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18181         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18182         internals.
18183         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18184         missing.
18185         Suggested by Bruno Haible.
18186
18187 2010-01-01  Jim Meyering  <meyering@redhat.com>
18188
18189         ChangeLog: tweak to eliminate unnecessary copyright line
18190         * ChangeLog: Remove a copyright line that was mistakenly updated
18191         by today's update-copyright run.  Reported by Eric Blake.
18192
18193         test-update-copyright: don't let envvar setting cause test failure
18194         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18195
18196 2010-01-01  Bruno Haible  <bruno@clisp.org>
18197
18198         localename: Avoid gcc warning.
18199         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18200         function if it is not used.
18201
18202 2010-01-01  Jim Meyering  <meyering@redhat.com>
18203
18204         update nearly all FSF copyright year lists to include 2010
18205         Use the same procedure as for 2009, outlined in
18206         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18207
18208         version-etc: set COPYRIGHT_YEAR to 2010
18209         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18210
18211 2009-12-31  Eric Blake  <ebb9@byu.net>
18212
18213         doc: correct availability of cygwin 1.5.x getopt
18214         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18215         variables.
18216         * doc/posix-functions/opterr.texi (opterr): Likewise.
18217         * doc/posix-functions/optind.texi (optind): Likewise.
18218         * doc/posix-functions/optopt.texi (optopt): Likewise.
18219         * doc/posix-functions/tzname.texi (tzname): Likewise.
18220
18221         openat: update maintainer
18222         * modules/openat (Maintainer): Add myself.
18223
18224         utimens: avoid shadowing warning
18225         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18226         buffers into one, to avoid shadowing, as well as avoiding a
18227         redundant stat.
18228         Reported by Jim Meyering.
18229
18230         test-dup2: avoid compiler warning
18231         * tests/test-dup2.c (is_inheritable): Only define if used.
18232
18233 2010-01-01  Bruno Haible  <bruno@clisp.org>
18234
18235         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18236         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18237         defined, use wctomb instead of wcrtomb.
18238
18239 2010-01-01  Bruno Haible  <bruno@clisp.org>
18240
18241         iconv: Reject native Solaris iconv.
18242         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18243         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18244
18245 2009-12-31  Bruno Haible  <bruno@clisp.org>
18246
18247         * tests/test-signal.c (main): Remove test of 'SIG'.
18248
18249 2009-12-31  Bruno Haible  <bruno@clisp.org>
18250
18251         spawn: Fix incomplete fix.
18252         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18253         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18254         warnings for GNULIB_POSIXCHECK again.
18255         Reported by Eric Blake.
18256
18257 2009-12-31  Bruno Haible  <bruno@clisp.org>
18258
18259         Avoid namespace pollution on glibc systems.
18260         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18261         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18262         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18263         glibc systems.
18264
18265 2009-12-31  Bruno Haible  <bruno@clisp.org>
18266
18267         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18268         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18269         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18270         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18271         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18272         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18273         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18274
18275 2009-12-31  Bruno Haible  <bruno@clisp.org>
18276
18277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18278         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18279         afterwards.
18280
18281 2009-12-31  Bruno Haible  <bruno@clisp.org>
18282
18283         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18284         SYS_UTSNAME_H.
18285
18286 2009-12-31  Bruno Haible  <bruno@clisp.org>
18287
18288         spawn: Fix misapplied patch.
18289         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18290         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18291         warnings for GNULIB_POSIXCHECK.
18292
18293 2009-12-31  Bruno Haible  <bruno@clisp.org>
18294
18295         times: Update after sys_times changed.
18296         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18297         * modules/times (Files): Add it.
18298         (configure.ac): Invoke gl_FUNC_TIMES.
18299
18300 2009-12-31  Bruno Haible  <bruno@clisp.org>
18301
18302         Use AC_C_INLINE where necessary.
18303         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18304         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18305         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18306         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18307         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18308         * m4/mbiter.m4 (gl_MBITER): Likewise.
18309         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18310         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18311         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18312         * modules/u64 (configure.ac): Likewise.
18313
18314 2009-12-31  Bruno Haible  <bruno@clisp.org>
18315
18316         Use AC_C_INLINE instead of module 'inline' where possible.
18317         * modules/inline (Description): Clarify purpose.
18318         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18319         * modules/count-one-bits (Depends-on): Remove inline.
18320         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18321         * modules/openat (Depends-on): Remove inline.
18322         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18323         instead of depending on module 'inline'.
18324         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18325         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18326         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18327         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18328         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18329         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18330         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18331         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18332         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18333         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18334         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18335         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18336         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18337         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18338         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18339         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18340         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18341         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18342         Likewise.
18343         * modules/unictype/property-ascii-hex-digit (Depends-on,
18344         configure.ac): Likewise.
18345         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18346         configure.ac): Likewise.
18347         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18348         configure.ac): Likewise.
18349         * modules/unictype/property-bidi-block-separator (Depends-on,
18350         configure.ac): Likewise.
18351         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18352         configure.ac): Likewise.
18353         * modules/unictype/property-bidi-common-separator (Depends-on,
18354         configure.ac): Likewise.
18355         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18356         Likewise.
18357         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18358         configure.ac): Likewise.
18359         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18360         configure.ac): Likewise.
18361         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18362         configure.ac): Likewise.
18363         * modules/unictype/property-bidi-european-digit (Depends-on,
18364         configure.ac): Likewise.
18365         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18366         configure.ac): Likewise.
18367         * modules/unictype/property-bidi-left-to-right (Depends-on,
18368         configure.ac): Likewise.
18369         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18370         configure.ac): Likewise.
18371         * modules/unictype/property-bidi-other-neutral (Depends-on,
18372         configure.ac): Likewise.
18373         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18374         Likewise.
18375         * modules/unictype/property-bidi-segment-separator (Depends-on,
18376         configure.ac): Likewise.
18377         * modules/unictype/property-bidi-whitespace (Depends-on,
18378         configure.ac): Likewise.
18379         * modules/unictype/property-combining (Depends-on, configure.ac):
18380         Likewise.
18381         * modules/unictype/property-composite (Depends-on, configure.ac):
18382         Likewise.
18383         * modules/unictype/property-currency-symbol (Depends-on,
18384         configure.ac): Likewise.
18385         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18386         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18387         Likewise.
18388         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18389         configure.ac): Likewise.
18390         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18391         Likewise.
18392         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18393         Likewise.
18394         * modules/unictype/property-extender (Depends-on, configure.ac):
18395         Likewise.
18396         * modules/unictype/property-format-control (Depends-on, configure.ac):
18397         Likewise.
18398         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18399         Likewise.
18400         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18401         Likewise.
18402         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18403         Likewise.
18404         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18405         Likewise.
18406         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18407         Likewise.
18408         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18409         Likewise.
18410         * modules/unictype/property-id-start (Depends-on, configure.ac):
18411         Likewise.
18412         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18413         Likewise.
18414         * modules/unictype/property-ids-binary-operator (Depends-on,
18415         configure.ac): Likewise.
18416         * modules/unictype/property-ids-trinary-operator (Depends-on,
18417         configure.ac): Likewise.
18418         * modules/unictype/property-ignorable-control (Depends-on,
18419         configure.ac): Likewise.
18420         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18421         Likewise.
18422         * modules/unictype/property-join-control (Depends-on, configure.ac):
18423         Likewise.
18424         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18425         Likewise.
18426         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18427         Likewise.
18428         * modules/unictype/property-logical-order-exception (Depends-on,
18429         configure.ac): Likewise.
18430         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18431         Likewise.
18432         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18433         * modules/unictype/property-non-break (Depends-on, configure.ac):
18434         Likewise.
18435         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18436         Likewise.
18437         * modules/unictype/property-numeric (Depends-on, configure.ac):
18438         Likewise.
18439         * modules/unictype/property-other-alphabetic (Depends-on,
18440         configure.ac): Likewise.
18441         * modules/unictype/property-other-default-ignorable-code-point
18442         (Depends-on, configure.ac): Likewise.
18443         * modules/unictype/property-other-grapheme-extend (Depends-on,
18444         configure.ac): Likewise.
18445         * modules/unictype/property-other-id-continue (Depends-on,
18446         configure.ac): Likewise.
18447         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18448         Likewise.
18449         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18450         Likewise.
18451         * modules/unictype/property-other-math (Depends-on, configure.ac):
18452         Likewise.
18453         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18454         Likewise.
18455         * modules/unictype/property-paired-punctuation (Depends-on,
18456         configure.ac): Likewise.
18457         * modules/unictype/property-paragraph-separator (Depends-on,
18458         configure.ac): Likewise.
18459         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18460         Likewise.
18461         * modules/unictype/property-pattern-white-space (Depends-on,
18462         configure.ac): Likewise.
18463         * modules/unictype/property-private-use (Depends-on, configure.ac):
18464         Likewise.
18465         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18466         Likewise.
18467         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18468         Likewise.
18469         * modules/unictype/property-radical (Depends-on, configure.ac):
18470         Likewise.
18471         * modules/unictype/property-sentence-terminal (Depends-on,
18472         configure.ac): Likewise.
18473         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18474         Likewise.
18475         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18476         * modules/unictype/property-terminal-punctuation (Depends-on,
18477         configure.ac): Likewise.
18478         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18479         Likewise.
18480         * modules/unictype/property-unassigned-code-value (Depends-on,
18481         configure.ac): Likewise.
18482         * modules/unictype/property-unified-ideograph (Depends-on,
18483         configure.ac): Likewise.
18484         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18485         Likewise.
18486         * modules/unictype/property-variation-selector (Depends-on,
18487         configure.ac): Likewise.
18488         * modules/unictype/property-white-space (Depends-on, configure.ac):
18489         Likewise.
18490         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18491         Likewise.
18492         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18493         Likewise.
18494         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18495         Likewise.
18496         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18497         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18498         Likewise.
18499
18500 2009-12-31  Bruno Haible  <bruno@clisp.org>
18501
18502         Remove unnecessary AC_C_INLINE invocation.
18503         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18504         since 2009-08-21.
18505
18506 2009-12-31  Jim Meyering  <meyering@redhat.com>
18507
18508         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18509         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18510         With this change, we can all remove the gpg_key_ID = ... definition
18511         from our respective cfg.mk files.
18512
18513         maint.mk: create announcement template in ~/, not in /tmp
18514         * top/maint.mk (emit_upload_commands): Adjust.
18515         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18516         Remove temporary file, .ci-msg.
18517
18518 2009-12-31  Eric Blake  <ebb9@byu.net>
18519
18520         link-warning: always build headers with link warnings
18521         * modules/arpa_inet (Makefile.am): Always build replacement
18522         header.
18523         * modules/ctype (Makefile.am): Likewise.
18524         * modules/dirent (Makefile.am): Likewise.
18525         * modules/inttypes (Makefile.am): Likewise.
18526         * modules/langinfo (Makefile.am): Likewise.
18527         * modules/locale (Makefile.am): Likewise.
18528         * modules/spawn (Makefile.am): Likewise.
18529         * modules/sys_file (Makefile.am): Likewise.
18530         * modules/sys_ioctl (Makefile.am): Likewise.
18531         * modules/sys_select (Makefile.am): Likewise.
18532         * modules/sys_socket (Makefile.am): Likewise.
18533         * modules/sys_times (Makefile.am): Likewise.
18534         * modules/sys_utsname (Makefile.am): Likewise.
18535         * modules/sys_wait (Makefile.am): Likewise.
18536         * modules/wchar (Makefile.am): Likewise.
18537         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18538         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18539         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18540         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18541         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18542         Likewise.
18543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18544         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18545         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18546         Likewise.
18547         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18548         Likewise.
18549         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18550         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18551         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18552         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18553         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18554         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18555         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18556         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18557         (gl_WCHAR_H_DEFAULTS): Likewise.
18558
18559 2009-12-31  Eric Blake  <ebb9@byu.net>
18560
18561         signal, spawn: use link warnings
18562         * lib/signal.in.h (sigset_t): Make unconditional.
18563         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18564         (sigpending, sigprocmask, sigaction): Add link warnings.
18565         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18566         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18567         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18568         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18569         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18570         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18571         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18572         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18573         (posix_spawn_file_actions_destroy)
18574         (posix_spawn_file_actions_addopen)
18575         (posix_spawn_file_actions_addclose)
18576         (posix_spawn_file_actions_adddup2): Likewise.
18577         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18578         * tests/test-signal.c (main): Enhance test.
18579
18580         spawn: improve wrapper support
18581         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18582         (gl_SPAWN_H_DEFAULTS): New defaults.
18583         * modules/spawn (Makefile.am): Substitute them.
18584         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18585         Only declare if missing or broken.
18586
18587         sys_times, sys_utsname: use include_next
18588         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18589         header.
18590         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18591         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18592         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18593         * modules/sys_times (Depends-on): Add include_next.
18594         (Makefile.am): Substitute additional values.
18595         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18596         * lib/sys_times.in.h (includes): Include native header, if
18597         available.
18598         * lib/sys_utsname.in.h (includes): Likewise.
18599         * tests/test-sys_times.c (main): Enhance test.
18600
18601         fdutimensat: revert prior patch
18602         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18603         utimens.h.
18604         Reported by Bruno Haible.
18605
18606 2009-12-30  Eric Blake  <ebb9@byu.net>
18607
18608         sys_wait: drop link-warning dependency
18609         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18610         link-warning efforts.
18611         * lib/sys_wait.in.h: Likewise.
18612
18613         fdutimensat: remove bogus dependency
18614         * modules/fdutimensat (Depends-on): Drop inline.
18615
18616         unistd: fix typo
18617         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18618
18619 2009-12-30  Bruno Haible  <bruno@clisp.org>
18620
18621         Fix compilation error with Solaris cc.
18622         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18623         * lib/unicase/u16-is-invariant.c: Likewise.
18624         * lib/unicase/u32-is-invariant.c: Likewise.
18625         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18626
18627 2009-12-30  Bruno Haible  <bruno@clisp.org>
18628
18629         Fix test crash.
18630         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18631         locales.
18632         Reported by Simon Josefsson <simon@josefsson.org>.
18633
18634 2009-12-30  Bruno Haible  <bruno@clisp.org>
18635
18636         Fix compilation error on most platforms.
18637         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18638         Reported by Simon Josefsson <simon@josefsson.org>
18639         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18640
18641 2009-12-30  Eric Blake  <ebb9@byu.net>
18642
18643         futimens, utimensat: work around ntfs-3g bug
18644         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18645         a ctime bug is present, and expand workaround to cover ntfs-3g.
18646         * lib/utimens.c (fdutimens, lutimens): Likewise.
18647         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18648         (validate_timespec): Adjust return value.
18649         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18650         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18651         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18652
18653 2009-12-29  Eric Blake  <ebb9@byu.net>
18654
18655         link-warning: make usage consistent
18656         * modules/ctype (Depends-on): Add link-warning.
18657         (Makefile.am): Update rules accordingly.
18658         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18659         * modules/locale (Depends-on, Makefile.am): Likewise.
18660         * modules/sys_file (Makefile.am): Likewise.
18661         * modules/getopt-posix (Makefile.am): Delete unused link warning
18662         efforts.
18663         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18664         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18665         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18666         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18667
18668         stdio: remove unused variables
18669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18670         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18671         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18672
18673         tests: test more substitute headers
18674         * modules/ctype-tests: New file.
18675         * modules/dirent-tests: Likewise.
18676         * modules/spawn-tests: Likewise.
18677         * modules/sys_file-tests: Likewise.
18678         * modules/sys_ioctl-tests: Likewise.
18679         * modules/sys_wait-tests: Likewise.
18680         * tests/test-ctype.c: Likewise.
18681         * tests/test-dirent.c: Likewise.
18682         * tests/test-spawn.c: Likewise.
18683         * tests/test-sys_file.c: Likewise.
18684         * tests/test-sys_ioctl.c: Likewise.
18685         * tests/test-sys_wait.c: Likewise.
18686         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18687         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18688         whether or not flock is in use.
18689
18690         tests: remove License section from module
18691         * modules/arpa_inet-tests: Remove unneeded section.
18692         * modules/byteswap-tests: Likewise.
18693         * modules/ceilf-tests: Likewise.
18694         * modules/ceill-tests: Likewise.
18695         * modules/crypto/des-tests: Likewise.
18696         * modules/crypto/gc-arcfour-tests: Likewise.
18697         * modules/crypto/gc-arctwo-tests: Likewise.
18698         * modules/crypto/gc-des-tests: Likewise.
18699         * modules/crypto/gc-hmac-md5-tests: Likewise.
18700         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18701         * modules/crypto/gc-md2-tests: Likewise.
18702         * modules/crypto/gc-md4-tests: Likewise.
18703         * modules/crypto/gc-md5-tests: Likewise.
18704         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18705         * modules/crypto/gc-rijndael-tests: Likewise.
18706         * modules/crypto/gc-sha1-tests: Likewise.
18707         * modules/crypto/gc-tests: Likewise.
18708         * modules/crypto/md2-tests: Likewise.
18709         * modules/crypto/md4-tests: Likewise.
18710         * modules/fcntl-h-tests: Likewise.
18711         * modules/floorf-tests: Likewise.
18712         * modules/floorl-tests: Likewise.
18713         * modules/frexp-nolibm-tests: Likewise.
18714         * modules/frexp-tests: Likewise.
18715         * modules/frexpl-nolibm-tests: Likewise.
18716         * modules/frexpl-tests: Likewise.
18717         * modules/getaddrinfo-tests: Likewise.
18718         * modules/inttypes-tests: Likewise.
18719         * modules/isfinite-tests: Likewise.
18720         * modules/isinf-tests: Likewise.
18721         * modules/ldexpl-tests: Likewise.
18722         * modules/locale-tests: Likewise.
18723         * modules/math-tests: Likewise.
18724         * modules/netdb-tests: Likewise.
18725         * modules/netinet_in-tests: Likewise.
18726         * modules/printf-frexp-tests: Likewise.
18727         * modules/printf-frexpl-tests: Likewise.
18728         * modules/priv-set-tests: Likewise.
18729         * modules/random_r-tests: Likewise.
18730         * modules/round-tests: Likewise.
18731         * modules/roundf-tests: Likewise.
18732         * modules/roundl-tests: Likewise.
18733         * modules/search-tests: Likewise.
18734         * modules/select-tests: Likewise.
18735         * modules/signal-tests: Likewise.
18736         * modules/stdbool-tests: Likewise.
18737         * modules/stddef-tests: Likewise.
18738         * modules/stdint-tests: Likewise.
18739         * modules/stdio-tests: Likewise.
18740         * modules/stdlib-tests: Likewise.
18741         * modules/string-tests: Likewise.
18742         * modules/strings-tests: Likewise.
18743         * modules/sys_select-tests: Likewise.
18744         * modules/sys_socket-tests: Likewise.
18745         * modules/sys_stat-tests: Likewise.
18746         * modules/sys_time-tests: Likewise.
18747         * modules/sys_utsname-tests: Likewise.
18748         * modules/sysexits-tests: Likewise.
18749         * modules/time-tests: Likewise.
18750         * modules/trunc-tests: Likewise.
18751         * modules/truncf-tests: Likewise.
18752         * modules/truncl-tests: Likewise.
18753         * modules/tsearch-tests: Likewise.
18754         * modules/unistd-tests: Likewise.
18755         * modules/wchar-tests: Likewise.
18756         * modules/wctype-tests: Likewise.
18757
18758         tests: fix license on several tests
18759         * tests/test-des.c: Update to GPLv3+.
18760         * tests/test-flock.c: Likewise.
18761         * tests/test-fsync.c: Likewise.
18762         * tests/test-futimens.h: Likewise.
18763         * tests/test-gc-arcfour.c: Likewise.
18764         * tests/test-gc-arctwo.c: Likewise.
18765         * tests/test-gc-des.c: Likewise.
18766         * tests/test-gc-hmac-md5.c: Likewise.
18767         * tests/test-gc-hmac-sha1.c: Likewise.
18768         * tests/test-gc-md2.c: Likewise.
18769         * tests/test-gc-md4.c: Likewise.
18770         * tests/test-gc-md5.c: Likewise.
18771         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18772         * tests/test-gc-rijndael.c: Likewise.
18773         * tests/test-gc-sha1.c: Likewise.
18774         * tests/test-gc.c: Likewise.
18775         * tests/test-getcwd.c: Likewise.
18776         * tests/test-link.c: Likewise.
18777         * tests/test-link.h: Likewise.
18778         * tests/test-lutimens.h: Likewise.
18779         * tests/test-md2.c: Likewise.
18780         * tests/test-md4.c: Likewise.
18781         * tests/test-mkdir.h: Likewise.
18782         * tests/test-rename.c: Likewise.
18783         * tests/test-rename.h: Likewise.
18784         * tests/test-safe-alloc.c: Likewise.
18785         * tests/test-utimens-common.h: Likewise.
18786         * tests/test-utimens.h: Likewise.
18787
18788         maint: sync license texts
18789         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18790         * doc/gpl-3.0.texi: Revert copyright year update.
18791         * doc/lgpl-3.0.texi: Likewise.
18792
18793 2009-12-29  Jim Meyering  <meyering@redhat.com>
18794
18795         update nearly all FSF copyright year lists to include 2009
18796         The files named by the following are exempted:
18797             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18798               test -f "$dst" && { echo "$dst"; continue; }
18799               test -d "$dst" || continue
18800               echo "$dst"/$(basename "$src")
18801             done > exempt
18802             git ls-files tests/unictype >> exempt
18803         In the remaining files, convert to all-interval notation if
18804         - there is already at least one year interval like 2000-2003
18805         - the file is maintained by me
18806         - the file is in lib/uni*/, where that style already prevails
18807         Otherwise, use update-copyright's default.
18808
18809 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18810         and Eric Blake  <ebb9@byu.net>
18811
18812         tests: don't require debug system() to pass
18813         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18814         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18815         * tests/test-unlink.h (test_unlink_func): Likewise.
18816         * tests/test-fstatat.c (main): ...into callers.
18817         * tests/test-lstat.c (main): Likewise.
18818         * tests/test-rmdir.c (main): Likewise.
18819         * tests/test-unlink.c (main): Likewise.
18820         * tests/test-unlinkat.c (main): Likewise.
18821         * tests/test-areadlink-with-size.c (main): Don't require a
18822         debug-only system call to pass, aiding cross-testing to mingw.
18823         * tests/test-areadlink.c (main): Likewise.
18824         * tests/test-areadlinkat-with-size.c (main): Likewise.
18825         * tests/test-areadlinkat.c (main): Likewise.
18826         * tests/test-canonicalize-lgpl.c (main): Likewise.
18827         * tests/test-canonicalize.c (main): Likewise.
18828         * tests/test-chown.c (main): Likewise.
18829         * tests/test-fchownat.c (main): Likewise.
18830         * tests/test-lchown.c (main): Likewise.
18831         * tests/test-fdutimensat.c (main): Likewise.
18832         * tests/test-futimens.c (main): Likewise.
18833         * tests/test-link.c (main): Likewise.
18834         * tests/test-linkat.c (main): Likewise.
18835         * tests/test-mkdir.c (main): Likewise.
18836         * tests/test-mkdirat.c (main): Likewise.
18837         * tests/test-mkfifo.c (main): Likewise.
18838         * tests/test-mkfifoat.c (main): Likewise.
18839         * tests/test-mknod.c (main): Likewise.
18840         * tests/test-readlink.c (main): Likewise.
18841         * tests/test-remove.c (main): Likewise.
18842         * tests/test-rename.c (main): Likewise.
18843         * tests/test-renameat.c (main): Likewise.
18844         * tests/test-symlink.c (main): Likewise.
18845         * tests/test-symlinkat.c (main): Likewise.
18846         * tests/test-utimens.c (main): Likewise.
18847         * tests/test-utimensat.c (main): Likewise.
18848
18849 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18850
18851         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18852         on $(UNUSED_PARAMETER_H) to avoid build failure.
18853
18854 2009-12-28  Jim Meyering  <meyering@redhat.com>
18855
18856         update-copyright: you may specify a max. line length other than 72
18857         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18858
18859         maint: use consistent FSF copyright line syntax
18860         * lib/posixtm.c: Add missing comma in FSF copyright line.
18861         * lib/posixtm.h: Likewise.
18862         * lib/getugroups.c: Add missing ", Inc.".
18863
18864         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18865         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18866         FSF copyright line.  Remove trailing blanks.
18867
18868 2009-12-28  Eric Blake  <ebb9@byu.net>
18869
18870         test-dup2: reduce dependencies
18871         * modules/cloexec (Configure.ac): Set witness.
18872         * modules/dup2-tests (Depends-on): Drop cloexec.
18873         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18874         not present.
18875         Suggested by Bruno Haible.
18876
18877 2009-12-26  Bruno Haible  <bruno@clisp.org>
18878
18879         Remove an unneeded dependency.
18880         * modules/fseterr (Depends-on): Remove dup2.
18881
18882 2009-12-26  Eric Blake  <ebb9@byu.net>
18883
18884         tests: use macros.h in more places
18885         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18886         (ASSERT_STREAM): Provide default of stderr.
18887         * tests/test-dirent-safer.c: Include macros.h, using alternate
18888         stream for assertions.
18889         * tests/test-dup-safer.c: Likewise.
18890         * tests/test-freopen-safer.c: Likewise.
18891         * tests/test-getopt.c: Likewise.
18892         * tests/test-openat-safer.c: Likewise.
18893         * tests/test-pipe.c: Likewise.
18894         * tests/test-popen-safer.c: Likewise.
18895         * modules/dirent-safer-tests (Files): Include macros.h.
18896         * modules/unistd-safer-tests (Files): Likewise.
18897         * modules/freopen-safer-tests (Files): Likewise.
18898         * modules/getopt-posix-tests (Files): Likewise.
18899         * modules/openat-safer-tests (Files): Likewise.
18900         * modules/pipe-tests (Files): Likewise.
18901
18902 2009-12-26  Bruno Haible  <bruno@clisp.org>
18903
18904         javacomp: Portability fix.
18905         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18906         that it also works on Solaris.
18907
18908 2009-12-26  Bruno Haible  <bruno@clisp.org>
18909
18910         localename: Fix storage allocation of gl_locale_name_thread's result.
18911         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18912         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18913         all platforms that have 'uselocale'.
18914         (gl_locale_name_thread_unsafe): New function, extracted from
18915         gl_locale_name_thread.
18916         (gl_locale_name_thread): Call struniq on all platforms that have
18917         'uselocale'.
18918         * tests/test-localename.c (test_locale_name_thread): Check that the
18919         resulting strings are permanently allocated.
18920         * modules/localename-tests (Depends-on): Add strdup.
18921
18922 2009-12-26  Bruno Haible  <bruno@clisp.org>
18923
18924         * tests/test-localename.c (categories): Fill in the strings.
18925
18926 2009-12-26  Jim Meyering  <meyering@redhat.com>
18927
18928         isdir: complete the removal of m4/isdir.m4
18929         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18930
18931         isdir: clean up, since at least grep still uses it
18932         * lib/isdir.c: Include "isdir.h".
18933         (S_ISDIR): Remove now-unneeded definition.
18934         * modules/isdir (Files): Add lib/isdir.h.
18935         * lib/isdir.h: New file, with declaration.
18936         * m4/isdir.m4: Remove file -- unneeded.
18937
18938 2009-12-25  Bruno Haible  <bruno@clisp.org>
18939
18940         selinux-h: Make generated .h files standalone.
18941         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18942         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18943         * lib/se-selinux.in.h: Likewise.
18944         * modules/selinux-h (Depends-on): Add unused-parameter.
18945         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18946         selinux/selinux.h and selinux/context.h.
18947         Suggested by Eric Blake.
18948
18949 2009-12-25  Bruno Haible  <bruno@clisp.org>
18950
18951         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18952         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18953         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18954         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18955         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18956
18957 2009-12-24  Bruno Haible  <bruno@clisp.org>
18958
18959         openat: Fix warning.
18960         * lib/openat-proc.c: Include <unistd.h>.
18961
18962 2009-12-24  Bruno Haible  <bruno@clisp.org>
18963
18964         New module 'unused-parameter'.
18965         * build-aux/unused-parameter.h: New file, extracted from earlier
18966         gnulib-common.m4.
18967         * modules/unused-parameter: New file.
18968         * lib/unistr.h: Include unused-parameter.h.
18969         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18970         _GL_UNUSED.
18971         * modules/unistr/base (Depends-on): Add unused-parameter.
18972
18973 2009-12-24  Bruno Haible  <bruno@clisp.org>
18974
18975         Add missing dependencies to 'extensions' module.
18976         * m4/extensions.m4: Add comment.
18977         * modules/accept4 (Depends-on): Add extensions.
18978         * modules/dup3 (Depends-on): Likewise.
18979         * modules/fcntl (Depends-on): Likewise.
18980         * modules/futimens (Depends-on): Likewise.
18981         * modules/mknod (Depends-on): Likewise.
18982         * modules/pipe2 (Depends-on): Likewise.
18983         * modules/stat-time (Depends-on): Likewise.
18984         * modules/strcasestr-simple (Depends-on): Likewise.
18985         * modules/strsignal (Depends-on): Likewise.
18986         * modules/utimensat (Depends-on): Likewise.
18987         * modules/localcharset (Depends-on): Likewise. Needed because of
18988         gl_FCNTL_O_FLAGS.
18989         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18990         AC_TYPE_MBSTATE_T.
18991         * modules/wcsnrtombs (Depends-on): Likewise.
18992         * modules/wcsrtombs (Depends-on): Likewise.
18993
18994 2009-12-24  Bruno Haible  <bruno@clisp.org>
18995
18996         binary-io: Avoid gcc warning due to SET_BINARY.
18997         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18998         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18999
19000 2009-12-24  Bruno Haible  <bruno@clisp.org>
19001
19002         Avoid future namespace pollution on glibc systems.
19003         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19004         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19005         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19006         glibc systems.
19007
19008 2009-12-24  Bruno Haible  <bruno@clisp.org>
19009
19010         Refactor common macros used in tests.
19011         * tests/macros.h: New file.
19012         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19013         and/or <stdlib.h>, if appropriate.
19014         (ASSERT, SIZEOF): Remove macros.
19015         * tests/test-areadlink-with-size.c: Likewise.
19016         * tests/test-areadlinkat.c: Likewise.
19017         * tests/test-areadlinkat-with-size.c: Likewise.
19018         * tests/test-argmatch.c: Likewise.
19019         * tests/test-argv-iter.c: Likewise.
19020         * tests/test-array-mergesort.c: Likewise.
19021         * tests/test-array_list.c: Likewise.
19022         * tests/test-array_oset.c: Likewise.
19023         * tests/test-avltree_list.c: Likewise.
19024         * tests/test-avltree_oset.c: Likewise.
19025         * tests/test-avltreehash_list.c: Likewise.
19026         * tests/test-base64.c: Likewise.
19027         * tests/test-binary-io.c: Likewise.
19028         * tests/test-bitrotate.c: Likewise.
19029         * tests/test-btowc.c: Likewise.
19030         * tests/test-byteswap.c: Likewise.
19031         * tests/test-c-ctype.c: Likewise.
19032         * tests/test-c-stack.c: Likewise.
19033         * tests/test-c-strcasecmp.c: Likewise.
19034         * tests/test-c-strcasestr.c: Likewise.
19035         * tests/test-c-strncasecmp.c: Likewise.
19036         * tests/test-c-strstr.c: Likewise.
19037         * tests/test-canonicalize-lgpl.c: Likewise.
19038         * tests/test-canonicalize.c: Likewise.
19039         * tests/test-carray_list.c: Likewise.
19040         * tests/test-ceilf1.c: Likewise.
19041         * tests/test-ceilf2.c: Likewise.
19042         * tests/test-ceill.c: Likewise.
19043         * tests/test-chown.c: Likewise.
19044         * tests/test-cloexec.c: Likewise.
19045         * tests/test-copy-acl.c: Likewise.
19046         * tests/test-copy-file.c: Likewise.
19047         * tests/test-count-one-bits.c: Likewise.
19048         * tests/test-dprintf-posix.c: Likewise.
19049         * tests/test-dup2.c: Likewise.
19050         * tests/test-dup3.c: Likewise.
19051         * tests/test-duplocale.c: Likewise.
19052         * tests/test-fbufmode.c: Likewise.
19053         * tests/test-fchdir.c: Likewise.
19054         * tests/test-fchownat.c: Likewise.
19055         * tests/test-fcntl-safer.c: Likewise.
19056         * tests/test-fcntl.c: Likewise.
19057         * tests/test-fdopendir.c: Likewise.
19058         * tests/test-fdutimensat.c: Likewise.
19059         * tests/test-fflush2.c: Likewise.
19060         * tests/test-file-has-acl.c: Likewise.
19061         * tests/test-filevercmp.c: Likewise.
19062         * tests/test-flock.c: Likewise.
19063         * tests/test-floorf1.c: Likewise.
19064         * tests/test-floorf2.c: Likewise.
19065         * tests/test-floorl.c: Likewise.
19066         * tests/test-fnmatch.c: Likewise.
19067         * tests/test-fopen.h: Likewise.
19068         * tests/test-fpending.c: Likewise.
19069         * tests/test-fprintf-posix.c: Likewise.
19070         * tests/test-fpurge.c: Likewise.
19071         * tests/test-freadable.c: Likewise.
19072         * tests/test-freadahead.c: Likewise.
19073         * tests/test-freading.c: Likewise.
19074         * tests/test-freadptr.c: Likewise.
19075         * tests/test-freadptr2.c: Likewise.
19076         * tests/test-freadseek.c: Likewise.
19077         * tests/test-freopen.c: Likewise.
19078         * tests/test-frexp.c: Likewise.
19079         * tests/test-frexpl.c: Likewise.
19080         * tests/test-fseek.c: Likewise.
19081         * tests/test-fseeko.c: Likewise.
19082         * tests/test-fstatat.c: Likewise.
19083         * tests/test-fstrcmp.c: Likewise.
19084         * tests/test-fsync.c: Likewise.
19085         * tests/test-ftell.c: Likewise.
19086         * tests/test-ftello.c: Likewise.
19087         * tests/test-func.c: Likewise.
19088         * tests/test-futimens.c: Likewise.
19089         * tests/test-fwritable.c: Likewise.
19090         * tests/test-fwriting.c: Likewise.
19091         * tests/test-getcwd.c: Likewise.
19092         * tests/test-getdate.c: Likewise.
19093         * tests/test-getdelim.c: Likewise.
19094         * tests/test-getdtablesize.c: Likewise.
19095         * tests/test-getgroups.c: Likewise.
19096         * tests/test-getline.c: Likewise.
19097         * tests/test-getndelim2.c: Likewise.
19098         * tests/test-glob.c: Likewise.
19099         * tests/test-hash.c: Likewise.
19100         * tests/test-i-ring.c: Likewise.
19101         * tests/test-iconv-utf.c: Likewise.
19102         * tests/test-iconv.c: Likewise.
19103         * tests/test-idpriv-drop.c: Likewise.
19104         * tests/test-idpriv-droptemp.c: Likewise.
19105         * tests/test-inet_ntop.c: Likewise.
19106         * tests/test-inet_pton.c: Likewise.
19107         * tests/test-isblank.c: Likewise.
19108         * tests/test-isfinite.c: Likewise.
19109         * tests/test-isinf.c: Likewise.
19110         * tests/test-isnan.c: Likewise.
19111         * tests/test-isnand.h: Likewise.
19112         * tests/test-isnanf.h: Likewise.
19113         * tests/test-isnanl.h: Likewise.
19114         * tests/test-lchown.c: Likewise.
19115         * tests/test-ldexpl.c: Likewise.
19116         * tests/test-link.c: Likewise.
19117         * tests/test-linkat.c: Likewise.
19118         * tests/test-linked_list.c: Likewise.
19119         * tests/test-linkedhash_list.c: Likewise.
19120         * tests/test-localename.c: Likewise.
19121         * tests/test-lseek.c: Likewise.
19122         * tests/test-lstat.c: Likewise.
19123         * tests/test-mbmemcasecmp.c: Likewise.
19124         * tests/test-mbmemcasecoll.c: Likewise.
19125         * tests/test-mbrtowc.c: Likewise.
19126         * tests/test-mbscasecmp.c: Likewise.
19127         * tests/test-mbscasestr1.c: Likewise.
19128         * tests/test-mbscasestr2.c: Likewise.
19129         * tests/test-mbscasestr3.c: Likewise.
19130         * tests/test-mbscasestr4.c: Likewise.
19131         * tests/test-mbschr.c: Likewise.
19132         * tests/test-mbscspn.c: Likewise.
19133         * tests/test-mbsinit.c: Likewise.
19134         * tests/test-mbsncasecmp.c: Likewise.
19135         * tests/test-mbsnrtowcs.c: Likewise.
19136         * tests/test-mbspbrk.c: Likewise.
19137         * tests/test-mbspcasecmp.c: Likewise.
19138         * tests/test-mbsrchr.c: Likewise.
19139         * tests/test-mbsrtowcs.c: Likewise.
19140         * tests/test-mbsspn.c: Likewise.
19141         * tests/test-mbsstr1.c: Likewise.
19142         * tests/test-mbsstr2.c: Likewise.
19143         * tests/test-mbsstr3.c: Likewise.
19144         * tests/test-memchr.c: Likewise.
19145         * tests/test-memchr2.c: Likewise.
19146         * tests/test-memcmp.c: Likewise.
19147         * tests/test-memmem.c: Likewise.
19148         * tests/test-memrchr.c: Likewise.
19149         * tests/test-mkdir.c: Likewise.
19150         * tests/test-mkdirat.c: Likewise.
19151         * tests/test-mkfifo.c: Likewise.
19152         * tests/test-mkfifoat.c: Likewise.
19153         * tests/test-mknod.c: Likewise.
19154         * tests/test-nanosleep.c: Likewise.
19155         * tests/test-nl_langinfo.c: Likewise.
19156         * tests/test-obstack-printf.c: Likewise.
19157         * tests/test-open.c: Likewise.
19158         * tests/test-openat.c: Likewise.
19159         * tests/test-pipe-filter-gi1.c: Likewise.
19160         * tests/test-pipe-filter-gi2-main.c: Likewise.
19161         * tests/test-pipe-filter-ii1.c: Likewise.
19162         * tests/test-pipe-filter-ii2-main.c: Likewise.
19163         * tests/test-pipe2.c: Likewise.
19164         * tests/test-popen.h: Likewise.
19165         * tests/test-posixtm.c: Likewise.
19166         * tests/test-pread.c: Likewise.
19167         * tests/test-printf-frexp.c: Likewise.
19168         * tests/test-printf-frexpl.c: Likewise.
19169         * tests/test-printf-posix.c: Likewise.
19170         * tests/test-priv-set.c: Likewise.
19171         * tests/test-quotearg.c: Likewise.
19172         * tests/test-random_r.c: Likewise.
19173         * tests/test-rawmemchr.c: Likewise.
19174         * tests/test-rbtree_list.c: Likewise.
19175         * tests/test-rbtree_oset.c: Likewise.
19176         * tests/test-rbtreehash_list.c: Likewise.
19177         * tests/test-readlink.c: Likewise.
19178         * tests/test-remove.c: Likewise.
19179         * tests/test-rename.c: Likewise.
19180         * tests/test-renameat.c: Likewise.
19181         * tests/test-rmdir.c: Likewise.
19182         * tests/test-round1.c: Likewise.
19183         * tests/test-roundf1.c: Likewise.
19184         * tests/test-roundl.c: Likewise.
19185         * tests/test-safe-alloc.c: Likewise.
19186         * tests/test-sameacls.c: Likewise.
19187         * tests/test-set-mode-acl.c: Likewise.
19188         * tests/test-setenv.c: Likewise.
19189         * tests/test-sigaction.c: Likewise.
19190         * tests/test-signbit.c: Likewise.
19191         * tests/test-sleep.c: Likewise.
19192         * tests/test-snprintf-posix.c: Likewise.
19193         * tests/test-snprintf.c: Likewise.
19194         * tests/test-sprintf-posix.c: Likewise.
19195         * tests/test-stat-time.c: Likewise.
19196         * tests/test-stat.c: Likewise.
19197         * tests/test-strcasestr.c: Likewise.
19198         * tests/test-strchrnul.c: Likewise.
19199         * tests/test-strerror.c: Likewise.
19200         * tests/test-striconv.c: Likewise.
19201         * tests/test-striconveh.c: Likewise.
19202         * tests/test-striconveha.c: Likewise.
19203         * tests/test-strsignal.c: Likewise.
19204         * tests/test-strstr.c: Likewise.
19205         * tests/test-strtod.c: Likewise.
19206         * tests/test-strverscmp.c: Likewise.
19207         * tests/test-symlink.c: Likewise.
19208         * tests/test-symlinkat.c: Likewise.
19209         * tests/test-trunc1.c: Likewise.
19210         * tests/test-trunc2.c: Likewise.
19211         * tests/test-truncf1.c: Likewise.
19212         * tests/test-truncf2.c: Likewise.
19213         * tests/test-truncl.c: Likewise.
19214         * tests/test-uname.c: Likewise.
19215         * tests/test-unlink.c: Likewise.
19216         * tests/test-unlinkat.c: Likewise.
19217         * tests/test-unsetenv.c: Likewise.
19218         * tests/test-usleep.c: Likewise.
19219         * tests/test-utimens.c: Likewise.
19220         * tests/test-utimensat.c: Likewise.
19221         * tests/test-vasnprintf-posix.c: Likewise.
19222         * tests/test-vasnprintf-posix2.c: Likewise.
19223         * tests/test-vasnprintf.c: Likewise.
19224         * tests/test-vasprintf-posix.c: Likewise.
19225         * tests/test-vasprintf.c: Likewise.
19226         * tests/test-vdprintf-posix.c: Likewise.
19227         * tests/test-vfprintf-posix.c: Likewise.
19228         * tests/test-vprintf-posix.c: Likewise.
19229         * tests/test-vsnprintf-posix.c: Likewise.
19230         * tests/test-vsnprintf.c: Likewise.
19231         * tests/test-vsprintf-posix.c: Likewise.
19232         * tests/test-wcrtomb.c: Likewise.
19233         * tests/test-wcsnrtombs.c: Likewise.
19234         * tests/test-wcsrtombs.c: Likewise.
19235         * tests/test-wctype.c: Likewise.
19236         * tests/test-wcwidth.c: Likewise.
19237         * tests/test-xfprintf-posix.c: Likewise.
19238         * tests/test-xmemdup0.c: Likewise.
19239         * tests/test-xprintf-posix.c: Likewise.
19240         * tests/test-xvasprintf.c: Likewise.
19241         * tests/unicase/test-locale-language.c: Likewise.
19242         * tests/unicase/test-mapping-part1.h: Likewise.
19243         * tests/unicase/test-predicate-part1.h: Likewise.
19244         * tests/unicase/test-u8-casecmp.c: Likewise.
19245         * tests/unicase/test-u8-casecoll.c: Likewise.
19246         * tests/unicase/test-u8-casefold.c: Likewise.
19247         * tests/unicase/test-u8-is-cased.c: Likewise.
19248         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19249         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19250         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19251         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19252         * tests/unicase/test-u8-tolower.c: Likewise.
19253         * tests/unicase/test-u8-totitle.c: Likewise.
19254         * tests/unicase/test-u8-toupper.c: Likewise.
19255         * tests/unicase/test-u16-casecmp.c: Likewise.
19256         * tests/unicase/test-u16-casecoll.c: Likewise.
19257         * tests/unicase/test-u16-casefold.c: Likewise.
19258         * tests/unicase/test-u16-is-cased.c: Likewise.
19259         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19260         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19261         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19262         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19263         * tests/unicase/test-u16-tolower.c: Likewise.
19264         * tests/unicase/test-u16-totitle.c: Likewise.
19265         * tests/unicase/test-u16-toupper.c: Likewise.
19266         * tests/unicase/test-u32-casecmp.c: Likewise.
19267         * tests/unicase/test-u32-casecoll.c: Likewise.
19268         * tests/unicase/test-u32-casefold.c: Likewise.
19269         * tests/unicase/test-u32-is-cased.c: Likewise.
19270         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19271         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19272         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19273         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19274         * tests/unicase/test-u32-tolower.c: Likewise.
19275         * tests/unicase/test-u32-totitle.c: Likewise.
19276         * tests/unicase/test-u32-toupper.c: Likewise.
19277         * tests/unicase/test-ulc-casecmp.c: Likewise.
19278         * tests/unicase/test-ulc-casecoll.c: Likewise.
19279         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19280         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19281         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19282         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19283         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19284         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19285         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19286         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19287         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19288         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19289         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19290         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19291         * tests/unictype/test-bidi_byname.c: Likewise.
19292         * tests/unictype/test-bidi_name.c: Likewise.
19293         * tests/unictype/test-bidi_of.c: Likewise.
19294         * tests/unictype/test-bidi_test.c: Likewise.
19295         * tests/unictype/test-block_list.c: Likewise.
19296         * tests/unictype/test-block_of.c: Likewise.
19297         * tests/unictype/test-block_test.c: Likewise.
19298         * tests/unictype/test-categ_and.c: Likewise.
19299         * tests/unictype/test-categ_and_not.c: Likewise.
19300         * tests/unictype/test-categ_byname.c: Likewise.
19301         * tests/unictype/test-categ_name.c: Likewise.
19302         * tests/unictype/test-categ_none.c: Likewise.
19303         * tests/unictype/test-categ_of.c: Likewise.
19304         * tests/unictype/test-categ_or.c: Likewise.
19305         * tests/unictype/test-categ_test_withtable.c: Likewise.
19306         * tests/unictype/test-combining.c: Likewise.
19307         * tests/unictype/test-decdigit.c: Likewise.
19308         * tests/unictype/test-digit.c: Likewise.
19309         * tests/unictype/test-mirror.c: Likewise.
19310         * tests/unictype/test-numeric.c: Likewise.
19311         * tests/unictype/test-pr_byname.c: Likewise.
19312         * tests/unictype/test-pr_test.c: Likewise.
19313         * tests/unictype/test-predicate-part1.h: Likewise.
19314         * tests/unictype/test-scripts.c: Likewise.
19315         * tests/unictype/test-sy_c_ident.c: Likewise.
19316         * tests/unictype/test-sy_java_ident.c: Likewise.
19317         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19318         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19319         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19320         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19321         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19322         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19323         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19324         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19325         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19326         * tests/uninorm/test-compat-decomposition.c: Likewise.
19327         * tests/uninorm/test-composition.c: Likewise.
19328         * tests/uninorm/test-decomposing-form.c: Likewise.
19329         * tests/uninorm/test-decomposition.c: Likewise.
19330         * tests/uninorm/test-u8-nfc.c: Likewise.
19331         * tests/uninorm/test-u8-nfd.c: Likewise.
19332         * tests/uninorm/test-u8-nfkc.c: Likewise.
19333         * tests/uninorm/test-u8-nfkd.c: Likewise.
19334         * tests/uninorm/test-u8-normcmp.c: Likewise.
19335         * tests/uninorm/test-u8-normcoll.c: Likewise.
19336         * tests/uninorm/test-u16-nfc.c: Likewise.
19337         * tests/uninorm/test-u16-nfd.c: Likewise.
19338         * tests/uninorm/test-u16-nfkc.c: Likewise.
19339         * tests/uninorm/test-u16-nfkd.c: Likewise.
19340         * tests/uninorm/test-u16-normcmp.c: Likewise.
19341         * tests/uninorm/test-u16-normcoll.c: Likewise.
19342         * tests/uninorm/test-u32-nfc.c: Likewise.
19343         * tests/uninorm/test-u32-nfd.c: Likewise.
19344         * tests/uninorm/test-u32-nfkc.c: Likewise.
19345         * tests/uninorm/test-u32-nfkd.c: Likewise.
19346         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19347         * tests/uninorm/test-u32-normcmp.c: Likewise.
19348         * tests/uninorm/test-u32-normcoll.c: Likewise.
19349         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19350         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19351         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19352         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19353         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19354         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19355         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19356         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19357         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19358         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19359         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19360         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19361         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19362         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19363         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19364         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19365         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19366         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19367         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19368         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19369         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19370         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19371         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19372         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19373         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19374         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19375         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19376         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19377         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19378         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19379         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19380         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19381         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19382         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19383         * tests/uniwidth/test-u8-width.c: Likewise.
19384         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19385         * tests/uniwidth/test-u16-width.c: Likewise.
19386         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19387         * tests/uniwidth/test-u32-width.c: Likewise.
19388         * tests/uniwidth/test-uc_width.c: Likewise.
19389         * tests/uniwidth/test-uc_width2.c: Likewise.
19390         * modules/acl-tests (Files): Add tests/macros.h.
19391         * modules/areadlink-tests (Files): Likewise.
19392         * modules/areadlink-with-size-tests (Files): Likewise.
19393         * modules/areadlinkat-tests (Files): Likewise.
19394         * modules/areadlinkat-with-size-tests (Files): Likewise.
19395         * modules/argmatch-tests (Files): Likewise.
19396         * modules/argv-iter-tests (Files): Likewise.
19397         * modules/array-list-tests (Files): Likewise.
19398         * modules/array-mergesort-tests (Files): Likewise.
19399         * modules/array-oset-tests (Files): Likewise.
19400         * modules/avltree-list-tests (Files): Likewise.
19401         * modules/avltree-oset-tests (Files): Likewise.
19402         * modules/avltreehash-list-tests (Files): Likewise.
19403         * modules/base64-tests (Files): Likewise.
19404         * modules/binary-io-tests (Files): Likewise.
19405         * modules/bitrotate-tests (Files): Likewise.
19406         * modules/btowc-tests (Files): Likewise.
19407         * modules/byteswap-tests (Files): Likewise.
19408         * modules/c-ctype-tests (Files): Likewise.
19409         * modules/c-stack-tests (Files): Likewise.
19410         * modules/c-strcase-tests (Files): Likewise.
19411         * modules/c-strcasestr-tests (Files): Likewise.
19412         * modules/c-strstr-tests (Files): Likewise.
19413         * modules/canonicalize-lgpl-tests (Files): Likewise.
19414         * modules/canonicalize-tests (Files): Likewise.
19415         * modules/carray-list-tests (Files): Likewise.
19416         * modules/ceilf-tests (Files): Likewise.
19417         * modules/ceill-tests (Files): Likewise.
19418         * modules/chown-tests (Files): Likewise.
19419         * modules/cloexec-tests (Files): Likewise.
19420         * modules/copy-file-tests (Files): Likewise.
19421         * modules/count-one-bits-tests (Files): Likewise.
19422         * modules/dprintf-posix-tests (Files): Likewise.
19423         * modules/dup2-tests (Files): Likewise.
19424         * modules/dup3-tests (Files): Likewise.
19425         * modules/duplocale-tests (Files): Likewise.
19426         * modules/fbufmode-tests (Files): Likewise.
19427         * modules/fchdir-tests (Files): Likewise.
19428         * modules/fcntl-safer-tests (Files): Likewise.
19429         * modules/fcntl-tests (Files): Likewise.
19430         * modules/fdopendir-tests (Files): Likewise.
19431         * modules/fdutimensat-tests (Files): Likewise.
19432         * modules/fflush-tests (Files): Likewise.
19433         * modules/filevercmp-tests (Files): Likewise.
19434         * modules/flock-tests (Files): Likewise.
19435         * modules/floorf-tests (Files): Likewise.
19436         * modules/floorl-tests (Files): Likewise.
19437         * modules/fnmatch-tests (Files): Likewise.
19438         * modules/fopen-safer-tests (Files): Likewise.
19439         * modules/fopen-tests (Files): Likewise.
19440         * modules/fpending-tests (Files): Likewise.
19441         * modules/fprintf-posix-tests (Files): Likewise.
19442         * modules/fpurge-tests (Files): Likewise.
19443         * modules/freadable-tests (Files): Likewise.
19444         * modules/freadahead-tests (Files): Likewise.
19445         * modules/freading-tests (Files): Likewise.
19446         * modules/freadptr-tests (Files): Likewise.
19447         * modules/freadseek-tests (Files): Likewise.
19448         * modules/freopen-tests (Files): Likewise.
19449         * modules/frexp-nolibm-tests (Files): Likewise.
19450         * modules/frexp-tests (Files): Likewise.
19451         * modules/frexpl-nolibm-tests (Files): Likewise.
19452         * modules/frexpl-tests (Files): Likewise.
19453         * modules/fseek-tests (Files): Likewise.
19454         * modules/fseeko-tests (Files): Likewise.
19455         * modules/fstrcmp-tests (Files): Likewise.
19456         * modules/fsync-tests (Files): Likewise.
19457         * modules/ftell-tests (Files): Likewise.
19458         * modules/ftello-tests (Files): Likewise.
19459         * modules/func-tests (Files): Likewise.
19460         * modules/futimens-tests (Files): Likewise.
19461         * modules/fwritable-tests (Files): Likewise.
19462         * modules/fwriting-tests (Files): Likewise.
19463         * modules/getcwd-tests (Files): Likewise.
19464         * modules/getdate-tests (Files): Likewise.
19465         * modules/getdelim-tests (Files): Likewise.
19466         * modules/getdtablesize-tests (Files): Likewise.
19467         * modules/getgroups-tests (Files): Likewise.
19468         * modules/getline-tests (Files): Likewise.
19469         * modules/getndelim2-tests (Files): Likewise.
19470         * modules/glob-tests (Files): Likewise.
19471         * modules/hash-tests (Files): Likewise.
19472         * modules/i-ring-tests (Files): Likewise.
19473         * modules/iconv-tests (Files): Likewise.
19474         * modules/iconv_open-utf-tests (Files): Likewise.
19475         * modules/idpriv-drop-tests (Files): Likewise.
19476         * modules/idpriv-droptemp-tests (Files): Likewise.
19477         * modules/inet_ntop-tests (Files): Likewise.
19478         * modules/inet_pton-tests (Files): Likewise.
19479         * modules/isblank-tests (Files): Likewise.
19480         * modules/isfinite-tests (Files): Likewise.
19481         * modules/isinf-tests (Files): Likewise.
19482         * modules/isnan-tests (Files): Likewise.
19483         * modules/isnand-nolibm-tests (Files): Likewise.
19484         * modules/isnand-tests (Files): Likewise.
19485         * modules/isnanf-nolibm-tests (Files): Likewise.
19486         * modules/isnanf-tests (Files): Likewise.
19487         * modules/isnanl-nolibm-tests (Files): Likewise.
19488         * modules/isnanl-tests (Files): Likewise.
19489         * modules/lchown-tests (Files): Likewise.
19490         * modules/ldexpl-tests (Files): Likewise.
19491         * modules/link-tests (Files): Likewise.
19492         * modules/linkat-tests (Files): Likewise.
19493         * modules/linked-list-tests (Files): Likewise.
19494         * modules/linkedhash-list-tests (Files): Likewise.
19495         * modules/localename-tests (Files): Likewise.
19496         * modules/lseek-tests (Files): Likewise.
19497         * modules/lstat-tests (Files): Likewise.
19498         * modules/mbmemcasecmp-tests (Files): Likewise.
19499         * modules/mbmemcasecoll-tests (Files): Likewise.
19500         * modules/mbrtowc-tests (Files): Likewise.
19501         * modules/mbscasecmp-tests (Files): Likewise.
19502         * modules/mbscasestr-tests (Files): Likewise.
19503         * modules/mbschr-tests (Files): Likewise.
19504         * modules/mbscspn-tests (Files): Likewise.
19505         * modules/mbsinit-tests (Files): Likewise.
19506         * modules/mbsncasecmp-tests (Files): Likewise.
19507         * modules/mbsnrtowcs-tests (Files): Likewise.
19508         * modules/mbspbrk-tests (Files): Likewise.
19509         * modules/mbspcasecmp-tests (Files): Likewise.
19510         * modules/mbsrchr-tests (Files): Likewise.
19511         * modules/mbsrtowcs-tests (Files): Likewise.
19512         * modules/mbsspn-tests (Files): Likewise.
19513         * modules/mbsstr-tests (Files): Likewise.
19514         * modules/memchr-tests (Files): Likewise.
19515         * modules/memchr2-tests (Files): Likewise.
19516         * modules/memcmp-tests (Files): Likewise.
19517         * modules/memmem-tests (Files): Likewise.
19518         * modules/memrchr-tests (Files): Likewise.
19519         * modules/mkdir-tests (Files): Likewise.
19520         * modules/mkfifo-tests (Files): Likewise.
19521         * modules/mkfifoat-tests (Files): Likewise.
19522         * modules/mknod-tests (Files): Likewise.
19523         * modules/nanosleep-tests (Files): Likewise.
19524         * modules/nl_langinfo-tests (Files): Likewise.
19525         * modules/obstack-printf-tests (Files): Likewise.
19526         * modules/open-tests (Files): Likewise.
19527         * modules/openat-tests (Files): Likewise.
19528         * modules/pipe-filter-gi-tests (Files): Likewise.
19529         * modules/pipe-filter-ii-tests (Files): Likewise.
19530         * modules/pipe2-tests (Files): Likewise.
19531         * modules/popen-safer-tests (Files): Likewise.
19532         * modules/popen-tests (Files): Likewise.
19533         * modules/posixtm-tests (Files): Likewise.
19534         * modules/pread-tests (Files): Likewise.
19535         * modules/printf-frexp-tests (Files): Likewise.
19536         * modules/printf-frexpl-tests (Files): Likewise.
19537         * modules/printf-posix-tests (Files): Likewise.
19538         * modules/priv-set-tests (Files): Likewise.
19539         * modules/quotearg-tests (Files): Likewise.
19540         * modules/random_r-tests (Files): Likewise.
19541         * modules/rawmemchr-tests (Files): Likewise.
19542         * modules/rbtree-list-tests (Files): Likewise.
19543         * modules/rbtree-oset-tests (Files): Likewise.
19544         * modules/rbtreehash-list-tests (Files): Likewise.
19545         * modules/readlink-tests (Files): Likewise.
19546         * modules/remove-tests (Files): Likewise.
19547         * modules/rename-tests (Files): Likewise.
19548         * modules/renameat-tests (Files): Likewise.
19549         * modules/rmdir-tests (Files): Likewise.
19550         * modules/round-tests (Files): Likewise.
19551         * modules/roundf-tests (Files): Likewise.
19552         * modules/roundl-tests (Files): Likewise.
19553         * modules/safe-alloc-tests (Files): Likewise.
19554         * modules/setenv-tests (Files): Likewise.
19555         * modules/sigaction-tests (Files): Likewise.
19556         * modules/signbit-tests (Files): Likewise.
19557         * modules/sleep-tests (Files): Likewise.
19558         * modules/snprintf-posix-tests (Files): Likewise.
19559         * modules/snprintf-tests (Files): Likewise.
19560         * modules/sprintf-posix-tests (Files): Likewise.
19561         * modules/stat-tests (Files): Likewise.
19562         * modules/stat-time-tests (Files): Likewise.
19563         * modules/strcasestr-tests (Files): Likewise.
19564         * modules/strchrnul-tests (Files): Likewise.
19565         * modules/strerror-tests (Files): Likewise.
19566         * modules/striconv-tests (Files): Likewise.
19567         * modules/striconveh-tests (Files): Likewise.
19568         * modules/striconveha-tests (Files): Likewise.
19569         * modules/strsignal-tests (Files): Likewise.
19570         * modules/strstr-tests (Files): Likewise.
19571         * modules/strtod-tests (Files): Likewise.
19572         * modules/strverscmp-tests (Files): Likewise.
19573         * modules/symlink-tests (Files): Likewise.
19574         * modules/symlinkat-tests (Files): Likewise.
19575         * modules/trunc-tests (Files): Likewise.
19576         * modules/truncf-tests (Files): Likewise.
19577         * modules/truncl-tests (Files): Likewise.
19578         * modules/uname-tests (Files): Likewise.
19579         * modules/unicase/cased-tests (Files): Likewise.
19580         * modules/unicase/ignorable-tests (Files): Likewise.
19581         * modules/unicase/locale-language-tests (Files): Likewise.
19582         * modules/unicase/tolower-tests (Files): Likewise.
19583         * modules/unicase/totitle-tests (Files): Likewise.
19584         * modules/unicase/toupper-tests (Files): Likewise.
19585         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19586         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19587         * modules/unicase/u8-casefold-tests (Files): Likewise.
19588         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19589         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19590         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19591         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19592         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19593         * modules/unicase/u8-tolower-tests (Files): Likewise.
19594         * modules/unicase/u8-totitle-tests (Files): Likewise.
19595         * modules/unicase/u8-toupper-tests (Files): Likewise.
19596         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19597         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19598         * modules/unicase/u16-casefold-tests (Files): Likewise.
19599         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19600         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19601         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19602         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19603         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19604         * modules/unicase/u16-tolower-tests (Files): Likewise.
19605         * modules/unicase/u16-totitle-tests (Files): Likewise.
19606         * modules/unicase/u16-toupper-tests (Files): Likewise.
19607         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19608         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19609         * modules/unicase/u32-casefold-tests (Files): Likewise.
19610         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19611         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19612         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19613         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19614         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19615         * modules/unicase/u32-tolower-tests (Files): Likewise.
19616         * modules/unicase/u32-totitle-tests (Files): Likewise.
19617         * modules/unicase/u32-toupper-tests (Files): Likewise.
19618         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19619         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19620         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19621         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19622         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19623         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19624         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19625         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19626         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19627         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19628         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19629         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19630         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19631         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19632         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19633         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19634         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19635         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19636         * modules/unictype/block-list-tests (Files): Likewise.
19637         * modules/unictype/block-of-tests (Files): Likewise.
19638         * modules/unictype/block-test-tests (Files): Likewise.
19639         * modules/unictype/category-C-tests (Files): Likewise.
19640         * modules/unictype/category-Cc-tests (Files): Likewise.
19641         * modules/unictype/category-Cf-tests (Files): Likewise.
19642         * modules/unictype/category-Cn-tests (Files): Likewise.
19643         * modules/unictype/category-Co-tests (Files): Likewise.
19644         * modules/unictype/category-Cs-tests (Files): Likewise.
19645         * modules/unictype/category-L-tests (Files): Likewise.
19646         * modules/unictype/category-Ll-tests (Files): Likewise.
19647         * modules/unictype/category-Lm-tests (Files): Likewise.
19648         * modules/unictype/category-Lo-tests (Files): Likewise.
19649         * modules/unictype/category-Lt-tests (Files): Likewise.
19650         * modules/unictype/category-Lu-tests (Files): Likewise.
19651         * modules/unictype/category-M-tests (Files): Likewise.
19652         * modules/unictype/category-Mc-tests (Files): Likewise.
19653         * modules/unictype/category-Me-tests (Files): Likewise.
19654         * modules/unictype/category-Mn-tests (Files): Likewise.
19655         * modules/unictype/category-N-tests (Files): Likewise.
19656         * modules/unictype/category-Nd-tests (Files): Likewise.
19657         * modules/unictype/category-Nl-tests (Files): Likewise.
19658         * modules/unictype/category-No-tests (Files): Likewise.
19659         * modules/unictype/category-P-tests (Files): Likewise.
19660         * modules/unictype/category-Pc-tests (Files): Likewise.
19661         * modules/unictype/category-Pd-tests (Files): Likewise.
19662         * modules/unictype/category-Pe-tests (Files): Likewise.
19663         * modules/unictype/category-Pf-tests (Files): Likewise.
19664         * modules/unictype/category-Pi-tests (Files): Likewise.
19665         * modules/unictype/category-Po-tests (Files): Likewise.
19666         * modules/unictype/category-Ps-tests (Files): Likewise.
19667         * modules/unictype/category-S-tests (Files): Likewise.
19668         * modules/unictype/category-Sc-tests (Files): Likewise.
19669         * modules/unictype/category-Sk-tests (Files): Likewise.
19670         * modules/unictype/category-Sm-tests (Files): Likewise.
19671         * modules/unictype/category-So-tests (Files): Likewise.
19672         * modules/unictype/category-Z-tests (Files): Likewise.
19673         * modules/unictype/category-Zl-tests (Files): Likewise.
19674         * modules/unictype/category-Zp-tests (Files): Likewise.
19675         * modules/unictype/category-Zs-tests (Files): Likewise.
19676         * modules/unictype/category-and-not-tests (Files): Likewise.
19677         * modules/unictype/category-and-tests (Files): Likewise.
19678         * modules/unictype/category-byname-tests (Files): Likewise.
19679         * modules/unictype/category-name-tests (Files): Likewise.
19680         * modules/unictype/category-none-tests (Files): Likewise.
19681         * modules/unictype/category-of-tests (Files): Likewise.
19682         * modules/unictype/category-or-tests (Files): Likewise.
19683         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19684         * modules/unictype/combining-class-tests (Files): Likewise.
19685         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19686         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19687         * modules/unictype/ctype-blank-tests (Files): Likewise.
19688         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19689         * modules/unictype/ctype-digit-tests (Files): Likewise.
19690         * modules/unictype/ctype-graph-tests (Files): Likewise.
19691         * modules/unictype/ctype-lower-tests (Files): Likewise.
19692         * modules/unictype/ctype-print-tests (Files): Likewise.
19693         * modules/unictype/ctype-punct-tests (Files): Likewise.
19694         * modules/unictype/ctype-space-tests (Files): Likewise.
19695         * modules/unictype/ctype-upper-tests (Files): Likewise.
19696         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19697         * modules/unictype/decimal-digit-tests (Files): Likewise.
19698         * modules/unictype/digit-tests (Files): Likewise.
19699         * modules/unictype/mirror-tests (Files): Likewise.
19700         * modules/unictype/numeric-tests (Files): Likewise.
19701         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19702         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19703         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19704         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19705         Likewise.
19706         * modules/unictype/property-bidi-block-separator-tests (Files):
19707         Likewise.
19708         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19709         Likewise.
19710         * modules/unictype/property-bidi-common-separator-tests (Files):
19711         Likewise.
19712         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19713         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19714         Likewise.
19715         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19716         Likewise.
19717         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19718         Likewise.
19719         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19720         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19721         Likewise.
19722         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19723         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19724         Likewise.
19725         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19726         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19727         * modules/unictype/property-bidi-segment-separator-tests (Files):
19728         Likewise.
19729         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19730         * modules/unictype/property-byname-tests (Files): Likewise.
19731         * modules/unictype/property-combining-tests (Files): Likewise.
19732         * modules/unictype/property-composite-tests (Files): Likewise.
19733         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19734         * modules/unictype/property-dash-tests (Files): Likewise.
19735         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19736         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19737         Likewise.
19738         * modules/unictype/property-deprecated-tests (Files): Likewise.
19739         * modules/unictype/property-diacritic-tests (Files): Likewise.
19740         * modules/unictype/property-extender-tests (Files): Likewise.
19741         * modules/unictype/property-format-control-tests (Files): Likewise.
19742         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19743         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19744         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19745         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19746         * modules/unictype/property-hyphen-tests (Files): Likewise.
19747         * modules/unictype/property-id-continue-tests (Files): Likewise.
19748         * modules/unictype/property-id-start-tests (Files): Likewise.
19749         * modules/unictype/property-ideographic-tests (Files): Likewise.
19750         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19751         * modules/unictype/property-ids-trinary-operator-tests (Files):
19752         Likewise.
19753         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19754         * modules/unictype/property-iso-control-tests (Files): Likewise.
19755         * modules/unictype/property-join-control-tests (Files): Likewise.
19756         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19757         * modules/unictype/property-line-separator-tests (Files): Likewise.
19758         * modules/unictype/property-logical-order-exception-tests (Files):
19759         Likewise.
19760         * modules/unictype/property-lowercase-tests (Files): Likewise.
19761         * modules/unictype/property-math-tests (Files): Likewise.
19762         * modules/unictype/property-non-break-tests (Files): Likewise.
19763         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19764         * modules/unictype/property-numeric-tests (Files): Likewise.
19765         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19766         * modules/unictype/property-other-default-ignorable-code-point-tests
19767         (Files): Likewise.
19768         * modules/unictype/property-other-grapheme-extend-tests (Files):
19769         Likewise.
19770         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19771         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19772         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19773         * modules/unictype/property-other-math-tests (Files): Likewise.
19774         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19775         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19776         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19777         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19778         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19779         * modules/unictype/property-private-use-tests (Files): Likewise.
19780         * modules/unictype/property-punctuation-tests (Files): Likewise.
19781         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19782         * modules/unictype/property-radical-tests (Files): Likewise.
19783         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19784         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19785         * modules/unictype/property-space-tests (Files): Likewise.
19786         * modules/unictype/property-terminal-punctuation-tests (Files):
19787         Likewise.
19788         * modules/unictype/property-test-tests (Files): Likewise.
19789         * modules/unictype/property-titlecase-tests (Files): Likewise.
19790         * modules/unictype/property-unassigned-code-value-tests (Files):
19791         Likewise.
19792         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19793         * modules/unictype/property-uppercase-tests (Files): Likewise.
19794         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19795         * modules/unictype/property-white-space-tests (Files): Likewise.
19796         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19797         * modules/unictype/property-xid-start-tests (Files): Likewise.
19798         * modules/unictype/property-zero-width-tests (Files): Likewise.
19799         * modules/unictype/scripts-tests (Files): Likewise.
19800         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19801         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19802         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19803         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19804         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19805         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19806         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19807         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19808         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19809         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19810         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19811         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19812         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19813         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19814         * modules/uninorm/composition-tests (Files): Likewise.
19815         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19816         * modules/uninorm/decomposition-tests (Files): Likewise.
19817         * modules/uninorm/filter-tests (Files): Likewise.
19818         * modules/uninorm/nfc-tests (Files): Likewise.
19819         * modules/uninorm/nfd-tests (Files): Likewise.
19820         * modules/uninorm/nfkc-tests (Files): Likewise.
19821         * modules/uninorm/nfkd-tests (Files): Likewise.
19822         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19823         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19824         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19825         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19826         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19827         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19828         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19829         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19830         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19831         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19832         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19833         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19834         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19835         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19836         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19837         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19838         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19839         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19840         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19841         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19842         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19843         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19844         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19845         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19846         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19847         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19848         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19849         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19850         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19851         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19852         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19853         * modules/uniwidth/u8-width-tests (Files): Likewise.
19854         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19855         * modules/uniwidth/u16-width-tests (Files): Likewise.
19856         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19857         * modules/uniwidth/u32-width-tests (Files): Likewise.
19858         * modules/uniwidth/width-tests (Files): Likewise.
19859         * modules/unlink-tests (Files): Likewise.
19860         * modules/unsetenv-tests (Files): Likewise.
19861         * modules/usleep-tests (Files): Likewise.
19862         * modules/utimens-tests (Files): Likewise.
19863         * modules/utimensat-tests (Files): Likewise.
19864         * modules/vasnprintf-posix-tests (Files): Likewise.
19865         * modules/vasnprintf-tests (Files): Likewise.
19866         * modules/vasprintf-posix-tests (Files): Likewise.
19867         * modules/vasprintf-tests (Files): Likewise.
19868         * modules/vdprintf-posix-tests (Files): Likewise.
19869         * modules/vfprintf-posix-tests (Files): Likewise.
19870         * modules/vprintf-posix-tests (Files): Likewise.
19871         * modules/vsnprintf-posix-tests (Files): Likewise.
19872         * modules/vsnprintf-tests (Files): Likewise.
19873         * modules/vsprintf-posix-tests (Files): Likewise.
19874         * modules/wcrtomb-tests (Files): Likewise.
19875         * modules/wcsnrtombs-tests (Files): Likewise.
19876         * modules/wcsrtombs-tests (Files): Likewise.
19877         * modules/wctype-tests (Files): Likewise.
19878         * modules/wcwidth-tests (Files): Likewise.
19879         * modules/xmemdup0-tests (Files): Likewise.
19880         * modules/xprintf-posix-tests (Files): Likewise.
19881         * modules/xvasprintf-tests (Files): Likewise.
19882
19883 2009-12-24  Eric Blake  <ebb9@byu.net>
19884
19885         test-nanosleep: fix typo
19886         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19887         patch.
19888         Reported by Bruno Haible.
19889
19890 2009-12-24  Bruno Haible  <bruno@clisp.org>
19891
19892         Reduce namespace pollution on glibc systems.
19893         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19894         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19895         systems.
19896         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19897         <getopt.h> on glibc systems.
19898         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19899         systems.
19900         * lib/fcntl.c: Include <unistd.h> here instead.
19901
19902 2009-12-24  Bruno Haible  <bruno@clisp.org>
19903
19904         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19905
19906 2009-12-24  Eric Blake  <ebb9@byu.net>
19907
19908         tests: add signature checks
19909         * tests/signature.h (SIGNATURE_CHECK): New file.
19910         * modules/atexit-tests (Files): Use it.
19911         * modules/btowc-tests (Files): Likewise.
19912         * modules/canonicalize-lgpl-tests (Files): Likewise.
19913         * modules/ceilf-tests (Files): Likewise.
19914         * modules/ceill-tests (Files): Likewise.
19915         * modules/chown-tests (Files): Likewise.
19916         * modules/dprintf-posix-tests (Files): Likewise.
19917         * modules/dup2-tests (Files): Likewise.
19918         * modules/dup3-tests (Files): Likewise.
19919         * modules/duplocale-tests (Files): Likewise.
19920         * modules/fchdir-tests (Files): Likewise.
19921         * modules/fcntl-tests (Files): Likewise.
19922         * modules/fdopendir-tests (Files): Likewise.
19923         * modules/fflush-tests (Files): Likewise.
19924         * modules/flock-tests (Files): Likewise.
19925         * modules/floorf-tests (Files): Likewise.
19926         * modules/floorl-tests (Files): Likewise.
19927         * modules/fnmatch-tests (Files): Likewise.
19928         * modules/fopen-tests (Files): Likewise.
19929         * modules/fprintf-posix-tests (Files): Likewise.
19930         * modules/freopen-tests (Files): Likewise.
19931         * modules/frexp-nolibm-tests (Files): Likewise.
19932         * modules/frexp-tests (Files): Likewise.
19933         * modules/frexpl-nolibm-tests (Files): Likewise.
19934         * modules/frexpl-tests (Files): Likewise.
19935         * modules/fseek-tests (Files): Likewise.
19936         * modules/fseeko-tests (Files): Likewise.
19937         * modules/fsync-tests (Files): Likewise.
19938         * modules/ftell-tests (Files): Likewise.
19939         * modules/ftello-tests (Files): Likewise.
19940         * modules/futimens-tests (Files): Likewise.
19941         * modules/getaddrinfo-tests (Files): Likewise.
19942         * modules/getcwd-tests (Files): Likewise.
19943         * modules/getdelim-tests (Files): Likewise.
19944         * modules/getdtablesize-tests (Files): Likewise.
19945         * modules/getgroups-tests (Files): Likewise.
19946         * modules/gethostname-tests (Files): Likewise.
19947         * modules/getline-tests (Files): Likewise.
19948         * modules/getopt-posix-tests (Files): Likewise.
19949         * modules/gettimeofday-tests (Files): Likewise.
19950         * modules/glob-tests (Files): Likewise.
19951         * modules/iconv-tests (Files): Likewise.
19952         * modules/inet_ntop-tests (Files): Likewise.
19953         * modules/inet_pton-tests (Files): Likewise.
19954         * modules/isblank-tests (Files): Likewise.
19955         * modules/lchown-tests (Files): Likewise.
19956         * modules/ldexpl-tests (Files): Likewise.
19957         * modules/link-tests (Files): Likewise.
19958         * modules/linkat-tests (Files): Likewise.
19959         * modules/lseek-tests (Files): Likewise.
19960         * modules/lstat-tests (Files): Likewise.
19961         * modules/mbrtowc-tests (Files): Likewise.
19962         * modules/mbsinit-tests (Files): Likewise.
19963         * modules/mbsnrtowcs-tests (Files): Likewise.
19964         * modules/mbsrtowcs-tests (Files): Likewise.
19965         * modules/memchr-tests (Files): Likewise.
19966         * modules/memcmp-tests (Files): Likewise.
19967         * modules/memmem-tests (Files): Likewise.
19968         * modules/memrchr-tests (Files): Likewise.
19969         * modules/mkdir-tests (Files): Likewise.
19970         * modules/mkfifo-tests (Files): Likewise.
19971         * modules/mkfifoat-tests (Files): Likewise.
19972         * modules/mknod-tests (Files): Likewise.
19973         * modules/nanosleep-tests (Files): Likewise.
19974         * modules/nl_langinfo-tests (Files): Likewise.
19975         * modules/obstack-printf-tests (Files): Likewise.
19976         * modules/open-tests (Files): Likewise.
19977         * modules/openat-tests (Files): Likewise.
19978         * modules/perror-tests (Files): Likewise.
19979         * modules/pipe2-tests (Files): Likewise.
19980         * modules/poll-tests (Files): Likewise.
19981         * modules/popen-tests (Files): Likewise.
19982         * modules/posix_spawn-tests (Files): Likewise.
19983         * modules/posix_spawnp-tests (Files): Likewise.
19984         * modules/pread-tests (Files): Likewise.
19985         * modules/printf-posix-tests (Files): Likewise.
19986         * modules/pty-tests (Files): Likewise.
19987         * modules/random_r-tests (Files): Likewise.
19988         * modules/rawmemchr-tests (Files): Likewise.
19989         * modules/readlink-tests (Files): Likewise.
19990         * modules/remove-tests (Files): Likewise.
19991         * modules/rename-tests (Files): Likewise.
19992         * modules/renameat-tests (Files): Likewise.
19993         * modules/rmdir-tests (Files): Likewise.
19994         * modules/round-tests (Files): Likewise.
19995         * modules/roundf-tests (Files): Likewise.
19996         * modules/roundl-tests (Files): Likewise.
19997         * modules/select-tests (Files): Likewise.
19998         * modules/setenv-tests (Files): Likewise.
19999         * modules/sigaction-tests (Files): Likewise.
20000         * modules/sleep-tests (Files): Likewise.
20001         * modules/snprintf-posix-tests (Files): Likewise.
20002         * modules/snprintf-tests (Files): Likewise.
20003         * modules/sprintf-posix-tests (Files): Likewise.
20004         * modules/stat-tests (Files): Likewise.
20005         * modules/strcasestr-tests (Files): Likewise.
20006         * modules/strchrnul-tests (Files): Likewise.
20007         * modules/strerror-tests (Files): Likewise.
20008         * modules/strsignal-tests (Files): Likewise.
20009         * modules/strstr-tests (Files): Likewise.
20010         * modules/strtod-tests (Files): Likewise.
20011         * modules/strverscmp-tests (Files): Likewise.
20012         * modules/symlink-tests (Files): Likewise.
20013         * modules/symlinkat-tests (Files): Likewise.
20014         * modules/times-tests (Files): Likewise.
20015         * modules/trunc-tests (Files): Likewise.
20016         * modules/truncf-tests (Files): Likewise.
20017         * modules/truncl-tests (Files): Likewise.
20018         * modules/tsearch-tests (Files): Likewise.
20019         * modules/uname-tests (Files): Likewise.
20020         * modules/unlink-tests (Files): Likewise.
20021         * modules/unsetenv-tests (Files): Likewise.
20022         * modules/usleep-tests (Files): Likewise.
20023         * modules/utimensat-tests (Files): Likewise.
20024         * modules/vasprintf-tests (Files): Likewise.
20025         * modules/vdprintf-posix-tests (Files): Likewise.
20026         * modules/vfprintf-posix-tests (Files): Likewise.
20027         * modules/vprintf-posix-tests (Files): Likewise.
20028         * modules/vsnprintf-posix-tests (Files): Likewise.
20029         * modules/vsnprintf-tests (Files): Likewise.
20030         * modules/vsprintf-posix-tests (Files): Likewise.
20031         * modules/wcrtomb-tests (Files): Likewise.
20032         * modules/wcsnrtombs-tests (Files): Likewise.
20033         * modules/wcsrtombs-tests (Files): Likewise.
20034         * modules/wcwidth-tests (Files): Likewise.
20035         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20036         * tests/test-isinf.c (isinf): Likewise.
20037         * tests/test-isnan.c (isnan): Likewise.
20038         * tests/test-signbit.c (signbit): Likewise.
20039         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20040         declaration, either as macro or with correct signature.
20041         (select): Ensure function under test is declared with correct
20042         signature in correct header.
20043         * tests/test-atexit.c (atexit): Likewise.
20044         * tests/test-btowc.c (btowc): Likewise.
20045         * tests/test-canonicalize-lgpl.c (realpath)
20046         (canonicalize_file_name): Likewise.
20047         * tests/test-ceilf1.c (ceilf): Likewise.
20048         * tests/test-ceill.c (ceill): Likewise.
20049         * tests/test-chown.c (chown): Likewise.
20050         * tests/test-dprintf-posix.c (dprintf): Likewise.
20051         * tests/test-dup2.c (dup2): Likewise.
20052         * tests/test-dup3.c (dup3): Likewise.
20053         * tests/test-duplocale.c (duplocale): Likewise.
20054         * tests/test-fchdir.c (fchdir): Likewise.
20055         * tests/test-fchownat.c (fchownat): Likewise.
20056         * tests/test-fcntl.c (fcntl): Likewise.
20057         * tests/test-fdopendir.c (fdopendir): Likewise.
20058         * tests/test-fflush.c (fflush): Likewise.
20059         * tests/test-flock.c (flock): Likewise.
20060         * tests/test-floorf1.c (floorf): Likewise.
20061         * tests/test-floorl.c (floorl): Likewise.
20062         * tests/test-fnmatch.c (fnmatch): Likewise.
20063         * tests/test-fopen.c (fopen): Likewise.
20064         * tests/test-fprintf-posix.c (fprintf): Likewise.
20065         * tests/test-freopen.c (freopen): Likewise.
20066         * tests/test-frexp.c (frexp): Likewise.
20067         * tests/test-frexpl.c (frexpl): Likewise.
20068         * tests/test-fseek.c (fseek): Likewise.
20069         * tests/test-fseeko.c (fseeko): Likewise.
20070         * tests/test-fstatat.c (fstatat): Likewise.
20071         * tests/test-fsync.c (fsync): Likewise.
20072         * tests/test-ftell.c (ftell): Likewise.
20073         * tests/test-ftello.c (ftello): Likewise.
20074         * tests/test-futimens.c (futimens): Likewise.
20075         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20076         (gai_strerror): Likewise.
20077         * tests/test-getcwd.c (getcwd): Likewise.
20078         * tests/test-getdelim.c (getdelim): Likewise.
20079         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20080         * tests/test-getgroups.c (getgroups): Likewise.
20081         * tests/test-gethostname.c (gethostname): Likewise.
20082         * tests/test-getline.c (getline): Likewise.
20083         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20084         Likewise.
20085         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20086         * tests/test-glob.c (glob, globfree): Likewise.
20087         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20088         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20089         * tests/test-inet_pton.c (inet_pton): Likewise.
20090         * tests/test-isblank.c (isblank): Likewise.
20091         * tests/test-lchown.c (lchown): Likewise.
20092         * tests/test-ldexpl.c (ldexpl): Likewise.
20093         * tests/test-link.c (link): Likewise.
20094         * tests/test-linkat.c (linkat): Likewise.
20095         * tests/test-lseek.c (lseek): Likewise.
20096         * tests/test-lstat.c (lstat): Likewise.
20097         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20098         * tests/test-mbsinit.c (mbsinit): Likewise.
20099         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20100         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20101         * tests/test-memchr.c (memchr): Likewise.
20102         * tests/test-memcmp.c (memcmp): Likewise.
20103         * tests/test-memmem.c (memmem): Likewise.
20104         * tests/test-memrchr.c (memrchr): Likewise.
20105         * tests/test-mkdir.c (mkdir): Likewise.
20106         * tests/test-mkdirat.c (mkdirat): Likewise.
20107         * tests/test-mkfifo.c (mkfifo): Likewise.
20108         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20109         * tests/test-mknod.c (mknod): Likewise.
20110         * tests/test-nanosleep.c (nanosleep): Likewise.
20111         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20112         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20113         Likewise.
20114         * tests/test-open.c (open): Likewise.
20115         * tests/test-openat.c (openat): Likewise.
20116         * tests/test-perror.c (perror): Likewise.
20117         * tests/test-pipe2.c (pipe2): Likewise.
20118         * tests/test-poll.c (poll): Likewise.
20119         * tests/test-popen.c (popen, pclose): Likewise.
20120         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20121         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20122         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20123         (posix_spawn_file_actions_destroy)
20124         (posix_spawn_file_actions_addclose)
20125         (posix_spawn_file_actions_addopen)
20126         (posix_spawn_file_actions_adddup2): Likewise.
20127         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20128         * tests/test-pread.c (pread): Likewise.
20129         * tests/test-printf-posix.c (printf): Likewise.
20130         * tests/test-pty.c (openpty, forkpty): Likewise.
20131         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20132         (random_r): Likewise.
20133         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20134         * tests/test-readlink.c (readlink): Likewise.
20135         * tests/test-remove.c (remove): Likewise.
20136         * tests/test-rename.c (rename): Likewise.
20137         * tests/test-renameat.c (renameat): Likewise.
20138         * tests/test-rmdir.c (rmdir): Likewise.
20139         * tests/test-round1.c (round): Likewise.
20140         * tests/test-roundf1.c (roundf): Likewise.
20141         * tests/test-roundl.c (roundl): Likewise.
20142         * tests/test-setenv.c (setenv): Likewise.
20143         * tests/test-sigaction.c (sigaction): Likewise.
20144         * tests/test-sleep.c (sleep): Likewise.
20145         * tests/test-snprintf.c (snprintf): Likewise.
20146         * tests/test-sprintf-posix.c (sprintf): Likewise.
20147         * tests/test-stat.c (stat): Likewise.
20148         * tests/test-stpncpy.c (stpncpy): Likewise.
20149         * tests/test-strcasestr.c (strcasestr): Likewise.
20150         * tests/test-strchrnul.c (strchrnul): Likewise.
20151         * tests/test-strerror.c (strerror): Likewise.
20152         * tests/test-strsignal.c (strsignal): Likewise.
20153         * tests/test-strstr.c (strstr): Likewise.
20154         * tests/test-strtod.c (strtod): Likewise.
20155         * tests/test-strverscmp.c (strverscmp): Likewise.
20156         * tests/test-symlink.c (symlink): Likewise.
20157         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20158         * tests/test-times.c (times): Likewise.
20159         * tests/test-trunc1.c (trunc): Likewise.
20160         * tests/test-truncf1.c (truncf): Likewise.
20161         * tests/test-truncl.c (truncl): Likewise.
20162         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20163         Likewise.
20164         * tests/test-uname.c (uname): Likewise.
20165         * tests/test-unlink.c (unlink): Likewise.
20166         * tests/test-unlinkat.c (unlinkat): Likewise.
20167         * tests/test-unsetenv.c (unsetenv): Likewise.
20168         * tests/test-usleep.c (usleep): Likewise.
20169         * tests/test-utimensat.c (utimensat): Likewise.
20170         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20171         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20172         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20173         * tests/test-vprintf-posix.c (vprintf): Likewise.
20174         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20175         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20176         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20177         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20178         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20179         * tests/test-wcwidth.c (wcwidth): Likewise.
20180
20181         build: pull in conditional headers during GNULIB_POSIXCHECK
20182         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20183         definitions from any conditionally-included headers.
20184         * lib/stdlib.in.h (includes): Likewise.
20185         * lib/unistd.in.h (includes): Likewise.
20186
20187 2009-12-24  Bruno Haible  <bruno@clisp.org>
20188
20189         * tests/test-argv-iter.c: Include header file being tested immediately
20190         after config.h.
20191         * tests/test-base64.c: Likewise.
20192         * tests/test-flock.c: Likewise.
20193         * tests/test-fsync.c: Likewise.
20194         * tests/test-getdate.c: Likewise.
20195         * tests/test-getndelim2.c: Likewise.
20196         * tests/test-isfinite.c: Likewise.
20197         * tests/test-isinf.c: Likewise.
20198         * tests/test-strerror.c: Likewise.
20199         * tests/test-strsignal.c: Likewise.
20200
20201 2009-12-23  Eric Blake  <ebb9@byu.net>
20202
20203         unistd: work around cygwin bug
20204         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20205         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20206         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20207
20208 2009-12-23  Bruno Haible  <bruno@clisp.org>
20209
20210         localename: More tests.
20211         * tests/test-localename.c (SIZEOF): New macro.
20212         (categories): New variable.
20213         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20214         test_locale_name_default): Add test w.r.t. thread locale.
20215         (test_locale_name_thread): New function.
20216         (main): Invoke it.
20217
20218         localename: Make aware of thread locale.
20219         * lib/localename.h (gl_locale_name_thread): New declaration.
20220         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20221         behaviour with respect to thread locale.
20222         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20223         <langinfo.h>, glthread/lock.h.
20224         (SIZE_BITS): New macro.
20225         (string_hash): New function.
20226         (struct hash_node): New type.
20227         (HASH_TABLE_SIZE): New macro.
20228         (struniq_hash_table, struniq_lock): New variables.
20229         (struniq): New function.
20230         (gl_locale_name_thread): New function.
20231         (gl_locale_name): Invoke it.
20232         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20233         * modules/localename (Depends-on): Add lock.
20234         Reported by Mike Gran <spk121@yahoo.com>.
20235
20236 2009-12-23  Eric Blake  <ebb9@byu.net>
20237
20238         va-args: new module
20239         * modules/va-args: New file.
20240         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20241         * MODULES.html.sh (Core language properties): Mention it.
20242
20243         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20244         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20245         named alias for __attribute__((__unused__)).
20246         * lib/chown.c: Update client.
20247         * lib/fchmodat.c: Likewise.
20248         * lib/fts.c: Likewise.
20249         * lib/getdate.y: Likewise.
20250         * lib/getgroups.c: Likewise.
20251         * lib/getopt.c: Likewise.
20252         * lib/getugroups.c: Likewise.
20253         * lib/mkdir.c: Likewise.
20254         * lib/mkfifo.c: Likewise.
20255         * lib/mkfifoat.c: Likewise.
20256         * lib/mknod.c: Likewise.
20257         * lib/mknodat.c: Likewise.
20258         * lib/readlink.c: Likewise.
20259         * lib/se-context.in.h: Likewise.
20260         * lib/se-selinux.in.h: Likewise.
20261         * lib/sockets.c: Likewise.
20262         * lib/symlink.c: Likewise.
20263         * lib/symlinkat.c: Likewise.
20264         * lib/unicodeio.c: Likewise.
20265         * lib/unistr.h: Likewise.
20266         * tests/test-areadlink.c: Likewise.
20267         * tests/test-areadlinkat.c: Likewise.
20268         * tests/test-filenamecat.c: Likewise.
20269         * tests/test-fseeko.c: Likewise.
20270         * tests/test-ftello.c: Likewise.
20271         * tests/test-getdate.c: Likewise.
20272         * tests/test-getgroups.c: Likewise.
20273         * tests/test-gethostname.c: Likewise.
20274         * tests/test-quotearg.c: Likewise.
20275         * tests/test-version-etc.c: Likewise.
20276         * tests/test-xalloc-die.c: Likewise.
20277         * tests/test-xfprintf-posix.c: Likewise.
20278         * tests/test-xprintf-posix.c: Likewise.
20279         * tests/test-xvasprintf.c: Likewise.
20280
20281         tests: avoid compiler warnings
20282         * tests/test-fcntl.c (main): Delete unused parameters.
20283         * tests/test-freopen-safer.c (main): Likewise.
20284         * tests/test-xalloc-die.c (main): Mark unused parameters.
20285         * tests/test-fseeko.c (main): Likewise.
20286         * tests/test-ftello.c (main): Likewise.
20287         * tests/test-nanosleep.c (main): Avoid declaration warning.
20288         * tests/test-sleep.c (main): Likewise.
20289         * tests/test-unsetenv.c (main): Silence warning about string
20290         literal.
20291         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20292
20293 2009-12-23  Bruno Haible  <bruno@clisp.org>
20294
20295         * tests/test-localename.c (test_locale_name): New function, extracted
20296         from main. Also test mixed situations.
20297         (test_locale_name_posix, test_locale_name_environ,
20298         test_locale_name_default): New functions.
20299         (main): Invoke them all.
20300         * modules/localename-tests (configure.ac): Test for newlocale.
20301
20302 2009-12-23  Bruno Haible  <bruno@clisp.org>
20303
20304         unistd: Ensure getcwd gets declared before being overridden.
20305         * lib/unistd.in.h: Conditionally include <io.h>.
20306
20307 2009-12-22  Bruno Haible  <bruno@clisp.org>
20308
20309         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20310         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20311         (gl_WCHAR_H): Invoke it.
20312         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20313         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20314         Reported by Karl Berry <karl@freefriends.org>.
20315
20316 2009-12-22  Eric Blake  <ebb9@byu.net>
20317
20318         math, unistd: avoid redundant includes
20319         * lib/math.in.h (isnan): No need to re-include <math.h>.
20320         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20321
20322         getsubopt: work around cygwin bug
20323         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20324         avoid conflicting with system getsubopt.
20325         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20326         bug.
20327
20328         getopt: synchronize from glibc
20329         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20330         parameter order.  Adjust all callers.
20331         (_getopt_internal_r, main): Adjust quoting in error messages.
20332         Drop considerations for outdated POSIX 1003.2 error message.
20333         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20334         callers.
20335         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20336
20337         test-getopt: test stderr behavior
20338         * modules/getopt-posix-tests (Depends-on): Add dup2.
20339         * tests/test-getopt.c (ASSERT): Avoid stderr.
20340         (main): Move stderr to a temporary file.
20341         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20342         Instead, add parameter to inform caller if output occurred.
20343         (test_getopt): Adjust all existing tests to expect silence, and
20344         add new tests of leading ":".
20345         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20346         glibc shortcomings with leading "-:" or "+:" in optstring.
20347         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20348         Likewise.
20349         * doc/posix-functions/getopt.texi (getopt): Likewise.
20350
20351         test-getopt: enhance test
20352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20353         supports optind=0.
20354         * tests/test-getopt.c (OPTIND_MIN): Move...
20355         * tests/test-getopt.h (OPTIND_MIN): ...here.
20356         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20357         Require that optind=0 works, since modern BSD supports it in
20358         addition to optreset, and since coreutils expects it.
20359         (test_getopt_long_only): New test.
20360         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20361         glibc shortcomings with 'W;', and enforcement of optind=0.
20362         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20363         Likewise.
20364
20365 2009-12-21  Bruno Haible  <bruno@clisp.org>
20366
20367         localename: Improvements for MacOS X and Cygwin.
20368         * lib/localename.h (gl_locale_name_environ): New declaration.
20369         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20370         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20371         (gl_locale_name_posix): Invoke it.
20372         (gl_locale_name_default): Add comments. Use Windows native API also on
20373         Cygwin.
20374
20375 2009-12-21  Bruno Haible  <bruno@clisp.org>
20376
20377         Update list of Win32 locale ids.
20378         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20379         (LANG_SAMI): Renamed from LANG_SAAMI.
20380         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20381         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20382         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20383         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20384         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20385         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20386         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20387         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20388         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20389         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20390         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20391         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20392         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20393         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20394         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20395         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20396         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20397         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20398         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20399         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20400         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20401         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20402         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20403         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20404         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20405         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20406         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20407         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20408         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20409         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20410         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20411         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20412         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20413         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20414         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20415         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20416         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20417         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20418         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20419         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20420         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20421         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20422         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20423         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20424         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20425         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20426         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20427         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20428         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20429         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20430         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20431         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20432         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20433         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20434         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20435         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20436         Add more languages and countries for Sami, Sorbian. Add more countries
20437         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20438         for Pashto. Change country for Syriac, Tswana.
20439
20440 2009-12-21  Eric Blake  <ebb9@byu.net>
20441
20442         test-utimens: avoid spurious failure
20443         * tests/test-chown.h (nap): Factor...
20444         * tests/nap.h: ...into new file.
20445         * tests/test-lchown.h (nap): Avoid duplication.
20446         * tests/test-utimens-common.h (nap): Use shared implementation,
20447         necessary on file systems with 1-second resolution.
20448         * modules/chown-tests (Files): Include new file.
20449         * modules/fdutimensat-tests (Files): Likewise.
20450         * modules/futimens-tests (Files): Likewise.
20451         * modules/lchown-tests (Files): Likewise.
20452         * modules/openat-tests (Files): Likewise.
20453         * modules/utimens-tests (Files): Likewise.
20454         * modules/utimensat-tests (Files): Likewise.
20455
20456 2009-12-19  Eric Blake  <ebb9@byu.net>
20457
20458         futimens, utimensat: work around Linux bug
20459         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20460         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20461         * lib/utimensat.c (rpl_utimensat): Work around it.
20462         * lib/futimens.c (rpl_futimens): Adjust comment.
20463
20464         utimens: work around Linux ctime bug
20465         * lib/utimens.c (detect_ctime_bug): New helper function.
20466         (update_timespec): Differentiate between workaround needed for
20467         this bug vs. what is needed for systems that lack utimensat.
20468         (fdutimens, lutimens): Work around bug.
20469
20470         utimens: check for ctime update
20471         * tests/test-utimens-common.h (check_ctime): Define.
20472         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20473         * tests/test-futimens.h (test_futimens): Likewise.
20474         * tests/test-lutimens.h (test_lutimens): Likewise.
20475         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20476         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20477
20478 2009-12-19  Bruno Haible  <bruno@clisp.org>
20479
20480         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20481         * tests/test-dprintf-posix2.sh: New file.
20482         * tests/test-dprintf-posix2.c: New file.
20483         * modules/dprintf-posix-tests (Files): Add them.
20484         (configure.ac): Check for getrlimit and setrlimit.
20485         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20486
20487 2009-12-19  Bruno Haible  <bruno@clisp.org>
20488
20489         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20490         * tests/test-fprintf-posix3.sh: New file.
20491         * tests/test-fprintf-posix3.c: New file.
20492         * modules/fprintf-posix-tests (Files): Add them.
20493         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20494
20495 2009-12-19  Eric Blake  <ebb9@byu.net>
20496
20497         dirfd: fix prototype
20498         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20499         * lib/dirfd.c (dirfd): Likewise.
20500
20501         canonicalize: reduce memory usage
20502         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20503         allocation to size.
20504         Reported by Solar Designer <solar@openwall.com>.
20505
20506 2009-12-19  Bruno Haible  <bruno@clisp.org>
20507
20508         New module attribute 'Applicability'.
20509         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20510         * gnulib-tool: New option --extract-applicability.
20511         (func_usage): Document it.
20512         (sed_extract_prog): Recognize it.
20513         (func_get_applicability): New function.
20514         (func_import): Generalize handling of 'link-warning' module.
20515         * modules/link-warning (Applicability): New section.
20516         * modules/arg-nonnull (Applicability): New section.
20517         Repoted by Simon Josefsson <simon@josefsson.org>.
20518
20519 2009-12-19  Bruno Haible  <bruno@clisp.org>
20520
20521         fflush: tweak
20522         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20523         * lib/fseeko.c (rpl_fseeko): Likewise.
20524
20525 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20526
20527         * lib/gl_list.h: Fix typo in comment.
20528
20529 2009-12-16  Eric Blake  <ebb9@byu.net>
20530
20531         fcntl: use to simplify other modules
20532         * modules/cloexec (Depends-on): Add fcntl.
20533         * modules/fchdir (Depends-on): Likewise.
20534         * modules/fd-safer-flag (Depends-on): Likewise.
20535         * modules/unistd-safer (Depends-on): Likewise.
20536         * modules/dup3 (configure.ac): Set module indicator.
20537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20538         missing.
20539         * lib/fchdir.c (_gl_register_dup): Fix comment.
20540         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20541         * lib/dup-safer.c (dup_safer): Likewise.
20542         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20543         * lib/dup3.c (dup3): Likewise.
20544         * tests/test-fchdir.c (main): Enhance test.
20545         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
20546
20547         fcntl: port portions of fcntl to mingw
20548         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20549         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20550         replacement for mingw.
20551         * modules/fcntl (Description): Update.
20552         (Depends-on): Add dup2.
20553         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20554         * modules/fcntl-h (Makefile.am): Substitute it.
20555         * lib/fcntl.in.h (fcntl): Update declaration.
20556         (F_DUPFD, F_GETFD): New macros, when needed.
20557         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20558         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20559         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20560         we now guarantee.
20561
20562         fcntl: work around cygwin bug in F_DUPFD
20563         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20564         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20565         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20566         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20567         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20568
20569         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20570         * modules/fcntl (Files): List new files.
20571         (configure.ac): Run a test.
20572         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20573         * lib/fcntl.c (rpl_fcntl): Likewise.
20574         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20575         (gl_FCNTL_H): Always replace fcntl.h.
20576         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20577         * lib/fcntl.in.h (fcntl): Declare replacement.
20578         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20579         needed, plus a witness.
20580         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20581         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20582         * tests/test-fcntl.c: New file.
20583         * modules/fcntl-tests: Likewise.
20584
20585         binary-io: avoid potential compilation warning
20586         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20587         directives.
20588
20589         fflush: avoid compilation error on NetBSD
20590         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20591         between off_t and fpos_t, since the latter is sometimes a struct.
20592         * lib/fseeko.c (rpl_fseeko): Likewise.
20593         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20594
20595 2009-12-15  Eric Blake  <ebb9@byu.net>
20596
20597         fcntl-h, stdio, sys_ioctl: fix declarations
20598         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20599         function must not take arguments.
20600         * lib/sys_ioctl.in.h (ioctl): Likewise.
20601         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20602         (open): Add a link warning.
20603
20604 2009-12-15  Jim Meyering  <meyering@redhat.com>
20605
20606         areadlink, areadlink-with-size: relax license to LGPLv2+
20607         * modules/areadlink (License): Relax to LGPLv2+.
20608         * modules/areadlink-with-size (License): Likewise.
20609
20610 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20611             Bruno Haible  <bruno@clisp.org>
20612
20613         *printf: Fix memory leak.
20614         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20615         * lib/vfprintf.c (vfprintf): Likewise.
20616         * lib/dprintf.c (dprintf): Likewise.
20617         * lib/vdprintf.c (vdprintf): Likewise.
20618
20619 2009-12-14  Eric Blake  <ebb9@byu.net>
20620
20621         accept4: adjust module dependencies
20622         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20623
20624         utimens: one more try at avoiding compiler warning
20625         * lib/utimens.c (lutimens): Lower scope of result.
20626
20627 2009-12-13  Bruno Haible  <bruno@clisp.org>
20628
20629         Move the malloc checking from module 'list' to new module 'xlist'.
20630         * modules/xlist: New file.
20631         * lib/gl_xlist.h: New file.
20632         * lib/gl_xlist.c: New file.
20633         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20634         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20635         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20636         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20637         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20638         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20639         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20640         gl_sortedlist_nx_add): New declarations.
20641         (struct gl_list_implementation): Rename and change methods accordingly.
20642         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20643         (gl_list_nx_create): Renamed from gl_list_create.
20644         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20645         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20646         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20647         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20648         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20649         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20650         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20651         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20652         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20653         gl_list_create_empty.
20654         (gl_list_nx_create): Renamed from gl_list_create.
20655         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20656         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20657         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20658         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20659         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20660         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20661         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20662         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20663         * lib/gl_array_list.c: Don't include xalloc.h.
20664         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20665         NULL upon out-of-memory.
20666         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20667         out-of-memory.
20668         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20669         Change return type to 'int'.
20670         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20671         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20672         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20673         upon out-of-memory.
20674         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20675         upon out-of-memory.
20676         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20677         upon out-of-memory.
20678         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20679         upon out-of-memory.
20680         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20681         out-of-memory.
20682         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20683         Update.
20684         (gl_array_list_implementation): Update.
20685         * lib/gl_carray_list.c: Don't include xalloc.h.
20686         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20687         Return NULL upon out-of-memory.
20688         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20689         out-of-memory.
20690         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20691         Change return type to 'int'.
20692         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20693         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20694         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20695         upon out-of-memory.
20696         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20697         upon out-of-memory.
20698         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20699         out-of-memory.
20700         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20701         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20702         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20703         Update.
20704         (gl_carray_list_implementation): Update.
20705         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20706         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20707         gl_linked_create_empty. Return NULL upon out-of-memory.
20708         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20709         out-of-memory.
20710         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20711         Change return type to 'int'. Return -1 upon out-of-memory.
20712         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20713         out-of-memory.
20714         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20715         upon out-of-memory.
20716         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20717         upon out-of-memory.
20718         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20719         NULL upon out-of-memory.
20720         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20721         upon out-of-memory.
20722         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20723         out-of-memory.
20724         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20725         Update.
20726         * lib/gl_linked_list.c: Don't include xalloc.h.
20727         (gl_linked_list_implementation): Update.
20728         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20729         (add_to_bucket): Change return type to 'int'.
20730         (gl_linkedhash_list_implementation): Update.
20731         * lib/gl_anytree_list1.h (free_subtree): New function.
20732         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20733         gl_tree_create_empty. Return NULL upon out-of-memory.
20734         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20735         Change return type to 'int'. Return -1 upon out-of-memory.
20736         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20737         out-of-memory.
20738         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20739         (gl_tree_remove_node): New function, moved here from
20740         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20741         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20742         Update.
20743         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20744         malloc, not xmalloc. Return NULL upon out-of-memory.
20745         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20746         out-of-memory.
20747         (gl_tree_remove_node_from_tree): New function, extracted from
20748         gl_tree_remove_node.
20749         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20750         upon out-of-memory.
20751         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20752         out-of-memory.
20753         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20754         upon out-of-memory.
20755         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20756         upon out-of-memory.
20757         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20758         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20759         not xmalloc. Return NULL upon out-of-memory.
20760         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20761         out-of-memory.
20762         (gl_tree_remove_node_from_tree): New function, extracted from
20763         gl_tree_remove_node.
20764         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20765         upon out-of-memory.
20766         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20767         out-of-memory.
20768         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20769         upon out-of-memory.
20770         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20771         upon out-of-memory.
20772         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20773         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20774         gl_anytree_list1.h before gl_anyavltree_list2.h.
20775         (gl_avltree_list_implementation): Update.
20776         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20777         gl_anytree_list1.h before gl_anyavltree_list2.h.
20778         (gl_rbtree_list_implementation): Update.
20779         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20780         Change return type to 'int'. Return -1 upon out-of-memory. Use
20781         __builtin_expect.
20782         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20783         (gl_avltreehash_list_implementation): Update.
20784         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20785         (gl_rbtreehash_list_implementation): Update.
20786         * modules/array-list (Depends-on): Remove xalloc.
20787         * modules/carray-list (Depends-on): Likewise.
20788         * modules/linked-list (Depends-on): Likewise.
20789         * modules/linkedhash-list (Depends-on): Likewise.
20790         * modules/avltree-list (Depends-on): Likewise.
20791         * modules/rbtree-list (Depends-on): Likewise.
20792         * modules/avltreehash-list (Depends-on): Likewise.
20793         * modules/rbtreehash-list (Depends-on): Likewise.
20794
20795         * modules/xsublist: New file.
20796         * lib/gl_xsublist.h: New file.
20797         * lib/gl_xsublist.c: New file.
20798         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20799         (gl_sublist_nx_create): New declaration.
20800         * lib/gl_sublist.c: Don't include xalloc.h.
20801         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20802         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20803         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20804         Change return type to 'int'. Return -1 upon out-of-memory.
20805         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20806         upon out-of-memory.
20807         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20808         NULL upon out-of-memory.
20809         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20810         upon out-of-memory.
20811         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20812         NULL upon out-of-memory.
20813         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20814         NULL upon out-of-memory.
20815         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20816         upon out-of-memory.
20817         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20818         (gl_sublist_list_implementation): Update.
20819         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20820         upon out-of-memory.
20821         * modules/sublist (Depends-on): Remove xalloc.
20822
20823         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20824         * tests/test-carray_list.c: Likewise.
20825         * tests/test-linked_list.c: Likewise.
20826         * tests/test-linkedhash_list.c: Likewise.
20827         * tests/test-avltree_list.c: Likewise.
20828         * tests/test-rbtree_list.c: Likewise.
20829         * tests/test-avltreehash_list.c: Likewise.
20830         * tests/test-rbtreehash_list.c: Likewise.
20831         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20832         * modules/carray-list-tests (Makefile.am): Likewise.
20833         * modules/linked-list-tests (Makefile.am): Likewise.
20834         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20835         * modules/avltree-list-tests (Makefile.am): Likewise.
20836         * modules/rbtree-list-tests (Makefile.am): Likewise.
20837         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20838         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20839
20840         * NEWS: Mention the changes.
20841
20842         * lib/clean-temp.c: Include gl_xlist.h.
20843         * modules/clean-temp (Depends-on): Add xlist.
20844
20845         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20846         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20847
20848         * tests/test-array_oset.c: Include gl_xlist.h.
20849         * modules/array-oset-tests (Depends-on): Add xlist.
20850
20851         Reported by José E. Marchesi <jemarch@gnu.org>.
20852
20853 2009-12-13  Bruno Haible  <bruno@clisp.org>
20854
20855         Move the malloc checking from module 'oset' to new module 'xoset'.
20856         * modules/xoset: New file.
20857         * lib/gl_xoset.h: New file.
20858         * lib/gl_xoset.c: New file.
20859         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20860         declarations.
20861         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20862         (struct gl_oset_implementation): Rename and change methods accordingly.
20863         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20864         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20865         'int'. Mark as __warn_unused_result__.
20866         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20867         gl_oset_create_empty.
20868         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20869         'int'.
20870         * lib/gl_array_oset.c: Don't include xalloc.h.
20871         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20872         malloc, not xmalloc.
20873         (grow): Change return type to 'int'. Don't call xalloc_die.
20874         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20875         to 'int'.
20876         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20877         'int'.
20878         (gl_array_oset_implementation): Update.
20879         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20880         gl_tree_create_empty.
20881         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20882         'int'.
20883         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20884         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20885         xmalloc.
20886         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20887         not xmalloc.
20888         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20889         xmalloc.
20890         (gl_avltree_oset_implementation): Update.
20891         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20892         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20893         xmalloc.
20894         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20895         not xmalloc.
20896         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20897         xmalloc.
20898         (gl_rbtree_oset_implementation): Update.
20899         * modules/array-oset (Depends-on): Remove xalloc.
20900         * modules/avltree-oset (Depends-on): Likewise.
20901         * modules/rbtree-oset (Depends-on): Likewise.
20902         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20903         * tests/test-avltree_oset.c: Likewise.
20904         * tests/test-rbtree_oset.c: Likewise.
20905         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20906         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20907         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20908         * NEWS: Mention the change.
20909
20910 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20911
20912         maint.mk: allow a project to override release-prep commands
20913         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20914         commands into a new rule.
20915         (release-prep): New rule.
20916         (release-prep-hook): New overridable variable.
20917
20918 2009-12-13  Bruno Haible  <bruno@clisp.org>
20919
20920         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20921
20922 2009-12-13  Jim Meyering  <meyering@redhat.com>
20923
20924         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20925         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20926
20927 2009-12-12  Bruno Haible  <bruno@clisp.org>
20928
20929         duplocale: Tweak.
20930         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20931
20932 2009-12-12  Karl Berry  <karl@gnu.org>
20933
20934         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20935
20936 2009-12-12  Bruno Haible  <bruno@clisp.org>
20937
20938         * m4/po.m4: Undo incorrect untabification.
20939
20940 2009-12-12  Bruno Haible  <bruno@clisp.org>
20941
20942         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20943         * modules/c-strtod (Depends-on): Add locale.
20944         * modules/c-strtold (Depends-on): Likewise.
20945
20946 2009-12-12  Bruno Haible  <bruno@clisp.org>
20947
20948         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20949
20950 2009-12-11  Eric Blake  <ebb9@byu.net>
20951
20952         setenv: relax requirement in light of POSIX ruling
20953         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20954         not NULL.
20955         * tests/test-setenv.c (main): Relax test.
20956         * tests/test-unsetenv.c (main): Likewise.
20957         * doc/posix-functions/setenv.texi (setenv): Document this.
20958         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20959
20960 2009-12-11  Bruno Haible  <bruno@clisp.org>
20961
20962         New module 'fd-safer-flag'.
20963         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20964         * lib/dup-safer.c (dup_safer_flag): Remove function.
20965         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20966         * lib/fd-safer.c (fd_safer_flag): Remove function.
20967         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20968         * modules/cloexec (configure.ac): Drop indicator macro.
20969         * modules/fd-safer-flag: New file.
20970         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20971         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20972         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20973
20974 2009-12-11  Bruno Haible  <bruno@clisp.org>
20975
20976         Tests for module 'nl_langinfo'.
20977         * modules/nl_langinfo-tests: New file.
20978         * tests/test-nl_langinfo.sh: New file.
20979         * tests/test-nl_langinfo.c: New file.
20980
20981         New module 'nl_langinfo'.
20982         * lib/nl_langinfo.c: New file.
20983         * m4/nl_langinfo.m4: New file.
20984         * modules/nl_langinfo: New file.
20985         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20986
20987 2009-12-11  Bruno Haible  <bruno@clisp.org>
20988
20989         Tests for module 'langinfo'.
20990         * modules/langinfo-tests: New file.
20991         * tests/test-langinfo.c: New file.
20992
20993         New module 'langinfo'.
20994         * lib/langinfo.in.h: New file.
20995         * m4/langinfo_h.m4: New file.
20996         * modules/langinfo: New file.
20997         * doc/posix-headers/langinfo.texi: Mention the new module.
20998
20999 2009-12-11  Bruno Haible  <bruno@clisp.org>
21000
21001         * lib/config.charset: Untabify.
21002
21003 2009-12-11  Bruno Haible  <bruno@clisp.org>
21004
21005         * modules/unistd-safer (configure.ac): Drop indicator macro.
21006
21007 2009-12-11  Bruno Haible  <bruno@clisp.org>
21008
21009         Move pipe2-safer code to its own file.
21010         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21011         * lib/pipe-safer.c (pipe2_safer): Remove function.
21012         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21013         (Makefile.am): Add it to lib_SOURCES.
21014
21015 2009-12-10  Bruno Haible  <bruno@clisp.org>
21016
21017         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21018
21019 2009-12-10  Bruno Haible  <bruno@clisp.org>
21020
21021         Declare which arguments expect non-NULL values, for GCC and clang.
21022         * build-aux/arg-nonnull.h: New file.
21023         * modules/arg-nonnull: New file.
21024         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21025         (inet_ntop, inet_pton): Use it.
21026         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21027         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21028         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21029         (open, openat): Use it.
21030         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21031         (fnmatch): Use it.
21032         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21033         (getopt, getopt_long, getopt_long_only): Use it.
21034         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21035         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21036         Use it.
21037         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21038         (iconv_open): Use it.
21039         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21040         (strtoimax, strtoumax): Use it.
21041         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21042         (duplocale): Use it.
21043         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21044         (frexp, frexpl): Use it.
21045         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21046         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21047         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21048         (tsearch, tfind, tdelete, twalk): Use it.
21049         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21050         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21051         sigpending): Use it.
21052         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21053         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21054         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21055         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21056         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21057         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21058         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21059         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21060         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21061         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21062         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21063         Use it.
21064         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21065         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21066         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21067         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21068         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21069         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21070         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21071         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21072         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21073         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21074         strtoull, unsetenv): Use it.
21075         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21076         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21077         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21078         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21079         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21080         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21081         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21082         (strcasecmp, strncasecmp): Use it.
21083         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21084         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21085         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21086         rpl_setsockopt): Use it.
21087         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21088         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21089         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21090         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21091         (gettimeofday): Use it.
21092         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21093         (times): Use it.
21094         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21095         (uname): Use it.
21096         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21097         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21098         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21099         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21100         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21101         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21102         unlinkat, write): Use it.
21103         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21104         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21105         * lib/argv-iter.h: Include arg-nonnull.h.
21106         (_ATTRIBUTE_NONNULL_): Remove macro.
21107         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21108         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21109         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21110         optimization.
21111         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21112         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21113         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21114         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21115         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21116         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21117         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21118         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21119         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21120         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21121         * modules/dirent (Depends-on): Add arg-nonnull.
21122         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21123         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21124         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21125         * modules/fnmatch (Depends-on): Add arg-nonnull.
21126         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21127         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21128         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21129         * modules/glob (Depends-on): Add arg-nonnull.
21130         (Makefile.am): Insert arg-nonnull.h into glob.h.
21131         * modules/iconv_open (Depends-on): Add arg-nonnull.
21132         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21133         * modules/inttypes (Depends-on): Add arg-nonnull.
21134         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21135         * modules/locale (Depends-on): Add arg-nonnull.
21136         (Makefile.am): Insert arg-nonnull.h into locale.h.
21137         * modules/math (Depends-on): Add arg-nonnull.
21138         (Makefile.am): Insert arg-nonnull.h into math.h.
21139         * modules/netdb (Depends-on): Add arg-nonnull.
21140         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21141         * modules/search (Depends-on): Add arg-nonnull.
21142         (Makefile.am): Insert arg-nonnull.h into search.h.
21143         * modules/signal (Depends-on): Add arg-nonnull.
21144         (Makefile.am): Insert arg-nonnull.h into signal.h.
21145         * modules/spawn (Depends-on): Add arg-nonnull.
21146         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21147         * modules/stdio (Depends-on): Add arg-nonnull.
21148         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21149         * modules/stdlib (Depends-on): Add arg-nonnull.
21150         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21151         * modules/string (Depends-on): Add arg-nonnull.
21152         (Makefile.am): Insert arg-nonnull.h into string.h.
21153         * modules/strings (Depends-on): Add arg-nonnull.
21154         (Makefile.am): Insert arg-nonnull.h into strings.h.
21155         * modules/sys_socket (Depends-on): Add arg-nonnull.
21156         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21157         * modules/sys_stat (Depends-on): Add arg-nonnull.
21158         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21159         * modules/sys_time (Depends-on): Add arg-nonnull.
21160         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21161         * modules/sys_times (Depends-on): Add arg-nonnull.
21162         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21163         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21164         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21165         * modules/time (Depends-on): Add arg-nonnull.
21166         (Makefile.am): Insert arg-nonnull.h into time.h.
21167         * modules/unistd (Depends-on): Add arg-nonnull.
21168         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21169         * modules/wchar (Depends-on): Add arg-nonnull.
21170         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21171         * modules/argv-iter (Depends-on): Add arg-nonnull.
21172         * tests/test-canonicalize.c (null_ptr): New function.
21173         (main): Use it.
21174         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21175         (main): Use it.
21176         * tests/test-memmem.c (null_ptr): New function.
21177         (main): Use it.
21178         Reported by Jim Meyering.
21179
21180 2009-12-10  Bruno Haible  <bruno@clisp.org>
21181
21182         Use spaces for indentation, not tabs.
21183         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21184         * m4/*.m4: Untabify.
21185         * build-aux/*.h: Untabify.
21186         * tests/**/*.[hc]: Untabify.
21187         * README: New section "Indent with spaces, not TABs", based on
21188         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21189         * NEWS: Mention the change.
21190
21191 2009-12-10  Bruno Haible  <bruno@clisp.org>
21192
21193         pty test: Fix link error.
21194         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21195         test_pty_LDADD.
21196
21197 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21198
21199         * modules/pty: New file.
21200         * modules/pty-tests: New file.
21201         * m4/pty.m4: New file.
21202         * tests/test-pty.c: New file.
21203         * doc/glibc-headers/pty.texi: Modified.
21204         * doc/glibc-functions/forkpty.texi: Modified.
21205         * doc/glibc-functions/openpty.texi: Modified.
21206
21207 2009-12-10  Bruno Haible  <bruno@clisp.org>
21208
21209         Avoid syntax error in C++ mode.
21210         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21211
21212 2009-12-10  Bruno Haible  <bruno@clisp.org>
21213
21214         Use sed with option -e.
21215         * gnulib-tool (func_version, func_emit_copyright_notice,
21216         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21217         option -e to sed.
21218         * modules/link-warning (Makefile.am): Likewise.
21219
21220 2009-12-10  Jim Meyering  <meyering@redhat.com>
21221
21222         mgetgroups: do not write bytes beyond end of malloc'd buffer
21223         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21224         username, we call getgroups with a one-element-shorter buffer,
21225         but still told it the length was original, max_n_groups.
21226
21227 2009-12-09  Eric Blake  <ebb9@byu.net>
21228
21229         cloexec: relax license
21230         * modules/cloexec (Maintainer): Add myself.
21231         (License): Use LGPL, not GPL.
21232
21233         link-warning: optimize generation
21234         * modules/link-warning (Makefile.am): Reduce process usage.
21235
21236 2009-12-09  Bruno Haible  <bruno@clisp.org>
21237
21238         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21239         workaround was added on 2009-11-17.
21240
21241 2009-12-09  Jim Meyering  <meyering@redhat.com>
21242             Bruno Haible  <bruno@clisp.org>
21243
21244         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21245         * modules/link-warning (Makefile.am): Make the comment-removing sed
21246         command more robust in the face of bootstrap-prepended comment lines.
21247
21248 2009-12-09  Bruno Haible  <bruno@clisp.org>
21249
21250         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21251         most one group.
21252
21253 2009-12-09  Simon Josefsson <simon@josefsson.org>
21254             Bruno Haible  <bruno@clisp.org>
21255
21256         * build-aux/link-warning.h: Add copyright notice.
21257         * modules/link-warning (Makefile.am): Generate link-warning.h from
21258         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21259         * NEWS: Mention change in link-warning module.
21260         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21261         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21262         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21263         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21264         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21265         * modules/math (Makefile.am): Add dependency to math.h.
21266         * modules/search (Makefile.am): Add dependency to search.h.
21267         * modules/signal (Makefile.am): Add dependency to signal.h.
21268         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21269         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21270         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21271         * modules/string (Makefile.am): Add dependency to string.h.
21272         * modules/strings (Makefile.am): Add dependency to strings.h.
21273         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21274         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21275         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21276         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21277         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21278         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21279         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21280         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21281         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21282
21283 2009-12-09  Bruno Haible  <bruno@clisp.org>
21284
21285         fchdir: Optimize away rpl_fstat when possible.
21286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21287         REPLACE_OPEN_DIRECTORY.
21288         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21289
21290 2009-12-09  Bruno Haible  <bruno@clisp.org>
21291
21292         * lib/fchdir.c: Update comment.
21293
21294 2009-12-09  Bruno Haible  <bruno@clisp.org>
21295
21296         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21297
21298 2009-12-08  Eric Blake  <ebb9@byu.net>
21299
21300         fchdir: avoid memory leak on re-registration.
21301         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21302
21303 2009-12-08  Jim Meyering  <meyering@redhat.com>
21304
21305         init.sh: avoid Solaris 10 /bin/sh portability problem
21306         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21307         sourced script:
21308           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21309           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21310           bar
21311         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21312         and two tests used that idiom.
21313         * tests/init.sh: Update suggested usage comments.
21314         (path_prepend_): New function, to be used in place
21315         of the --src-path=DIR option.
21316         (setup_): Move PATH-prepending code into path_prepend_.
21317         * tests/test-pread.sh: Adapt to new usage.
21318         * tests/test-xalloc-die.sh: Likewise.
21319
21320 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21321
21322         * doc/gnulib.texi (Glibc pty.h): Add.
21323         * doc/glibc-functions/forkpty.texi: Add.
21324         * doc/glibc-functions/openpty.texi: Add.
21325         Suggested by Bruno Haible.
21326
21327 2009-12-08  Eric Blake  <ebb9@byu.net>
21328
21329         fchdir: fix logic bugs
21330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21331         * tests/test-fchdir.c (main): Enhance test.
21332         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21333         is in use.
21334
21335         dup2: fix logic bugs
21336         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21337         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21338         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21339         exists.
21340         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21341
21342 2009-12-07  Eric Blake  <ebb9@byu.net>
21343
21344         unlink: fix m4 detection
21345         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21346
21347         unistd-safer: add unit test
21348         * modules/unistd-safer-tests: New file.
21349         * tests/test-dup-safer.c: Likewise.
21350         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21351         * tests/test-dup2.c (setmode): Likewise.
21352         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21353
21354         cloexec: preserve text vs. binary across dup_cloexec
21355         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21356         mode.
21357         * modules/dup2-tests (Depends-on): Add binary-io.
21358         * modules/cloexec-tests (Depends-on): Likewise.
21359         * tests/test-dup2.c (setmode, is_mode): New helpers.
21360         (main): Add tests that translation mode is preserved.
21361         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21362         Reported by Bruno Haible.
21363
21364         mgetgroups: reduce duplicate listings
21365         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21366         resulting array.
21367         * tests/test-chown.h (test_chown): Simplify client.
21368         * tests/test-lchown.h (test_lchown): Likewise.
21369
21370 2009-12-06  Bruno Haible  <bruno@clisp.org>
21371
21372         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21373         value.
21374
21375 2009-12-06  Bruno Haible  <bruno@clisp.org>
21376
21377         * lib/progname.c: Include stdio.h, stdlib.h.
21378         (set_program_name): Reject a NULL argument.
21379
21380 2009-12-05  Eric Blake  <ebb9@byu.net>
21381
21382         pipe2-safer: new module
21383         * modules/pipe2-safer: New file.
21384         * lib/unistd-safer.h (pipe2_safer): New prototype.
21385         * lib/unistd--.h (pipe2): New wrapper.
21386         * lib/pipe-safer.c (pipe2_safer): New function.
21387         * modules/pipe (Depends-on): Add pipe2-safer.
21388         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21389
21390         stdlib-safer: preserve cloexec flag for mkostemp[s]
21391         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21392         fd_safer_flag.
21393
21394         unistd-safer: allow preservation of cloexec status via flag
21395         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21396         prototypes.
21397         * lib/dup-safer.c (dup_safer_flag): New function.
21398         * lib/fd-safer.c (fd_safer_flag): Likewise.
21399         * modules/cloexec (configure.ac): Set witness.
21400
21401         test-dup2: enhance test
21402         * modules/dup2-tests (Depends-on): Add cloexec.
21403         * tests/test-dup2.c (main): Enhance test.
21404
21405         cloexec: add dup_cloexec
21406         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21407         header and comments.
21408         * lib/cloexec.c (set_cloexec_flag): Add comments.
21409         (dup_cloexec): New function, with mingw implementation borrowed
21410         from...
21411         * lib/w32spawn.h (dup_noinherit): ...here.
21412         * modules/execute (Depends-on): Add cloexec.
21413         * modules/pipe (Depends-on): Likewise.
21414         * modules/cloexec (Depends-on): Add dup2.
21415         * modules/cloexec-tests (Files): New file.
21416         * tests/test-cloexec.c: Likewise.
21417
21418         test-xalloc-die: fix test for mingw
21419         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21420         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21421         directory and .exe suffix off argv[0] output.
21422
21423         test-fseeko: fix test for mingw
21424         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21425         than undefining fseek, so test will pass on mingw.
21426
21427 2009-12-05  Bruno Haible  <bruno@clisp.org>
21428
21429         * lib/progname.h (set_program_name): Clarify specification.
21430         * lib/progname.c (set_program_name): Likewise.
21431         Reported by Jim Meyering.
21432
21433 2009-12-05  Jim Meyering  <meyering@redhat.com>
21434
21435         maint.mk: backslash-escape parens in default regexp
21436         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21437         backslash-escape the literal parentheses.
21438
21439         maint.mk: news-date-check: use grep -E
21440         * top/maint.mk (today): Define a Make variable, not a...
21441         (news-date-check): ...shell variable.
21442         (news-date-regexp): Use the Make variable.
21443         Use grep's -E option.  Change the failing diagnostic to mention
21444         the variable, $(news-date-regexp).
21445
21446 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21447
21448         maintainer-makefile: allow customization of NEWS entry format
21449         * top/maint.mk (news-date-regexp): New overridable variable.
21450         (news-date-check): Use it.
21451
21452 2009-12-04  Eric Blake  <ebb9@byu.net>
21453
21454         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21455         * lib/mgetgroups.h (xgetgroups): New prototype.
21456         * lib/mgetgroups.c (xgetgroups): New wrapper.
21457         (mgetgroups): Handle ENOSYS.
21458         * modules/mgetgroups (Depends-on): Add realloc.
21459         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21460
21461         mgetgroups: avoid argument promotion issues with -1
21462         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21463         for invalid gid_t.
21464         * tests/test-chown.h (getegid, test_chown): Likewise.
21465         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21466
21467 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21468
21469         exclude: Fix header file problems.
21470         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21471
21472 2009-12-01  Jim Meyering  <meyering@redhat.com>
21473
21474         fts: fts_open: do not let an empty string cause immediate failure
21475         This is required in support of GNU rm, for which the command
21476         "rm A '' B" must process and remove both A and B, in spite of
21477         the empty string argument.
21478         * lib/fts.c (fts_open): Do not let the presence of an empty string
21479         cause fts_open to fail immediately.  Most fts-using tools must be
21480         able to process all arguments, in order, and can be expected to
21481         diagnose such arguments themselves.
21482
21483 2009-11-30  Eric Blake  <ebb9@byu.net>
21484
21485         utimens: fix compilation error
21486         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21487         Declare variable at right scope.
21488
21489 2009-11-29  Jim Meyering  <meyering@redhat.com>
21490
21491         bootstrap: handle perl-5.11's changed --version output
21492         * build-aux/bootstrap (get_version): Handle perl separately,
21493         since perl-5.11's --version output is different.
21494
21495 2009-11-28  Jim Meyering  <meyering@redhat.com>
21496
21497         userspec: depend on the inttostr module, too
21498         * modules/userspec (Depends-on): Add inttostr.
21499
21500         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21501         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21502         number of MAXUID when it evaluates to (uid_t) -1.
21503         Likewise for group ID.  Reported by Matt McCutchen in
21504         <http://savannah.gnu.org/bugs/?28113>
21505
21506         userspec: reformat to use spaces, not TABs
21507         * lib/userspec.c: Expand TABs to spaces.
21508         Add Emacs' "indent-tabs-mode: nil" hint.
21509
21510 2009-11-27  Eric Blake  <ebb9@byu.net>
21511
21512         getopt-gnu: flush out another BSD bug
21513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21514         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21515         flush out BSD bug.
21516         * tests/test-getopt.h (test_getopt): End lists with NULL.
21517         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21518         (test_getopt_long_posix): Enhance test.
21519         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21520         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21521         getopt-gnu.
21522         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21523         Likewise.
21524
21525 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21526
21527         * modules/idpriv-droptemp-tests (Notice): Fix text.
21528
21529 2009-11-27  Jim Meyering  <meyering@redhat.com>
21530
21531         test-xalloc-die: avoid spurious failure due to libtool argv difference
21532         In a libtool-enabled project, this test would fail due to a difference
21533         in the emitted program name, e.g.,
21534         -test-xalloc-die: memory exhausted
21535         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21536         Use program to avoid that.
21537         * modules/xalloc-die-tests (Depends-on): Add progname.
21538         * tests/test-xalloc-die.c: Include progname.h".
21539         (program_name): Remove decl.
21540         (main): Call set_program_name.
21541         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21542
21543 2009-11-26  Richard Jones  <rjones@redhat.com>
21544
21545         w32sock: leave win32 error in place.
21546         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21547
21548 2009-11-26  Eric Blake  <ebb9@byu.net>
21549
21550         init.sh: suggest to use skip_ and fail_ functions in comments
21551         * tests/init.sh: Add a sentence.
21552
21553 2009-11-25  Bruno Haible  <bruno@clisp.org>
21554
21555         init.sh: add documentation in comments
21556         * tests/init.sh: Add some developer and user documentation.
21557
21558 2009-11-26  Jim Meyering  <meyering@redhat.com>
21559
21560         init.sh: accommodate even those who specify bogus srcdir manually
21561         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21562         configure-time tests to be sanitized, so that there is no need to
21563         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21564         (with no double quotes) suffices.  However, since tests may be
21565         invoked manually, and since you may explicitly set srcdir to the
21566         name of a directory containing spaces, do quote its uses here.
21567         * tests/test-pread.sh: Likewise.
21568         Suggested by Bruno Haible.
21569
21570         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21571         * tests/test-pread.sh: Write no data into the pipe, because
21572         test-pread actually reads none.  This avoids a diagnostic,
21573         "bash: echo: write error: Broken pipe", that arises in the unusual
21574         event something is ignoring SIGPIPE, and might be interpreted
21575         as some sort of failure.  Reported by Bruno Haible.
21576
21577 2009-11-25  Jim Meyering  <meyering@redhat.com>
21578
21579         test-pread: cover failure with ESPIPE and EINVAL
21580         * tests/test-pread.c (main): Test for failure, too.
21581         * tests/test-pread.sh: Invoke with stdin on a pipe.
21582         Suggested by Eric Blake.
21583
21584         pread: improvement and fix
21585         * modules/pread (Depends-on): Depend on lseek, for portability to
21586         e.g., mingw.  Suggested by Eric Blake.
21587         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21588
21589         unistd.in.h: correct declaration of pread
21590         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21591         Reported by Richard W.M. Jones.
21592
21593         test-pread.sh: distribute the test script
21594         * modules/pread-tests (Files): Include test-pread.sh.
21595
21596         test-pread.sh: clean up
21597         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21598         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21599         That is unnecessary, since it's always ".".
21600         Suggestion from Eric Blake.
21601
21602         test-pread.sh: make executable
21603         * tests/test-pread.sh: Set executable bit.
21604         Reported by Eric Blake.
21605
21606         correct typo in test-pread.sh
21607         * tests/test-pread.sh: Add #! line.
21608
21609         test pread
21610         * tests/test-pread.c: New file.
21611         * tests/test-pread.sh: Likewise.
21612         * modules/pread-tests: Likewise.
21613
21614         pread: new module
21615         * modules/pread: New file.
21616         * lib/unistd.in.h (pread): Define/declare.
21617         * lib/pread.c (pread): New file.
21618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21619         * modules/unistd (Makefile.am): Substitute witnesses.
21620         * doc/posix-functions/pread.texi (pread): Update.
21621         * MODULES.html.sh: Add pread.
21622
21623 2009-11-25  Jim Meyering  <meyering@redhat.com>
21624
21625         tests/init.sh: new file to be used via most *.sh tests
21626         * tests/init.sh: New file.
21627
21628 2009-11-25  Eric Blake  <ebb9@byu.net>
21629
21630         utimens: work around older Linux failure with symlinks
21631         * lib/utimens.c (lutimensat_works_really): New variable.
21632         (fdutimens, lutimens): Use it to manage kernels that support
21633         nanosecond times on files, but not on symlinks.
21634         Reported by OndÅ™ej Vašík.
21635
21636         utimes: fix configure grammar
21637         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21638
21639 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21640
21641         regex: Fix fastmap for multibyte character ranges.
21642         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21643         characters when a multibyte character range is included.
21644
21645 2009-11-22  Andy Wingo  <wingo@pobox.com>
21646
21647         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21648         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21649
21650 2009-11-24  Bruno Haible  <bruno@clisp.org>
21651
21652         doc: Most *_l functions exist in MacOS X 10.5.
21653         * doc/posix-functions/duplocale.texi: Update platforms list.
21654         * doc/posix-functions/freelocale.texi: Likewise.
21655         * doc/posix-functions/newlocale.texi: Likewise.
21656         * doc/posix-functions/uselocale.texi: Likewise.
21657         * doc/posix-functions/isalnum_l.texi: Likewise.
21658         * doc/posix-functions/isalpha_l.texi: Likewise.
21659         * doc/posix-functions/isblank_l.texi: Likewise.
21660         * doc/posix-functions/iscntrl_l.texi: Likewise.
21661         * doc/posix-functions/isdigit_l.texi: Likewise.
21662         * doc/posix-functions/isgraph_l.texi: Likewise.
21663         * doc/posix-functions/islower_l.texi: Likewise.
21664         * doc/posix-functions/isprint_l.texi: Likewise.
21665         * doc/posix-functions/ispunct_l.texi: Likewise.
21666         * doc/posix-functions/isspace_l.texi: Likewise.
21667         * doc/posix-functions/isupper_l.texi: Likewise.
21668         * doc/posix-functions/iswalnum_l.texi: Likewise.
21669         * doc/posix-functions/iswalpha_l.texi: Likewise.
21670         * doc/posix-functions/iswblank_l.texi: Likewise.
21671         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21672         * doc/posix-functions/iswctype_l.texi: Likewise.
21673         * doc/posix-functions/iswdigit_l.texi: Likewise.
21674         * doc/posix-functions/iswgraph_l.texi: Likewise.
21675         * doc/posix-functions/iswlower_l.texi: Likewise.
21676         * doc/posix-functions/iswprint_l.texi: Likewise.
21677         * doc/posix-functions/iswpunct_l.texi: Likewise.
21678         * doc/posix-functions/iswspace_l.texi: Likewise.
21679         * doc/posix-functions/iswupper_l.texi: Likewise.
21680         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21681         * doc/posix-functions/isxdigit_l.texi: Likewise.
21682         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21683         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21684         * doc/posix-functions/strcoll_l.texi: Likewise.
21685         * doc/posix-functions/strfmon_l.texi: Likewise.
21686         * doc/posix-functions/strftime_l.texi: Likewise.
21687         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21688         * doc/posix-functions/strxfrm_l.texi: Likewise.
21689         * doc/posix-functions/tolower_l.texi: Likewise.
21690         * doc/posix-functions/toupper_l.texi: Likewise.
21691         * doc/posix-functions/towctrans_l.texi: Likewise.
21692         * doc/posix-functions/towlower_l.texi: Likewise.
21693         * doc/posix-functions/towupper_l.texi: Likewise.
21694         * doc/posix-functions/wcscoll_l.texi: Likewise.
21695         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21696         * doc/posix-functions/wctrans_l.texi: Likewise.
21697         * doc/posix-functions/wctype_l.texi: Likewise.
21698         * doc/glibc-functions/strptime_l.texi: Likewise.
21699         * doc/glibc-functions/strtod_l.texi: Likewise.
21700         * doc/glibc-functions/strtof_l.texi: Likewise.
21701         * doc/glibc-functions/strtol_l.texi: Likewise.
21702         * doc/glibc-functions/strtold_l.texi: Likewise.
21703         * doc/glibc-functions/strtoll_l.texi: Likewise.
21704         * doc/glibc-functions/strtoul_l.texi: Likewise.
21705         * doc/glibc-functions/strtoull_l.texi: Likewise.
21706         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21707         * doc/glibc-functions/wcstod_l.texi: Likewise.
21708         * doc/glibc-functions/wcstof_l.texi: Likewise.
21709         * doc/glibc-functions/wcstol_l.texi: Likewise.
21710         * doc/glibc-functions/wcstold_l.texi: Likewise.
21711         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21712         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21713         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21714
21715 2009-11-24  Bruno Haible  <bruno@clisp.org>
21716
21717         duplocale: Fix logic bug.
21718         * lib/duplocale.c: Don't include <langinfo.h>.
21719         (_NL_LOCALE_NAME): Remove macro.
21720         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21721         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21722
21723 2009-11-23  Jim Meyering  <meyering@redhat.com>
21724
21725         test-update-copyright: don't hard-code /usr/bin/perl
21726         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21727         perl to print the current year.  Gilles Espinasse reported that
21728         the replaced use of perl was hard-coded as /usr/bin/perl.
21729
21730 2009-11-23  Bruno Haible  <bruno@clisp.org>
21731
21732         duplocale: Add support for glibc 2.3.x.
21733         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21734
21735 2009-11-22  Bruno Haible  <bruno@clisp.org>
21736
21737         vasnprintf: Tiny optimization.
21738         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21739         MacOS X.
21740
21741 2009-11-22  Bruno Haible  <bruno@clisp.org>
21742
21743         Tests for module 'duplocale'.
21744         * modules/duplocale-tests: New file.
21745         * tests/test-duplocale.c: New file.
21746
21747         New module 'duplocale'.
21748         * m4/duplocale.m4: New file.
21749         * lib/locale.in.h (duplocale): New declaration.
21750         * lib/duplocale.c: New file.
21751         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21752         gl_LOCALE_H_DEFAULTS): New macros.
21753         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21754         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21755         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21756         REPLACE_DUPLOCALE.
21757         * modules/duplocale: New file.
21758         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21759
21760 2009-11-22  Bruno Haible  <bruno@clisp.org>
21761
21762         * modules/locale-tests (configure.ac): Test for newlocale function.
21763         * tests/test-locale.c: When the system has extended locale functions,
21764         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21765
21766         locale: Make locale_t available when possible.
21767         * lib/locale.in.h: Include <xlocale.h> when it exists.
21768         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21769         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21770         * modules/locale (Depends-on): Add extensions.
21771         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21772         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21773
21774 2009-11-22  Bruno Haible  <bruno@clisp.org>
21775
21776         Add comments.
21777         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21778         invocation.
21779         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21780         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21781         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21782
21783 2009-11-22  Bruno Haible  <bruno@clisp.org>
21784
21785         error: account for the possibility of freopen (stdout).
21786         * lib/error.c: Include <unistd.h>.
21787         (flush_stdout): New function, extracted from error and error_at_line.
21788         Determine stdout's fd dynamically.
21789         (error, error_at_line): Invoke flush_stdout.
21790         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21791         * modules/error (Depends-on): Add unistd.
21792
21793 2009-11-22  Bruno Haible  <bruno@clisp.org>
21794
21795         diffseq: Add comment.
21796         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21797
21798 2009-11-22  Jim Meyering  <meyering@redhat.com>
21799
21800         c-stack: avoid defining an unused static function
21801         * lib/c-stack.c (find_stack_direction): Do not define this function
21802         when it will not be used.
21803
21804         diffseq: avoid spurious gcc warnings
21805         * lib/diffseq.h (IF_LINT2): Define.
21806         (compareseq): Use it to initialize two members of "part".
21807         This avoids two used-uninitialized warnings.
21808
21809 2009-11-21  Jim Meyering  <meyering@redhat.com>
21810
21811         c-stack: avoid "ignoring return value of `write'" warning
21812         * lib/c-stack.c: Include "ignore-value.h".
21813         (die): Explicitly ignore each write return value.
21814         * modules/c-stack (Depends-on): Add ignore-value.
21815
21816 2009-11-21  Bruno Haible  <bruno@clisp.org>
21817
21818         diffseq: reduce scope of variable 'best'.
21819         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21820         variable, earlier used for two different purposes.
21821
21822 2009-11-21  Jim Meyering  <meyering@redhat.com>
21823
21824         diffseq: remove useless assignment to "best"
21825         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21826         assignment.  At that point "best" is already guaranteed to be zero.
21827
21828 2009-11-20  Eric Blake  <ebb9@byu.net>
21829
21830         build: mention ftp redirector in release announcements
21831         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21832         values that used to come from cfg.mk; mention FTP redirect URL.
21833         * build-aux/announce-gen: Mention the mirror list.
21834         Suggested by Karl Berry.
21835
21836         nanosleep: improve port to mingw
21837         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21839         LIB_NANOSLEEP, but only when needed.
21840         * modules/select (Link): Document LIBSOCKET.
21841         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21842         enough.
21843
21844         nanosleep: work around cygwin bug
21845         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21846         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21847         bug.
21848         (getnow): Delete, not needed.
21849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21850         LIB_CLOCK_GETTIME.
21851         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21852         clock-time, gettime.
21853         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21854         bug.
21855         * modules/nanosleep-tests: New test.
21856         * tests/test-nanosleep.c: New file.
21857
21858         sleep: work around cygwin bug
21859         * lib/sleep.c (rpl_sleep): Work around the bug.
21860         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21861         (gl_PREREQ_SLEEP): Delete unused macro.
21862         * modules/sleep (Depends-on): Add verify.
21863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21864         * modules/unistd (Makefile.am): Substitute witness.
21865         * lib/unistd.in.h (sleep): Update prototype.
21866         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21867         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21868         * modules/sleep-tests (Depends-on): Check for alarm.
21869
21870 2009-11-20  Jim Meyering  <meyering@redhat.com>
21871
21872         maint.mk: improve sc_prohibit_magic_number_exit
21873         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21874         so it does not match uses like System.exit(1).
21875         Add comments showing how to correct all offenders.
21876
21877 2009-11-19  Eric Blake  <ebb9@byu.net>
21878
21879         xalloc-die-tests: add missing library
21880         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21881
21882         test-xvasprintf: silence compiler warnings
21883         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21884         empty string from gcc.
21885
21886 2009-11-19  Jim Meyering  <meyering@redhat.com>
21887
21888         xfreopen: new module, from coreutils
21889         * modules/xfreopen: New module.
21890         * lib/xfreopen.c: New file.
21891         * lib/xfreopen.h: New file.
21892         * MODULES.html.sh (File stream based Input/Output"): Add it.
21893
21894 2009-11-19  Eric Blake  <ebb9@byu.net>
21895
21896         manywarnings: depend on warnings
21897         * modules/manywarnings (Depends-on): Add warnings.
21898
21899         build: avoid compiler warnings
21900         * lib/select.c (rpl_select): Delete unused variable.
21901         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21902
21903 2009-11-18  Eric Blake  <ebb9@byu.net>
21904
21905         tests: avoid false negative with --with-packager
21906         * tests/test-version-etc.sh: Discard packager information.
21907         * tests/test-argp-version-etc-1.sh: Likewise.
21908         Reported by Mike Frysinger.
21909
21910         utimens: fix regression on Solaris
21911         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21912         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21913         can only change fd timestamps via futimesat.  Instead, use an
21914         additional witness macro to avoid BSD bug.
21915         Reported by Jim Meyering.
21916
21917 2009-11-17  Eric Blake  <ebb9@byu.net>
21918
21919         usleep: use it to simplify tests
21920         * modules/stat-time-tests (Depends-on): Add usleep.
21921         (configure.ac): Drop usleep check.
21922         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21923         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21924         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21925         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21926         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21927         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21928         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21929         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21930         Likewise.
21931         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21932         * tests/test-lchown.h (nap): Likewise.
21933         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21934         * tests/test-stat-time.c (nap): Likewise.
21935         * tests/test-utimens-common.h (nap): Update comments.
21936
21937         usleep: new module
21938         * modules/usleep: New file.
21939         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21940         * lib/usleep.c (usleep): Likewise.
21941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21942         * modules/unistd (Makefile.am): Substitute witnesses.
21943         * lib/unistd.in.h (usleep): Add declaration.
21944         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21945         * MODULES.html.sh (Date and time): Likewise.
21946         * modules/usleep-tests (Depends-on): New test.
21947         * tests/test-usleep.c: New file.
21948
21949         chown: work around OpenBSD bug
21950         * lib/chown.c (rpl_chown): Work around the bug.
21951         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21952         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21953         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21954         * modules/chown (Depends-on): Add stdbool.
21955         * modules/lchown (Depends-on): Likewise.
21956         * doc/posix-functions/chown.texi (chown): Document the bug.
21957         * doc/posix-functions/lchown.texi (lchown): Likewise.
21958         * tests/test-lchown.h (test_chown): Relax test.
21959
21960         mkstemp: avoid conflict with C++ keyword template
21961         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21962         * lib/mkostemp.c (mkostemp): Likewise.
21963         * lib/mkostemps.c (mkostemps): Likewise.
21964         * lib/mkstemp.c (mkstemp): Likewise.
21965         * lib/mkstemps.c (mkstemps): Likewise.
21966
21967         xalloc-die-tests: optimize
21968         * tests/test-xalloc-die.sh: Reduce number of processes.
21969
21970 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21971
21972         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21973         patch from ludo@gnu.org (Ludovic Courtès).
21974
21975 2009-11-17  Jim Meyering  <meyering@redhat.com>
21976
21977         version-etc: use proper license string
21978         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21979         * modules/version-etc-fsf: Likewise.
21980
21981 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21982
21983         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21984         printed to stdout.  Deal with EOL differences.
21985
21986 2009-11-17  Eric Blake  <ebb9@byu.net>
21987
21988         unsetenv: work around Solaris bug
21989         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21990         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21991         Reported by Jim Meyering.
21992
21993         vasnprintf: avoid compiler warnings
21994         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21995         variables.
21996         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21997
21998 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21999
22000         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22001         settings since xalloc-die is no longer the self test,
22002         xalloc-die.sh is.
22003
22004 2009-11-17  Jim Meyering  <meyering@redhat.com>
22005
22006         test-xalloc-die.sh: make the code agree with the commit log
22007         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22008         at the end, just in case you happen to have a test-xalloc-die
22009         program in some other PATH directory.
22010
22011         test-xalloc-die.sh: fix a portability bug
22012         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22013         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22014         Otherwise, argv[0] (as often seen in diagnostics) would be too
22015         system-dependent, sometimes with, and sometimes without the leading "./".
22016
22017         version-etc-fsf: relax license to LGPLv3+
22018         * modules/version-etc-fsf (License): Relax license.
22019
22020 2009-11-16  Eric Blake  <ebb9@byu.net>
22021
22022         xalloc-die-tests: avoid printing null pointer
22023         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22024         shell script.
22025         * tests/test-xalloc-die.c (program_name): Declare.
22026         * tests/test-xalloc-die.sh (tmpfiles): New file.
22027
22028         setenv, unsetenv: work around various bugs
22029         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22030         (setenv) [HAVE_SETENV]: Work around bugs.
22031         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22032         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22033         for bugs.
22034         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22035         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22037         * modules/stdlib (Makefile.am): Update substitutions.
22038         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22039         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22040         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22041         * modules/setenv-tests: New test.
22042         * modules/unsetenv-tests: Likewise.
22043         * tests/test-setenv.c: New file.
22044         * tests/test-unsetenv.c: Likewise.
22045
22046 2009-11-16  Jim Meyering  <meyering@redhat.com>
22047
22048         version-etc: relax license to LGPLv3+
22049         * modules/version-etc (License): Relax license.
22050
22051         better AC_REQUIRE expanded-before-required-warning avoidance
22052         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22053         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22054         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22055         which is no longer needed.
22056
22057 2009-11-16  Eric Blake  <ebb9@byu.net>
22058
22059         test-freading: clean up temporary file
22060         * tests/test-freading.c (main): Remove file on success, and use
22061         ASSERT more liberally.
22062         Reported by Jim Meyering.
22063
22064 2009-11-16  Jim Meyering  <meyering@redhat.com>
22065
22066         avoid new AC_REQUIRE expanded-before-required warnings
22067         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22068         merely using it.
22069         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22070         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22071
22072 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22073
22074         * tests/test-xalloc-die.c: New file.
22075         * modules/xalloc-die-tests: New file.
22076         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22077         XFAIL_TESTS so it can be appended by modules.
22078
22079 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22080
22081         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22082         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22083
22084 2009-11-14  Eric Blake  <ebb9@byu.net>
22085
22086         fnmatch: avoid compiler warning
22087         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22088         to silence compiler warning about mismatch signedness in ?:.
22089         Reported by Robert Millan.
22090
22091         intprops: add double-inclusion guard
22092         * lib/intprops.h: Allow idempotent includes.
22093         Suggested by Bruce Korb.
22094
22095         openat: detect Solaris fchownat bug
22096         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22097         penalizing glibc chownat when only lchownat is broken.
22098         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22099         trailing slash bugs.
22100         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22101         * modules/openat-tests (Files): Include more files.
22102         (Depends-on): Add mgetgroups, sleep, stat-time.
22103         (configure.ac): Add additional checks.
22104         (Makefile.am): Build new test.
22105         * tests/test-fchownat.c: New file.
22106
22107         lchown: detect Solaris and FreeBSD bug
22108         * lib/lchown.c (rpl_lchown): Work around bug.
22109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22111         * modules/unistd (Makefile.am): Populate it.
22112         * lib/unistd.in.h (lchown): Update declaration.
22113         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22114         * modules/lchown-tests: New file.
22115         * tests/test-lchown.h (test_lchown): Likewise.
22116         * tests/test-lchown.c (main): Likewise.
22117
22118         chown: detect Solaris and FreeBSD bug
22119         * lib/chown.c (rpl_chown): Work around bug.
22120         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22121         (gl_PREREQ_CHOWN): Delete.
22122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22123         * modules/unistd (Makefile.am): Populate it.
22124         * lib/unistd.in.h (chown): Update declaration.
22125         * lib/lchown.c (chown): Update client.
22126         * modules/lchown (Depends-on): Add lstat.
22127         * doc/posix-functions/chown.texi (chown): Document the bug.
22128         * doc/posix-functions/getgroups.texi (getgroups): Document
22129         getgroups pitfall.
22130         * modules/chown-tests: New file.
22131         * tests/test-chown.h (test_chown): Likewise.
22132         * tests/test-chown.c (main): Likewise.
22133
22134 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22135
22136         gnulib-tool: correctly detect absence of m4 directories
22137         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22138
22139 2009-11-14  Jim Meyering  <meyering@redhat.com>
22140
22141         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22142         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22143
22144 2009-11-14  John W. Eaton  <jwe@gnu.org>
22145
22146         strftime.h: wrap funtion declaration in extern "C" block
22147         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22148
22149 2009-11-13  Eric Blake  <ebb9@byu.net>
22150
22151         getgroups: avoid compiler warning
22152         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22153
22154         getgroups: work around FreeBSD bug
22155         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22156         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22157         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22158         * tests/test-getgroups.c (main): Fix buffer overrun.
22159
22160         getgroups: avoid compilation failure
22161         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22162         * modules/getgroups (Depends-on): Add stdint.
22163
22164 2009-11-13  Jim Meyering  <meyering@redhat.com>
22165
22166         test-getgroups: avoid compilation failure
22167         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22168
22169 2009-11-13  Eric Blake  <ebb9@byu.net>
22170
22171         mgetgroups: new module, taken from coreutils
22172         * modules/mgetgroups: New file.
22173         * lib/mgetgroups.h: Likewise.
22174         * lib/mgetgroups.c (mgetgroups): Likewise.
22175         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22176         * MODULES.html.sh (Users and groups): Mention it.
22177
22178         getgroups: don't expose GETGROUPS_T to user
22179         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22180         an element at a time if GETGROUPS_T is wrong size.
22181         * lib/getugroups.h (getugroups): Change signature.
22182         * lib/unistd.in.h (getgroups): Likewise.
22183         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22184         signature needs fixing.
22185         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22186         AC_TYPE_GETGROUPS.
22187         * modules/group-member (Depends-on): Add getgroups.
22188         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22189         (group_member): Rely on getgroups replacement.
22190         * lib/getugroups.c (getugroups): Use gid_t.
22191         * tests/test-getgroups.c (main): Likewise.
22192         * NEWS: Mention the signature change.
22193         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22194         problem with signature.
22195         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22196         GETGROUPS_T is still useful for setgroups.
22197
22198         getgroups, getugroups: provide stubs for mingw
22199         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22200         * lib/getugroups.c (getugroups): Likewise.
22201         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22202         function.  Modernize replacement scheme.
22203         (gl_PREREQ_GETGROUPS): Delete.
22204         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22205         * modules/getgroups (configure.ac): Declare witness.
22206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22207         * modules/unistd (Depends-on): Substitute witness.
22208         * lib/unistd.in.h (getgroups): Declare replacement.
22209
22210         getgroups: avoid calling exit
22211         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22212         drop xalloc.
22213         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22214         dependencies.
22215         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22216         exiting, in the rare case of malloc failure.
22217
22218         getgroups: fix logic error
22219         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22220         has more than 20 groups.
22221         * modules/getgroups-tests: New test.
22222         * tests/test-getgroups.c: New file.
22223
22224 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22225
22226         * tests/test-base64.c: Improve.
22227
22228 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22229
22230         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22231         Blake <ebb9@byu.net>.
22232
22233 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22234
22235         * tests/test-xvasprintf.c: Add %s%s related checks.
22236
22237 2009-11-12  Eric Blake  <ebb9@byu.net>
22238
22239         version-etc: match standards.texi style
22240         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22241         and use <> only for URLs.
22242
22243 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22244
22245         fts: do not fail on a submount during traversal
22246         * lib/fts.c (fts_build): Read the stat info again after opening
22247         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22248         Original report at http://bugzilla.redhat.com/501848.
22249
22250 2009-11-12  Jim Meyering  <meyering@redhat.com>
22251
22252         bootstrap: sync from coreutils
22253         * build-aux/bootstrap (bootstrap_epilogue): New function.
22254         Use git_modules_config in one more place.  This make bootstrap's
22255         --gnulib-srcdir option more useful for testing.
22256
22257         bootstrap: generalize autoheader check
22258         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22259         AC_CONFIG_HEADERS.
22260
22261 2009-11-11  Eric Blake  <ebb9@byu.net>
22262
22263         mkfifoat: use new modules for Solaris and BSD bugs
22264         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22265         * lib/mkfifoat.c (mknodat): Split...
22266         * lib/mknodat.c (mknodat): ...into new file.
22267         * modules/mkfifoat (Files): Ship new file.
22268         (Depends-on): Add mkfifo, mknod.
22269         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22270         (Depends-on): Add symlink.
22271         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22272         redundant with test_mkfifo.h.
22273         (do_mkfifoat, do_mknodat): New helpers.
22274
22275         mknod: new module
22276         * modules/mknod: New file.
22277         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22278         * lib/mknod.c (mknod): Likewise.
22279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22280         defaults.
22281         * modules/sys_stat (Makefile.am): Substitute them.
22282         * lib/sys_stat.in.h (mknod): Declare replacement.
22283         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22284         Document it.
22285         * doc/posix-functions/mknod.texi (mknod): Likewise.
22286         * modules/mknod-tests: New test.
22287         * tests/test-mknod.c: Likewise.
22288
22289         mkfifo: new module
22290         * modules/mkfifo: New file.
22291         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22292         * lib/mkfifo.c (mkfifo): Likewise.
22293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22294         defaults.
22295         * modules/sys_stat (Makefile.am): Substitute them.
22296         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22297         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22298         Document it.
22299         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22300         * modules/mkfifo-tests: New test.
22301         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22302         from test-mkfifoat.c.
22303         * tests/test-mkfifo.c: New file.
22304
22305         readlink: detect FreeBSD bug
22306         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22307         slash on symlink.
22308         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22309         * tests/test-readlink.h (test_readlink): Enhance test.
22310
22311         symlink: detect FreeBSD bug
22312         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22313         slash on symlink.
22314         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22315         * tests/test-symlink.h (test_symlink): Enhance test.
22316
22317 2009-11-10  Eric Blake  <ebb9@byu.net>
22318
22319         link: detect FreeBSD bug
22320         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22321         symlink.
22322         * doc/posix-functions/link.texi (link): Document the bug.
22323         * tests/test-link.h (test_link): Enhance test.
22324         * tests/test-linkat.c (main): Update caller.
22325
22326         unlink, remove: detect FreeBSD bug
22327         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22328         slash on symlink.
22329         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22330         * doc/posix-functions/remove.texi (remove): Likewise.
22331         * tests/test-unlink.h (test_unlink): Enhance test.
22332         * tests/test-remove.c (main): Likewise.
22333
22334 2009-11-09  Eric Blake  <ebb9@byu.net>
22335
22336         rename: detect FreeBSD bug
22337         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22338         slash on symlink.
22339         * modules/renameat-tests (Depends-on): Add filenamecat.
22340         * tests/test-rename.h (test_rename): Allow one more errno.
22341         * tests/test-renameat.c (main): Likewise.
22342         * doc/posix-functions/rename.texi (rename): Document the bug.
22343
22344         open: detect FreeBSD bug
22345         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22346         symlink.
22347         * doc/posix-functions/open.texi (open): Document the bug.
22348         * doc/posix-functions/utimes.texi (utimes): Likewise.
22349         * tests/test-open.h (test_open): Add parameters, and test symlink
22350         handling.
22351         * tests/test-open.c (main): Adjust caller.
22352         * tests/test-fcntl-safer.c (main): Likewise.
22353         * modules/open-tests (Depends-on): Add stdbool, symlink.
22354         * modules/fcntl-safer-tests (Depends-on): Likewise.
22355         * tests/test-openat.c (main): Add test-open tests.
22356
22357         stat: detect FreeBSD bug
22358         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22359         symlink.
22360         * doc/posix-functions/stat.texi (stat): Document the bug.
22361         * tests/test-stat.h (test_stat_func): Add argument.
22362         * tests/test-stat.c (main): Adjust caller.
22363         * tests/test-fstatat.c (main): Likewise.
22364         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22365         Reported by Jim Meyering.
22366
22367 2009-11-09  James Youngman  <jay@gnu.org>
22368
22369         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22370         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22371
22372 2009-11-08  Jim Meyering  <meyering@redhat.com>
22373
22374         utimens: remove invalid futimesat call
22375         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22376         It used the file descriptor of the target file as the DIR_FD
22377         parameter and NULL as the file name.  That caused failure with
22378         errno == EFAULT on FreeBSD-8.0-rc2
22379
22380 2009-11-07  Eric Blake  <ebb9@byu.net>
22381
22382         fflush, freadseek: use fseeko, not fseek
22383         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22384         (clear_ungetc_buffer): Avoid potential problems on large files.
22385         * lib/freadseek.c (freadseek): Likewise.
22386         * modules/freadseek (Depends-on): Add fseeko.
22387         * modules/fseek (configure.ac): Set a witness.
22388         * tests/test-fflush.c (main): Use fseeko.
22389         * tests/test-fpurge.c (fseek): Disable link warning.
22390         * tests/test-freadable.c (fseek): Likewise.
22391         * tests/test-freading.c (fseek): Likewise.
22392         * tests/test-fseeko.c (fseek): Likewise.
22393         * tests/test-ftell.c (fseek): Likewise.
22394         * tests/test-ftello.c (fseek): Likewise.
22395         * tests/test-fwritable.c (fseek): Likewise.
22396         * tests/test-fwriting.c (fseek): Likewise.
22397
22398 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22399
22400         * modules/memchr (Depends-on): Drop getpagesize dependency.
22401
22402 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22403
22404         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22405         Reported by Ludovic Courtès.
22406         * build-aux/pmccabe2html: Improve example usage.
22407         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22408
22409 2009-11-06  Jim Meyering  <meyering@redhat.com>
22410
22411         do-release-commit-and-tag: New module.
22412         Automate the release-commit and tag process.
22413         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22414         * modules/do-release-commit-and-tag: New file.
22415         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22416
22417 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22418
22419         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22420         because test-select.c uses inet_pton.
22421
22422 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22423
22424         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22425         GETADDRINFO_LIB.  Bump serial number.
22426         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22427         Suggested by Eric Blake <ebb9@byu.net>.
22428
22429 2009-11-05  Eric Blake  <ebb9@byu.net>
22430
22431         strtod: detect darwin bug
22432         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22433         Reported by Leo Davis.
22434
22435         freopen-safer: new module
22436         * modules/freopen-safer: New module.
22437         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22438         * lib/freopen-safer.c (freopen_safer): New file.
22439         * lib/stdio-safer.h (freopen_safer): New declaration.
22440         * lib/stdio--.h (freopen): New override.
22441         * MODULES.html.sh (File stream based Input/Output): Mention it.
22442         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22443         freopen-safer module.
22444         * doc/posix-functions/stderr.texi (stderr): Likewise.
22445         * doc/posix-functions/stdin.texi (stdin): Likewise.
22446         * doc/posix-functions/stdout.texi (stdout): Likewise.
22447         * modules/freopen-safer-tests: New test.
22448         * tests/test-reopen-safer.c: New file.
22449
22450 2009-11-05  Jim Meyering  <meyering@redhat.com>
22451
22452         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22453         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22454
22455 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22456
22457         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22458
22459 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22460
22461         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22462
22463 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22464
22465         Fix link error.
22466         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22467         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22468
22469 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22470
22471         * tests/test-func.c: Also test value of __func__.
22472
22473 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22474
22475         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22476         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22477
22478 2009-11-05  Bruno Haible  <bruno@clisp.org>
22479
22480         Fix link error.
22481         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22482         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22483         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22484
22485 2009-11-05  Bruno Haible  <bruno@clisp.org>
22486
22487         Tests for module 'inet_pton'.
22488         * modules/inet_pton-tests: New file.
22489         * tests/test-inet_pton.c: New file.
22490
22491 2009-11-05  Bruno Haible  <bruno@clisp.org>
22492
22493         Tests for module 'inet_ntop'.
22494         * modules/inet_ntop-tests: New file.
22495         * tests/test-inet_ntop.c: New file.
22496
22497 2009-11-04  Eric Blake  <ebb9@byu.net>
22498
22499         stdlib-safer: wrap all mkstemp variants
22500         * modules/mkostemp (configure.ac): Set witness.
22501         * modules/mkostemps (configure.ac): Likewise.
22502         * modules/mkstemps (configure.ac): Likewise.
22503         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22504         (mkstemps_safer): Wrap more functions.
22505         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22506         wrapping.
22507         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22508         (mkstemps_safer): Implement the wrappers.
22509
22510         mkstemps, mkostemps: new modules
22511         * modules/mkostemps: New module.
22512         * modules/mkstemps: Likewise.
22513         * lib/mkostemps.c (mkostemps): New file.
22514         * lib/mkstemps.c (mkstemps): Likewise.
22515         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22516         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22518         * modules/stdlib (Makefile.am): Substitute them.
22519         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22520         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22521         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22522         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22523         * MODULES.html.sh (File system functions): Mention them.
22524
22525         tempname: resync from glibc
22526         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22527         same values for __GT_FILE as glibc.  Abort even when assertions
22528         are disabled.
22529         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22530         match its value otherwise.  Allow idempotent inclusion.
22531         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22532         * lib/mkostemp.c (mkostemp): Likewise.
22533         * lib/mkstemp.c (mkstemp): Likewise.
22534         * lib/tmpfile.c (tmpfile): Likewise.
22535         * NEWS: Document this.
22536
22537         utimens: fix use of futimens on older Linux
22538         * lib/utimens.c (fdutimens): Use updated, rather than original,
22539         timespec to avoid bug in older Linux kernel.
22540         Reported by Simon Josefsson.
22541
22542 2009-11-04  Bruno Haible  <bruno@clisp.org>
22543
22544         Make num_processors more flexible and consistent.
22545         * lib/nproc.h (enum nproc_query): New type.
22546         (num_processors): Add a 'query' argument.
22547         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22548         (num_processors): Add a 'query' argument. Test the value of the
22549         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22550         mingw, count the number of CPUs available for the current process.
22551         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22552         Check for sched_getaffinity and sched_getaffinity_np.
22553         * modules/nproc (Depends-on): Add c-ctype, extensions.
22554         * NEWS: Mention the change.
22555
22556 2009-11-03  Bruno Haible  <bruno@clisp.org>
22557
22558         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22559
22560 2009-11-03  Jim Meyering  <meyering@redhat.com>
22561
22562         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22563         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22564         if it is defined.
22565
22566 2009-11-02  Eric Blake  <ebb9@byu.net>
22567
22568         mktime, timegm: share common declaration
22569         * lib/mktime-internal.h: New file.
22570         * lib/mktime.c: Use it rather than open-coding a declaration.
22571         * lib/timegm.c: Likewise.
22572         * modules/mktime (Files): Ship it.
22573         * modules/timegm (Files): Likewise.
22574         Suggested by Bruno Haible.
22575
22576         test-update-copyright: update test to match script changes
22577         * tests/test-update-copyright.sh: Avoid hard-coding perl
22578         location.  Don't update *.bak created by earlier runs.
22579
22580 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22581             Simon Josefsson  <simon@josefsson.org>
22582             Bruno Haible  <bruno@clisp.org>
22583
22584         Fix link error on Solaris 8.
22585         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22586         also in libnsl. Define also INET_PTON_LIB.
22587         * modules/inet_pton (Link): New section.
22588
22589 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22590             Bruno Haible  <bruno@clisp.org>
22591
22592         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22593         * modules/inet_ntop (Link): New section.
22594         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22595
22596 2009-11-02  Eric Blake  <ebb9@byu.net>
22597
22598         maint: avoid compiler warnings in m4 macros
22599         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22600         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22601
22602 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22603
22604         * m4/pmccabe2html.m4: Remove file.
22605         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22606         function.  Change maintainer.
22607         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22608         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22609         Courtès).
22610
22611 2009-10-31  Eric Blake  <ebb9@byu.net>
22612
22613         fseeko: fix m4 regression
22614         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22615         regression from 2009-10-27.
22616         Reported by Ralf Wildenhues.
22617
22618 2009-10-31  Jim Meyering  <meyering@redhat.com>
22619
22620         inttostr: aesthetics and improved (compile-time) safety
22621         Define inttype_is_signed rather than inttype_is_unsigned,
22622         since the sole use is via "#if inttype_is_signed".
22623         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22624         inttype_is_unsigned.
22625         * lib/offtostr.c (inttype_is_signed): Likewise.
22626         * lib/uinttostr.c (inttype_is_signed): Likewise.
22627         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22628         * lib/inttostr.c (inttostr): Use verify to cross-check the
22629         inttype_is_signed value and the signedness of the actual type.
22630         * modules/inttostr (Depends-on): Add verify.
22631
22632 2009-10-30  Eric Blake  <ebb9@byu.net>
22633
22634         build: avoid compiler warnings
22635         * lib/fchmodat.c (lchmod): Mark unused variables.
22636         * lib/getopt.c (_getopt_initialize): Likewise.
22637         * lib/mktime.c (__mktime_internal): Provide prototype.
22638         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22639         older gcc that do not understand #pragma GCC diagnostic.
22640         * lib/uinttostr.c (inttype_is_unsigned): Define.
22641         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22642
22643 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22644
22645         stat: fix compilation on AIX
22646         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22647         only see struct stat64.
22648
22649 2009-10-30  Eric Blake  <ebb9@byu.net>
22650
22651         exclude: make more robust
22652         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22653         rather than masking a coding bug.
22654         Suggested by Bruno Haible.
22655
22656 2009-10-30  Jim Meyering  <meyering@redhat.com>
22657
22658         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22659         Rather than putting #!/usr/bin/perl on the first line,
22660         start with a variant of what's recommended by "man perlrun" that
22661         invokes the first "perl" program from your shell's search path.
22662         * build-aux/gitlog-to-changelog: Replace #!... as above.
22663         Add a "Local Variables" perl mode setting.
22664         Prompted by a patch from Ludovic Courtès.
22665         Improved by Eric Blake.
22666         * build-aux/useless-if-before-free: Likewise.
22667         * build-aux/announce-gen: Likewise.
22668         * build-aux/update-copyright: Likewise.
22669
22670 2009-10-29  Eric Blake  <ebb9@byu.net>
22671
22672         filenamecat-lgpl: adjust clients
22673         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22674         filenamecat.
22675         * modules/renameat (Depends-on): Likewise.
22676
22677         filenamecat: split into filenamecat-lgpl
22678         * modules/filenamecat-lgpl: New module.
22679         * modules/filenamecat (Files): Move library-safe files into
22680         filenamecat-lgpl.
22681         (Depends-on): Add filenamecat-lgpl.
22682         (configure.ac): Declare witness.
22683         * lib/filenamecat.h (file_name_concat): Only declare when using
22684         GPL module.
22685         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22686         Move...
22687         * lib/filenamecat-lgpl.c: ...into new file.
22688         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22689         (gl_FILE_NAME_CONCAT): Use it.
22690         * MODULES.html.sh (File system functions): Mention new module.
22691
22692         argp: avoid memory leak
22693         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22694         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22695         base_name, since the latter malloc()s and can call exit().
22696         Leak introduced 2006-07-03.
22697
22698         dirname-lgpl: adjust clients that don't need full dirname
22699         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22700         * modules/filenamecat (Depends-on): Likewise.
22701         * modules/linkat (Depends-on): Likewise.
22702         * modules/mkancesdirs (Depends-on): Likewise.
22703         * modules/mkdir (Depends-on): Likewise.
22704         * modules/openat (Depends-on): Likewise.
22705         * modules/savewd (Depends-on): Likewise.
22706         * modules/rename (Depends-on): Likewise.
22707         (License): Relax license.
22708         * modules/mkdir-tests (Depends-on): Drop progname.
22709         (Makefile.am): Delete unneeded LDADD.
22710         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22711
22712         dirname: split into dirname-lgpl
22713         * modules/dirname-lgpl: New module.
22714         * modules/dirname (Files): Move library-safe files into
22715         dirname-lgpl.
22716         (Depends-on): Add dirname-lgpl.
22717         (configure.ac): Declare witness.
22718         * modules/double-slash-root (License): Relax license.
22719         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22720         module.
22721         * lib/dirname.c (dir_len, mdir_name): Move...
22722         * lib/dirname-lgpl.c: ...into new file.
22723         * lib/basename.c (last_component, base_len): Move...
22724         * lib/basename-lgpl.c: ...into new file.
22725         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22726         (gl_DIRNAME): Use it.
22727         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22728         Mention new module.
22729         * modules/dirname-tests (Depends-on): Add progname.
22730         * tests/test-dirname.c (program_name): Delete.
22731
22732         mkdir: make safe for libraries
22733         * modules/mkdir (Depends-on): Drop xalloc.
22734         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22735         exit.
22736
22737         tests: avoid some compiler warnings
22738         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22739         literals.
22740         * tests/test-memchr.c (main): Avoid type mismatch.
22741         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22742         * tests/test-base64.c (main): Likewise.
22743         * tests/test-getdelim.c (main): Likewise.
22744         * tests/test-gethostname.c (main): Likewise.
22745         * tests/test-getline.c (main): Likewise.
22746         * tests/test-netinet_in.c (main): Likewise.
22747         * tests/test-select.c (open_server_socket, main): Likewise.
22748         * tests/test-select-stdin.c (main): Likewise.
22749         * tests/test-sockets.c (main): Likewise.
22750         * tests/test-strsignal.c (main): Likewise.
22751         * tests/test-sys_select.c (main): Likewise.
22752         * tests/test-sys_socket.c (main): Likewise.
22753         * tests/test-u64.c (main): Likewise.
22754         * tests/test-xfprintf-posix.c (main): Likewise.
22755         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22756
22757         sockets: avoid compiler warning
22758         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22759
22760         maint: detect usage(1) and other suspicious exits
22761         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22762
22763 2009-10-29  Jim Meyering  <meyering@redhat.com>
22764
22765         timespec: long-to-int truncation could make timespec_cmp malfunction
22766         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22767         a multiple of 2^32 nanoseconds as no difference.
22768
22769 2009-10-28  Jim Meyering  <meyering@redhat.com>
22770
22771         fprintftime: wrap macro code argument in "do {...} while(0)"
22772         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22773         cpy macro must be a statement that can be followed by a semicolon.
22774         Now that the else clause contains a comment and is hence longer
22775         than one line, I require curly braces.  That in turn requires
22776         that we wrap this code block in the standard do...while(0).
22777
22778         fprintftime: remove stray semicolon from previous change
22779         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22780
22781         fprintftime: avoid a warning about ignored fwrite return value
22782         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22783         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22784         that is unsafe.
22785         * modules/fprintftime (Depends-on): Add ignore-value.
22786
22787         exclude: avoid an unwarranted warning
22788         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22789
22790 2009-10-27  Eric Blake  <ebb9@byu.net>
22791
22792         fseek: avoid compilation failure when fflush is replaced
22793         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22794         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22795         module is in use.
22796         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22797         module is not in use; since REPLACE_FSEEK worked otherwise.
22798         (GNULIB_FTELLO): Likewise for ftell.
22799         Reported by Ian Beckwith and others.
22800
22801 2009-10-27  Bruno Haible  <bruno@clisp.org>
22802
22803         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22804         Reported by Jim Meyering.
22805
22806 2009-10-27  Jim Meyering  <jim@meyering.net>
22807             Bruno Haible  <bruno@clisp.org>
22808
22809         Avoid warning despite dropping the return value of fwrite.
22810         * lib/unicodeio.c: Include ignore-value.h.
22811         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22812         * modules/unicodeio (Depends-on): Add ignore-value.
22813
22814 2009-10-26  Eric Blake  <ebb9@byu.net>
22815
22816         areadlinkat: fix fallback path
22817         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22818         pointer and zero.
22819
22820 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22821
22822         Use a better IO block size for modern systems
22823         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22824         * lib/md2.c: Likewise.
22825         * lib/md4.c: Likewise.
22826         * lib/md5.c: Likewise.
22827         * lib/sha1.c: Likewise.
22828         * lib/sha256.c: Likewise.
22829         * lib/sha512.c: Likewise.
22830
22831 2009-10-22  Eric Blake  <ebb9@byu.net>
22832
22833         tests: avoid several compiler warnings
22834         * tests/test-getcwd.c (main): Avoid buffer underflow.
22835         * tests/test-getdate.c (main): String literals are not safe with
22836         putenv, so use setenv.  Declare unused argument.
22837         * modules/getdate-tests (Depends-on): Add setenv.
22838         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22839         problems with string literals in char *.
22840         * tests/test-hash.c (main): Avoid shadowing declaration.
22841         (insert_new): Treat string literals as char const *.
22842         * tests/test-getopt.h (test_getopt): Likewise.
22843         (getopt_loop): Alter types to minimize casting elsewhere.
22844         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22845         (test_getopt_long_posix): Likewise.
22846         (do_getopt_long): Add wrapper to minimize casting.
22847         * tests/test-atexit.c (clear_temp_file): Use void.
22848         * tests/test-areadlink-with-size.c (main): Declare unused
22849         arguments.
22850         * tests/test-areadlink.c (main): Likewise.
22851         * tests/test-areadlinkat-with-size.c (main): Likewise.
22852         * tests/test-areadlinkat.c (main): Likewise.
22853         * tests/test-canonicalize-lgpl.c (main): Likewise.
22854         * tests/test-canonicalize.c (main): Likewise.
22855         * tests/test-dirent-safer.c (main): Likewise.
22856         * tests/test-dirname.c (main): Likewise.
22857         * tests/test-dup2.c (main): Likewise.
22858         * tests/test-fchdir.c (main): Likewise.
22859         * tests/test-fcntl-h.c (main): Likewise.
22860         * tests/test-fcntl-safer.c (main): Likewise.
22861         * tests/test-fdopendir.c (main): Likewise.
22862         * tests/test-fdutimensat.c (main): Likewise.
22863         * tests/test-fflush.c (main): Likewise.
22864         * tests/test-filenamecat.c (main): Likewise.
22865         * tests/test-filevercmp.c (main): Likewise.
22866         * tests/test-fopen-safer.c (main): Likewise.
22867         * tests/test-fopen.c (main): Likewise.
22868         * tests/test-fpending.c (main): Likewise.
22869         * tests/test-fpurge.c (main): Likewise.
22870         * tests/test-freading.c (main): Likewise.
22871         * tests/test-fstatat.c (main): Likewise.
22872         * tests/test-fsync.c (main): Likewise.
22873         * tests/test-futimens.c (main): Likewise.
22874         * tests/test-getndelim2.c (main): Likewise.
22875         * tests/test-gettimeofday.c (main): Likewise.
22876         * tests/test-getopt.c (main): Likewise.
22877         * tests/test-i-ring.c (main): Likewise.
22878         * tests/test-inttypes.c (main): Likewise.
22879         * tests/test-link.c (main): Likewise.
22880         * tests/test-lstat.c (main): Likewise.
22881         * tests/test-math.c (main): Likewise.
22882         * tests/test-md5.c (main): Likewise.
22883         * tests/test-memchr2.c (main): Likewise.
22884         * tests/test-memrchr.c (main): Likewise.
22885         * tests/test-mkdir.c (main): Likewise.
22886         * tests/test-mkdirat.c (main): Likewise.
22887         * tests/test-mkfifoat.c (main): Likewise.
22888         * tests/test-open.c (main): Likewise.
22889         * tests/test-openat-safer.c (main): Likewise.
22890         * tests/test-openat.c (main): Likewise.
22891         * tests/test-quotearg.c (main): Likewise.
22892         * tests/test-rawmemchr.c (main): Likewise.
22893         * tests/test-readlink.c (main): Likewise.
22894         * tests/test-remove.c (main): Likewise.
22895         * tests/test-rename.c (main): Likewise.
22896         * tests/test-renameat.c (main): Likewise.
22897         * tests/test-rmdir.c (main): Likewise.
22898         * tests/test-sha1.c (main): Likewise.
22899         * tests/test-signal.c (main): Likewise.
22900         * tests/test-sigaction.c (main): Likewise.
22901         * tests/test-stat.c (main): Likewise.
22902         * tests/test-stat-time.c (main): Likewise.
22903         * tests/test-stddef.c (main): Likewise.
22904         * tests/test-stdint.c (main): Likewise.
22905         * tests/test-stdio.c (main): Likewise.
22906         * tests/test-stdlib.c (main): Likewise.
22907         * tests/test-strchrnul.c (main): Likewise.
22908         * tests/test-strerror.c (main): Likewise.
22909         * tests/test-string.c (main): Likewise.
22910         * tests/test-strtod.c (main): Likewise.
22911         * tests/test-strverscmp.c (main): Likewise.
22912         * tests/test-symlink.c (main): Likewise.
22913         * tests/test-symlinkat.c (main): Likewise.
22914         * tests/test-sys_stat.c (main): Likewise.
22915         * tests/test-sys_time.c (main): Likewise.
22916         * tests/test-time.c (main): Likewise.
22917         * tests/test-unistd.c (main): Likewise.
22918         * tests/test-unlink.c (main): Likewise.
22919         * tests/test-unlinkat.c (main): Likewise.
22920         * tests/test-utimens.c (main): Likewise.
22921         * tests/test-utimensat.c (main): Likewise.
22922         * tests/test-version-etc.c (main): Likewise.
22923         * tests/test-wchar.c (main): Likewise.
22924         * tests/test-wctype.c (main): Likewise.
22925         * tests/test-xprintf-posix.c (main): Likewise.
22926         * tests/test-posixtm.c (main): Likewise.
22927         (STREQ): Delete unused macro.
22928         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22929         shadowed variables.
22930         * tests/test-memchr.c (main): Likewise.
22931
22932 2009-10-21  Eric Blake  <ebb9@byu.net>
22933
22934         areadlinkat: avoid failure on older glibc
22935         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22936         rather than mis-comparing 0 against FUNC_RESULT of char*.
22937
22938 2009-10-21  Bruno Haible  <bruno@clisp.org>
22939
22940         * modules/stpncpy (License): Relicense under LGPLv2+.
22941         Reported by David Lutterkort <lutter@redhat.com>.
22942
22943 2009-10-20  Eric Blake  <ebb9@byu.net>
22944
22945         utimensat: work around Solaris 9 bug
22946         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22947         has trailing slash bugs.
22948         * tests/test-lutimens.h (test_lutimens): Enhance test.
22949         * tests/test-utimens.h (test_utimens): Likewise.
22950         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22951         * doc/posix-functions/utimes.texi (utimes): Likewise.
22952         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22953         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22954         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22955         * doc/posix-functions/futimens.texi (futimens): Likewise.
22956
22957         fdutimensat: new module
22958         * modules/fdutimensat: New file.
22959         * lib/fdutimensat.c (fdutimensat): Likewise.
22960         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22961         * MODULES.html.sh (File system functions): Mention module.
22962         * modules/fdutimensat-tests: New test.
22963         * tests/test-fdutimensat.c: Likewise.
22964
22965         doc: regenerate INSTALL
22966         * doc/INSTALL: Reflect recent autoconf update.
22967         * doc/INSTALL.ISO: Likewise.
22968         * doc/INSTALL.UTF-8: Likewise.
22969
22970 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22971
22972         acl: warn if ACL support is not detected
22973         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22974
22975 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22976
22977         * lib/nproc.h: Add extern "C" block for C++.
22978
22979 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22980             Bruno Haible  <bruno@clisp.org>
22981
22982         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22983         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22984         * doc/posix-functions/isalpha.texi: Likewise.
22985         * doc/posix-functions/isblank.texi: Likewise.
22986         * doc/posix-functions/iscntrl.texi: Likewise.
22987         * doc/posix-functions/isdigit.texi: Likewise.
22988         * doc/posix-functions/isgraph.texi: Likewise.
22989         * doc/posix-functions/islower.texi: Likewise.
22990         * doc/posix-functions/isprint.texi: Likewise.
22991         * doc/posix-functions/ispunct.texi: Likewise.
22992         * doc/posix-functions/isspace.texi: Likewise.
22993         * doc/posix-functions/isupper.texi: Likewise.
22994         * doc/posix-functions/isxdigit.texi: Likewise.
22995
22996 2009-10-18  Bruno Haible  <bruno@clisp.org>
22997
22998         Tests for module 'isblank'.
22999         * modules/isblank-tests: New file.
23000         * tests/test-isblank.c: New file.
23001
23002         New module 'isblank'.
23003         * lib/isblank.c: New file.
23004         * m4/isblank.m4: New file.
23005         * modules/isblank: New file.
23006         * doc/posix-functions/isblank.texi: Mention the new module.
23007
23008 2009-10-18  Bruno Haible  <bruno@clisp.org>
23009
23010         New module 'ctype'.
23011         * lib/ctype.in.h: New file.
23012         * m4/ctype.m4: New file.
23013         * modules/ctype: New file.
23014         * doc/posix-headers/ctype.texi: Mention the new module.
23015
23016 2009-10-18  Jim Meyering  <meyering@redhat.com>
23017
23018         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23019         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23020         right after its initialization, rather than farther down.
23021         Keeping these in close proximity makes it easier to ensure
23022         that each such variable is initialized.  E.g.,
23023
23024             LIB_CLOCK_GETTIME=
23025             AC_SUBST([LIB_CLOCK_GETTIME])
23026
23027         This change also increments these serial numbers.
23028         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23029         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23030         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23031
23032 2009-10-18  Bruno Haible  <bruno@clisp.org>
23033
23034         Don't let environment variables perturb build.
23035         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23036         (gl_PREREQ_GETHRXTIME): ... not here.
23037
23038 2009-10-18  Bruno Haible  <bruno@clisp.org>
23039
23040         Avoid symlink attack in localcharset module.
23041         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23042         (O_NOFOLLOW): Define fallback.
23043         (get_charset_aliases): Don't open the file if it is a symbolic link.
23044         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23045         gl_FCNTL_H.
23046         (gl_FCNTL_H): Require it.
23047         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23048         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23049         Reported by Fergal Glynn <fglynn@veracode.com>.
23050
23051 2009-10-18  Bruno Haible  <bruno@clisp.org>
23052
23053         Implement nproc for mingw.
23054         * lib/nproc.c: Include <windows.h>
23055         (num_processors): On native Windows platforms, try GetSystemInfo.
23056
23057 2009-10-18  Bruno Haible  <bruno@clisp.org>
23058
23059         Implement nproc for IRIX.
23060         * lib/nproc.c: Include <sys/sysmp.h>.
23061         (num_processors): On IRIX systems, try sysmp.
23062         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23063
23064 2009-10-18  Bruno Haible  <bruno@clisp.org>
23065
23066         Implement nproc for HP-UX.
23067         * lib/nproc.c: Include <sys/pstat.h>
23068         (num_processors): On HP-UX systems, try pstat_getdynamic.
23069         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23070         pstat_getdynamic.
23071
23072 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23073             Bruno Haible  <bruno@clisp.org>
23074
23075         Implement nproc for NetBSD, OpenBSD.
23076         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23077         (ARRAY_SIZE): New macro.
23078         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23079         * m4/nproc.m4: New file.
23080         * modules/nproc (Files): Add m4/nproc.m4.
23081         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23082         (Makefile.am): Instead, augment lib_SOURCES.
23083
23084 2009-10-18  Bruno Haible  <bruno@clisp.org>
23085
23086         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23087         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23088         sys/param.h.
23089
23090 2009-10-16  Eric Blake  <ebb9@byu.net>
23091
23092         utimensat: new module
23093         * modules/utimensat: New file.
23094         * lib/utimensat.c (utimensat): Likewise.
23095         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23096         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23097         so we can work around Linux bugs.
23098         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23099         * modules/sys_stat (Makefile.am): Substitute them.
23100         * lib/sys_stat.in.h (utimensat): Declare it.
23101         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23102         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23103         * modules/utimensat-tests: New test.
23104         * tests/test-utimensat.c: Likewise.
23105
23106         utimens: let lutimens work on non-symlinks
23107         * lib/utimens.c (lutimens): Fall back to utimens rather than
23108         failing with ENOSYS, when file is not a symlink.
23109         (utimens): Reduce redirection.
23110         * tests/test-lutimens.h (test_lutimens): Update test to cover
23111         non-symlinks.
23112         * tests/test-utimens.h (test_utimens): Update test to cover
23113         symlinks.
23114         * tests/test-utimens.c (main): Update caller.
23115
23116         utimens: cache whether utimensat syscall works
23117         * lib/utimens.c (utimensat_works_really): New cache variable.
23118         (fdutimens, lutimens): Use it to avoid failing syscall.
23119
23120         test-stat-time, test-utimens: improve portability
23121         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23122         ext4 on alpha, and for cygwin.
23123         * tests/test-utimens-common.h: New file.
23124         (nap): Factor delays into single function.
23125         * tests/test-lutimens.h (test_lutimens): Use new header.
23126         * tests/test-futimens.h (test_futimens): Likewise.
23127         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23128         timestamps to occur from same machine, as was done previously for
23129         test_utimens.
23130         * modules/utimens-tests (Files): Ship new file.
23131         * modules/futimens-tests (Files): Likewise.
23132         Reported in part by Jim Meyering.
23133
23134         sys_stat: sort replacement declarations
23135         * lib/sys_stat.in.h: Sort declarations.
23136         * lib/futimens.c (futimens): Fix typo.
23137
23138 2009-10-15  Jim Meyering  <meyering@redhat.com>
23139
23140         don't let environment settings perturb build
23141         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23142         could cause a configure-time and/or build-time malfunction.
23143         Typically, a configure-time function-in-library test is performed
23144         via code like this:
23145
23146           LIB_VAR=
23147           AC_SUBST([LIB_VAR])
23148           prefix_saved_LIBS=$LIBS
23149             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23150                        [test "$ac_cv_search_FUNC" = "none required" ||
23151                         LIB_VAR=$ac_cv_search_FUNC])
23152           LIBS=$prefix_saved_LIBS
23153
23154         However, in each of the files affected by this change, the LIB_VAR=
23155         initialization was omitted.  Thus, when set in the environment, its
23156         value would propagate into generated Makefiles when FUNC is not found
23157         in LIB_NAME.
23158         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23159         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23161
23162 2009-10-14  Eric Blake  <ebb9@byu.net>
23163
23164         fchdir: avoid infinite recursion in mingw
23165         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23166         recursing.
23167
23168         test-stat-time: port to mingw
23169         * tests/test-stat-time.c (force_unlink): Return a value.
23170         (test_ctime) [W32]: Fix compilation error.
23171         (nap): Don't call usleep with too large an argument.  Use
23172         force_unlink.
23173         * doc/pastposix-functions/usleep.texi (usleep): Document the
23174         portability issue.
23175
23176 2009-10-13  Jim Meyering  <meyering@redhat.com>
23177
23178         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23179         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23180         * modules/pipe-filter-ii: Likewise.
23181         * modules/sys_socket-tests: Likewise.
23182         * modules/tsearch-tests: Likewise.
23183         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23184         (check): Depend on it.
23185
23186 2009-10-12  Eric Blake  <ebb9@byu.net>
23187
23188         utimens-tests: port to NFS file systems
23189         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23190         comparisons to avoid spurious failures from timestamp drift
23191         between NFS machines.
23192
23193 2009-10-12  Eric Blake  <ebb9@byu.net>
23194
23195         stat-time-tests: minor cleanups
23196         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23197         * tests/test-stat-time.c (nap): Separate assignment from call.
23198         Suggested by Paolo Bonzini and Bruno Haible.
23199
23200         sys_stat: guarantee struct timespec
23201         * lib/sys_stat.in.h (includes): Always include <time.h>
23202         * modules/sys_stat (Depends-on): Add time.
23203         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23204         mode_t permission values.
23205         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23206         get at subsecond timestamps.
23207
23208 2009-10-10  Eric Blake  <ebb9@byu.net>
23209
23210         futimens: new module
23211         * modules/futimens: New file.
23212         * lib/futimens.c (futimens): Likewise.
23213         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23214         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23215         we can work around Linux bugs.
23216         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23217         * modules/sys_stat (Makefile.am): Substitute them.
23218         * lib/sys_stat.in.h (futimens): Declare it.
23219         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23220         * doc/posix-functions/futimens.texi (futimens): Likewise.
23221         * modules/futimens-tests: New test.
23222         * tests/test-futimens.c: Likewise.
23223
23224         utimens: introduce fdutimens
23225         * lib/utimens.h (fdutimens): New prototype.
23226         * lib/utimens.c (gl_futimens): Move guts...
23227         (fdutimens): ...to new interface.
23228         * tests/test-utimens.c (do_fdutimens): Use it.
23229
23230         utimens: add UTIME_NOW and UTIME_OMIT support
23231         * lib/utimens.c (validate_timespec, update_timespec): New helper
23232         functions.
23233         (gl_futimens, lutimens): Use them.
23234         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23235         stdbool, sys_stat.
23236         (Link): Mention resulting library dependency.
23237         * modules/utimecmp (Link): Likewise.
23238         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23239         (Makefile.am): Pick up library dependency.
23240         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23241         definition.
23242         * tests/test-sys_stat.c: Test the definitions.
23243         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23244         * NEWS: Document library dependency.
23245
23246         utimecmp: support symlink timestamps
23247         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23248         hashing when possible.  Use pathconf when available.
23249         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23250         * modules/utimecmp (Depends-on): Add lstat.
23251
23252         utimens: add lutimens interface
23253         * lib/utimens.c (lutimens): New function.
23254         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23255         * lib/utimens.h (lutimens): Declare new interface.
23256         * tests/test-utimens.c (main): Enhance test.
23257         * tests/test-lutimens.h (test_lutimens): New file.
23258         * modules/utimens-tests (Files): Distribute it.
23259         (Depends-on): Add symlink.
23260         (configure.ac): Check for usleep.
23261
23262         utimens: validate futimens usage
23263         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23264         fewer syscalls on failure later on.  Avoid compiler warning on
23265         mingw.
23266         * modules/utimens (Depends-on): Add dup2.
23267
23268         utimens: add test
23269         * modules/utimens-tests: New test.
23270         * tests/test-utimens.h: New file.
23271         * tests/test-futimens.h: Likewise.
23272         * tests/test-utimens.c: Likewise.
23273
23274         doc: mention timestamp portability issues
23275         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23276         instead.
23277         * doc/posix-functions/utime.texi (utime): Likewise.
23278         * doc/posix-functions/utimes.texi (utimes): Likewise.
23279         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23280         instead.
23281         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23282         module.
23283         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23284         Mention weakness with symlink timestamps.
23285         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23286         to utimensat/futimens instead.
23287         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23288
23289         test-dup2: enhance test
23290         * tests/test-dup2.c (main): Also check AT_FDCWD.
23291
23292         test-stat-time: avoid more spurious failures
23293         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23294         xfs; and avoid race if the two timestamps cross quantization edge.
23295
23296         relocatable: prefer 'file system' over 'filesystem'
23297         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23298         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23299         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23300         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23301         * lib/relocatable.c (compute_curr_prefix): Likewise.
23302
23303 2009-10-10  Jim Meyering  <meyering@redhat.com>
23304
23305         stat-time-tests: check for the usleep function
23306         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23307
23308 2009-10-10  Bruno Haible  <bruno@clisp.org>
23309
23310         * modules/xnanosleep: Put the Link section after the Include section.
23311
23312 2009-10-09  Eric Blake  <ebb9@byu.net>
23313
23314         dup2: work around FreeBSD 6.1 bug
23315         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23316         * doc/posix-functions/dup2.texi (dup2): Document it.
23317         Reported by Nelson H. F. Beebe and Jim Meyering.
23318
23319         test-stat-time: port to buggy NFS clients
23320         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23321         (test_ctime): Also skip test if mtime and ctime are skewed.
23322
23323         maint: prefer 'file system' over 'filesystem'
23324         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23325         * doc/posix-functions/lstat.texi (lstat): Likewise.
23326         * lib/file-has-acl.c (file_has_acl): Likewise.
23327         * lib/fwriteerror.c [TEST]: Likewise.
23328         * tests/test-areadlink.h (test_areadlink): Likewise.
23329         * tests/test-areadlinkat-with-size.c (main): Likewise.
23330         * tests/test-areadlinkat.c (main): Likewise.
23331         * tests/test-canonicalize-lgpl.c (main): Likewise.
23332         * tests/test-canonicalize.c (main): Likewise.
23333         * tests/test-fstatat.c (main): Likewise.
23334         * tests/test-linkat.c (main): Likewise.
23335         * tests/test-lstat.h (test_lstat_func): Likewise.
23336         * tests/test-mkdir.h (test_mkdir): Likewise.
23337         * tests/test-readlink.h (test_readlink): Likewise.
23338         * tests/test-remove.c (main): Likewise.
23339         * tests/test-rename.h (test_rename): Likewise.
23340         * tests/test-renameat.c (main): Likewise.
23341         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23342         * tests/test-symlink.h (test_symlink): Likewise.
23343         * tests/test-symlinkat.c (main): Likewise.
23344         * tests/test-unlink.h (test_unlink_func): Likewise.
23345         * tests/test-unlinkat.c (main): Likewise.
23346
23347         maint: make realtime library usage explicit
23348         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23349         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23350         * modules/settime (Link): Likewise.
23351         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23352
23353         test-stat-time: speed up execution
23354         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23355         warning on mingw.
23356         (nap): New helper function.
23357         (prepare_test): Use it to reduce sleep time.
23358         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23359         execution.
23360         * modules/stat-time-tests (configure.ac): Check for usleep.
23361
23362 2009-10-09  Jim Meyering  <meyering@redhat.com>
23363
23364         selinux-h: always use getfilecon wrappers
23365         * lib/getfilecon.c: New file.
23366         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23367         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23368         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23369         (fgetfilecon): Provide a stub.
23370         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23371         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23372         file unconditionally.
23373         When <selinux/selinux.h> is found, arrange to use wrappers.
23374         * modules/selinux-h (Files): Add getfilecon.c.
23375         (Makefile.am): Substitute include-next-related bits
23376         into the now-always-generated selinux/selinux.h file.
23377         * doc/glibc-functions/lgetfilecon.texi: New file.
23378         * doc/glibc-functions/fgetfilecon.texi: New file.
23379         * doc/glibc-functions/getfilecon.texi: New file.
23380         * doc/glibc-functions/getfilecon-desc.texi: New file.
23381         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23382         which to pull in the new files.
23383         * MODULES.html.sh (Misc): Add selinux-h.
23384
23385 2009-10-08  Jim Meyering  <meyering@redhat.com>
23386
23387         unistd: fix comment typo
23388         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23389
23390 2009-10-08  Eric Blake  <ebb9@byu.net>
23391
23392         areadlink: use SIZE_MAX consistently
23393         * modules/areadlink (Depends-on): Add stdint.
23394         * modules/areadlink-with-size (Depends-on): Likewise.
23395         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23396         gives NULL; drop sys/types, since unistd gives size_t; and add
23397         stdint for SIZE_MAX.
23398         (SIZE_MAX): Rely on headers.
23399         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23400         and add stdint.
23401         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23402         (SIZE_MAX): Likewise.
23403         (INITIAL_BUF_SIZE): Turn into enum.
23404         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23405
23406 2009-10-08  Jim Meyering  <meyering@redhat.com>
23407
23408         areadlinkat: avoid compilation failure
23409         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23410         Fix typo in comment.
23411
23412 2009-10-07  Eric Blake  <ebb9@byu.net>
23413
23414         areadlinkat-with-size: new module
23415         * modules/areadlinkat-with-size: New module.
23416         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23417         * lib/areadlink.h (areadlinkat): Declare it.
23418         * MODULES.html.sh (File system functions): Mention it.
23419         * modules/areadlinkat-with-size-tests: New test.
23420         * tests/test-areadlinkat-with-size.c: New file.
23421
23422         xreadlinkat: new module
23423         * modules/xreadlinkat: New module.
23424         * lib/xreadlinkat.c (xreadlinkat): New file.
23425         * lib/xreadlink.h (xreadlinkat): Declare it.
23426         * MODULES.html.sh (File system functions): Mention it.
23427
23428         areadlinkat: new module
23429         * lib/at-func.c (FUNC_FAIL): New define.
23430         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23431         * modules/areadlinkat: New module.
23432         * lib/linkat.c (areadlinkat): Move...
23433         * lib/areadlinkat.c (areadlinkat): ...to new file.
23434         * lib/areadlink.h (areadlinkat): Declare it.
23435         * modules/linkat (Depends-on): Add areadlinkat.
23436         * MODULES.html.sh (File system functions): Mention it.
23437         * modules/areadlinkat-tests: New test.
23438         * tests/test-areadlinkat.c: New file.
23439
23440         areadlink, areadlink-with-size: add tests
23441         * modules/areadlink-tests: New test.
23442         * modules/areadlink-with-size-tests: Likewise.
23443         * tests/test-areadlink.h: New file.
23444         * tests/test-areadlink.c: Likewise.
23445         * tests/test-areadlink-with-size.c: Likewise.
23446
23447         maint: minor cleanups
23448         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23449         _UNUSED_PARAMETER_ instead.
23450         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23451         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23452         * modules/linkat-tests (Files): Distribute test-link.h.
23453
23454         openat, utimens: whitespace cleanup
23455         * lib/openat.c: Prefer space throughout, rather than mix of 8
23456         spaces vs. tabs.
23457         * lib/at-func.c: Likewise.
23458         * lib/utimens.c: Likewise.
23459
23460         openat: avoid using wrong fd
23461         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23462         working directory chooses same fd.
23463         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23464
23465         mkdir, mkdirat: fix cygwin 1.5.x bug
23466         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23467         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23468         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23469         bug.
23470         (gl_PREREQ_MKDIR): Delete unused macro.
23471         * modules/mkdir (Files): Track file rename.
23472         (configure.ac): Update macro name.
23473         * modules/openat (Depends-on): Add mkdir.
23474         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23475
23476         mkdir, mkdirat: add tests
23477         * modules/mkdir-tests: New test.
23478         * tests/test-mkdir.h: New file.
23479         * tests/test-mkdir.c: Likewise.
23480         * tests/test-mkdirat.c: Likewise.
23481         * modules/openat-tests (Files): Add new files.
23482         (Makefile.am): Run new test.
23483
23484 2009-10-06  Eric Blake  <ebb9@byu.net>
23485
23486         doc: tweak *at function documentation
23487         * doc/posix-functions/faccessat.texi (faccessat): Mention
23488         known issue with replacement.
23489         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23490         * doc/posix-functions/linkat.texi (linkat): Likewise.
23491         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23492         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23493         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23494         * doc/posix-functions/renameat.texi (renameat): Likewise.
23495         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23496
23497         openat: fix GNU/Hurd bug in unlinkat
23498         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23499         broken.
23500         * doc/posix-functions/unlink.texi (unlink): Document this.
23501         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23502
23503         fdopendir: fix GNU/Hurd bug
23504         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23505         allowing non-directory fds.
23506         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23507         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23508         * modules/dirent (Makefile.am): Substitute it.
23509         * lib/dirent.in.h (fdopendir): Declare replacement.
23510         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23511         * tests/test-fdopendir.c (main): Test something other than
23512         /dev/null, since on Hurd that behaves like a directory.
23513
23514         test-symlink: port to GNU/Hurd
23515         * tests/test-symlink.h (test_symlink): Relax expected errno.
23516
23517         doc: tweak more cygwin information
23518         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23519         now compatible with glibc.
23520         * doc/posix-functions/getopt.texi (getopt): Likewise.
23521
23522         getopt-gnu: add another test
23523         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23524         guarantee behavior relied on by m4.
23525         * tests/test-getopt.c (main): Use it.
23526         * modules/getopt-posix-tests (Depends-on): Add setenv.
23527         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23528
23529         getopt: fix compilation on darwin
23530         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23531         include.
23532         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23533         Reported by Ludovic Courtès.
23534
23535 2009-10-06  Bruno Haible  <bruno@clisp.org>
23536
23537         * modules/size_max (Description): Discourage its use.
23538         Reported by Simon Josefsson.
23539
23540 2009-10-06  Jim Meyering  <meyering@redhat.com>
23541
23542         linkat: avoid compilation failure
23543         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23544
23545 2009-10-05  Eric Blake  <ebb9@byu.net>
23546
23547         linkat: support Linux 2.6.17
23548         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23549         linkat on Linux, but allow cache variable override.
23550         * lib/linkat.c (rpl_linkat): Define override.
23551         * modules/linkat (Depends-on): Add symlinkat.
23552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23553         * modules/unistd (Makefile.am): Substitute it.
23554         * lib/unistd.in.h (linkat): Declare replacement.
23555         Reported by Pádraig Brady.
23556
23557         quotearg: port test to systems with C.UTF-8 locale
23558         * tests/test-quotearg.c (struct result_strings): Add another
23559         member, differentiating between C.ASCII and C.UTF-8 handling.
23560         (compare_strings): Add parameter.
23561         (main): Adjust all callers.
23562
23563         getopt: avoid clash with FreeBSD _getopt_internal
23564         * lib/getopt.in.h (_getopt_internal): Override the name.
23565         * lib/getopt_int.h (includes): Pick up any overrides.
23566         Reported by Reuben Thomas.
23567
23568         hash: allow C89 compilation
23569         * lib/hash.c (check_tuning): Move declaration before statement.
23570         Reported by Reuben Thomas.
23571
23572 2009-10-05  Karl Berry  <karl@gnu.org>
23573
23574         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23575
23576 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23577             Bruno Haible  <bruno@clisp.org>
23578
23579         * lib/uname.c (uname): Use a table-driven algorithm to compute
23580         Windows NT versions.
23581
23582 2009-10-04  Bruno Haible  <bruno@clisp.org>
23583
23584         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23585         program_invocation_short_name.
23586         * modules/progname (configure.ac): Test for presence of
23587         program_invocation_short_name.
23588         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23589
23590 2009-10-04  Bruno Haible  <bruno@clisp.org>
23591
23592         * lib/progname.c (set_program_name): Fix comment.
23593         Reported by Jim Meyering.
23594
23595 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23596             Bruno Haible  <bruno@clisp.org>
23597
23598         * lib/uname.c: Include <string.h>.
23599         (uname): Do only one call to GetVersionEx in the common case.
23600
23601 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23602             Bruno Haible  <bruno@clisp.org>
23603
23604         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23605         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23606         (uname): Add support for Windows CE and various non-x86 CPU types.
23607
23608 2009-10-03  Bruno Haible  <bruno@clisp.org>
23609
23610         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23611         invocation to tests/configure.ac.
23612         Reported by Ian Beckwith <ianb@erislabs.net>.
23613
23614 2009-10-02  Eric Blake  <ebb9@byu.net>
23615
23616         fchdir: avoid compiler warning
23617         * lib/fchdir.c (canonicalize_file_name)
23618         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23619
23620         test-open: support mingw errno values
23621         * tests/test-open.h (test_open): Relax test.
23622         * tests/test-fopen.h (test_fopen): Likewise.
23623         * tests/test-openat-safer.c (main): Likewise.
23624
23625         open: fix opening directory on mingw
23626         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23627
23628         test-open: on GNU/Hurd, /dev/null is a directory
23629         * tests/test-fopen.h (main): Rename...
23630         (test_fopen): ...to this.  Use a guaranteed non-directory when
23631         confirming open behavior on trailing slash.
23632         * tests/test-openat-safer.c (main): Likewise.
23633         * tests/test-open.h (main): Likewise....
23634         (test_open): ...to this.
23635         * tests/test-fopen.c (main): Adjust caller.
23636         * tests/test-fopen-safer.c (main): Likewise.
23637         * tests/test-open.c (main): Likewise.
23638         * tests/test-fcntl-safer.c (main): Likewise.
23639         Reported by Samuel Thibault.
23640
23641         rename, fchdir: don't ignore chdir failure
23642         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23643         * lib/rename.c (rpl_rename) [W32]: Likewise.
23644         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23645         an empty destination directory if source cannot be renamed,
23646         although there is still possibility for failure.
23647         * doc/posix-functions/rename.texi (rename): Document the race.
23648         Reported by Jim Meyering.
23649
23650         maint: cleanup whitespace in recent commits
23651         * lib/rename.c (rpl_rename): Remove tabs.
23652         * tests/test-link.h (test_link): Likewise.
23653         * lib/fchdir.c (get_name): Likewise.
23654         Reported by Jim Meyering.
23655
23656 2009-10-02  Ben Pfaff  <blp@gnu.org>
23657
23658         relocatable-prog-wrapper: Add missing dependency on
23659         double-slash-root.
23660         * modules/relocatable-prog-wrapper: Add dependency.
23661         Reported by Ian Beckwith <ianb@erislabs.net>.
23662
23663 2009-10-02  Eric Blake  <ebb9@byu.net>
23664
23665         renameat: fix Solaris bugs
23666         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23667         needed fixing.
23668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23669         * modules/stdio (Makefile.am): Substitute it.
23670         * lib/stdio.in.h (renameat): Declare replacement.
23671         * lib/renameat.c (rpl_renameat): Implement fix.
23672
23673         renameat: new module
23674         * modules/renameat: New file.
23675         * lib/renameat.c (renameat): Likewise.
23676         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23678         * modules/stdio (Makefile.am): Substitute them.
23679         * lib/stdio.in.h (renameat): Declare it.
23680         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23681         * doc/posix-functions/renameat.texi (renameat): Likewise.
23682         * modules/renameat-tests: New test.
23683         * tests/test-renameat.c: Likewise.
23684
23685         rename: fix mingw bugs
23686         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23687         directory overwrite bugs.
23688
23689         rename: fix another cygwin 1.5 bug
23690         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23691         checks.
23692         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23693         unnecessary cygwin workarounds.  Also work around bug with moving
23694         full directory onto an empty one.
23695         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23696
23697         rename-dest-slash: merge into rename module
23698         * modules/rename-dest-slash (Status): Mark obsolete.
23699         (Depends-on): Add rename.
23700         (Files): Let rename do it all.
23701         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23702         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23703         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23704         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23705         * lib/rename.c (rpl_rename): Update comments.
23706
23707         rename: fix cygwin 1.5.x bugs
23708         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23709         * lib/rename.c (rpl_rename): Work around them.
23710         * modules/rename (Depends-on): Add same-inode.
23711
23712         rename: fix Solaris 10 bug
23713         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23714         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23715         was the only bug.
23716
23717         rename: fix Solaris 9 bug
23718         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23719         on non-directory.  Avoid calling exit.
23720         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23721         strdup.
23722         * modules/rename-tests (Depends-on): Drop lstat.
23723         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23724         (gl_PREREQ_RENAME): Delete unused macro.
23725
23726         rename-dest-slash: fix NetBSD bug
23727         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23728         links.
23729         * modules/rename-dest-slash (Depends-on): Add same-inode.
23730
23731         rename-tests: new test, exposes several platform bugs
23732         * modules/rename-tests: New file.
23733         * tests/test-rename.h: Likewise.
23734         * tests/test-rename.c: Likewise.
23735         * doc/posix-functions/rename.texi (rename): Improve documentation,
23736         including bugs that will eventually be fixed in gnulib.
23737
23738 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23739
23740         * lib/uname.c: Include <stdlib.h>
23741         (uname): Assume version info is available.
23742
23743 2009-10-02  Jim Meyering  <meyering@redhat.com>
23744
23745         gnu-web-doc-update: correct --help output
23746         * build-aux/gnu-web-doc-update: Make --help output relevant.
23747
23748         gnu-web-doc-update: add standard options
23749         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23750
23751         gnu-web-doc-update: New module.
23752         Use this script to automatically update the on-line web documentation
23753         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23754         * modules/gnu-web-doc-update: New file, from coreutils.
23755         * build-aux/gnu-web-doc-update: New script.
23756
23757 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23758
23759         link: LoadLibrary is not needed.
23760         * lib/link.c: Use GetModuleHandle.
23761
23762 2009-10-01  Eric Blake  <ebb9@byu.net>
23763
23764         getopt: bump serial number
23765         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23766         change.
23767
23768         tests: tighten link, rmdir, and remove tests
23769         * tests/test-link.h (includes): No need to use <config.h> here.
23770         Clean up if directory hard link was created, otherwise test for
23771         trailing '.'.
23772         * tests/test-linkat.c (main): Simplify.
23773         * tests/test-remove.c (main): Enhance test for trailing '.'.
23774         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23775
23776 2009-10-01  Jim Meyering  <meyering@redhat.com>
23777
23778         maint.mk: requiring "make major" was annoying, for a "minor" release.
23779         What is intended is "stable", to contrast with alpha and beta,
23780         so require "make stable", not "make major".
23781         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23782         (get_tool_versions): Likewise.
23783         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23784
23785 2009-09-30  Ben Pfaff  <blp@gnu.org>
23786
23787         Fix broken build of replacement for Windows tmpfile().
23788         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23789         flags argument added along with the 'mkostemp' module.
23790
23791 2009-09-28  Bruno Haible  <bruno@clisp.org>
23792
23793         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23794         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23795         to 'remove_elt'.
23796         (gl_list_remove): Update.
23797         * lib/gl_list.c (gl_list_remove): Update.
23798         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23799         to 'remove_elt'.
23800         (gl_oset_remove): Update.
23801         * lib/gl_list.c (gl_oset_remove): Update.
23802         Reported by Eric Blake.
23803
23804 2009-09-28  Eric Blake  <ebb9@byu.net>
23805
23806         doc: mention yet more cygwin 1.7 status
23807         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23808         cygwin.
23809         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23810         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23811
23812         argp: fix test failure
23813         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23814         that are not upper-case.  Pass correct range to tolower.
23815
23816 2009-09-27  Jim Meyering  <meyering@redhat.com>
23817
23818         test-yesno: work around sparc-dash here-document infelicity
23819         Without this change, the literal \177 byte in a here document
23820         would make dash 0.5.5.1-3 access uninitialized memory.
23821         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23822         Instead, use a marker, "@", and filter through tr to create the desired
23823         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23824
23825 2009-09-27  Bruno Haible  <bruno@clisp.org>
23826
23827         Disable untested support for new flavours of ACLs on AIX.
23828         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23829         progress.
23830         * lib/set-mode-acl.c (qset_acl): Likewise.
23831
23832 2008-12-07  Bruno Haible  <bruno@clisp.org>
23833
23834         Add support for new flavours of ACLs on AIX. (Untested.)
23835         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23836         (file_has_acl): Add support for newer AIX.
23837         * lib/set-mode-acl.c (qset_acl): Likewise.
23838         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23839         Rainer Tammer <tammer@tammer.net>.
23840
23841 2009-09-26  Eric Blake  <ebb9@byu.net>
23842
23843         argp: fix compilation of getopt
23844         * lib/getopt.in.h (includes): Use different guard than glibc.
23845         Reported by Sergey Poznyakoff.
23846
23847         doc: mention more cygwin 1.7 status
23848         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23849         bug.
23850         * doc/posix-functions/execl.texi (execl): Likewise.
23851         * doc/posix-functions/execle.texi (execle): Likewise.
23852         * doc/posix-functions/execlp.texi (execlp): Likewise.
23853         * doc/posix-functions/execv.texi (execv): Likewise.
23854         * doc/posix-functions/execve.texi (execve): Likewise.
23855         * doc/posix-functions/execvp.texi (execvp): Likewise.
23856         * doc/glibc-functions/canonicalize_file_name.texi
23857         (canonicalize_file_name): Cygwin 1.7 now provides this.
23858         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23859         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23860         on AT_SYMLINK_NOFOLLOW.
23861
23862 2009-09-24  Eric Blake  <ebb9@byu.net>
23863
23864         test-linkat: make test more robust
23865         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23866
23867         getopt: fix inclusion guards for cygwin
23868         * modules/getopt-posix (Depends-on): Add include-next.
23869         (Makefile.am): Substitute more items in replacement header.
23870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23871         <getopt.h>.
23872         * lib/getopt.in.h (includes): Use split inclusion guard, and
23873         prefer <getopt.h> over include <unistd.h> when one is present.
23874         (option): Also override name of 'struct option'.
23875
23876         same-inode: revert prior change; it is not yet ready
23877         * NEWS: Undo mention of this change.
23878         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23879         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23880         * lib/cycle-check.c (cycle_check): Likewise.
23881         * lib/same.c (same_name): Likewise.
23882         * lib/at-func2.c (at_func2): Likewise.
23883
23884 2009-09-23  Eric Blake  <ebb9@byu.net>
23885
23886         linkat: new module
23887         * modules/linkat: New file.
23888         * lib/at-func2.c (at_func2): Likewise.
23889         * lib/linkat.c (linkat): Likewise.
23890         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23891         * lib/openat-priv.h (at_func2): Add declaration.
23892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23893         * modules/unistd (Makefile.am): Substitute them.
23894         * lib/unistd.in.h (linkat): Declare it.
23895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23896         * doc/posix-functions/linkat.texi (linkat): Likewise.
23897         * doc/posix-functions/link.texi (link): Tweak wording.
23898         * tests/test-link.c (main): Move guts...
23899         * tests/test-link.h (test_link): ...into new file.
23900         * modules/linkat-tests: New test.
23901         * tests/test-linkat.c: Likewise.
23902         * modules/link-tests (Files): Ship new file.
23903         (Depends-on): Add stdbool.
23904
23905         dirname: add library-safe mdir_name
23906         * lib/dirname.h (mdir_name): New prototype.
23907         * lib/dirname.c (dir_name): Move guts...
23908         (mdir_name): ...to new function that avoids xalloc_die.
23909
23910         fchdir: another mingw fix
23911         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23912         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23913         on mingw (where it has not yet been ported), and make it optional
23914         elsewhere.
23915         (_gl_register_fd): Use it.
23916
23917         same-inode: make SAME_INODE tri-state, to port to mingw
23918         * NEWS: Mention this change.
23919         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23920         st_ino always being 0.
23921         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23922         * lib/cycle-check.c (cycle_check): Likewise.
23923         * lib/same.c (same_name): Likewise.
23924
23925         lstat: avoid mingw compilation error
23926         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23927         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23928         lstat ourselves.
23929         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23930         was adequate.
23931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23932         the checks for lstat.
23933         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23934
23935         link: fix test failure on Solaris 9
23936         * lib/link.c (rpl_link): Don't assume link will catch bogus
23937         trailing slash on source.
23938
23939         test-symlinkat: enhance test
23940         * tests/test-readlink.c (main): Move guts...
23941         * tests/test-readlink.h (test_readlink): ...into new file.
23942         * tests/test-symlink.c (main): Move guts...
23943         * tests/test-symlink.h (test_symlink): ...into new file.
23944         * tests/test-symlinkat.c (main): Use new files for further
23945         coverage.
23946         (do_symlink, do_readlink): New helper functions.
23947         * modules/symlink-tests (Files): Ship new file.
23948         (Depends-on): Add stdbool.
23949         * modules/readlink-tests (Files): Ship new file.
23950         (Depends-on): Add stdbool.
23951         * modules/symlinkat-tests (Files): Use new files.
23952
23953 2009-09-23  Eric Blake  <ebb9@byu.net>
23954
23955         readlink: document portability issue with symlink length
23956         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23957         systems have bogus st_size on symlinks, and mention the
23958         areadlink-with-size module.
23959         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23960         * doc/posix-functions/readlink.texi (readlink): Mention the
23961         areadlink module, and ERANGE failure.
23962         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23963         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23964
23965         readlink: fix Solaris 9 bug with trailing slash
23966         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23967         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23968         * doc/posix-functions/readlink.texi (readlink): Document this.
23969         * modules/readlink-tests: New test.
23970         * tests/test-readlink.c: Likewise.
23971
23972         readlink: fix cygwin 1.5.x bug with return type
23973         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23974         * lib/unistd.in.h (readlink): Use ssize_t.
23975         * lib/readlink.c (readlink): Likewise.
23976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23977         * modules/unistd (Makefile.am): Substitute it.
23978         * lib/unistd.in.h (readlink): Declare replacement.
23979         * doc/posix-functions/readlink.texi (readlink): Document this.
23980
23981         symlink: use throughout gnulib
23982         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23983         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23984         symlink is not used.
23985         * modules/symlinkat (Depends-on): Add symlink.
23986         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23987         * modules/canonicalize-tests (Depends-on): Likewise.
23988         * modules/lstat-tests (Depends-on): Likewise.
23989         * modules/openat-tests (Depends-on): Likewise.
23990         * modules/remove-tests (Depends-on): Likewise.
23991         * modules/rmdir-tests (Depends-on): Likewise.
23992         * modules/unlink-tests (Depends-on): Likewise.
23993         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23994         * tests/test-canonicalize.c (symlink): Likewise.
23995         * tests/test-fstatat.c (symlink): Likewise.
23996         * tests/test-lstat.c (symlink): Likewise.
23997         * tests/test-remove.c (symlink): Likewise.
23998         * tests/test-rmdir.c (symlink): Likewise.
23999         * tests/test-unlink.c (symlink): Likewise.
24000         * tests/test-unlinkat.c (symlink): Likewise.
24001
24002         symlink: new module, for Solaris 9 bug
24003         * modules/symlink: New file.
24004         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24005         * lib/symlink.c: Likewise.
24006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24007         * modules/unistd (Makefile.am): Substitute them.
24008         * lib/unistd.in.h (symlink): Declare replacement.
24009         * MODULES.html.sh (File system functions): Mention it.
24010         * doc/posix-functions/symlink.texi (symlink): Likewise.
24011         * modules/symlink-tests: New test.
24012         * tests/test-symlink.c: Likewise.
24013
24014 2009-09-23  Bruno Haible  <bruno@clisp.org>
24015
24016         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24017         when needed.
24018         Test case: gnulib-tool --import --with-tests atexit inttypes.
24019         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24020
24021 2009-09-23  Bruno Haible  <bruno@clisp.org>
24022
24023         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24024         subcommand, not in a subshell.
24025
24026 2009-09-22  Eric Blake  <ebb9@byu.net>
24027
24028         unistd: sort replacement declarations
24029         * lib/unistd.in.h: Sort declarations.
24030
24031         open, openat: minor optimization
24032         * lib/open.c (open): If open succeeded, len is non-zero.
24033         * lib/openat.c (rpl_openat): Likewise.
24034
24035         link-follow: ensure correct result
24036         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24037         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24038         distinguish between possible failures.
24039
24040 2009-09-21  Eric Blake  <ebb9@byu.net>
24041
24042         fts: avoid compiler warning
24043         * lib/fts.c (dirent_inode_sort_may_be_useful)
24044         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24045
24046 2009-09-19  Bruno Haible  <bruno@clisp.org>
24047
24048         * lib/progreloc.c (canonicalize_file_name): New declaration.
24049
24050 2009-09-19  Eric Blake  <ebb9@byu.net>
24051
24052         link: fix quoting
24053         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24054
24055         openat: fix openat bugs on Solaris 9
24056         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24057         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24058         * modules/openat (Depends-on): Add open.
24059         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24060         * modules/fcntl-h (Makefile.am): Substitute it.
24061         * lib/fcntl.in.h (openat): Declare replacement.
24062         * doc/posix-functions/openat.texi (openat): Document this.
24063
24064         openat: move fstatat and unlinkat into correct files
24065         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24066         compiled.
24067         * lib/openat.c (fstatat, unlinkat): Move...
24068         * lib/fstatat.c (fstatat): ...into correct files.
24069         * lib/unlinkat.c (unlinkat): Likewise.
24070
24071         openat: fix unlinkat bugs on Solaris 9
24072         * lib/unlinkat.c (unlinkat): New file.
24073         * modules/openat (Depends-on): Add unlink.
24074         (Files): Distribute it.
24075         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24076         trailing slash behavior is broken.
24077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24078         * modules/unistd (Makefile.am): Substitute it.
24079         * lib/unistd.in.h (unlinkat): Declare replacement.
24080         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24081
24082         openat: fix fstatat bugs on Solaris 9
24083         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24084         stat.
24085         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24086
24087         test-unlinkat: enhance test, to expose Solaris 9 bug
24088         * tests/test-unlink.c (main): Factor guts...
24089         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24090         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24091         * tests/test-rmdir.c (main): Adjust caller.
24092         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24093         (unlinker): New helper function.
24094         (rmdirat): Enhance check.
24095         * modules/rmdir-tests (Depends-on): Add stdbool.
24096         * modules/unlink-tests (Depends-on): Likewise.
24097         (Files): Add test-unlink.h.
24098         * modules/openat-tests (Files): Likewise.
24099         (Depends-on): Add unlinkdir.
24100
24101         test-fstatat: new test, to expose Solaris 9 bugs
24102         * tests/test-stat.c (main): Factor guts...
24103         * tests/test-stat.h (test_stat_func): ...into new file.
24104         * tests/test-lstat.c (main): Factor guts...
24105         * tests/test-lstat.h (test_lstat_func): ...into new file.
24106         * tests/test-fstatat.c: New file.
24107         * modules/stat-tests (Files): Add test-stat.h.
24108         * modules/lstat-tests (Files): Add test-lstat.h.
24109         (Depends-on): Add stdbool.
24110         * modules/openat-tests (Depends-on): Add pathmax.
24111         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24112         (Makefile.am): Run new test.
24113
24114         remove: new module, for mingw and Solaris 9 bugs
24115         * modules/remove: New file.
24116         * lib/remove.c: Likewise.
24117         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24119         * modules/stdio (Makefile.am): Use them.
24120         * lib/stdio.in.h (remove): Declare replacement.
24121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24122         * doc/posix-functions/remove.texi (remove): Likewise.
24123         * modules/remove-tests: New test.
24124         * tests/test-remove.c: Likewise.
24125
24126         unlink: new module, for Solaris 9 bug
24127         * modules/unlink: New file.
24128         * lib/unlink.c: Likewise.
24129         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24131         * modules/unistd (Makefile.am): Use them.
24132         * lib/unistd.in.h (stat): Declare replacement.
24133         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24134         * doc/posix-functions/unlink.texi (unlink): Likewise.
24135         * modules/unlink-tests: New test.
24136         * tests/test-unlink.c: Likewise.
24137
24138         lstat: fix Solaris 9 bug
24139         * lib/lstat.c (lstat): Also check for trailing slash on
24140         non-symlink, non-directories.  Use stat module to simplify logic.
24141         * doc/posix-functions/lstat.texi (lstat): Document it.
24142         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24143         (configure.ac): Check for symlink.
24144         * tests/test-lstat.c (main): Add more tests.
24145
24146         stat: add as dependency to other modules
24147         * modules/chown (Depends-on): Add stat.
24148         * modules/euidaccess (Depends-on): Likewise.
24149         * modules/fchdir (Depends-on): Likewise.
24150         * modules/isdir (Depends-on): Likewise.
24151         * modules/link (Depends-on): Likewise.
24152         * modules/lstat (Depends-on): Likewise.
24153         * modules/mkdir-p (Depends-on): Likewise.
24154         * modules/modechange (Depends-on): Likewise.
24155         * modules/open (Depends-on): Likewise.
24156         * modules/readlink (Depends-on): Likewise.
24157         * modules/same (Depends-on): Likewise.
24158
24159         stat: fix Solaris 9 bug
24160         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24161         slash.
24162         * lib/stat.c (rpl_stat): Work around it.
24163         * doc/posix-functions/stat.texi (stat): Update documentation.
24164
24165         stat: new module, for mingw bug
24166         * modules/stat: New file.
24167         * lib/stat.c: Likewise.
24168         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24170         * modules/sys_stat (Makefile.am): Use them.
24171         * lib/sys_stat.in.h (stat): Declare replacement.
24172         * lib/openat.c (fstatat): Deal with lstat and stat being function
24173         macros.
24174         * modules/openat (Depends-on): Add inline.
24175         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24176         * doc/posix-functions/stat.texi (stat): Likewise.
24177         * modules/stat-tests: New test.
24178         * tests/test-stat.c: Likewise.
24179
24180 2009-09-19  Jim Meyering  <meyering@redhat.com>
24181
24182         syntax-check: detect unnecessary inclusion of canonicalize.h
24183         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24184
24185 2009-09-19  Eric Blake  <ebb9@byu.net>
24186
24187         canonicalize-lgpl: adjust clients to use correct header
24188         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24189         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24190         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24191         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24192         * lib/progreloc.c (includes): Likewise.
24193
24194 2009-09-19  Jim Meyering  <meyering@redhat.com>
24195
24196         test-posixtm.c: correct a comment
24197         * tests/test-posixtm.c: Correct first-line comment.
24198         Spotted by Eric Blake.
24199
24200 2009-09-16  Jim Meyering  <meyering@redhat.com>
24201
24202         posixtm-tests: make T const-correct; add a test case
24203         * tests/test-posixtm.c (T): Declare const.
24204         Add a test for -(2^31+1).
24205         Remove useless can-succeed-only-in-2002 test.
24206
24207         posixtm-tests: adjust the sole failing test
24208         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24209         expected output matches what mktime now produces.  Cross-checked via
24210         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24211
24212         posixtm: move #ifdef'd tests into a new module
24213         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24214         * tests/test-posixtm.c: ... this new file.
24215         * modules/posixtm-tests: New module.
24216
24217 2009-09-19  Eric Blake  <ebb9@byu.net>
24218
24219         openat: simplify use of at-func.c
24220         * lib/at-func.c (includes): Include prerequisites here, to
24221         simplify requirements on client files.
24222         * lib/openat-priv.h: Add double-inclusion guard.
24223         * lib/faccessat.c (includes): Simplify.
24224         * lib/fchmodat.c (includes): Likewise.
24225         * lib/fchownat.c (includes): Likewise.
24226         * lib/mkdirat.c (includes): Likewise.
24227         * lib/mkfifoat.c (includes): Likewise.
24228         * lib/symlinkat.c (includes): Likewise.
24229
24230         openat: allow return of fd 0
24231         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24232         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24233         unistd-safer.
24234         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24235         <fcntl.h>; this module does not leak fds.
24236         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24237         must be allowed to return 0, leaving openat_safer to add the
24238         safety.
24239         (openat_permissive): Avoid writing to just-opened fd 2 if
24240         restoring the current directory fails.
24241         * lib/openat-die.c (openat_restore_fail): Add comment.
24242         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24243         (save_cwd): Guarantee safe fd, but without use of open_safer.
24244         * tests/test-openat.c: New test.
24245         * modules/openat-tests (Files, Makefile.am): Distribute and build
24246         new file.
24247
24248         relocatable-prog-wrapper: fix build
24249         * modules/relocatable-prog-wrapper (Files): Update name of
24250         canonicalize m4 file, broken on 2009-09-17.
24251         Reported by emad hajjar <aleppos@hotmail.com>.
24252
24253 2009-09-19  Bruno Haible  <bruno@clisp.org>
24254
24255         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24256         * lib/safe-alloc.c: Likewise.
24257         Reported by Ian Beckwith <ianb@erislabs.net>.
24258
24259 2009-09-18  Bruno Haible  <bruno@clisp.org>
24260
24261         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24262         Reported by <erobles@sensacd.com.mx>.
24263
24264 2009-09-17  Eric Blake  <ebb9@byu.net>
24265
24266         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24267         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24268         slashes when checking if last component is missing.
24269         * tests/test-canonicalize.c (main): Test this.
24270
24271         canonicalize, canonicalize-lgpl: honor // if distinct from /
24272         * modules/canonicalize (Files): Add double-slash-root.m4.
24273         * modules/canonicalize-lgpl (Files): Likewise.
24274         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24275         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24276         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24277         fallback definition.
24278         (canonicalize_filename_mode): Use it to protect //.
24279         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24280         (__realpath): Likewise.
24281         * tests/test-canonicalize.c (main): Test this.
24282         * tests/test-canonicalize-lgpl.c (main): Likewise.
24283         * modules/canonicalize-tests (Depends-on): Add same-inode.
24284         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24285
24286         canonicalize-lgpl: fix glibc bug with trailing slash
24287         * m4/canonicalize-lgpl.m4: Move contents...
24288         * m4/canonicalize.m4: ...here.
24289         (gl_CANONICALIZE_LGPL): Factor realpath check...
24290         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24291         glibc 2.3.5 bug, fixed 2005-04-27.
24292         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24293         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24294         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24295         * modules/canonicalize-lgpl (Files): Manage file rename.
24296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24297         * modules/stdlib (Makefile.am): Substitute witness.
24298         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24299         is needed.
24300         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24301         replacement is required.
24302         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24303         * doc/glibc-functions/canonicalize_file_name.texi
24304         (canonicalize_file_name): Document this.
24305         * doc/posix-functions/realpath.texi (realpath): Likewise.
24306
24307         canonicalize-lgpl: reject non-directory with trailing slash
24308         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24309         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24310         catches failures in glibc 2.3.5.
24311         * tests/test-canonicalize.c (main): Likewise.
24312
24313         canonicalize-lgpl: use native realpath if it works
24314         * lib/canonicalize-lgpl.c (realpath): Guard with
24315         FUNC_REALPATH_WORKS.
24316         * lib/stdlib.in.h (realpath): Make declaration optional based on
24317         HAVE_REALPATH.
24318         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24319         native realpath works.
24320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24321         * modules/stdlib (Makefile.am): Substitute witness.
24322
24323         canonicalize, canonicalize-lgpl: use <stdlib.h>
24324         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24325         (Include): Mention <stdlib.h>.
24326         (configure.ac): Mention functions we provide.
24327         * modules/canonicalize (configure.ac): Likewise.
24328         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24329         realpath if canonicalize_file_name is missing.
24330         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24331         * modules/stdlib (Makefile.am): Substitute witnesses.
24332         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24333         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24334         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24335         * NEWS: Document this.
24336         * doc/glibc-functions/canonicalize_file_name.texi
24337         (canonicalize_file_name): Likewise.
24338         * doc/posix-functions/realpath.texi (realpath): Likewise.
24339         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24340
24341         test-canonicalize: consolidate into single C program
24342         * tests/test-canonicalize.sh: Delete; move setup into...
24343         * tests/test-canonicalize.c (main): ...the program, making it
24344         easier to run in debugger.  Add some tests.
24345         * modules/canonicalize-tests (Files): Remove unused file.
24346         (Depends-on): Add progname.
24347         (configure.ac, Makefile.am): Simplify.
24348
24349         test-canonicalize-lgpl: consolidate into single C program
24350         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24351         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24352         easier to run in debugger.  Add some tests.
24353         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24354         (configure.ac, Makefile.am): Simplify.
24355
24356         canonicalize: avoid resolvepath
24357         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24358         unnecessary checks.
24359         * lib/canonicalize.c (includes): Simplify.
24360         (canonicalize_file_name): Drop resolvepath implementation.
24361         * modules/canonicalize (Depends-on): Drop filenamecat.
24362
24363         canonicalize: don't lose errno
24364         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24365         over calls to free.
24366
24367         canonicalize: simplify errno handling
24368         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24369         assignment.
24370
24371         canonicalize, canonicalize-lgpl: update module dependencies
24372         * modules/canonicalize (Depends-on): Add extensions, lstat,
24373         pathmax, stdlib.
24374         (Files): Drop pathmax.h.
24375         (configure.ac): Adjust macro name.
24376         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24377         lstat, stdlib, sys_stat.
24378         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24379         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24380         extensions.
24381         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24382         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24383         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24384         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24385         declaration, if available.
24386         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24387         we can rely on the readlink module.
24388         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24389         (includes): Use <unistd.h> unconditionally.
24390
24391 2009-09-17  Eric Blake  <ebb9@byu.net>
24392
24393         maint: make Include sections of modules consistent
24394         * modules/alloca: Use only header name; no need to list #include.
24395         * modules/alloca-opt: Likewise.
24396         * modules/arpa_inet: Likewise.
24397         * modules/canon-host: Likewise.
24398         * modules/configmake: Likewise.
24399         * modules/dirent: Likewise.
24400         * modules/eealloc: Likewise.
24401         * modules/environ: Likewise.
24402         * modules/fchdir: Likewise.
24403         * modules/fcntl: Likewise.
24404         * modules/fcntl-h: Likewise.
24405         * modules/gethrxtime: Likewise.
24406         * modules/gettime: Likewise.
24407         * modules/ignore-value: Likewise.
24408         * modules/inet_ntop: Likewise.
24409         * modules/inet_pton: Likewise.
24410         * modules/inttypes: Likewise.
24411         * modules/isnand-nolibm: Likewise.
24412         * modules/isnanf-nolibm: Likewise.
24413         * modules/mbchar: Likewise.
24414         * modules/mbfile: Likewise.
24415         * modules/mbiter: Likewise.
24416         * modules/mbuiter: Likewise.
24417         * modules/netdb: Likewise.
24418         * modules/netinet_in: Likewise.
24419         * modules/nproc: Likewise.
24420         * modules/pagealign_alloc: Likewise.
24421         * modules/poll: Likewise.
24422         * modules/printf-frexp: Likewise.
24423         * modules/pthread: Likewise.
24424         * modules/putenv: Likewise.
24425         * modules/random_r: Likewise.
24426         * modules/relocatable-prog: Likewise.
24427         * modules/search: Likewise.
24428         * modules/select: Likewise.
24429         * modules/selinux-h: Likewise.
24430         * modules/settime: Likewise.
24431         * modules/signal: Likewise.
24432         * modules/size_max: Likewise.
24433         * modules/socklen: Likewise.
24434         * modules/ssize_t: Likewise.
24435         * modules/stdarg: Likewise.
24436         * modules/stdbool: Likewise.
24437         * modules/stddef: Likewise.
24438         * modules/stdint: Likewise.
24439         * modules/stdio: Likewise.
24440         * modules/stdlib: Likewise.
24441         * modules/string: Likewise.
24442         * modules/strings: Likewise.
24443         * modules/sys_file: Likewise.
24444         * modules/sys_ioctl: Likewise.
24445         * modules/sys_select: Likewise.
24446         * modules/sys_socket: Likewise.
24447         * modules/sys_stat: Likewise.
24448         * modules/sys_time: Likewise.
24449         * modules/sys_times: Likewise.
24450         * modules/sys_utsname: Likewise.
24451         * modules/sys_wait: Likewise.
24452         * modules/sysexits: Likewise.
24453         * modules/time: Likewise.
24454         * modules/times: Likewise.
24455         * modules/tmpfile: Likewise.
24456         * modules/trim: Likewise.
24457         * modules/unistd: Likewise.
24458         * modules/wchar: Likewise.
24459         * modules/wctype: Likewise.
24460
24461 2009-09-17  Bruno Haible  <bruno@clisp.org>
24462
24463         Make getdate.y compile on QNX and NetBSD 5 / i386.
24464         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24465         TIME_T_FITS_IN_LONG_INT.
24466         * lib/getdate.y (long_time_t): New type.
24467         (relative_time): Change type of 'seconds' field to long_time_t.
24468         (get_date): Update types of local variables. Check against overflow
24469         during conversion from long_time_t to time_t.
24470         Reported by Matt Kraai <kraai@ftbfs.org>
24471         and Hasso Tepper <hasso@netbsd.org>.
24472
24473 2009-09-17  Bruno Haible  <bruno@clisp.org>
24474
24475         * modules/COPYING: Update copyright years.
24476         * modules/README: Likeiwse.
24477         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24478         Reported by Ian Beckwith <ianb@erislabs.net>.
24479
24480 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24481
24482         * users.txt: Update references for gnuit package.
24483
24484 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24485
24486         * m4/getdelim.m4: Fix typo in copyright line.
24487
24488 2009-09-17  Bruno Haible  <bruno@clisp.org>
24489
24490         * lib/atoll.c: Use the standard header with GPL copyright.
24491         * lib/argz.in.h: Likewise.
24492         * lib/glob.c: Likewise.
24493         * lib/glob-libc.h: Likewise.
24494         * lib/random_r.c: Likewise.
24495         * lib/siglist.h: Likewise.
24496         * lib/strsignal.c: Likewise.
24497         Reported by Ian Beckwith <ianb@erislabs.net>.
24498
24499 2009-09-17  Eric Blake  <ebb9@byu.net>
24500
24501         rmdir: ensure correct dependency order
24502         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24503
24504 2009-09-17  Bruno Haible  <bruno@clisp.org>
24505
24506         Disable assertion that fails on NetBSD 5 / i386.
24507         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24508         Reported by Sam Steingold <sds@gnu.org>
24509         and Hasso Tepper <hasso@netbsd.org>.
24510
24511 2009-09-16  Eric Blake  <ebb9@byu.net>
24512
24513         unlinkdir: port to mingw
24514         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24515         on which no one can unlink a directory.
24516
24517         stdlib: sort witness names
24518         * modules/stdlib (Makefile.am): Sort replacements.
24519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24520         * lib/stdlib.in.h: Likewise.
24521
24522         parse-duration-tests: avoid link failure
24523         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24524         LIBINTL.
24525         Reported by Tom G. Christensen.
24526
24527         openat-tests: ensure unlinkat behaves like rmdir
24528         * tests/test-rmdir.c (main): Factor guts...
24529         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24530         * modules/rmdir-tests (Files): Ship new file.
24531         * modules/openat-tests: New test.
24532         * tests/test-unlinkat.c: Likewise.
24533
24534         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24535         * modules/rmdir-errno (Status, Notice): Now obsolete.
24536
24537         rmdir: work around cygwin 1.5.x and mingw bugs
24538         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24539         * lib/rmdir.c (rmdir): Work around it.
24540         * modules/rmdir (Status, Notice): No longer obsolete.
24541         (Files): Add dos.m4.
24542         (Depends-on): Add unistd.
24543         (configure.ac): Set witnesses.
24544         (License): Relax to LGPLv2+.
24545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24546         * modules/unistd (Makefile.am): Substitute witnesses.
24547         * lib/unistd.in.h (rmdir): Declare replacement.
24548         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24549         * modules/rmdir-tests: New tests.
24550         * tests/test-rmdir.c: Likewise.
24551
24552 2009-09-15  Eric Blake  <ebb9@byu.net>
24553
24554         fchdir: improve use of replacement functions
24555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24558         REPLACE_CLOSEDIR.
24559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24560         * modules/sys_stat (Makefile.am): Substitute correct witness.
24561         * modules/dirent (Makefile.am): Likewise.
24562         * modules/unistd (Makefile.am): Likewise.
24563         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24564         * lib/unistd.in.h (dup): Likewise.
24565         * lib/sys_stat.in.h (fstat): Likewise.
24566
24567         maint: ignore gnulib-tool temp files
24568         * .gitignore: Ignore files created during gnulib-tool --test.
24569
24570 2009-09-13  Jim Meyering  <meyering@redhat.com>
24571
24572         posixtm: don't reject a time that specify "60" as the number of seconds
24573         * lib/posixtm.c (posixtime): The code to reject invalid dates
24574         would also reject a time specified with the .60 suffix.
24575         But POSIX allows that, in order to accommodate leap seconds.
24576         So don't reject it.
24577         (main): Adjust tests accordingly.
24578         * modules/posixtm (Depends-on): Add stpcpy.
24579
24580 2009-09-11  Jim Meyering  <meyering@redhat.com>
24581
24582         announce-gen: include [$release_type] in emitted Subject:
24583         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24584         e.g., [stable] in the emitted Subject: line.
24585
24586 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24587
24588         Remove obsolete macros from several modules.
24589         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24590         obsolete Autoconf macros with their modern counterparts.
24591         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24592         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24594         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24595         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24596         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24598         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24599         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24600         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24601         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24603         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24604         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24605         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24606         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24607         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24608         * m4/time_r.m4 (gl_TIME_R): Likewise.
24609         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24610         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24611         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24612
24613         Fix copyright header in build-aux scripts.
24614         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24615         recommendation.
24616         * build-aux/ncftpput-ftp: Likewise.
24617         * build-aux/update-copyright: Likewise.
24618
24619 2009-09-09  Eric Blake  <ebb9@byu.net>
24620
24621         test-link: allow Linux choice of errno
24622         * tests/test-link.c (main): Relax test for alternate error.
24623
24624         strndup: fix improper m4 caching
24625         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24626         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24627         (gl_PREREQ_STRNDUP): Delete.
24628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24629         * modules/string (Makefile.am): Substitute it.
24630         * lib/string.in.h (strndup): Modernize prototype.
24631
24632         getcwd: port to mingw
24633         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24634         different from the POSIX assumptions made throughout the getcwd
24635         module; fortunately, the mingw getcwd does not need replacement.
24636         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24637         * modules/getcwd-tests: New test.
24638         * tests/test-getcwd.c: Likewise.
24639
24640         link: fix platform bugs
24641         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24642         * lib/link.c (link): Work around them.  Fix related mingw bug.
24643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24644         * modules/unistd (Makefile.am): Substitute it.
24645         * lib/unistd.in.h (link): Declare replacement.
24646         * doc/posix-functions/link.texi (link): Document this.
24647         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24648
24649         test-link: consolidate into single C program, test more cases
24650         * tests/test-link.sh: Delete.
24651         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24652         at least Cygwin and Solaris.
24653         * modules/link-tests (Files): Remove unused file.
24654         (Depends-on): Add errno, sys_stat.
24655         (Makefile.am): Simplify.
24656
24657 2009-09-08  Bruno Haible  <bruno@clisp.org>
24658
24659         Work around towlower, towupper bug on mingw.
24660         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24661         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24662         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24663         * doc/posix-functions/towupper.texi: Likewise.
24664         Reported by Eric Blake.
24665
24666 2009-09-08  Jim Meyering  <meyering@redhat.com>
24667
24668         build: don't try to run autoheader if we don't use it
24669         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24670         is not used in configure.ac.
24671
24672 2009-09-08  Eric Blake  <ebb9@byu.net>
24673
24674         euidaccess: fix compilation error
24675         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24676
24677         rawmemchr: relax license
24678         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24679         okay.
24680         Reported by Jim Meyering.
24681
24682         mkfifoat: new module
24683         * modules/mkfifoat: New file.
24684         * lib/mkfifoat.c: Likewise.
24685         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24687         * modules/sys_stat (Makefile.am): Use them.
24688         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24689         * MODULES.html.sh (File system functions): Mention module.
24690         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24691         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24692         * modules/mkfifoat-tests: New test.
24693         * tests/test-mkfifoat.c: Likewise.
24694
24695         strchrnul: relax license
24696         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24697         okay.
24698         Reported by Jim Meyering.
24699
24700 2009-09-08  Eric Blake  <ebb9@byu.net>
24701
24702         fstatat: fix compilation on Solaris
24703         * lib/fstatat.c (includes): Add fcntl.h.
24704         Reported by Pádraig Brady.
24705
24706 2009-09-07  Eric Blake  <ebb9@byu.net>
24707
24708         rename: modernize replacement
24709         * modules/rename (Depends-on): Add stdio.
24710         (configure.ac): Declare witness.
24711         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24712         stdio take care of replacement.
24713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24714         * modules/stdio (Makefile.am): Substitute them.
24715         * lib/stdio.in.h (rename): Declare replacement.
24716         * lib/rename.c (includes): Allow cross-compilation to non-windows
24717         machines.
24718         * doc/posix-functions/rename.texi (rename): Improve
24719         documentation.
24720
24721         stdio: sort witness names
24722         * modules/stdio (Makefile.am): Sort replacements.
24723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24724         * lib/stdio.in.h: Likewise.
24725
24726         getcwd: minor cleanups
24727         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24728         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24729
24730         openat: provide more convenience names
24731         * modules/faccessat (configure.ac): Add C witness.
24732         * lib/unistd.in.h (readlinkat): Fix typo.
24733         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24734         convenience wrappers.
24735         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24736         wrappers in syntax checks.
24737
24738 2009-09-06  Eric Blake  <ebb9@byu.net>
24739
24740         doc: fix comments in recent patches
24741         * lib/faccessat.c: Mention correct function.
24742         * lib/fchmodat.c: Likewise.
24743         * lib/fchownat.c: Likewise.
24744         * lib/symlinkat.c: Likewise.
24745         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24746         constants.
24747
24748         faccessat, symlinkat: continue cleanup of previous patch
24749         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24750         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24751         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24753         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24754         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24755         set.
24756
24757 2009-09-06  Bruno Haible  <bruno@clisp.org>
24758
24759         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24760         (fstatat): Declare if GNULIB_FSTATAT is set.
24761         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24762         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24763         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24764         * modules/fcntl-h (Files): Remove m4/openat.m4.
24765         * modules/sys_stat (Files): Remove m4/openat.m4.
24766         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24767         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24768         * modules/unistd (Files): Remove m4/openat.m4.
24769         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24770         GNULIB_OPENAT.
24771         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24772         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24774         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24775         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24776         gl_OPENAT_DEFAULTS.
24777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24778         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24779         Don't require gl_OPENAT_DEFAULTS.
24780         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24781         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24782         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24783         (gl_OPENAT_DEFAULTS): Remove macro.
24784
24785 2009-09-06  Bruno Haible  <bruno@clisp.org>
24786
24787         * modules/openat (configure.ac): Remove unneeded witness.
24788
24789 2009-09-06  Bruno Haible  <bruno@clisp.org>
24790
24791         Set errno to ENOSYS when a function is entirely unsupported.
24792         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24793         EOPNOTSUPP.
24794         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24795         * modules/chown (Depends-on): Remove errno.
24796
24797 2009-09-06  Bruno Haible  <bruno@clisp.org>
24798
24799         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24800
24801 2009-09-06  Bruno Haible  <bruno@clisp.org>
24802
24803         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24804
24805 2009-09-06  Ben Pfaff  <blp@gnu.org>
24806             Bruno Haible  <bruno@clisp.org>
24807
24808         Work around a glibc bug in strtok_r.
24809         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24810         Undefine if UNDEFINE_STRTOK_R is set.
24811         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24813         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24814         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24815         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24816         UNDEFINE_STRTOK_R.
24817         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24818
24819 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24820
24821         exclude: minor fix
24822         * lib/exclude.c: Include wctype.h
24823
24824 2009-09-06  Akim Demaille  <demaille@gostai.com>
24825
24826         bootstrap: improve error message
24827         * build-aux/bootstrap (find_tool): Upon failure, report the list
24828         of candidates.
24829         Honor the initial value of the envvar.
24830
24831 2009-09-05  Eric Blake  <ebb9@byu.net>
24832
24833         symlinkat: new module
24834         * modules/symlinkat: New file.
24835         * lib/symlinkat.c: Likewise.
24836         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24838         * modules/unistd (Makefile.am): Use them.
24839         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24840         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24841         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24842         * MODULES.html.sh (File system functions): Mention module.
24843         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24844         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24845         * modules/symlinkat-tests: New test.
24846         * tests/test-symlinkat.c: Likewise.
24847
24848         test-openat-safer: add more checks
24849         * tests/test-openat-safer.c (main): Check more code paths.
24850
24851 2009-09-05  Jim Meyering  <meyering@redhat.com>
24852
24853         syntax-check: detect unnecessary inclusion of openat.h
24854         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24855
24856 2009-09-05  Bruno Haible  <bruno@clisp.org>
24857
24858         Support towlower, towupper.
24859         * doc/posix-functions/towlower.texi: Mention module wctype.
24860         * doc/posix-functions/towupper.texi: Likewise.
24861         * lib/wctype.in.h (towlower, towupper): New functions.
24862         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24863         (ASSERT): New macro.
24864         (e): New variable.
24865         (main): Test also towlower, towupper. Test WEOF argument.
24866         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24867
24868 2009-09-05  Bruno Haible  <bruno@clisp.org>
24869
24870         Fix conversion behaviour when the input is invalid.
24871         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24872         mark occurring in first pass of indirect conversion.
24873         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24874         input.
24875         Found by clang's static analyzer.
24876
24877 2009-09-05  Bruno Haible  <bruno@clisp.org>
24878
24879         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24880         where direct conversion is possible.
24881
24882 2009-09-04  Eric Blake  <ebb9@byu.net>
24883
24884         openat: fail with ENOENT on empty name
24885         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24886         buffer.
24887
24888         link-follow: fix logic bug in prior patch
24889         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24890         reversed sense of yes and no in prior patch.  Avoid confusing
24891         compilation failure with desired semantics.
24892
24893         link-follow: accomodate mingw and cross-compilation
24894         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24895         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24896         cross-compilation results to -1, to make linkat easier to
24897         implement when cross-compiling.  Trivially support mingw.
24898         * modules/link-follow (configure.ac): Call new name.
24899         * NEWS: Mention this.
24900
24901 2009-09-03  Eric Blake  <ebb9@byu.net>
24902
24903         faccessat: compile replacement
24904         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24905         needed.
24906
24907         fts: fix compilation error
24908         * lib/fts.c (includes): Re-add "openat.h", for
24909         openat_needs_fchdir.
24910
24911         faccessat: new module
24912         * modules/faccessat: New file.
24913         * lib/faccessat.c: Likewise.
24914         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24916         * modules/unistd (Makefile.am): Use it.
24917         * lib/unistd.in.h (faccessat): Declare it.
24918         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24919         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24920         * MODULES.html.sh (File system functions): Mention it.
24921         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24922         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24923
24924         euidaccess: prefer POSIX over non-standard implementation
24925         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24926         * lib/euidaccess.c (euidaccess): Use it if available.
24927
24928         openat: make template easier to use
24929         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24930         AT_FUNC_F2 to be undefined.
24931         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24932         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24933         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24934         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24935         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24936         Likewise.
24937         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24938         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24939         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24940         Likewise.
24941
24942         openat: declare in POSIX headers
24943         * NEWS: Mention this.
24944         * modules/openat (configure.ac): Declare witnesses.
24945         (Depends-on): Add fcntl-h, sys_stat, unistd.
24946         (Include): Mention correct headers.
24947         * modules/fcntl-h (Depends-on): Add link-warning.
24948         (Files): Add openat.m4.
24949         (Makefile.am): Substitute witnesses.
24950         * modules/sys_stat (Files, Makefile.am): Likewise.
24951         * modules/unistd (Files, Makefile.am): Likewise.
24952         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24953         (gl_OPENAT_DEFAULTS): New macro.
24954         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24956         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24957         (SYS_STAT_H): Remove unused variable.
24958         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24959         * lib/fcntl--.h (includes): Remove unneeded header.
24960         * lib/openat-safer.c (includes): Likewise.
24961         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24962         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24963         appropriate headers.
24964         (__OPENAT_PREFIX): Delete.
24965         * lib/fcntl.in.h (openat): Provide declaration.
24966         (AT_FDCWD): Fix Solaris bug.
24967         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24968         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24969         * lib/fchmodat.c (includes):  Adjust to find declaration.
24970         * lib/fchownat.c (includes): Likewise.
24971         * lib/mkdirat.c (includes): Likewise.
24972         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24973         still visible.
24974
24975 2009-09-02  Eric Blake  <ebb9@byu.net>
24976
24977         errno: use consistently
24978         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24979         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24980         * lib/canonicalize.c (ELOOP): Likewise.
24981         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24982         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24983         * lib/lchown.c (EOPNOTSUPP): Likewise.
24984         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24985         * lib/savewd.c (ESTALE): Likewise.
24986         * lib/settime.c (ENOSYS): Likewise.
24987         * lib/utimens.c (ENOSYS): Likewise.
24988         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24989         * lib/chdir-safer.c (ELOOP): Likewise.
24990         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24991         * modules/c-stack (Depends-on): Add errno.
24992         * modules/canonicalize (Depends-on): Likewise.
24993         * modules/chdir-safer (Depends-on): Likewise.
24994         * modules/fdopendir (Depends-on): Likewise.
24995         * modules/inet_ntop (Depends-on): Likewise.
24996         * modules/inet_pton (Depends-on): Likewise.
24997         * modules/lchown (Depends-on): Likewise.
24998         * modules/openat (Depends-on): Likewise.
24999         * modules/savewd (Depends-on): Likewise.
25000         * modules/settime (Depends-on): Likewise.
25001         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25002
25003         fts: avoid leaking fds
25004         * modules/fts (Depends-on): Add cloexec.
25005         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25006         flag.
25007
25008         fts: make directory fds more robust
25009         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25010         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25011
25012         backupfile, chdir-long, fts, savedir: make safer
25013         * lib/backupfile.c (includes): Use "dirent--.h", since
25014         numbered_backup can write to stderr during readdir.
25015         * lib/savedir.c (includes): Likewise.
25016         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25017         emulation can write to stderr on failure.
25018         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25019         * lib/getcwd.c: Document why opendir_safer is unused.
25020         * lib/glob.c: Likewise.
25021         * lib/scandir.c: Likewise.
25022         * lib/openat-proc.c: Likewise, for open_safer.
25023         * modules/backupfile (Depends-on): Add dirent-safer.
25024         * modules/savedir (Depends-on): Likewise.
25025         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25026         * modules/chdir-long (Depends-on): Add openat-safer.
25027
25028         openat-safer: new module
25029         * modules/openat-safer: New file.
25030         * lib/openat-safer.c: Likewise.
25031         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25032         * lib/fcntl-safer.h (openat_safer): Declare.
25033         * lib/fcntl--.h (openat): Override.
25034         * MODULES.html.sh (File descriptor based I/O): Mention it.
25035         * lib/openat.h: Add double-inclusion guards.
25036         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25037         "fcntl--.h", so we can implement openat.
25038         * modules/openat-safer-tests: New test.
25039         * tests/test-openat-safer.c: New file.
25040
25041         dirent-safer: new module
25042         * modules/dirent-safer: New file.
25043         * lib/dirent--.h: Likewise.
25044         * lib/dirent-safer.h: Likewise.
25045         * lib/opendir-safer.c: Likewise.
25046         * m4/dirent-safer.m4: Likewise.
25047         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25048         * modules/dirent-safer-tests: New test.
25049         * tests/test-dirent-safer.c: New file.
25050         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25051
25052         fdopendir: optimize on mingw
25053         * lib/unistd.in.h (_gl_directory_name): New prototype.
25054         * lib/fchdir.c (_gl_directory_name): Implement it.
25055         (fchdir): Use it to simplify implementation.
25056         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25057         fchdir, when available, to avoid calling [f]chdir().
25058
25059         fdopendir: split into its own module
25060         * lib/openat.c (fdopendir): Move...
25061         * lib/fdopendir.c: ...into new file.
25062         * modules/fdopendir: New module.
25063         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25064         * modules/openat (Depends-on): Add fdopendir.
25065         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25066         fdopendir here.
25067         * modules/savedir (Depends-on): Only need fdopendir, not full
25068         openat.
25069         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25070         * lib/openat.h (fdopendir): Drop prototype.
25071         * lib/dirent.in.h (fdopendir): Provide prototype.
25072         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25073         * modules/dirent (Makefile.am): Substitute them.
25074         * MODULES.html.sh (File system functions): Mention it.
25075         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25076         * modules/fdopendir-tests: New file.
25077         * tests/test-fdopendir.c: Likewise.
25078
25079         fchdir: use more consistent macro convention
25080         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25081         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25082         REPLACE_FCHDIR, rather than relying on config.h macros.
25083         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25084         inside a single make-time REPLACE_FCHDIR block, rather than using
25085         the config.h FCHDIR_REPLACEMENT.
25086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25087         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25088         Manage fstat replacement.
25089         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25090         REPLACE_FCHDIR.
25091         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25092         (Makefile.am): Substitute REPLACE_FCHDIR.
25093         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25094         FCHDIR_REPLACEMENT.
25095         * lib/dup-safer.c (dup_safer): Likewise.
25096         * lib/dup2.c (rpl_dup2): Likewise.
25097         * lib/dup3.c (rpl_dup3): Likewise.
25098         * lib/open.c (rpl_open): Likewise.
25099
25100         fchdir: simplify error handling, and support dup3
25101         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25102         stdbool, malloc-posix, realloc-posix.
25103         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25104         (ensure_dirs_slot): Return false on allocation failure.
25105         (rpl_dup2): Delete.
25106         (_gl_register_dup): New function.
25107         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25108         (_gl_register_fd): Close fd on allocation failure.
25109         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25110         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25111         prototype.
25112         (rpl_dup2_fchdir): Delete prototype.
25113         * lib/open.c (open): Update caller.
25114         * lib/dup2.c (dup2): Track fchdir metadata.
25115         * lib/dup3.c (dup3): Likewise.
25116         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25118
25119 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25120
25121         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25122         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25123         don't pass arguments to AC_OUTPUT.
25124
25125 2009-09-02  Bruno Haible  <bruno@clisp.org>
25126
25127         * modules/mkdtemp (License): Relicense under LGPLv2+.
25128         Reported by Paolo Bonzini.
25129
25130 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25131
25132         Replace uses of obsolete autoconf macros in Jim's modules.
25133         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25134         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25135         can evoke a warning from autoconf when run with -Wobsolete
25136         enabled.  They were declared obsolete for good reasons (see
25137         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25138         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25139         should not continue using the deprecated macros.
25140         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25141         obsolete Autoconf macros with modern counterparts.
25142         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25143         * m4/dos.m4 (gl_AC_DOS): Likewise.
25144         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25146         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25147         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25148         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25149         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25150         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25151         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25152         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25153         Likewise.
25154         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25155         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25156         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25157         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25158         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25159         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25160
25161 2009-09-01  Eric Blake  <ebb9@byu.net>
25162
25163         fchdir: fix off-by-one bug in previous patch
25164         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25165         (_gl_unregister_fd): Delete useless if.
25166
25167 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25168
25169         maint.mk: sort the list of syntax-check rules
25170         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25171         easier to get a sense of progress when the rules are run sequentially
25172         and take a long time.
25173
25174 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25175
25176         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25177         * modules/netinet_in: Likewise.
25178         * modules/sys_file: Likewise.
25179         * modules/sys_ioctl: Likewise.
25180         * modules/sys_select: Likewise.
25181         * modules/sys_socket: Likewise.
25182         * modules/sys_stat: Likewise.
25183         * modules/sys_time: Likewise.
25184         * modules/sys_times: Likewise.
25185         * modules/sys_utsname: Likewise.
25186         * modules/sys_wait: Likewise.
25187
25188 2009-09-01  Jim Meyering  <meyering@redhat.com>
25189
25190         fts: help ensure that return values are not ignored
25191         * lib/fts_.h (__GNUC_PREREQ): Define.
25192         (__attribute_warn_unused_result__): Define.
25193         (fts_children, fts_close, fts_open, fts_read): Declare with
25194         __attribute_warn_unused_result__.
25195
25196         fts: fts_close now fails also when closing a dir file descriptor fails
25197         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25198         and propagate to caller, along with errno.
25199
25200         announce-gen: correct formatting in --help output
25201         * build-aux/announce-gen (usage): Move the one-line description in
25202         --help output "up", to where it belongs, just after Usage:.
25203
25204 2009-08-31  Eric Blake  <ebb9@byu.net>
25205
25206         fchdir: port to mingw
25207         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25208         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25209         opened, then use a substitute.
25210         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25211         replacement.
25212         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25213         (_gl_register_fd): No need to check stat if open already filters
25214         all directories.
25215         (fchdir): Fix error condition to match POSIX.
25216         * modules/fchdir (Depends-on): Add sys_stat.
25217         * doc/posix-functions/open.texi (open): Document the limitation.
25218         * modules/fchdir-tests: New file.
25219         * tests/test-fchdir.c: Likewise.
25220
25221         canonicalize: allow cross-testing from cygwin to mingw
25222         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25223         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25224         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25225         Likewise.
25226         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25227         target does not support symlinks.
25228         * tests/test-canonicalize-lgpl.sh: Likewise.
25229
25230         chown: avoid compilation warning on mingw
25231         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25232         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25233         mingw.
25234         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25235         * modules/chown (Depends-on): Add errno.
25236
25237 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25238
25239         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25240         command.
25241
25242 2009-08-31  Jim Meyering  <meyering@redhat.com>
25243
25244         canonicalize: remove useless initialization
25245         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25246         initialization of local, "end".
25247
25248 2009-08-30  Bruno Haible  <bruno@clisp.org>
25249
25250         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25251         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25252         ENOSYS.
25253
25254 2009-08-30  Bruno Haible  <bruno@clisp.org>
25255
25256         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25257         /usr/xpg4/bin/tr when it exists.
25258         * tests/test-pipe-filter-gi1.sh: Likewise.
25259
25260 2009-08-30  Bruno Haible  <bruno@clisp.org>
25261
25262         Work around deficient /usr/bin/id program on Solaris.
25263         * tests/test-file-has-acl.sh (ID): New variable.
25264         * tests/test-set-mode-acl.sh (ID): Likewise.
25265         * tests/test-copy-acl.sh (ID): Likewise.
25266         * tests/test-copy-file.sh (ID): Likewise.
25267
25268 2009-08-30  Bruno Haible  <bruno@clisp.org>
25269
25270         New module 'xstriconveh'.
25271         * lib/xstriconveh.h: New file.
25272         * lib/xstriconveh.c: New file.
25273         * modules/xstriconveh: New file.
25274
25275 2009-08-30  Bruno Haible  <bruno@clisp.org>
25276
25277         Make it easier to use mem_cd_iconveh.
25278         * lib/striconveh.h (iconveh_t): New type.
25279         (iconveh_open, iconveh_close): New declarations.
25280         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25281         with a single 'const iconveh_t *' argument.
25282         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25283         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25284         with a single 'const iconveh_t *' argument.
25285         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25286         * tests/test-striconveh.c (main): Update.
25287         * NEWS: Mention the change.
25288
25289 2009-08-30  Bruno Haible  <bruno@clisp.org>
25290
25291         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25292         problem.
25293
25294 2009-08-30  Bruno Haible  <bruno@clisp.org>
25295
25296         Work around iconv_open problem on Solaris.
25297         * lib/iconv_open-solaris.gperf: New file.
25298         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25299         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25300         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25301         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25302         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25303         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25304
25305 2009-08-29  Jim Meyering  <meyering@redhat.com>
25306
25307         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25308         * top/maint.mk (cvs-check): Remove target; it was just an alias
25309         to the better-named vc-diff-check.
25310         (maintainer-distcheck): Remove rule.  It was used only from
25311         the (alpha/beta/major) target, and all of its commands but one
25312         were coreutils-specific.
25313         (vc-dist): Remove rule.
25314         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25315         Run vc-diff-check, not vc-dist.
25316         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25317
25318 2009-08-27  Bruno Haible  <bruno@clisp.org>
25319
25320         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25321         of 0.
25322
25323 2009-08-27  Bruno Haible  <bruno@clisp.org>
25324
25325         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25326         compilers.
25327         * doc/func.texi: Document the SunPRO C bug.
25328
25329 2009-08-27  Bruno Haible  <bruno@clisp.org>
25330
25331         Fix link error on Solaris.
25332         * tests/test-parse-duration.c (xstrdup): Remove function.
25333
25334 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25335
25336         ignore-value: handle pointer types, too
25337         * lib/ignore-value.h (__attribute__): Remove definition.
25338         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25339         of a more concise and more-often effective "(void) i" statement.
25340         (ignore_ptr): New function to suppress warnings from functions that
25341         return pointers, and to make it explicit that one function doesn't
25342         handle all cases.
25343
25344 2009-08-25  Bruno Haible  <bruno@clisp.org>
25345
25346         dup2: work around a Linux bug.
25347         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25348         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25349         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25350         Reported by Simon Josefsson.
25351
25352 2009-08-25  Jim Meyering  <meyering@redhat.com>
25353
25354         libguestfs uses gnulib
25355         * users.txt: Add libguestfs.
25356
25357 2009-08-24  Eric Blake  <ebb9@byu.net>
25358
25359         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25360         * lib/pipe2.c (includes): Add binary-io.h.
25361         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25362
25363 2009-08-24  Bruno Haible  <bruno@clisp.org>
25364
25365         Tolerate declared but missing accept4 syscall.
25366         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25367         available.
25368         * lib/sys_socket.in.h (accept4): If the function is already present,
25369         override it.
25370         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25371         * modules/accept4 (Makefile.am): Compile accept4.c always.
25372         Reported by Paolo Bonzini and Eric Blake.
25373
25374 2009-08-23  Bruno Haible  <bruno@clisp.org>
25375
25376         New module 'accept4'.
25377         * lib/sys_socket.in.h (accept4): New declaration.
25378         * lib/accept4.c: New file.
25379         * m4/accept4.m4: New file.
25380         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25381         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25382         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25383         HAVE_ACCEPT4.
25384         * modules/accept4: New file.
25385         * doc/glibc-functions/accept4.texi: Mention the new module.
25386
25387 2009-08-24  Jim Meyering  <meyering@redhat.com>
25388
25389         progname: also set global program_invocation_name, when possible
25390         Before this change, a libtool-enabled program that calls glibc's
25391         error function would report the program name as
25392         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25393         * modules/progname (configure.ac): Check for a declaration of
25394         program_invocation_name.
25395         * lib/progname.c:  Include <errno.h>.
25396         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25397         Set program_invocation_name.
25398
25399 2009-08-23  Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/dup3.c: Include <string.h>.
25402
25403 2009-08-23  Bruno Haible  <bruno@clisp.org>
25404
25405         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25406         * lib/pipe2.c (pipe2): Likewise.
25407         Suggested by Eric Blake.
25408
25409 2009-08-23  Bruno Haible  <bruno@clisp.org>
25410
25411         Tolerate declared but missing dup3 syscall.
25412         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25413         * lib/unistd.in.h (dup3): If the function is already present,
25414         override it.
25415         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25416         * modules/dup3 (Makefile.am): Compile dup3.c always.
25417         Reported by Paolo Bonzini.
25418
25419 2009-08-23  Bruno Haible  <bruno@clisp.org>
25420
25421         Tolerate declared but missing pipe2 syscall.
25422         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25423         available.
25424         * lib/unistd.in.h (pipe2): If the function is already present,
25425         override it.
25426         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25427         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25428         Reported by Paolo Bonzini.
25429
25430 2009-08-23  Bruno Haible  <bruno@clisp.org>
25431
25432         * lib/pipe2.c (pipe2): Move #ifs inside function.
25433
25434 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25435
25436         quotearg: document limitations of quote_these_too
25437         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25438         those limitations are created.
25439         * lib/quotearg.h (set_char_quoting): Document that digits and
25440         letters that are special after backslash are not permitted.
25441         (quotearg_char): Cross-reference set_char_quoting documentation.
25442
25443 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25444
25445         quotearg: implement custom_quoting_style
25446         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25447         right_quote fields.
25448         (set_custom_quoting): New public function.
25449         (quotearg_buffer_restyled): Add left_quote and right_quote
25450         arguments, handle them very much like locale quoting, and update
25451         all uses.
25452         (quotearg_n_custom): New public function.
25453         (quotearg_n_custom_mem): New public function.
25454         (quotearg_custom): New public function.
25455         (quotearg_custom_mem): New public function.
25456         * lib/quotearg.h: Prototype and document new public functions.
25457         (enum quoting_style): For escape_quoting_style and
25458         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25459         ignored even though they're otherwise like c_quoting_style.
25460         Add custom_quoting_style member and document with comparison to
25461         clocale_quoting_style.
25462         * tests/test-quotearg.c (custom_quotes): New array.
25463         (custom_results): New array.
25464         (main): Extend to test custom quoting.
25465
25466 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25467
25468         quotearg: fix right quote escaping when it's in quote_these_too
25469         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25470         quote, be sure to prepend only one backslash.
25471         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25472         (main): Test it.
25473
25474 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25475
25476         quotearg-tests: test escaping of embedded locale quotes
25477         * tests/test-quotearg.c (struct result_strings): Add member for
25478         new input.
25479         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25480         (inputs): Add new input.
25481         (results_g): Add expected results.
25482         (flag_results): Likewise.
25483         (locale_results): Likewise.
25484         (compare_strings): Check those.
25485
25486 2009-08-23  Bruno Haible  <bruno@clisp.org>
25487
25488         Tests for module 'dup3'.
25489         * modules/dup3-tests: New file.
25490         * tests/test-dup3.c: New file.
25491
25492         New module 'dup3'.
25493         * lib/unistd.in.h (dup3): New declaration.
25494         * lib/dup3.c: New file.
25495         * m4/dup3.m4: New file.
25496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25497         HAVE_DUP3.
25498         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25499         * modules/dup3: New file.
25500         * doc/glibc-functions/dup3.texi: Mention the new module.
25501
25502 2009-08-23  Bruno Haible  <bruno@clisp.org>
25503
25504         Tweak the dup2 test.
25505         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25506         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25507         the test file is still empty. Fix argument order of lseek.
25508
25509 2009-08-23  Bruno Haible  <bruno@clisp.org>
25510
25511         Avoid test link errors when the modules getopt-gnu, gettext are used.
25512         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25513         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25514
25515 2009-08-23  Bruno Haible  <bruno@clisp.org>
25516
25517         Fix getdtablesize() on mingw.
25518         * lib/getdtablesize.c (getdtablesize): Implement differently.
25519         * lib/unistd.in.h (getdtablesize): Improve comment.
25520
25521 2009-08-23  Bruno Haible  <bruno@clisp.org>
25522
25523         New module 'mkostemp'.
25524         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25525         * lib/stdlib.in.h (mksotemp): New declaration.
25526         * lib/mkostemp.c: New file, from glibc with modifications.
25527         * lib/tempname.h (GT_FILE): Remove outdated comment.
25528         (gen_tempname): Add flags argument.
25529         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25530         (__GT_FILE): Map to 1.
25531         (small_open, large_open): Remove macros.
25532         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25533         * lib/mkstemp.c (mkstemp): Update.
25534         * lib/mkdtemp.c (mkdtemp): Likewise.
25535         * m4/mkostemp.m4: New file.
25536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25537         HAVE_MKOSTEMP.
25538         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25539         HAVE_MKOSTEMP.
25540         * modules/mkostemp: New file, based on modules/mkstemp.
25541         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25542         * NEWS: Mention the change.
25543
25544 2009-08-23  Bruno Haible  <bruno@clisp.org>
25545
25546         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25547         Reported by Eric Blake.
25548
25549 2009-08-23  Bruno Haible  <bruno@clisp.org>
25550
25551         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25552         Reported by Eric Blake.
25553
25554 2009-08-23  Bruno Haible  <bruno@clisp.org>
25555
25556         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25557         * modules/pipe2 (Depends-on): Likewise.
25558
25559 2009-08-23  Eric Blake  <ebb9@byu.net>
25560
25561         fcntl-h: add O_TTY_INIT support
25562         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25563         * tests/test-fcntl-h.c (o): Test it.
25564         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25565
25566         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25567         * modules/fcntl: Move <fcntl.h> header replacement...
25568         * modules/fcntl-h: ...to new name, so as not to collide with
25569         like-named function.
25570         * tests/test-fcntl.c: Rename...
25571         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25572         * modules/fcntl-tests: Rename...
25573         * modules/fcntl-h-tests: ...to this.  Update test file name.
25574         * modules/chdir-long (Depends-on): Update clients.
25575         * modules/chdir-safer (Depends-on): Likewise.
25576         * modules/fcntl-safer (Depends-on): Likewise.
25577         * modules/fts (Depends-on): Likewise.
25578         * modules/mkancesdirs (Depends-on): Likewise.
25579         * modules/mkdir-p (Depends-on): Likewise.
25580         * modules/open (Depends-on): Likewise.
25581         * modules/savewd (Depends-on): Likewise.
25582         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25583         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25584
25585 2009-08-22  Bruno Haible  <bruno@clisp.org>
25586
25587         * modules/binary-io (License): Relicense under LGPL.
25588         * modules/pipe2 (License): Likewise.
25589
25590 2009-08-22  Bruno Haible  <bruno@clisp.org>
25591
25592         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25593         return value.
25594         * lib/pipe-filter-gi.c (filter_init): Likewise.
25595         Reported by Eric Blake.
25596
25597 2009-08-22  Bruno Haible  <bruno@clisp.org>
25598
25599         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25600         * modules/pipe (Depends-on): Add pipe2.
25601
25602 2009-08-22  Bruno Haible  <bruno@clisp.org>
25603
25604         Tests for module 'pipe2'.
25605         * modules/pipe2-tests: New file.
25606         * tests/test-pipe2.c: New file.
25607
25608         New module 'pipe2'.
25609         * lib/unistd.in.h (pipe2): New declaration.
25610         * lib/pipe2.c: New file.
25611         * m4/pipe2.m4: New file.
25612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25613         HAVE_PIPE2.
25614         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25615         * modules/pipe2: New file.
25616         * doc/glibc-functions/pipe2.texi: Mention the new module.
25617
25618 2009-08-22  Bruno Haible  <bruno@clisp.org>
25619
25620         Reference some new glibc functions.
25621         * doc/glibc-functions/accept4.texi: New file.
25622         * doc/glibc-functions/dup3.texi: New file.
25623         * doc/glibc-functions/mkostemp.texi: New file.
25624         * doc/glibc-functions/pipe2.texi: New file.
25625         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25626         (Glibc sys/socket.h): Refer to accept4.
25627         (Glibc unistd.h): Refer to dup3, pipe2.
25628         Reported by Eric Blake.
25629
25630 2009-08-22  Jim Meyering  <meyering@redhat.com>
25631             Bruno Haible  <bruno@clisp.org>
25632
25633         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25634         This makes it so packages using automake-1.11's silent-rules option
25635         can print e.g., a single "GEN    configmake.h" line, rather than
25636         the 30+ statements that perform the job.  If you want to see the
25637         actual commands, you can still run "make V=1".
25638         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25639         so that make output is abbreviated when those variables are defined
25640         appropriately.
25641         * modules/argz: Likewise.
25642         * modules/arpa_inet: Likewise.
25643         * modules/byteswap: Likewise.
25644         * modules/configmake: Likewise.
25645         * modules/dirent: Likewise.
25646         * modules/errno: Likewise.
25647         * modules/fcntl: Likewise.
25648         * modules/float: Likewise.
25649         * modules/fnmatch: Likewise.
25650         * modules/getopt-posix: Likewise.
25651         * modules/glob: Likewise.
25652         * modules/iconv_open: Likewise.
25653         * modules/inttypes: Likewise.
25654         * modules/localcharset: Likewise.
25655         * modules/locale: Likewise.
25656         * modules/math: Likewise.
25657         * modules/netdb: Likewise.
25658         * modules/netinet_in: Likewise.
25659         * modules/poll: Likewise.
25660         * modules/posix_spawnp-tests: Likewise.
25661         * modules/sched: Likewise.
25662         * modules/search: Likewise.
25663         * modules/selinux-h: Likewise.
25664         * modules/signal: Likewise.
25665         * modules/spawn: Likewise.
25666         * modules/stdarg: Likewise.
25667         * modules/stdbool: Likewise.
25668         * modules/stddef: Likewise.
25669         * modules/stdint: Likewise.
25670         * modules/stdio: Likewise.
25671         * modules/stdlib: Likewise.
25672         * modules/string: Likewise.
25673         * modules/strings: Likewise.
25674         * modules/sys_file: Likewise.
25675         * modules/sys_ioctl: Likewise.
25676         * modules/sys_select: Likewise.
25677         * modules/sys_socket: Likewise.
25678         * modules/sys_stat: Likewise.
25679         * modules/sys_time: Likewise.
25680         * modules/sys_times: Likewise.
25681         * modules/sys_utsname: Likewise.
25682         * modules/sys_wait: Likewise.
25683         * modules/sysexits: Likewise.
25684         * modules/time: Likewise.
25685         * modules/unistd: Likewise.
25686         * modules/wchar: Likewise.
25687         * modules/wctype: Likewise.
25688
25689 2009-08-22  Jim Meyering  <meyering@redhat.com>
25690
25691         announce-gen: detect write failure
25692         * build-aux/announce-gen: Add Coda at end.
25693         Remove equivalent-but-more-verbose block at top.
25694
25695 2009-08-19  Akim Demaille  <demaille@gostai.com>
25696
25697         bootstrap: --help to stdout.
25698         * bootstrap (usage): Don't send --help to stderr.
25699         Use a here doc instead of a long string.
25700
25701 2009-08-21  Eric Blake  <ebb9@byu.net>
25702
25703         test-popen-safer: split from test-popen
25704         * tests/test-popen.c (main): Move...
25705         * tests/test-popen.h: ...into new file.
25706         * tests/test-popen-safer2.c: New file.
25707         * modules/popen-tests (Files): Add test-popen.h.
25708         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25709         Suggested by Bruno Haible.
25710
25711         test-fcntl-safer: split from test-open
25712         * tests/test-open.c (main): Move...
25713         * tests/test-open.h: ...into new file.
25714         * tests/test-fcntl-safer.c: New file.
25715         * modules/open-tests (Files): Add test-open.h.
25716         * modules/fcntl-safer-tests: New file.
25717         Suggested by Bruno Haible.
25718
25719         test-fopen-safer: split from test-fopen
25720         * tests/test-fopen.c (main): Move...
25721         * tests/test-fopen.h: ...into new file.
25722         * tests/test-fopen-safer.c: New file.
25723         * modules/fopen-tests (Files): Add test-fopen.h.
25724         * modules/fopen-safer-tests: New file.
25725         Suggested by Bruno Haible.
25726
25727 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25728
25729         popen-safer: test O_CLOEXEC at run-time.
25730         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25731
25732 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25733
25734         fcntl: move more flags to the header
25735         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25736         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25737         * lib/fcntl.in.h: Do both things here.
25738
25739 2009-08-21  Jim Meyering  <meyering@redhat.com>
25740
25741         consistently remove $@-t before redirecting to it
25742         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25743         * modules/alloca-opt: Likewise.
25744         * modules/byteswap: Likewise.
25745         * modules/fnmatch: Likewise.
25746         * modules/getopt-posix: Likewise.
25747         * modules/glob: Likewise.
25748         * modules/poll: Likewise.
25749         * modules/posix_spawnp-tests: Likewise.
25750         * modules/sys_socket: Likewise.
25751         * modules/sysexits: Likewise.
25752
25753 2009-08-21  Eric Blake  <ebb9@byu.net>
25754
25755         popen: simplify access to original popen
25756         * lib/popen.c (rpl_popen): No need to worry about popen being a
25757         macro.
25758         Reported by Bruno Haible.
25759
25760 2009-08-20  Eric Blake  <ebb9@byu.net>
25761
25762         build: avoid some compiler warnings
25763         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25764         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25765         type.
25766         (new_exclude_segment, excluded_file_pattern_p)
25767         (excluded_file_name_p): Reduce scope.
25768         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25769         old-style declaration.
25770
25771 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25772
25773         * tests/test-exclude1.sh: Handle Windows EOL.
25774         * tests/test-exclude2.sh: Likewise.
25775         * tests/test-exclude3.sh: Likewise.
25776         * tests/test-exclude4.sh: Likewise.
25777         * tests/test-exclude5.sh: Likewise.
25778         * tests/test-exclude6.sh: Likewise.
25779         * tests/test-exclude7.sh: Likewise.
25780
25781 2009-08-19  Akim Demaille  <demaille@gostai.com>
25782
25783         bootstrap: find sha1sum when named gsha1sum.
25784         * bootstrap (find_tool): New.
25785         ($SHA1SUM): New.
25786         Use it.
25787
25788 2009-08-20  Jim Meyering  <meyering@redhat.com>
25789
25790         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25791         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25792         expression that converts "." in a file name to "\." in the resulting
25793         regexp.  Start with a dummy statement, so that prior shell variable
25794         definitions are expanded portably.  Reported by Simon Josefsson.
25795
25796 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25797
25798         Fix polling for writeability of a screen buffer.
25799         * lib/poll.c: Distinguish input and screen buffers for the
25800         Win32 implementation.
25801         * lib/select.c: Likewise.
25802
25803 2009-08-19  Eric Blake  <ebb9@byu.net>
25804
25805         popen-safer: prevent popen from clobbering std descriptors
25806         * modules/popen-safer: New file.
25807         * lib/popen-safer.c: Likewise.
25808         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25809         * lib/stdio--.h (popen): Provide override.
25810         * lib/stdio-safer.h (popen_safer): Provide declaration.
25811         * tests/test-popen.c (includes): Partially test this.
25812         * modules/popen-safer-tests: New file, for more tests.
25813         * tests/test-popen-safer.c: Likewise.
25814         * MODULES.html.sh (file stream based Input/Output): Mention it.
25815
25816         tests: test some of the *-safer modules
25817         * modules/fopen-safer (Depends-on): Add fopen.
25818         * modules/fcntl-safer (Depends-on): Add fcntl.
25819         * modules/stdlib-safer (Depends-on): Add stdlib.
25820         (configure.ac): Set indicator.
25821         * modules/unistd-safer (configure.ac): Likewise.
25822         * modules/tmpfile-safer (configure.ac): Likewise.
25823         (Depends-on): Add tmpfile.
25824         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25825         active.
25826         * tests/test-fopen.c (includes): Test safer versions when they are
25827         in use.
25828         * tests/test-open.c (includes): Likewise.
25829
25830         popen: fix cygwin 1.5 bug when stdin closed
25831         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25832         * modules/popen: New file.
25833         * modules/popen-tests: Likewise.
25834         * tests/test-popen.c: Likewise.
25835         * m4/popen.m4: Likewise.
25836         * lib/popen.c: Likewise.
25837         * lib/stdio.in.h (popen): New declaration.
25838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25839         * modules/stdio (Makefile.am): Likewise.
25840         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25841
25842 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25843
25844         maint.mk: give full control over update-copyright exclusions
25845         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25846         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25847         (update-copyright): Don't force inclusion of top-level
25848         ChangeLog.  Don't force exclusion of all COPYING files, but make
25849         them the default exclusion instead.
25850
25851 2009-08-16  Bruno Haible  <bruno@clisp.org>
25852
25853         Fix test failures on Solaris 10.
25854         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25855         tests when Solaris iconv() is used.
25856         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25857         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25858         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25859         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25860         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25861
25862 2009-08-16  Bruno Haible  <bruno@clisp.org>
25863
25864         Fix test failures on Solaris 10.
25865         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25866         'tr' program and pass it as first argument.
25867         * tests/test-pipe-filter-gi1.sh: Likewise.
25868         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25869         program as first argument.
25870         * tests/test-pipe-filter-gi1.c (main): Likewise.
25871
25872 2009-08-16  Eric Blake  <ebb9@byu.net>
25873
25874         fpurge: fix previous commits
25875         * modules/fpurge (Makefile.am): Make replacement conditional,
25876         partially reverting 2007-04-29 change; missed in previous
25877         attempt.
25878         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25879         is missing.
25880
25881 2009-08-16  Bruno Haible  <bruno@clisp.org>
25882
25883         Clarify fpurge's effect on the file position.
25884         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25885         * tests/test-fpurge.c (main): Make a second pass for checking the file
25886         position.
25887
25888 2009-08-16  Bruno Haible  <bruno@clisp.org>
25889
25890         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25891         declaration of fpurge is missing.
25892         * tests/test-fpurge.c (main): Check that the file has not more contents
25893         than expected. Close the file before removing it.
25894
25895 2009-08-15  Eric Blake  <ebb9@byu.net>
25896
25897         fpurge: don't wrap working cygwin implementation
25898         * lib/fpurge.c (fpurge): Fix comment typo.
25899         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25900         1.7 to avoid replacement.
25901         * tests/test-fpurge.c (main): Enhance test.
25902
25903 2009-08-15  Eric Blake  <ebb9@byu.net>
25904         and Jim Meyering  <meyering@redhat.com>
25905
25906         test-update-copyright: skip if perl is insufficient
25907         * tests/test-update-copyright.sh: Failure to run maintainer tool
25908         should not cause testsuite failure on cygwin 1.5.
25909
25910 2009-08-14  Eric Blake  <ebb9@byu.net>
25911
25912         doc: mention more functions added in cygwin 1.7.0
25913         * doc/posix-headers/limits.texi (limits.h): Update for recent
25914         cygwin additions.
25915         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25916         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25917         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25918         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25919         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25920
25921 2009-08-14  Eric Blake  <ebb9@byu.net>
25922
25923         maint.mk: simplify update-copyright rule
25924         * top/maint.mk (update-copyright-local): Delete, and document how
25925         to do it in cfg.mk instead.
25926         (update-copyright-exclude-regexp): Delete, and document how to do
25927         it in .x-update-copyright instead.
25928         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25929         exclude ChangeLog.
25930
25931 2009-08-14  Bruno Haible  <bruno@clisp.org>
25932
25933         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25934
25935 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25936
25937         maint.mk: support update-copyright-env
25938         * top/maint.mk (update-copyright-env): Define place-holder.
25939         (update-copyright): Expand $(update-copyright-env) before
25940         invoking update-copyright.
25941
25942 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25943
25944         update-copyright: implement forced reformatting
25945         * build-aux/update-copyright: Implement and document
25946         UPDATE_COPYRIGHT_FORCE.
25947         * tests/test-update-copyright.sh: Test it.
25948
25949 2009-08-14  Eric Blake  <ebb9@byu.net>
25950         and Bruno Haible  <bruno@clisp.org>
25951
25952         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25953         * tests/test-locale.c: Revert previous patch related to NULL.
25954         * tests/test-stdio.c: Likewise.
25955         * tests/test-stdlib.c: Likewise.
25956         * tests/test-string.c: Likewise.
25957         * tests/test-unistd.c: Likewise.
25958         * modules/time-tests (Depends-on): Add verify.
25959         * modules/wchar-tests (Depends-on): Likewise.
25960         * tests/test-time.c: Test for NULL compliance.
25961         * tests/test-wchar.c: Likewise.
25962         * modules/locale (Depends-on): Add stddef.
25963         * modules/stdio (Depends-on): Likewise.
25964         * modules/stdlib (Depends-on): Likewise.
25965         * modules/string (Depends-on): Likewise.
25966         * modules/time (Depends-on): Likewise.
25967         * modules/unistd (Depends-on): Likewise.
25968         * modules/wchar (Depends-on): Likewise.
25969         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25970         * lib/stdlib.in.h (includes): Likewise.
25971         * lib/string.in.h (includes): Likewise.
25972         * lib/time.in.h (includes): Likewise.
25973         * lib/unistd.in.h (includes): Likewise.
25974         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25975         replaced.
25976         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25977         * m4/stddef_h.m4: New file.
25978         * modules/stddef: Likewise.
25979         * lib/stddef.in.h: Likewise.
25980         * modules/stddef-tests: Likewise.
25981         * tests/test-stddef.c: Likewise.
25982         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25983         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25984         * doc/posix-headers/locale.texi (locale.h): Likewise.
25985         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25986         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25987         * doc/posix-headers/string.texi (string.h): Likewise.
25988         * doc/posix-headers/time.texi (time.h): Likewise.
25989         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25990         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25991
25992 2009-08-14  Eric Blake  <ebb9@byu.net>
25993
25994         doc: improve git diff of texinfo files
25995         * .gitattributes: Add rule for *.texi files, with hint on how to
25996         use it.
25997         Copied from m4, and based on a report by Bruno Haible.
25998
25999 2009-08-14  Bruno Haible  <bruno@clisp.org>
26000
26001         Disable multithread support by default on Cygwin 1.5.x for real.
26002         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26003
26004 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26005
26006         update-copyright: much ado about intervals
26007         * build-aux/update-copyright: Implement and document
26008         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26009         of copyright year intervals.
26010         Also, document UPDATE_COPYRIGHT_YEAR.
26011         * tests/test-update-copyright.sh: Test it.
26012
26013         update-copyright: convert 2-digit to 4-digit years
26014         * build-aux/update-copyright: Implement and document.
26015         * tests/test-update-copyright.sh: Update.
26016
26017 2009-08-14  Jim Meyering  <meyering@redhat.com>
26018
26019         test-exclude: avoid coreutils "make check" failure
26020         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26021         just as in test-argmatch.c.
26022
26023 2009-08-13  Eric Blake  <ebb9@byu.net>
26024
26025         test-dup2: fix bad assumption
26026         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26027         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26028
26029         test-version-etc: fix CRLF portability issue
26030         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26031         recognize \r.
26032         * tests/test-argp-version-etc-1.sh: Likewise.
26033
26034         getopt: update client modules
26035         * modules/argp (Depends-on): Use getopt-gnu.
26036         * modules/git-merge-changelog (Depends-on): Likewise.
26037         * modules/long-options (Depends-on): Likewise.
26038         * modules/xstrtol (Depends-on): Likewise.
26039
26040 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26041
26042         * tests/test-version-etc.sh: Don't fail on different
26043         project/version.  Don't fail on CRLF differences.  Rewrite to use
26044         multiple -e instead of multiple sed forks, suggested by Eric Blake
26045         <ebb9@byu.net>.
26046         * tests/test-argp-version-etc-1.sh: Likewise.
26047
26048 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26049
26050         * tests/test-version-etc.sh: Don't fail on different
26051         project/version.
26052
26053 2009-08-12  Bruno Haible  <bruno@clisp.org>
26054
26055         Tests for modules 'getopt-posix', 'getopt-gnu'.
26056         * modules/getopt-posix-tests: New file.
26057         * tests/test-getopt.c: New file.
26058         * tests/test-getopt.h: New file.
26059         * tests/test-getopt_long.h: New file.
26060
26061         New modules 'getopt-posix', 'getopt-gnu'.
26062         * modules/getopt-gnu: New file, renamed from modules/getopt.
26063         * modules/getopt-posix: New file.
26064         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26065         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26066         (gl_GETOPT): Remove macro.
26067         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26068         Disable the test against BSD systems that declare optreset. Test
26069         against mingw bug. Test against lack of support of optional arguments
26070         on many platforms.
26071         * doc/glibc-headers/getopt.texi: Update module name and list of
26072         relevant platforms.
26073         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26074         'getopt-gnu' and more portability problems.
26075         * NEWS: Mention the changes.
26076
26077 2009-08-12  Bruno Haible  <bruno@clisp.org>
26078
26079         Ensure that optarg etc. get declared by <unistd.h>.
26080         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26081         AC_USE_SYSTEM_EXTENSIONS.
26082         * modules/getopt (Depends-on): Add 'extensions'.
26083
26084 2009-08-12  Bruno Haible  <bruno@clisp.org>
26085
26086         Avoid test link errors.
26087         * modules/pipe-filter-ii-tests (Makefile.am): Define
26088         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26089         * modules/pipe-filter-gi-tests (Makefile.am): Define
26090         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26091         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26092
26093 2009-08-12  Bruno Haible  <bruno@clisp.org>
26094
26095         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26096         gl_GETOPT_SUBSTITUTE before.
26097         (gl_GETOPT): Use it.
26098         * m4/argp.m4 (gl_ARGP): Update.
26099         Reported by Sergey Poznyakoff.
26100
26101         * m4/getopt.m4: Reorder macros.
26102         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26103         (gl_GETOPT_SUBSTITUTE): Remove macro.
26104
26105 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26106
26107         Minor improvement in gitlog-to-changelog
26108
26109         * build-aux/gitlog-to-changelog: New option `--format' makes
26110         output format string configurable.
26111
26112 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26113
26114         Optimize exclude: use hash tables for non-wildcard patterns.
26115
26116         * lib/exclude.c: Include hash.h and mbuiter.h
26117         (struct exclude_pattern, exclude_segment): New data types.
26118         (struct exclude): Rewrite.
26119         (fnmatch_pattern_has_wildcards): New function.
26120         (new_exclude_segment, free_exclude_segment): New functions.
26121         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26122         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26123         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26124         * modules/exclude: Depend on hash and mbuiter.
26125
26126         * modules/exclude-tests: New file.
26127         * tests/test-exclude.c: New file.
26128         * tests/test-exclude1.sh: New file.
26129         * tests/test-exclude2.sh: New file.
26130         * tests/test-exclude3.sh: New file.
26131         * tests/test-exclude4.sh: New file.
26132         * tests/test-exclude5.sh: New file.
26133         * tests/test-exclude6.sh: New file.
26134         * tests/test-exclude7.sh: New file.
26135
26136 2009-08-12  Bruno Haible  <bruno@clisp.org>
26137
26138         Ensure that getopt() gets declared by <unistd.h>.
26139         * lib/unistd.in.h: Conditionally include getopt.h.
26140         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26141         Set GNULIB_UNISTD_H_GETOPT.
26142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26143         GNULIB_UNISTD_H_GETOPT.
26144         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26145
26146 2009-08-12  Bruno Haible  <bruno@clisp.org>
26147
26148         Clarify logic.
26149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26150         gl_replace_getopt instead of GETOPT_H.
26151
26152 2009-08-12  Bruno Haible  <bruno@clisp.org>
26153
26154         * m4/getopt.m4: Add comments.
26155
26156 2009-08-12  Bruno Haible  <bruno@clisp.org>
26157
26158         Disable multithread support by default on Cygwin 1.5.x.
26159         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26160         set gl_use_threads=no if not specified otherwise.
26161
26162 2009-08-11  Bruno Haible  <bruno@clisp.org>
26163
26164         Avoid compilation error on NetBSD 5.0.
26165         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26166         * tests/test-stdio.c: Likewise.
26167         * tests/test-stdlib.c: Likewise.
26168         * tests/test-string.c: Likewise.
26169         * tests/test-unistd.c: Likewise.
26170         Reported by Greg Troxel <gdt@ir.bbn.com>
26171         at <https://savannah.gnu.org/support/?106973>.
26172
26173 2009-08-11  Bruno Haible  <bruno@clisp.org>
26174
26175         * modules/dup2-tests (Depends-on): Remove close.
26176
26177         Undo 2009-07-19 commit.
26178         * modules/acl-tests (Depends-on): Remove close.
26179         * modules/binary-io-tests (Depends-on): Likewise.
26180         * modules/closein-tests (Depends-on): Likewise.
26181         * modules/flock-tests (Depends-on): Likewise.
26182         * modules/fsync-tests (Depends-on): Likewise.
26183         * modules/lseek-tests (Depends-on): Likewise.
26184         * modules/pipe-tests (Depends-on): Likewise.
26185         * modules/posix_spawn-tests (Depends-on): Likewise.
26186         * modules/posix_spawnp-tests (Depends-on): Likewise.
26187         * modules/stat-time-tests (Depends-on): Likewise.
26188         * modules/yesno-tests (Depends-on): Likewise.
26189
26190 2009-08-10  Bruno Haible  <bruno@clisp.org>
26191
26192         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26193
26194 2009-08-10  Bruno Haible  <bruno@clisp.org>
26195
26196         Fix a gcc warning.
26197         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26198
26199 2009-08-10  Bruno Haible  <bruno@clisp.org>
26200
26201         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26202         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26203         not only the first time.
26204         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26205         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26206         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26207         is 1, not only the the first time.
26208
26209 2009-08-10  Bruno Haible  <bruno@clisp.org>
26210
26211         Make it possible to use module 'gethostname' without module 'close'.
26212         * lib/unistd.in.h (close): Evoke a link error only if
26213         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26215         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26216         * modules/unistd (Makefile.am): Substitute
26217         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26218         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26219         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26220         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26221         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26222         * modules/sys_ioctl (Makefile.am): Substitute
26223         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26224         * modules/socket (configure.ac): On native Windows, set
26225         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26226         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26227         Reported by Sam Steingold <sds@gnu.org>.
26228
26229 2009-08-10  Bruno Haible  <bruno@clisp.org>
26230
26231         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26232         * modules/ioctl (configure.ac): Likewise.
26233
26234 2009-08-10  Bruno Haible  <bruno@clisp.org>
26235
26236         Avoid collision between gnulib wrapper and libintl wrapper.
26237         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26238         already defined in intl/printf.c.
26239         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26240         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26241
26242 2009-08-09  Bruno Haible  <bruno@clisp.org>
26243
26244         Make <sys/select.h> really self-contained, also on Solaris 10.
26245         * lib/sys_select.in.h: Include <string.h>.
26246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26247         Solaris 10 problem.
26248         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26249         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26250         Reported by Jim Meyering.
26251
26252 2009-08-09  Bruno Haible  <bruno@clisp.org>
26253
26254         Avoid warnings from 'aclocal' that are due to a use of macro name
26255         AM_XGETTEXT_OPTION that is not defined in automake.
26256         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26257         automake.
26258         * modules/error (configure.ac): Likewise.
26259         * modules/propername (configure.ac): Likewise.
26260         * modules/vasprintf (configure.ac): Likewise.
26261         * modules/verror (configure.ac): Likewise.
26262         * modules/xprintf (configure.ac): Likewise.
26263         * modules/xvasprintf (configure.ac): Likewise.
26264
26265 2009-08-08  Bruno Haible  <bruno@clisp.org>
26266
26267         Avoid compilation error in C++ mode.
26268         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26269         Reported by Sam Steingold <sds@gnu.org>.
26270
26271 2009-08-08  Bruno Haible  <bruno@clisp.org>
26272
26273         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26274         for the various Unix platforms.
26275         * doc/posix-headers/limits.texi: Update platforms list regarding
26276         HOST_NAME_MAX.
26277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26278
26279 2009-08-07  Jim Meyering  <meyering@redhat.com>
26280
26281         selinux-at: fix typo in a comment
26282         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26283         Spotted by Paolo Bonzini.
26284
26285         selinux-at: remove redundant m4 code, add documentation
26286         * modules/selinux-at (configure.ac): Remove redundant code.
26287         LIB_SELINUX is already set via the dependent module, selinux-h.
26288         (Include): Add quotes around selinux-at.h.
26289         * lib/selinux-at.h: Add documentation.
26290         Reported by Bruno Haible in
26291         http://marc.info/?l=gnulib-bug&m=124958988300749
26292
26293 2009-08-07  Bruno Haible  <bruno@clisp.org>
26294
26295         Avoid link error on MacOS X 10.3 and 10.4.
26296         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26297         on non-ELF systems.
26298         * lib/argp-pv.c (argp_program_version): Likewise.
26299         Reported by Simon Josefsson.
26300
26301 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26302
26303         * tests/test-version-etc.sh: Use $EXEEXT.
26304
26305 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26306
26307         update-copyright: update documentation to point to maint.mk
26308         * build-aux/update-copyright: Here.
26309
26310 2009-08-06  Jim Meyering  <meyering@redhat.com>
26311
26312         maint.mk: support update-copyright-local
26313         * top/maint.mk (update-copyright-local): Define place-holder.
26314         (update-copyright): Depend on $(update-copyright-local).
26315
26316 2009-08-06  Jim Meyering  <meyering@redhat.com>
26317
26318         selinux-at: new module
26319         Initially written for coreutils, this module will soon be
26320         used by findutils, too.
26321         * MODULES.html.sh [Misc]: Add selinux-at.
26322         * lib/selinux-at.h: New file, from coreutils.
26323         * lib/selinux-at.c: Likewise.
26324         * modules/selinux-at: Likewise.
26325         (License): Change from LGPL to GPL, since it depends
26326         on the GPL'd openat module.
26327
26328         doc: update README
26329         * README: Remove references to cogito.
26330         Remove cvs-repo-updating instructions from 2007.
26331         Don't imply that CVS is better if you have limited disk space.
26332
26333 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26334
26335         update-copyright: support C-style comments
26336         * build-aux/update-copyright: Implement and document.
26337         * tests/test-update-copyright.sh: Test.
26338
26339 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26340
26341         update-copyright: support omitted "(C)"
26342         * build-aux/update-copyright: Implement and document.  Also,
26343         allow variable whitespace before "(C)".
26344         * tests/test-update-copyright.sh: Test.
26345
26346 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26347
26348         update-copyright: don't trip on non-FSF copyright statements
26349         * build-aux/update-copyright: Fix so that the first correctly
26350         formatted FSF copyright statement is recognized no matter what
26351         appears before it.  Update documentation.
26352         * tests/test-update-copyright.sh: Test that.
26353
26354 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26355
26356         update-copyright: clean up code a little
26357         * build-aux/update-copyright: Append "_re" to the name of any
26358         variable holding a regular expression.
26359         Replace "old" and "new" with "stmt" in variable names.
26360         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26361         handled correctly.
26362         Format code more consistently.
26363
26364 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26365
26366         update-copyright-tests: improve portability
26367         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26368         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26369
26370 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26371
26372         update-copyright: support @copyright{} and &copy;
26373         * build-aux/update-copyright: Implement and document.
26374         * tests/test-update-copyright.sh: Test.
26375
26376 2009-08-04  Jim Meyering  <meyering@redhat.com>
26377
26378         update-copyright-tests: correctly test EOL=\r\n handling
26379         * tests/test-update-copyright.sh: Put \r at the end of some lines
26380         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26381
26382         maint.mk: make update-copyright exclusion list more configurable
26383         * top/maint.mk (update-copyright): Default to excluding COPYING,
26384         but allow an override, in case someone does want to update that file.
26385
26386         maint.mk: don't update copyright date in COPYING
26387         * top/maint.mk (update-copyright): Exclude COPYING.
26388
26389         maint.mk: add a copyright-updating rule
26390         * top/maint.mk (update-copyright): New rule.
26391         Derived from coreutils/Makefile.am.
26392
26393         update-copyright: rename some variables
26394         * build-aux/update-copyright: Rename a few variables for clarity.
26395         Tweak syntax.  List Joel E. Denny as coauthor.
26396
26397 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26398
26399         update-copyright: fix bug for 2-digit last year and add tests
26400         * build-aux/update-copyright: Fix bug.
26401         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26402         specified.
26403         * modules/update-copyright-tests: New
26404         * tests/test-update-copyright.sh: New.
26405
26406 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26407
26408         update-copyright: handle leading tabs in line prefix
26409         * build-aux/update-copyright: Count leading tabs as 8 spaces
26410         when computing margin.  This helps with the formatting of
26411         ChangeLogs, for example.
26412         Fix documentation a little.
26413
26414 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26415
26416         update-copyright: support EOL=\r\n
26417         * build-aux/update-copyright: Implement that.
26418
26419 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26420
26421         update-copyright: automatically format copyright statements
26422         * build-aux/update-copyright: Implement that.
26423         Also, be a little more predictable and safer by always failing
26424         when the full copyright format is not perfectly recognized as an
26425         unbroken whole.  Discussed at
26426         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26427         Rewrite documentation.
26428
26429 2009-08-03  Bruno Haible  <bruno@clisp.org>
26430
26431         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26432
26433 2009-08-02  Bruno Haible  <bruno@clisp.org>
26434
26435         Tests for module 'uname'.
26436         * modules/uname-tests: New file.
26437         * tests/test-uname.c: New file.
26438
26439         New module 'uname'.
26440         * lib/uname.c: New file.
26441         * m4/uname.m4: New file.
26442         * modules/uname: New file.
26443         * doc/posix-functions/uname.texi: Mention the new module.
26444
26445 2009-08-02  Bruno Haible  <bruno@clisp.org>
26446
26447         Tests for module 'sys_utsname'.
26448         * modules/sys_utsname-tests: New file.
26449         * tests/test-sys_utsname.c: New file.
26450
26451         New module 'sys_utsname'.
26452         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26453         * m4/sys_utsname_h.m4: New file.
26454         * modules/sys_utsname: New file.
26455         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26456
26457 2009-08-02  Bruno Haible  <bruno@clisp.org>
26458
26459         Implicitly initialize the sockets library.
26460         * lib/gethostname.c: Include sockets.h.
26461         (rpl_gethostname): Invoke gl_sockets_startup.
26462         * lib/socket.c: Include sockets.h.
26463         (rpl_socket): Invoke gl_sockets_startup.
26464         * modules/gethostname (Depends-on): Add sockets.
26465         * modules/socket (Depends-on): Likewise.
26466         * tests/test-poll.c: Don't include sockets.h.
26467         (main): Don't invoke gl_sockets_startup.
26468         * tests/test-select.c: Don't include sockets.h.
26469         (main): Don't invoke gl_sockets_startup.
26470
26471 2009-08-02  Bruno Haible  <bruno@clisp.org>
26472
26473         Allow multiple calls to gl_sockets_startup.
26474         * lib/sockets.c (initialized_sockets_version): New variable.
26475         (gl_sockets_startup): Do nothing if already called for this or a higher
26476         version.
26477         (gl_sockets_cleanup): Reset initialized_sockets_version.
26478
26479 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26480
26481         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26482         different project/version.
26483
26484 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26485             Bruno Haible  <bruno@clisp.org>
26486
26487         Tests for module 'pipe-filter-gi'.
26488         * modules/pipe-filter-gi-tests: New file.
26489         * tests/test-pipe-filter-gi1.sh: New file.
26490         * tests/test-pipe-filter-gi1.c: New file.
26491         * tests/test-pipe-filter-gi2.sh: New file.
26492         * tests/test-pipe-filter-gi2-main.c: New file.
26493         * tests/test-pipe-filter-gi2-child.c: New file.
26494
26495         New module 'pipe-filter-gi'.
26496         * lib/pipe-filter-gi.c: New file.
26497         * modules/pipe-filter-gi: New file.
26498
26499 2009-08-02  Bruno Haible  <bruno@clisp.org>
26500             Paolo Bonzini  <bonzini@gnu.org>
26501
26502         Tests for module 'pipe-filter-ii'.
26503         * modules/pipe-filter-ii-tests: New file.
26504         * tests/test-pipe-filter-ii1.sh: New file.
26505         * tests/test-pipe-filter-ii1.c: New file.
26506         * tests/test-pipe-filter-ii2.sh: New file.
26507         * tests/test-pipe-filter-ii2-main.c: New file.
26508         * tests/test-pipe-filter-ii2-child.c: New file.
26509
26510         New module 'pipe-filter-ii'.
26511         * lib/pipe-filter.h: New file.
26512         * lib/pipe-filter-ii.c: New file.
26513         * lib/pipe-filter-aux.h: New file.
26514         * modules/pipe-filter-ii: New file.
26515
26516 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26517
26518         * lib/gc-libgcrypt.c: Change copyright to FSF.
26519         * lib/gc-gnulib.c: Likewise.
26520
26521 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26522
26523         * lib/gethostname.c: Include limits.h.
26524
26525 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26526             Bruno Haible  <bruno@clisp.org>
26527
26528         Ensure HOST_NAME_MAX as part of the gethostname module.
26529         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26530         define also HOST_NAME_MAX.
26531         * tests/test-gethostname.c: Include <limits.h>.
26532         (main): Check also HOST_NAME_MAX.
26533         * doc/posix-headers/limits.texi: Document the mingw problem.
26534
26535 2009-08-02  Bruno Haible  <bruno@clisp.org>
26536
26537         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26538         Add comments.
26539
26540 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26541
26542         * lib/gethostname.c: Add Windows wrapper.
26543         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26544         * modules/gethostname: Depend on sys_socket & errno, for also
26545         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26546         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26547
26548 2009-07-31  Jim Meyering  <meyering@redhat.com>
26549
26550         getloadavg: fix symbol name in comment
26551         * lib/getloadavg.c: Correct a typo I introduced when adding
26552         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26553         Matt Kraai spotted the problem.
26554
26555 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26556
26557         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26558         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26559         code also if ! defined N_NAME_POINTER.
26560         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26561         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26562         but the n_name member is a 12-byte array.
26563
26564 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26565
26566         update-copyright: generalize comment handling
26567         * build-aux/update-copyright: Handle copyright statements
26568         within more comment styles.
26569         Document usage.
26570         Report any file with an external copyright holder or parse failure.
26571
26572 2009-07-29  Jim Meyering  <meyering@redhat.com>
26573
26574         mktime: correct setting of REPLACE_MKTIME
26575         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26576
26577         update-copyright: new module
26578         * modules/update-copyright: New file.
26579         * build-aux/update-copyright: New file.
26580         * MODULES.html.sh (maint+release support): Add update-copyright.
26581
26582 2009-07-27  Bruno Haible  <bruno@clisp.org>
26583
26584         Fix compilation error when <ctime> is used and mktime is replaced.
26585         * lib/time.in.h (mktime): New declaration.
26586         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26587         REPLACE_MKTIME instead of defining mktime in config.h.
26588         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26589         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26590         Reported by Ross McFarland <rwmcfa1@neces.com>.
26591
26592 2009-07-27  Bruno Haible  <bruno@clisp.org>
26593
26594         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26595         Reported by Matt Kraai <mkraai@beckman.com>.
26596
26597 2009-07-25  Jim Meyering  <meyering@redhat.com>
26598
26599         maint.mk: avoid warnings about missing files
26600         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26601         diagnostic when .prev-version does not exist.
26602         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26603         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26604         nonexistent cfg.mk.
26605         Suggestions from Simon Josefsson.
26606
26607 2009-07-25  Bruno Haible  <bruno@clisp.org>
26608
26609         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26610         defined as macros. Needed on QNX 6.4.1.
26611         Reported by Matt Kraai <mkraai@beckman.com>.
26612
26613 2009-07-23  Jim Meyering  <meyering@redhat.com>
26614
26615         maint.mk: invoke "make dist" with a working value of XZ_OPT
26616         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26617
26618 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26619
26620         Make fseeko.c compile on QNX.
26621         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26622
26623 2009-07-22  Peter Simons  <simons@cryp.to>
26624
26625         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26626         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26627         * lib/md4.h: Likewise.
26628         * lib/md5.h: Likewise.
26629         * lib/sha1.h: Likewise.
26630         * lib/sha256.h: Likewise.
26631         * lib/sha512.h: Likewise.
26632
26633         tests-sha1: don't assign literal string to 'char *' variable
26634         * tests/test-sha1.c (main): Declare locals with "const" to match
26635         attributes of the right hand side.
26636
26637 2009-07-21  Eric Blake  <ebb9@byu.net>
26638
26639         dup2: fix more mingw problems
26640         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26641         fd to itself.
26642         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26643         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26644         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26645         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26646         care of mingw bugs.
26647
26648 2009-07-21  Jim Meyering  <meyering@redhat.com>
26649
26650         vc-list-files: avoid failure when /bin/sh is dash
26651         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26652         On some Debian based systems, /bin/sh is a symlink to dash, and running
26653         this command would omit the "/" following each 'tests' prefix:
26654           dash -x build-aux/vc-list-files -C . tests
26655         That is because bash and dash work differently:
26656           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26657           bash ok
26658           dash odd
26659
26660 2009-07-21  Eric Blake  <ebb9@byu.net>
26661
26662         dup2-tests: test previous patch
26663         * modules/dup2-tests: New file.
26664         * tests/test-dup2.c: Likewise.
26665         * tests/test-open.c (main): Avoid unspecified behavior.
26666         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26667         test.
26668
26669         dup2: work around mingw and cygwin 1.5 bug
26670         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26672         * modules/unistd (Makefile.am): Substitute it.
26673         * lib/unistd.in.h (dup2): Declare the replacement.
26674         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26675         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26676         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26677         * modules/execute (Depends-on): Add dup2.
26678         * modules/fseterr (Depends-on): Likewise.
26679         * modules/pipe (Depends-on): Likewise.
26680         * modules/posix_spawn-internal (Depends-on): Likewise.
26681
26682 2009-07-21  Bruno Haible  <bruno@clisp.org>
26683
26684         * modules/.gitattributes: New file.
26685
26686 2009-07-20  Bruno Haible  <bruno@clisp.org>
26687
26688         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26689         (main): Use it.
26690
26691 2009-07-20  Eric Blake  <ebb9@byu.net>
26692
26693         test-pipe: make a bit more robust.
26694         * tests/test-pipe.c (myerr): Allow error messages regardless of
26695         what we do to stderr.
26696         (test_pipe): Rearrange to avoid deadlock.
26697         (child_main): Try a larger read, to ensure we avoided deadlock.
26698         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26699         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26700         if misused.
26701
26702 2009-07-19  Jim Meyering  <meyering@redhat.com>
26703
26704         fts: avoid false-positive cycle-detection
26705         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26706         for each new command line argument.
26707
26708 2009-07-19  Bruno Haible  <bruno@clisp.org>
26709
26710         Fix build error on mingw with the modules sys_select and unistd.
26711         * modules/acl-tests (Depends-on): Add close.
26712         * modules/binary-io-tests (Depends-on): Likewise.
26713         * modules/closein-tests (Depends-on): Likewise.
26714         * modules/flock-tests (Depends-on): Likewise.
26715         * modules/fsync-tests (Depends-on): Likewise.
26716         * modules/lseek-tests (Depends-on): Likewise.
26717         * modules/pipe-tests (Depends-on): Likewise.
26718         * modules/posix_spawn-tests (Depends-on): Likewise.
26719         * modules/posix_spawnp-tests (Depends-on): Likewise.
26720         * modules/stat-time-tests (Depends-on): Likewise.
26721         * modules/yesno-tests (Depends-on): Likewise.
26722
26723 2009-07-19  Bruno Haible  <bruno@clisp.org>
26724
26725         Unify conditionals.
26726         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26727         macros, not at the compiler macros.
26728         * lib/pipe.c: Likewise.
26729         * lib/execute.c: Likewise.
26730         * lib/spawni.c: Likewise.
26731
26732 2009-07-19  Bruno Haible  <bruno@clisp.org>
26733
26734         Fix handling of closed stdin/stdout/stderr on mingw.
26735         * lib/w32spawn.h: Include unistd.h.
26736         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26737         file descriptor with O_NOINHERIT flag.
26738         (fd_safer_noinherit): New function, based on fd-safer.c.
26739         (dup_safer_noinherit): New function, based on dup-safer.c.
26740         (undup_safer_noinherit): New function.
26741         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26742         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26743         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26744         instead of fd_safer.
26745         * tests/test-pipe.c: Include <windows.h>.
26746         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26747
26748         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26749         from main.
26750         (test_pipe): Pass an extra argument for disambiguation.
26751         (main): Invoke parent_main or child_main.
26752
26753         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26754         consistently.
26755
26756 2009-07-18  Eric Blake  <ebb9@byu.net>
26757
26758         test-pipe: fix mingw build
26759         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26760
26761 2009-07-18  Bruno Haible  <bruno@clisp.org>
26762
26763         * modules/pipe-tests (Makefile.am): Fix typo.
26764
26765 2009-07-18  Eric Blake  <ebb9@byu.net>
26766
26767         error: fix mingw build
26768         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26769         Reported by Bruno Haible.
26770
26771         error: avoid undefined use of stdout
26772         * lib/error.c (error, error_at_line): Check that fd 1 is open
26773         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26774         is handling faults and the close_stdout module wants to report the
26775         detection of closed stdout as an error.
26776
26777 2009-07-17  Eric Blake  <ebb9@byu.net>
26778
26779         pipe: be robust in face of closed fds
26780         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26781         should cause child to misbehave.
26782         * modules/pipe-tests: New module.
26783         * tests/test-pipe.c: New file.
26784         * tests/test-pipe.sh: New file.
26785         Reported by Akim Demaille.
26786
26787 2009-07-14  Bruno Haible  <bruno@clisp.org>
26788
26789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26790         Reported by anonymous kc.
26791
26792 2009-07-07  Jim Meyering  <meyering@redhat.com>
26793
26794         maint.mk: don't look for translatable strings in *.m4 or *.mk
26795         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26796         when searching for translatable strings.
26797
26798 2009-07-05  Jim Meyering  <meyering@redhat.com>
26799
26800         remove superfluous parentheses in STREQ definition
26801         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26802         * lib/getugroups.c (STREQ): Likewise.
26803         * lib/fnmatch.c (STREQ): Likewise.
26804         Spotted by Bruno Haible.
26805
26806 2009-07-04  Jim Meyering  <meyering@redhat.com>
26807
26808         argv-iter: new module
26809         * MODULES.html.sh: Add argv-iter.
26810         * lib/argv-iter.c, lib/argv-iter.h: New files.
26811         * modules/argv-iter: New file.
26812         * modules/argv-iter-tests: New file.
26813         * tests/test-argv-iter.c: Test it.
26814
26815 2009-07-04  Bruno Haible  <bruno@clisp.org>
26816
26817         Fix assertion.
26818         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26819         contains more exact copies of a given entry than file2, leave the extra
26820         copies unpaired rather than aborting.
26821         Reported by Eric Blake.
26822
26823 2009-07-02  Bruno Haible  <bruno@clisp.org>
26824
26825         Speedup git-merge-changelog for git cherry-pick.
26826         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26827         (entries_mapping_get): New function, extracted from compute_mapping.
26828         (entries_mapping_reverse_get): New function.
26829         (compute_mapping): Add a 'full' argument. Return the result in a
26830         'struct entries_mapping'.
26831         (main): Update. Access the mappings through entries_mapping_get.
26832         Reported by Eric Blake.
26833
26834 2009-07-02  Bruno Haible  <bruno@clisp.org>
26835
26836         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26837         best_i.
26838
26839 2009-07-02  Bruno Haible  <bruno@clisp.org>
26840
26841         Speed up approximate search for matching ChangeLog entries.
26842         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26843         argument. Call fstrcmp_bounded instead of fstrcmp.
26844         (compute_mapping, try_split_merged_entry, main): Update callers.
26845
26846 2009-07-02  Bruno Haible  <bruno@clisp.org>
26847
26848         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26849
26850 2009-06-30  Bruno Haible  <bruno@clisp.org>
26851
26852         Reduce the number of uc_is_cased calls.
26853         * lib/unicase.h (casing_suffix_context_t): Add
26854         'first_char_except_ignorable' field.
26855         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26856         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26857         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26858         Update initializer.
26859         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26860         case-ignorable characters.
26861         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26862         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26863         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26864         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26865         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26866
26867 2009-06-30  Bruno Haible  <bruno@clisp.org>
26868
26869         Tests for module 'unicase/ignorable'.
26870         * modules/unicase/ignorable-tests: New file.
26871         * tests/unicase/test-ignorable.c: New file, generated by
26872         gen-uni-tables.
26873
26874         Tests for module 'unicase/cased'.
26875         * modules/unicase/cased-tests: New file.
26876         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26877         * tests/unicase/test-predicate-part1.h: New file, derived from
26878         tests/unictype/test-predicate-part1.h.
26879         * tests/unicase/test-predicate-part2.h: New file, same as
26880         tests/unictype/test-predicate-part2.h.
26881
26882         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26883         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26884         (output_casing_properties): New function.
26885         (main): Call it.
26886         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26887         * lib/unicase/cased.c: Include unictype/bitmap.h.
26888         (uc_is_cased): Define through a bitmap lookup.
26889         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26890         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26891         (uc_is_case_ignorable): Define through a bitmap lookup.
26892         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26893         lib/unictype/bitmap.h.
26894         (Depends-on): Add inline. Clean up.
26895         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26896         lib/unictype/bitmap.h.
26897         (Depends-on): Add inline. Clean up.
26898         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26899         recognition.
26900         * tests/unicase/test-u16-tolower.c (main): Likewise.
26901         * tests/unicase/test-u32-tolower.c (main): Likewise.
26902
26903 2009-06-30  Bruno Haible  <bruno@clisp.org>
26904
26905         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26906         * lib/unicase/u16-casemap.c: Likewise.
26907         * lib/unicase/u32-casemap.c: Likewise.
26908
26909 2009-06-29  Bruno Haible  <bruno@clisp.org>
26910
26911         Define u32_casefold as a wrapper around u32_ct_casefold.
26912         * lib/unicase/u32-casefold.c: Update.
26913         * modules/unicase/u32-casefold (Depends-on): Add
26914         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26915         unicase/empty-suffix-context. Clean up.
26916
26917         Define u16_casefold as a wrapper around u16_ct_casefold.
26918         * lib/unicase/u16-casefold.c: Update.
26919         * modules/unicase/u16-casefold (Depends-on): Add
26920         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26921         unicase/empty-suffix-context. Clean up.
26922
26923         Define u8_casefold as a wrapper around u8_ct_casefold.
26924         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26925         * lib/unicase/u8-casefold.c: Update.
26926         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26927         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26928
26929         Define u32_totitle as a wrapper around u32_ct_totitle.
26930         * lib/unicase/u32-totitle.c: Update.
26931         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26932         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26933
26934         Define u16_totitle as a wrapper around u16_ct_totitle.
26935         * lib/unicase/u16-totitle.c: Update.
26936         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26937         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26938
26939         Define u8_totitle as a wrapper around u8_ct_totitle.
26940         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26941         functions.
26942         (FUNC): Delegate to U_CT_TOTITLE.
26943         * lib/unicase/u8-totitle.c: Update.
26944         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26945         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26946
26947         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26948         invocation.
26949         * modules/unicase/u32-tolower (Depends-on): Add
26950         unicase/empty-prefix-context, unicase/empty-suffix-context.
26951
26952         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26953         invocation.
26954         * modules/unicase/u16-tolower (Depends-on): Add
26955         unicase/empty-prefix-context, unicase/empty-suffix-context.
26956
26957         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26958         * modules/unicase/u8-tolower (Depends-on): Add
26959         unicase/empty-prefix-context, unicase/empty-suffix-context.
26960
26961         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26962         invocation.
26963         * modules/unicase/u32-toupper (Depends-on): Add
26964         unicase/empty-prefix-context, unicase/empty-suffix-context.
26965
26966         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26967         invocation.
26968         * modules/unicase/u16-toupper (Depends-on): Add
26969         unicase/empty-prefix-context, unicase/empty-suffix-context.
26970
26971         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26972         * modules/unicase/u8-toupper (Depends-on): Add
26973         unicase/empty-prefix-context, unicase/empty-suffix-context.
26974
26975         New module 'unicase/u32-ct-casefold'.
26976         * lib/unicase/u32-ct-casefold.c: New file.
26977         * modules/unicase/u32-ct-casefold: New file.
26978
26979         New module 'unicase/u16-ct-casefold'.
26980         * lib/unicase/u16-ct-casefold.c: New file.
26981         * modules/unicase/u16-ct-casefold: New file.
26982
26983         New module 'unicase/u8-ct-casefold'.
26984         * lib/unicase/u8-ct-casefold.c: New file.
26985         * lib/unicase/u-ct-casefold.h: New file, derived from
26986         lib/unicase/u-casefold.h.
26987         * modules/unicase/u8-ct-casefold: New file.
26988
26989         New module 'unicase/u32-ct-totitle'.
26990         * lib/unicase/u32-ct-totitle.c: New file.
26991         * modules/unicase/u32-ct-totitle: New file.
26992
26993         New module 'unicase/u16-ct-totitle'.
26994         * lib/unicase/u16-ct-totitle.c: New file.
26995         * modules/unicase/u16-ct-totitle: New file.
26996
26997         New module 'unicase/u8-ct-totitle'.
26998         * lib/unicase/u8-ct-totitle.c: New file.
26999         * lib/unicase/u-ct-totitle.h: New file, derived from
27000         lib/unicase/u-totitle.h.
27001         * modules/unicase/u8-ct-totitle: New file.
27002
27003         New module 'unicase/u32-ct-tolower'.
27004         * lib/unicase/u32-ct-tolower.c: New file.
27005         * modules/unicase/u32-ct-tolower: New file.
27006
27007         New module 'unicase/u16-ct-tolower'.
27008         * lib/unicase/u16-ct-tolower.c: New file.
27009         * modules/unicase/u16-ct-tolower: New file.
27010
27011         New module 'unicase/u8-ct-tolower'.
27012         * lib/unicase/u8-ct-tolower.c: New file.
27013         * modules/unicase/u8-ct-tolower: New file.
27014
27015         New module 'unicase/u32-ct-toupper'.
27016         * lib/unicase/u32-ct-toupper.c: New file.
27017         * modules/unicase/u32-ct-toupper: New file.
27018
27019         New module 'unicase/u16-ct-toupper'.
27020         * lib/unicase/u16-ct-toupper.c: New file.
27021         * modules/unicase/u16-ct-toupper: New file.
27022
27023         New module 'unicase/u8-ct-toupper'.
27024         * lib/unicase/u8-ct-toupper.c: New file.
27025         * modules/unicase/u8-ct-toupper: New file.
27026
27027         Add context arguments to u*_casemap functions.
27028         * lib/unicase/unicasemap.h: Include unicase.h.
27029         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27030         suffix_context arguments.
27031         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27032         functions.
27033         (FUNC): Add prefix_context and suffix_context arguments. Use
27034         uc_is_cased and uc_is_case_ignorable.
27035         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27036         * lib/unicase/u16-casemap.c: Likewise.
27037         * lib/unicase/u32-casemap.c: Likewise.
27038         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27039         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27040         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27041         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27042         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27043         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27044
27045         New module 'unicase/u32-suffix-context'.
27046         * lib/unicase/u32-suffix-context.c: New file.
27047         * modules/unicase/u32-suffix-context: New file.
27048
27049         New module 'unicase/u16-suffix-context'.
27050         * lib/unicase/u16-suffix-context.c: New file.
27051         * modules/unicase/u16-suffix-context: New file.
27052
27053         New module 'unicase/u8-suffix-context'.
27054         * lib/unicase/u8-suffix-context.c: New file.
27055         * lib/unicase/u-suffix-context.h: New file.
27056         * modules/unicase/u8-suffix-context: New file.
27057
27058         New module 'unicase/empty-suffix-context'.
27059         * lib/unicase/empty-suffix-context.c: New file.
27060         * modules/unicase/empty-suffix-context: New file.
27061
27062         New module 'unicase/u32-prefix-context'.
27063         * lib/unicase/u32-prefix-context.c: New file.
27064         * modules/unicase/u32-prefix-context: New file.
27065
27066         New module 'unicase/u16-prefix-context'.
27067         * lib/unicase/u16-prefix-context.c: New file.
27068         * modules/unicase/u16-prefix-context: New file.
27069
27070         New module 'unicase/u8-prefix-context'.
27071         * lib/unicase/u8-prefix-context.c: New file.
27072         * lib/unicase/u-prefix-context.h: New file.
27073         * lib/unicase/context.h: New file.
27074         * modules/unicase/u8-prefix-context: New file.
27075
27076         New module 'unicase/empty-prefix-context'.
27077         * lib/unicase/empty-prefix-context.c: New file.
27078         * modules/unicase/empty-prefix-context: New file.
27079
27080         New module 'unicase/ignorable'.
27081         * lib/unicase/ignorable.c: New file.
27082         * modules/unicase/ignorable: New file.
27083
27084         New module 'unicase/cased'.
27085         * lib/unicase/caseprop.h: New file.
27086         * lib/unicase/cased.c: New file.
27087         * modules/unicase/cased: New file.
27088
27089         New functions for case mapping of substrings.
27090         * lib/unicase.h (casing_prefix_context_t): New type.
27091         (unicase_empty_prefix_context): New variable.
27092         (u8_casing_prefix_context, u16_casing_prefix_context,
27093         u32_casing_prefix_context, u8_casing_prefixes_context,
27094         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27095         declarations.
27096         (casing_suffix_context_t): New type.
27097         (unicase_empty_suffix_context): New variable.
27098         (u8_casing_suffix_context, u16_casing_suffix_context,
27099         u32_casing_suffix_context, u8_casing_suffixes_context,
27100         u16_casing_suffixes_context, u32_casing_suffixes_context,
27101         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27102         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27103         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27104         declarations.
27105
27106 2009-06-28  Jim Meyering  <meyering@redhat.com>
27107
27108         boostrap: indent only with spaces
27109         * build-aux/bootstrap: Indent only with spaces, never TABs.
27110
27111         bootstrap: split long lines
27112         * build-aux/bootstrap: Keep line length < 80.
27113
27114         bootstrap: sync from coreutils
27115         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27116         just as autoreconf does.  Verify a list of prerequisite
27117         package-name,version-number pairs if defined in bootstrap.conf.
27118         Refer to README-prereq, if prerequisites are not satisfied.
27119
27120 2009-06-27  Eric Blake  <ebb9@byu.net>
27121
27122         tests: add test for bogus NULL definition
27123         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27124         * tests/test-stdlib.c: Likewise.
27125         * tests/test-string.c: Likewise.
27126         * tests/test-locale.c: Likewise.
27127         * tests/test-unistd.c: Likewise.
27128         * modules/stdio-tests (Depends-on): Add verify.
27129         * modules/stdlib-tests (Depends-on): Likewise.
27130         * modules/string-tests (Depends-on): Likewise.
27131         * modules/locale-tests (Depends-on): Likewise.
27132         * modules/unistd-tests (Depends-on): Likewise.
27133
27134 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27135
27136         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27137         self-explaining comment.
27138         * m4/selinux-selinux-h: Update serial.
27139         (gl_LIBSELINUX): New macro, adding a warning for missing development
27140         packages to code extracted from...
27141         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27142         Add warning for missing development packages here, too.
27143
27144 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27145
27146         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27147
27148 2009-06-25  Eric Blake  <ebb9@byu.net>
27149
27150         version-etc: fix regression
27151         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27152         gcc.
27153         (version_etc): Use it, to catch bugs with trailing NULL.
27154         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27155         (version_etc_va): Fix logic bug.
27156         * modules/version-etc-tests: Add test.
27157         * tests/test-version-etc.c: New file.
27158         * tests/test-version-etc.sh: Likewise.
27159
27160 2009-06-25  Sam Steingold  <sds@gnu.org>
27161
27162         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27163         mbtowc declaration.
27164
27165 2009-06-25  Eric Blake  <ebb9@byu.net>
27166
27167         fpurge: migrate into <stdio.h>
27168         * lib/fpurge.h: Delete...
27169         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27170         * lib/fpurge.c (fpurge): Change declaring header.
27171         * modules/fpurge (Files): Drop deleted file.
27172         (Depends-on): Add stdio.
27173         (configure.ac): Set witness.
27174         * modules/stdio (Makefile.am): Support fpurge macros.
27175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27176         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27177         * lib/fflush.c: Update client.
27178         * tests/test-fpurge.c: Likewise.
27179         * NEWS: Mention the change.
27180
27181 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27182
27183         * lib/argp-version-etc.c (program_authors): Add const
27184         qualifier.
27185         * lib/version-etc.c: Fix typos in the comments.
27186         * modules/argp-version-etc: Depends on version-etc.
27187
27188 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27189
27190         argp-version-etc: new module.
27191
27192         * lib/argp-version-etc.c: New file.
27193         * lib/argp-version-etc.h: New file.
27194         * modules/argp-version-etc: New file.
27195         * modules/argp-version-etc-tests: New file.
27196         * tests/test-argp-version-etc.c: New test.
27197         * tests/test-argp-version-etc-1.sh: New test.
27198
27199 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27200
27201         Provide additional interfaces and documentation for version-etc
27202         module.
27203
27204         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27205         interfaces.
27206         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27207         prototypes.
27208
27209 2009-06-24  Bruno Haible  <bruno@clisp.org>
27210
27211         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27212         HAVE_LIB${NAME} macro.
27213         Reported by Sam Steingold <sds@gnu.org>.
27214
27215 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27216
27217         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27218         needed.
27219
27220 2009-06-21  Bruno Haible  <bruno@clisp.org>
27221
27222         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27223         work.
27224         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27225         together with LIB${NAME}, LTLIB${NAME}.
27226         Reported by Sam Steingold <sds@gnu.org>.
27227
27228 2009-06-20  Jim Meyering  <meyering@redhat.com>
27229
27230         tests: make sc_require_test_exit_idiom more generic
27231         * top/maint.mk (Exit_witness_file): New overridable variable.
27232         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27233         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27234
27235 2009-06-19  Jim Meyering  <meyering@redhat.com>
27236
27237         hash: reverse order of src/dst parameters in an internal interface
27238         * lib/hash.c (transfer_entries): Reverse order of parameters to
27239         put DST before SRC.  Adjust callers.
27240
27241         tests: test-hash: avoid wholesale duplication
27242         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27243         Instead, use a loop and add a single conditional.
27244
27245         tests: test-hash: allow seed selection via a command line argument
27246         * tests/test-hash.c (get_seed): New function.
27247         (main): Use it.
27248
27249 2009-06-19  Eric Blake  <ebb9@byu.net>
27250
27251         hash: avoid memory leak on allocation failure
27252         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27253         failure.  Factor repeated algorithm...
27254         (transfer_entries): ...into new helper routine.
27255         (hash_delete): React to hash_rehash return value.
27256
27257         hash: reduce memory pressure in hash_rehash no-op case
27258         * lib/hash.c (next_prime): Avoid overflow.
27259         (hash_initialize): Factor bucket size computation...
27260         (compute_bucket_size): ...into new helper function.
27261         (hash_rehash): Use new function and open coding to reduce memory
27262         pressure, and avoid a memory leak in USE_OBSTACK code.
27263         Reported by Jim Meyering.
27264
27265 2009-06-18  Eric Blake  <ebb9@byu.net>
27266
27267         hash: make rotation more obvious
27268         * modules/hash (Depends-on): Add bitrotate and stdint.
27269         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27270         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27271         (SIZE_MAX): Rely on headers for definition.
27272         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27273         (raw_hasher): Use rotr_sz.
27274         Suggested by Jim Meyering.
27275
27276         hash: fix memory leak in last patch
27277         * lib/hash.c (hash_rehash): Avoid memory leak.
27278
27279         hash: avoid no-op rehashing
27280         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27281
27282         hash: provide default callback functions
27283         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27284         (hash_initialize): Use them as defaults.
27285         * tests/test-hash.c (main): Test this.
27286
27287         hash: minor optimization
27288         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27289         when possible.
27290         (hash_initialize): Document this promise.
27291         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27292         * tests/test-hash.c (hash_compare_strings): Test this.
27293
27294 2009-06-18  Bruno Haible  <bruno@clisp.org>
27295
27296         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27297         going to be replaced anyway.
27298
27299 2009-06-18  Bruno Haible  <bruno@clisp.org>
27300
27301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27302         in one place.
27303         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27304         be replaced anyway.
27305
27306 2009-06-18  Eric Blake  <ebb9@byu.net>
27307
27308         hash: check for resize before insertion
27309         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27310         threshold before insertion, so that a pathological hash_rehash
27311         that fills every bucket can still trigger another rehash.
27312
27313 2009-06-18  Jim Meyering  <meyering@redhat.com>
27314
27315         hash-tests: add a loop around the small tests
27316         * tests/test-hash.c (main): Repeat small tests with selected
27317         small initial table sizes.
27318
27319 2009-06-17  Eric Blake  <ebb9@byu.net>
27320
27321         hash: minor cleanups
27322         * lib/hash.h (hash_entry): Make opaque, by moving...
27323         * lib/hash.c (hash_entry): ...here.
27324         (hash_insert): Clarify restrictions on what can be inserted.
27325         (hash_get_next): Clarify when it is safe to remove an element
27326         during traversal.
27327         (check_tuning): Skip verification when tuning is known safe.
27328         (hash_initialize): Clarify restrictions on tuning.
27329
27330 2009-06-17  Jim Meyering  <jim@meyering.net>
27331         and Eric Blake  <ebb9@byu.net>
27332
27333         hash-tests: new module
27334         * modules/hash-tests: New file.
27335         * tests/test-hash.c: New file.
27336
27337 2009-06-17  Eric Blake  <ebb9@byu.net>
27338
27339         strstr-simple: document new module
27340         * MODULES.html.sh: Document new module.
27341
27342         strstr, strcasestr: replace on platforms with broken memchr
27343         * modules/strstr: Split into...
27344         * modules/strstr-simple: ...new module that does not care about
27345         performance, but does care about glibc bug.
27346         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27347         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27348         if platform memchr is broken, per Debian bug 521737.
27349         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27350         memchr.
27351         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27352         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27353         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27354         * modules/mountlist (Depends-on): Add strstr-simple.
27355         * modules/gen-uni-tables (Depends-on): Likewise.
27356         * modules/argz (Depends-on): Add strstr.
27357
27358 2009-06-17  Bruno Haible  <bruno@clisp.org>
27359
27360         * modules/posix_spawn-internal (Depends-on): Add errno.
27361
27362 2009-06-17  Bruno Haible  <bruno@clisp.org>
27363
27364         Define missing ESTALE on Interix 3.5.
27365         * lib/errno.in.h (ESTALE): Assign a value if missing.
27366         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27367         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27368         missing.
27369         * doc/posix-headers/errno.texi: Mention the Interix bug.
27370         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27371
27372 2009-06-15  Eric Blake  <ebb9@byu.net>
27373
27374         memchr, memchr2: add valgrind exception
27375         * lib/memchr.valgrind: New file.
27376         * lib/memchr2.valgrind: New file.
27377         * modules/memchr (Files): Distribute valgrind file.
27378         * modules/memchr2 (Files): Likewise.
27379
27380         docs: memchr is no longer obsolete
27381         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27382         * lib/string.in.h (memchr): Simplify logic.
27383
27384 2009-06-14  Jim Meyering  <meyering@redhat.com>
27385
27386         link-follow: fix the "checking..." message to not mention trailing slash
27387         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27388         never considered trailing slashes.
27389
27390 2009-06-14  Bruno Haible  <bruno@clisp.org>
27391
27392         * m4/memchr.m4: Mention also the bug on IA-64.
27393         * doc/posix-functions/memchr.texi: Likewise.
27394
27395 2009-06-12  Eric Blake  <ebb9@byu.net>
27396
27397         memchr: detect broken x86_64 and alpha implementations
27398         * modules/memchr-tests (Depends-on): Move mmap detection...
27399         * modules/memchr (Depends-on): ...here.
27400         (configure.ac): Set indicator.
27401         * lib/string.in.h (memchr): Declare replacement.
27402         * modules/string (Makefile.am): Trigger replacement.
27403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27404         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27405         bugs.
27406         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27407         * modules/getpagesize (License): Relax license.
27408
27409 2009-06-11  Bruno Haible  <bruno@clisp.org>
27410
27411         * lib/idpriv.h: Add more references.
27412
27413 2009-06-08  Bruno Haible  <bruno@clisp.org>
27414
27415         Tests for module 'idpriv-droptemp'.
27416         * modules/idpriv-droptemp-tests: New file.
27417         * tests/test-idpriv-droptemp.sh: New file.
27418         * tests/test-idpriv-droptemp.su.sh: New file.
27419         * tests/test-idpriv-droptemp.c: New file.
27420
27421         New module 'idpriv-droptemp'.
27422         * lib/idpriv-droptemp.c: New file.
27423         * modules/idpriv-droptemp: New file.
27424
27425 2009-06-08  Bruno Haible  <bruno@clisp.org>
27426
27427         Tests for module 'idpriv-drop'.
27428         * modules/idpriv-drop-tests: New file.
27429         * tests/test-idpriv-drop.sh: New file.
27430         * tests/test-idpriv-drop.su.sh: New file.
27431         * tests/test-idpriv-drop.c: New file.
27432
27433         New module 'idpriv-drop'.
27434         * lib/idpriv.h: New file.
27435         * lib-idpriv-drop.c: New file.
27436         * m4/idpriv.m4: New file.
27437         * modules/idpriv-drop: New file.
27438
27439 2009-06-08  Bruno Haible  <bruno@clisp.org>
27440
27441         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27442         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27443         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27444         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27445         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27446         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27447         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27448
27449 2009-06-08  Eric Blake  <ebb9@byu.net>
27450
27451         test-strstr: use memory fence, when possible
27452         * tests/test-strstr.c (main): Use memory fence, in order to be
27453         more likely to trigger Debian bug 521737.
27454         * modules/strstr-tests (Files): Pull in additional files.
27455
27456         memchr: no longer obsolete, for wider field testing
27457         * modules/memchr (Status, Notice): Delete, this module is no
27458         longer obsolete.
27459         * modules/vasnprintf (Depends-on): Add memchr.
27460
27461 2009-06-07  Jim Meyering  <meyering@redhat.com>
27462
27463         hash: declare some functions with the warn_unused_result attribute
27464         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27465
27466 2009-06-07  Bruno Haible  <bruno@clisp.org>
27467
27468         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27469         Reported by Eric Blake.
27470
27471 2009-06-06  Eric Blake  <ebb9@byu.net>
27472
27473         test-alignof: fix typo with long double
27474         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27475         compiler error.
27476
27477 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27478
27479         Escape non-texinfo { and }s.
27480         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27481         markup error.
27482
27483 2009-06-04  Jim Meyering  <meyering@redhat.com>
27484
27485         gitlog-to-changelog: don't infloop on an empty commit log
27486         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27487         Reported by Boris Petersen <transacid@centerim.org>.
27488
27489 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27490
27491         version-etc: extend for packagers
27492         Add three new configure options, intended for packagers:
27493           --with-packager="packager name"
27494           --with-packager-version="packager-specific version"
27495           --with-packager-bug-reports="packager bug reporting"
27496         An example with coreutils:
27497           $ ./configure \
27498             --with-packager=Gentoo \
27499             --with-packager-bug-report=http://bugs.gentoo.org/ \
27500             --with-packager-version="patchset 1.6"
27501           $ ./src/ls --version | head -n2
27502           ls (GNU coreutils) 7.1-dirty
27503           Packaged by Gentoo (patchset 1.6)
27504         Note that the bug reporting info via --help doesn't show up because
27505         coreutils uses its own custom emit_bug_reporting_address() implementation
27506         in src/system.h.  If it didn't, it'd look like:
27507           $ ./src/ls --help | tail -n4
27508           Report bugs to <bug-coreutils@gnu.org>.
27509           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27510           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27511           General help using GNU software: <http://www.gnu.org/gethelp/>.
27512         * lib/version-etc.c: Print new information, if provided.
27513         * m4/version-etc.m4: New file.
27514         * modules/version-etc (Files): Add m4/version-etc.m4.
27515         (configure.ac): Add gl_VERSION_ETC.
27516
27517 2009-05-31  Bruno Haible  <bruno@clisp.org>
27518
27519         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27520         and 'int64_t'.
27521         * modules/alignof-tests (Dependencies): Add stdint.
27522         Reported by Eric Blake.
27523
27524 2009-05-31  Bruno Haible  <bruno@clisp.org>
27525
27526         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27527         restriction due to compiler bugs.
27528         Reported by Eric Blake.
27529
27530 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27531             Bruno Haible  <bruno@clisp.org>
27532
27533         Fix test-alignof failure.
27534         * lib/alignof.h (alignof_slot): New macro.
27535         (alignof_type): New macro, with the same semantics as the previous
27536         'alignof'.
27537         (alignof): Alias to alignof_slot.
27538         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27539         check that the results are usable as constant expressions.
27540
27541 2009-05-31  Bruno Haible  <bruno@clisp.org>
27542
27543         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27544         * tests/test-memchr.c (main): Check that memchr does not read past the
27545         first occurrence of the byte.
27546         * tests/test-strstr.c (main): Update comment.
27547         Suggested by Eric Blake.
27548
27549 2009-05-30  Bruno Haible  <bruno@clisp.org>
27550
27551         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27552         detail how to use dumpbin.
27553         Reported by David Byron <dbyron@dbyron.com>.
27554
27555 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27556
27557         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27558
27559 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27560
27561         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27562
27563 2009-05-28  Bruno Haible  <bruno@clisp.org>
27564
27565         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27566         build-aux/ files.
27567
27568 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27569
27570         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27571
27572 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27573
27574         * gnulib-tool (sed_transform_main_lib_file)
27575         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27576         regexps.
27577
27578 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27579
27580         * tests/test-strstr.c: Add another self-test.
27581         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27582         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27583
27584 2009-05-23  Bruno Haible  <bruno@clisp.org>
27585
27586         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27587         change.
27588
27589 2009-05-21  Bruno Haible  <bruno@clisp.org>
27590
27591         Simplify use of mode_t varargs.
27592         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27593         uses 'mode_t' or 'int'.
27594         * lib/openat.c (openat): Likewise.
27595         * lib/open-safer.c (open_safer): Likewise.
27596         * m4/mode_t.m4: New file.
27597         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27598         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27599         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27600         * modules/open (Files): Add m4/mode_t.m4.
27601         * modules/openat (Files): Likewise.
27602         * modules/fcntl-safer (Files): Likewise.
27603         Suggested by Eric Blake.
27604
27605 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27606
27607         * doc/glibc-functions/fallocate.texi: New file.
27608         * doc/gnulib.texi: Include it.
27609
27610 2009-05-21  Eric Blake  <ebb9@byu.net>
27611             Bruno Haible  <bruno@clisp.org>
27612
27613         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27614         invocations.
27615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27616
27617 2009-05-21  Eric Blake  <ebb9@byu.net>
27618             Bruno Haible  <bruno@clisp.org>
27619
27620         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27621         include_next. Fix of 2008-11-20 commit.
27622         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27623         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27624         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27625         NEXT_MATH_H.
27626         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27627         instead of NEXT_MATH_H.
27628
27629 2009-05-21  Bruno Haible  <bruno@clisp.org>
27630
27631         Avoid redefinition warnings for SIZE_MAX.
27632         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27633         Reported by Simon Josefsson.
27634
27635 2009-05-21  Bruno Haible  <bruno@clisp.org>
27636
27637         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27638         AC_CACHE_VAL.
27639
27640 2009-05-20  Bruno Haible  <bruno@clisp.org>
27641
27642         Make zeroptr.h work on mingw.
27643         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27644         mprotect.
27645         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27646         * modules/memchr2-tests (configure.ac): Likewise.
27647         * modules/memcmp-tests (configure.ac): Likewise.
27648         * modules/memmem-tests (configure.ac): Likewise.
27649         * modules/memrchr-tests (configure.ac): Likewise.
27650         Reported by Simon Josefsson.
27651
27652 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27653
27654         * tests/test-glob.c: Include string.h for strcmp prototype.
27655
27656 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27657
27658         * modules/getdelim (Depends-on): Add explicit stdint, although it
27659         was implicitly already pulled in via realloc-posix.
27660         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27661
27662 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27663
27664         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27665         G. Christensen" <tgc@jupiterrise.com>.
27666         * m4/sys_socket_h.m4: Check for sa_family_t.
27667         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27668         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27669         * tests/test-sys_socket.c: Check that sa_family_t works.
27670
27671 2009-05-18  Eric Blake  <ebb9@byu.net>
27672
27673         maint.mk: allow gnulib_dir in VPATH build
27674         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27675
27676 2009-05-15  Jim Meyering  <meyering@redhat.com>
27677
27678         maint.mk: Give gnulib_dir a default definition.
27679         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27680         Thus, most packages no longer need to specify this variable in cfg.mk
27681
27682 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27683
27684         rename.m4: fix typos that would make non-mingw cross-configure fail
27685         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27686
27687 2009-05-13  Eric Blake  <ebb9@byu.net>
27688
27689         mmap-anon: avoid out-of-order autoconf expansion
27690         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27691         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27692         * modules/memchr-tests (Depends-on): Add extensions.
27693         * modules/memchr2-tests (Depends-on): Add extensions.
27694         * modules/memcmp-tests (Depends-on): Add extensions.
27695         * modules/memmem-tests (Depends-on): Add extensions.
27696         * modules/memrchr-tests (Depends-on): Add extensions.
27697
27698 2009-05-13  Bruno Haible  <bruno@clisp.org>
27699
27700         Make some tests ISO C 99 compliant.
27701         * tests/zerosize-ptr.h: New file.
27702         * tests/test-memchr.c: Include zerosize-ptr.h.
27703         (main): Use a zero-size object pointer instead of NULL.
27704         * tests/test-memchr2.c: Include zerosize-ptr.h.
27705         (main): Use a zero-size object pointer instead of NULL.
27706         * tests/test-memcmp.c: Include zerosize-ptr.h.
27707         (main): Use a zero-size object pointer instead of NULL.
27708         * tests/test-memmem.c: Include zerosize-ptr.h.
27709         (main): Use a zero-size object pointer instead of NULL.
27710         * tests/test-memrchr.c: Include zerosize-ptr.h.
27711         (main): Use a zero-size object pointer instead of NULL.
27712         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27713         m4/mmap-anon.m4.
27714         (Depends-on): Add getpagesize.
27715         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27716         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27717         m4/mmap-anon.m4.
27718         (Depends-on): Add getpagesize.
27719         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27720         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27721         m4/mmap-anon.m4.
27722         (Depends-on): Add getpagesize.
27723         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27724         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27725         m4/mmap-anon.m4.
27726         (Depends-on): Add getpagesize.
27727         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27728         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27729         m4/mmap-anon.m4.
27730         (Depends-on): Add getpagesize.
27731         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27732
27733 2009-05-12  Bruno Haible  <bruno@clisp.org>
27734
27735         Tests for module 'alignof'.
27736         * modules/alignof-tests: New file.
27737         * tests/test-alignof.c: New file.
27738
27739 2009-05-12  Bruno Haible  <bruno@clisp.org>
27740
27741         Fix alignof macro.
27742         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27743         vendor compilers that are always correct.
27744
27745 2009-05-12  Bruno Haible  <bruno@clisp.org>
27746
27747         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27748         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27749         not whether its fully works.
27750
27751 2009-05-12  Bruno Haible  <bruno@clisp.org>
27752
27753         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27754
27755 2009-05-12  Jim Meyering  <meyering@redhat.com>
27756
27757         * top/maint.mk: Adjust backslash alignment.
27758
27759 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27760
27761         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27762
27763 2009-05-11  Eric Blake  <ebb9@byu.net>
27764
27765         argp: avoid undefined behavior
27766         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27767         macros.
27768
27769 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27770
27771         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27772         user.name to prevent git commit from complaining.
27773
27774 2009-05-10  Bruno Haible  <bruno@clisp.org>
27775
27776         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27777         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27778         it rewrites every file name only once.
27779         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27780
27781 2009-05-08  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27784         instead of 'max'.
27785
27786 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27787
27788         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27789         sockaddr_storage test.
27790
27791 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27792
27793         * modules/sys_socket (Makefile.am): Substitute
27794         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27795         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27796         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27797         * tests/test-sys_socket.c: Check sockaddr_storage.
27798
27799 2009-05-08  Bruno Haible  <bruno@clisp.org>
27800
27801         New module 'alignof'.
27802         * lib/alignof.h: New file.
27803         * modules/alignof: New file.
27804
27805 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27806             Bruno Haible  <bruno@clisp.org>
27807
27808         Fix test-file-has-acl on FreeBSD.
27809         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27810         mask is implicitly added.
27811         * tests/test-file-has-acl.c: Include <signal.h>.
27812         (main): Terminate the test after 5 seconds.
27813         * modules/acl-tests (configure.ac): Check for alarm function.
27814
27815 2009-05-04  Bruno Haible  <bruno@clisp.org>
27816
27817         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27818         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27819         * modules/errno (configure.ac): Drop AC_REQUIRE.
27820         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27821         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27822
27823 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27824
27825         * modules/glob-tests: New module.
27826         * tests/test-glob.c: Add.
27827
27828 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27829
27830         * modules/fnmatch-tests: New module.
27831         * tests/test-fnmatch.c: Add.
27832
27833 2009-05-04  Eric Blake  <ebb9@byu.net>
27834
27835         maint: make the new no-submodule-changes rule VPATH-safe
27836         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27837
27838 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27839             Bruno Haible  <bruno@clisp.org>
27840
27841         acl: Fix infinite loop on FreeBSD.
27842         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27843         of return value from acl_get_entry.
27844         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27845         Likewise.
27846
27847 2009-05-03  Bruno Haible  <bruno@clisp.org>
27848
27849         * lib/acl-internal.h (acl_entries): Clarify return value.
27850         * lib/acl_entries.c (acl_entries): Likewise.
27851
27852 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27853
27854         Bug fix in acl module.
27855         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27856
27857 2009-05-03  Bruno Haible  <bruno@clisp.org>
27858
27859         Create gperf-generated file in the source dir, not in the build dir.
27860         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27861         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27862         * modules/unicase/locale-language (unicase/locale-languages.h):
27863         Likewise.
27864         * modules/unicase/special-casing (unicase/special-casing-table.h):
27865         Likewise.
27866         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27867         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27868         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27869         Reported by Ralf Wildenhues.
27870
27871 2009-05-03  Bruno Haible  <bruno@clisp.org>
27872
27873         * modules/fnmatch (Description, configure.ac): Taken from
27874         fnmatch-posix.
27875         * modules/fnmatch-posix: Turn into a symbolic reference to the
27876         'fnmatch' module, and deprecate.
27877         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27878
27879 2009-05-03  Bruno Haible  <bruno@clisp.org>
27880
27881         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27882         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27883         Reported by Ralf Wildenhues.
27884
27885 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27886
27887         * m4/fnmatch.m4: Fix fnmatch re-define.
27888
27889 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27890
27891         priv-set: new module and tests; adapt write-any-file
27892         * lib/priv-set.c: New file.
27893         * lib/priv-set.h: New file.
27894         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27895         * lib/write-any-file.c: Simplify by using priv-set module.
27896         * m4/priv-set.m4: New file.
27897         * modules/priv-set: New file.
27898         * modules/unlinkdir: Add dependency on priv-set module.
27899         * modules/write-any-file: Likewise.
27900
27901         Tests for module 'priv-set'.
27902         * modules/priv-set-tests: New file.
27903         * tests/test-priv-set.c: New file.
27904
27905 2009-05-03  Jim Meyering  <meyering@redhat.com>
27906             Bruno Haible  <bruno@clisp.org>
27907
27908         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27909         use the converted UTF-8 variant of the name instead.
27910
27911 2009-05-03  Jim Meyering  <meyering@redhat.com>
27912
27913         tests: tighten some getdate tests
27914         * tests/test-getdate.c (main): Tighten tests: require equality,
27915         not just greater than.  Set TZ envvar to UTC0.
27916
27917 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27918
27919         getdate: correctly interpret "next monday" when run on a Monday
27920         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27921         that e.g., "next tues" (when run on a tuesday) results in a date
27922         that is one week in the future, and not today's date.
27923         I.e., add a week when the wday is the same as the current one.
27924         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27925         and earlier by Martin Bernreuther and Jan Minář.
27926         * tests/test-getdate.c (main): Check that "next DAY" is always in
27927         the future and that "last DAY" is always in the past.
27928
27929 2009-05-02  Jim Meyering  <meyering@redhat.com>
27930
27931         build: ensure that a release build fails when a submodule is unclean
27932         * top/maint.mk (no-submodule-changes): New rule.
27933         (alpha beta major): Depend on it.
27934
27935 2009-05-02  Bruno Haible  <bruno@clisp.org>
27936
27937         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27938         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27939         shell variable gl_fnmatch_required to detect which variant is
27940         requested.
27941         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27942         gl_FUNC_FNMATCH_POSIX.
27943         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27944         exclude fnmatch-posix.
27945
27946 2009-05-02  Bruno Haible  <bruno@clisp.org>
27947
27948         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27949         * modules/mbsrtowcs (License): Change to LGPLv2+.
27950         * modules/strnlen1 (License): Likewise.
27951         Reported by Simon Josefsson.
27952
27953 2009-05-02  Bruno Haible  <bruno@clisp.org>
27954
27955         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27956         "cross".
27957         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27958         gnulib-tool was called with option --source-base=lib.
27959
27960 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27961
27962         Use automake *-local hooks without commands, for extensibility.
27963         * modules/localcharset (Makefile.am): Rename install-exec-local
27964         rule to install-exec-localcharset, and make it a prerequisite of
27965         install-exec-local.  Likewise, rename the uninstall-local rule to
27966         uninstall-localcharset, and make it a prerequisite of the former.
27967
27968 2009-05-01  Bruno Haible  <bruno@clisp.org>
27969
27970         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27971         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27972         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27974         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27975         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27976         m4/locale-zh.m4, m4/codeset.m4.
27977
27978         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27979         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27980         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27981         m4/locale-zh.m4.
27982
27983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27984         REPLACE_WCRTOMB if mbstate_t must be replaced.
27985         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27986         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27987
27988 2009-05-01  Bruno Haible  <bruno@clisp.org>
27989
27990         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27991         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27992         dngettext, dcngettext, textdomain, bindtextdomain,
27993         bind_textdomain_codeset): Undefine before redefining.
27994
27995 2009-04-30  Bruno Haible  <bruno@clisp.org>
27996
27997         Fix bug introduced on 2009-04-25.
27998         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27999         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28000         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28001         is defined.
28002         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28003         is defined.
28004         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28005         is defined.
28006         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28007
28008 2009-04-28  Bruno Haible  <bruno@clisp.org>
28009
28010         Comment tweaks.
28011         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28012         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28013         * lib/unicase.h (u*_casexfrm): Likewise.
28014         Reported by Paolo Bonzini.
28015
28016 2009-04-28  Bruno Haible  <bruno@clisp.org>
28017
28018         Fix a compilation error.
28019         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28020         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28021         Reported by Jim Meyering.
28022
28023 2009-04-27  Bruno Haible  <bruno@clisp.org>
28024
28025         New module 'libunistring'.
28026         * modules/libunistring: New file.
28027         * m4/libunistring.m4: New file.
28028         * MODULES.html.sh (Unicode string functions): Add it.
28029
28030 2009-04-27  Eric Blake  <ebb9@byu.net>
28031
28032         maint.mk: allow package-specific header to provide <config.h>
28033         * top/maint.mk (sc_require_config_h): New variable.
28034         (sc_require_config_h, sc_require_config_h_first): Use it.
28035
28036 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28037
28038         * top/maint.mk (sc_avoid_if_before_free): Except
28039         useless-if-before-free script.
28040
28041 2009-04-27  Eric Blake  <ebb9@byu.net>
28042
28043         maintainer-makefile: depend on all required helper scripts
28044         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28045         useless-if-before-free.
28046         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28047         version, rather than assuming gnulib checkout is available.
28048         Reported by Simen Josefsson.
28049
28050 2009-04-26  Bruno Haible  <bruno@clisp.org>
28051
28052         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28053         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28054         "../" or "..".
28055
28056 2009-04-26  Bruno Haible  <bruno@clisp.org>
28057
28058         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28059         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28060         AC_LIB_HAVE_LINKFLAGS.
28061
28062 2009-04-26  Bruno Haible  <bruno@clisp.org>
28063
28064         Simplify calling convention of u*_conv_from_encoding.
28065         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28066         u32_conv_from_encoding): Expect a resultbuf argument and return the
28067         result directly as a pointer.
28068         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28069         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28070         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28071         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28072         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28073         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28074         Update.
28075         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28076         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28077         * lib/vasnprintf.c (VASNPRINTF): Update.
28078         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28079         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28080         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28081         * NEWS: Mention the change.
28082
28083 2009-04-26  Bruno Haible  <bruno@clisp.org>
28084
28085         Simplify calling convention of u*_conv_to_encoding.
28086         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28087         u32_conv_to_encoding): Expect a resultbuf argument and return the
28088         result directly as a pointer.
28089         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28090         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28091         freeing scaled_offsets if mem_iconveha failed.
28092         * lib/unicase/u-casexfrm.h (FUNC): Update.
28093         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28094         * lib/vasnprintf.c (VASNPRINTF): Update.
28095         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28096         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28097         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28098         * NEWS: Mention the change.
28099
28100 2009-04-26  Bruno Haible  <bruno@clisp.org>
28101
28102         Avoid test failures on AIX and OSF/1.
28103         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28104         malloc(0).
28105         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28106         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28107         Likewise.
28108         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28109         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28110         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28111         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28112         * doc/posix-functions/malloc.texi: Document the portability problem
28113         related to malloc(0).
28114
28115 2009-04-26  Bruno Haible  <bruno@clisp.org>
28116
28117         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28118         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28119         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28120
28121 2009-04-25  Bruno Haible  <bruno@clisp.org>
28122
28123         Avoid link error when creating a namespace clean library.
28124         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28125         as macro with arguments if already defined as an alias.
28126         * lib/signbitf.c (gl_signbitf): Don't undefine.
28127         * lib/signbitd.c (gl_signbitd): Don't undefine.
28128         * lib/signbitl.c (gl_signbitl): Don't undefine.
28129
28130 2009-04-25  Jim Meyering  <meyering@redhat.com>
28131
28132         vc-list-files: fix another quoting bug
28133         * build-aux/vc-list-files: Avoid sed backslash expansion
28134         of pathological directory names.
28135
28136 2009-04-25  Eric Blake  <ebb9@byu.net>
28137
28138         vc-list-files: fix shell quoting error
28139         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28140         timestamp.
28141
28142 2009-04-25  Jim Meyering  <meyering@redhat.com>
28143
28144         vc-list-files: restore lost functionality with subdir argument
28145         * build-aux/vc-list-files: When given a non-"." sub-directory
28146         argument, substitute the $dir/ prefix back onto each resulting name.
28147         Otherwise, coreutils' root_tests check would fail.
28148
28149 2009-04-24  Eric Blake  <ebb9@byu.net>
28150
28151         vc-list-files: ignore git symlinks
28152         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28153         than ls-files, to ignore git symlinks.
28154
28155         maint.mk: import improvements from m4
28156         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28157         (move_if_change): Delete unused macro.
28158         (news-date-check, vc-diff-check): Support VPATH builds.
28159         (announcement): Likewise.  Split --bootstrap-tools list...
28160         (boostrap-tools): ...into separate list, which can be overridden
28161         in cfg.mk.
28162         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28163         requiring dependency on useless-if-before-free module.
28164         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28165         Support VPATH builds.
28166
28167 2009-04-24  Jim Meyering  <meyering@redhat.com>
28168
28169         maint.mk: remove coreutils-specific rules and variables
28170         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28171         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28172         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28173
28174         maint.mk: remove obsolete rule
28175         * top/maint.mk (rel-check): Remove rule.
28176         (WGET, WGETFLAGS): Remove now-unused variables.
28177
28178 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28179
28180         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28181         consistency.
28182
28183         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28184         '$(PATH_SEPARATOR)' instead of ':'.
28185
28186 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28187
28188         * lib/getopt1.c (main): Use 'const' for static array.
28189
28190 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28191
28192         * top/maint.mk: Sync with coreutils.
28193         * NEWS: Explain incompatibilities.
28194
28195 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28196             Bruno Haible  <bruno@clisp.org>
28197
28198         Fix cross-compilation results.
28199         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28200         statement, as third argument of AC_TRY_RUN.
28201         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28202         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28203         Likewise.
28204         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28205         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28206         Likewise.
28207         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28208         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28209         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28210
28211 2009-04-20  Bruno Haible  <bruno@clisp.org>
28212
28213         Avoid test failure on mingw.
28214         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28215
28216 2009-04-20  Bruno Haible  <bruno@clisp.org>
28217
28218         Avoid compilation error on mingw.
28219         * modules/localename-tests (Depends-on): Add locale.
28220
28221 2009-04-19  Bruno Haible  <bruno@clisp.org>
28222
28223         Support for building a shared library on Windows platforms.
28224         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28225         (main): Test the presence of UNINORM_NFC here.
28226         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28227         (main): Test the presence of UNINORM_NFD here.
28228         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28229         (main): Test the presence of UNINORM_NFKC here.
28230         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28231         (main): Test the presence of UNINORM_NFKD here.
28232
28233 2009-04-19  Bruno Haible  <bruno@clisp.org>
28234
28235         Avoid a compiler warning.
28236         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28237         Change type of variable 'sequence'.
28238
28239 2009-04-19  Bruno Haible  <bruno@clisp.org>
28240
28241         * modules/configmake (Makefile.am): When the contents of configmake.h
28242         does not change, arrange to preserve its modification time.
28243
28244 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28245
28246         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28247         gettext domain.
28248
28249 2009-04-16  Jim Meyering  <meyering@redhat.com>
28250
28251         useless-if-before-free: improve conversion code
28252         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28253         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28254
28255 2009-04-14  Bruno Haible  <bruno@clisp.org>
28256
28257         * modules/fcntl (Depends-on): Add extensions.
28258         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28259
28260 2009-04-12  Ben Pfaff  <blp@gnu.org>
28261
28262         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28263         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28264
28265 2009-03-20  Ben Pfaff  <blp@gnu.org>
28266
28267         Make rename replace existing destinations on Windows.
28268         * m4/rename.m4: Add test for Mingw.
28269         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28270         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28271         * doc/posix-functions/rename.texi: Document.
28272
28273 2009-04-10  Bruno Haible  <bruno@clisp.org>
28274
28275         New include file "iconveh.h".
28276         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28277         * lib/striconveh.h: Include it.
28278         (enum iconv_ilseq_handler): Remove definition.
28279         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28280         striconveh.h.
28281         * lib/striconveha.c: Include striconveh.h.
28282         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28283         * modules/striconveh (Files): Add lib/iconveh.h.
28284         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28285         lib/striconveh.h.
28286
28287 2009-04-10  Bruno Haible  <bruno@clisp.org>
28288
28289         * lib/uniconv.h: Update comment.
28290
28291 2009-04-10  Bruno Haible  <bruno@clisp.org>
28292
28293         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28294         always.
28295         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28296         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28297         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28298         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28299         "unistring-notinline.h", so that the function gets defined always.
28300         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28301         * lib/unistr/u8-uctomb.c: Likewise.
28302         * lib/unistr/u16-mbtouc.c: Likewise.
28303         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28304         * lib/unistr/u16-uctomb.c: Likewise.
28305         * lib/unistr/u32-mbtouc.c: Likewise.
28306         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28307         * lib/unistr/u32-uctomb.c: Likewise.
28308
28309 2009-04-10  Bruno Haible  <bruno@clisp.org>
28310
28311         Mark 'utime' obsolete.
28312         * modules/utime (Status, Notice): New sections.
28313         Suggested by Jim Meyering.
28314
28315         Fix cross-compile guess for utime test.
28316         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28317         autoconf.
28318         * doc/posix-functions/utime.texi: Give more precisions.
28319         Reported by Jan <ipif@ymail.com>.
28320
28321 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28322
28323         filevercmp: correct today's change
28324         * lib/filevercmp.c: Also handle coreutils' test inputs.
28325         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28326
28327         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28328         for reporting it.
28329         * lib/filevercmp.c: Special handle for "", "." and "..".
28330         * tests/test-filevercmp.c: Enlarge the set suite.
28331
28332 2009-04-07  Jim Meyering  <meyering@redhat.com>
28333
28334         useless-if-before-free: show how to remove braced useless free, too
28335         * build-aux/useless-if-before-free: still only in a comment, though.
28336
28337 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28338
28339         maint.mk: import changes to syntax-check macros from coreutils
28340         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28341         Use them in the relevant macros.
28342
28343 2009-04-06  Bruno Haible  <bruno@clisp.org>
28344
28345         Fix unportable use of bit-fields.
28346         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28347         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28348         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28349
28350 2009-04-06  Bruno Haible  <bruno@clisp.org>
28351
28352         Avoid test failures on AIX and OSF/1.
28353         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28354         that malloc(0) = NULL.
28355         * tests/unicase/test-u8-tolower.c (check): Likewise.
28356         * tests/unicase/test-u8-totitle.c (check): Likewise.
28357         * tests/unicase/test-u8-toupper.c (check): Likewise.
28358         * tests/unicase/test-u16-casefold.c (check): Likewise.
28359         * tests/unicase/test-u16-tolower.c (check): Likewise.
28360         * tests/unicase/test-u16-totitle.c (check): Likewise.
28361         * tests/unicase/test-u16-toupper.c (check): Likewise.
28362         * tests/unicase/test-u32-casefold.c (check): Likewise.
28363         * tests/unicase/test-u32-tolower.c (check): Likewise.
28364         * tests/unicase/test-u32-totitle.c (check): Likewise.
28365         * tests/unicase/test-u32-toupper.c (check): Likewise.
28366         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28367         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28368         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28369         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28370         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28371         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28372         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28373         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28374         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28375         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28376         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28377         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28378
28379 2009-04-05  Bruno Haible  <bruno@clisp.org>
28380
28381         Work around an autoconf limitation.
28382         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28383         comment line if it would be longer than 3 KB.
28384
28385 2009-04-05  Bruno Haible  <bruno@clisp.org>
28386
28387         Avoid test failure with libiconv-1.13.
28388         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28389         of the expected test results.
28390
28391 2009-04-05  Bruno Haible  <bruno@clisp.org>
28392
28393         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28394         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28395         that it should be installed.
28396
28397 2009-04-05  Bruno Haible  <bruno@clisp.org>
28398
28399         * gnulib-tool: New option --copy-file.
28400         (func_usage): Document it.
28401         (func_dest_tmpfilename): Moved out of func_import.
28402         (func_add_file, func_update_file): New functions, extracted from
28403         func_import.
28404         (func_import): Update.
28405
28406 2009-04-05  Karl Berry  <karl@gnu.org>
28407
28408         * README: prominently mention gnulib-tool.
28409         Rearrange sections so getting the code is near the top.
28410
28411 2009-04-05  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/unicase.h: Mention u*_cmp2.
28414         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28415         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28416         * lib/unicase/ulc-casecmp.c: Likewise.
28417         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28418         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28419         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28420         unistr/u8-cmp.
28421         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28422         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28423         unistr/u16-cmp.
28424         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28425         unistr/u32-cmp.
28426
28427         * lib/uninorm.h: Mention u*_cmp2.
28428         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28429         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28430         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28431         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28432         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28433         unistr/u8-cmp.
28434         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28435         unistr/u16-cmp.
28436         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28437         unistr/u32-cmp.
28438
28439         New module 'unistr/u32-cmp2'.
28440         * lib/unistr/u32-cmp2.c: New file.
28441         * modules/unistr/u32-cmp2: New file.
28442
28443         New module 'unistr/u16-cmp2'.
28444         * lib/unistr/u16-cmp2.c: New file.
28445         * modules/unistr/u16-cmp2: New file.
28446
28447         New module 'unistr/u8-cmp2'.
28448         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28449         * lib/unistr/u8-cmp2.c: New file.
28450         * lib/unistr/u-cmp2.h: New file.
28451         * modules/unistr/u8-cmp2: New file.
28452
28453 2009-04-05  Bruno Haible  <bruno@clisp.org>
28454
28455         * lib/unictype.h (uc_property_is_valid): New macro.
28456         * tests/unictype/test-pr_byname.c (main): Use it.
28457
28458         * lib/unistr.h: Doc fixes.
28459         * lib/uniconv.h: Doc fixes.
28460         * lib/unictype.h: Doc fixes.
28461
28462 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28463
28464         Port coreutils 7.2 to Solaris 8.
28465
28466         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28467         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28468         for Solaris 8.  This is a bit of a hack, as it means it's the
28469         caller's responsibility to add -lnsl if needed, but most likely it
28470         won't be needed since only getaddrinfo uses this and getaddrinfo
28471         isn't needed on Solaris 8.
28472
28473         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28474         problem to Solaris 8 encountered with coreutils 7.2, which
28475         resulted in a message "fnmatch.c:292: warning: passing argument 4
28476         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28477         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28478
28479 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28480
28481         * m4/ld-version-script.m4: Add FIXME comment.
28482
28483 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28484
28485         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28486         SOVERSION variable.
28487
28488 2009-04-02  Bruno Haible  <bruno@clisp.org>
28489
28490         * Makefile (info, html, dvi, pdf): Combine the rules.
28491         Suggested by Jim Meyering.
28492
28493 2009-04-01  Bruno Haible  <bruno@clisp.org>
28494
28495         * Makefile (info, html, dvi, pdf): New targets.
28496         Reported by Reuben Thomas <rrt@sc3d.org>.
28497
28498 2009-04-01  Bruno Haible  <bruno@clisp.org>
28499
28500         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28501         can be put into PATH.
28502         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28503
28504 2009-04-01  Bruno Haible  <bruno@clisp.org>
28505
28506         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28507
28508 2009-04-01  Bruno Haible  <bruno@clisp.org>
28509
28510         Rename module 'visibility'.
28511         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28512         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28513         * doc/gnulib.texi: Update.
28514         * MODULES.html.sh (Misc): Update.
28515         * NEWS: Mention the change.
28516
28517 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28518
28519         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28520         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28521         Eric Blake <ebb9@byu.net> for review.
28522         * MODULES.html.sh: Add lib-msvc-compat.
28523         * doc/gnulib.texi: Link to new section.
28524         * m4/ld-output-def.m4: New file.
28525         * doc/ld-output-def.texi: New file.
28526
28527 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28528
28529         Rename ld-version-script to lib-symbol-versions.  Suggested by
28530         Bruno Haible <bruno@clisp.org>.
28531         * modules/ld-version-script: Renamed to lib-symbol-versions.
28532         * doc/ld-version-script.texi: Fix module name.
28533         * MODULES.html.sh: Add lib-symbol-versions.
28534
28535 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28536
28537         * modules/u64-tests: New file.
28538         * tests/test-u64.c: New file.
28539
28540 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28541
28542         * MODULES.html.sh: Mention u64.
28543         * modules/u64: New module.
28544         * modules/crypto/sha512: Depend on u64 module instead of providing
28545         u64.h.
28546
28547 2009-03-27  Eric Blake  <ebb9@byu.net>
28548
28549         test-strerror: make debugging EAI_SYSTEM easier
28550         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28551         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28552         failure was EAI_SYSTEM.
28553
28554 2009-03-25  Bruno Haible  <bruno@clisp.org>
28555
28556         Fix a problem with --enable-relocatable on Solaris 7.
28557         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28558         since 2008-02-24.
28559
28560 2009-03-25  Eric Blake  <ebb9@byu.net>
28561
28562         test-sockets: avoid gcc warning
28563         * tests/test-sockets.c (main): Silence compiler warning.
28564
28565 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28566
28567         New modules nproc, pthread, contributed by Glen Lenker.
28568
28569         * MODULES.html.sh: Add pthread, nproc.
28570         * lib/nproc.c: New file.
28571         * lib/nproc.h: New file.
28572         * lib/pthread.in.h: New file.
28573         * m4/pthread.m4: New file.
28574         * modules/nproc: New file.
28575         * modules/pthread: New file.
28576
28577 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28578
28579         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28580         New variable.
28581
28582 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28583
28584         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28585         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28586         * tests/test-filevercmp.c: Add tests for backup suffixes.
28587
28588 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28589
28590         * modules/stdlib (Depends-on): Add stdint, needed when defining
28591         struct random_data on, for example, HP-UX 10.20.  Reported by
28592         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28593
28594 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28595
28596         * lib/readline.c (readline): Call fflush on stdout after printing
28597         prompt.
28598
28599 2009-03-20  Bruno Haible  <bruno@clisp.org>
28600
28601         Remove dependency from 'close' module to -lws2_32 on native Windows.
28602         * lib/close-hook.h: New file.
28603         * lib/close-hook.c: New file.
28604         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28605         w32sock.h.
28606         (_gl_close_fd_maybe_socket): Remove function.
28607         (rpl_close): Invoke execute_all_close_hooks instead of
28608         _gl_close_fd_maybe_socket.
28609         * lib/sockets.c: Include close-hook.h, w32sock.h.
28610         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28611         (close_sockets_hook): New variable.
28612         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28613         (gl_sockets_cleanup): Unregister it.
28614         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28615         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28616         * modules/close-hook: New file.
28617         * modules/close (Files): Remove lib/w32sock.h.
28618         (Depends-on): Add close-hook.
28619         (Link): Remove section.
28620         * modules/sockets (Files): Add lib/w32sock.h.
28621         (Depends-on): Add close-hook.
28622         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28623         invocation.
28624         * NEWS: Mention that LIB_CLOSE is gone.
28625
28626 2009-03-23  Eric Blake  <ebb9@byu.net>
28627
28628         signal-tests: test previous patch
28629         * tests/test-signal.c: New file.
28630         * modules/signal-tests: Likewise.
28631
28632         signal.h: always support 'volatile sig_atomic_t'
28633         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28634         (gl_SIGNAL_H_DEFAULTS): Add a default.
28635         * modules/signal (Makefile.am): Substitute if needed.
28636         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28637         users can blindly add volatile.
28638         * doc/posix-headers/signal.texi (signal.h): Document it.
28639         Reported by Matthew Woehlke.
28640
28641 2009-03-23  Jim Meyering  <meyering@redhat.com>
28642
28643         pathmax: PATH_MAX: use pathconf only when available
28644         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28645         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28646         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28647         This avoids a link failure in a PSP cross-compilation environment
28648         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28649
28650         * lib/vasnprintf.c (divide): Fix typo in comment.
28651
28652 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28653
28654         * gnulib-tool (func_filter_filelist): Fix comment.
28655
28656 2009-03-20  Bruno Haible  <bruno@clisp.org>
28657
28658         Make sockets.h self-contained.
28659         * lib/sockets.c: Include sockets.h first.
28660         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28661
28662 2009-03-19  Eric Blake  <ebb9@byu.net>
28663
28664         doc: mention more functions added in cygwin 1.7.0
28665         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28666         addition.
28667         * doc/posix-functions/log2f.texi: Likewise.
28668
28669 2009-03-19  Jim Meyering  <meyering@redhat.com>
28670
28671         fsusage: avoid syntax error due to statement-before-declaration
28672         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28673         after all declarations.  Reported by Matthew Woehlke in
28674         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28675
28676 2009-03-18  Eric Blake  <ebb9@byu.net>
28677
28678         build-aux/compile: sync from automake
28679         * build-aux/compile: New file, from automake.
28680         * config/srclist.txt: Mention build-aux/compile.
28681
28682 2009-03-17  Bruno Haible  <bruno@clisp.org>
28683
28684         * lib/git-merge-changelog.c: Fix typo in comment.
28685         Reported by Reuben Thomas <rrt@sc3d.org>.
28686
28687 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28688
28689         * m4/regex.m4: update and improve help for
28690         --without-included-regex.
28691
28692 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28693
28694         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28695         failure on missing include files.
28696
28697 2009-03-17  Eric Blake  <ebb9@byu.net>
28698
28699         doc: mention more functions added in cygwin 1.7.0
28700         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28701         addition.
28702         * doc/posix-functions/fwscanf.texi: Likewise.
28703         * doc/posix-functions/swprintf.texi: Likewise.
28704         * doc/posix-functions/swscanf.texi: Likewise.
28705         * doc/posix-functions/vfwprintf.texi: Likewise.
28706         * doc/posix-functions/vfwscanf.texi: Likewise.
28707         * doc/posix-functions/vswprintf.texi: Likewise.
28708         * doc/posix-functions/vswscanf.texi: Likewise.
28709         * doc/posix-functions/vwprintf.texi: Likewise.
28710         * doc/posix-functions/vwscanf.texi: Likewise.
28711         * doc/posix-functions/wcscasecmp.texi: Likewise.
28712         * doc/posix-functions/wcsdup.texi: Likewise.
28713         * doc/posix-functions/wcsftime.texi: Likewise.
28714         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28715         * doc/posix-functions/wprintf.texi: Likewise.
28716         * doc/posix-functions/wscanf.texi: Likewise.
28717         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28718
28719 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28720
28721         maint.mk: really add $(AM_MAKEFLAGS)
28722         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28723         was inadvertently omitted in the last commit.
28724         Spotted by Bruno Haible.
28725
28726         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28727         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28728         $(AM_MAKEFLAGS)' rather than plain `make'.
28729
28730         gnulib-tool: execute $MAKE not make
28731         * gnulib-tool: Default $MAKE to 'make'.
28732         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28733         than make.  Initialize $MAKE in the do-autobuild script.
28734
28735         gnulib-tool: use $MAKE not make in generated files
28736         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28737         make, in generated files.  Initialize $MAKE in the do-autobuild
28738         script.
28739
28740         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28741
28742         GNUmakefile: disable parallelism only for multiple, recursive targets
28743         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28744         additions in the Makefile.
28745         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28746         by Automake.
28747         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28748         are listed on the command line and at least one of them is
28749         listed in $(ALL_RECURSIVE_TARGETS).
28750
28751 2009-03-14  Bruno Haible  <bruno@clisp.org>
28752
28753         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28754         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28755         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28756         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28757         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28758         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28759         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28760         unistr/u8-uctomb.
28761         * modules/unistr/u8-strchr (Depends-on): Likewise.
28762         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28763         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28764         unistr/u16-uctomb.
28765         * modules/unistr/u16-strchr (Depends-on): Likewise.
28766         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28767
28768 2009-03-12  Bruno Haible  <bruno@clisp.org>
28769
28770         Work around select() bug on Interix 3.5.
28771         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28772         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28773         * m4/select.m4: New file.
28774         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28775         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28776         * modules/select (Files): Add m4/select.m4.
28777         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28778         * modules/nanosleep (Depends-on): Add select.
28779         * modules/poll (Depends-on): Likewise.
28780         * doc/posix-functions/select.texi: Mention the Interix bug.
28781         Reported by Markus Duft <mduft@gentoo.org>.
28782
28783         * lib/select.c: Renamed from lib/winsock-select.c.
28784         * modules/select (Files): Add lib/select.c, remove
28785         lib/winsock-select.c.
28786         (configure.ac): Update.
28787
28788 2009-03-12  Jim Meyering  <meyering@redhat.com>
28789
28790         avoid gcc warnings about unused macro definitions
28791         * lib/readtokens.c (STREQ): Remove unused definition.
28792         * lib/xmalloc.c (SIZE_MAX): Likewise.
28793         * lib/openat-die.c (N_): Likewise.
28794         * lib/mountlist.c (SIZE_MAX): Remove definition.
28795         Instead, include <stdint.h>.
28796         * lib/readutmp.c: Likewise.
28797         * modules/readutmp (Depends-on): Add stdint.
28798         * modules/mountlist (Depends-on): Add stdint.
28799         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28800
28801 2009-03-10  Bruno Haible  <bruno@clisp.org>
28802
28803         Tests for module 'mbmemcasecoll'.
28804         * modules/mbmemcasecoll-tests: New file.
28805         * tests/test-mbmemcasecoll1.sh: New file.
28806         * tests/test-mbmemcasecoll2.sh: New file.
28807         * tests/test-mbmemcasecoll3.sh: New file.
28808         * tests/test-mbmemcasecoll.c: New file.
28809
28810         New module 'mbmemcasecoll'.
28811         * lib/mbmemcasecoll.h: New file.
28812         * lib/mbmemcasecoll.c: New file.
28813         * modules/mbmemcasecoll: New file.
28814
28815         * tests/test-mbmemcasecmp.h: New file, extracted from
28816         tests/test-mbmemcasecmp.c.
28817         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28818         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28819         (main): Update.
28820         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28821
28822 2009-03-09  Bruno Haible  <bruno@clisp.org>
28823
28824         Tests for module 'mbmemcasecmp'.
28825         * modules/mbmemcasecmp-tests: New file.
28826         * tests/test-mbmemcasecmp1.sh: New file.
28827         * tests/test-mbmemcasecmp2.sh: New file.
28828         * tests/test-mbmemcasecmp3.sh: New file.
28829         * tests/test-mbmemcasecmp.c: New file.
28830
28831         New module 'mbmemcasecmp'.
28832         * lib/mbmemcasecmp.h: New file.
28833         * lib/mbmemcasecmp.c: New file.
28834         * modules/mbmemcasecmp: New file.
28835
28836 2009-03-09  Bruno Haible  <bruno@clisp.org>
28837
28838         Tests for module 'unicase/ulc-casecoll'.
28839         * modules/unicase/ulc-casecoll-tests: New file.
28840         * tests/unicase/test-ulc-casecoll1.sh: New file.
28841         * tests/unicase/test-ulc-casecoll2.sh: New file.
28842         * tests/unicase/test-ulc-casecoll.c: New file.
28843
28844         New module 'unicase/ulc-casecoll'.
28845         * lib/unicase.h (ulc_casecoll): New declaration.
28846         * lib/unicase/ulc-casecoll.c: New file.
28847         * modules/unicase/ulc-casecoll: New file.
28848
28849         New module 'unicase/ulc-casexfrm'.
28850         * lib/unicase.h (ulc_casexfrm): New declaration.
28851         * lib/unicase/ulc-casexfrm.c: New file.
28852         * modules/unicase/ulc-casexfrm: New file.
28853
28854 2009-03-09  Bruno Haible  <bruno@clisp.org>
28855
28856         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28857         invocations.
28858
28859         * m4/mbscasecmp.m4: Remove file.
28860         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28861         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28862
28863         * m4/mbscasestr.m4: Remove file.
28864         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28865         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28866
28867         * m4/mbschr.m4: Remove file.
28868         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28869         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28870
28871         * m4/mbscspn.m4: Remove file.
28872         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28873         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28874
28875         * m4/mbslen.m4: Remove file.
28876         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28877         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28878
28879         * m4/mbsncasecmp.m4: Remove file.
28880         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28881         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28882
28883         * m4/mbsnlen.m4: Remove file.
28884         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28885         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28886
28887         * m4/mbspbrk.m4: Remove file.
28888         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28889         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28890
28891         * m4/mbspcasecmp.m4: Remove file.
28892         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28893         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28894
28895         * m4/mbsrchr.m4: Remove file.
28896         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28897         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28898
28899         * m4/mbssep.m4: Remove file.
28900         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28901         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28902
28903         * m4/mbsspn.m4: Remove file.
28904         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28905         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28906
28907         * m4/mbsstr.m4: Remove file.
28908         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28909         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28910
28911         * m4/mbstok_r.m4: Remove file.
28912         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28913         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28914
28915         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28916
28917         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28918         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28919
28920         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28921
28922 2009-03-08  Bruno Haible  <bruno@clisp.org>
28923
28924         Tests for module 'unicase/ulc-casecmp'.
28925         * modules/unicase/ulc-casecmp-tests: New file.
28926         * tests/unicase/test-ulc-casecmp1.sh: New file.
28927         * tests/unicase/test-ulc-casecmp2.sh: New file.
28928         * tests/unicase/test-ulc-casecmp.c: New file.
28929
28930         New module 'unicase/ulc-casecmp'.
28931         * lib/unicase.h (ulc_casecmp): New declaration.
28932         * lib/unicase/ulc-casecmp.c: New file.
28933         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28934         'const SRC_UNIT *'.
28935         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28936         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28937         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28938         * modules/unicase/ulc-casecmp: New file.
28939
28940         Tests for module 'unicase/u32-is-cased'.
28941         * modules/unicase/u32-is-cased-tests: New file.
28942         * tests/unicase/test-u32-is-cased.c: New file.
28943
28944         Tests for module 'unicase/u16-is-cased'.
28945         * modules/unicase/u16-is-cased-tests: New file.
28946         * tests/unicase/test-u16-is-cased.c: New file.
28947
28948         Tests for module 'unicase/u8-is-cased'.
28949         * modules/unicase/u8-is-cased-tests: New file.
28950         * tests/unicase/test-u8-is-cased.c: New file.
28951         * tests/unicase/test-is-cased.h: New file.
28952
28953         New module 'unicase/u32-is-cased'.
28954         * lib/unicase/u32-is-cased.c: New file.
28955         * modules/unicase/u32-is-cased: New file.
28956
28957         New module 'unicase/u16-is-cased'.
28958         * lib/unicase/u16-is-cased.c: New file.
28959         * modules/unicase/u16-is-cased: New file.
28960
28961         New module 'unicase/u8-is-cased'.
28962         * lib/unicase/u8-is-cased.c: New file.
28963         * lib/unicase/u-is-cased.h: New file.
28964         * modules/unicase/u8-is-cased: New file.
28965
28966         Tests for module 'unicase/u32-is-casefolded'.
28967         * modules/unicase/u32-is-casefolded-tests: New file.
28968         * tests/unicase/test-u32-is-casefolded.c: New file.
28969
28970         Tests for module 'unicase/u16-is-casefolded'.
28971         * modules/unicase/u16-is-casefolded-tests: New file.
28972         * tests/unicase/test-u16-is-casefolded.c: New file.
28973
28974         Tests for module 'unicase/u8-is-casefolded'.
28975         * modules/unicase/u8-is-casefolded-tests: New file.
28976         * tests/unicase/test-u8-is-casefolded.c: New file.
28977         * tests/unicase/test-is-casefolded.h: New file.
28978
28979         New module 'unicase/u32-is-casefolded'.
28980         * lib/unicase/u32-is-casefolded.c: New file.
28981         * modules/unicase/u32-is-casefolded: New file.
28982
28983         New module 'unicase/u16-is-casefolded'.
28984         * lib/unicase/u16-is-casefolded.c: New file.
28985         * modules/unicase/u16-is-casefolded: New file.
28986
28987         New module 'unicase/u8-is-casefolded'.
28988         * lib/unicase/u8-is-casefolded.c: New file.
28989         * modules/unicase/u8-is-casefolded: New file.
28990
28991         Tests for module 'unicase/u32-is-titlecase'.
28992         * modules/unicase/u32-is-titlecase-tests: New file.
28993         * tests/unicase/test-u32-is-titlecase.c: New file.
28994
28995         Tests for module 'unicase/u16-is-titlecase'.
28996         * modules/unicase/u16-is-titlecase-tests: New file.
28997         * tests/unicase/test-u16-is-titlecase.c: New file.
28998
28999         Tests for module 'unicase/u8-is-titlecase'.
29000         * modules/unicase/u8-is-titlecase-tests: New file.
29001         * tests/unicase/test-u8-is-titlecase.c: New file.
29002         * tests/unicase/test-is-titlecase.h: New file.
29003
29004         New module 'unicase/u32-is-titlecase'.
29005         * lib/unicase/u32-is-titlecase.c: New file.
29006         * modules/unicase/u32-is-titlecase: New file.
29007
29008         New module 'unicase/u16-is-titlecase'.
29009         * lib/unicase/u16-is-titlecase.c: New file.
29010         * modules/unicase/u16-is-titlecase: New file.
29011
29012         New module 'unicase/u8-is-titlecase'.
29013         * lib/unicase/u8-is-titlecase.c: New file.
29014         * modules/unicase/u8-is-titlecase: New file.
29015
29016         Tests for module 'unicase/u32-is-lowercase'.
29017         * modules/unicase/u32-is-lowercase-tests: New file.
29018         * tests/unicase/test-u32-is-lowercase.c: New file.
29019
29020         Tests for module 'unicase/u16-is-lowercase'.
29021         * modules/unicase/u16-is-lowercase-tests: New file.
29022         * tests/unicase/test-u16-is-lowercase.c: New file.
29023
29024         Tests for module 'unicase/u8-is-lowercase'.
29025         * modules/unicase/u8-is-lowercase-tests: New file.
29026         * tests/unicase/test-u8-is-lowercase.c: New file.
29027         * tests/unicase/test-is-lowercase.h: New file.
29028
29029         New module 'unicase/u32-is-lowercase'.
29030         * lib/unicase/u32-is-lowercase.c: New file.
29031         * modules/unicase/u32-is-lowercase: New file.
29032
29033         New module 'unicase/u16-is-lowercase'.
29034         * lib/unicase/u16-is-lowercase.c: New file.
29035         * modules/unicase/u16-is-lowercase: New file.
29036
29037         New module 'unicase/u8-is-lowercase'.
29038         * lib/unicase/u8-is-lowercase.c: New file.
29039         * modules/unicase/u8-is-lowercase: New file.
29040
29041         Tests for module 'unicase/u32-is-uppercase'.
29042         * modules/unicase/u32-is-uppercase-tests: New file.
29043         * tests/unicase/test-u32-is-uppercase.c: New file.
29044
29045         Tests for module 'unicase/u16-is-uppercase'.
29046         * modules/unicase/u16-is-uppercase-tests: New file.
29047         * tests/unicase/test-u16-is-uppercase.c: New file.
29048
29049         Tests for module 'unicase/u8-is-uppercase'.
29050         * modules/unicase/u8-is-uppercase-tests: New file.
29051         * tests/unicase/test-u8-is-uppercase.c: New file.
29052         * tests/unicase/test-is-uppercase.h: New file.
29053
29054         New module 'unicase/u32-is-uppercase'.
29055         * lib/unicase/u32-is-uppercase.c: New file.
29056         * modules/unicase/u32-is-uppercase: New file.
29057
29058         New module 'unicase/u16-is-uppercase'.
29059         * lib/unicase/u16-is-uppercase.c: New file.
29060         * modules/unicase/u16-is-uppercase: New file.
29061
29062         New module 'unicase/u8-is-uppercase'.
29063         * lib/unicase/u8-is-uppercase.c: New file.
29064         * modules/unicase/u8-is-uppercase: New file.
29065
29066         New module 'unicase/u32-is-invariant'.
29067         * lib/unicase/u32-is-invariant.c: New file.
29068         * modules/unicase/u32-is-invariant: New file.
29069
29070         New module 'unicase/u16-is-invariant'.
29071         * lib/unicase/u16-is-invariant.c: New file.
29072         * modules/unicase/u16-is-invariant: New file.
29073
29074         New module 'unicase/u8-is-invariant'.
29075         * lib/unicase/u8-is-invariant.c: New file.
29076         * lib/unicase/invariant.h: New file.
29077         * lib/unicase/u-is-invariant.h: New file.
29078         * modules/unicase/u8-is-invariant: New file.
29079
29080         Tests for module 'unicase/u32-casecoll'.
29081         * modules/unicase/u32-casecoll-tests: New file.
29082         * tests/unicase/test-u32-casecoll.c: New file.
29083
29084         Tests for module 'unicase/u16-casecoll'.
29085         * modules/unicase/u16-casecoll-tests: New file.
29086         * tests/unicase/test-u16-casecoll.c: New file.
29087
29088         Tests for module 'unicase/u8-casecoll'.
29089         * modules/unicase/u8-casecoll-tests: New file.
29090         * tests/unicase/test-u8-casecoll.c: New file.
29091
29092         New module 'unicase/u32-casecoll'.
29093         * lib/unicase/u32-casecoll.c: New file.
29094         * modules/unicase/u32-casecoll: New file.
29095
29096         New module 'unicase/u16-casecoll'.
29097         * lib/unicase/u16-casecoll.c: New file.
29098         * modules/unicase/u16-casecoll: New file.
29099
29100         New module 'unicase/u8-casecoll'.
29101         * lib/unicase/u8-casecoll.c: New file.
29102         * lib/unicase/u-casecoll.h: New file.
29103         * modules/unicase/u8-casecoll: New file.
29104
29105         New module 'unicase/u32-casexfrm'.
29106         * lib/unicase/u32-casexfrm.c: New file.
29107         * modules/unicase/u32-casexfrm: New file.
29108
29109         New module 'unicase/u16-casexfrm'.
29110         * lib/unicase/u16-casexfrm.c: New file.
29111         * modules/unicase/u16-casexfrm: New file.
29112
29113         New module 'unicase/u8-casexfrm'.
29114         * lib/unicase/u8-casexfrm.c: New file.
29115         * lib/unicase/u-casexfrm.h: New file.
29116         * modules/unicase/u8-casexfrm: New file.
29117
29118         Tests for module 'unicase/u32-casecmp'.
29119         * modules/unicase/u32-casecmp-tests: New file.
29120         * tests/unicase/test-u32-casecmp.c: New file.
29121
29122         Tests for module 'unicase/u16-casecmp'.
29123         * modules/unicase/u16-casecmp-tests: New file.
29124         * tests/unicase/test-u16-casecmp.c: New file.
29125
29126         Tests for module 'unicase/u8-casecmp'.
29127         * modules/unicase/u8-casecmp-tests: New file.
29128         * tests/unicase/test-u8-casecmp.c: New file.
29129         * tests/unicase/test-casecmp.h: New file.
29130
29131         New module 'unicase/u32-casecmp'.
29132         * lib/unicase/u32-casecmp.c: New file.
29133         * modules/unicase/u32-casecmp: New file.
29134
29135         New module 'unicase/u16-casecmp'.
29136         * lib/unicase/u16-casecmp.c: New file.
29137         * modules/unicase/u16-casecmp: New file.
29138
29139         New module 'unicase/u8-casecmp'.
29140         * lib/unicase/u8-casecmp.c: New file.
29141         * lib/unicase/u-casecmp.h: New file.
29142         * modules/unicase/u8-casecmp: New file.
29143
29144         Tests for module 'unicase/u32-casefold'.
29145         * modules/unicase/u32-casefold-tests: New file.
29146         * tests/unicase/test-u32-casefold.c: New file.
29147
29148         Tests for module 'unicase/u16-casefold'.
29149         * modules/unicase/u16-casefold-tests: New file.
29150         * tests/unicase/test-u16-casefold.c: New file.
29151
29152         Tests for module 'unicase/u8-casefold'.
29153         * modules/unicase/u8-casefold-tests: New file.
29154         * tests/unicase/test-u8-casefold.c: New file.
29155
29156         New module 'unicase/u32-casefold'.
29157         * lib/unicase/u32-casefold.c: New file.
29158         * modules/unicase/u32-casefold: New file.
29159
29160         New module 'unicase/u16-casefold'.
29161         * lib/unicase/u16-casefold.c: New file.
29162         * modules/unicase/u16-casefold: New file.
29163
29164         New module 'unicase/u8-casefold'.
29165         * lib/unicase/u8-casefold.c: New file.
29166         * lib/unicase/u-casefold.h: New file.
29167         * modules/unicase/u8-casefold: New file.
29168
29169         New module 'unicase/tocasefold'.
29170         * lib/unicase/casefold.h: New file.
29171         * lib/unicase/tocasefold.c: New file.
29172         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29173         * modules/unicase/tocasefold: New file.
29174
29175         Tests for module 'unicase/u32-totitle'.
29176         * modules/unicase/u32-totitle-tests: New file.
29177         * tests/unicase/test-u32-totitle.c: New file.
29178
29179         Tests for module 'unicase/u16-totitle'.
29180         * modules/unicase/u16-totitle-tests: New file.
29181         * tests/unicase/test-u16-totitle.c: New file.
29182
29183         Tests for module 'unicase/u8-totitle'.
29184         * modules/unicase/u8-totitle-tests: New file.
29185         * tests/unicase/test-u8-totitle.c: New file.
29186
29187         New module 'unicase/u32-totitle'.
29188         * lib/unicase/u32-totitle.c: New file.
29189         * modules/unicase/u32-totitle: New file.
29190
29191         New module 'unicase/u16-totitle'.
29192         * lib/unicase/u16-totitle.c: New file.
29193         * modules/unicase/u16-totitle: New file.
29194
29195         New module 'unicase/u8-totitle'.
29196         * lib/unicase/u8-totitle.c: New file.
29197         * lib/unicase/u-totitle.h: New file.
29198         * modules/unicase/u8-totitle: New file.
29199
29200         Tests for module 'unicase/u32-tolower'.
29201         * modules/unicase/u32-tolower-tests: New file.
29202         * tests/unicase/test-u32-tolower.c: New file.
29203
29204         Tests for module 'unicase/u16-tolower'.
29205         * modules/unicase/u16-tolower-tests: New file.
29206         * tests/unicase/test-u16-tolower.c: New file.
29207
29208         Tests for module 'unicase/u8-tolower'.
29209         * modules/unicase/u8-tolower-tests: New file.
29210         * tests/unicase/test-u8-tolower.c: New file.
29211
29212         New module 'unicase/u32-tolower'.
29213         * lib/unicase/u32-tolower.c: New file.
29214         * modules/unicase/u32-tolower: New file.
29215
29216         New module 'unicase/u16-tolower'.
29217         * lib/unicase/u16-tolower.c: New file.
29218         * modules/unicase/u16-tolower: New file.
29219
29220         New module 'unicase/u8-tolower'.
29221         * lib/unicase/u8-tolower.c: New file.
29222         * modules/unicase/u8-tolower: New file.
29223
29224         Tests for module 'unicase/u32-toupper'.
29225         * modules/unicase/u32-toupper-tests: New file.
29226         * tests/unicase/test-u32-toupper.c: New file.
29227
29228         Tests for module 'unicase/u16-toupper'.
29229         * modules/unicase/u16-toupper-tests: New file.
29230         * tests/unicase/test-u16-toupper.c: New file.
29231
29232         Tests for module 'unicase/u8-toupper'.
29233         * modules/unicase/u8-toupper-tests: New file.
29234         * tests/unicase/test-u8-toupper.c: New file.
29235
29236         New module 'unicase/u32-toupper'.
29237         * lib/unicase/u32-toupper.c: New file.
29238         * modules/unicase/u32-toupper: New file.
29239
29240         New module 'unicase/u16-toupper'.
29241         * lib/unicase/u16-toupper.c: New file.
29242         * modules/unicase/u16-toupper: New file.
29243
29244         New module 'unicase/u8-toupper'.
29245         * lib/unicase/u8-toupper.c: New file.
29246         * modules/unicase/u8-toupper: New file.
29247
29248         New module 'unicase/u32-casemap'.
29249         * lib/unicase/u32-casemap.c: New file.
29250         * modules/unicase/u32-casemap: New file.
29251
29252         New module 'unicase/u16-casemap'.
29253         * lib/unicase/u16-casemap.c: New file.
29254         * modules/unicase/u16-casemap: New file.
29255
29256         New module 'unicase/u8-casemap'.
29257         * lib/unicase/unicasemap.h: New file.
29258         * lib/unicase/u8-casemap.c: New file.
29259         * lib/unicase/u-casemap.h: New file.
29260         * modules/unicase/u8-casemap: New file.
29261
29262         New module 'unicase/special-casing'.
29263         * lib/unicase/special-casing.h: New file.
29264         * lib/unicase/special-casing.c: New file.
29265         * lib/unicase/special-casing-table.gperf: New file, generated by
29266         gen-uni-tables.c.
29267         * modules/unicase/special-casing: New file.
29268
29269         Tests for module 'unicase/locale-language'.
29270         * modules/unicase/locale-language-tests: New file.
29271         * tests/unicase/test-locale-language.sh: New file.
29272         * tests/unicase/test-locale-language.c: New file.
29273
29274         New module 'unicase/locale-language'.
29275         * lib/unicase/locale-language.c: New file.
29276         * lib/unicase/locale-languages.gperf: New file.
29277         * modules/unicase/locale-language: New file.
29278
29279         Generate more tables for case conversion and case folding.
29280         * lib/gen-uni-tables.c (SCC_*): New enum items.
29281         (struct special_casing_rule): New type.
29282         (casing_rules, num_casing_rules, allocated_casing_rules): New
29283         variables.
29284         (add_casing_rule, fill_casing_rules): New functions.
29285         (struct casefold_rule): New type.
29286         (casefolding_rules, num_casefolding_rules,
29287         allocated_casefolding_rules): New variables.
29288         (fill_casefolding_rules): New function.
29289         (unicode_casefold): New variable.
29290         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29291         sort_casing_rules, output_casing_rules): New functions.
29292         (main): Accept to more arguments: SpecialCasing.txt and
29293         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29294         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29295         Output mapping for casefolding.
29296
29297         * lib/unicase.h: Include stdbool.h, uninorm.h.
29298         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29299         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29300         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29301         arguments.
29302         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29303         resultp arguments.
29304         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29305         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29306         resultp arguments.
29307         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29308         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29309         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29310         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29311         declarations.
29312         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29313
29314 2009-03-08  Bruno Haible  <bruno@clisp.org>
29315
29316         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29317         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29318         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29319         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29320
29321 2009-03-07  Bruno Haible  <bruno@clisp.org>
29322
29323         Adjust u*_normcmp, u*_normcoll API.
29324         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29325         u16_normcoll, u32_normcoll): Change failure conventions.
29326         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29327         errno and return -1.
29328         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29329
29330 2009-03-07  Bruno Haible  <bruno@clisp.org>
29331
29332         Tests for module 'uninorm/u32-normcoll'.
29333         * modules/uninorm/u32-normcoll-tests: New file.
29334         * tests/uninorm/test-u32-normcoll.c: New file.
29335
29336         Tests for module 'uninorm/u16-normcoll'.
29337         * modules/uninorm/u16-normcoll-tests: New file.
29338         * tests/uninorm/test-u16-normcoll.c: New file.
29339
29340         Tests for module 'uninorm/u8-normcoll'.
29341         * modules/uninorm/u8-normcoll-tests: New file.
29342         * tests/uninorm/test-u8-normcoll.c: New file.
29343
29344 2009-03-07  Bruno Haible  <bruno@clisp.org>
29345
29346         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29347         tests/uninorm/test-u32-normcmp.c.
29348         * tests/uninorm/test-u32-normcmp.c: Include it.
29349         (test_nonascii): New function, extracted from main. Add some more
29350         tests.
29351         (main): Invoke test_ascii and test_nonascii.
29352         * modules/uninorm/u32-normcmp-tests (Files): Add
29353         tests/uninorm/test-u32-normcmp.h.
29354         (Depends-on): Remove uninorm/u32-normcmp.
29355
29356         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29357         tests/uninorm/test-u16-normcmp.c.
29358         * tests/uninorm/test-u16-normcmp.c: Include it.
29359         (test_nonascii): New function, extracted from main. Add some more
29360         tests.
29361         (main): Invoke test_ascii and test_nonascii.
29362         * modules/uninorm/u16-normcmp-tests (Files): Add
29363         tests/uninorm/test-u16-normcmp.h.
29364         (Depends-on): Remove uninorm/u16-normcmp.
29365
29366         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29367         tests/uninorm/test-u8-normcmp.c.
29368         * tests/uninorm/test-u8-normcmp.c: Include it.
29369         (test_nonascii): New function, extracted from main. Add some more
29370         tests.
29371         (main): Invoke test_ascii and test_nonascii.
29372         * modules/uninorm/u8-normcmp-tests (Files): Add
29373         tests/uninorm/test-u8-normcmp.h.
29374         (Depends-on): Remove uninorm/u8-normcmp.
29375
29376 2009-03-07  Bruno Haible  <bruno@clisp.org>
29377
29378         New module 'uninorm/u32-normcoll'.
29379         * lib/uninorm/u32-normcoll.c: New file.
29380         * modules/uninorm/u32-normcoll: New file.
29381
29382         New module 'uninorm/u16-normcoll'.
29383         * lib/uninorm/u16-normcoll.c: New file.
29384         * modules/uninorm/u16-normcoll: New file.
29385
29386         New module 'uninorm/u8-normcoll'.
29387         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29388         declarations.
29389         * lib/uninorm/u8-normcoll.c: New file.
29390         * lib/uninorm/u-normcoll.h: New file.
29391         * modules/uninorm/u8-normcoll: New file.
29392
29393         New module 'uninorm/u32-normxfrm'.
29394         * lib/uninorm/u32-normxfrm.c: New file.
29395         * modules/uninorm/u32-normxfrm: New file.
29396
29397         New module 'uninorm/u16-normxfrm'.
29398         * lib/uninorm/u16-normxfrm.c: New file.
29399         * modules/uninorm/u16-normxfrm: New file.
29400
29401         New module 'uninorm/u8-normxfrm'.
29402         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29403         declarations.
29404         * lib/uninorm/u8-normxfrm.c: New file.
29405         * lib/uninorm/u-normxfrm.h: New file.
29406         * modules/uninorm/u8-normxfrm: New file.
29407
29408 2009-03-07  Bruno Haible  <bruno@clisp.org>
29409
29410         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29411         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29412         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29413
29414 2009-03-07  Bruno Haible  <bruno@clisp.org>
29415
29416         New module 'memxfrm'.
29417         * lib/memxfrm.h: New file.
29418         * lib/memxfrm.c: New file.
29419         * modules/memxfrm: New file.
29420
29421 2009-03-07  Bruno Haible  <bruno@clisp.org>
29422
29423         New module 'memcmp2'.
29424         * lib/memcmp2.h: New file.
29425         * lib/memcmp2.c: New file.
29426         * modules/memcmp2: New file.
29427
29428 2009-03-07  Bruno Haible  <bruno@clisp.org>
29429
29430         Tests for module 'uninorm/decomposing-form'.
29431         * modules/uninorm/decomposing-form-tests: New file.
29432         * tests/uninorm/test-decomposing-form.c: New file.
29433
29434         New module 'uninorm/decomposing-form'.
29435         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29436         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29437         Add 'decomposing_variant' field.
29438         * lib/uninorm/decomposing-form.c: New file.
29439         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29440         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29441         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29442         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29443         * modules/uninorm/decomposing-form: New file.
29444         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29445         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29446
29447 2009-03-07  Bruno Haible  <bruno@clisp.org>
29448
29449         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29450         strings.
29451
29452 2009-03-06  Bruno Haible  <bruno@clisp.org>
29453
29454         Tests for module 'uninorm/u32-normcmp'.
29455         * tests/uninorm/test-u32-normcmp.c: New file.
29456         * modules/uninorm/u32-normcmp-tests: New file.
29457
29458         Tests for module 'uninorm/u16-normcmp'.
29459         * tests/uninorm/test-u16-normcmp.c: New file.
29460         * modules/uninorm/u16-normcmp-tests: New file.
29461
29462         Tests for module 'uninorm/u8-normcmp'.
29463         * tests/uninorm/test-u8-normcmp.c: New file.
29464         * modules/uninorm/u8-normcmp-tests: New file.
29465
29466         New module 'uninorm/u32-normcmp'.
29467         * lib/uninorm/u32-normcmp.c: New file.
29468         * modules/uninorm/u32-normcmp: New file.
29469
29470         New module 'uninorm/u16-normcmp'.
29471         * lib/uninorm/u16-normcmp.c: New file.
29472         * modules/uninorm/u16-normcmp: New file.
29473
29474         New module 'uninorm/u8-normcmp'.
29475         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29476         declarations.
29477         * lib/uninorm/u8-normcmp.c: New file.
29478         * lib/uninorm/u-normcmp.h: New file.
29479         * modules/uninorm/u8-normcmp: New file.
29480
29481 2009-03-06  Bruno Haible  <bruno@clisp.org>
29482
29483         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29484         Reported by Eric Blake.
29485
29486 2009-03-06  Eric Blake  <ebb9@byu.net>
29487             Bruno Haible  <bruno@clisp.org>
29488
29489         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29490         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29491         condition.
29492         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29493         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29494         condition.
29495         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29496
29497 2009-03-06  Eric Blake  <ebb9@byu.net>
29498
29499         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29500         to avoid compiler warnings.
29501         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29502
29503 2009-03-05  Bruno Haible  <bruno@clisp.org>
29504
29505         * tests/test-ftell.c (main): Disable test beyond end of file on
29506         FreeMiNT.
29507         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29508
29509 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29510
29511         * lib/filevercmp.c: Move hidden files up in ordering.
29512         * tests/test-filevercmp.c: Add tests for hidden files.
29513
29514 2009-03-04  Bruno Haible  <bruno@clisp.org>
29515
29516         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29517         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29518         AM_CFLAGS.
29519         Reported by Simon Josefsson.
29520
29521 2009-03-03  Bruno Haible  <bruno@clisp.org>
29522
29523         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29524         Reported by Simon Josefsson.
29525
29526         * doc/ld-version-script.texi: Update node reference.
29527
29528 2009-03-03  Bruno Haible  <bruno@clisp.org>
29529
29530         * modules/visibility (License): Change to 'unlimited'.
29531         Suggested by Simon Josefsson.
29532
29533 2009-03-03  Jim Meyering  <meyering@redhat.com>
29534
29535         unlinkdir: cannot_unlink_dir may modify process state
29536         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29537         it's neither thread-safe nor appropriate for use in a library.
29538
29539 2009-03-03  Eric Blake  <ebb9@byu.net>
29540
29541         test-closein: silence test under Darwin
29542         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29543         care if it dies from EPIPE or EBADF.
29544
29545 2009-03-03  Bruno Haible  <bruno@clisp.org>
29546
29547         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29548         earlier.
29549         * doc/visibility.texi: Fix @node and @section.
29550
29551 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29552
29553         * doc/gnulib.texi: Link to sections for ld version script and
29554         visibility.
29555         * doc/visibility.texi: Add @node and @section.
29556         * modules/ld-version-script: New module.
29557         * m4/ld-version-script.m4: New file.
29558         * doc/ld-version-script.texi: New file.
29559
29560 2009-03-02  David Lutterkort  <lutter@redhat.com>
29561
29562         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29564
29565 2009-03-02  Bruno Haible  <bruno@clisp.org>
29566
29567         * doc/visibility.texi: Mention libtool's -export-symbols option.
29568
29569 2009-03-02  Jim Meyering  <meyering@redhat.com>
29570
29571         announce-gen: new option: --no-print-checksums
29572         * build-aux/announce-gen (usage): Describe it.
29573         (print_checksums): Print a newline here, not in the [*] footnote.
29574         (main): Honor it.
29575
29576 2009-03-01  Bruno Haible  <bruno@clisp.org>
29577
29578         Use socklen_t in the native Windows replacements prototypes.
29579         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29580         instead of 'int'.
29581         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29582         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29583         * modules/getsockopt (Depends-on): Add socklen.
29584         * modules/setsockopt (Depends-on): Add socklen.
29585
29586 2009-03-01  Bruno Haible  <bruno@clisp.org>
29587
29588         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29589         least 4.2.
29590
29591 2009-03-01  Eric Blake  <ebb9@byu.net>
29592             Bruno Haible  <bruno@clisp.org>
29593
29594         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29595         error messages.
29596         * lib/wait-process.c (wait_subprocess): Omit error message about
29597         deadly signal sent to the child of termsigp != NULL.
29598
29599 2009-03-01  Eric Blake  <ebb9@byu.net>
29600
29601         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29602
29603 2009-03-01  Bruno Haible  <bruno@clisp.org>
29604
29605         Avoid a gcc warning.
29606         * tests/test-sched.c (b): Make global.
29607         Reported by Eric Blake.
29608
29609 2009-01-19  Martin Lambers  <marlam@marlam.de>
29610
29611         Provide POSIX semantics for socket timeout options on W32.
29612         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29613         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29614         * modules/setsockopt: Depend on sys_time module for struct timeval.
29615         * modules/getsockopt: Depend on sys_time module for struct timeval.
29616
29617 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29618
29619         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29620         __USE_GNU, for consistency with netdb.in.h.
29621         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29622
29623 2009-03-01  Bruno Haible  <bruno@clisp.org>
29624
29625         More support for FreeMiNT.
29626         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29627         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29628
29629 2009-03-01  Bruno Haible  <bruno@clisp.org>
29630
29631         More support for FreeMiNT.
29632         * lib/fpurge.c (fpurge): Correct last commit.
29633         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29634
29635 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29636
29637         Fix unportable awk script in vc-list-files.
29638         * build-aux/vc-list-files: In the replacement awk script, use
29639         substr with a second argument of 1, not zero.
29640         Report by Simon Josefsson.
29641
29642 2009-02-28  Bruno Haible  <bruno@clisp.org>
29643
29644         More support for FreeMiNT.
29645         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29646         to FreeMiNT today.
29647         * lib/fwriting.c (fwriting): Likewise.
29648         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29649
29650 2009-02-28  Bruno Haible  <bruno@clisp.org>
29651
29652         * tests/test-freadseek.c (main): Disable test beyond end of file on
29653         FreeMiNT.
29654         * tests/test-ftello.c (main): Likewise.
29655         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29656
29657 2009-02-28  Bruno Haible  <bruno@clisp.org>
29658
29659         Add tentative support for FreeMiNT.
29660         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29661         * lib/fpurge.c (fpurge): Likewise.
29662         * lib/freadable.c (freadable): Likewise.
29663         * lib/freading.c (freading): Likewise.
29664         * lib/freadptr.c (freadptr): Likewise.
29665         * lib/freadseek.c (freadptrinc): Likewise.
29666         * lib/fseeko.c (rpl_fseeko): Likewise.
29667         * lib/fseterr.c (fseterr): Likewise.
29668         * lib/fwritable.c (fwritable): Likewise.
29669         * lib/fwriting.c (fwriting): Likewise.
29670         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29671         Hourihane.
29672         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29673
29674 2009-02-28  Bruno Haible  <bruno@clisp.org>
29675
29676         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29677         SIGCHLD.
29678         Reported by Jim Meyering.
29679
29680 2009-02-28  Bruno Haible  <bruno@clisp.org>
29681
29682         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29683         Mention the results of these tests on various platforms.
29684         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29685         order.
29686         * doc/posix-functions/printf.texi: Likewise.
29687         * doc/posix-functions/snprintf.texi: Likewise.
29688         * doc/posix-functions/sprintf.texi: Likewise.
29689         * doc/posix-functions/vfprintf.texi: Likewise.
29690         * doc/posix-functions/vprintf.texi: Likewise.
29691         * doc/posix-functions/vsnprintf.texi: Likewise.
29692         * doc/posix-functions/vsprintf.texi: Likewise.
29693         * doc/glibc-functions/obstack_printf.texi: Likewise.
29694         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29695
29696 2009-02-28  Bruno Haible  <bruno@clisp.org>
29697
29698         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29699         Reported by Loïc Minier <lool@dooz.org>.
29700
29701 2009-02-27  Bruno Haible  <bruno@clisp.org>
29702
29703         * gnulib-tool (func_import): Make the sed expression used to create the
29704         sed script for updating the .gitignore file POSIX compliant.
29705         Reported by Eric Blake.
29706
29707 2009-02-27  Bruno Haible  <bruno@clisp.org>
29708
29709         * gnulib-tool (sed): Don't alias as "sed --posix".
29710         Reported by Eric Blake.
29711
29712 2009-02-27  Bruno Haible  <bruno@clisp.org>
29713
29714         Avoid test link errors.
29715         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29716         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29717         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29718         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29720
29721 2009-02-27  Bruno Haible  <bruno@clisp.org>
29722
29723         Avoid spurious "(cached)" in configure output.
29724         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29725         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29726         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29727         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29728         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29729         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29730         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29731         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29732         Reported by Eric Blake.
29733
29734 2009-02-27  Eric Blake  <ebb9@byu.net>
29735
29736         printf: fix regression in previous patch
29737         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29738
29739 2009-02-27  Bruno Haible  <bruno@clisp.org>
29740
29741         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29742         value.
29743         * lib/stdint.in.h: Likewise.
29744         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29745
29746 2009-02-27  Eric Blake  <ebb9@byu.net>
29747
29748         doc: mention more functions added in cygwin 1.7.0
29749         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29750         addition.
29751         * doc/posix-functions/open_wmemstream.texi: Likewise.
29752         * doc/posix-functions/wcsnlen.texi: Likewise.
29753         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29754         * doc/posix-functions/wcstod.texi: Likewise.
29755         * doc/posix-functions/wcstof.texi: Likewise.
29756         * doc/posix-functions/wcstoimax.texi: Likewise.
29757         * doc/posix-functions/wcstok.texi: Likewise.
29758         * doc/posix-functions/wcstoumax.texi: Likewise.
29759
29760         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29762         * doc/posix-functions/fprintf.texi: Update.
29763         * doc/posix-functions/printf.texi: Update.
29764         * doc/posix-functions/snprintf.texi: Update.
29765         * doc/posix-functions/sprintf.texi: Update.
29766         * doc/posix-functions/vfprintf.texi: Update.
29767         * doc/posix-functions/vprintf.texi: Update.
29768         * doc/posix-functions/vsnprintf.texi: Update.
29769         * doc/posix-functions/vsprintf.texi: Update.
29770         * doc/glibc-functions/obstack_printf.texi: Update.
29771         * doc/glibc-functions/obstack_vprintf.texi: Update.
29772
29773 2009-02-26  Eric Blake  <ebb9@byu.net>
29774
29775         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29776         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29777         compilation bug by using runtime conversion.
29778         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29779         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29780         * modules/ceill-tests (Files): Use nan.h.
29781         * modules/floorl-tests (Files): Likewise.
29782         * modules/frexpl-tests (Files): Likewise.
29783         * modules/isnanl-tests (Files): Likewise.
29784         * modules/ldexpl-tests (Files): Likewise.
29785         * modules/roundl-tests (Files): Likewise.
29786         * modules/truncl-tests (Files): Likewise.
29787         * tests/test-ceill.c (main): Use a working NaN.
29788         * tests/test-floorl.c (main): Likewise.
29789         * tests/test-frexpl.c (main): Likewise.
29790         * tests/test-isnan.c (test_long_double): Likewise.
29791         * tests/test-isnanl.h (main): Likewise.
29792         * tests/test-ldexpl.h (main): Likewise.
29793         * tests/test-roundl.h (main): Likewise.
29794         * tests/test-truncl.h (main): Likewise.
29795         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29796
29797 2009-02-26  Eric Blake  <ebb9@byu.net>
29798             Bruno Haible  <bruno@clisp.org>
29799
29800         Work around a *printf bug with %ls on Solaris.
29801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29802         precision is specified, sprintf stops converting the wide string
29803         argument when the number of bytes that have been produced by this
29804         conversion equals or exceeds the precision.
29805         * doc/posix-functions/fprintf.texi: Update.
29806         * doc/posix-functions/printf.texi: Update.
29807         * doc/posix-functions/snprintf.texi: Update.
29808         * doc/posix-functions/sprintf.texi: Update.
29809         * doc/posix-functions/vfprintf.texi: Update.
29810         * doc/posix-functions/vprintf.texi: Update.
29811         * doc/posix-functions/vsnprintf.texi: Update.
29812         * doc/posix-functions/vsprintf.texi: Update.
29813         * doc/glibc-functions/obstack_printf.texi: Update.
29814         * doc/glibc-functions/obstack_vprintf.texi: Update.
29815
29816 2009-02-26  Eric Blake  <ebb9@byu.net>
29817
29818         stdlib: favor compiler check of random.h
29819         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29820         to avoid an ObjC random.h installed by Swarm.
29821
29822 2009-02-26  Bruno Haible  <bruno@clisp.org>
29823
29824         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29825         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29826         Reported by Gary V. Vaughan <gary@gnu.org>.
29827
29828 2009-02-26  Bruno Haible  <bruno@clisp.org>
29829
29830         Fix *printf behaviour regarding the %ls directive.
29831         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29832         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29833         NEED_PRINTF_DIRECTIVE_LS.
29834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29835         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29836         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29837         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29838         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29839         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29840         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29845         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29846         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29847         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29848         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29849         * doc/posix-functions/fprintf.texi: Update.
29850         * doc/posix-functions/printf.texi: Update.
29851         * doc/posix-functions/snprintf.texi: Update.
29852         * doc/posix-functions/sprintf.texi: Update.
29853         * doc/posix-functions/vfprintf.texi: Update.
29854         * doc/posix-functions/vprintf.texi: Update.
29855         * doc/posix-functions/vsnprintf.texi: Update.
29856         * doc/posix-functions/vsprintf.texi: Update.
29857         * doc/glibc-functions/obstack_printf.texi: Update.
29858         * doc/glibc-functions/obstack_vprintf.texi: Update.
29859         Reported by Eric Blake.
29860
29861 2009-02-25  Bruno Haible  <bruno@clisp.org>
29862
29863         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29864         with known value.
29865         Reported by Gary V. Vaughan <gary@gnu.org>.
29866
29867 2009-02-25  Bruno Haible  <bruno@clisp.org>
29868
29869         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29870         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29871         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29872         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29873         Reported by Gary V. Vaughan <gary@gnu.org>.
29874
29875 2009-02-25  Bruno Haible  <bruno@clisp.org>
29876
29877         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29878         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29879         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29880         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29881         Reported by Gary V. Vaughan <gary@gnu.org>.
29882
29883 2009-02-25  Eric Blake  <ebb9@byu.net>
29884
29885         tests: skip fseek/ftell tests if ungetc is broken
29886         * m4/ungetc.m4: New file.
29887         * modules/fseek-tests: Split test, so ungetc dependency is
29888         separate from rest of test.
29889         * modules/fseeko-tests: Likewise.
29890         * modules/ftell-tests: Likewise.
29891         * modules/ftello-tests: Likewise.
29892         * tests/test-fseek.c (main): Isolate ungetc dependency.
29893         * tests/test-fseeko.c (main): Likewise.
29894         * tests/test-ftell.c (main): Likewise.
29895         * tests/test-ftello.c (main): Likewise.
29896         * tests/test-fseek2.sh: New file.
29897         * tests/test-fseeko2.sh: Likewise.
29898         * tests/test-ftell2.sh: Likewise.
29899         * tests/test-ftello2.sh: Likewise.
29900
29901 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29902
29903         test-getaddrinfo: fix usage of skip return code 77
29904         * tests/test-gettaddrinfo.c: Return skip code 77 only
29905         for first occurance of skip (4x77 is not 77)
29906
29907 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29908
29909         strtod: avoid C99 decl-after-statement
29910         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29911
29912 2009-02-24  Eric Blake  <ebb9@byu.net>
29913
29914         strtod: detect HP-UX 11.31 bug
29915         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29916         Reported by Gary V. Vaughan.
29917
29918 2009-02-23  Bruno Haible  <bruno@clisp.org>
29919
29920         Fix invalid read past end of memory block.
29921         * lib/vasnprintf.c (DCHAR_SET): Define.
29922         (local_wcslen): Define only when needed.
29923         (local_strnlen, local_wcsnlen): New functions.
29924         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29925         directives that involve a conversion ourselves.
29926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29927         wcsnlen, mbrtowc, wcrtomb.
29928         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29929         * tests/test-vasprintf-posix.c (test_function): Likewise.
29930         * tests/test-snprintf-posix.h (test_function): Likewise.
29931         * tests/test-sprintf-posix.h (test_function): Likewise.
29932         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29933
29934 2009-02-22  Bruno Haible  <bruno@clisp.org>
29935
29936         Implement new clarified decomposition of Hangul syllables.
29937         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29938         of type LTV, return only a pairwise decomposition.
29939         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29940         Likewise.
29941         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29942         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29943         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29944
29945 2009-02-22  Bruno Haible  <bruno@clisp.org>
29946
29947         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29948         zero-length results and shrink excess allocated memory.
29949         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29950         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29951         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29952         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29953         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29954         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29955         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29956         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29957         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29958         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29959         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29960         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29961
29962 2009-02-21  Bruno Haible  <bruno@clisp.org>
29963
29964         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29965         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29966         spaces after a period. Put a space between a macro name and its
29967         argument list. Trivial rewordings.
29968         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29969         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29970         (main): Return 0 explicitly.
29971
29972 2009-02-21  Bruno Haible  <bruno@clisp.org>
29973
29974         Tests for module 'uninorm/filter'.
29975         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29976         * modules/uninorm/filter-tests: New file.
29977
29978         New module 'uninorm/filter'.
29979         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29980         uninorm_filter_flush, uninorm_filter_free): New declarations.
29981         * lib/uninorm/uninorm-filter.c: New file.
29982         * modules/uninorm/filter: New file.
29983
29984 2009-02-21  Bruno Haible  <bruno@clisp.org>
29985
29986         Tests for module 'uninorm/nfkc'.
29987         * tests/uninorm/test-nfkc.c: New file.
29988         * tests/uninorm/test-u8-nfkc.c: New file.
29989         * tests/uninorm/test-u16-nfkc.c: New file.
29990         * tests/uninorm/test-u32-nfkc.c: New file.
29991         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29992         * tests/uninorm/test-u32-nfkc-big.c: New file.
29993         * modules/uninorm/nfkc-tests: New file.
29994
29995         New module 'uninorm/nfkc'.
29996         * lib/uninorm/nfkc.c: New file.
29997         * modules/uninorm/nfkc: New file.
29998
29999         Tests for module 'uninorm/nfkd'.
30000         * tests/uninorm/test-nfkd.c: New file.
30001         * tests/uninorm/test-u8-nfkd.c: New file.
30002         * tests/uninorm/test-u16-nfkd.c: New file.
30003         * tests/uninorm/test-u32-nfkd.c: New file.
30004         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30005         * tests/uninorm/test-u32-nfkd-big.c: New file.
30006         * modules/uninorm/nfkd-tests: New file.
30007
30008         New module 'uninorm/nfkd'.
30009         * lib/uninorm/nfkd.c: New file.
30010         * modules/uninorm/nfkd: New file.
30011
30012         Tests for module 'uninorm/nfc'.
30013         * tests/uninorm/test-nfc.c: New file.
30014         * tests/uninorm/test-u8-nfc.c: New file.
30015         * tests/uninorm/test-u16-nfc.c: New file.
30016         * tests/uninorm/test-u32-nfc.c: New file.
30017         * tests/uninorm/test-u32-nfc-big.sh: New file.
30018         * tests/uninorm/test-u32-nfc-big.c: New file.
30019         * modules/uninorm/nfc-tests: New file.
30020
30021         New module 'uninorm/nfc'.
30022         * lib/uninorm/nfc.c: New file.
30023         * modules/uninorm/nfc: New file.
30024
30025         Tests for module 'uninorm/nfd'.
30026         * tests/uninorm/test-nfd.c: New file.
30027         * tests/uninorm/test-u8-nfd.c: New file.
30028         * tests/uninorm/test-u16-nfd.c: New file.
30029         * tests/uninorm/test-u32-nfd.c: New file.
30030         * tests/uninorm/test-u32-nfd-big.sh: New file.
30031         * tests/uninorm/test-u32-nfd-big.c: New file.
30032         * tests/uninorm/test-u32-normalize-big.h: New file.
30033         * tests/uninorm/test-u32-normalize-big.c: New file.
30034         * tests/uninorm/NormalizationTest.txt: New file, created from
30035         Unicode 5.1.0 NormalizationTest.txt.
30036         * modules/uninorm/nfd-tests: New file.
30037
30038         New module 'uninorm/nfd'.
30039         * lib/uninorm/nfd.c: New file.
30040         * modules/uninorm/nfd: New file.
30041
30042         New module 'uninorm/u32-normalize'.
30043         * lib/uninorm/u32-normalize.c: New file.
30044         * modules/uninorm/u32-normalize: New file.
30045
30046         New module 'uninorm/u16-normalize'.
30047         * lib/uninorm/u16-normalize.c: New file.
30048         * modules/uninorm/u16-normalize: New file.
30049
30050         New module 'uninorm/u8-normalize'.
30051         * lib/uninorm/u8-normalize.c: New file.
30052         * lib/uninorm/normalize-internal.h: New file.
30053         * lib/uninorm/u-normalize-internal.h: New file.
30054         * modules/uninorm/u8-normalize: New file.
30055
30056         New module 'uninorm/decompose-internal'.
30057         * lib/uninorm/decompose-internal.c: New file.
30058         * modules/uninorm/decompose-internal: New file.
30059
30060         Tests for module 'uninorm/composition'.
30061         * tests/uninorm/test-composition.c: New file.
30062         * modules/uninorm/composition-tests: New file.
30063
30064         New module 'uninorm/composition'.
30065         * lib/uninorm/composition.c: New file.
30066         * lib/uninorm/composition-table.gperf: New file, generated by
30067         gen-uni-tables.
30068         * modules/uninorm/composition: New file.
30069
30070         Tests for module 'uninorm/compat-decomposition'.
30071         * tests/uninorm/test-compat-decomposition.c: New file.
30072         * modules/uninorm/compat-decomposition-tests: New file.
30073
30074         New module 'uninorm/compat-decomposition'.
30075         * lib/uninorm/decompose-internal.h: New file.
30076         * lib/uninorm/compat-decomposition.c: New file.
30077         * modules/uninorm/compat-decomposition: New file.
30078
30079         Tests for module 'uninorm/canonical-decomposition'.
30080         * tests/uninorm/test-canonical-decomposition.c: New file.
30081         * modules/uninorm/canonical-decomposition-tests: New file.
30082
30083         New module 'uninorm/canonical-decomposition'.
30084         * lib/uninorm/canonical-decomposition.c: New file.
30085         * modules/uninorm/canonical-decomposition: New file.
30086
30087         Tests for module 'uninorm/decomposition'.
30088         * tests/uninorm/test-decomposition.c: New file.
30089         * modules/uninorm/decomposition-tests: New file.
30090
30091         New module 'uninorm/decomposition'.
30092         * lib/uninorm/decomposition.c: New file.
30093         * modules/uninorm/decomposition: New file.
30094
30095         New module 'uninorm/decomposition-table'.
30096         * lib/uninorm/decomposition-table.h: New file.
30097         * lib/uninorm/decomposition-table.c: New file.
30098         * lib/uninorm/decomposition-table1.h: New file, generated by
30099         gen-uni-tables.
30100         * lib/uninorm/decomposition-table2.h: New file, generated by
30101         gen-uni-tables.
30102         * modules/uninorm/decomposition-table: New file.
30103
30104         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30105         (UC_DECOMP_*): New enumeration items.
30106         (get_decomposition): New function.
30107         (struct decomp_table): New type.
30108         (output_decomposition, output_decomposition_tables): New functions.
30109         (unicode_composition_exclusions): New variable.
30110         (fill_composition_exclusions, debug_output_composition_tables): New
30111         functions.
30112         (main): Accept one more argument. Invoke fill_composition_exclusions.
30113         Output decomposition and composition tables.
30114
30115         New module 'uninorm/base'.
30116         * lib/uninorm.h: New file.
30117         * lib/unictype.h: Update comment.
30118         * modules/uninorm/base: New file.
30119
30120 2009-02-21  David Lutterkort  <lutter@redhat.com>
30121
30122         Tests for module 'safe-alloc'.
30123         * tests/test-safe-alloc.c: New file.
30124         * modules/safe-alloc-tests: New file.
30125
30126         New module 'safe-alloc'.
30127         * lib/safe-alloc.h: New file.
30128         * lib/safe-alloc.c: New file.
30129         * m4/safe-alloc.m4: New file.
30130         * modules/safe-alloc: New file.
30131         * doc/safe-alloc.texi: New file.
30132         * doc/gnulib.texi: Include it.
30133         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30134         safe-alloc.
30135
30136 2009-02-18  Bruno Haible  <bruno@clisp.org>
30137
30138         Fix link error on non-glibc systems.
30139         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30140         variable.
30141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30142
30143 2009-02-18  Jim Meyering  <meyering@redhat.com>
30144
30145         fts: avoid used-uninitialized error due to recent change
30146         * lib/fts.c (fts_read): Guard uses of the new member,
30147         parent->fts_n_dirs_remaining, since it's not relevant for
30148         the parent of a directory specified on the command-line.
30149
30150 2009-02-17  James Youngman  <jay@gnu.org>
30151             Bruno Haible  <bruno@clisp.org>
30152
30153         * m4/include_next.m4: Reformulate comment.
30154
30155 2009-02-16  Jim Meyering  <meyering@redhat.com>
30156
30157         fts: add #if guards so that the fts_lgpl module still builds
30158         * lib/fts.c: Guard just-added hash-table-using parts with
30159         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30160         Reported by Simon Josefsson.
30161
30162 2009-02-15  Bruno Haible  <bruno@clisp.org>
30163
30164         * modules/array-mergesort-tests: New file.
30165         * tests/test-array-mergesort.c: New file.
30166
30167         New module 'array-mergesort'.
30168         * modules/array-mergesort: New file.
30169         * lib/array-mergesort.h: New file.
30170
30171 2009-02-15  Bruno Haible  <bruno@clisp.org>
30172
30173         Fix 2009-02-07 commit.
30174         * lib/gen-uni-tables.c (output_predicate, output_category,
30175         output_combclass, output_bidi_category, output_decimal_digit,
30176         output_digit, output_numeric, output_mirror, output_scripts,
30177         output_ident_category, output_simple_mapping): Fix format directives.
30178         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30179
30180 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30181
30182         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30183         fixes are available from IBM.
30184
30185 2009-02-13  Jim Meyering  <meyering@redhat.com>
30186
30187         fts: arrange not to stat non-directories in more cases
30188         This makes GNU find (when it doesn't need to stat each file)
30189         *much* more efficient at traversing reiserfs file systems.
30190         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30191         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30192         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30193         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30194         (leaf_optimization_applies): New function.
30195         (LCO_hash, LCO_compare): New helper functions.
30196         (link_count_optimize_ok): New function.
30197         (fts_stat): Initialize new member (if dir).
30198         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30199         we've just stat'ed a directory.  Skip the stat call when possible.
30200         ---
30201         Note this AFS-related exchange:
30202         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30203         and note find's pioctl call in find/fstype.c.
30204         But that is necessary only if you want to enable the
30205         optimization for AFS, and for now, I don't.
30206
30207         fts: move a function definition "up" (no semantic change)
30208         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30209         "up" to precede upcoming use of a related function.
30210
30211 2009-02-11  Jim Meyering  <meyering@redhat.com>
30212
30213         fts: correct internal computation of nlinks (optimization-related)
30214         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30215         whether the current entry is a directory, so don't test it.
30216
30217 2009-02-10  Bruno Haible  <bruno@clisp.org>
30218
30219         Tests for module 'uniwbrk/ulc-wordbreaks'.
30220         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30221         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30222         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30223
30224         Tests for module 'uniwbrk/u32-wordbreaks'.
30225         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30226         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30227
30228         Tests for module 'uniwbrk/u16-wordbreaks'.
30229         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30230         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30231
30232         Tests for module 'uniwbrk/u8-wordbreaks'.
30233         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30234         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30235
30236 2009-02-10  Bruno Haible  <bruno@clisp.org>
30237
30238         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30239         property.
30240         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30241         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30242         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30243
30244 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30245
30246         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30247         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30248
30249 2009-02-10  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30252         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30253         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30254         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30255         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30256         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30257
30258 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30259
30260         * lib/sockets.h (gl_fd_to_handle): New function.
30261
30262         * tests/test-sockets.c: Call gl_fd_to_handle.
30263
30264 2009-02-09  Bruno Haible  <bruno@clisp.org>
30265
30266         * doc/havelib.texi: Document the conventions on bi-arch systems.
30267
30268 2009-02-08  Bruno Haible  <bruno@clisp.org>
30269
30270         Document the AC_LIB_LINKFLAGS macro.
30271         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30272         * doc/gnulib.texi: Include it.
30273
30274 2009-02-08  Bruno Haible  <bruno@clisp.org>
30275
30276         Fix wrong order of sections, compared to TOC.
30277         * doc/gnulib.texi: Include relocatable-maint.texi after the
30278         "Regular expressions" node, not before.
30279
30280 2009-02-08  Bruno Haible  <bruno@clisp.org>
30281
30282         Tests for module 'unicase/totitle'.
30283         * modules/unicase/totitle-tests: New file.
30284
30285         Tests for module 'unicase/tolower'.
30286         * modules/unicase/tolower-tests: New file.
30287
30288         Tests for module 'unicase/toupper'.
30289         * modules/unicase/toupper-tests: New file.
30290         * tests/unicase/test-mapping-part1.h: New file.
30291         * tests/unicase/test-mapping-part2.h: New file.
30292
30293         New module 'unicase/totitle'.
30294         * modules/unicase/totitle: New file.
30295         * lib/unicase/totitle.c: New file.
30296
30297         New module 'unicase/tolower'.
30298         * modules/unicase/tolower: New file.
30299         * lib/unicase/tolower.c: New file.
30300
30301         New module 'unicase/toupper'.
30302         * modules/unicase/toupper: New file.
30303         * lib/unicase/toupper.c: New file.
30304         * lib/unicase/simple-mapping.h: New file.
30305
30306         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30307         (mapping_table): New structure.
30308         (output_simple_mapping): New function.
30309         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30310         * modules/gen-uni-tables (Description): Update.
30311         * lib/unicase/toupper.h: New file, automatically generated by
30312         gen-uni-tables.
30313         * lib/unicase/tolower.h: New file, automatically generated by
30314         gen-uni-tables.
30315         * lib/unicase/totitle.h: New file, automatically generated by
30316         gen-uni-tables.
30317         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30318         gen-uni-tables.
30319         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30320         gen-uni-tables.
30321         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30322         gen-uni-tables.
30323
30324         New module 'unicase/base'.
30325         * modules/unicase/base: New file.
30326         * lib/unicase.h: New file.
30327
30328 2009-02-08  Bruno Haible  <bruno@clisp.org>
30329
30330         New module 'uniwbrk/ulc-wordbreaks'.
30331         * modules/uniwbrk/ulc-wordbreaks: New file.
30332         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30333
30334         New module 'uniwbrk/u32-wordbreaks'.
30335         * modules/uniwbrk/u32-wordbreaks: New file.
30336         * lib/uniwbrk/u32-wordbreaks.c: New file.
30337
30338         New module 'uniwbrk/u16-wordbreaks'.
30339         * modules/uniwbrk/u16-wordbreaks: New file.
30340         * lib/uniwbrk/u16-wordbreaks.c: New file.
30341
30342         New module 'uniwbrk/u8-wordbreaks'.
30343         * modules/uniwbrk/u8-wordbreaks: New file.
30344         * lib/uniwbrk/u8-wordbreaks.c: New file.
30345         * lib/uniwbrk/u-wordbreaks.h: New file.
30346
30347         New module 'uniwbrk/table'.
30348         * modules/uniwbrk/table: New file.
30349         * lib/uniwbrk/wbrktable.h: New file.
30350         * lib/uniwbrk/wbrktable.c: New file.
30351
30352         New module 'uniwbrk/wordbreak-property'.
30353         * modules/uniwbrk/wordbreak-property: New file.
30354         * lib/uniwbrk/wordbreak-property.c: New file.
30355
30356         * lib/gen-uni-tables.c (WBP_*): New enum items.
30357         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30358         (unicode_org_wbp): New variable.
30359         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30360         New functions.
30361         (wbp_table): New structure.
30362         (output_wbp, output_wbrk_tables): New functions.
30363         (main): Accept additional argument. Invoke fill_org_wbp,
30364         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30365         output_wbrk_tables.
30366         * modules/gen-uni-tables (Description): Update.
30367         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30368         gen-uni-tables.
30369
30370         New module 'uniwbrk/base'.
30371         * modules/uniwbrk/base: New file.
30372         * lib/uniwbrk.h: New file.
30373
30374 2009-02-08  Bruno Haible  <bruno@clisp.org>
30375
30376         Update to Unicode 5.1.0.
30377         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30378         U+2185..U+2188.
30379         (is_property_default_ignorable_code_point): Don't include characters
30380         of category Cc or Cs and not-a-characters.
30381         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30382         U+0D79, U+109E, U+109F, U+A60C.
30383         * lib/unictype/bidi_of.h: Regenerated.
30384         * lib/unictype/blocks.h: Regenerated.
30385         * lib/unictype/categ_C.h: Regenerated.
30386         * lib/unictype/categ_Cf.h: Regenerated.
30387         * lib/unictype/categ_Cn.h: Regenerated.
30388         * lib/unictype/categ_L.h: Regenerated.
30389         * lib/unictype/categ_Ll.h: Regenerated.
30390         * lib/unictype/categ_Lm.h: Regenerated.
30391         * lib/unictype/categ_Lo.h: Regenerated.
30392         * lib/unictype/categ_Lu.h: Regenerated.
30393         * lib/unictype/categ_M.h: Regenerated.
30394         * lib/unictype/categ_Mc.h: Regenerated.
30395         * lib/unictype/categ_Me.h: Regenerated.
30396         * lib/unictype/categ_Mn.h: Regenerated.
30397         * lib/unictype/categ_N.h: Regenerated.
30398         * lib/unictype/categ_Nd.h: Regenerated.
30399         * lib/unictype/categ_Nl.h: Regenerated.
30400         * lib/unictype/categ_No.h: Regenerated.
30401         * lib/unictype/categ_P.h: Regenerated.
30402         * lib/unictype/categ_Pd.h: Regenerated.
30403         * lib/unictype/categ_Pe.h: Regenerated.
30404         * lib/unictype/categ_Pf.h: Regenerated.
30405         * lib/unictype/categ_Pi.h: Regenerated.
30406         * lib/unictype/categ_Po.h: Regenerated.
30407         * lib/unictype/categ_Ps.h: Regenerated.
30408         * lib/unictype/categ_S.h: Regenerated.
30409         * lib/unictype/categ_Sk.h: Regenerated.
30410         * lib/unictype/categ_Sm.h: Regenerated.
30411         * lib/unictype/categ_So.h: Regenerated.
30412         * lib/unictype/categ_of.h: Regenerated.
30413         * lib/unictype/combining.h: Regenerated.
30414         * lib/unictype/ctype_alnum.h: Regenerated.
30415         * lib/unictype/ctype_alpha.h: Regenerated.
30416         * lib/unictype/ctype_graph.h: Regenerated.
30417         * lib/unictype/ctype_lower.h: Regenerated.
30418         * lib/unictype/ctype_print.h: Regenerated.
30419         * lib/unictype/ctype_punct.h: Regenerated.
30420         * lib/unictype/ctype_upper.h: Regenerated.
30421         * lib/unictype/decdigit.h: Regenerated.
30422         * lib/unictype/digit.h: Regenerated.
30423         * lib/unictype/mirror.h: Regenerated.
30424         * lib/unictype/numeric.h: Regenerated.
30425         * lib/unictype/pr_alphabetic.h: Regenerated.
30426         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30427         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30428         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30429         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30430         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30431         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30432         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30433         * lib/unictype/pr_combining.h: Regenerated.
30434         * lib/unictype/pr_dash.h: Regenerated.
30435         * lib/unictype/pr_decimal_digit.h: Regenerated.
30436         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30437         * lib/unictype/pr_deprecated.h: Regenerated.
30438         * lib/unictype/pr_diacritic.h: Regenerated.
30439         * lib/unictype/pr_extender.h: Regenerated.
30440         * lib/unictype/pr_format_control.h: Regenerated.
30441         * lib/unictype/pr_grapheme_base.h: Regenerated.
30442         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30443         * lib/unictype/pr_grapheme_link.h: Regenerated.
30444         * lib/unictype/pr_id_continue.h: Regenerated.
30445         * lib/unictype/pr_id_start.h: Regenerated.
30446         * lib/unictype/pr_ideographic.h: Regenerated.
30447         * lib/unictype/pr_ignorable_control.h: Regenerated.
30448         * lib/unictype/pr_lowercase.h: Regenerated.
30449         * lib/unictype/pr_math.h: Regenerated.
30450         * lib/unictype/pr_numeric.h: Regenerated.
30451         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30452         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30453         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30454         * lib/unictype/pr_other_id_continue.h: Regenerated.
30455         * lib/unictype/pr_other_lowercase.h: Regenerated.
30456         * lib/unictype/pr_other_math.h: Regenerated.
30457         * lib/unictype/pr_punctuation.h: Regenerated.
30458         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30459         * lib/unictype/pr_soft_dotted.h: Regenerated.
30460         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30461         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30462         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30463         * lib/unictype/pr_uppercase.h: Regenerated.
30464         * lib/unictype/pr_xid_continue.h: Regenerated.
30465         * lib/unictype/pr_xid_start.h: Regenerated.
30466         * lib/unictype/pr_zero_width.h: Regenerated.
30467         * lib/unictype/scripts.h: Regenerated.
30468         * lib/unictype/scripts_byname.gperf: Regenerated.
30469         * lib/unictype/sy_java_ident.h: Regenerated.
30470         * lib/unilbrk/lbrkprop1.h: Regenerated.
30471         * lib/unilbrk/lbrkprop2.h: Regenerated.
30472         * tests/unictype/test-categ_C.c: Regenerated.
30473         * tests/unictype/test-categ_Cf.c: Regenerated.
30474         * tests/unictype/test-categ_Cn.c: Regenerated.
30475         * tests/unictype/test-categ_L.c: Regenerated.
30476         * tests/unictype/test-categ_Ll.c: Regenerated.
30477         * tests/unictype/test-categ_Lm.c: Regenerated.
30478         * tests/unictype/test-categ_Lo.c: Regenerated.
30479         * tests/unictype/test-categ_Lu.c: Regenerated.
30480         * tests/unictype/test-categ_M.c: Regenerated.
30481         * tests/unictype/test-categ_Mc.c: Regenerated.
30482         * tests/unictype/test-categ_Me.c: Regenerated.
30483         * tests/unictype/test-categ_Mn.c: Regenerated.
30484         * tests/unictype/test-categ_N.c: Regenerated.
30485         * tests/unictype/test-categ_Nd.c: Regenerated.
30486         * tests/unictype/test-categ_Nl.c: Regenerated.
30487         * tests/unictype/test-categ_No.c: Regenerated.
30488         * tests/unictype/test-categ_P.c: Regenerated.
30489         * tests/unictype/test-categ_Pd.c: Regenerated.
30490         * tests/unictype/test-categ_Pe.c: Regenerated.
30491         * tests/unictype/test-categ_Pf.c: Regenerated.
30492         * tests/unictype/test-categ_Pi.c: Regenerated.
30493         * tests/unictype/test-categ_Po.c: Regenerated.
30494         * tests/unictype/test-categ_Ps.c: Regenerated.
30495         * tests/unictype/test-categ_S.c: Regenerated.
30496         * tests/unictype/test-categ_Sk.c: Regenerated.
30497         * tests/unictype/test-categ_Sm.c: Regenerated.
30498         * tests/unictype/test-categ_So.c: Regenerated.
30499         * tests/unictype/test-ctype_alnum.c: Regenerated.
30500         * tests/unictype/test-ctype_alpha.c: Regenerated.
30501         * tests/unictype/test-ctype_graph.c: Regenerated.
30502         * tests/unictype/test-ctype_lower.c: Regenerated.
30503         * tests/unictype/test-ctype_print.c: Regenerated.
30504         * tests/unictype/test-ctype_punct.c: Regenerated.
30505         * tests/unictype/test-ctype_upper.c: Regenerated.
30506         * tests/unictype/test-decdigit.h: Regenerated.
30507         * tests/unictype/test-digit.h: Regenerated.
30508         * tests/unictype/test-numeric.h: Regenerated.
30509         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30510         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30511         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30512         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30513         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30514         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30515         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30516         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30517         * tests/unictype/test-pr_combining.c: Regenerated.
30518         * tests/unictype/test-pr_dash.c: Regenerated.
30519         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30520         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30521         * tests/unictype/test-pr_deprecated.c: Regenerated.
30522         * tests/unictype/test-pr_diacritic.c: Regenerated.
30523         * tests/unictype/test-pr_extender.c: Regenerated.
30524         * tests/unictype/test-pr_format_control.c: Regenerated.
30525         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30526         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30527         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30528         * tests/unictype/test-pr_id_continue.c: Regenerated.
30529         * tests/unictype/test-pr_id_start.c: Regenerated.
30530         * tests/unictype/test-pr_ideographic.c: Regenerated.
30531         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30532         * tests/unictype/test-pr_lowercase.c: Regenerated.
30533         * tests/unictype/test-pr_math.c: Regenerated.
30534         * tests/unictype/test-pr_numeric.c: Regenerated.
30535         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30536         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30537         Regenerated.
30538         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30539         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30540         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30541         * tests/unictype/test-pr_other_math.c: Regenerated.
30542         * tests/unictype/test-pr_punctuation.c: Regenerated.
30543         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30544         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30545         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30546         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30547         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30548         * tests/unictype/test-pr_uppercase.c: Regenerated.
30549         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30550         * tests/unictype/test-pr_xid_start.c: Regenerated.
30551         * tests/unictype/test-pr_zero_width.c: Regenerated.
30552
30553         Update to Unicode 5.1.0.
30554         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30555         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30556         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30557         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30558         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30559         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30560         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30561         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30562         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30563         (nonspacing_table_ind): Update.
30564         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30565
30566         Update to Unicode 5.1.0.
30567         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30568         code transform.
30569         * lib/uniname/uniname.c (unicode_character_name,
30570         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30571         * lib/uniname/uninames.h: Regenerated.
30572         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30573
30574 2009-02-07  Bruno Haible  <bruno@clisp.org>
30575
30576         Merge gen-ctype and gen-lbrk into a single program.
30577         * lib/gen-uni-tables.c: New file, incorporating
30578         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30579         Add directory prefixes to the names of the generated files.
30580         * lib/unictype/gen-ctype.c: Remove file.
30581         * lib/unilbrk/gen-lbrk.c: Remove file.
30582         * modules/gen-uni-tables: New file.
30583         * modules/unictype/gen-ctype: Remove file.
30584         * modules/unilbrk/gen-lbrk: Remove file.
30585
30586 2009-02-07  Bruno Haible  <bruno@clisp.org>
30587
30588         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30589
30590         New module 'unistr/u32-strcoll'.
30591         * modules/unistr/u32-strcoll: New file.
30592         * lib/unistr/u32-strcoll.c: New file.
30593
30594         New module 'unistr/u16-strcoll'.
30595         * modules/unistr/u16-strcoll: New file.
30596         * lib/unistr/u16-strcoll.c: New file.
30597
30598         New module 'unistr/u8-strcoll'.
30599         * modules/unistr/u8-strcoll: New file.
30600         * lib/unistr/u8-strcoll.c: New file.
30601         * lib/unistr/u-strcoll.h: New file.
30602
30603 2009-02-07  Bruno Haible  <bruno@clisp.org>
30604
30605         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30606         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30607         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30608         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30609         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30610         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30611
30612 2009-02-07  Bruno Haible  <bruno@clisp.org>
30613
30614         Make 64-bit clean.
30615         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30616         output_combclass, output_bidi_category, output_decimal_digit,
30617         output_digit, output_numeric, output_mirror, output_scripts,
30618         output_ident_category): Use proper width specifier in format strings.
30619
30620 2009-02-07  Bruno Haible  <bruno@clisp.org>
30621
30622         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30623         failure behaviour.
30624
30625 2009-02-07  Jim Meyering  <meyering@redhat.com>
30626
30627         regex: avoid compilation failure with upcoming gcc-4.4
30628         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30629         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30630         "... error: integer overflow in preprocessor expression".
30631
30632 2009-02-05  Ben Pfaff  <blp@gnu.org>
30633
30634         Fix link errors on Windows when close module is used.
30635         * modules/close: Add $(LIB_CLOSE) to Link section.
30636         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30637         $(LIB_CLOSE) on Windows.
30638
30639 2009-02-05  Jim Meyering  <meyering@redhat.com>
30640
30641         still avoid unused-parameter warnings, but do it cleanly
30642         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30643         (get_fs_usage): Cast to void instead.
30644         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30645         (dev_from_mount_options, read_file_system_list): Cast to void.
30646         Prompted by Bruno Haible.
30647
30648 2009-02-04  Jim Meyering  <meyering@redhat.com>
30649
30650         fsusage.c: correct copyright year
30651         * lib/fsusage.c: Reflect year in which the change is pushed into
30652
30653         avoid misc. warnings
30654         * lib/fsusage.c (UNUSED_PARAM): Define.
30655         (get_fs_usage): Mark parameter "disk" as unused.
30656         * lib/getugroups.c (getgrent): Use "void" in prototype.
30657         * lib/mountlist.c: Mark unused parameters.
30658         (read_file_system_list): Declare a local with "const".
30659         * lib/nanosleep.c (getnow): Declare static.
30660         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30661
30662         dirfd: set errno upon failure
30663         * lib/dirfd.c: Include <errno.h>.
30664         Set errno to ENOTSUP when returning -1.
30665         * modules/dirfd (Depends-on): Add errno.
30666         Suggested by John Kodis <kodis@comcast.net>.
30667
30668 2009-02-01  Bruno Haible  <bruno@clisp.org>
30669
30670         Don't assume sizeof (long) >= sizeof (void *).
30671         * lib/memcmp.c: Include stdint.h.
30672         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30673         srcp2 to 'const byte *'.
30674         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30675         types to uintptr_t.
30676         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30677         * modules/memcmp (Depends-on): Add stdint.
30678         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30679
30680 2009-01-30  Eric Blake  <ebb9@byu.net>
30681
30682         fix more require-before-expand issues
30683         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30684         expand, AC_PROG_AWK.
30685         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30686
30687 2009-01-28  Eric Blake  <ebb9@byu.net>
30688
30689         version-etc: use consistent URL formatting
30690         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30691         Improve formatting.  Use fputs for string without %.
30692
30693 2009-01-28  Jim Meyering  <meyering@redhat.com>
30694
30695         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30696         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30697         "underquoted definition of NAME" from autoconf-2.59.
30698
30699 2009-01-28  Bruno Haible  <bruno@clisp.org>
30700
30701         * doc/gnulib.texi: Add "Obsolete modules" to index.
30702
30703 2009-01-28  Jim Meyering  <meyering@redhat.com>
30704
30705         useless-if-before-free: recognize more variants
30706         * build-aux/useless-if-before-free: Also recognize e.g.,
30707         if (NULL != p) free (p);
30708
30709 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30710
30711         test-getaddrinfo: skip (don't fail) this test when there's no network
30712         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30713         on the presumption that it means you lack network access.
30714
30715 2009-01-26  Jim Meyering  <meyering@redhat.com>
30716
30717         fflush: avoid warnings on modern systems
30718         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30719         pos and result, into scopes where they're used.
30720
30721 2009-01-26  Eric Blake  <ebb9@byu.net>
30722
30723         Silence warning reintroduced by recent extensions patch.
30724         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30725         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30726         autoconf.
30727
30728         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30729         * m4/00gnulib.m4: New file.
30730         * gnulib-tool (func_get_filelist): Always use it.
30731         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30732         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30733
30734 2009-01-25  Bruno Haible  <bruno@clisp.org>
30735
30736         Make test-quotearg work on MacOS X and AIX.
30737         * tests/test-quotearg.sh: New file.
30738         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30739         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30740         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30741         include <libintl.h>.
30742         (fake_locale): Remove variable.
30743         (gettext, dgettext, dcgettext): Remove functions.
30744         (main): Instead of setting a fake locale, set a real locale. Call
30745         textdomain and bindtextdomain.
30746         * modules/quotearg-tests (Files): Add the new files.
30747         (Depends-on): Add gettext, setenv, unsetenv.
30748         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30749         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30750         Augment TESTS_ENVIRONMENT.
30751
30752 2009-01-25  Bruno Haible  <bruno@clisp.org>
30753
30754         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30755         fr_FR.ISO8859-1 locale on MacOS X.
30756         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30757         ja_JP.eucJP locale on MacOS X.
30758         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30759         zh_CN.GB18030 locale on MacOS X.
30760
30761 2009-01-25  Bruno Haible  <bruno@clisp.org>
30762
30763         Avoid link errors on MacOS X 10.3.
30764         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30765         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30766
30767 2009-01-25  Bruno Haible  <bruno@clisp.org>
30768
30769         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30770         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30771         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30772         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30773         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30774         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30775         posix_spawnattr_init, posix_spawnattr_setsigmask,
30776         posix_spawnattr_setflags, posix_spawnattr_destroy.
30777
30778         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30779         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30780         * modules/execute (Files): Remove m4/posix_spawn.m4.
30781         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30782         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30783         posix_spawnattr_init, posix_spawnattr_setsigmask,
30784         posix_spawnattr_setflags, posix_spawnattr_destroy.
30785
30786 2009-01-25  Bruno Haible  <bruno@clisp.org>
30787
30788         * lib/glthread/threadlib.c: Include <stdlib.h>.
30789
30790 2009-01-25  Bruno Haible  <bruno@clisp.org>
30791
30792         * lib/glthread/threadlib.c (dummy): New declaration.
30793
30794 2009-01-25  Bruno Haible  <bruno@clisp.org>
30795
30796         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30797         multibyte characters also for the GB18030 encoding. Don't crash when
30798         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30799
30800 2009-01-25  Bruno Haible  <bruno@clisp.org>
30801
30802         Avoid redefining 'struct random_data' on OSF/1 5.1.
30803         * lib/stdlib.in.h: Include <random.h> if it exists.
30804         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30805         HAVE_RANDOM_H. Include <random.h> when testing whether
30806         'struct random_data' exists.
30807         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30808
30809 2009-01-25  Bruno Haible  <bruno@clisp.org>
30810
30811         Don't install charset.alias on MacOS X >= 10.3.
30812         * lib/localcharset.c (DARWIN7): New macro.
30813         (get_charset_aliases): Hardcode the result for Darwin7.
30814         * modules/localcharset (install-exec-local): Don't install
30815         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30816
30817 2009-01-25  Bruno Haible  <bruno@clisp.org>
30818
30819         Don't install charset.alias on mingw and Cygwin.
30820         * modules/localcharset (install-exec-local): Don't install
30821         charset.alias on mingw and Cygwin, if the file does not yet exist.
30822         The result for these platforms is hardcoded in localcharset.c.
30823
30824 2009-01-25  Bruno Haible  <bruno@clisp.org>
30825
30826         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30827         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30828         before requiring AC_USE_SYSTEM_EXTENSIONS.
30829
30830 2009-01-25  Jim Meyering  <meyering@redhat.com>
30831
30832         c-strtod: avoid warnings
30833         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30834         "assignment discards qualifiers from pointer target type" warnings.
30835
30836 2009-01-24  Bruno Haible  <bruno@clisp.org>
30837
30838         Add support for non-UTF-8 locales on MacOS X.
30839         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30840         canonical encodings. For Darwin 7 and newer, don't map traditional
30841         encodings to UTF-8.
30842         Reported by Vincent Lefevre <vincent@vinc17.org>
30843         at <http://savannah.gnu.org/bugs/?25235>.
30844
30845 2009-01-24  Bruno Haible  <bruno@clisp.org>
30846
30847         * doc/gnulib.texi (Obsolete modules): New section.
30848         Reported by Mike Frysinger <vapier@gentoo.org>.
30849
30850 2009-01-24  Bruno Haible  <bruno@clisp.org>
30851
30852         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30853         (%.dvi): New rule.
30854
30855 2009-01-24  Bruno Haible  <bruno@clisp.org>
30856
30857         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30858         Reported by Eric Blake.
30859
30860 2009-01-24  Bruno Haible  <bruno@clisp.org>
30861
30862         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30863         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30864         Reported by Gary V. Vaughan <gary@gnu.org>.
30865
30866 2009-01-24  Bruno Haible  <bruno@clisp.org>
30867
30868         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30869
30870 2009-01-23  Bruno Haible  <bruno@clisp.org>
30871
30872         Make c-strtod, c-strtold usable in libraries.
30873         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30874         (C_STRTOD): Call strdup instead of xstrdup.
30875         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30876         * modules/c-strtold (Depends-on): Likewise.
30877         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30878         * NEWS: Mention the change.
30879         Reported by Michael Gold <mgold@ncf.ca>.
30880
30881 2009-01-23  Jim Meyering  <meyering@redhat.com>
30882
30883         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30884         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30885         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30886
30887 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30888
30889         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30890         GNU CoreUtils.
30891         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30892         * modules/version-etc (Description): Update.
30893
30894 2009-01-22  Bruno Haible  <bruno@clisp.org>
30895
30896         Cache the C locale object.
30897         * lib/c-strtod.c (c_locale_cache): New variable.
30898         (c_locale): New function.
30899         (C_STRTOD): Use it, and don't call freelocale.
30900         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30901         Suggested by Paolo Bonzini.
30902
30903 2009-01-21  Bruno Haible  <bruno@clisp.org>
30904
30905         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30906         conditions other than overflow.
30907
30908 2009-01-21  Bruno Haible  <bruno@clisp.org>
30909
30910         * lib/c-strtod.c: Include errno.h.
30911         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30912         value from STRTOD_L and STRTOD.
30913
30914 2009-01-21  Bruno Haible  <bruno@clisp.org>
30915         and Jim Meyering  <meyering@redhat.com>
30916
30917         nanosleep: skip configure test (fail it) for apple universal builds
30918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30919         universal builds, assume that nanosleep does not work.
30920         * modules/nanosleep (Depends-on): Add multiarch.
30921
30922         mktime: skip configure test (fail it) for apple universal builds
30923         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30924         universal builds, assume that mktime does not work.
30925         * modules/mktime (Depends-on): Add multiarch.
30926
30927 2009-01-21  Eric Blake  <ebb9@byu.net>
30928
30929         multiarch: avoid expand-before-require warning
30930         * modules/multiarch (configure.ac): Require, rather than expand,
30931         gl_MULTIARCH.
30932         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30933         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30934         enforce that all clients require it.  Partial reversion of
30935         2008-12-29 patch.
30936
30937         error: avoid expand-before-require warning
30938         * modules/errno (configure.ac): Require, rather than expand,
30939         gl_HEADER_ERRNO_H.
30940         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30941         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30942         enforce that all clients require it.
30943
30944         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30945         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30946         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30947         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30948
30949 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30950
30951         Revert:
30952         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30953
30954         regex: do not depend on obsolete modules.
30955         * modules/regex: Remove memcmp and memmove.
30956
30957 2009-01-20  Bruno Haible  <bruno@clisp.org>
30958
30959         Make the 'link' module link on Windows NT 4.
30960         * lib/link.c (_WIN32_WINNT): Don't define.
30961         (CreateHardLinkFuncType): New type.
30962         (CreateHardLinkFunc, initialized): New variables.
30963         (initialize): New function.
30964         (link): Invoke CreateHardLink indirectly through the function pointer.
30965
30966 2009-01-20  Bruno Haible  <bruno@clisp.org>
30967
30968         Fix compilation failure on mingw.
30969         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30970
30971 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30972
30973         * doc/c-strtod.texi: Mention a couple of restrictions.
30974
30975 2009-01-20  Jim Meyering  <meyering@redhat.com>
30976
30977         gettimeofday: move more declarations out of functions
30978         * lib/gettimeofday.c: Move extern declarations of tzset and
30979         gmtime out of containing functions.  Prompted by Bruno Haible.
30980
30981 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30982
30983         regex: do not depend on obsolete modules.
30984         * modules/regex: Remove memcmp and memmove.
30985
30986 2009-01-19  Bruno Haible  <bruno@clisp.org>
30987
30988         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30989         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30990         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30991         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30992         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30993
30994 2009-01-19  Bruno Haible  <bruno@clisp.org>
30995
30996         * tests/test-link.c: Include <errno.h>.
30997         (main): Exit with code 77 when a hard link cannot be created due to
30998         the file system.
30999         * tests/test-link.sh: Skip test when a hard link cannot be created due
31000         to the file system.
31001         Suggested by Eric Blake.
31002
31003 2009-01-19  Martin Lambers  <marlam@marlam.de>
31004
31005         * modules/link-tests: New file.
31006         * tests/test-link.sh: New file.
31007         * tests/test-link.c: New file.
31008
31009 2009-01-19  Eric Blake  <ebb9@byu.net>
31010
31011         doc: mention another function added in cygwin 1.7.0
31012         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31013         Another new function in cygwin 1.7.
31014
31015 2009-01-19  Bruno Haible  <bruno@clisp.org>
31016
31017         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31018         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31019         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31020         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31021         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31022         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31023         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31024         * m4/md4.m4 (gl_MD4): Likewise.
31025         * m4/md5.m4 (gl_MD5): Likewise.
31026         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31027         * m4/sha1.m4 (gl_SHA1): Likewise.
31028         * m4/sha256.m4 (gl_SHA256): Likewise.
31029         * m4/sha512.m4 (gl_SHA512): Likewise.
31030
31031 2009-01-19  Bruno Haible  <bruno@clisp.org>
31032
31033         * modules/uniname/uniname-tests (Depends-on): Add progname.
31034         * tests/uniname/test-uninames.c: Include progname.h.
31035         (main): Call set_program_name.
31036
31037         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31038         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31039         (main): Call set_program_name.
31040
31041         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31042         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31043         (main): Call set_program_name.
31044
31045         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31046         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31047         (main): Call set_program_name.
31048
31049         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31050         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31051         (main): Call set_program_name.
31052
31053         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31054         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31055         (main): Call set_program_name.
31056
31057         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31058         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31059         (main): Call set_program_name.
31060
31061         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31062         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31063         (main): Call set_program_name.
31064
31065         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31066         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31067         (main): Call set_program_name.
31068
31069 2009-01-19  Eric Blake  <ebb9@byu.net>
31070
31071         test-unistd: test previous patch
31072         * tests/test-unistd.c: Test *_FILENO macros.
31073
31074         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31075         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31076         Guarantee a definition.
31077         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31078         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31079         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31080         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31081         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31082         Likewise.
31083         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31084         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31085         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31086         Likewise.
31087         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31088         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31089         (STDERR_FILENO): Likewise.
31090         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31091         (STDERR_FILENO): Likewise.
31092         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31093         (STDERR_FILENO): Likewise.
31094         Reported by Elbert Pol.
31095
31096 2009-01-19  Eric Blake  <ebb9@byu.net>
31097
31098         doc: mention more functions added in cygwin 1.7.0
31099         * doc/posix-functions/abort.texi (abort): Update wording related
31100         to cygwin.
31101         * doc/posix-functions/daylight.texi (daylight): Likewise.
31102         * doc/posix-functions/optarg.texi (optarg): Likewise.
31103         * doc/posix-functions/optarg.texi (opterr): Likewise.
31104         * doc/posix-functions/optarg.texi (optind): Likewise.
31105         * doc/posix-functions/optarg.texi (optopt): Likewise.
31106         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31107         worked in 1.5.x, and was withdrawn in 1.7.
31108         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31109         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31110         cygwin versions.
31111         * doc/posix-functions/perror.texi (perror): Likewise.
31112         * doc/posix-functions/printf.texi (printf): Likewise.
31113         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31114         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31115         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31116         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31117         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31118         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31119         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31120         Likewise.
31121         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31122         Likewise.
31123         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31124         this function.
31125         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31126         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31127         Likewise.
31128         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31129         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31130         * doc/posix-functions/confstr.texi (confstr): Likewise.
31131         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31132         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31133         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31134         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31135         * doc/posix-functions/fputws.texi (fputws): Likewise.
31136         * doc/posix-functions/fwide.texi (fwide): Likewise.
31137         * doc/posix-functions/getwc.texi (getwc): Likewise.
31138         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31139         * doc/posix-functions/putwc.texi (putwc): Likewise.
31140         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31141         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31142         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31143         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31144         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31145         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31146         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31147         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31148         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31149         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31150         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31151
31152 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31153
31154         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31155         * lib/ioctl.c: Include <sys/ioctl.h>.
31156
31157 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31158
31159         * modules/getdate-tests (Depends-on): Add progname.
31160         * tests/test-getdate.c: Use progname module, to avoid link errors
31161         on non-glibc systems.
31162
31163 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31164
31165         * modules/filenamecat-tests (Depends-on): Add progname.
31166         * modules/fstrcmp-tests (Depends-on): Likewise.
31167
31168         * tests/test-filenamecat.c: Use progname module, to avoid link
31169         errors on non-glibc systems.
31170         * tests/test-fstrcmp.c: Likewise.
31171
31172 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31173
31174         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31175         * lib/gettimeofday.c: Move extern declaration out of function.
31176
31177 2009-01-18  Bruno Haible  <bruno@clisp.org>
31178
31179         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31180         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31181         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31182
31183 2009-01-18  Bruno Haible  <bruno@clisp.org>
31184
31185         * lib/strftime.c (MEMPCPY): Remove unused macro.
31186         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31187
31188 2009-01-18  Martin Lambers  <marlam@marlam.de>
31189
31190         New module 'link'.
31191         * lib/unistd.in.h (link): New declaration.
31192         * lib/link.c: New file.
31193         * m4/link.m4: New file.
31194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31195         HAVE_LINK.
31196         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31197         * modules/link: New file.
31198         * doc/posix-functions/link.texi: Mention the new module.
31199
31200 2009-01-18  Bruno Haible  <bruno@clisp.org>
31201
31202         * tests/test-avltree_list.c (main): Call set_program_name.
31203         * tests/test-avltree_oset.c (main): Likewise.
31204         * tests/test-obstack-printf.c: Include progname.h.
31205         (main): Call set_program_name.
31206         * tests/test-quotearg.c: Include progname.h.
31207         (main): Call set_program_name.
31208         * tests/test-xmemdup0.c: Include progname.h.
31209         (main): Call set_program_name.
31210
31211 2009-01-18  Bruno Haible  <bruno@clisp.org>
31212
31213         New module 'alphasort'.
31214         * lib/dirent.in.h (alphasort): New declaration.
31215         * lib/alphasort.c: New file, from glibc with modifications.
31216         * m4/alphasort.m4: New file.
31217         * modules/alphasort: New file.
31218         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31219         HAVE_ALPHASORT.
31220         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31221         HAVE_ALPHASORT.
31222         * doc/posix-functions/alphasort.texi: Mention the new module and the
31223         portability problems.
31224
31225 2009-01-18  Bruno Haible  <bruno@clisp.org>
31226
31227         New module 'scandir'.
31228         * lib/dirent.in.h (scandir): New declaration.
31229         * lib/scandir.c: New file, from glibc with modifications.
31230         * m4/scandir.m4: New file.
31231         * modules/scandir: New file.
31232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31233         HAVE_SCANDIR.
31234         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31235         HAVE_SCANDIR.
31236         * doc/posix-functions/scandir.texi: Mention the new module and the
31237         portability problems.
31238
31239 2009-01-17  Bruno Haible  <bruno@clisp.org>
31240
31241         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31242         Update documentation.
31243         (func_remove_suffix): Escape all dots in the suffix. Update
31244         documentation.
31245         (func_filter_filelist): Update documentation.
31246         Reported by Ralf Wildenhues.
31247
31248 2009-01-17  Bruno Haible  <bruno@clisp.org>
31249
31250         * modules/dprintf-posix-tests: New file.
31251         * tests/test-dprintf-posix.sh: New file.
31252         * tests/test-dprintf-posix.c: New file.
31253
31254         New modules 'dprintf', 'dprintf-posix'.
31255         * lib/stdio.in.h (dprintf): New declaration.
31256         * lib/dprintf.c: New file.
31257         * m4/dprintf.m4: New file.
31258         * m4/dprintf-posix.m4: New file.
31259         * modules/dprintf: New file.
31260         * modules/dprintf-posix: New file.
31261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31262         HAVE_DPRINTF, REPLACE_DPRINTF.
31263         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31264         HAVE_DPRINTF, REPLACE_DPRINTF.
31265         * doc/posix-functions/dprintf.texi: Mention the new modules.
31266
31267 2009-01-17  Bruno Haible  <bruno@clisp.org>
31268
31269         * modules/vdprintf-posix-tests: New file.
31270         * tests/test-vdprintf-posix.sh: New file.
31271         * tests/test-vdprintf-posix.c: New file.
31272
31273         New modules 'vdprintf', 'vdprintf-posix'.
31274         * lib/stdio.in.h (vdprintf): New declaration.
31275         * lib/vdprintf.c: New file.
31276         * m4/vdprintf.m4: New file.
31277         * m4/vdprintf-posix.m4: New file.
31278         * modules/vdprintf: New file.
31279         * modules/vdprintf-posix: New file.
31280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31281         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31282         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31283         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31284         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31285
31286 2009-01-17  Bruno Haible  <bruno@clisp.org>
31287
31288         Fix replacement of fopen on mingw.
31289         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31290         mingw.
31291
31292 2009-01-17  Bruno Haible  <bruno@clisp.org>
31293
31294         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31295         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31296
31297 2009-01-17  Bruno Haible  <bruno@clisp.org>
31298
31299         Avoid test-fflush2.sh failure on mingw.
31300         * tests/test-fflush2.c: Include binary-io.h.
31301         (main): Put standard input into binary mode.
31302         * modules/fflush-tests (Depends-on): Add binary-io.
31303
31304 2009-01-17  Bruno Haible  <bruno@clisp.org>
31305
31306         * lib/wchar.in.h: In another particular situation, include only the
31307         system's <wchar.h> file.
31308         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31309         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31310         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31311
31312 2009-01-17  Bruno Haible  <bruno@clisp.org>
31313
31314         Support for stripping executables in --enable-relocatable.
31315         * build-aux/install-reloc: Expect one more argument, or an environment
31316         variable RELOC_STRIP_PROG. If set, strip the destination program and
31317         its wrapper.
31318         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31319         RELOC_STRIP_PROG.
31320         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31321         to set RELOCATABLE_STRIP.
31322         * NEWS: Mention the new Makefile requirement.
31323
31324 2009-01-17  Bruno Haible  <bruno@clisp.org>
31325
31326         * build-aux/install-reloc: Remove debugging information left over by
31327         C compiler on MacOS X.
31328
31329 2009-01-17  Bruno Haible  <bruno@clisp.org>
31330
31331         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31332         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31333         _NSGetExecutablePath.
31334
31335 2009-01-16  Jim Meyering  <meyering@redhat.com>
31336
31337         strerror: avoid warnings about discarding "const"
31338         * lib/strerror.c (rpl_strerror): Instead of returning a const
31339         string from each and every "case", use a variable, and add a single
31340         cast after the switch.
31341
31342 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31343
31344         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31345
31346 2009-01-16  Bruno Haible  <bruno@clisp.org>
31347
31348         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31349         array initializer syntax that also works in C++ mode.
31350         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31351
31352 2009-01-16  Jim Meyering  <meyering@redhat.com>
31353
31354         poll: suppress a warning
31355         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31356         to ignore "...unsigned expression < 0 is always false" warnings.
31357
31358 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31359
31360         poll: remove declarations of unused variables
31361         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31362         sockbuf and optlen.
31363
31364 2009-01-15  Bruno Haible  <bruno@clisp.org>
31365
31366         Make fflush-after-ungetc POSIX compliant on BSD systems.
31367         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31368         (clear_ungetc_buffer): Implement also for other systems.
31369         (rpl_fflush): On glibc systems, invoke
31370         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31371         clear_ungetc_buffer after fetching the stream's position, not before.
31372
31373 2009-01-15  Bruno Haible  <bruno@clisp.org>
31374
31375         Make fflush-after-ungetc POSIX compliant on glibc systems.
31376         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31377         after ungetc.
31378         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31379         (rpl_fflush): On glibc systems, simply call the system's fflush
31380         function after clearing the ungetc buffer.
31381         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31382         Instead, lseek only to the end of file, then use the system's fseeko
31383         for the rest. On glibc systems, reset the EOF indicator bit.
31384
31385 2009-01-15  Jim Meyering  <meyering@redhat.com>
31386
31387         openmp.m4: revert quote-adding change, for portability to older autoconf
31388         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31389         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31390         Simon Josefsson noticed the problem when using autoconf-2.61.
31391
31392 2009-01-15  Bruno Haible  <bruno@clisp.org>
31393
31394         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31395         * tests/test-fflush2.c (ASSERT): Always fail.
31396         (main): Add two tests for fflush() after ungetc(), taking into account
31397         the Austin Group's clarification.
31398         Suggested by Eric Blake.
31399
31400 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31401
31402         mktime.m4: remove K&R-style function prototypes
31403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31404         for the Sun C++ compiler.
31405
31406 2009-01-14  Bruno Haible  <bruno@clisp.org>
31407
31408         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31409         while including <wchar.h>.
31410         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31411         the system's <wchar.h> file.
31412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31413
31414 2009-01-14  Bruno Haible  <bruno@clisp.org>
31415
31416         * m4/csharp.m4: Don't mention gettext on the serial number line.
31417         * m4/csharpexec.m4: Likewise.
31418         * m4/eaccess.m4: Likewise.
31419         * m4/javaexec.m4: Likewise.
31420         * m4/sig_atomic_t.m4: Likewise.
31421         * m4/tmpdir.m4: Likewise.
31422         * m4/intldir.m4: Bump gettext version.
31423         * m4/lib-ld.m4: Likewise.
31424
31425 2009-01-14  Bruno Haible  <bruno@clisp.org>
31426
31427         * lib/progname.c (set_program_name): Add more comments.
31428         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31429
31430 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31431
31432         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31433         were sys/stat.h does not define it.
31434
31435 2009-01-14  Jim Meyering  <meyering@redhat.com>
31436
31437         many *.m4 files: improve m4 quoting
31438         99% of this change was performed by running the following commands:
31439         git ls-files | grep '\.m4$' | xargs perl -pi \
31440           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31441           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31442           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31443           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31444         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31445         The remainder were to add Copyright dates, increment serial numbers,
31446         undo some changes in comments, exclude m4/intl.m4, and add quotes
31447         around the "1" in ",1" where the unusual spacing prohibited the
31448         above regexps from doing the job.  For more details, see
31449         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31450         * m4/acl.m4: Modified.
31451         * m4/afs.m4: Likewise.
31452         * m4/alloca.m4: Likewise.
31453         * m4/argp.m4: Likewise.
31454         * m4/argz.m4: Likewise.
31455         * m4/atexit.m4: Likewise.
31456         * m4/bison-i18n.m4: Likewise.
31457         * m4/bison.m4: Likewise.
31458         * m4/byteswap.m4: Likewise.
31459         * m4/c-stack.m4: Likewise.
31460         * m4/c-strtod.m4: Likewise.
31461         * m4/calloc.m4: Likewise.
31462         * m4/canonicalize-lgpl.m4: Likewise.
31463         * m4/chown.m4: Likewise.
31464         * m4/clock_time.m4: Likewise.
31465         * m4/codeset.m4: Likewise.
31466         * m4/copy-file.m4: Likewise.
31467         * m4/csharp.m4: Likewise.
31468         * m4/csharpcomp.m4: Likewise.
31469         * m4/csharpexec.m4: Likewise.
31470         * m4/d-ino.m4: Likewise.
31471         * m4/d-type.m4: Likewise.
31472         * m4/dirfd.m4: Likewise.
31473         * m4/double-slash-root.m4: Likewise.
31474         * m4/eaccess.m4: Likewise.
31475         * m4/eealloc.m4: Likewise.
31476         * m4/environ.m4: Likewise.
31477         * m4/errno_h.m4: Likewise.
31478         * m4/euidaccess.m4: Likewise.
31479         * m4/execute.m4: Likewise.
31480         * m4/fatal-signal.m4: Likewise.
31481         * m4/fchdir.m4: Likewise.
31482         * m4/fcntl_h.m4: Likewise.
31483         * m4/fileblocks.m4: Likewise.
31484         * m4/filenamecat.m4: Likewise.
31485         * m4/findprog.m4: Likewise.
31486         * m4/flexmember.m4: Likewise.
31487         * m4/fnmatch.m4: Likewise.
31488         * m4/fopen.m4: Likewise.
31489         * m4/fpending.m4: Likewise.
31490         * m4/fprintf-posix.m4: Likewise.
31491         * m4/free.m4: Likewise.
31492         * m4/frexp.m4: Likewise.
31493         * m4/frexpl.m4: Likewise.
31494         * m4/fsusage.m4: Likewise.
31495         * m4/ftruncate.m4: Likewise.
31496         * m4/gc-camellia.m4: Likewise.
31497         * m4/gc-random.m4: Likewise.
31498         * m4/gc.m4: Likewise.
31499         * m4/getaddrinfo.m4: Likewise.
31500         * m4/getcwd-abort-bug.m4: Likewise.
31501         * m4/getcwd-path-max.m4: Likewise.
31502         * m4/getdate.m4: Likewise.
31503         * m4/getdomainname.m4: Likewise.
31504         * m4/getgroups.m4: Likewise.
31505         * m4/gethostname.m4: Likewise.
31506         * m4/gethrxtime.m4: Likewise.
31507         * m4/getline.m4: Likewise.
31508         * m4/getloadavg.m4: Likewise.
31509         * m4/getndelim2.m4: Likewise.
31510         * m4/getpass.m4: Likewise.
31511         * m4/gettext.m4: Likewise.
31512         * m4/gettime.m4: Likewise.
31513         * m4/gettimeofday.m4: Likewise.
31514         * m4/gnulib-common.m4: Likewise.
31515         * m4/group-member.m4: Likewise.
31516         * m4/host-os.m4: Likewise.
31517         * m4/iconv.m4: Likewise.
31518         * m4/iconv_open.m4: Likewise.
31519         * m4/inet_ntop.m4: Likewise.
31520         * m4/inet_pton.m4: Likewise.
31521         * m4/inline.m4: Likewise.
31522         * m4/intldir.m4: Likewise.
31523         * m4/intlmacosx.m4: Likewise.
31524         * m4/intmax.m4: Likewise.
31525         * m4/intmax_t.m4: Likewise.
31526         * m4/inttypes.m4: Likewise.
31527         * m4/inttypes_h.m4: Likewise.
31528         * m4/inttypes-pri.m4: Likewise.
31529         * m4/isapipe.m4: Likewise.
31530         * m4/isnand.m4: Likewise.
31531         * m4/isnanf.m4: Likewise.
31532         * m4/isnanl.m4: Likewise.
31533         * m4/javacomp.m4: Likewise.
31534         * m4/javaexec.m4: Likewise.
31535         * m4/jm-winsz1.m4: Likewise.
31536         * m4/jm-winsz2.m4: Likewise.
31537         * m4/lchown.m4: Likewise.
31538         * m4/lcmessage.m4: Likewise.
31539         * m4/ldexpl.m4: Likewise.
31540         * m4/lib-ld.m4: Likewise.
31541         * m4/lib-link.m4: Likewise.
31542         * m4/libsigsegv.m4: Likewise.
31543         * m4/link-follow.m4: Likewise.
31544         * m4/localcharset.m4: Likewise.
31545         * m4/locale-fr.m4: Likewise.
31546         * m4/locale-ja.m4: Likewise.
31547         * m4/locale-tr.m4: Likewise.
31548         * m4/locale-zh.m4: Likewise.
31549         * m4/lock.m4: Likewise.
31550         * m4/longlong.m4: Likewise.
31551         * m4/ls-mntd-fs.m4: Likewise.
31552         * m4/lstat.m4: Likewise.
31553         * m4/malloc.m4: Likewise.
31554         * m4/mathl.m4: Likewise.
31555         * m4/mbrtowc.m4: Likewise.
31556         * m4/mbstate_t.m4: Likewise.
31557         * m4/mbswidth.m4: Likewise.
31558         * m4/memchr.m4: Likewise.
31559         * m4/memcmp.m4: Likewise.
31560         * m4/memcpy.m4: Likewise.
31561         * m4/memmem.m4: Likewise.
31562         * m4/memmove.m4: Likewise.
31563         * m4/mempcpy.m4: Likewise.
31564         * m4/memrchr.m4: Likewise.
31565         * m4/memset.m4: Likewise.
31566         * m4/minmax.m4: Likewise.
31567         * m4/mkdir-slash.m4: Likewise.
31568         * m4/mkdtemp.m4: Likewise.
31569         * m4/mktime.m4: Likewise.
31570         * m4/mmap-anon.m4: Likewise.
31571         * m4/mountlist.m4: Likewise.
31572         * m4/nanosleep.m4: Likewise.
31573         * m4/nls.m4: Likewise.
31574         * m4/nocrash.m4: Likewise.
31575         * m4/open.m4: Likewise.
31576         * m4/openat.m4: Likewise.
31577         * m4/openmp.m4: Likewise.
31578         * m4/pathmax.m4: Likewise.
31579         * m4/perl.m4: Likewise.
31580         * m4/physmem.m4: Likewise.
31581         * m4/pipe.m4: Likewise.
31582         * m4/po.m4: Likewise.
31583         * m4/poll.m4: Likewise.
31584         * m4/posixtm.m4: Likewise.
31585         * m4/posixver.m4: Likewise.
31586         * m4/printf-frexp.m4: Likewise.
31587         * m4/printf-frexpl.m4: Likewise.
31588         * m4/printf-posix.m4: Likewise.
31589         * m4/printf-posix-rpl.m4: Likewise.
31590         * m4/printf.m4: Likewise.
31591         * m4/progtest.m4: Likewise.
31592         * m4/putenv.m4: Likewise.
31593         * m4/readline.m4: Likewise.
31594         * m4/readlink.m4: Likewise.
31595         * m4/readutmp.m4: Likewise.
31596         * m4/realloc.m4: Likewise.
31597         * m4/regex.m4: Likewise.
31598         * m4/relocatable.m4: Likewise.
31599         * m4/relocatable-lib.m4: Likewise.
31600         * m4/rename-dest-slash.m4: Likewise.
31601         * m4/rename.m4: Likewise.
31602         * m4/rmdir-errno.m4: Likewise.
31603         * m4/rmdir.m4: Likewise.
31604         * m4/roundf.m4: Likewise.
31605         * m4/roundl.m4: Likewise.
31606         * m4/rpmatch.m4: Likewise.
31607         * m4/save-cwd.m4: Likewise.
31608         * m4/selinux-selinux-h.m4: Likewise.
31609         * m4/setenv.m4: Likewise.
31610         * m4/settime.m4: Likewise.
31611         * m4/sig2str.m4: Likewise.
31612         * m4/sig_atomic_t.m4: Likewise.
31613         * m4/signalblocking.m4: Likewise.
31614         * m4/signbit.m4: Likewise.
31615         * m4/sigpipe.m4: Likewise.
31616         * m4/sockets.m4: Likewise.
31617         * m4/sockpfaf.m4: Likewise.
31618         * m4/st_dm_mode.m4: Likewise.
31619         * m4/stat-time.m4: Likewise.
31620         * m4/stdbool.m4: Likewise.
31621         * m4/stdint.m4: Likewise.
31622         * m4/stdint_h.m4: Likewise.
31623         * m4/stpcpy.m4: Likewise.
31624         * m4/stpncpy.m4: Likewise.
31625         * m4/strcase.m4: Likewise.
31626         * m4/strchrnul.m4: Likewise.
31627         * m4/strcspn.m4: Likewise.
31628         * m4/strdup.m4: Likewise.
31629         * m4/strftime.m4: Likewise.
31630         * m4/strndup.m4: Likewise.
31631         * m4/strnlen.m4: Likewise.
31632         * m4/strpbrk.m4: Likewise.
31633         * m4/strptime.m4: Likewise.
31634         * m4/strsep.m4: Likewise.
31635         * m4/strtod.m4: Likewise.
31636         * m4/strtoimax.m4: Likewise.
31637         * m4/strtok_r.m4: Likewise.
31638         * m4/strtol.m4: Likewise.
31639         * m4/strtoll.m4: Likewise.
31640         * m4/strtoul.m4: Likewise.
31641         * m4/strtoull.m4: Likewise.
31642         * m4/strtoumax.m4: Likewise.
31643         * m4/strverscmp.m4: Likewise.
31644         * m4/threadlib.m4: Likewise.
31645         * m4/timegm.m4: Likewise.
31646         * m4/tm_gmtoff.m4: Likewise.
31647         * m4/tmpdir.m4: Likewise.
31648         * m4/tmpfile.m4: Likewise.
31649         * m4/tzset.m4: Likewise.
31650         * m4/uintmax_t.m4: Likewise.
31651         * m4/unlinkdir.m4: Likewise.
31652         * m4/unlocked-io.m4: Likewise.
31653         * m4/uptime.m4: Likewise.
31654         * m4/userspec.m4: Likewise.
31655         * m4/utimbuf.m4: Likewise.
31656         * m4/utime.m4: Likewise.
31657         * m4/utimes-null.m4: Likewise.
31658         * m4/utimes.m4: Likewise.
31659         * m4/vararrays.m4: Likewise.
31660         * m4/vasnprintf.m4: Likewise.
31661         * m4/vfprintf-posix.m4: Likewise.
31662         * m4/vprintf-posix.m4: Likewise.
31663         * m4/wait-process.m4: Likewise.
31664         * m4/wchar_t.m4: Likewise.
31665         * m4/wint_t.m4: Likewise.
31666         * m4/write-any-file.m4: Likewise.
31667         * m4/yield.m4: Likewise.
31668
31669 2009-01-13  Bruno Haible  <bruno@clisp.org>
31670
31671         Avoid test-copy-file.sh failures when ACL support insufficient.
31672         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31673         TESTS_ENVIRONMENT.
31674         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31675         Reported by Jim Meyering.
31676
31677 2009-01-13  Bruno Haible  <bruno@clisp.org>
31678
31679         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31680         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31681         * modules/unistdio/u8-printf-parse (Files): Likewise.
31682         * modules/unistdio/u32-printf-parse (Files): Likewise.
31683         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31684
31685 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31686
31687         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31688         and m4/inttypes_h.m4 too.
31689
31690 2009-01-12  Eric Blake  <ebb9@byu.net>
31691
31692         tests: IRIX 6.2 cc can't compile -0.0 into .data
31693         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31694         rather than at compile-time.
31695         * tests/test-floorl.c (minus_zero): Likewise.
31696         * tests/test-frexpl.c (minus_zero): Likewise.
31697         * tests/test-isnan.c (minus_zerol): Likewise.
31698         * tests/test-isnanl.h (minus_zero): Likewise.
31699         * tests/test-ldexpl.c (minus_zero): Likewise.
31700         * tests/test-roundl.c (minus_zero): Likewise.
31701         * tests/test-signbit.c (minus_zerol): Likewise.
31702         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31703         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31704         * tests/test-truncl.c (minus_zero): Likewise.
31705         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31706         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31707         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31708
31709 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31710
31711         regex: fix glibc bug 9697
31712         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31713         handling.
31714
31715 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31716
31717         regex: fix glibc bug 697
31718         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31719         being NULL also if there are no backreferences.
31720
31721 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31722
31723         regex: merge glibc changes
31724         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31725         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31726         re_string_skip_chars, re_string_reconstruct): Likewise.
31727         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31728
31729 2009-01-07  Jim Meyering  <meyering@redhat.com>
31730
31731         poll: filter through cppi
31732         * lib/poll.c: Indent cpp directives to reflect nesting.
31733
31734 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31735
31736         poll: don't return uninitialized
31737         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31738
31739 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31740
31741         avoid compile failure on AIX 6.1
31742         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31743         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31744
31745 2009-01-04  Jim Meyering  <meyering@redhat.com>
31746
31747         remove duplicate inclusion of <stdio.h>
31748         * tests/test-fprintf-posix.c: Likewise.
31749         * tests/test-printf-posix.c: Likewise.
31750         * tests/test-snprintf-posix.c: Likewise.
31751         * tests/test-sprintf-posix.c: Likewise.
31752         * tests/test-vasprintf-posix.c: Likewise.
31753         * tests/test-vfprintf-posix.c: Likewise.
31754         * tests/test-vprintf-posix.c: Likewise.
31755         * tests/test-vsnprintf-posix.c: Likewise.
31756         * tests/test-vsprintf-posix.c: Likewise.
31757
31758 2009-01-03  Jim Meyering  <meyering@redhat.com>
31759
31760         gnulib-tool: fix sed-based filtering
31761         * gnulib-tool (func_filter_filelist): Remove extra backslash
31762         in sed_fff_filter definition.
31763
31764 2009-01-02  Jim Meyering  <meyering@redhat.com>
31765
31766         strftime: avoid compilation failure on Solaris 2.6
31767         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31768         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31769         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31770         be available.  Reported by Tom G. Christensen.  Details in
31771         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31772
31773 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31774             Bruno Haible  <bruno@clisp.org>
31775
31776         Speed up gnulib-tool by doing more string processing through shell
31777         built-ins.
31778         * gnulib-tool (fast_func_append): New variable.
31779         (func_remove_prefix, func_remove_suffix): New functions.
31780         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31781         (func_filter_filelist): New function.
31782         (func_get_dependencies): Use func_remove_suffix instead of sed.
31783         (func_get_automake_snippet): Use func_filter_filelist instead of a
31784         subshell and sed invocation.
31785
31786 2009-01-01  Bruno Haible  <bruno@clisp.org>
31787
31788         Fix a security bug.
31789         * gnulib-tool (func_import, import, update): Don't allow the characters
31790         '"', '$', '`', '\' in macro arguments that become part of commands that
31791         are evaluated.
31792
31793 2009-01-01  Bruno Haible  <bruno@clisp.org>
31794
31795         * gnulib-tool (func_reset_sigpipe): Add more comments.
31796
31797 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31798
31799         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31800         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31801         already know the answer.
31802
31803 2009-01-01  Jim Meyering  <meyering@redhat.com>
31804
31805         * lib/version-etc.c (version_etc_va): Update copyright year.
31806
31807 2008-12-30  Bruno Haible  <bruno@clisp.org>
31808
31809         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31810         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31811         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31812
31813 2008-12-29  Eric Blake  <ebb9@byu.net>
31814
31815         multiarch: avoid autoconf AC_REQUIRE bug
31816         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31817         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31818         2.63 and older.
31819         Reported by Bruno Haible, and analyzed in
31820         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31821
31822 2008-12-29  Bruno Haible  <bruno@clisp.org>
31823
31824         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31825         files in subdirectories correctly.
31826         Reported by Ralf Wildenhues.
31827
31828 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31829
31830         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31831         rather than 'join FILE -', for Solaris join.
31832
31833 2008-12-29  Bruno Haible  <bruno@clisp.org>
31834
31835         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31836         quoting.
31837         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31838         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31839         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31840         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31841         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31842         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31843         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31844         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31845         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31846         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31847         * m4/nls.m4 (AM_NLS): Likewise.
31848         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31849         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31850         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31851         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31852         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31853         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31854         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31855         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31856         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31857         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31858         * m4/xsize.m4 (gl_XSIZE): Likewise.
31859         Suggested by Jim Meyering.
31860
31861 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31862
31863         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31864         * lib/parse-duration.c: use a switch instead of cascading if's.
31865
31866 2008-12-29  Eric Blake  <ebb9@byu.net>
31867
31868         wchar.h: supply WEOF on Irix 5.3
31869         * lib/wchar.in.h (wint_t): Also supply WEOF.
31870         * lib/wctype.in.h (wint_t): Likewise.
31871         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31872         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31873         Reported by Tom G. Christensen.
31874
31875 2008-12-26  Bruno Haible  <bruno@clisp.org>
31876
31877         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31878         i486, i586, i686.
31879
31880 2008-12-26  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31883
31884 2008-12-26  Bruno Haible  <bruno@clisp.org>
31885
31886         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31887         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31888         not __STDC_CONSTANT_MACROS.
31889         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31890
31891 2008-12-25  Bruno Haible  <bruno@clisp.org>
31892
31893         Add support for universal builds to vasnprintf.
31894         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31895         universal builds, guess no.
31896         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31897         * modules/vasprintf-posix (Depends-on): Likewise.
31898         * modules/fprintf-posix (Depends-on): Likewise.
31899         * modules/vfprintf-posix (Depends-on): Likewise.
31900         * modules/snprintf-posix (Depends-on): Likewise.
31901         * modules/vsnprintf-posix (Depends-on): Likewise.
31902         * modules/sprintf-posix (Depends-on): Likewise.
31903         * modules/vsprintf-posix (Depends-on): Likewise.
31904         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31905         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31906         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31907         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31908         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31909         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31910         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31911
31912         Add support for universal builds to <inttypes.h>.
31913         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31914         _SCNu64_PREFIX): In Apple
31915         universal builds, define directly, using _LP64.
31916         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31917         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31918         * modules/inttypes (Depends-on): Add multiarch.
31919         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31920
31921         Add support for universal builds to <stdint.h>.
31922         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31923         universal builds, define directly, using _LP64.
31924         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31925         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31926         and size_t.
31927         * modules/stdint (Depends-on): Add multiarch.
31928         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31929
31930         New module 'multiarch'.
31931         * modules/multiarch: New file.
31932         * m4/multiarch.m4: New file.
31933
31934 2008-12-25  Bruno Haible  <bruno@clisp.org>
31935
31936         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31937
31938 2008-12-25  Bruno Haible  <bruno@clisp.org>
31939
31940         * modules/btowc (License): Relicense under LGPLv2+.
31941         * modules/mbsinit (License): Likewise.
31942         * modules/mbrtowc (License): Likewise.
31943         * modules/wcrtomb (License): Likewise.
31944         * modules/streq (License): Likewise.
31945         Reported by David Lutterkort <lutter@redhat.com>.
31946
31947 2008-12-23  Bruno Haible  <bruno@clisp.org>
31948
31949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31950
31951 2008-12-23  Bruno Haible  <bruno@clisp.org>
31952
31953         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31954         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31955         GETADDRINFO_LIB, not in LIBS.
31956         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31957         * modules/canon-host (Link): Likewise.
31958         * NEWS: Mention the change.
31959         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31960         GETADDRINFO_LIB.
31961
31962 2008-12-22  Bruno Haible  <bruno@clisp.org>
31963
31964         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31965         * doc/posix-functions/iswalpha_l.texi: Likewise.
31966         * doc/posix-functions/iswblank_l.texi: Likewise.
31967         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31968         * doc/posix-functions/iswctype_l.texi: Likewise.
31969         * doc/posix-functions/iswdigit_l.texi: Likewise.
31970         * doc/posix-functions/iswgraph_l.texi: Likewise.
31971         * doc/posix-functions/iswlower_l.texi: Likewise.
31972         * doc/posix-functions/iswprint_l.texi: Likewise.
31973         * doc/posix-functions/iswpunct_l.texi: Likewise.
31974         * doc/posix-functions/iswspace_l.texi: Likewise.
31975         * doc/posix-functions/iswupper_l.texi: Likewise.
31976         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31977         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31978         * doc/posix-functions/open_wmemstream.texi: Likewise.
31979         * doc/posix-functions/swscanf.texi: Likewise.
31980         * doc/posix-functions/towctrans_l.texi: Likewise.
31981         * doc/posix-functions/towlower.texi: Likewise.
31982         * doc/posix-functions/towlower_l.texi: Likewise.
31983         * doc/posix-functions/towupper.texi: Likewise.
31984         * doc/posix-functions/towupper_l.texi: Likewise.
31985         * doc/posix-functions/vfwprintf.texi: Likewise.
31986         * doc/posix-functions/vfwscanf.texi: Likewise.
31987         * doc/posix-functions/vswscanf.texi: Likewise.
31988         * doc/posix-functions/vwprintf.texi: Likewise.
31989         * doc/posix-functions/vwscanf.texi: Likewise.
31990         * doc/posix-functions/wcpcpy.texi: Likewise.
31991         * doc/posix-functions/wcpncpy.texi: Likewise.
31992         * doc/posix-functions/wcscasecmp.texi: Likewise.
31993         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31994         * doc/posix-functions/wcscoll_l.texi: Likewise.
31995         * doc/posix-functions/wcsdup.texi: Likewise.
31996         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31997         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31998         * doc/posix-functions/wcsnlen.texi: Likewise.
31999         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32000         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32001         * doc/posix-functions/wctrans_l.texi: Likewise.
32002         * doc/posix-functions/wctype_l.texi: Likewise.
32003         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32004         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32005         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32006         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32007         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32008         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32009         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32010         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32011         * doc/glibc-functions/wcschrnul.texi: Likewise.
32012         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32013         * doc/glibc-functions/wcstod_l.texi: Likewise.
32014         * doc/glibc-functions/wcstof_l.texi: Likewise.
32015         * doc/glibc-functions/wcstol_l.texi: Likewise.
32016         * doc/glibc-functions/wcstold_l.texi: Likewise.
32017         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32018         * doc/glibc-functions/wcstoq.texi: Likewise.
32019         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32020         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32021         * doc/glibc-functions/wcstouq.texi: Likewise.
32022         * doc/glibc-functions/wmempcpy.texi: Likewise.
32023
32024 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32025             Eric Blake  <ebb9@byu.net>
32026             Paolo Bonzini  <bonzini@gnu.org>
32027             Bruno Haible  <bruno@clisp.org>
32028
32029         Make c-stack work on Haiku.
32030         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32031         (c_stack_action): Use SA_ONSTACK flag.
32032
32033 2008-12-22  Bruno Haible  <bruno@clisp.org>
32034
32035         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32036
32037 2008-12-22  Bruno Haible  <bruno@clisp.org>
32038
32039         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32040         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32041         being overridden.
32042         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32043         New macros.
32044         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32046         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32047         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32048
32049 2008-12-22  Bruno Haible  <bruno@clisp.org>
32050
32051         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32052         from test code.
32053
32054 2008-12-22  Eric Blake  <ebb9@byu.net>
32055
32056         Avoid gcc warnings on cygwin.
32057         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32058         Avoid unused variable.
32059         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32060         Likewise.
32061
32062 2008-12-22  Bruno Haible  <bruno@clisp.org>
32063
32064         Remove HAVE_MBRTOWC conditionals.
32065         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32066         (mbscasecmp): Assume mbrtowc function.
32067         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32068         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32069         * lib/mbschr.c: Include mbuiter.h unconditionally.
32070         (mbschr): Assume mbrtowc function.
32071         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32072         (mbscspn): Assume mbrtowc function.
32073         * lib/mbslen.c: Include mbuiter.h unconditionally.
32074         (mbslen): Assume mbrtowc function.
32075         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32076         (mbsncasecmp): Assume mbrtowc function.
32077         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32078         (mbsnlen): Assume mbrtowc function.
32079         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32080         (mbspbrk): Assume mbrtowc function.
32081         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32082         (mbspcasecmp): Assume mbrtowc function.
32083         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32084         (mbsrchr): Assume mbrtowc function.
32085         * lib/mbssep.c: Include mbuiter.h unconditionally.
32086         (mbssep): Assume mbrtowc function.
32087         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32088         (mbsspn): Assume mbrtowc function.
32089         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32090         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32091         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32092         (mbstok_r): Assume mbrtowc function.
32093         * lib/propername.c: Include mbuiter.h unconditionally.
32094         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32095         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32096         (trim2): Assume mbrtowc function.
32097         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32098         (mbsnwidth): Assume mbrtowc function.
32099         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32100         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32101         fallback definitions.
32102         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32103
32104 2008-12-22  Bruno Haible  <bruno@clisp.org>
32105
32106         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32107
32108 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32109
32110         * modules/regex: Request emulations for the mb*/wc* functions we need.
32111         * m4/regex.m4: Don't look for those functions here.
32112         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32113
32114 2008-12-22  Bruno Haible  <bruno@clisp.org>
32115
32116         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32117
32118 2008-12-21  Bruno Haible  <bruno@clisp.org>
32119
32120         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32121         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32122         (Include): Remove conditionalization.
32123         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32124         (Include): Remove conditionalization.
32125         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32126         (Include): Remove conditionalization.
32127         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32128         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32129         * NEWS: Mention the change.
32130         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32131         via Sergey Poznyakoff <gray@gnu.org.ua>.
32132
32133 2008-12-21  Bruno Haible  <bruno@clisp.org>
32134
32135         * MODULES.html.sh (Extended multibyte and wide character utilities
32136         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32137         wcrtomb, wcsrtombs.
32138         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32139         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32140         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32141         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32142
32143 2008-12-21  Bruno Haible  <bruno@clisp.org>
32144
32145         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32146
32147 2008-12-21  Bruno Haible  <bruno@clisp.org>
32148
32149         * modules/wcsnrtombs-tests: New file.
32150         * tests/test-wcsnrtombs1.sh: New file.
32151         * tests/test-wcsnrtombs2.sh: New file.
32152         * tests/test-wcsnrtombs3.sh: New file.
32153         * tests/test-wcsnrtombs4.sh: New file.
32154         * tests/test-wcsnrtombs.c: New file.
32155
32156         New module 'wcsnrtombs'.
32157         * lib/wchar.in.h (wcsnrtombs): New declaration.
32158         * lib/wcsnrtombs.c: New file.
32159         * lib/wcsrtombs-state.c: New file.
32160         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32161         (internal_state): Remove variable.
32162         * m4/wcsnrtombs.m4: New file.
32163         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32164         compilation units.
32165         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32166         HAVE_WCSNRTOMBS.
32167         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32168         HAVE_WCSNRTOMBS.
32169         * modules/wcsnrtombs: New file.
32170         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32171         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32172
32173 2008-12-21  Bruno Haible  <bruno@clisp.org>
32174
32175         * modules/wcsrtombs-tests: New file.
32176         * tests/test-wcsrtombs1.sh: New file.
32177         * tests/test-wcsrtombs2.sh: New file.
32178         * tests/test-wcsrtombs3.sh: New file.
32179         * tests/test-wcsrtombs4.sh: New file.
32180         * tests/test-wcsrtombs.c: New file.
32181
32182         New module 'wcsrtombs'.
32183         * lib/wchar.in.h (wcsrtombs): New declaration.
32184         * lib/wcsrtombs.c: New file.
32185         * m4/wcsrtombs.m4: New file.
32186         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32187         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32189         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32190         * modules/wcsrtombs: New file.
32191         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32192         bugs.
32193
32194 2008-12-21  Bruno Haible  <bruno@clisp.org>
32195
32196         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32197         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32198         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32199         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32200         if not correct.
32201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32202         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32203         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32204         m4/locale-zh.m4, m4/codeset.m4.
32205         * doc/posix-functions/wcrtomb.texi: Document the bug.
32206
32207 2008-12-21  Bruno Haible  <bruno@clisp.org>
32208
32209         Work around a btowc() bug on IRIX 6.5.
32210         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32211         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32212         REPLACE_WTOBC if not.
32213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32214         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32215         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32216
32217 2008-12-21  Bruno Haible  <bruno@clisp.org>
32218
32219         * modules/wcrtomb-tests: New file.
32220         * tests/test-wcrtomb.sh: New file.
32221         * tests/test-wcrtomb.c: New file.
32222
32223         New module 'wcrtomb'.
32224         * lib/wchar.in.h (wcrtomb): New declaration.
32225         * lib/wcrtomb.c: New file.
32226         * m4/wcrtomb.m4: New file.
32227         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32228         HAVE_WCRTOMB.
32229         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32230         HAVE_WCRTOMB.
32231         * modules/wcrtomb: New file.
32232         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32233
32234 2008-12-21  Bruno Haible  <bruno@clisp.org>
32235
32236         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32237         * modules/mbsrtowcs (Files): Likewise.
32238         * modules/wctob (Files): Likewise.
32239         * modules/c-strcase-tests (Files): Likewise.
32240         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32241         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32242         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32243         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32244         * modules/vasnprintf-posix-tests (Files): Likewise.
32245
32246 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32247
32248         gitlog-to-changelog: pass all command-line arguments to git-log
32249         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32250         it is sometimes convenient to filter the commits in various ways.
32251         gitlog-to-changelog only allows --since to specify a start date,
32252         but git-log itself supports many other filtering mechanisms.
32253         At the moment, I want to filter by branch name.  Rather than
32254         adding a --branch option to gitlog-to-changelog, it seems more
32255         flexible to simply pass all options directly to git-log and let
32256         git do the work.  Notice that this effectively makes --since a
32257         redundant option for gitlog-to-changelog, but removing it would
32258         require current usage to change since calls would then require
32259         an additional '--'.
32260
32261 2008-12-21  Bruno Haible  <bruno@clisp.org>
32262
32263         * modules/mbsnrtowcs-tests: New file.
32264         * tests/test-mbsnrtowcs1.sh: New file.
32265         * tests/test-mbsnrtowcs2.sh: New file.
32266         * tests/test-mbsnrtowcs3.sh: New file.
32267         * tests/test-mbsnrtowcs4.sh: New file.
32268         * tests/test-mbsnrtowcs.c: New file.
32269
32270         New module 'mbsnrtowcs'.
32271         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32272         * lib/mbsnrtowcs.c: New file.
32273         * lib/mbsrtowcs-state.c: New file.
32274         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32275         (internal_state): Remove variable.
32276         * m4/mbsnrtowcs.m4: New file.
32277         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32278         compilation units.
32279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32280         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32281         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32282         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32283         * modules/mbsnrtowcs: New file.
32284         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32285         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32286         portability problem.
32287
32288 2008-12-21  Bruno Haible  <bruno@clisp.org>
32289
32290         Work around mbsrtowcs bug.
32291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32292         (gl_FUNC_MBSRTOWCS): Invoke it.
32293         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32294         m4/locale-zh.m4.
32295         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32296
32297 2008-12-21  Bruno Haible  <bruno@clisp.org>
32298
32299         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32300
32301 2008-12-21  Bruno Haible  <bruno@clisp.org>
32302
32303         Update doc for AIX.
32304         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32305         16-bit wchar_t type.
32306         * doc/posix-functions/btowc.texi: Likewise.
32307         * doc/posix-functions/fgetwc.texi: Likewise.
32308         * doc/posix-functions/fgetws.texi: Likewise.
32309         * doc/posix-functions/fputwc.texi: Likewise.
32310         * doc/posix-functions/fputws.texi: Likewise.
32311         * doc/posix-functions/fwide.texi: Likewise.
32312         * doc/posix-functions/fwprintf.texi: Likewise.
32313         * doc/posix-functions/fwscanf.texi: Likewise.
32314         * doc/posix-functions/getwchar.texi: Likewise.
32315         * doc/posix-functions/getwc.texi: Likewise.
32316         * doc/posix-functions/iswalnum.texi: Likewise.
32317         * doc/posix-functions/iswalpha.texi: Likewise.
32318         * doc/posix-functions/iswblank.texi: Likewise.
32319         * doc/posix-functions/iswcntrl.texi: Likewise.
32320         * doc/posix-functions/iswctype.texi: Likewise.
32321         * doc/posix-functions/iswdigit.texi: Likewise.
32322         * doc/posix-functions/iswgraph.texi: Likewise.
32323         * doc/posix-functions/iswlower.texi: Likewise.
32324         * doc/posix-functions/iswprint.texi: Likewise.
32325         * doc/posix-functions/iswpunct.texi: Likewise.
32326         * doc/posix-functions/iswspace.texi: Likewise.
32327         * doc/posix-functions/iswupper.texi: Likewise.
32328         * doc/posix-functions/iswxdigit.texi: Likewise.
32329         * doc/posix-functions/mbrtowc.texi: Likewise.
32330         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32331         * doc/posix-functions/mbstowcs.texi: Likewise.
32332         * doc/posix-functions/mbtowc.texi: Likewise.
32333         * doc/posix-functions/putwchar.texi: Likewise.
32334         * doc/posix-functions/putwc.texi: Likewise.
32335         * doc/posix-functions/swprintf.texi: Likewise.
32336         * doc/posix-functions/tolower.texi: Likewise.
32337         * doc/posix-functions/toupper.texi: Likewise.
32338         * doc/posix-functions/towctrans.texi: Likewise.
32339         * doc/posix-functions/ungetwc.texi: Likewise.
32340         * doc/posix-functions/vswprintf.texi: Likewise.
32341         * doc/posix-functions/wcrtomb.texi: Likewise.
32342         * doc/posix-functions/wcscat.texi: Likewise.
32343         * doc/posix-functions/wcschr.texi: Likewise.
32344         * doc/posix-functions/wcscmp.texi: Likewise.
32345         * doc/posix-functions/wcscoll.texi: Likewise.
32346         * doc/posix-functions/wcscpy.texi: Likewise.
32347         * doc/posix-functions/wcscspn.texi: Likewise.
32348         * doc/posix-functions/wcsftime.texi: Likewise.
32349         * doc/posix-functions/wcslen.texi: Likewise.
32350         * doc/posix-functions/wcsncat.texi: Likewise.
32351         * doc/posix-functions/wcsncmp.texi: Likewise.
32352         * doc/posix-functions/wcsncpy.texi: Likewise.
32353         * doc/posix-functions/wcspbrk.texi: Likewise.
32354         * doc/posix-functions/wcsrchr.texi: Likewise.
32355         * doc/posix-functions/wcsrtombs.texi: Likewise.
32356         * doc/posix-functions/wcsspn.texi: Likewise.
32357         * doc/posix-functions/wcsstr.texi: Likewise.
32358         * doc/posix-functions/wcstod.texi: Likewise.
32359         * doc/posix-functions/wcstof.texi: Likewise.
32360         * doc/posix-functions/wcstoimax.texi: Likewise.
32361         * doc/posix-functions/wcstok.texi: Likewise.
32362         * doc/posix-functions/wcstold.texi: Likewise.
32363         * doc/posix-functions/wcstoll.texi: Likewise.
32364         * doc/posix-functions/wcstol.texi: Likewise.
32365         * doc/posix-functions/wcstombs.texi: Likewise.
32366         * doc/posix-functions/wcstoull.texi: Likewise.
32367         * doc/posix-functions/wcstoul.texi: Likewise.
32368         * doc/posix-functions/wcstoumax.texi: Likewise.
32369         * doc/posix-functions/wcswidth.texi: Likewise.
32370         * doc/posix-functions/wcsxfrm.texi: Likewise.
32371         * doc/posix-functions/wctob.texi: Likewise.
32372         * doc/posix-functions/wctomb.texi: Likewise.
32373         * doc/posix-functions/wctrans.texi: Likewise.
32374         * doc/posix-functions/wctype.texi: Likewise.
32375         * doc/posix-functions/wcwidth.texi: Likewise.
32376         * doc/posix-functions/wmemchr.texi: Likewise.
32377         * doc/posix-functions/wmemcmp.texi: Likewise.
32378         * doc/posix-functions/wmemcpy.texi: Likewise.
32379         * doc/posix-functions/wmemmove.texi: Likewise.
32380         * doc/posix-functions/wmemset.texi: Likewise.
32381         * doc/posix-functions/wprintf.texi: Likewise.
32382         * doc/posix-functions/wscanf.texi: Likewise.
32383
32384 2008-12-21  Bruno Haible  <bruno@clisp.org>
32385
32386         Update doc for HP-UX 11.11.
32387         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32388         in HP-UX version 11.00, not in all versions of HP-UX 11.
32389         * doc/posix-functions/fwide.texi: Likewise.
32390         * doc/posix-functions/fwprintf.texi: Likewise.
32391         * doc/posix-functions/fwscanf.texi: Likewise.
32392         * doc/posix-functions/inet_ntop.texi: Likewise.
32393         * doc/posix-functions/inet_pton.texi: Likewise.
32394         * doc/posix-functions/mbrlen.texi: Likewise.
32395         * doc/posix-functions/mbrtowc.texi: Likewise.
32396         * doc/posix-functions/mbsinit.texi: Likewise.
32397         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32398         * doc/posix-functions/swprintf.texi: Likewise.
32399         * doc/posix-functions/swscanf.texi: Likewise.
32400         * doc/posix-functions/towctrans.texi: Likewise.
32401         * doc/posix-functions/vfwprintf.texi: Likewise.
32402         * doc/posix-functions/vswprintf.texi: Likewise.
32403         * doc/posix-functions/vwprintf.texi: Likewise.
32404         * doc/posix-functions/wcrtomb.texi: Likewise.
32405         * doc/posix-functions/wcsrtombs.texi: Likewise.
32406         * doc/posix-functions/wcsstr.texi: Likewise.
32407         * doc/posix-functions/wctob.texi: Likewise.
32408         * doc/posix-functions/wctrans.texi: Likewise.
32409         * doc/posix-functions/wmemchr.texi: Likewise.
32410         * doc/posix-functions/wmemcmp.texi: Likewise.
32411         * doc/posix-functions/wmemcpy.texi: Likewise.
32412         * doc/posix-functions/wmemmove.texi: Likewise.
32413         * doc/posix-functions/wmemset.texi: Likewise.
32414         * doc/posix-functions/wprintf.texi: Likewise.
32415         * doc/posix-functions/wscanf.texi: Likewise.
32416
32417 2008-12-21  Bruno Haible  <bruno@clisp.org>
32418
32419         Work around a portability problem.
32420         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32421         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32422
32423 2008-12-20  Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32426         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32427         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32429         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32430
32431         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32432         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32433         set.
32434         (GNULIB_defined_mbstate_t): New macro.
32435         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32436         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32437         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32438         reuses the system's mbrtowc function but works around the bugs.
32439         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32440         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32441         macros.
32442         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32443         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32444         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32445         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32446         REPLACE_MBSINIT if mbsinit needs to be overridden.
32447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32448         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32449         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32450         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32451         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32452         m4/locale-zh.m4.
32453         (Depends): Add mbsinit.
32454         * modules/mbsinit (Depends): Add mbrtowc.
32455         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32456
32457 2008-12-20  Bruno Haible  <bruno@clisp.org>
32458
32459         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32460         so that there are no conversion errors on AIX.
32461         * tests/test-mbsrtowcs.c (main): LIkewise.
32462
32463 2008-12-20  Bruno Haible  <bruno@clisp.org>
32464
32465         Work around wctob bug on Solaris <= 9.
32466         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32467         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32469         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32470         * modules/wctob (Files): Add m4/locale-fr.m4.
32471         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32472
32473 2008-12-20  Bruno Haible  <bruno@clisp.org>
32474
32475         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32476         /dev/null.
32477         * tests/test-select-in.sh: Likewise.
32478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32479
32480 2008-12-20  Bruno Haible  <bruno@clisp.org>
32481
32482         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32483         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32484         Cygwin 1.5.x.
32485
32486 2008-12-20  Bruno Haible  <bruno@clisp.org>
32487
32488         Ensure mbstate_t is defined on HP-UX 11.11.
32489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32490         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32491         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32492         AC_USE_SYSTEM_EXTENSIONS.
32493         * modules/fnmatch (Depends-on): Add extensions.
32494         * modules/mbrlen (Depends-on): Likewise.
32495         * modules/mbrtowc (Depends-on): Likewise.
32496         * modules/mbsinit (Depends-on): Likewise.
32497         * modules/mbsrtowcs (Depends-on): Likewise.
32498         * modules/mbswidth (Depends-on): Likewise.
32499         * modules/quotearg (Depends-on): Likewise.
32500         * modules/strftime (Depends-on): Likewise.
32501
32502 2008-12-20  Bruno Haible  <bruno@clisp.org>
32503
32504         Ensure wctob is declared on IRIX 6.5.
32505         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32506         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32507         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32509         of HAVE_WCTOB.
32510         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32511         HAVE_WCTOB.
32512         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32513
32514 2008-12-19  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/mbsrtowcs-tests: New file.
32517         * tests/test-mbsrtowcs1.sh: New file.
32518         * tests/test-mbsrtowcs2.sh: New file.
32519         * tests/test-mbsrtowcs3.sh: New file.
32520         * tests/test-mbsrtowcs4.sh: New file.
32521         * tests/test-mbsrtowcs.c: New file.
32522
32523         New module 'mbsrtowcs'.
32524         * lib/wchar.in.h (mbsrtowcs): New declaration.
32525         * lib/mbsrtowcs.c: New file.
32526         * m4/mbsrtowcs.m4: New file.
32527         * modules/mbsrtowcs: New file.
32528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32529         HAVE_MBSRTOWCS.
32530         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32531         HAVE_MBSRTOWCS.
32532         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32533
32534 2008-12-19  Bruno Haible  <bruno@clisp.org>
32535
32536         New module 'mbrlen'.
32537         * lib/wchar.in.h (mbrlen): New declaration.
32538         * lib/mbrlen.c: New file.
32539         * m4/mbrlen.m4: New file.
32540         * modules/mbrlen: New file.
32541         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32542         HAVE_MBRLEN.
32543         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32544         HAVE_MBRLEN.
32545         * doc/posix-functions/mbrlen.texi: Document the new module.
32546
32547 2008-12-19  Bruno Haible  <bruno@clisp.org>
32548
32549         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32550         * modules/mbrtowc (Depends-on): Add verify.
32551         Suggested by Paul Eggert.
32552
32553 2008-12-18  Bruno Haible  <bruno@clisp.org>
32554
32555         * modules/mbsinit-tests: New file.
32556         * tests/test-mbsinit.sh: New file.
32557         * tests/test-mbsinit.c: New file.
32558
32559 2008-12-18  Bruno Haible  <bruno@clisp.org>
32560
32561         * modules/mbrtowc-tests: New file.
32562         * tests/test-mbrtowc1.sh: New file.
32563         * tests/test-mbrtowc2.sh: New file.
32564         * tests/test-mbrtowc3.sh: New file.
32565         * tests/test-mbrtowc4.sh: New file.
32566         * tests/test-mbrtowc.c: New file.
32567
32568         New module 'mbrtowc'.
32569         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32570         mbsinit and mbrtowc.
32571         (mbrtowc): New declaration.
32572         * lib/mbrtowc.c: New file.
32573         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32574         * modules/mbrtowc: New file.
32575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32576         HAVE_MBRTOWC.
32577         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32578         HAVE_MBRTOWC.
32579         * doc/posix-functions/mbrtowc.texi: Document the new module.
32580
32581 2008-12-18  Bruno Haible  <bruno@clisp.org>
32582
32583         New module 'wctob'.
32584         * lib/wchar.in.h (wctob): New declaration.
32585         * lib/wctob.c: New file.
32586         * m4/wctob.m4: New file.
32587         * modules/wctob: New file.
32588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32589         HAVE_WCTOB.
32590         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32591         * doc/posix-functions/wctob.texi: Document the new module.
32592
32593 2008-12-18  Bruno Haible  <bruno@clisp.org>
32594
32595         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32596         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32597
32598 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32599
32600         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32601         G. Christensen" <tgc@jupiterrise.com>.
32602
32603         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32604         G. Christensen" <tgc@jupiterrise.com>.
32605
32606         * lib/flock.c: Need to include string.h.  Reported by "Tom
32607         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32608         <ebb9@byu.net>.
32609
32610 2008-12-18  Bruno Haible  <bruno@clisp.org>
32611
32612         * m4/locale-ja.m4: New file, from GNU gettext.
32613
32614 2008-12-17  Bruno Haible  <bruno@clisp.org>
32615
32616         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32617         Suggested by Eric Blake.
32618
32619 2008-12-17  Bruno Haible  <bruno@clisp.org>
32620
32621         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32622
32623 2008-12-17  Bruno Haible  <bruno@clisp.org>
32624
32625         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32626         * modules/mbsinit (Depends-on): Add verify.
32627         Suggested by Paul Eggert.
32628
32629 2008-12-17  Bruno Haible  <bruno@clisp.org>
32630
32631         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32632         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32633         gl_FUNC_MBRTOWC.
32634         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32635         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32636         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32637         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32638         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32639         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32640         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32641         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32642         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32643         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32644         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32645         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32646         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32647         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32648         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32649         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32650         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32651         * modules/trim (configure.ac): Likewise.
32652
32653 2008-12-17  Bruno Haible  <bruno@clisp.org>
32654
32655         * modules/btowc-tests: New file.
32656         * tests/test-btowc1.sh: New file.
32657         * tests/test-btowc2.sh: New file.
32658         * tests/test-btowc.c: New file.
32659
32660         New module 'btowc'.
32661         * lib/wchar.in.h (btowc): New declaration.
32662         * lib/btowc.c: New file.
32663         * m4/btowc.m4: New file.
32664         * modules/btowc: New file.
32665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32666         HAVE_BTOWC.
32667         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32668         * doc/posix-functions/btowc.texi: Document the new module.
32669
32670 2008-12-17  Bruno Haible  <bruno@clisp.org>
32671
32672         New module 'mbsinit'.
32673         * lib/wchar.in.h (mbsinit): New declaration.
32674         * lib/mbsinit.c: New file.
32675         * m4/mbsinit.m4: New file.
32676         * modules/mbsinit: New file.
32677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32678         HAVE_MBSINIT.
32679         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32680         HAVE_MBSINIT.
32681         * doc/posix-functions/mbsinit.texi: Document the new module.
32682
32683 2008-12-16  Bruno Haible  <bruno@clisp.org>
32684
32685         * lib/unistd.in.h: Add comment.
32686         * tests/test-environ.c: Don't include <stdlib.h>.
32687
32688 2008-12-16  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/parse-duration.h (parse_duration): Document return value
32691         convention.
32692         * lib/parse-duration.c: Include specification header first. Add
32693         comments.
32694         (_): Remove macro.
32695         (parse_year_month_day, parse_hour_minute_second): Move side effects
32696         outside of strchr call.
32697         (parse_non_iso8601): Move side effects outside of isspace call.
32698         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32699         call.
32700
32701 2008-12-16  Bruno Haible  <bruno@clisp.org>
32702
32703         * tests/test-parse-duration.sh: Produce no output when the test
32704         succeeds.
32705
32706 2008-12-16  Bruno Haible  <bruno@clisp.org>
32707
32708         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32709         expressions.
32710
32711 2008-12-15  Bruno Haible  <bruno@clisp.org>
32712
32713         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32714         * doc/glibc-functions/flistxattr.texi: Likewise.
32715         * doc/glibc-functions/fopencookie.texi: Likewise.
32716         * doc/glibc-functions/fremovexattr.texi: Likewise.
32717         * doc/glibc-functions/fsetxattr.texi: Likewise.
32718         * doc/glibc-functions/getxattr.texi: Likewise.
32719         * doc/glibc-functions/lgetxattr.texi: Likewise.
32720         * doc/glibc-functions/listxattr.texi: Likewise.
32721         * doc/glibc-functions/llistxattr.texi: Likewise.
32722         * doc/glibc-functions/lremovexattr.texi: Likewise.
32723         * doc/glibc-functions/lsetxattr.texi: Likewise.
32724         * doc/glibc-functions/removexattr.texi: Likewise.
32725         * doc/glibc-functions/setxattr.texi: Likewise.
32726         * doc/posix-functions/open_memstream.texi: Likewise.
32727
32728 2008-12-15  Eric Blake  <ebb9@byu.net>
32729
32730         Update doc for cygwin 1.7.
32731         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32732         functions.
32733         * doc/posix-functions/fchmodat.texi: Likewise.
32734         * doc/posix-functions/fchownat.texi: Likewise.
32735         * doc/posix-functions/fdopendir.texi: Likewise.
32736         * doc/posix-functions/fmemopen.texi: Likewise.
32737         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32738         * doc/posix-functions/fstatat.texi: Likewise.
32739         * doc/posix-functions/futimens.texi: Likewise.
32740         * doc/posix-functions/gai_strerror.texi: Likewise.
32741         * doc/posix-functions/getaddrinfo.texi: Likewise.
32742         * doc/posix-functions/getnameinfo.texi: Likewise.
32743         * doc/posix-functions/if_freenameindex.texi: Likewise.
32744         * doc/posix-functions/if_indextoname.texi: Likewise.
32745         * doc/posix-functions/if_nameindex.texi: Likewise.
32746         * doc/posix-functions/if_nametoindex.texi: Likewise.
32747         * doc/posix-functions/insque.texi: Likewise.
32748         * doc/posix-functions/linkat.texi: Likewise.
32749         * doc/posix-functions/llrint.texi: Likewise.
32750         * doc/posix-functions/llrintf.texi: Likewise.
32751         * doc/posix-functions/llrintl.texi: Likewise.
32752         * doc/posix-functions/lockf.texi: Likewise.
32753         * doc/posix-functions/lrintl.texi: Likewise.
32754         * doc/posix-functions/mkdirat.texi: Likewise.
32755         * doc/posix-functions/mkfifoat.texi: Likewise.
32756         * doc/posix-functions/mknodat.texi: Likewise.
32757         * doc/posix-functions/mq_close.texi: Likewise.
32758         * doc/posix-functions/mq_getattr.texi: Likewise.
32759         * doc/posix-functions/mq_notify.texi: Likewise.
32760         * doc/posix-functions/mq_open.texi: Likewise.
32761         * doc/posix-functions/mq_receive.texi: Likewise.
32762         * doc/posix-functions/mq_send.texi: Likewise.
32763         * doc/posix-functions/mq_setattr.texi: Likewise.
32764         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32765         * doc/posix-functions/mq_timedsend.texi: Likewise.
32766         * doc/posix-functions/mq_unlink.texi: Likewise.
32767         * doc/posix-functions/open_memstream.texi: Likewise.
32768         * doc/posix-functions/openat.texi: Likewise.
32769         * doc/posix-functions/posix_fadvise.texi: Likewise.
32770         * doc/posix-functions/posix_fallocate.texi: Likewise.
32771         * doc/posix-functions/posix_madvise.texi: Likewise.
32772         * doc/posix-functions/posix_memalign.texi: Likewise.
32773         * doc/posix-functions/posix_openpt.texi: Likewise.
32774         * doc/posix-functions/readlinkat.texi: Likewise.
32775         * doc/posix-functions/remque.texi: Likewise.
32776         * doc/posix-functions/renameat.texi: Likewise.
32777         * doc/posix-functions/rintl.texi: Likewise.
32778         * doc/posix-functions/sem_unlink.texi: Likewise.
32779         * doc/posix-functions/shm_open.texi: Likewise.
32780         * doc/posix-functions/shm_unlink.texi: Likewise.
32781         * doc/posix-functions/signgam.texi: Likewise.
32782         * doc/posix-functions/sigset.texi: Likewise.
32783         * doc/posix-functions/stpcpy.texi: Likewise.
32784         * doc/posix-functions/stpncpy.texi: Likewise.
32785         * doc/posix-functions/strerror.texi: Likewise.
32786         * doc/posix-functions/strtod.texi: Likewise.
32787         * doc/posix-functions/symlinkat.texi: Likewise.
32788         * doc/posix-functions/unlinkat.texi: Likewise.
32789         * doc/posix-functions/utimensat.texi: Likewise.
32790         * doc/glibc-functions/bindresvport.texi: Likewise.
32791         * doc/glibc-functions/dn_expand.texi: Likewise.
32792         * doc/glibc-functions/exp10.texi: Likewise.
32793         * doc/glibc-functions/exp10f.texi: Likewise.
32794         * doc/glibc-functions/fgetxattr.texi: Likewise.
32795         * doc/glibc-functions/flistxattr.texi: Likewise.
32796         * doc/glibc-functions/fopencookie.texi: Likewise.
32797         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32798         * doc/glibc-functions/fremovexattr.texi: Likewise.
32799         * doc/glibc-functions/fsetxattr.texi: Likewise.
32800         * doc/glibc-functions/getifaddrs.texi: Likewise.
32801         * doc/glibc-functions/getxattr.texi: Likewise.
32802         * doc/glibc-functions/lgetxattr.texi: Likewise.
32803         * doc/glibc-functions/listxattr.texi: Likewise.
32804         * doc/glibc-functions/llistxattr.texi: Likewise.
32805         * doc/glibc-functions/lremovexattr.texi: Likewise.
32806         * doc/glibc-functions/lsetxattr.texi: Likewise.
32807         * doc/glibc-functions/pow10.texi: Likewise.
32808         * doc/glibc-functions/pow10f.texi: Likewise.
32809         * doc/glibc-functions/rcmd_af.texi: Likewise.
32810         * doc/glibc-functions/removexattr.texi: Likewise.
32811         * doc/glibc-functions/res_init.texi: Likewise.
32812         * doc/glibc-functions/res_mkquery.texi: Likewise.
32813         * doc/glibc-functions/res_query.texi: Likewise.
32814         * doc/glibc-functions/res_querydomain.texi: Likewise.
32815         * doc/glibc-functions/res_send.texi: Likewise.
32816         * doc/glibc-functions/rresvport_af.texi: Likewise.
32817         * doc/glibc-functions/setxattr.texi: Likewise.
32818         * doc/glibc-functions/strcasestr.texi: Likewise.
32819
32820 2008-12-15  Bruno Haible  <bruno@clisp.org>
32821
32822         Fix compilation error on OSF/1 4.0.
32823         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32824         <sys/time.h>, simply delegate to the system header.
32825         Reported by Daniel Richard G. <oss@teragram.com>.
32826
32827 2008-12-15  Bruno Haible  <bruno@clisp.org>
32828
32829         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32830         * doc/posix-functions/fchmodat.texi: Likewise.
32831         * doc/posix-functions/fchownat.texi: Likewise.
32832         * doc/posix-functions/fdopendir.texi: Likewise.
32833         * doc/posix-functions/fstatat.texi: Likewise.
32834         * doc/posix-functions/mkdirat.texi: Likewise.
32835         * doc/posix-functions/unlinkat.texi: Likewise.
32836
32837 2008-12-14  Bruno Haible  <bruno@clisp.org>
32838
32839         Update doc for POSIX:2008.
32840         * doc/posix-functions/faccessat.texi: New file.
32841         * doc/posix-functions/fchmodat.texi: New file.
32842         * doc/posix-functions/fchownat.texi: New file.
32843         * doc/posix-functions/fdopendir.texi: New file.
32844         * doc/posix-functions/fstatat.texi: New file.
32845         * doc/posix-functions/futimens.texi: New file.
32846         * doc/posix-functions/linkat.texi: New file.
32847         * doc/posix-functions/mkdirat.texi: New file.
32848         * doc/posix-functions/mkfifoat.texi: New file.
32849         * doc/posix-functions/mknodat.texi: New file.
32850         * doc/posix-functions/open_wmemstream.texi: New file.
32851         * doc/posix-functions/openat.texi: New file.
32852         * doc/posix-functions/psiginfo.texi: New file.
32853         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32854         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32855         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32856         * doc/posix-functions/readlinkat.texi: New file.
32857         * doc/posix-functions/renameat.texi: New file.
32858         * doc/posix-functions/strerror_l.texi: New file.
32859         * doc/posix-functions/symlinkat.texi: New file.
32860         * doc/posix-functions/unlinkat.texi: New file.
32861         * doc/posix-functions/utimensat.texi: New file.
32862         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32863
32864 2008-12-14  Bruno Haible  <bruno@clisp.org>
32865
32866         Update doc for POSIX:2008.
32867         * doc/posix-functions/alphasort.texi: Renamed from
32868         doc/glibc-functions/alphasort.texi.
32869         * doc/posix-functions/dirfd.texi: Renamed from
32870         doc/glibc-functions/dirfd.texi.
32871         * doc/posix-functions/dprintf.texi: Renamed from
32872         doc/glibc-functions/dprintf.texi.
32873         * doc/posix-functions/duplocale.texi: Renamed from
32874         doc/glibc-functions/duplocale.texi.
32875         * doc/posix-functions/fexecve.texi: Renamed from
32876         doc/glibc-functions/fexecve.texi.
32877         * doc/posix-functions/fmemopen.texi: Renamed from
32878         doc/glibc-functions/fmemopen.texi.
32879         * doc/posix-functions/freelocale.texi: Renamed from
32880         doc/glibc-functions/freelocale.texi.
32881         * doc/posix-functions/getdate_err.texi: Renamed from
32882         doc/glibc-functions/getdate_err.texi.
32883         * doc/posix-functions/isalnum_l.texi: Renamed from
32884         doc/glibc-functions/isalnum_l.texi.
32885         * doc/posix-functions/isalpha_l.texi: Renamed from
32886         doc/glibc-functions/isalpha_l.texi.
32887         * doc/posix-functions/isblank_l.texi: Renamed from
32888         doc/glibc-functions/isblank_l.texi.
32889         * doc/posix-functions/iscntrl_l.texi: Renamed from
32890         doc/glibc-functions/iscntrl_l.texi.
32891         * doc/posix-functions/isdigit_l.texi: Renamed from
32892         doc/glibc-functions/isdigit_l.texi.
32893         * doc/posix-functions/isgraph_l.texi: Renamed from
32894         doc/glibc-functions/isgraph_l.texi.
32895         * doc/posix-functions/islower_l.texi: Renamed from
32896         doc/glibc-functions/islower_l.texi.
32897         * doc/posix-functions/isprint_l.texi: Renamed from
32898         doc/glibc-functions/isprint_l.texi.
32899         * doc/posix-functions/ispunct_l.texi: Renamed from
32900         doc/glibc-functions/ispunct_l.texi.
32901         * doc/posix-functions/isspace_l.texi: Renamed from
32902         doc/glibc-functions/isspace_l.texi.
32903         * doc/posix-functions/isupper_l.texi: Renamed from
32904         doc/glibc-functions/isupper_l.texi.
32905         * doc/posix-functions/iswalnum_l.texi: Renamed from
32906         doc/glibc-functions/iswalnum_l.texi.
32907         * doc/posix-functions/iswalpha_l.texi: Renamed from
32908         doc/glibc-functions/iswalpha_l.texi.
32909         * doc/posix-functions/iswblank_l.texi: Renamed from
32910         doc/glibc-functions/iswblank_l.texi.
32911         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32912         doc/glibc-functions/iswcntrl_l.texi.
32913         * doc/posix-functions/iswctype_l.texi: Renamed from
32914         doc/glibc-functions/iswctype_l.texi.
32915         * doc/posix-functions/iswdigit_l.texi: Renamed from
32916         doc/glibc-functions/iswdigit_l.texi.
32917         * doc/posix-functions/iswgraph_l.texi: Renamed from
32918         doc/glibc-functions/iswgraph_l.texi.
32919         * doc/posix-functions/iswlower_l.texi: Renamed from
32920         doc/glibc-functions/iswlower_l.texi.
32921         * doc/posix-functions/iswprint_l.texi: Renamed from
32922         doc/glibc-functions/iswprint_l.texi.
32923         * doc/posix-functions/iswpunct_l.texi: Renamed from
32924         doc/glibc-functions/iswpunct_l.texi.
32925         * doc/posix-functions/iswspace_l.texi: Renamed from
32926         doc/glibc-functions/iswspace_l.texi.
32927         * doc/posix-functions/iswupper_l.texi: Renamed from
32928         doc/glibc-functions/iswupper_l.texi.
32929         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32930         doc/glibc-functions/iswxdigit_l.texi.
32931         * doc/posix-functions/isxdigit_l.texi: Renamed from
32932         doc/glibc-functions/isxdigit_l.texi.
32933         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32934         doc/glibc-functions/mbsnrtowcs.texi.
32935         * doc/posix-functions/mkdtemp.texi: Renamed from
32936         doc/glibc-functions/mkdtemp.texi.
32937         * doc/posix-functions/newlocale.texi: Renamed from
32938         doc/glibc-functions/newlocale.texi.
32939         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32940         doc/glibc-functions/nl_langinfo_l.texi.
32941         * doc/posix-functions/open_memstream.texi: Renamed from
32942         doc/glibc-functions/open_memstream.texi.
32943         * doc/posix-functions/opterr.texi: Renamed from
32944         doc/glibc-functions/opterr.texi.
32945         * doc/posix-functions/optind.texi: Renamed from
32946         doc/glibc-functions/optind.texi.
32947         * doc/posix-functions/optopt.texi: Renamed from
32948         doc/glibc-functions/optopt.texi.
32949         * doc/posix-functions/psignal.texi: Renamed from
32950         doc/glibc-functions/psignal.texi.
32951         * doc/posix-functions/scandir.texi: Renamed from
32952         doc/glibc-functions/scandir.texi.
32953         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32954         doc/glibc-functions/sched_get_priority_min.texi.
32955         * doc/posix-functions/signgam.texi: Renamed from
32956         doc/glibc-functions/signgam.texi.
32957         * doc/posix-functions/stpcpy.texi: Renamed from
32958         doc/glibc-functions/stpcpy.texi.
32959         * doc/posix-functions/stpncpy.texi: Renamed from
32960         doc/glibc-functions/stpncpy.texi.
32961         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32962         doc/glibc-functions/strcasecmp_l.texi.
32963         * doc/posix-functions/strcoll_l.texi: Renamed from
32964         doc/glibc-functions/strcoll_l.texi.
32965         * doc/posix-functions/strfmon_l.texi: Renamed from
32966         doc/glibc-functions/strfmon_l.texi.
32967         * doc/posix-functions/strftime_l.texi: Renamed from
32968         doc/glibc-functions/strftime_l.texi.
32969         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32970         doc/glibc-functions/strncasecmp_l.texi.
32971         * doc/posix-functions/strndup.texi: Renamed from
32972         doc/glibc-functions/strndup.texi.
32973         * doc/posix-functions/strnlen.texi: Renamed from
32974         doc/glibc-functions/strnlen.texi.
32975         * doc/posix-functions/strsignal.texi: Renamed from
32976         doc/glibc-functions/strsignal.texi.
32977         * doc/posix-functions/strxfrm_l.texi: Renamed from
32978         doc/glibc-functions/strxfrm_l.texi.
32979         * doc/posix-functions/timer_gettime.texi: Renamed from
32980         doc/glibc-functions/timer_gettime.texi.
32981         * doc/posix-functions/tolower_l.texi: Renamed from
32982         doc/glibc-functions/tolower_l.texi.
32983         * doc/posix-functions/toupper_l.texi: Renamed from
32984         doc/glibc-functions/toupper_l.texi.
32985         * doc/posix-functions/towctrans_l.texi: Renamed from
32986         doc/glibc-functions/towctrans_l.texi.
32987         * doc/posix-functions/towlower_l.texi: Renamed from
32988         doc/glibc-functions/towlower_l.texi.
32989         * doc/posix-functions/towupper_l.texi: Renamed from
32990         doc/glibc-functions/towupper_l.texi.
32991         * doc/posix-functions/uselocale.texi: Renamed from
32992         doc/glibc-functions/uselocale.texi.
32993         * doc/posix-functions/vdprintf.texi: Renamed from
32994         doc/glibc-functions/vdprintf.texi.
32995         * doc/posix-functions/wcpcpy.texi:
32996         Renamed from doc/glibc-functions/wcpcpy.texi.
32997         * doc/posix-functions/wcpncpy.texi: Renamed from
32998         doc/glibc-functions/wcpncpy.texi.
32999         * doc/posix-functions/wcscasecmp.texi: Renamed from
33000         doc/glibc-functions/wcscasecmp.texi.
33001         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33002         doc/glibc-functions/wcscasecmp_l.texi.
33003         * doc/posix-functions/wcscoll_l.texi: Renamed from
33004         doc/glibc-functions/wcscoll_l.texi.
33005         * doc/posix-functions/wcsdup.texi: Renamed from
33006         doc/glibc-functions/wcsdup.texi.
33007         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33008         doc/glibc-functions/wcsncasecmp.texi.
33009         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33010         doc/glibc-functions/wcsncasecmp_l.texi.
33011         * doc/posix-functions/wcsnlen.texi: Renamed from
33012         doc/glibc-functions/wcsnlen.texi.
33013         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33014         doc/glibc-functions/wcsnrtombs.texi.
33015         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33016         doc/glibc-functions/wcsxfrm_l.texi.
33017         * doc/posix-functions/wctrans_l.texi: Renamed from
33018         doc/glibc-functions/wctrans_l.texi.
33019         * doc/posix-functions/wctype_l.texi: Renamed from
33020         doc/glibc-functions/wctype_l.texi.
33021         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33022         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33023         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33024         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33025         these subsections.
33026         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33027         Remove sections.
33028
33029 2008-12-14  Bruno Haible  <bruno@clisp.org>
33030
33031         Update doc for POSIX:2008.
33032         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33033
33034 2008-12-14  Bruno Haible  <bruno@clisp.org>
33035
33036         Update doc for POSIX:2008.
33037         * doc/pastposix-functions/bcmp.texi: Renamed from
33038         doc/posix-functions/bcmp.texi.
33039         * doc/pastposix-functions/bcopy.texi: Renamed from
33040         doc/posix-functions/bcopy.texi.
33041         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33042         doc/posix-functions/bsd_signal.texi.
33043         * doc/pastposix-functions/bzero.texi: Renamed from
33044         doc/posix-functions/bzero.texi.
33045         * doc/pastposix-functions/ecvt.texi: Renamed from
33046         doc/posix-functions/ecvt.texi.
33047         * doc/pastposix-functions/fcvt.texi: Renamed from
33048         doc/posix-functions/fcvt.texi.
33049         * doc/pastposix-functions/ftime.texi: Renamed from
33050         doc/posix-functions/ftime.texi.
33051         * doc/pastposix-functions/gcvt.texi: Renamed from
33052         doc/posix-functions/gcvt.texi.
33053         * doc/pastposix-functions/getcontext.texi: Renamed from
33054         doc/posix-functions/getcontext.texi.
33055         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33056         doc/posix-functions/gethostbyaddr.texi.
33057         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33058         doc/posix-functions/gethostbyname.texi.
33059         * doc/pastposix-functions/getwd.texi: Renamed from
33060         doc/posix-functions/getwd.texi.
33061         * doc/pastposix-functions/h_errno.texi: Renamed from
33062         doc/posix-functions/h_errno.texi.
33063         * doc/pastposix-functions/index.texi: Renamed from
33064         doc/posix-functions/index.texi.
33065         * doc/pastposix-functions/makecontext.texi: Renamed from
33066         doc/posix-functions/makecontext.texi.
33067         * doc/pastposix-functions/mktemp.texi: Renamed from
33068         doc/posix-functions/mktemp.texi.
33069         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33070         doc/posix-functions/pthread_attr_getstackaddr.texi.
33071         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33072         doc/posix-functions/pthread_attr_setstackaddr.texi.
33073         * doc/pastposix-functions/rindex.texi: Renamed from
33074         doc/posix-functions/rindex.texi.
33075         * doc/pastposix-functions/scalb.texi: Renamed from
33076         doc/posix-functions/scalb.texi.
33077         * doc/pastposix-functions/setcontext.texi: Renamed from
33078         doc/posix-functions/setcontext.texi.
33079         * doc/pastposix-functions/swapcontext.texi: Renamed from
33080         doc/posix-functions/swapcontext.texi.
33081         * doc/pastposix-functions/ualarm.texi: Renamed from
33082         doc/posix-functions/ualarm.texi.
33083         * doc/pastposix-functions/usleep.texi: Renamed from
33084         doc/posix-functions/usleep.texi.
33085         * doc/pastposix-functions/vfork.texi: Renamed from
33086         doc/posix-functions/vfork.texi.
33087         * doc/pastposix-functions/wcswcs.texi: Renamed from
33088         doc/posix-functions/wcswcs.texi.
33089         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33090         (Function Substitutes): Update.
33091
33092 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33093
33094         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33095         m4/strerror.m4.
33096
33097 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33098             Bruno Haible  <bruno@clisp.org>
33099
33100         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33101
33102 2008-12-13  Bruno Haible  <bruno@clisp.org>
33103
33104         * modules/strtoull (Depends-on): Remove unistd.
33105
33106 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33107
33108         * modules/strtoull (Depends-on): Add stdlib.
33109
33110 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33111
33112         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33113
33114 2008-12-10  Jim Meyering  <meyering@redhat.com>
33115
33116         gl_ASSERT: don't say assertions are disabled when they're not
33117         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33118         "checking whether to enable assertions... no", when they are in
33119         fact enabled.  This is solely a bug in the output of configure.
33120         In spite of saying "no", NDEBUG was not defined in that case.
33121         Also, as noted by Eric Blake, leave assertions enabled upon
33122         --enable-assert=INVALID.
33123
33124 2008-12-10  Bruno Haible  <bruno@clisp.org>
33125
33126         Change MODULES.html to refer to POSIX:2008 where possible.
33127         * MODULES.html.sh (POSIX2008_URL): New variable.
33128         (posix_headers): Remove sys/timeb, ucontext.
33129         (posix2001_headers): New variable.
33130         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33131         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33132         index, makecontext, mktemp, pthread_attr_getstackaddr,
33133         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33134         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33135         (posix2001_functions): New variable.
33136         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33137         otherwise.
33138
33139 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33140
33141         add missing include to parse-duration.c
33142         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33143         * modules/parse-duration (Depends-on): Add xalloc.
33144
33145         fix sed script reading maint.mk
33146         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33147         (syntax-check-rules): Use it.
33148
33149 2008-12-09  Bruno Haible  <bruno@clisp.org>
33150
33151         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33152         MacOS X 10.4/PowerPC.
33153         Reported by Simon Josefsson.
33154
33155 2008-12-08  Jim Meyering  <meyering@redhat.com>
33156
33157         work around mingw's lack of some S_IF definitions
33158         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33159         Reported by Simon Josefsson.
33160
33161 2008-12-08  Bruno Haible  <bruno@clisp.org>
33162
33163         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33164         applied to variables. Needed on MacOS X 10.4/PowerPC.
33165         Reported by Simon Josefsson.
33166
33167 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33168         and Eric Blake  <ebb9@byu.net>
33169
33170         assert: honor --enable-assert
33171         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33172         order to honor --enable-assert, rather than treating it as a
33173         synonym for --disable-assert.
33174
33175 2008-12-08  Jim Meyering  <meyering@redhat.com>
33176
33177         * lib/posixtm.c: Remove now-useless declaration of mktime.
33178
33179         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33180
33181 2008-12-07  Bruno Haible  <bruno@clisp.org>
33182
33183         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33184         test_once): Mark functions as static.
33185         * tests/test-tls.c (test_tls): Likewise.
33186
33187 2008-12-07  Bruno Haible  <bruno@clisp.org>
33188
33189         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33190         iconv_register_autodetect.
33191
33192 2008-12-07  Jim Meyering  <meyering@redhat.com>
33193
33194         posixtm.c: avoid a warning
33195         * lib/posixtm.c (posixtime): Don't initialize tm0.
33196         It's no longer needed to placate gcc4's -Wuninitialized,
33197         and the attempt to placate would elicit a new warning.
33198
33199         unicodeio.c: mark unused parameters
33200         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33201         (fallback_failure_callback): Likewise.
33202
33203 2008-12-07  Bruno Haible  <bruno@clisp.org>
33204
33205         * gnulib-tool (func_create_testdir): When building the tests
33206         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33207         Reported by Simon Josefsson.
33208
33209 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33210
33211         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33212
33213 2008-12-06  Bruno Haible  <bruno@clisp.org>
33214
33215         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33216         Suggested by Eric Blake.
33217
33218 2008-12-06  Bruno Haible  <bruno@clisp.org>
33219
33220         Fix a c-stack test failure on MacOS X.
33221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33222         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33223         handler for SIGBUS as well.
33224         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33225         install a signal handler for SIGBUS as well.
33226         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33227
33228 2008-12-06  Bruno Haible  <bruno@clisp.org>
33229
33230         Advocacy documentation.
33231         * doc/gnulib-intro.texi (Benefits): New section.
33232         * doc/gnulib.texi: Update.
33233
33234 2008-12-06  Bruno Haible  <bruno@clisp.org>
33235
33236         Document the 'manywarnings' module.
33237         * doc/manywarnings.texi: New file.
33238         * doc/gnulib.texi: Include it.
33239
33240 2008-12-05  Eric Blake  <ebb9@byu.net>
33241
33242         tests: silence some gcc warnings
33243         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33244         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33245         type mismatches.
33246
33247 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33248             Bruno Haible  <bruno@clisp.org>
33249
33250         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33251
33252 2008-11-29  Jim Meyering  <meyering@redhat.com>
33253
33254         unicodeio.c: mark unused parameters
33255         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33256         (fallback_failure_callback): Likewise.
33257
33258         fts: fix a thinko
33259         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33260         (set_stat_type): Return S_IF*-valued "type" directly.
33261         Prompted by James Youngman's spotting a related bug.
33262         Confirmed by further testing through find.
33263
33264         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33265         * lib/fts.c (D_TYPE): Define.
33266         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33267         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33268         (s_ifmt_shift_bits): New function.
33269         (set_stat_type): New function.
33270         (fts_build): When not calling fts_stat, call set_stat_type
33271         to propagate dirent.d_type info to fts_read caller.
33272         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33273         fts_statp->st_mode type information may be valid.
33274
33275 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33276
33277         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33278         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33279         <sds@gnu.org>.
33280
33281 2008-11-20  Bruno Haible  <bruno@clisp.org>
33282
33283         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33284         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33285         INCLUDE_NEXT.
33286         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33287         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33288         * modules/math (Makefile.am): Substitute
33289         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33291
33292 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33293             Bruno Haible  <bruno@clisp.org>
33294
33295         * lib/stdint.in.h: Define all type macros so that their expansion is
33296         a single typedef'ed token. Fixes a compilation failure in Boost which
33297         does "using ::int8_t;".
33298
33299 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33300
33301         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33302         gl_MANYWARN_ALL_GCC.
33303         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33304         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33305         * modules/manywarnings: New file.
33306         * MODULES.html.sh: Mention manywarnings module.
33307
33308 2008-11-18  Bruno Haible  <bruno@clisp.org>
33309
33310         * doc/gnulib-tool.texi (Unit tests): New section.
33311
33312 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33313
33314         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33315         paths like 'lib/po/foo.po'.
33316
33317 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33318
33319         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33320         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33321
33322 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33323
33324         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33325         parameter works.
33326
33327 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33328
33329         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33330
33331 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33332
33333         * modules/parse-duration-tests: New file.
33334         * tests/test-parse-duration.sh: New file.
33335         * tests/test-parse-duration.c: New file.
33336
33337         New module 'parse-duration'.
33338         * lib/parse-duration.h: New file.
33339         * lib/parse-duration.c: New file.
33340         * modules/parse-duration: New file.
33341
33342 2008-11-17  Bruno Haible  <bruno@clisp.org>
33343
33344         * tests/test-select-out.sh: Comment out the first pipe test.
33345         Reported by Simon Josefsson.
33346
33347 2008-11-17  Bruno Haible  <bruno@clisp.org>
33348
33349         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33351         gl_HOSTENT.
33352
33353 2008-11-17  Bruno Haible  <bruno@clisp.org>
33354
33355         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33356         -lnetwork and -lnet. Needed for Haiku and BeOS.
33357
33358 2008-11-16  Bruno Haible  <bruno@clisp.org>
33359
33360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33361
33362 2008-11-16  Bruno Haible  <bruno@clisp.org>
33363
33364         Avoid test failure on Haiku.
33365         * tests/test-fsync.c: Include <errno.h>.
33366         (main): Don't require that fsync (0) fails.
33367
33368 2008-11-15  Bruno Haible  <bruno@clisp.org>
33369
33370         New module 'hostent'.
33371         * modules/hostent: New file.
33372         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33373
33374 2008-11-15  Bruno Haible  <bruno@clisp.org>
33375
33376         New module 'servent'.
33377         * modules/servent: New file.
33378         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33379
33380 2008-11-15  Bruno Haible  <bruno@clisp.org>
33381
33382         Avoid generating same test program with two different rules.
33383         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33384         test-frexp to test-frexp-nolibm.
33385         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33386         test-frexpl to test-frexpl-nolibm.
33387
33388 2008-11-15  Bruno Haible  <bruno@clisp.org>
33389
33390         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33391         $(FREXPL_LIBM).
33392
33393 2008-11-15  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/netdb.in.h: Activate the definitions also when the system's
33396         <netdb.h> has 'struct addrinfo'.
33397         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33398         EAI_OVERFLOW or AI_NUMERICSERV.
33399         * doc/posix-headers/netdb.texi: Document the problem.
33400
33401 2008-11-15  Bruno Haible  <bruno@clisp.org>
33402
33403         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33404
33405         Make the 'sched' module work on platforms where <sched.h> exists but
33406         is incomplete (such as Haiku).
33407         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33408         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33409         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33410         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33411         HAVE_STRUCT_SCHED_PARAM.
33412         * modules/sched (Depends-on): Add include_next.
33413         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33414         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33415         * doc/posix-headers/sched.texi: Document the issue.
33416
33417 2008-11-13  Jim Meyering  <meyering@redhat.com>
33418
33419         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33420         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33421         test would fail due to the difference in the Report bugs to ...
33422         line.  The expected address is empty, "<>", while the actual
33423         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33424
33425 2008-11-12  Bruno Haible  <bruno@clisp.org>
33426
33427         lstat: don't compile lstat.c on systems lacking lstat
33428         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33429         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33430         Reported by Daniel P. Berrange via Jim Meyering.
33431
33432 2008-11-12  Jim Meyering  <meyering@redhat.com>
33433
33434         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33435
33436 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33437
33438         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33439         instead.
33440
33441 2008-11-12  Bruno Haible  <bruno@clisp.org>
33442
33443         * lib/unicodeio.c: Include unistr.h.
33444         (utf8_wctomb): Remove function.
33445         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33446
33447 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33448
33449         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33450         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33451         <bruno@clisp.org>.
33452         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33453
33454 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33455
33456         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33457         * doc/gnulib.texi: Add section for warnings.
33458
33459 2008-11-11  Bruno Haible  <bruno@clisp.org>
33460
33461         * lib/sockets.h: Add a comment.
33462
33463 2008-11-11  Karl Berry  <karl@gnu.org>
33464
33465         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33466
33467 2008-11-11  Eric Blake  <ebb9@byu.net>
33468
33469         fdl.texi: avoid git symlinks
33470         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33471
33472 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33473
33474         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33475
33476 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33477
33478         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33479         (gl_WARN_ADD): Substitute $2 if literal.
33480
33481 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33482
33483         * m4/warning.m4: Remove.
33484
33485 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33486
33487         * m4/warnings.m4: Almost complete rewrite. :-)
33488
33489 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33490
33491         * modules/warnings: New module.
33492         * m4/warnings.m4: New file.
33493         * MODULES.html.sh: Mention warnings module.
33494         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33495         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33496
33497 2008-11-10  Eric Blake  <ebb9@byu.net>
33498
33499         fdl.texi: make a symlink to the latest version
33500         * doc/standards.texi: Revert today's earlier change.
33501         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33502         * doc/fdl.texi: ...and replace this with a symlink to the newer
33503         fdl-1.3.texi.
33504
33505 2008-11-10  Bruno Haible  <bruno@clisp.org>
33506
33507         * tests/test-select-fd.c (main): Accept the result file name as fourth
33508         argument.
33509         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33510         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33511
33512 2008-11-10  Bruno Haible  <bruno@clisp.org>
33513
33514         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33515         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33516         as autoconf-substituted macros.
33517         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33519         gl_NETDB_H_DEFAULTS. Set these variables.
33520         * modules/netdb (Makefile.am): Substitute these variables.
33521
33522 2008-11-10  Eric Blake  <ebb9@byu.net>
33523
33524         standards.texi: include correct file for FDL 1.3
33525         * doc/standards.texi (GNU Free Documentation License): Change
33526         include file to pull in FDL 1.3, not 1.2.
33527
33528         fdl.texi: revert accidental change to license
33529         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33530
33531 2008-11-10  Bruno Haible  <bruno@clisp.org>
33532
33533         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33534         cross-compiling guesses also when the native compile gives no result.
33535
33536 2008-11-10  Bruno Haible  <bruno@clisp.org>
33537
33538         * lib/spawni.c (__spawni): Force variable into the stack.
33539
33540 2008-11-10  Bruno Haible  <bruno@clisp.org>
33541
33542         Add support for Haiku.
33543         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33544         glibc and BeOS, but also on Haiku.
33545         * lib/fpurge.c (fpurge): Likewise.
33546         * lib/freadable.c (freadable): Likewise.
33547         * lib/freadahead.c (freadahead): Likewise.
33548         * lib/freading.c (freading): Likewise.
33549         * lib/freadptr.c (freadptr): Likewise.
33550         * lib/freadseek.c (freadptrinc): Likewise.
33551         * lib/fseeko.c (rpl_fseeko): Likewise.
33552         * lib/fseterr.c (fseterr): Likewise.
33553         * lib/fwritable.c (fwritable): Likewise.
33554         * lib/fwriting.c (fwriting): Likewise.
33555         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33556
33557 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33558
33559         * lib/config.charset: Treat Haiku like BeOS.
33560
33561 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33562
33563         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33564         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33565
33566 2008-11-08  Bruno Haible  <bruno@clisp.org>
33567
33568         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33569         AC_CACHE_CHECK.
33570
33571 2008-11-08  Bruno Haible  <bruno@clisp.org>
33572
33573         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33574
33575 2008-11-08  Bruno Haible  <bruno@clisp.org>
33576
33577         * tests/test-select-fd.c: New file.
33578         * tests/test-select-in.sh: New file.
33579         * tests/test-select-out.sh: New file.
33580         * tests/test-select-stdin.c: New file.
33581         * modules/select-tests (Files): Add the new files.
33582         (Depends-on): Add gettimeofday.
33583         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33584         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33585         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33586
33587 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33588             Bruno Haible  <bruno@clisp.org>
33589
33590         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33591
33592 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33593
33594         * build-aux/pmccabe2html: Added support for C++ source files.
33595
33596 2008-11-05  Ben Pfaff  <blp@gnu.org>
33597
33598         Fix lib/close.c build on Windows.
33599         * modules/close (Files): Add lib/w32sock.h.
33600
33601 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33602
33603         Accept Bison's NEWS format.
33604         * build-aux/announce-gen (print_news_deltas): Tweak
33605         $re_prefix.
33606
33607 2008-11-04  Bruno Haible  <bruno@clisp.org>
33608
33609         * modules/random_r (Maintainer): Add glibc.
33610
33611 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33612
33613         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33614         by karl@freefriends.org (Karl Berry).
33615         * doc/alloca.texi: Likewise.
33616         * doc/c-ctype.texi: Likewise.
33617         * doc/c-strcase.texi: Likewise.
33618         * doc/c-strcaseeq.texi: Likewise.
33619         * doc/c-strcasestr.texi: Likewise.
33620         * doc/c-strstr.texi: Likewise.
33621         * doc/c-strtod.texi: Likewise.
33622         * doc/c-strtold.texi: Likewise.
33623         * doc/ctime.texi: Likewise.
33624         * doc/error.texi: Likewise.
33625         * doc/fdl.texi: Likewise.
33626         * doc/gcd.texi: Likewise.
33627         * doc/getdate.texi: Likewise.
33628         * doc/gnulib-intro.texi: Likewise.
33629         * doc/gnulib-tool.texi: Likewise.
33630         * doc/gnulib.texi: Likewise.
33631         * doc/inet_ntoa.texi: Likewise.
33632         * doc/maintain.texi: Likewise.
33633         * doc/make-stds.texi: Likewise.
33634         * doc/quote.texi: Likewise.
33635         * doc/regexprops-generic.texi: Likewise.
33636         * doc/standards.texi: Likewise.
33637         * doc/verify.texi: Likewise.
33638         * doc/visibility.texi: Likewise.
33639         * doc/gnulib.texi (GNU Free Documentation License): Include
33640         fdl-1.3.texi instead of fdl.texi.
33641
33642 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33643
33644         * doc/fdl-1.3.texi: New file, from
33645         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33646         * modules/fdl-1.3: Add.
33647         * MODULES.html.sh: Add fdl-1.3.
33648
33649 2008-11-03  Bruno Haible  <bruno@clisp.org>
33650
33651         Make determination of absolute name of header file work with AIX xlc.
33652         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33653         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33654         preprocessing.
33655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33656         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33657
33658 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33659
33660         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33661         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33662         <ludo@gnu.org>.
33663
33664 2008-11-02  Bruno Haible  <bruno@clisp.org>
33665
33666         Mark 'strpbrk' obsolete.
33667         * modules/strpbrk (Status, Notice): New sections.
33668         * modules/strtok_r (Depends-on): Add strpbrk.
33669
33670 2008-11-02  Bruno Haible  <bruno@clisp.org>
33671
33672         Mark 'strdup' obsolete.
33673         * modules/strdup (Status, Notice): New sections.
33674         * modules/findprog (Depends-on): Add strdup.
33675         * modules/getaddrinfo (Depends-on): Likewise.
33676         * modules/localename (Depends-on): Likewise.
33677         * modules/relocatable-lib (Depends-on): Likewise.
33678         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33679         * modules/relocatable-prog (Depends-on): Likewise.
33680         * modules/trim (Depends-on): Likewise.
33681         * modules/unictype/gen-ctype (Depends-on): Likewise.
33682         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33683
33684 2008-11-02  Bruno Haible  <bruno@clisp.org>
33685
33686         Mark 'strcspn' obsolete.
33687         * modules/strcspn (Status, Notice): New sections.
33688
33689 2008-11-02  Bruno Haible  <bruno@clisp.org>
33690
33691         Mark 'rmdir' obsolete.
33692         * modules/rmdir (Status, Notice): New sections.
33693         * modules/clean-temp (Depends-on): Add rmdir.
33694         * modules/openat (Depends-on): Likewise.
33695
33696 2008-11-02  Bruno Haible  <bruno@clisp.org>
33697
33698         Mark 'raise' obsolete.
33699         * modules/raise (Status, Notice): New sections.
33700         (Include): Specify <signal.h>.
33701         * modules/stdio (Depends-on): Add raise.
33702         * modules/write (Depends-on): Likewise.
33703
33704 2008-11-02  Bruno Haible  <bruno@clisp.org>
33705
33706         Mark 'memset' obsolete.
33707         * modules/memset (Status, Notice): New sections.
33708
33709 2008-11-02  Bruno Haible  <bruno@clisp.org>
33710
33711         Mark 'memmove' obsolete.
33712         * modules/memmove (Status, Notice): New sections.
33713         * modules/argp (Depends-on): Add memmove.
33714         * modules/argz (Depends-on): Likewise.
33715         * modules/canonicalize (Depends-on): Likewise.
33716         * modules/canonicalize-lgpl (Depends-on): Likewise.
33717         * modules/fts (Depends-on): Likewise.
33718         * modules/getcwd (Depends-on): Likewise.
33719         * modules/human (Depends-on): Likewise.
33720         * modules/regex (Depends-on): Likewise.
33721         * modules/striconveh (Depends-on): Likewise.
33722         * modules/trim (Depends-on): Likewise.
33723         * modules/unistr/u8-move (Depends-on): Likewise.
33724         * modules/unistr/u16-move (Depends-on): Likewise.
33725         * modules/unistr/u32-move (Depends-on): Likewise.
33726
33727 2008-11-02  Bruno Haible  <bruno@clisp.org>
33728
33729         Mark 'memcpy' obsolete.
33730         * modules/memcpy (Status, Notice): New sections.
33731
33732 2008-11-02  Bruno Haible  <bruno@clisp.org>
33733
33734         Mark 'memcmp' obsolete.
33735         * modules/memcmp (Status, Notice): New sections.
33736         * modules/argmatch (Depends-on): Add memchr.
33737         * modules/backupfile (Depends-on): Likewise.
33738         * modules/c-strcasestr (Depends-on): Likewise.
33739         * modules/crypto/des (Depends-on): Likewise.
33740         * modules/csharpcomp (Depends-on): Likewise.
33741         * modules/fnmatch (Depends-on): Likewise.
33742         * modules/git-merge-changelog (Depends-on): Likewise.
33743         * modules/isnand (Depends-on): Likewise.
33744         * modules/isnand-nolibm (Depends-on): Likewise.
33745         * modules/isnanf (Depends-on): Likewise.
33746         * modules/isnanf-nolibm (Depends-on): Likewise.
33747         * modules/isnanl (Depends-on): Likewise.
33748         * modules/isnanl-nolibm (Depends-on): Likewise.
33749         * modules/mbchar (Depends-on): Likewise.
33750         * modules/memcoll (Depends-on): Likewise.
33751         * modules/quotearg (Depends-on): Likewise.
33752         * modules/regex (Depends-on): Likewise.
33753         * modules/relocatable-prog (Depends-on): Likewise.
33754         * modules/same (Depends-on): Likewise.
33755         * modules/signbit (Depends-on): Likewise.
33756         * modules/strcasestr-simple (Depends-on): Likewise.
33757         * modules/unictype/gen-ctype (Depends-on): Likewise.
33758         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33759         * modules/uniname/uniname (Depends-on): Likewise.
33760         * modules/unistr/u8-cmp (Depends-on): Likewise.
33761
33762 2008-11-02  Bruno Haible  <bruno@clisp.org>
33763
33764         Mark 'memchr' obsolete.
33765         * modules/memchr (Status, Notice): New sections.
33766         * modules/argp (Depends-on): Add memchr.
33767         * modules/base64 (Depends-on): Likewise.
33768         * modules/c-strcasestr (Depends-on): Likewise.
33769         * modules/chdir-long (Depends-on): Likewise.
33770         * modules/fnmatch (Depends-on): Likewise.
33771         * modules/getsubopt (Depends-on): Likewise.
33772         * modules/git-merge-changelog (Depends-on): Likewise.
33773         * modules/glob (Depends-on): Likewise.
33774         * modules/strcasestr-simple (Depends-on): Likewise.
33775         * modules/strnlen (Depends-on): Likewise.
33776
33777 2008-11-02  Bruno Haible  <bruno@clisp.org>
33778
33779         Mark 'atexit' obsolete.
33780         * modules/atexit (Status, Notice): New sections.
33781         * modules/chdir-long (Depends-on): Add atexit.
33782         * modules/wait-process (Depends-on): Likewise.
33783
33784 2008-11-02  Bruno Haible  <bruno@clisp.org>
33785
33786         * gnulib-tool: New option --with-obsolete.
33787         (func_usage): Document it.
33788         (func_modules_transitive_closure): Drop obsolete dependencies if
33789         incobsolete is not true.
33790         (func_import): Read and save the incobsolete variable to the cache.
33791
33792 2008-11-02  Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33795         * gnulib-tool: New option --extract-status.
33796         (func_usage): Document it.
33797         (sed_extract_prog): Recognize it.
33798         (func_get_status): New function.
33799
33800 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33801
33802         * modules/sockets (License): Change from LGPL to LGPLv2+.
33803
33804 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33805
33806         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33807
33808 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33809
33810         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33811         Mention times and sys_times.
33812         * modules/sys_times, modules/sys_times-tests: New modules.
33813         * modules/times, modules/times-tests: Likewise
33814         * m4/sys_times_h.m4: New file.
33815         * lib/sys_times.in.h: Likewise
33816         * lib/times.c: Likewise.
33817         * tests/test-sys_times.c: Likewise.
33818         * tests/test-times.c: Likewise.
33819         * doc/posix-headers/sys_times.texi: Update.
33820         * doc/posix-functions/times.texi: Update.
33821
33822 2008-10-28  Jim Meyering  <meyering@redhat.com>
33823
33824         * modules/tempname (Depends-on): Add lstat.
33825
33826         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33827
33828 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33829
33830         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33831         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33832         using idiom used elsewhere in gnulib.
33833
33834 2008-10-27  Jim Meyering  <meyering@redhat.com>
33835
33836         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33837
33838 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33839
33840         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33841         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33842         programs.
33843         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33844
33845 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33846
33847         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33848
33849 2008-10-27  Bruno Haible  <bruno@clisp.org>
33850
33851         * tests/test-lstat.c: Include <stdio.h>.
33852
33853 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33854
33855         * modules/lstat-tests: New module.
33856         * tests/test-lstat.c: New file.
33857
33858 2008-10-26  Jim Meyering  <meyering@redhat.com>
33859
33860         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33861
33862 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33863             Bruno Haible  <bruno@clisp.org>
33864
33865         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33866         * modules/configmake (Include): Add a note that the include must come
33867         after all system headers.
33868         * lib/javaversion.c: Include configmake.h after all other includes.
33869
33870 2008-10-26  Bruno Haible  <bruno@clisp.org>
33871
33872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33873         HAVE_STRUCT_RANDOM_DATA to 1.
33874         (gl_STDLIB_H): Simplify.
33875
33876 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33877
33878         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33879         substitute HAVE_STRUCT_RANDOM_DATA.
33880         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33881         random_data.
33882         * modules/stdlib (Makefile.am): Substitute
33883         HAVE_STRUCT_RANDOM_DATA.
33884
33885 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33886
33887         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33888         * doc/gnulib-intro.texi (Copyright): Likewise.
33889
33890 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33891
33892         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33893         findings.
33894
33895 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33896             Bruno Haible  <bruno@clisp.org>
33897
33898         * lib/unistd.in.h: Include <winsock2.h>.
33899         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33900         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33901         Provide dummy declarations.
33902         (gethostname): Override.
33903         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33904         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33905         gl_PREREQ_SYS_H_WINSOCK2.
33906         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33907         * doc/posix-functions/gethostname.texi: More details.
33908
33909 2008-10-25  Bruno Haible  <bruno@clisp.org>
33910
33911         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33912         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33913         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33914
33915         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33916         here ...
33917         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33918         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33919         gl_UNISTD_H_DEFAULTS.
33920
33921 2008-10-25  Eric Blake  <ebb9@byu.net>
33922
33923         signbit: avoid spurious compiler failure
33924         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33925         declarations inside function.
33926
33927 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33928             Bruno Haible  <bruno@clisp.org>
33929
33930         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33931         * modules/random_r (Depends-on): Add stdint.
33932
33933 2008-10-24  Bruno Haible  <bruno@clisp.org>
33934
33935         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33936         Eggert.
33937         * modules/strerror (License): Likewise.
33938
33939 2008-10-24  Jim Meyering  <meyering@redhat.com>
33940
33941         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33942         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33943
33944 2008-10-24  Eric Blake  <ebb9@byu.net>
33945
33946         getgroups: fix compilation when getgroups is available
33947         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33948         but with <config.h> override of getgroups disabled.
33949
33950 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33951
33952         * doc/gnulib.texi (Header files): Add note about C++ problems.
33953         Explained by Bruno Haible <bruno@clisp.org>.
33954
33955 2008-10-23  Bruno Haible  <bruno@clisp.org>
33956
33957         Define a dummy SA_NODEFER macro on Interix.
33958         * lib/signal.in.h (SA_NODEFER): Define fallback.
33959         Reported by Aleksey Cheusov <cheusov@tut.by> via
33960         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33961
33962 2008-10-23  Bruno Haible  <bruno@clisp.org>
33963
33964         * modules/freadahead (License): Change to LGPLv2+.
33965         Suggested by Simon Josefsson.
33966
33967 2008-10-23  Jim Meyering  <meyering@redhat.com>
33968
33969         random_r: new module
33970         * modules/random_r: New file.
33971         * m4/random_r.m4: New file.
33972         * lib/random_r.c: New file, from glibc.
33973         * modules/random_r-tests: New file.
33974         * tests/test-random_r.c: New file.
33975         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33976          Declare.
33977         (RAND_MAX): Define.
33978         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33979         * modules/stdlib: Substitute them, too.
33980         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33981         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33982         * doc/glibc-functions/random_r.texi: Likewise.
33983         * doc/glibc-functions/setstate_r.texi: Likewise.
33984         * doc/glibc-functions/srandom_r.texi: Likewise.
33985         * config/srclist.txt: Mention it.
33986
33987 2008-10-23  David Lutterkort  <lutter@redhat.com>
33988
33989         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33990         link requirement
33991
33992 2008-10-23  Jim Meyering  <meyering@redhat.com>
33993
33994         selinux-h: mark parameters of stub functions as intentionally unused
33995         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33996         * lib/se-context.in.h: Likewise.
33997
33998 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33999
34000         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34001
34002 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34003
34004         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34005
34006 2008-10-22  Eric Blake  <ebb9@byu.net>
34007
34008         glthread/thread: avoid compiler warning
34009         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34010         Add unreachable abort to silence compiler.
34011
34012 2008-10-22  Eric Blake  <ebb9@byu.net>
34013
34014         netdb: also supply struct addrinfo for cygwin 1.5.x
34015         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34016         older cygwin.
34017         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34018         cygwin.
34019         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34020
34021 2008-10-22  Bruno Haible  <bruno@clisp.org>
34022
34023         * users.txt: Update entry about pspp.
34024
34025 2008-10-21  Bruno Haible  <bruno@clisp.org>
34026
34027         Simplification.
34028         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34029         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34030
34031         Simplification.
34032         * lib/ioctl.c (ioctl): Don't undefine.
34033         * lib/socket.c (socket): Don't undefine.
34034
34035         Remove unused module indicator macros.
34036         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34037         GNULIB_$1 as a C macro.
34038
34039         * doc/posix-functions/close.texi: Undo last change.
34040         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34041         Windows platforms.
34042
34043 2008-10-21  Bruno Haible  <bruno@clisp.org>
34044
34045         Add gethostname() declaration to <unistd.h>.
34046         * lib/unistd.in.h (gethostname): New declaration.
34047         * lib/gethostname.c: Include <unistd.h>.
34048         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34049         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34051         and HAVE_GETHOSTNAME.
34052         * modules/gethostname (Depends-on): Add unistd.
34053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34054         (Include): Specify <unistd.h>.
34055         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34056         HAVE_GETHOSTNAME.
34057         * tests/test-gethostname.c: Include <unistd.h> first.
34058
34059 2008-10-21  Bruno Haible  <bruno@clisp.org>
34060
34061         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34062         * modules/select-tests (Depends-on): Likewise.
34063         Reported by Simon Josefsson.
34064
34065 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34066
34067         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34068         * lib/accept.c: New file, based on winsock.c.
34069         * lib/bind.c: New file, based on winsock.c.
34070         * lib/connect.c: New file, based on winsock.c.
34071         * lib/getpeername.c: New file, based on winsock.c.
34072         * lib/getsockname.c: New file, based on winsock.c.
34073         * lib/getsockopt.c: New file, based on winsock.c.
34074         * lib/ioctl.c: New file, based on winsock.c.
34075         * lib/listen.c: New file, based on winsock.c.
34076         * lib/recv.c: New file, based on winsock.c.
34077         * lib/recvfrom.c: New file, based on winsock.c.
34078         * lib/send.c: New file, based on winsock.c.
34079         * lib/sendto.c: New file, based on winsock.c.
34080         * lib/setsockopt.c: New file, based on winsock.c.
34081         * lib/shutdown.c: New file, based on winsock.c.
34082         * lib/socket.c: New file, based on winsock.c.
34083         * lib/w32sock.h: New file, based on winsock.c.
34084         * lib/winsock.c: Remove file.
34085         * modules/accept: Likewise.
34086         * modules/bind: Likewise.
34087         * modules/connect: Likewise.
34088         * modules/getpeername: Likewise.
34089         * modules/getsockname: Likewise.
34090         * modules/getsockopt: Likewise.
34091         * modules/ioctl: Likewise.
34092         * modules/listen: Likewise.
34093         * modules/recv: Likewise.
34094         * modules/recvfrom: Likewise.
34095         * modules/send: Likewise.
34096         * modules/sendto: Likewise.
34097         * modules/setsockopt: Likewise.
34098         * modules/shutdown: Likewise.
34099         * modules/socket: Use socket.c instead of winsock.c.
34100         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34101         * doc/posix-functions/accept.texi: Doc fix.
34102         * doc/posix-functions/bind.texi: Doc fix.
34103         * doc/posix-functions/close.texi: Doc fix.
34104         * doc/posix-functions/connect.texi: Doc fix.
34105         * doc/posix-functions/getpeername.texi: Doc fix.
34106         * doc/posix-functions/getsockname.texi: Doc fix.
34107         * doc/posix-functions/getsockopt.texi: Doc fix.
34108         * doc/posix-functions/ioctl.texi: Doc fix.
34109         * doc/posix-functions/listen.texi: Doc fix.
34110         * doc/posix-functions/recv.texi: Doc fix.
34111         * doc/posix-functions/recvfrom.texi: Doc fix.
34112         * doc/posix-functions/send.texi: Doc fix.
34113         * doc/posix-functions/sendto.texi: Doc fix.
34114         * doc/posix-functions/setsockopt.texi: Doc fix.
34115         * doc/posix-functions/shutdown.texi: Doc fix.
34116         * doc/posix-functions/socket.texi: Doc fix.
34117
34118 2008-10-20  Bruno Haible  <bruno@clisp.org>
34119
34120         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34121         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34122         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34123         as an alias for SIGABRT.
34124         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34125         (sigaction): Map it to SIGABRT.
34126         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34127
34128 2008-10-20  Bruno Haible  <bruno@clisp.org>
34129
34130         * lib/fts.c: Don't include lstat.h.
34131         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34132
34133         Move the lstat() declaration to <sys/stat.h>.
34134         * lib/lstat.h: Remove file.
34135         * lib/sys_stat.in.h: Add special invocation convention.
34136         (lstat): New declaration.
34137         * lib/lstat.c (orig_lstat): New function.
34138         (rpl_lstat): Use orig_lstat instead of lstat.
34139         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34140         AC_C_INLINE. Set REPLACE_LSTAT.
34141         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34142         and REPLACE_LSTAT.
34143         * modules/lstat (Files): Remove lib/lstat.h.
34144         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34145         (Include): Specify <sys/stat.h> instead of lstat.h.
34146         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34147         REPLACE_LSTAT.
34148         * NEWS: Mention the change.
34149
34150 2008-10-20  Bruno Haible  <bruno@clisp.org>
34151
34152         * modules/posix_spawn-tests: New file.
34153         * tests/test-posix_spawn3.c: New file.
34154
34155 2008-10-20  Bruno Haible  <bruno@clisp.org>
34156
34157         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34158         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34159         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34160         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34161         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34162
34163 2008-10-20  Bruno Haible  <bruno@clisp.org>
34164
34165         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34166         of posix_spawn on AIX 5.3.
34167
34168 2008-10-20  Bruno Haible  <bruno@clisp.org>
34169
34170         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34171
34172 2008-10-20  Bruno Haible  <bruno@clisp.org>
34173
34174         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34175         of AC_LANG_PROGRAM.
34176
34177 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34178
34179         * lib/netdb.in.h: Don't define GNU specific constants until they
34180         are supported or needed.  Reported by Bruno Haible
34181         <bruno@clisp.org>.
34182
34183 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34184
34185         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34186
34187 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34188
34189         * lib/getaddrinfo.h: Remove file.
34190         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34191         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34192         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34193         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34194         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34195         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34196         * tests/test-getaddrinfo.c: Likewise.
34197         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34198         * NEWS: Mention change.
34199
34200 2008-10-19  Bruno Haible  <bruno@clisp.org>
34201
34202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34203
34204 2008-10-19  Bruno Haible  <bruno@clisp.org>
34205
34206         * lib/wait-process.c: Include simply <sys/wait.h>.
34207         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34208         WIFSTOPPED): Remove fallback definitions.
34209         * modules/wait-process (Depends-on): Add sys_wait.
34210
34211         New module 'sys_wait'.
34212         * modules/sys_wait: New file.
34213         * lib/sys_wait.in.h: New file, partially copied from
34214         lib/wait-process.c.
34215         * m4/sys_wait_h.m4: New file.
34216         * doc/posix-headers/sys_wait.texi: Mention the new module.
34217
34218 2008-10-19  Bruno Haible  <bruno@clisp.org>
34219
34220         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34221
34222 2008-10-19  Bruno Haible  <bruno@clisp.org>
34223
34224         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34225         * lib/wait-process.c (WAIT_T): Remove type.
34226         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34227         (wait_subprocess): Update.
34228
34229 2008-10-19  Bruno Haible  <bruno@clisp.org>
34230
34231         New module 'atoll'.
34232         * modules/atoll: New file.
34233         * lib/stdlib.in.h (atoll): New declaration.
34234         * lib/atoll.c: New file, from glibc with modifications.
34235         * m4/atoll.m4: New file.
34236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34237         HAVE_ATOLL.
34238         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34239         * doc/posix-functions/atoll.texi: Mention the new module.
34240
34241 2008-10-19  Bruno Haible  <bruno@clisp.org>
34242
34243         Add strtoull() declaration to <stdlib.h>.
34244         * lib/stdlib.in.h (strtoull): New declaration.
34245         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34246         Set HAVE_STRTOULL.
34247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34248         HAVE_STRTOULL.
34249         * modules/strtoull (Depends-on): Add stdlib.
34250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34251         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34252         HAVE_STRTOULL.
34253
34254 2008-10-19  Bruno Haible  <bruno@clisp.org>
34255
34256         Add strtoll() declaration to <stdlib.h>.
34257         * lib/stdlib.in.h (strtoll): New declaration.
34258         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34259         Set HAVE_STRTOLL.
34260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34261         HAVE_STRTOLL.
34262         * modules/strtoll (Depends-on): Add stdlib.
34263         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34264         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34265
34266 2008-10-19  Bruno Haible  <bruno@clisp.org>
34267
34268         * modules/bcopy (Depends-on): Add strings.
34269         (Include): Specify <strings.h>.
34270
34271 2008-10-19  Bruno Haible  <bruno@clisp.org>
34272
34273         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34274
34275 2008-10-19  Bruno Haible  <bruno@clisp.org>
34276
34277         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34278         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34279         mingw.
34280
34281 2008-10-19  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/atanl.c: Don't include isnanl.h.
34284         * lib/cosl.c: Likewise.
34285         * lib/ldexpl.c: Likewise.
34286         * lib/logl.c: Likewise.
34287         * lib/sinl.c: Likewise.
34288         * lib/sqrtl.c: Likewise.
34289         * lib/tanl.c: Likewise.
34290
34291         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34292         * lib/isnanf.h: Remove file.
34293         * lib/isnand.h: Remove file.
34294         * lib/isnanl.h: Remove file.
34295         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34296         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34297         macros.
34298         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34299         HAVE_ISNANF, don't define it as a C macro.
34300         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34301         HAVE_ISNAND, don't define it as a C macro.
34302         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34303         HAVE_ISNANL, don't define it as a C macro.
34304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34305         HAVE_ISNAN[FDL].
34306         * modules/isnanf (Files): Remove lib/isnanf.h.
34307         (Depends-on): Add math.
34308         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34309         (Include): Specify <math.h> instead of isnanf.h.
34310         * modules/isnand (Files): Remove lib/isnand.h.
34311         (Depends-on): Add math.
34312         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34313         (Include): Specify <math.h> instead of isnand.h.
34314         * modules/isnanl (Files): Remove lib/isnanl.h.
34315         (Depends-on): Add math.
34316         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34317         (Include): Specify <math.h> instead of isnanl.h.
34318         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34319         HAVE_ISNAN[FDL].
34320         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34321         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34322         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34323         * NEWS: Mention the change.
34324
34325 2008-10-18  Bruno Haible  <bruno@clisp.org>
34326
34327         Add getusershell(), setusershell(), endusershell() declarations to
34328         <unistd.h>.
34329         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34330         declarations.
34331         * lib/getusershell.c: Include unistd.h.
34332         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34333         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34334         HAVE_GETUSERSHELL.
34335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34336         and HAVE_GETUSERSHELL.
34337         * modules/getusershell (Depends-on): Add unistd, extensions.
34338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34339         (Include): Specify <unistd.h>.
34340         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34341         HAVE_GETUSERSHELL.
34342
34343 2008-10-18  Bruno Haible  <bruno@clisp.org>
34344
34345         Add a getloadavg() declaration to <stdlib.h>.
34346         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34347         getloadavg declaration.
34348         (getloadavg): New declaration.
34349         * lib/getloadavg.c: Include <stdlib.h> first.
34350         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34351         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34352         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34354         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34355         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34356         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34357         (Include): Specify <stdlib.h>.
34358         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34359         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34360
34361 2008-10-18  Bruno Haible  <bruno@clisp.org>
34362
34363         * lib/dirchownmod.c: Don't include lchmod.h.
34364
34365         Move the lchmod() declaration to <sys/stat.h>.
34366         * lib/lchmod.h: Remove file.
34367         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34368         (lchmod): New declaration, moved here from lib/lchown.h.
34369         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34370         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34371         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34372         and HAVE_LCHMOD.
34373         * modules/lchmod (Files): Remove lib/lchmod.h.
34374         (Depends-on): Add sys_stat, extensions.
34375         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34376         (Include): Specify <sys/stat.h> instead of lchmod.h.
34377         * modules/sys_stat (Depends-on): Add link-warning.
34378         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34379         definition of GL_LINK_WARNING.
34380         * NEWS: Mention the change.
34381
34382 2008-10-18  Bruno Haible  <bruno@clisp.org>
34383
34384         * lib/fchdir.c: Don't include dirfd.h.
34385         * lib/fts.c: Likewise.
34386         * lib/getcwd.c: Likewise.
34387         * lib/glob.c: Likewise.
34388
34389         Move the dirfd() declaration to <dirent.h>.
34390         * lib/dirfd.h: Remove file.
34391         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34392         (dirfd): New declaration.
34393         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34394         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34395         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34396         HAVE_DECL_DIRFD.
34397         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34398         HAVE_DECL_DIRFD.
34399         * modules/dirfd (Files): Remove lib/dirfd.h.
34400         (Depends-on): Add dirent, extensions.
34401         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34402         (Include): Specify <dirent.h> instead of dirfd.h.
34403         * modules/dirent (Depends-on): Add link-warning.
34404         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34405         definition of GL_LINK_WARNING.
34406         * NEWS: Mention the change.
34407
34408 2008-10-18  Bruno Haible  <bruno@clisp.org>
34409
34410         Move the euidaccess() declaration to <unistd.h>.
34411         * lib/euidaccess.h: Remove file.
34412         * lib/unistd.in.h (euidaccess): New declaration.
34413         * lib/euidaccess.c: Don't include euidaccess.h.
34414         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34415         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34417         and HAVE_EUIDACCESS.
34418         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34419         (Depends-on): Add unistd.
34420         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34421         (Include): Specify <unistd.h> instead of euidaccess.h.
34422         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34423         HAVE_EUIDACCESS.
34424         * NEWS: Mention the change.
34425
34426 2008-10-18  Bruno Haible  <bruno@clisp.org>
34427
34428         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34429
34430         Move the getdomainname() declaration to <unistd.h>.
34431         * lib/getdomainname.h: Remove file.
34432         * lib/unistd.in.h (getdomainname): New declaration.
34433         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34434         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34435         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34436         HAVE_GETDOMAINNAME.
34437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34438         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34439         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34440         (Depends-on): Add unistd, extensions.
34441         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34442         (Includes): Specify <unistd.h> instead of getdomainname.h.
34443         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34444         HAVE_GETDOMAINNAME.
34445         * NEWS: Mention the change.
34446
34447 2008-10-18  Bruno Haible  <bruno@clisp.org>
34448
34449         * modules/dirent: New file.
34450         * m4/dirent_h.m4: New file.
34451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34452         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34453         * modules/fchdir (Files): Remove lib/dirent.in.h.
34454         (Depends-on): Add dirent.
34455         (Makefile.am): Move rules to modules/dirent.
34456         * doc/posix-headers/dirent.texi: Mention the new module.
34457
34458 2008-10-18  Bruno Haible  <bruno@clisp.org>
34459
34460         Avoid -Wunused-parameter warnings in public gnulib header files.
34461         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34462         macro.
34463         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34464
34465 2008-10-18  Bruno Haible  <bruno@clisp.org>
34466
34467         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34468         * doc/glibc-functions/error.texi: Mention the module 'error'.
34469         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34470         * doc/glibc-functions/getdomainname.texi: Mention the module
34471         'getdomainname'.
34472         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34473         * doc/glibc-functions/getpagesize.texi: Mention the module
34474         'getpagesize'.
34475         * doc/glibc-functions/getusershell.texi: Mention the module
34476         'getusershell'.
34477         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34478         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34479         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34480         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34481         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34482         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34483         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34484         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34485         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34486         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34487         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34488         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34489         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34490         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34491
34492 2008-10-17  Bruno Haible  <bruno@clisp.org>
34493
34494         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34495         HP-UX and IRIX, use -0.0L.
34496         * tests/test-ceill.c (minus_zero): Likewise.
34497         * tests/test-floorl.c (minus_zero): Likewise.
34498         * tests/test-frexpl.c (minus_zero): Likewise.
34499         * tests/test-isnan.c (minus_zerol): Likewise.
34500         * tests/test-isnanl.h (minus_zero): Likewise.
34501         * tests/test-ldexpl.c (minus_zero): Likewise.
34502         * tests/test-roundl.c (minus_zero): Likewise.
34503         * tests/test-signbit.c (minus_zerol): Likewise.
34504         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34505         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34506         * tests/test-truncl.c (minus_zero): Likewise.
34507         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34508         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34509         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34510         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34511
34512 2008-10-17  Bruno Haible  <bruno@clisp.org>
34513
34514         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34515         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34516         that it gets activated only for gcc >= 3.0.
34517         * lib/dirent.in.h: Likewise.
34518         * lib/errno.in.h: Likewise.
34519         * lib/fcntl.in.h: Likewise.
34520         * lib/float.in.h: Likewise.
34521         * lib/iconv.in.h: Likewise.
34522         * lib/inttypes.in.h: Likewise.
34523         * lib/locale.in.h: Likewise.
34524         * lib/math.in.h: Likewise.
34525         * lib/netdb.in.h: Likewise.
34526         * lib/netinet_in.in.h: Likewise.
34527         * lib/search.in.h: Likewise.
34528         * lib/signal.in.h: Likewise.
34529         * lib/spawn.in.h: Likewise.
34530         * lib/stdarg.in.h: Likewise.
34531         * lib/stdint.in.h: Likewise.
34532         * lib/stdio.in.h: Likewise.
34533         * lib/stdlib.in.h: Likewise.
34534         * lib/string.in.h: Likewise.
34535         * lib/strings.in.h: Likewise.
34536         * lib/sys_file.in.h: Likewise.
34537         * lib/sys_ioctl.in.h: Likewise.
34538         * lib/sys_select.in.h: Likewise.
34539         * lib/sys_socket.in.h: Likewise.
34540         * lib/sys_stat.in.h: Likewise.
34541         * lib/sys_time.in.h: Likewise.
34542         * lib/sysexits.in.h: Likewise.
34543         * lib/time.in.h: Likewise.
34544         * lib/unistd.in.h: Likewise.
34545         * lib/wchar.in.h: Likewise.
34546         * lib/wctype.in.h: Likewise.
34547         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34548
34549 2008-10-17  Jim Meyering  <meyering@redhat.com>
34550
34551         ignore-value: don't depend on inline module
34552         * modules/ignore-value (Depends-on): Remove 'inline'.
34553         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34554         Suggestion from Bruno Haible.
34555
34556 2008-10-17  Bruno Haible  <bruno@clisp.org>
34557
34558         New implementation of condition variables for Win32.
34559         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34560         (gl_linked_waitqueue_t): New type.
34561         (gl_cond_t): Use it.
34562         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34563         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34564         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34565         (glthread_cond_init_func, glthread_cond_wait_func,
34566         glthread_cond_timedwait_func, glthread_cond_signal_func,
34567         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34568         Reimplemented on the basis of gl_linked_waitqueue_t.
34569         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34570         gl_waitqueue_t.
34571         (gl_rwlock_t): Update.
34572         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34573
34574 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34575
34576         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34577         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34578
34579 2008-10-17  Jim Meyering  <meyering@redhat.com>
34580
34581         ignore-value: new module
34582         * modules/ignore-value: New file.
34583         * lib/ignore-value.h: New file.
34584         * MODULES.html.sh (Compiler warning management): New section,
34585         just for this module.  More to come.
34586
34587 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34588
34589         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34590         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34591         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34592
34593 2008-10-16  Jim Meyering  <meyering@redhat.com>
34594
34595         openat-die.c: avoid 'no previous prototype' warning
34596         * lib/openat-die.c: Include "openat.h".
34597         Reported by Reuben Thomas <rrt@sc3d.org>.
34598
34599 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34600
34601         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34602         * lib/netdb.in.h: Fix typo.
34603         Reported by Bruno Haible  <bruno@clisp.org>
34604
34605         * lib/netdb.in.h: Include sys/socket.h for platforms without
34606         netdb.h, to get structures like hostent on MinGW.
34607         * modules/netdb (Depends-on): Add sys_socket.
34608
34609 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34610
34611         * modules/netdb, modules/netdb-tests: New file.
34612         * m4/netdb_h.m4: New file.
34613         * lib/netdb.in.h: Add, currently just an empty file pending
34614         definitions.
34615         * tests/test-netdb.c: New file.
34616         * doc/posix-headers/netdb.texi: Mention that we replace it if
34617         needed.
34618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34619         netdb.
34620
34621 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34622
34623         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34624         with code.
34625
34626 2008-10-13  Bruno Haible  <bruno@clisp.org>
34627
34628         * lib/glthread/cond.c (glthread_cond_wait_func,
34629         glthread_cond_timedwait_func): Add a comment.
34630
34631 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34632
34633         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34634         * tests/test-select.c: Likewise,
34635
34636 2008-10-13  Bruno Haible  <bruno@clisp.org>
34637
34638         * lib/glthread/cond.c (glthread_cond_wait_func,
34639         glthread_cond_timedwait_func): Fix variable name.
34640         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34641
34642 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34643
34644         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34645         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34646         struct sockaddr.sa_len.
34647         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34648
34649 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34650
34651         * build-aux/pmccabe2html: Add css and css_url parameters.
34652
34653 2008-10-12  Bruno Haible  <bruno@clisp.org>
34654
34655         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34656         calling aclx_get.
34657         Reported by Rainer Tammer <tammer@tammer.net>.
34658
34659 2008-10-12  Bruno Haible  <bruno@clisp.org>
34660
34661         Use msvcrt aware primitives for creation/termination of Win32 threads.
34662         * lib/glthread/thread.c: Include <process.h>.
34663         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34664         (wrapper_func): Update signature.
34665         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34666
34667 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34668             Bruno Haible  <bruno@clisp.org>
34669
34670         Provide a Win32 implementation of the 'cond' module.
34671         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34672         * lib/glthread/cond.c (glthread_cond_init_func,
34673         glthread_cond_wait_func, glthread_cond_timedwait_func,
34674         glthread_cond_signal_func, glthread_cond_broadcast_func,
34675         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34676         * modules/cond (Dependencies): Add gettimeofday.
34677
34678 2008-10-11  Bruno Haible  <bruno@clisp.org>
34679
34680         Make sleep work on older versions of mingw.
34681         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34682         only whether it exists.
34683         * doc/posix-functions/sleep.texi: Mention the problem with older
34684         versions of mingw.
34685
34686 2008-10-11  Bruno Haible  <bruno@clisp.org>
34687
34688         New module 'shutdown'.
34689         * modules/shutdown: New file.
34690         * lib/sys_socket.in.h (shutdown): New declaration.
34691         * lib/winsock.c (shutdown): New function.
34692         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34693         GNULIB_SHUTDOWN.
34694         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34695         * doc/posix-functions/shutdown.texi: Document the new module.
34696
34697 2008-10-11  Jim Meyering  <meyering@redhat.com>
34698
34699         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34700
34701 2008-10-11  Bruno Haible  <bruno@clisp.org>
34702
34703         New module 'fclose'.
34704         * modules/fclose: New file.
34705         * lib/stdio.in.h (fclose): New declaration.
34706         * lib/fclose.c: New file.
34707         * m4/fclose.m4: New file.
34708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34709         REPLACE_FCLOSE.
34710         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34711         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34712         REPLACE_FCLOSE.
34713         * modules/close (Depends-on): fclose.
34714         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34715
34716 2008-10-11  Bruno Haible  <bruno@clisp.org>
34717
34718         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34719         set errno and don't call _close.
34720
34721 2008-10-10  Bruno Haible  <bruno@clisp.org>
34722
34723         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34724         ACL, not afterwards. Fixes test failure on Cygwin.
34725
34726 2008-10-09  Ben Pfaff  <blp@gnu.org>
34727
34728         * build-aux/announce-gen: Fix gnulib version related part of usage
34729         message.  Die with a useful error message if no tarballs are
34730         found.
34731
34732 2008-10-10  Jim Meyering  <meyering@redhat.com>
34733
34734         bootstrap: use git's --depth=N option only if it's supported
34735         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34736         recognize the --depth option.  Reported by Pádraig Brady.
34737
34738 2008-10-09  Bruno Haible  <bruno@clisp.org>
34739
34740         New module 'ioctl'.
34741         * modules/ioctl: New file.
34742         * lib/sys_socket.in.h (ioctl): Remove declaration.
34743         * lib/winsock.c: Include <sys/ioctl.h>.
34744         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34745         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34746         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34747         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34748         * doc/posix-functions/ioctl.texi: Mention the new module.
34749
34750 2008-10-09  Bruno Haible  <bruno@clisp.org>
34751
34752         New module 'sys_ioctl'.
34753         * lib/sys_ioctl.in.h: New file.
34754         * m4/sys_ioctl_h.m4: New file.
34755         * modules/sys_ioctl: New file.
34756         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34757
34758 2008-10-09  Bruno Haible  <bruno@clisp.org>
34759
34760         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34761         * lib/winsock.c: Include <stdarg.h>.
34762         (rpl_ioctl): Change to second argument 'int' and then varargs.
34763
34764 2008-10-09  Bruno Haible  <bruno@clisp.org>
34765
34766         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34767         when the sys_socket module is present and the system has <winsock2.h>.
34768
34769 2008-10-09  Bruno Haible  <bruno@clisp.org>
34770
34771         * doc/posix-functions/close.texi: Mention module 'close' instead of
34772         module 'sys_socket'.
34773
34774 2008-10-09  Bruno Haible  <bruno@clisp.org>
34775
34776         * doc/glibc-headers/sys_ioctl.texi: New file.
34777         * doc/gnulib.texi: Include it.
34778
34779 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34780             Bruno Haible  <bruno@clisp.org>
34781
34782         Combine the two replacements of 'close'.
34783         * lib/sys_socket.in.h (close): Define to a reminder to include
34784         <unistd.h>.
34785         (_gl_close_fd_maybe_socket): New declaration.
34786         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34787         * lib/winsock.c (close): Remove undefinition.
34788         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34789         needed for the gnulib module 'close'.
34790         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34791         define to an error symbol or to a warning, if suitable.
34792         * lib/close.c: Include <sys/socket.h>.
34793         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34794         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34795         UNISTD_H_HAVE_WINSOCK2_H.
34796         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34798         UNISTD_H_HAVE_WINSOCK2_H.
34799         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34800         (configure.ac): Set a module indicator.
34801         (Makefile.am): Substitute GNULIB_CLOSE.
34802         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34803         * modules/poll-tests (Depends-on): Add close.
34804         * modules/select-tests (Depends-on): Likewise.
34805
34806 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34807             Bruno Haible  <bruno@clisp.org>
34808
34809         New module 'close'.
34810         * modules/close: New file.
34811         * lib/unistd.in.h (close): Move declaration out of the
34812         FCHDIR_REPLACEMENT scope.
34813         (_gl_unregister_fd): New declaration.
34814         * lib/close.c: New file.
34815         * lib/fchdir.c (rpl_close): Remove function.
34816         * m4/close.m4: New file.
34817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34818         close.
34819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34820         REPLACE_CLOSE.
34821         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34822         REPLACE_CLOSE.
34823         * modules/fchdir (Depends-on): Add close.
34824
34825 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34826             Bruno Haible  <bruno@clisp.org>
34827
34828         * lib/fcntl.in.h (open): Simplify conditionals.
34829         (_gl_register_fd): New declaration.
34830         * lib/fchdir.c (rpl_open): Remove function.
34831         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34832         also.
34833         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34835         open.
34836
34837 2008-10-09  Jim Meyering  <meyering@redhat.com>
34838
34839         GNUmakefile: use the more name-space-friendly "_version"
34840         * top/GNUmakefile (_dummy): Update.
34841         (_version): Rename from "version".
34842
34843 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34844             Bruno Haible  <bruno@clisp.org>
34845
34846         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34847         rpl_close.
34848         (_gl_register_fd): New function, extracted from rpl_open.
34849         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34850         (rpl_open, rpl_opendir): Use _gl_register_fd.
34851
34852 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34853
34854         Fix organization of 'open' replacement.
34855         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34856         (gl_FUNC_OPEN): Use it.
34857         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34858
34859 2008-10-08  Bruno Haible  <bruno@clisp.org>
34860
34861         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34862
34863 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34864
34865         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34866         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34867         listen).
34868
34869 2008-10-08  Eric Blake  <ebb9@byu.net>
34870
34871         GNUmakefile: add 'make version' target
34872         * top/GNUmakefile (_curr-ver): Split version update rules...
34873         (version): ...into a target.
34874
34875 2008-10-07  Bruno Haible  <bruno@clisp.org>
34876
34877         Use a more portable replacement expression for -0.0L.
34878         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34879         instead of -0.0L. Fix m4 quotation.
34880
34881         * tests/test-signbit.c: Include <float.h>.
34882         (minus_zero): New variable.
34883         (test_signbitl): Use minus_zero instead of -zero.
34884         * modules/signbit-tests (Depends-on): Add float.
34885
34886         * tests/test-ceill.c: Include <float.h>.
34887         (zero): Remove variable.
34888         (minus_zero): New variable.
34889         (main): Use minus_zero instead of -zero.
34890         * modules/ceill-tests (Depends-on): Add float.
34891
34892         * tests/test-floorl.c: Include <float.h>.
34893         (zero): Remove variable.
34894         (minus_zero): New variable.
34895         (main): Use minus_zero instead of -zero.
34896         * modules/floorl-tests (Depends-on): Add float.
34897
34898         * tests/test-roundl.c: Include <float.h>.
34899         (zero): Remove variable.
34900         (minus_zero): New variable.
34901         (main): Use minus_zero instead of -zero.
34902         * modules/roundl-tests (Depends-on): Add float.
34903
34904         * tests/test-truncl.c: Include <float.h>.
34905         (zero): Remove variable.
34906         (minus_zero): New variable.
34907         (main): Use minus_zero instead of -zero.
34908         * modules/truncl-tests (Depends-on): Add float.
34909
34910         * tests/test-frexpl.c (zero): Remove variable.
34911         (minus_zero): New variable.
34912         (main): Use minus_zero instead of -zero.
34913         * modules/frexpl-tests (Depends-on): Add float.
34914
34915         * tests/test-isnan.c (zerol): Remove variable.
34916         (minus_zerol): New variable.
34917         (test_long_double): Use minus_zerol instead of -zerol.
34918         * modules/isnan-tests (Depends-on): Add float.
34919
34920         * tests/test-isnanl.h (zero): Remove variable.
34921         (minus_zero): New variable.
34922         (main): Use minus_zero instead of -zero.
34923         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34924         * modules/isnanl-tests (Depends-on): Add float.
34925
34926         * tests/test-ldexpl.c (zero): Remove variable.
34927         (minus_zero): New variable.
34928         (main): Use minus_zero instead of -zero.
34929         * modules/ldexpl-tests (Depends-on): Add float.
34930
34931         * tests/test-snprintf-posix.h (zerol): Remove variable.
34932         (minus_zerol): New variable.
34933         (test_function): Use minus_zerol instead of -zerol.
34934         * modules/snprintf-posix-tests (Depends-on): Add float.
34935         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34936
34937         * tests/test-sprintf-posix.h (zerol): Remove variable.
34938         (minus_zerol): New variable.
34939         (test_function): Use minus_zerol instead of -zerol.
34940         * modules/sprintf-posix-tests (Depends-on): Add float.
34941         * modules/vsprintf-posix-tests (Depends-on): Add float.
34942
34943         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34944         (minus_zerol): New variable.
34945         (test_function): Use minus_zerol instead of -zerol.
34946         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34947
34948         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34949         (minus_zerol): New variable.
34950         (test_function): Use minus_zerol instead of -zerol.
34951         * modules/vasprintf-posix-tests (Depends-on): Add float.
34952
34953 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34954
34955         * MODULES.html.sh (Support for building documentation): Mention
34956         pmccabe2html.  Sort entries.
34957
34958         Add pmccabe2html module, from gnupdf.
34959         * build-aux/pmccabe.css: New file.
34960         * build-aux/pmccabe2html: New file.
34961         * m4/pmccabe2html.m4: New file.
34962         * modules/pmccabe2html: New file.
34963
34964 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34965
34966         flock: new module
34967         * MODULES.html.sh: Add to list of modules.
34968         * lib/flock.c: flock implementation for Windows and Unix systems
34969         which have fcntl.
34970         * doc/glibc-functions/flock.texi: Update documentation.
34971         * lib/sys_file.in.h: <sys/file.h> header file.
34972         * m4/flock.m4: M4 macros.
34973         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34974         * modules/flock: flock module.
34975         * modules/flock-tests: flock tests module.
34976         * modules/sys_file: sys/file.h module.
34977         * tests/test-flock.c: test suite for flock.
34978
34979 2008-10-06  Jim Meyering  <meyering@redhat.com>
34980
34981         bootstrap: check for LT_INIT more portably still ;-)
34982         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34983         Spotted by Bruno Haible.
34984
34985 2008-10-06  Eric Blake  <ebb9@byu.net>
34986
34987         test-signbit: avoid tripping Irix cc bug on -0.0L
34988         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34989         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34990         entire testsuite consistent and avoids an Irix 6.2 bug.
34991
34992 2008-10-05  Bruno Haible  <bruno@clisp.org>
34993             Jim Meyering  <jim@meyering.net>
34994
34995         Add an option for ignoring EPIPE during close_stdout.
34996         * lib/closeout.h: Include <stdbool.h>.
34997         (close_stdout_set_ignore_EPIPE): New declaration.
34998         * lib/closeout.c: Include <stdbool.h>.
34999         (ignore_EPIPE): New variable.
35000         (close_stdout_set_ignore_EPIPE): New function.
35001         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35002         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35003         failure.
35004         * modules/closeout (Depends-on): Add stdbool.
35005
35006 2008-10-05  Bruno Haible  <bruno@clisp.org>
35007
35008         * modules/accept: New file.
35009         * modules/bind: New file.
35010         * modules/connect: New file.
35011         * modules/getpeername: New file.
35012         * modules/getsockname: New file.
35013         * modules/getsockopt: New file.
35014         * modules/listen: New file.
35015         * modules/recv: New file.
35016         * modules/recvfrom: New file.
35017         * modules/send: New file.
35018         * modules/sendto: New file.
35019         * modules/setsockopt: New file.
35020         * modules/socket: New file.
35021         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35022         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35023         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35024         the particular module is requested. Add a link warning when the
35025         particular module is not requested.
35026         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35027         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35028         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35029         the particular module is requested.
35030         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35031         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35032         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35033         * modules/sys_socket (Depends-on): Add link-warning.
35034         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35035         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35036         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35037         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35038         GL_LINK_WARNING.
35039         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35040         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35041         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35042         * doc/posix-functions/getpeername.texi: Mention the new module
35043         'getpeername'.
35044         * doc/posix-functions/getsockname.texi: Mention the new module
35045         'getsockname'.
35046         * doc/posix-functions/getsockopt.texi: Mention the new module
35047         'getsockopt'.
35048         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35049         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35050         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35051         * doc/posix-functions/send.texi: Mention the new module 'send'.
35052         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35053         * doc/posix-functions/setsockopt.texi: Mention the new module
35054         'setsockopt'.
35055         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35056         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35057         listen, connect, accept.
35058         * modules/select-tests (Depends-on): Likewise.
35059
35060 2008-10-05  Bruno Haible  <bruno@clisp.org>
35061
35062         * lib/winsock.c (strerror): Remove unused #undef.
35063         (rpl_close): Remove unused local variable.
35064
35065         * modules/sys_socket (Depends-on); Add errno.
35066
35067 2008-10-05  Bruno Haible  <bruno@clisp.org>
35068
35069         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35070         (select): Add a link warning when the 'select' module is not used.
35071         * modules/sys_select (Depends-on): Add link-warning.
35072         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35073         Suggested by Paolo Bonzini.
35074
35075 2008-10-05  Jim Meyering  <meyering@redhat.com>
35076
35077         bootstrap: check for LT_INIT more portably
35078         * build-aux/bootstrap: Avoid using grep -E, since it's not
35079         portable enough.  Suggestion from Bruno Haible.
35080
35081 2008-10-05  Bruno Haible  <bruno@clisp.org>
35082
35083         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35084         as being fixed by gnulib.
35085
35086 2008-10-05  Bruno Haible  <bruno@clisp.org>
35087
35088         * modules/select-tests: New file, mostly copied from
35089         modules/sys_select-tests.
35090         * tests/test-select.c: New file, mostly copied from
35091         tests/test-sys_select.c.
35092         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35093         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35094         (Makefile.am): Remove test_sys_select_LDADD.
35095
35096         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35097         to an undefined symbol, for an error message.
35098         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35099         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35100         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35101         winsock-select.c here.
35102         * modules/sys_select (Files): Remove lib/winsock-select.c.
35103         (Depends-on): Remove alloca.
35104         (Makefile.am): Substitute GNULIB_SELECT.
35105         * modules/select: New file.
35106         * doc/posix-functions/select.texi: Update.
35107
35108 2008-10-05  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35111         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35112         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35113         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35114         getdtablesize.
35115         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35116         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35117
35118 2008-10-05  Bruno Haible  <bruno@clisp.org>
35119
35120         * modules/getdtablesize-tests: New file.
35121         * tests/test-getdtablesize.c: New file.
35122
35123         New module 'getdtablesize'.
35124         * lib/unistd.in.h (getdtablesize): New declaration.
35125         * lib/getdtablesize.c: New file.
35126         * m4/getdtablesize.m4: New file.
35127         * modules/getdtablesize: New file.
35128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35129         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35130         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35131         HAVE_GETDTABLESIZE.
35132         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35133
35134 2008-10-05  Bruno Haible  <bruno@clisp.org>
35135
35136         * modules/sched (Makefile.am): Fix typo.
35137         Reported by Simon Josefsson.
35138
35139 2008-10-05  Jim Meyering  <meyering@redhat.com>
35140
35141         bootstrap: check for LT_INIT, too
35142         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35143         are deprecated.  Suggestion from Ralf Wildenhues.
35144
35145 2008-10-05  Bruno Haible  <bruno@clisp.org>
35146
35147         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35148         overriding them by ours.
35149         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35150
35151 2008-10-05  Jim Meyering  <meyering@redhat.com>
35152
35153         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35154         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35155         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35156
35157 2008-10-04  Bruno Haible  <bruno@clisp.org>
35158
35159         * modules/dup2 (License): Change to LGPLv2+.
35160         * modules/sleep (License): Likewise.
35161         * modules/perror (License): Likewise.
35162         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35163         Blake.
35164         * modules/signal (License): Likewise.
35165         * modules/sigprocmask (License): Likewise.
35166         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35167         Meyering.
35168
35169 2008-10-04  Bruno Haible  <bruno@clisp.org>
35170
35171         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35172         Reported by Rainer Tammer <tammer@tammer.net>.
35173
35174 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35175             Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35178         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35179         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35180
35181 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35182
35183         filevercmp: new module
35184         * lib/filevercmp.h: New function filevercmp comparing version strings.
35185         * lib/filevercmp.c: Implementation of filevercmp function.
35186         * modules/filevercmp: Module metadata.
35187         * tests/test-filevercmp.c: Unit test for new module.
35188         * modules/filevercmp-tests: Unit test metadata.
35189         * MODULES.html.sh: Add filevercmp module.
35190
35191 2008-10-03  Bruno Haible  <bruno@clisp.org>
35192
35193         * lib/c-ctype.h: Add comment.
35194         Reported by Jim Meyering.
35195
35196 2008-10-02  Bruno Haible  <bruno@clisp.org>
35197
35198         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35199
35200 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35201
35202         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35203         name of bootstrap.conf accordingly.
35204
35205 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35206
35207         * build-aux/bootstrap: Install git-merge-changelog configuration
35208         items into .gitconfig if needed.
35209
35210 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35211
35212         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35213         git repository, and initialize/update it accordingly.
35214
35215 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35216
35217         * modules/fsync-tests: New file.
35218         * tests/test-fsync.c: New file.
35219
35220         New module 'fsync'.
35221         * lib/fsync.c: New file.
35222         * m4/fsync.m4: New file.
35223         * modules/fsync: New file.
35224         * lib/unistd.in.h (fsync): New declaration.
35225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35226         GNULIB_FSYNC and HAVE_FSYNC.
35227         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35228         * MODULES.html.sh (posix_functions): Add fsync.
35229         * doc/posix-functions/fsync.texi: Mention the new module.
35230
35231 2008-10-02  Jim Meyering  <meyering@redhat.com>
35232
35233         fts.c: sync with similar code from coreutils' remove.c
35234         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35235         Guard also with "#if defined __linux__", since for now at least,
35236         this code is Linux-kernel-specific.
35237
35238 2008-10-02  Jim Meyering  <meyering@redhat.com>
35239
35240         fts: bug fixes
35241         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35242         Include <sys/vfs.h>, not <sys/statfs.h>.
35243
35244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35245         Include <sys/vfs.h>, not <sys/statfs.h>.
35246
35247 2008-10-01  Bruno Haible  <bruno@clisp.org>
35248
35249         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35250         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35251         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35252         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35253         * doc/posix-functions/posix_spawnp.texi: Likewise.
35254         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35255         whether posix_spawn actually works.
35256         * m4/pipe.m4 (gl_PIPE): Likewise.
35257         * modules/execute (Files): Add m4/posix_spawn.m4.
35258         * modules/pipe (Files): Add m4/posix_spawn.m4.
35259         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35260
35261 2008-10-01  Jim Meyering  <meyering@redhat.com>
35262
35263         remove trailing spaces
35264         * NEWS: Likewise.
35265         * lib/poll.c (poll): Likewise.
35266         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35267         * lib/winsock.c (rpl_close): Likewise.
35268         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35269         * modules/yield: Likewise.
35270         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35271         * tests/test-sys_select.c (connect_to_socket): Likewise.
35272
35273         fts.c: adjust a new interface to be more generally useful
35274         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35275         (fts_build): Adjust caller.
35276
35277 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35278
35279         * modules/cond-tests: New file.
35280         * tests/test-cond.c: New file.
35281
35282 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35283             Bruno Haible  <bruno@clisp.org>
35284
35285         * modules/cond (Dependencies): Add errno, time.
35286         * lib/glthread/cond.h: Include <time.h>.
35287         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35288         across platforms.
35289
35290 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35291             Bruno Haible  <bruno@clisp.org>
35292
35293         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35294
35295 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35296             Bruno Haible  <bruno@clisp.org>
35297
35298         * modules/tls-tests (Depends-on): Add thread, yield.
35299         (configure.ac): Remove all checks.
35300         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35301         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35302         gl_thread_self): Remove definitions. Include glthread/thread.h and
35303         glthread/yield.h instead.
35304         (test_tls): Pass an additional NULL argument to gl_thread_join.
35305
35306 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35307             Bruno Haible  <bruno@clisp.org>
35308
35309         * modules/lock-tests (Depends-on): Add thread, yield.
35310         (configure.ac): Remove all checks.
35311         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35312         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35313         gl_thread_self): Remove definitions. Include glthread/thread.h and
35314         glthread/yield.h instead.
35315         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35316         additional NULL argument to gl_thread_join.
35317
35318 2008-09-30  Bruno Haible  <bruno@clisp.org>
35319
35320         Fix the Win32 implementation of the 'thread' module.
35321         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35322         pointer type.
35323         (gl_thread_self): Invoke gl_thread_self_func.
35324         (gl_thread_self_func): New declaration.
35325         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35326         (do_init_self_key, init_self_key): New functions.
35327         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35328         Remove some fields.
35329         (running_threads, running_lock): Remove variables.
35330         (get_current_thread_handle): New function.
35331         (gl_thread_self_func, wrapper_func, glthread_create_func,
35332         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35333         simplified.
35334
35335 2008-09-30  Bruno Haible  <bruno@clisp.org>
35336
35337         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35338         files.
35339
35340 2008-09-30  Jim Meyering  <meyering@redhat.com>
35341
35342         fts.m4: correct the test for statfs.f_type
35343         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35344         when checking for statfs.f_type.
35345
35346 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35347
35348         tests: avoid some compiler warnings
35349         * tests/test-memchr.c (main): Pass NULL indirectly.
35350         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35351
35352 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35353
35354         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35355         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35356         exactly specified dayshifts.
35357         (dayshift): New rule.
35358         (rel): Add dayshift.
35359         (relative_time_table) [tomorrow, yesterday, today, now]:
35360         Use tDAY_SHIFT in place of tDAY_UNIT.
35361         * tests/test-getdate.c: Add tests for now-disallowed countable
35362         dayshifts, e.g., "4 yesterday ago".
35363
35364 2008-09-29  Bruno Haible  <bruno@clisp.org>
35365
35366         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35367         * tests/test-posix_spawn1.in.sh: Renamed from
35368         tests/test-posix_spawn.in.sh.
35369         * tests/test-posix_spawn2.c: New file.
35370         * tests/test-posix_spawn2.in.sh: New file.
35371         * modules/posix_spawnp-tests (Files): Update.
35372         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35373
35374 2008-09-29  Bruno Haible  <bruno@clisp.org>
35375
35376         Propagate effects of putenv/setenv/unsetenv to child processes.
35377         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35378         * lib/pipe.c (create_pipe): Likewise.
35379
35380 2008-09-29  Bruno Haible  <bruno@clisp.org>
35381
35382         Enable use of shell scripts as executables in mingw.
35383         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35384         run the program as a shell script.
35385         * lib/pipe.c (create_pipe): Likewise.
35386         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35387         resulting array.
35388
35389 2008-09-29  Eric Blake  <ebb9@byu.net>
35390
35391         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35392
35393 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35394
35395         * doc/posix-functions/accept.texi: Update mingw problems.
35396         * doc/posix-functions/bind.texi: Update mingw problems.
35397         * doc/posix-functions/close.texi: Update mingw problems.
35398         * doc/posix-functions/connect.texi: Update mingw problems.
35399         * doc/posix-functions/getpeername.texi: Update mingw problems.
35400         * doc/posix-functions/getsockname.texi: Update mingw problems.
35401         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35402         * doc/posix-functions/ioctl.texi: Update mingw problems.
35403         * doc/posix-functions/listen.texi: Update mingw problems.
35404         * doc/posix-functions/recv.texi: Update mingw problems.
35405         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35406         * doc/posix-functions/select.texi: Update mingw problems.
35407         * doc/posix-functions/send.texi: Update mingw problems.
35408         * doc/posix-functions/sendto.texi: Update mingw problems.
35409         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35410         * doc/posix-functions/socket.texi: Update mingw problems.
35411
35412 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35413             Bruno Haible  <bruno@clisp.org>
35414
35415         * lib/sys_select.in.h: Include sys/time.h.
35416         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35417         * modules/sys_select: Depend on sys_time.
35418         * tests/test-sys_select.c: Test that sys/select.h defines struct
35419         timeval fully.
35420
35421 2008-09-29  Bruno Haible  <bruno@clisp.org>
35422
35423         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35424         * lib/sys_select.in.h: Likewise.
35425
35426 2008-09-29  Bruno Haible  <bruno@clisp.org>
35427
35428         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35429
35430 2008-09-29  Bruno Haible  <bruno@clisp.org>
35431
35432         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35433         Set LIBSOCKET instead of augmenting LIBS.
35434         * modules/sockets (Link): New section.
35435         * modules/sockets-tests (test_sockets_LDADD): New variable.
35436         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35437         * modules/poll-tests (test_poll_LDADD): New variable.
35438         * NEWS: Document the change.
35439
35440 2008-09-29  Bruno Haible  <bruno@clisp.org>
35441
35442         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35443         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35444         ARPA_INET_H directly.
35445         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35446
35447 2008-09-28  Bruno Haible  <bruno@clisp.org>
35448
35449         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35450         from gl_HEADER_SYS_SOCKET.
35451         (gl_HEADER_SYS_SOCKET): Invoke it.
35452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35453
35454 2008-09-28  Bruno Haible  <bruno@clisp.org>
35455
35456         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35457         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35458         Needed on OSF/1 4.0.
35459
35460 2008-09-28  Bruno Haible  <bruno@clisp.org>
35461
35462         Override open more carefully.
35463         * lib/open.c (orig_open): New function.
35464         (rpl_open): Use orig_open instead of open.
35465         * lib/fcntl.in.h: Add special invocation convention.
35466         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35467         (gl_FUNC_OPEN): Invoke it.
35468
35469         Override freopen more carefully.
35470         * lib/freopen.c (orig_freopen): New function.
35471         (rpl_freopen): Use orig_freopen instead of freopen.
35472         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35473         (gl_FUNC_FREOPEN): Invoke it.
35474
35475         Override fopen more carefully.
35476         * lib/fopen.c (orig_fopen): New function.
35477         (rpl_fopen): Use orig_fopen instead of fopen.
35478         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35479         (gl_FUNC_FOPEN): Invoke it.
35480         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35481
35482 2008-09-28  Bruno Haible  <bruno@clisp.org>
35483
35484         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35485         SIGPIPE.
35486
35487 2008-09-28  Bruno Haible  <bruno@clisp.org>
35488
35489         * tests/test-sigaction.c (handler, main): Disable the check whether
35490         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35491         glibc systems with LinuxThreads.
35492
35493 2008-09-28  Bruno Haible  <bruno@clisp.org>
35494
35495         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35496
35497         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35498         with AIX xlc.
35499         * lib/fcntl.in.h (open): Likewise.
35500         Reported by Rainer Tammer <tammer@tammer.net>.
35501
35502 2008-09-28  Bruno Haible  <bruno@clisp.org>
35503
35504         * modules/posix_spawnp-tests: New file.
35505         * tests/test-posix_spawn.c: New file.
35506         * tests/test-posix_spawn.in.sh: New file.
35507
35508         New module 'posix_spawnp'.
35509         * modules/posix_spawnp: New file.
35510         * lib/spawnp.c: New file, from GNU libc with modifications.
35511         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35512
35513         New module 'posix_spawn'.
35514         * modules/posix_spawn: New file.
35515         * lib/spawn.c: New file, from GNU libc with modifications.
35516         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35517
35518         New module 'posix_spawnattr_destroy'.
35519         * modules/posix_spawnattr_destroy: New file.
35520         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35521         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35522         module.
35523
35524         New module 'posix_spawnattr_setsigmask'.
35525         * modules/posix_spawnattr_setsigmask: New file.
35526         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35527         modifications.
35528         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35529         new module.
35530
35531         New module 'posix_spawnattr_getsigmask'.
35532         * modules/posix_spawnattr_getsigmask: New file.
35533         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35534         modifications.
35535         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35536         new module.
35537
35538         New module 'posix_spawnattr_setsigdefault'.
35539         * modules/posix_spawnattr_setsigdefault: New file.
35540         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35541         modifications.
35542         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35543         new module.
35544
35545         New module 'posix_spawnattr_getsigdefault'.
35546         * modules/posix_spawnattr_getsigdefault: New file.
35547         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35548         modifications.
35549         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35550         new module.
35551
35552         New module 'posix_spawnattr_setschedpolicy'.
35553         * modules/posix_spawnattr_setschedpolicy: New file.
35554         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35555         modifications.
35556         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35557         new module.
35558
35559         New module 'posix_spawnattr_getschedpolicy'.
35560         * modules/posix_spawnattr_getschedpolicy: New file.
35561         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35562         modifications.
35563         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35564         new module.
35565
35566         New module 'posix_spawnattr_setschedparam'.
35567         * modules/posix_spawnattr_setschedparam: New file.
35568         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35569         modifications.
35570         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35571         new module.
35572
35573         New module 'posix_spawnattr_getschedparam'.
35574         * modules/posix_spawnattr_getschedparam: New file.
35575         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35576         modifications.
35577         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35578         new module.
35579
35580         New module 'posix_spawnattr_setpgroup'.
35581         * modules/posix_spawnattr_setpgroup: New file.
35582         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35583         modifications.
35584         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35585         module.
35586
35587         New module 'posix_spawnattr_getpgroup'.
35588         * modules/posix_spawnattr_getpgroup: New file.
35589         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35590         modifications.
35591         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35592         module.
35593
35594         New module 'posix_spawnattr_setflags'.
35595         * modules/posix_spawnattr_setflags: New file.
35596         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35597         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35598         module.
35599
35600         New module 'posix_spawnattr_getflags'.
35601         * modules/posix_spawnattr_getflags: New file.
35602         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35603         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35604         module.
35605
35606         New module 'posix_spawnattr_init'.
35607         * modules/posix_spawnattr_init: New file.
35608         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35609         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35610         module.
35611
35612         New module 'posix_spawn_file_actions_destroy'.
35613         * modules/posix_spawn_file_actions_destroy: New file.
35614         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35615         modifications.
35616         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35617         the new module.
35618
35619         New module 'posix_spawn_file_actions_addopen'.
35620         * modules/posix_spawn_file_actions_addopen: New file.
35621         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35622         modifications.
35623         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35624         the new module.
35625
35626         New module 'posix_spawn_file_actions_adddup2'.
35627         * modules/posix_spawn_file_actions_adddup2: New file.
35628         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35629         modifications.
35630         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35631         the new module.
35632
35633         New module 'posix_spawn_file_actions_addclose'.
35634         * modules/posix_spawn_file_actions_addclose: New file.
35635         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35636         modifications.
35637         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35638         the new module.
35639
35640         New module 'posix_spawn_file_actions_init'.
35641         * modules/posix_spawn_file_actions_init: New file.
35642         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35643         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35644         new module.
35645
35646         New module 'posix_spawn-internal'.
35647         * modules/posix_spawn-internal: New file.
35648         * lib/spawn_int.h: New file, from GNU libc with modifications.
35649         * lib/spawni.c: New file, from GNU libc with modifications.
35650         * m4/posix_spawn.m4: New file.
35651
35652         New module 'spawn'.
35653         * modules/spawn: New file.
35654         * lib/spawn.in.h: New file, from GNU libc with modifications.
35655         * m4/spawn_h.m4: New file.
35656         * doc/posix-headers/spawn.texi: Mention the new module.
35657
35658 2008-09-28  Bruno Haible  <bruno@clisp.org>
35659
35660         * modules/sched-tests: New file.
35661         * tests/test-sched.c: New file.
35662
35663         New module 'sched'.
35664         * modules/sched: New file.
35665         * lib/sched.in.h: New file.
35666         * m4/sched_h.m4: New file.
35667         * doc/posix-headers/sched.texi: Mention the new module.
35668
35669 2008-09-27  Eric Blake  <ebb9@byu.net>
35670
35671         Fix previous patch, and tweak references to $0.
35672         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35673         (func_version, func_gnulib_dir): Don't call this program
35674         gnulib-tool.
35675         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35676         with using $0 in function.
35677         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35678         (func_fatal_error): Reuse the name the user invoked us with.
35679
35680 2008-09-27  Bruno Haible  <bruno@clisp.org>
35681
35682         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35683         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35684         (gl_ICONV_H): Not here.
35685         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35686         instead of assigning ICONV_H directly.
35687
35688         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35690         WCHAR_H directly.
35691
35692 2008-09-27  Bruno Haible  <bruno@clisp.org>
35693
35694         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35695         * modules/arpa_inet (Depends-on): Add link-warning.
35696         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35697         * modules/unistd (Makefile.am): Likewise.
35698
35699 2008-09-26  Bruno Haible  <bruno@clisp.org>
35700
35701         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35702         variables.
35703         (func_version): Essentially copied from gnulib-tool.
35704         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35705         func_readlink): Copied from gnulib-tool.
35706
35707 2008-09-26  Bruno Haible  <bruno@clisp.org>
35708
35709         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35710         invoking git-version-gen.
35711
35712 2008-09-26  Bruno Haible  <bruno@clisp.org>
35713
35714         * posix-modules: Update to directory names changed on 2008-01-19.
35715         Remove commas in output before splitting into words. No more need to
35716         avoid 'ftruncate' since 2007-02-19.
35717
35718 2008-09-26  Bruno Haible  <bruno@clisp.org>
35719
35720         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35721
35722 2008-09-26  Bruno Haible  <bruno@clisp.org>
35723
35724         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35725         * modules/fwriteerror (Depends-on): Add errno.
35726
35727 2008-09-26  Bruno Haible  <bruno@clisp.org>
35728
35729         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35730         * tests/test-vc-list-files-cvs.sh: Likewise.
35731
35732 2008-09-26  Bruno Haible  <bruno@clisp.org>
35733
35734         * doc/posix-headers/sys_resource.texi: Reorder items.
35735
35736 2008-09-26  Jim Meyering  <meyering@redhat.com>
35737
35738         fts: tweak inode comparison function
35739         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35740         inode numbers, as documented.
35741
35742         fts: sort dirent entries on inode number before traversing
35743         This avoids a quadratic, seek-related performance penalty when
35744         operating on a directory containing many entries (measurable at 10k;
35745         3.5 hours at 2 million entries with a cold cache) on certain types
35746         of file systems, including ext3 and ext4, but not tmpfs.
35747         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35748         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35749         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35750         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35751         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35752         (fts_build): Set the stat.st_ino member from D_INO.
35753         If it is likely to be useful, sort dirent entries on inode number.
35754
35755         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35756         and the struct statfs.f_type member.
35757         * modules/fts (Depends-on): Add d-ino.
35758
35759 2008-09-26  Bruno Haible  <bruno@clisp.org>
35760
35761         * modules/sigpipe-die (Depends-on): Add sigpipe.
35762
35763         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35764         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35765         and GNULIB_STDIO_H_SIGPIPE are set.
35766         * lib/stdio-write.c: New file.
35767         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35768         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35769         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35770         REPLACE_STDIO_WRITE_FUNCS.
35771         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35772         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35773         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35774         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35775         * modules/stdio (Files): Add lib/stdio-write.c.
35776         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35777         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35778         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35779         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35780         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35781         REPLACE_FPRINTF_POSIX.
35782         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35783         REPLACE_PRINTF_POSIX.
35784         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35785         REPLACE_VFPRINTF_POSIX.
35786         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35787         REPLACE_VPRINTF_POSIX.
35788         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35789         SIGPIPE issue.
35790         * doc/posix-functions/fputc.texi: Likewise.
35791         * doc/posix-functions/fputs.texi: Likewise.
35792         * doc/posix-functions/fwrite.texi: Likewise.
35793         * doc/posix-functions/printf.texi: Likewise.
35794         * doc/posix-functions/putc.texi: Likewise.
35795         * doc/posix-functions/putchar.texi: Likewise.
35796         * doc/posix-functions/puts.texi: Likewise.
35797         * doc/posix-functions/vfprintf.texi: Likewise.
35798         * doc/posix-functions/vprintf.texi: Likewise.
35799
35800         * modules/safe-write (Depends-on): Add write.
35801
35802         * modules/sigpipe-tests: New file.
35803         * tests/test-sigpipe.c: New file.
35804         * tests/test-sigpipe.sh: New file.
35805
35806         * modules/write: New file.
35807         * lib/unistd.in.h: Include <sys/types.h>.
35808         (write): New declaration.
35809         * lib/write.c: New file.
35810         * m4/write.m4: New file.
35811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35812         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35813         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35814         GNULIB_WRITE, REPLACE_WRITE.
35815         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35816         and the SIGPIPE issue.
35817
35818         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35819         (raise): New declaration.
35820         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35821         (ext_signal): New function.
35822         (rpl_raise): New function.
35823         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35824         GNULIB_SIGNAL_H_SIGPIPE.
35825         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35826         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35827
35828         * modules/sigpipe: New file.
35829         * m4/sigpipe.m4: New file.
35830
35831 2008-09-25  Derek Price  <derek@ximbiot.com>
35832             Bruno Haible  <bruno@clisp.org>
35833
35834         * gnulib-tool (func_import): Report all license incompatibilities, not
35835         just the first one.
35836
35837 2008-09-25  Bruno Haible  <bruno@clisp.org>
35838
35839         * gnulib-tool (func_import): When computing the edits, consider not
35840         only the Makefile.ams that exist but also those that will be generated.
35841
35842 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35843
35844         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35845         fixes gnulib-tool --test warning about duplicate dependency.
35846
35847 2008-09-25  Bruno Haible  <bruno@clisp.org>
35848
35849         * gnulib-tool: Don't ask the user to perform edits in the generated
35850         Makefile.ams.
35851         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35852         apply to the Makefile.am being generated.
35853         (func_emit_tests_Makefile_am): Execute edits that apply to the
35854         Makefile.am being generated.
35855         (func_import): Setup list of Makefile.am edits before emitting the
35856         Makefile.ams, not at the end.
35857         (func_create_testdir): Update.
35858         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35859
35860 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35861
35862         * gnulib-tool (func_import): Store the --tests-base option in the
35863         comment in gnulib-cache.m4.
35864
35865 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35866
35867         * NEWS: Document increased portability that sys_select now provides.
35868
35869         * lib/sys_select.in.h: Install select wrapper.
35870         * lib/sys_socket.in.h: Use more descriptive name when there is no
35871         select wrapper.
35872         * lib/winsock-select.c: New.
35873         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35874         Require gl_HEADER_SYS_SOCKET.
35875         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35876         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35877         * tests/test-sys_select.c: Add functional tests.
35878
35879 2008-09-24  Eric Blake  <ebb9@byu.net>
35880
35881         open, fopen: close fd leak in last patch
35882         * lib/open.c (rpl_open): Close fd before returning error.
35883         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35884         * doc/posix-functions/open.texi (open): Document that Irix also
35885         has the bug.
35886         * doc/posix-functions/fopen.texi (fopen): Likewise.
35887         Reported by Paolo Bonzini.
35888
35889 2008-09-24  Bruno Haible  <bruno@clisp.org>
35890
35891         Ensure that a filename ending in a slash cannot be used to access a
35892         non-directory.
35893         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35894         to check whether it's really a directory.
35895         * lib/fopen.c: Include fcntl.h, unistd.h.
35896         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35897         and fdopen().
35898         * modules/fopen (Depends-on): Add unistd.
35899         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35900         * tests/test-fopen.c (main): Likewise.
35901         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35902         * doc/posix-functions/fopen.texi: Likewise.
35903         Reported by Eric Blake.
35904
35905 2008-09-23  Eric Blake  <ebb9@byu.net>
35906
35907         c-stack: avoid compiler optimizations when provoking overflow
35908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35909         recursion harder to optimize, to ensure a stack overflow occurs.
35910         * tests/test-c-stack.c (recurse): Likewise.
35911         Borrowed from libsigsegv.
35912
35913         c-stack: work around Irix sigaltstack bug
35914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35915         whether sigaltstack uses wrong end of stack_t (copied in part from
35916         libsigsegv).
35917         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35918         Irix bug, without requiring an over-allocation.
35919         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35920         bug.
35921
35922         fopen: document mingw bug on directories
35923         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35924         not allowing a stream visiting a directory, even though reading
35925         from such a stream is not portable.
35926
35927 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35928
35929         * lib/poll.c: Rewrite.
35930         * modules/poll: Depend on alloca.
35931
35932 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35933
35934         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35935         instead define prototypes for a full set of wrappers.  Ensure
35936         that Cygwin does not use the compatibility code, which is only
35937         for MinGW.
35938         * lib/winsock.c: New.
35939         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35940         * modules/sys_socket: Add lib/winsock.c.
35941
35942         * modules/poll-tests: Add errno and perror.
35943         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35944
35945 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35946
35947         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35948
35949 2008-09-23  Bruno Haible  <bruno@clisp.org>
35950
35951         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35952         * doc/glibc-functions/*: Likewise.
35953
35954 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35955
35956         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35957         success.
35958
35959 2008-09-22  Eric Blake  <ebb9@byu.net>
35960             Bruno Haible  <bruno@clisp.org>
35961
35962         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35963         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35964         supply %A but mishandle pseudo-NaN.
35965         Reported by Simon Josefsson.
35966
35967 2008-09-21  Bruno Haible  <bruno@clisp.org>
35968
35969         * tests/test-lock.c (main): Tweak skip message.
35970         * tests/test-tls.c (main): Likewise.
35971
35972 2008-09-21  Bruno Haible  <bruno@clisp.org>
35973
35974         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35975         whether 'struct sigaction' has sa_sigaction here...
35976         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35977         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35978
35979 2008-09-21  Bruno Haible  <bruno@clisp.org>
35980
35981         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35982         section.
35983         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35984         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35985         the new section.
35986         (Support for obsolete systems lacking POSIX:2001): New section.
35987         (String handling <string.h>): Move strdup to the new section.
35988         Suggested by Simon Josefsson and Paolo Bonzini.
35989
35990 2008-09-21  Bruno Haible  <bruno@clisp.org>
35991
35992         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35993         exponents in %e and %g results on 'long double'. Needed for mingw's
35994         improved *printf functions.
35995         * tests/test-vasprintf-posix.c (test_function): Likewise.
35996         * tests/test-snprintf-posix.h (test_function): Likewise.
35997         * tests/test-sprintf-posix.h (test_function): Likewise.
35998         Reported by Eric Blake.
35999
36000 2008-09-21  Bruno Haible  <bruno@clisp.org>
36001
36002         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36003         * tests/test-sprintf-posix.h (test_function): Likewise.
36004
36005 2008-09-21  Bruno Haible  <bruno@clisp.org>
36006
36007         * modules/getpass (Depends-on): Add strdup-posix.
36008
36009         New module 'strdup-posix'.
36010         * modules/strdup-posix: New file.
36011         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36012         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36013         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36014         REPLACE_STRDUP.
36015         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36016         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36018         strdup-posix.
36019
36020         * modules/strdup (Depends-on): Remove malloc-posix.
36021
36022 2008-09-20  Bruno Haible  <bruno@clisp.org>
36023
36024         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36025         Wildenhues.
36026
36027 2008-09-20  Bruno Haible  <bruno@clisp.org>
36028
36029         Ensure that wint_t gets defined on IRIX 5.3.
36030         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36031         * lib/wctype.in.h (wint_t): Likewise.
36032         (__wctype_wint_t): Remove type.
36033         (isw*): Use wint_t instead of __wctype_wint_t.
36034         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36035         * modules/wchar (Files): Add m4/wint_t.m4.
36036         (Makefile.am): Substitute HAVE_WINT_T.
36037         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36038         * tests/test-wctype.c: Check that wint_t is defined.
36039         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36040         * doc/posix-headers/wctype.texi: Likewise.
36041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36042
36043 2008-09-18  Bruno Haible  <bruno@clisp.org>
36044
36045         * gnulib-tool (func_exit): Update comment.
36046
36047 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36048
36049         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36050         assumes strdup exists and does not depend on strdup to return
36051         ENOMEM on out of memory conditions.
36052
36053 2008-09-18  Bruno Haible  <bruno@clisp.org>
36054
36055         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36056         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36057         digits for the exponent.
36058
36059 2008-09-18  Jim Meyering  <meyering@redhat.com>
36060             Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/vasnprintf.c (decimal_point_char): Define also if
36063         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36064
36065 2008-09-16  Bruno Haible  <bruno@clisp.org>
36066         and Eric Blake  <ebb9@byu.net>
36067
36068         vasnprintf: support Irix 5.3
36069         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36070         that mishandle long double infinity.
36071         Reported by Tom G. Christensen.
36072
36073 2008-09-16  Bruno Haible  <bruno@clisp.org>
36074
36075         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36076         Solaris 9.
36077         * doc/glibc-functions/alphasort.texi: Likewise.
36078         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36079
36080 2008-09-16  Jim Meyering  <meyering@redhat.com>
36081
36082         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36083         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36084         a umask modification leak out of a subshell.  Otherwise, the
36085         opensolaris /bin/sh would be accepted and thus cause unwarranted
36086         failures in the coreutils test suite.
36087
36088 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36089
36090         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36091         to succeed.
36092
36093 2008-09-16  Jim Meyering  <meyering@redhat.com>
36094
36095         avoid spurious test failure when library is built without ACL support
36096         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36097         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36098         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36099         * tests/test-copy-acl.sh: Likewise.
36100
36101 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36102
36103         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36104         based on character occurrence counts.
36105
36106 2008-09-15  Eric Blake  <ebb9@byu.net>
36107
36108         tests: avoid some compiler warnings
36109         * tests/test-memchr.c (main): Pass NULL indirectly.
36110         * tests/test-closein.c (main): Avoid unused variable.
36111
36112 2008-09-15  Bruno Haible  <bruno@clisp.org>
36113
36114         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36115         are missing on OpenBSD 4.0 individually.
36116         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36117
36118 2008-09-15  Bruno Haible  <bruno@clisp.org>
36119
36120         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36121         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36122         * doc/posix-functions/perror.texi: Likewise.
36123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36124         is missing.
36125         Reported by Eric Blake.
36126
36127         * lib/errno.in.h: Use replacement values >= 2000.
36128         Reported by Eric Blake.
36129
36130 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36131
36132         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36133         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36134         limit.
36135         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36136         compareseq was aborted.
36137
36138 2008-09-14  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36141         yvec_edit_count.
36142         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36143         (fstrcmp_bounded): Simplify result computation accordingly.
36144
36145 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36146
36147         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36148         (fstrcmp): Define in terms of fstrcmp_bounded.
36149         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36150         lower_bound argument.
36151         Return quickly if the result is certainly < lower_bound.
36152         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36153
36154 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36155
36156         * lib/diffseq.h (EARLY_ABORT): New macro.
36157         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36158         evaluates to true.
36159
36160 2008-09-14  Bruno Haible  <bruno@clisp.org>
36161
36162         * modules/perror-tests: New file.
36163         * tests/test-perror.sh: New file.
36164         * tests/test-perror.c: New file.
36165
36166         New module 'perror'.
36167         * lib/stdio.in.h (perror): New declaration.
36168         * lib/perror.c: New file.
36169         * m4/perror.m4: New file.
36170         * modules/perror: New file.
36171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36172         * doc/posix-functions/perror.texi: Mention the perror module.
36173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36174         REPLACE_PERROR.
36175         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36176         REPLACE_PERROR.
36177
36178 2008-09-14  Bruno Haible  <bruno@clisp.org>
36179
36180         * modules/stdio (Makefile.am): Reorder to match the order in
36181         lib/stdio.in.h.
36182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36183
36184 2008-09-13  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36187
36188 2008-09-13  Bruno Haible  <bruno@clisp.org>
36189
36190         Extend strerror to cover the added errno values.
36191         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36192         (rpl_strerror): Provide error messages for the added errno values and
36193         for the WSA* values.
36194         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36195         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36196         strerror.
36197         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36198         * modules/strerror (Depends-on): Add errno.
36199         * doc/posix-functions/strerror.texi: Document the change.
36200         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36201         and EOVERFLOW.
36202
36203 2008-09-13  Bruno Haible  <bruno@clisp.org>
36204
36205         * modules/EOVERFLOW: Remove file.
36206         * m4/eoverflow.m4: Remove file.
36207         * modules/EOVERFLOW-tests: Remove file.
36208         * tests/test-EOVERFLOW.c: Remove file.
36209         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36210         * modules/ftell (Depends-on): Likewise.
36211         * modules/getdelim (Depends-on): Likewise.
36212         * modules/getugroups (Depends-on): Likewise.
36213         * modules/poll (Depends-on): Likewise.
36214         * modules/snprintf (Depends-on): Likewise.
36215         * modules/sprintf-posix (Depends-on): Likewise.
36216         * modules/vasnprintf (Depends-on): Likewise.
36217         * modules/vasprintf (Depends-on): Likewise.
36218         * modules/vfprintf-posix (Depends-on): Likewise.
36219         * modules/vsnprintf (Depends-on): Likewise.
36220         * modules/vsprintf-posix (Depends-on): Likewise.
36221         * modules/xvasprintf (Depends-on): Likewise.
36222         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36223         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36224         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36225         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36226         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36227         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36228         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36229         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36230         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36231         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36232         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36233         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36234         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36235         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36236         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36237         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36238         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36239         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36240         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36241         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36242         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36243         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36244         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36245         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36246         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36247         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36248         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36249         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36250         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36251         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36252         * MODULES.html.sh: Remove EOVERFLOW.
36253         * NEWS: Mention the change.
36254
36255 2008-09-13  Bruno Haible  <bruno@clisp.org>
36256
36257         * modules/errno-tests: New file.
36258         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36259
36260         * lib/errno.in.h: New file.
36261         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36262         * modules/errno: New file.
36263         * doc/posix-headers/errno.texi: Update documentation.
36264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36265
36266 2008-09-13  Bruno Haible  <bruno@clisp.org>
36267
36268         * tests/test-poll.c: Use #if for native Windows, rather than testing
36269         __MSVCRT__.
36270
36271 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36272             Bruno Haible  <bruno@clisp.org>
36273
36274         * lib/glob.c: Don't include <pwd.h> on native Windows.
36275         (WINDOWS32): New macro.
36276         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36277
36278 2008-09-13  Bruno Haible  <bruno@clisp.org>
36279
36280         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36281         (ETIMEDOUT): Remove macro.
36282         (glthread_cond_timedwait_multithreaded): New declaration.
36283         (glthread_cond_timedwait): Use it.
36284         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36285         (glthread_cond_timedwait_multithreaded): New function.
36286
36287 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36288
36289         * modules/poll-tests: Do not check for io.h.
36290         * tests/test-poll.c: Check for __MSVCRT__ instead.
36291
36292 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36293
36294         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36295         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36296         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36297
36298 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36299
36300         * modules/poll-tests: New.
36301         * tests/test-poll.c: New.
36302
36303 2008-09-12  Eric Blake  <ebb9@byu.net>
36304
36305         frexp: test for NetBSD failure on -0.0
36306         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36307         not all, bugs from NetBSD 3.0 have been fixed.
36308         * doc/posix-functions/frexp.texi (frexp): Document bug.
36309         Reported by Thomas Klausner.
36310
36311         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36312         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36313         literal -0.0.
36314         Reported by Jonathan C. Patschke <jp@centtech.com>.
36315
36316 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36317
36318         * lib/glthread/cond.h: Use dummy implementation also if
36319         USE_WIN32_THREADS.
36320
36321 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36322
36323         * modules/fnmatch-posix (License): Change to LGPLv2+.
36324         * modules/fnmatch-gnu (License): Likewise.
36325
36326 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36327
36328         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36329
36330 2008-09-11  Jim Meyering  <meyering@redhat.com>
36331
36332         * users.txt: Add gtk-vnc.
36333
36334 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36335
36336         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36337         rotate amounts.
36338
36339         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36340         required for 16-bit and 8-bit rotates.
36341         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36342         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36343         UINT8_MAX instead of hard-coded constants.
36344         Suggested by Paul Eggert.
36345
36346 2008-09-07  Bruno Haible  <bruno@clisp.org>
36347
36348         * tests/test-striconveh.c (main): Check behaviour when converting from
36349         UTF-7.
36350
36351         Make striconveh work better with stateful encodings.
36352         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36353         that iconv does not increment the inptr when returning -1/EINVAL.
36354
36355 2008-09-07  Bruno Haible  <bruno@clisp.org>
36356
36357         * build-aux/config.rpath: Update according to libtool-2.2.6.
36358         * build-aux/config.libpath: Likewise.
36359
36360 2008-09-06  Bruno Haible  <bruno@clisp.org>
36361
36362         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36363         * lib/freadptr.c (freadptr): Likewise.
36364         * lib/freadseek.c (freadptrinc): Likewise.
36365         Reported by Simon Josefsson.
36366
36367 2008-09-06  Bruno Haible  <bruno@clisp.org>
36368
36369         * modules/freadptr (License): Change to LGPLv2+.
36370         * modules/freadseek (License): Likewise.
36371         Suggested by Eric Blake.
36372
36373         * modules/memchr2 (License): Change to LGPLv2+.
36374         Approved by Eric Blake.
36375
36376 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36377             Bruno Haible  <bruno@clisp.org>
36378
36379         Make gnulib-tool work with native 'sed' on AIX.
36380         * gnulib-tool (sed_noop): New variable.
36381         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36382         func_add_or_update, func_create_testdir): Use it to initialize sed
36383         script variables.
36384         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36385
36386 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36387             Bruno Haible  <bruno@clisp.org>
36388
36389         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36390         also works after #include directives.
36391
36392 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
36393
36394         getdate.y: reject an out-of-range timezone value
36395         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36396         the range [-24...+24].  When specified with only one or two digits,
36397         * tests/test-getdate.c: Tests for the fix.
36398         * doc/getdate.texi: Document this change.
36399
36400 2008-09-03  Bruno Haible  <bruno@clisp.org>
36401
36402         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36403
36404 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36405
36406         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36407         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36408         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36409         Blake <ebb9@byu.net>.
36410
36411         * tests/test-bitrotate.c: Add more test vectors.
36412
36413 2008-09-02  Eric Blake  <ebb9@byu.net>
36414
36415         vasnprintf-posix: handle large precision via %.*d
36416         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36417         when handling it ourselves.
36418         * tests/test-vasnprintf-posix.c (test_function): Add test.
36419         * tests/test-snprintf-posix.h (test_function): Likewise.
36420         * tests/test-sprintf-posix.h (test_function): Likewise.
36421         * tests/test-vasprintf-posix.c (test_function): Likewise.
36422         Reported by Alain Guibert.
36423
36424 2008-09-01  Eric Blake  <ebb9@byu.net>
36425
36426         c-stack: make configure-time check more robust
36427         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36428         successful sigaction call.
36429         Reported by Tom G. Christensen.
36430
36431 2008-09-01  Bruno Haible  <bruno@clisp.org>
36432
36433         New module 'findprog-lgpl'.
36434         * modules/findprog-lgpl: New file.
36435         * lib/findprog-lgpl.c: New file.
36436         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36437         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36438         to decide whether to use strdup or xstrdup, concatenated_filename or
36439         xconcatenated_filename.
36440
36441 2008-09-01  Bruno Haible  <bruno@clisp.org>
36442
36443         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36444         'xconcat-filename' (GPL).
36445         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36446         (License): Change to LGPLv2+.
36447         * modules/xconcat-filename: New file.
36448         * lib/concat-filename.h (concatenated_filename): Change specification.
36449         (xconcatenated_filename): New declaration.
36450         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36451         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36452         memory situations.
36453         * lib/xconcat-filename.c: New file.
36454         * NEWS: Mention the change.
36455         * lib/findprog.c: Include concat-filename.h, not filename.h.
36456         (find_in_path): Use xconcatenated_filename instead of
36457         concatenated_filename.
36458         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36459         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36460         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36461         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36462         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36463         instead of concatenated_filename.
36464         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36465         (execute_java_class): Use xconcatenated_filename instead of
36466         concatenated_filename.
36467         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36468         * modules/javacomp (Depends-on): Likewise.
36469         * modules/javaexec (Depends-on): Likewise.
36470
36471 2008-09-01  Bruno Haible  <bruno@clisp.org>
36472
36473         Split module 'filename' into 'filename' and 'concat-filename'.
36474         * modules/filename: Keep only lib/filename.h.
36475         (License): Change to LGPLv2+.
36476         * modules/concat-filename: New file, extracted from modules/filename.
36477         * lib/filename.h (concatenated_filename): Remove declaration.
36478         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36479         * lib/concat-filename.c: Include concat-filename.h.
36480         * NEWS: Mention the change.
36481
36482 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36483
36484         * lib/bitrotate.h (rotl8, rotr8): Add.
36485
36486         * modules/bitrotate (configure.ac): Need
36487         AC_REQUIRE([AC_C_INLINE]).
36488         (Description): Mention stdint.h.  Reported by Bruno Haible
36489         <bruno@clisp.org>.
36490
36491         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36492         Paolo Bonzini <bonzini@gnu.org>.
36493
36494 2008-08-31  Bruno Haible  <bruno@clisp.org>
36495
36496         Assume Solaris specific bi-arch conventions on Solaris systems.
36497         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36498         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36499         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36500         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36501         like acl_libdirstem.
36502         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36503         acl_libdirstem.
36504         * NEWS: Mention the change.
36505         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36506
36507 2008-08-31  Jim Meyering  <meyering@redhat.com>
36508
36509         * lib/strftime.h: Add comments describing the two added arguments.
36510
36511         remove duplicate #include directives
36512         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36513         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36514
36515 2008-08-31  Bruno Haible  <bruno@clisp.org>
36516
36517         New module 'sigpipe-die'.
36518         * modules/sigpipe-die: New file.
36519         * lib/sigpipe-die.h: New file.
36520         * lib/sigpipe-die.c: New file.
36521         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36522
36523 2008-08-31  Bruno Haible  <bruno@clisp.org>
36524
36525         Don't override previously installed signal handlers.
36526         * lib/fatal-signal.c (saved_sigactions): New variable.
36527         (uninstall_handlers): Reset the signal to the saved handler, not
36528         to SIG_DFL (except when ignored).
36529         (install_handlers): Save the previous handlers.
36530
36531 2008-08-30  Bruno Haible  <bruno@clisp.org>
36532
36533         * gnulib-tool (func_reset_sigpipe): New function.
36534         (func_get_automake_snippet, func_modules_transitive_closure,
36535         func_import): Invoke it before a join command that reads from stdin,
36536         to avoid "echo: write error: Broken pipe" error messages on stderr.
36537         Reported by Sam Steingold <sds@gnu.org>.
36538
36539 2008-08-30  Bruno Haible  <bruno@clisp.org>
36540
36541         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36542         Code copied from m4/open.m4.
36543         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36544         access and the filename ends in a slash. Code copied from lib/open.c.
36545         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36546         * tests/test-fopen.c (main): Check against bug with trailing slash.
36547
36548 2008-08-29  Bruno Haible  <bruno@clisp.org>
36549
36550         Avoid some "gcc -pedantic" warnings.
36551         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36552         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36553         * lib/dirent.in.h: Likewise.
36554         * lib/fcntl.in.h: Likewise.
36555         * lib/float.in.h: Likewise.
36556         * lib/iconv.in.h: Likewise.
36557         * lib/inttypes.in.h: Likewise.
36558         * lib/locale.in.h: Likewise.
36559         * lib/math.in.h: Likewise.
36560         * lib/netinet_in.in.h: Likewise.
36561         * lib/search.in.h: Likewise.
36562         * lib/signal.in.h: Likewise.
36563         * lib/stdarg.in.h: Likewise.
36564         * lib/stdint.in.h: Likewise.
36565         * lib/stdio.in.h: Likewise.
36566         * lib/stdlib.in.h: Likewise.
36567         * lib/string.in.h: Likewise.
36568         * lib/strings.in.h: Likewise.
36569         * lib/sys_select.in.h: Likewise.
36570         * lib/sys_socket.in.h: Likewise.
36571         * lib/sys_stat.in.h: Likewise.
36572         * lib/sys_time.in.h: Likewise.
36573         * lib/sysexits.in.h: Likewise.
36574         * lib/time.in.h: Likewise.
36575         * lib/unistd.in.h: Likewise.
36576         * lib/wchar.in.h: Likewise.
36577         * lib/wctype.in.h: Likewise.
36578         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36579         * modules/fchdir (Makefile.am): Likewise.
36580         * modules/fcntl (Makefile.am): Likewise.
36581         * modules/float (Makefile.am): Likewise.
36582         * modules/iconv_open (Makefile.am): Likewise.
36583         * modules/inttypes (Makefile.am): Likewise.
36584         * modules/locale (Makefile.am): Likewise.
36585         * modules/math (Makefile.am): Likewise.
36586         * modules/netinet_in (Makefile.am): Likewise.
36587         * modules/search (Makefile.am): Likewise.
36588         * modules/signal (Makefile.am): Likewise.
36589         * modules/stdarg (Makefile.am): Likewise.
36590         * modules/stdint (Makefile.am): Likewise.
36591         * modules/stdio (Makefile.am): Likewise.
36592         * modules/stdlib (Makefile.am): Likewise.
36593         * modules/string (Makefile.am): Likewise.
36594         * modules/strings (Makefile.am): Likewise.
36595         * modules/sys_select (Makefile.am): Likewise.
36596         * modules/sys_socket (Makefile.am): Likewise.
36597         * modules/sys_stat (Makefile.am): Likewise.
36598         * modules/sys_time (Makefile.am): Likewise.
36599         * modules/sysexits (Makefile.am): Likewise.
36600         * modules/time (Makefile.am): Likewise.
36601         * modules/unistd (Makefile.am): Likewise.
36602         * modules/wchar (Makefile.am): Likewise.
36603         * modules/wctype (Makefile.am): Likewise.
36604         Reported by Reuben Thomas <rrt@sc3d.org>.
36605
36606 2008-08-29  Bruno Haible  <bruno@clisp.org>
36607
36608         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36609         any more.
36610
36611 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36612
36613         * MODULES.html.sh (Misc): Add bitrotate.
36614
36615         * modules/bitrotate: New file.
36616
36617         * lib/bitrotate.h: New file.
36618
36619         * modules/bitrotate-tests: New file.
36620
36621         * tests/test-bitrotate.c: New file.
36622
36623         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36624         on the bitrotate module.
36625
36626         * lib/arctwo.c: Use new bitrotate module.
36627
36628 2008-08-29  Jim Meyering  <meyering@redhat.com>
36629
36630         bootstrap: merge changes from coreutils
36631         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36632         of copied files.  Remove a kludge, now that this is fixed.
36633         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36634         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36635         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36636
36637 2008-08-29  Bruno Haible  <bruno@clisp.org>
36638
36639         * MODULES.html.sh: Remove --cvs-urls option.
36640
36641 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36642
36643         maint.mk: adjust to file name change
36644         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36645
36646 2008-08-28  Jim Meyering  <meyering@redhat.com>
36647
36648         * modules/getndelim2 (License): Relicense to LGPLv2+.
36649         Approved by Richard Stallman for the version of 1995, and by
36650         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36651
36652 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36653
36654         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36655         dummy if one is not available.  Do not touch them if
36656         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36657         (getc_maybe_unlocked): New.
36658         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36659
36660 2008-08-26  Eric Blake  <ebb9@byu.net>
36661
36662         doc/INSTALL: resync from autoconf
36663         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36664         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36665         moving...
36666         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36667         * INSTALL: Regenerate.
36668         * INSTALL.ISO: New file.
36669         * INSTALL.UTF-8: Likewise.
36670
36671 2008-08-26  Jim Meyering  <meyering@redhat.com>
36672
36673         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36674         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36675         these definitions conditional, so that they may be overridden, too.
36676
36677 2008-08-26  Bruno Haible  <bruno@clisp.org>
36678
36679         Generate INSTALL file variants with prettier quotes.
36680         * doc/Makefile (INSTALL_PRELUDE): New macro.
36681         (INSTALL): Use it.
36682         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36683
36684 2008-08-26  Bruno Haible  <bruno@clisp.org>
36685
36686         Run makeinfo in an English locale.
36687         * doc/Makefile (MAKEINFO): New variable.
36688
36689 2008-08-26  Bruno Haible  <bruno@clisp.org>
36690
36691         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36692         Suggested by Eric Blake.
36693
36694 2008-08-25  Bruno Haible  <bruno@clisp.org>
36695
36696         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36697
36698 2008-08-25  Eric Blake  <ebb9@byu.net>
36699
36700         c-stack: test that stack overflow can be caught
36701         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36702         that platform allows handling stack overflow; at least OS/2 EMX
36703         has sigaltstack, but crashes before transferring control to
36704         handler on stack overflow.
36705         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36706         check for HAVE_STACK_OVERFLOW_HANDLING.
36707         Reported by Elbert Pol.
36708
36709 2008-08-25  Bruno Haible  <bruno@clisp.org>
36710
36711         * doc/posix-functions/strftime.texi: Fix description of strftime
36712         module.
36713
36714 2008-08-24  Bruno Haible  <bruno@clisp.org>
36715
36716         * tests/uniwidth/test-uc_width2.c: New file.
36717         * tests/uniwidth/test-uc_width2.sh: New file.
36718         * modules/uniwidth/width-tests (Files): Add the new files.
36719         (TESTS): Add uniwidth/test-uc_width2.sh.
36720         (TESTS_ENVIRONMENT): New variable.
36721         (check_PROGRAMS): Add test-uc_width2.
36722         (test_uc_width2_SOURCES): New variable.
36723
36724         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36725         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36726         not 0x00AB.
36727         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36728
36729 2008-08-22  Eric Blake  <ebb9@byu.net>
36730
36731         test-lock, test-tls: mention why a test is skipped
36732         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36733         skipped.
36734         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36735
36736         count-one-bits: relax license
36737         * modules/count-one-bits (License): Relicense to LGPLv2+.
36738         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36739
36740 2008-08-22  Andreas Schwab  <schwab@suse.de>
36741
36742         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36743         Remove spurious space in assignment.
36744
36745 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36746
36747         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36748         Paul Eggert <eggert@CS.UCLA.EDU>.
36749
36750 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36751
36752         * modules/gettext: Add m4/threadlib.m4.
36753
36754 2008-08-19  Eric Blake  <ebb9@byu.net>
36755
36756         test-c-stack: fix compilation failure on FreeBSD 5.0
36757         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36758         headers before <sys/resource.h>.
36759         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36760         the bug.
36761         Reported by Nelson H. F. Beebe.
36762
36763         strverscmp: migrate from "strverscmp.h" to <string.h>
36764         * modules/string (Makefile.am): Add new hooks.
36765         * modules/strverscmp (Files): Remove strverscmp.h.
36766         (Depends-on): Add string.
36767         (configure.ac): Add indicator.
36768         (Include): Mention new header.
36769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36770         defaults.
36771         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36772         results.
36773         * lib/strverscmp.h: Delete.
36774         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36775         * tests/test-strverscmp.c (includes): Adjust client.
36776         * lib/check-version.c (includes): Likewise.
36777         * NEWS: Document the change.
36778
36779         strverscmp: add unit test
36780         * modules/strverscmp-tests: New file.
36781         * tests/test-strverscmp.c: Likewise.
36782
36783 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36784
36785         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36786         regarding Windows crypto stuff, from Mono.
36787
36788 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36789
36790         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36791         if present, for intel RND.  Return error on failures.
36792
36793 2008-08-18  Ben Pfaff  <blp@gnu.org>
36794
36795         gitlog-to-changelog: give better diagnostic for failed pipe-open
36796         * build-aux/gitlog-to-changelog: Improve error message: suggest
36797         that the version of Git may be too old.
36798
36799 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36800
36801         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36802         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36803
36804 2008-08-18  Bruno Haible  <bruno@clisp.org>
36805
36806         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36807         pthread_in_use().
36808
36809 2008-08-18  Bruno Haible  <bruno@clisp.org>
36810
36811         * lib/glthread/threadlib.c: Include <pthread.h>.
36812
36813 2008-08-18  Bruno Haible  <bruno@clisp.org>
36814
36815         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36816         glthread_recursive_lock_* macros.
36817         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36818         Fix syntax error.
36819
36820 2008-08-18  Bruno Haible  <bruno@clisp.org>
36821
36822         * lib/glthread/thread.c: Avoid forcing a context switch right after
36823         thread creation.
36824
36825 2008-08-17  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36828         * lib/glthread/thread.h: Provide Win32 specific implementation.
36829         * modules/thread (Files): Add lib/glthread/thread.c.
36830         (Depends-on): Add lock.
36831         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36832
36833 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36834
36835         New module 'yield'.
36836         * modules/yield: New file.
36837         * lib/glthread/yield.h: New file.
36838         * m4/yield.m4: New file.
36839         * MODULES.html.sh (Multithreading): Add yield.
36840
36841 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36842
36843         New module 'thread'.
36844         * modules/thread: New file.
36845         * lib/glthread/thread.h: New file.
36846         * m4/thread.m4: New file.
36847         * MODULES.html.sh (Multithreading): Add thread.
36848
36849 2008-08-17  Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/glthread/lock.h: Include <stdlib.h> always.
36852         * lib/glthread/tls.h: Likewise.
36853         * lib/glthread/cond.h: Likewise.
36854
36855 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36856
36857         New module 'cond'.
36858         * modules/cond: New file.
36859         * lib/glthread/cond.h: New file.
36860         * lib/glthread/cond.c: New file.
36861         * m4/cond.m4: New file.
36862         * MODULES.html.sh (Multithreading): Add cond.
36863
36864 2008-08-16  Eric Blake  <ebb9@byu.net>
36865
36866         c-stack: fix regression on Irix 5.3 from 2008-06-21
36867         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36868         sa_sigaction...
36869         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36870         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36871         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36872         * modules/signal (Makefile.am): Use the value.
36873         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36874         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36875         * doc/posix-headers/signal.texi (signal.h): Document this
36876         portability issue.
36877         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36878         Reported by Tom G. Christensen.
36879
36880 2008-08-17  Bruno Haible  <bruno@clisp.org>
36881
36882         New module 'threadlib'.
36883         * modules/threadlib: New file.
36884         * lib/glthread/threadlib.c: New file, extracted from
36885         lib/glthread/lock.c.
36886         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36887         functions.
36888         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36889         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36890         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36891         macros.
36892         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36893         (gl_DISABLE_THREADS): Remove macro.
36894         * modules/lock (Files): Remove build-aux/config.rpath.
36895         (Depends-on): Remove havelib. Add threadlib.
36896         (configure.ac-early): Remove section.
36897         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36898         * modules/tls (Depends-on): Remove lock. Add threadlib.
36899         (Link): New section, copied from threadlib.
36900         * MODULES.html.sh (Multithreading): Add threadlib.
36901
36902 2008-08-14  Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36905         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36906         glthread_rwlock_unlock, glthread_rwlock_destroy,
36907         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36908         glthread_recursive_lock_destroy): Define as macros always.
36909         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36910         glthread_lock_lock.
36911         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36912         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36913         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36914         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36915         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36916         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36917         (glthread_recursive_lock_lock_func): Renamed from
36918         glthread_recursive_lock_lock.
36919         (glthread_recursive_lock_unlock_func): Renamed from
36920         glthread_recursive_lock_unlock.
36921         (glthread_recursive_lock_destroy_func): Renamed from
36922         glthread_recursive_lock_destroy.
36923
36924 2008-08-14  Bruno Haible  <bruno@clisp.org>
36925
36926         * lib/glthread/lock.h: Renamed from lib/lock.h.
36927         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36928         * lib/glthread/tls.h: Renamed from lib/tls.h.
36929         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36930         * lib/fstrcmp.c: Update includes.
36931         * lib/strsignal.c: Update includes.
36932         * modules/lock (Files, Makefile.am): Update.
36933         (Include): Change to "glthread/lock.h".
36934         * modules/tls (Files, Makefile.am): Update.
36935         (Include): Change to "glthread/tls.h".
36936         * tests/test-lock.c: Update includes.
36937         * tests/test-tls.c: Update includes.
36938         * NEWS: Mention the renamed header files.
36939
36940 2008-08-11  Jim Meyering  <meyering@redhat.com>
36941
36942         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36943
36944 2008-08-11  Eric Blake  <ebb9@byu.net>
36945
36946         test-c-stack: avoid C99-ism
36947         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36948         before statement.
36949         Reported by Alain Guibert.
36950
36951 2008-08-10  Jim Meyering  <meyering@redhat.com>
36952
36953         ensure that return value of uinttostr et al are not ignored
36954         * lib/inttostr.h (__GNUC_PREREQ): Define.
36955         (__attribute_warn_unused_result__): Define.
36956         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36957
36958 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36959
36960         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36961         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36962
36963 2008-08-07  Jim Meyering  <meyering@redhat.com>
36964
36965         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36966
36967         * modules/mkstemp (License): Relicense under LGPLv2+.
36968         * modules/tempname (License): Likewise.
36969
36970 2008-08-06  Bruno Haible  <bruno@clisp.org>
36971
36972         * lib/poll.c (poll): Further micro-optimization.
36973
36974 2008-08-06  Jim Meyering  <meyering@redhat.com>
36975
36976         inet_pton.c: use locale-independent tolower
36977         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36978         (inet_pton6): Use c_tolower rather than tolower.
36979         * modules/inet_pton (Depends-on): Add c-ctype.
36980
36981 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36982
36983         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36984         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36985
36986 2008-08-06  Jim Meyering  <meyering@redhat.com>
36987
36988         * modules/inet_pton (License): Relicense under LGPLv2+.
36989
36990 2008-08-03  Bruno Haible  <bruno@clisp.org>
36991
36992         Additional non-aborting API for lock and tls.
36993         * lib/lock.h: Include <errno.h>.
36994         (glthread_lock_init): New macro/function.
36995         (gl_lock_init): Define as wrapper around glthread_lock_init.
36996         (glthread_lock_lock): New macro/function.
36997         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36998         (glthread_lock_unlock): New macro/function.
36999         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37000         (glthread_lock_destroy): New macro/function.
37001         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37002         (glthread_rwlock_init): New macro/function.
37003         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37004         (glthread_rwlock_rdlock): New macro/function.
37005         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37006         (glthread_rwlock_wrlock): New macro/function.
37007         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37008         (glthread_rwlock_unlock): New macro/function.
37009         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37010         (glthread_rwlock_destroy): New macro/function.
37011         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37012         (glthread_recursive_lock_init): New macro/function.
37013         (gl_recursive_lock_init): Define as wrapper around
37014         glthread_recursive_lock_init.
37015         (glthread_recursive_lock_lock): New macro/function.
37016         (gl_recursive_lock_lock): Define as wrapper around
37017         glthread_recursive_lock_lock.
37018         (glthread_recursive_lock_unlock): New macro/function.
37019         (gl_recursive_lock_unlock): Define as wrapper around
37020         glthread_recursive_lock_unlock.
37021         (glthread_recursive_lock_destroy): New macro/function.
37022         (gl_recursive_lock_destroy): Define as wrapper around
37023         glthread_recursive_lock_destroy.
37024         (glthread_once): New macro/function.
37025         (gl_once): Define as wrapper around glthread_once.
37026         Update function declarations.
37027         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37028         glthread_rwlock_init. Return error code.
37029         (glthread_rwlock_rdlock_multithreaded): Renamed from
37030         glthread_rwlock_rdlock. Return error code.
37031         (glthread_rwlock_wrlock_multithreaded): Renamed from
37032         glthread_rwlock_wrlock. Return error code.
37033         (glthread_rwlock_unlock_multithreaded): Renamed from
37034         glthread_rwlock_unlock. Return error code.
37035         (glthread_rwlock_destroy_multithreaded): Renamed from
37036         glthread_rwlock_destroy. Return error code.
37037         (glthread_recursive_lock_init_multithreaded): Renamed from
37038         glthread_recursive_lock_init. Return error code.
37039         (glthread_recursive_lock_lock_multithreaded): Renamed from
37040         glthread_recursive_lock_lock. Return error code.
37041         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37042         glthread_recursive_lock_unlock. Return error code.
37043         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37044         glthread_recursive_lock_destroy. Return error code.
37045         (glthread_once_call): Make static.
37046         (glthread_once_multithreaded): Renamed from glthread_once.
37047         * lib/tls.h: Include <errno.h>.
37048         (glthread_tls_key_init): New macro/function.
37049         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37050         (glthread_tls_set): New macro/function.
37051         (gl_tls_set): Define as wrapper around glthread_tls_set.
37052         (glthread_tls_key_destroy): New macro/function.
37053         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37054         Update function declarations.
37055         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37056         glthread_tls_get.
37057         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37058
37059 2008-08-04  Eric Blake  <ebb9@byu.net>
37060
37061         gnumakefile: use space, not TAB, outside of targets
37062         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37063
37064 2008-08-02  Jim Meyering  <meyering@redhat.com>
37065
37066         getdate.y: avoid locale-dependent date parsing failure
37067         In Turkish locales, getdate would fail to recognize keywords
37068         containing a lowercase "i".  The solution is not to rely on
37069         locale-sensitive case-conversion.
37070         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37071         (lookup_word): Use c_toupper in place of toupper.
37072         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37073         Reported by Vefa Bicakci <bicave@superonline.com> in
37074         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37075         * modules/getdate (Depends-on): Add c-ctype.
37076
37077 2008-08-02  Bruno Haible  <bruno@clisp.org>
37078
37079         * gnulib-tool (func_import): When updating or creating a .gitignore
37080         file, prepend each added line with a slash, and ignore leading slashes
37081         from the existing lines.
37082         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37083
37084 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37085
37086         Portability fix for GNU make 3.79.1.
37087         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37088         versions do not understand.
37089
37090 2008-08-01  Bruno Haible  <bruno@clisp.org>
37091
37092         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37093         * tests/test-isnanf.h (zero): New variable.
37094         (main): Avoid literal -0.0f.
37095         * tests/test-isnand.h (zero): New variable.
37096         (main): Avoid literal -0.0.
37097         * tests/test-isnanl.h (zero): New variable.
37098         (main): Avoid literal -0.0L.
37099         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37100         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37101         -0.0, -0.0L.
37102         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37103         (test_signbitd): Avoid literal -0.0.
37104         (test_signbitl): Avoid literal -0.0L.
37105         * tests/test-ceilf1.c (zero): New variable.
37106         (main): Avoid literal -0.0f.
37107         * tests/test-ceill.c (zero): New variable.
37108         (main): Avoid literal -0.0L.
37109         * tests/test-floorf1.c (zero): New variable.
37110         (main): Avoid literal -0.0f.
37111         * tests/test-floorl.c (zero): New variable.
37112         (main): Avoid literal -0.0L.
37113         * tests/test-roundf1.c (zero): New variable.
37114         (main): Avoid literal -0.0f.
37115         * tests/test-round1.c (zero): New variable.
37116         (main): Avoid literal -0.0.
37117         * tests/test-roundl.c (zero): New variable.
37118         (main): Avoid literal -0.0L.
37119         * tests/test-truncf1.c (zero): New variable.
37120         (main): Avoid literal -0.0f.
37121         * tests/test-trunc1.c (zero): New variable.
37122         (main): Avoid literal -0.0.
37123         * tests/test-truncl.c (zero): New variable.
37124         (main): Avoid literal -0.0L.
37125         * tests/test-frexp.c (zero): New variable.
37126         (main): Avoid literal -0.0.
37127         * tests/test-frexpl.c (zero): New variable.
37128         (main): Avoid literal -0.0L.
37129         * tests/test-ldexpl.c (zero): New variable.
37130         (main): Avoid literal -0.0L.
37131         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37132         (zerod, zerol): New variables.
37133         (test_function): Avoid literals -0.0, -0.0L.
37134         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37135         (zerod, zerol): New variables.
37136         (test_function): Avoid literals -0.0, -0.0L.
37137         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37138         (zerod, zerol): New variables.
37139         (test_function): Avoid literals -0.0, -0.0L.
37140         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37141         (zerod, zerol): New variables.
37142         (test_function): Avoid literals -0.0, -0.0L.
37143         * tests/test-strtod.c (zero): New variable.
37144         (main): Avoid literal -0.0.
37145         Reported by Jonathan C. Patschke <jp@centtech.com>.
37146
37147 2008-07-31  Jim Meyering  <meyering@redhat.com>
37148
37149         sha256.h: correct definition of SHA224_DIGEST_SIZE
37150         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37151         Reported by Paulie Pena IV <paulie4@gmail.com>.
37152         Define as 224 / 8, rather than as a literal.
37153         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37154         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37155         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37156
37157 2008-07-31  Bruno Haible  <bruno@clisp.org>
37158
37159         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37160         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37161         Reported by Jonathan Patschke <jp@centtech.com>.
37162
37163 2008-07-31  Bruno Haible  <bruno@clisp.org>
37164
37165         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37166         Reported by Paolo Bonzini <bonzini@gnu.org>.
37167
37168 2008-07-30  Eric Blake  <ebb9@byu.net>
37169
37170         test-strtod: allow compilation without -lm
37171         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37172         Reported by Dennis Clarke <blastwave@gmail.com>.
37173
37174 2008-07-28  Jim Meyering  <meyering@redhat.com>
37175
37176         bootstrap: work also when there are no .po files in po/
37177         * build-aux/bootstrap (update_po_files): Complete the change
37178         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37179
37180 2008-07-27  Jim Meyering  <meyering@redhat.com>
37181
37182         * users.txt: Add zile.
37183
37184 2008-07-26  Ben Pfaff  <blp@gnu.org>
37185
37186         Add missing dependencies on new m4/exponent[fdl].m4 files.
37187         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37188         * modules/isnand-nolibm: Add m4/exponentd.m4.
37189         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37190         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37191         m4/isnan[fdl].m4, because the macros actually used moved.
37192         Reported by Jim Meyering.
37193
37194 2008-07-14  Ben Pfaff  <blp@gnu.org>
37195
37196         Add isinf module.
37197         * lib/isinf.c: New file.
37198         * lib/math.in.h: Define isinf macro if we have decided to replace
37199         it.
37200         * m4/isinf.m4: New file.
37201         * m4/math_h.m4: Initialize and substitute variables for isinf
37202         module.
37203         * modules/isinf: New file.
37204         * modules/isinf-tests: New file.
37205         * modules/math: Add substitutions for new module.
37206         * tests/test-isinf.c: New file.
37207         * doc/posix-functions/isinf.texi: Mention new module.
37208         * MODULES.html.sh: Mention new module.
37209
37210 2008-07-14  Ben Pfaff  <blp@gnu.org>
37211
37212         Factor out some macros for use by additional modules.
37213         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37214         exponentf.m4.
37215         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37216         exponentd.m4.
37217         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37218         file exponentl.m4.
37219         * m4/exponentf.m4: New file.
37220         * m4/exponentd.m4: New file.
37221         * m4/exponentl.m4: New file.
37222         * modules/isnanf: Use new file m4/exponentf.m4.
37223         * modules/isnand: Use new file m4/exponentd.m4.
37224         * modules/isnanl: Use new file m4/exponentl.m4.
37225
37226 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37227
37228         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37229         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37230         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37231         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37232
37233         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37234         readlink on platforms without PATH_MAX.
37235
37236 2008-07-21  Eric Blake  <ebb9@byu.net>
37237
37238         Warn, not fail, on stale version.
37239         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37240
37241         Don't allow installation with stale devel version number.
37242         * top/GNUmakefile (_is-install-target): New macro.
37243         (_curr-ver): Forbid installation with stale version number.
37244
37245 2008-07-20  Bruno Haible  <bruno@clisp.org>
37246
37247         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37248         TESTS_ENVIRONMENT.
37249         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37250
37251 2008-07-20  Bruno Haible  <bruno@clisp.org>
37252
37253         * lib/c-stack.h (c_stack_action): Add documentation.
37254         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37255
37256 2008-07-20  Bruno Haible  <bruno@clisp.org>
37257
37258         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37259         * modules/readlink (License): Likewise.
37260
37261 2008-07-17  Eric Blake  <ebb9@byu.net>
37262
37263         * modules/c-stack (Link): Fix typo.
37264
37265         Make c-stack use libsigsegv, when available.
37266         * modules/c-stack (Depends-on): Add libsigsegv.
37267         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37268         needed.
37269         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37270         (segv_handler, overflow_handler, c_stack_action)
37271         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37272         implementation when libsigsegv is available, but only when using
37273         the library is necessary.
37274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37275         comment, explaining why XSI check fails on Linux.
37276         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37277         * tests/test-c-stack2.sh: Tweak skip message.
37278         * NEWS: Document new link-time requirements.
37279
37280 2008-07-16  Eric Blake  <ebb9@byu.net>
37281
37282         c-stack: Expose false positives when not using libsigsegv.
37283         * modules/c-stack-tests (Files): Expand test.
37284         * tests/test-c-stack.c (main): Add means to conditionally trigger
37285         non-overflow SIGSEGV.
37286         * tests/test-c-stack2.sh: New file.
37287
37288 2008-07-14  Bruno Haible  <bruno@clisp.org>
37289
37290         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37291         Reported by Eric Blake.
37292
37293 2008-07-14  Sam Steingold  <sds@gnu.org>
37294             Bruno Haible  <bruno@clisp.org>
37295
37296         New module libsigsegv.
37297         * modules/libsigsegv: New file.
37298         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37299         modifications.
37300         * MODULES.html.sh (Signal handling): New section.
37301
37302 2008-07-14  Bruno Haible  <bruno@clisp.org>
37303
37304         * modules/unictype/ctype-* (Description): Add the word "function".
37305         Improves the resulting doc in MODULES.html.
37306
37307 2008-07-12  Ben Pfaff  <blp@gnu.org>
37308
37309         Add longlong module.
37310         * modules/longlong: New file.
37311
37312 2008-07-12  Bruno Haible  <bruno@clisp.org>
37313
37314         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37315         to empty.
37316
37317 2008-07-10  Ben Pfaff  <blp@gnu.org>
37318
37319         Add isnan module.
37320         * doc/posix-functions/isnan.texi: Mention new module.
37321         * lib/math.in.h: Define isnan macro if we have decided to replace
37322         it.
37323         * m4/isnan.m4: New file.
37324         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37325         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37326         also.
37327         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37328         redundancy.
37329         * m4/math_h.m4: Initialize and substitute variables for isnan
37330         module.
37331         * modules/isnan: New file.
37332         * modules/isnan-tests: New file.
37333         * modules/math: Add substitutions for new module.
37334         * tests/test-isnan.c: New file.
37335         * MODULES.html.sh: Mention new module.
37336
37337 2008-07-10  Ben Pfaff  <blp@gnu.org>
37338
37339         Add isnanf module.
37340         * lib/isnanf.m4: New file.
37341         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37342         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37343         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37344         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37345         * modules/isnanf: New file.
37346         * modules/isnanf-tests: New file.
37347         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37348         files.
37349         * tests/test-isnanf-nolibm.c: factored most of its contents into
37350         new file tests/test-isnanf.h.
37351         * tests/test-isnanf.h: New file.
37352         * tests/test-isnanf.c: New file.
37353         * MODULES.html.sh: Mention new module.
37354         * doc/glibc-functions/isnanf.texi: Mention new module.
37355
37356 2008-07-10  Ben Pfaff  <blp@gnu.org>
37357
37358         Add isnand module.
37359         * lib/isnand.h: New file.
37360         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37361         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37362         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37363         functionality also.
37364         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37365         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37366         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37367         * modules/isnand: New file.
37368         * modules/isnand-tests: New file.
37369         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37370         files.
37371         * tests/test-isnand-nolibm.c: factored most of its contents into
37372         new file tests/test-isnand.h.
37373         * tests/test-isnand.h: New file.
37374         * tests/test-isnand.c: New file.
37375         * MODULES.html.sh: Mention new module.
37376
37377 2008-07-10  Ben Pfaff  <blp@gnu.org>
37378
37379         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37380         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37381         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37382         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37383         * modules/isnanf-nolibm: Update references to renamed files.
37384         * modules/isnand-nolibm: Likewise.
37385         * modules/isnanf-nolibm-tests: Likewise.
37386         * modules/isnand-nolibm-tests: Likewise.
37387         * lib/frexp.c: Likewise.
37388         * lib/isfinite.c: Likewise.
37389         * lib/signbitd.c: Likewise.
37390         * lib/signbitf.c: Likewise.
37391         * lib/vasnprintf.c: Likewise.
37392         * tests/test-ceilf1.c: Likewise.
37393         * tests/test-ceilf2.c: Likewise.
37394         * tests/test-floorf1.c: Likewise.
37395         * tests/test-floorf2.c: Likewise.
37396         * tests/test-frexp.c: Likewise.
37397         * tests/test-round1.c: Likewise.
37398         * tests/test-round2.c: Likewise.
37399         * tests/test-roundf1.c: Likewise.
37400         * tests/test-strtod.c: Likewise.
37401         * tests/test-trunc1.c: Likewise.
37402         * tests/test-trunc2.c: Likewise.
37403         * tests/test-truncf1.c: Likewise.
37404         * tests/test-truncf2.c: Likewise.
37405         * NEWS: Mention the renamed header files.
37406
37407 2008-07-11  Jim Meyering  <meyering@redhat.com>
37408
37409         vc-list-files: make the last-resort awk code more portable
37410         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37411         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37412         does not support it.
37413
37414 2008-07-10  Eric Blake  <ebb9@byu.net>
37415
37416         Work with tar's bootstrap.
37417         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37418         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37419         an m4 comment.
37420
37421 2008-07-09  Jim Meyering  <meyering@redhat.com>
37422
37423         posix-shell.m4: fix typo that made this test malfunction
37424         * m4/posix-shell.m4: Remove capitalization in variable name.
37425
37426 2008-07-08  Bruno Haible  <bruno@clisp.org>
37427
37428         * m4/onceonly.m4: Update comments.
37429         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37430
37431 2008-07-04  Jim Meyering  <meyering@redhat.com>
37432
37433         * users.txt: Add vc-dwim.
37434         (bison, coreutils): Use the gitweb URL.
37435
37436 2008-07-03  Jim Meyering  <meyering@redhat.com>
37437
37438         * users.txt: Add libffcall.  From Sam Steingold.
37439
37440 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
37441
37442         getdate.y: do not ignore TZ with relative day, month or year offset
37443         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37444         relative-date-handling, since otherwise, the latter would clobber the
37445         sole output (an updated Start value) of the tz-handling block.
37446         * tests/test-getdate.c: Tests for the fix
37447
37448 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37449
37450         Recognize 'foo_LIBRARIES += libgnu.a'.
37451         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37452         makefile snippet has already specified an installation location,
37453         also using '+='.
37454
37455 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
37456
37457         getdate.y: factor out common actions
37458         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37459         Use them in place of open-coded actions.
37460
37461 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37462
37463         Add self-test for getdate module.
37464         * modules/getdate-tests: New file.
37465         * tests/test-getdate.c: New file.
37466
37467 2008-06-29  Bruno Haible  <bruno@clisp.org>
37468
37469         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37470         .gitignore.
37471         Reported by Sylvain Beucler <beuc@beuc.net>.
37472
37473 2008-06-29  Bruno Haible  <bruno@clisp.org>
37474
37475         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37476         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37477
37478 2008-06-29  Bruno Haible  <bruno@clisp.org>
37479
37480         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37481         EXTRA_DIST.
37482         Reported by Sylvain Beucler <beuc@beuc.net>.
37483
37484 2008-06-26  Jim Meyering  <meyering@redhat.com>
37485
37486         make several modules depend on the "open" module
37487         This provides slightly increased consistency when opening-for-write
37488         the name of a non-directory spelled with a trailing slash.
37489         * modules/chdir-safer: Likewise.
37490         * modules/chown: Likewise.
37491         * modules/clean-temp: Likewise.
37492         * modules/copy-file: Likewise.
37493         * modules/fchdir: Likewise.
37494         * modules/fcntl-safer: Likewise.
37495         * modules/pipe: Likewise.
37496         * modules/utime: Likewise.
37497         Prompted by Eric Blake and Bruno Haible.
37498
37499 2008-06-24  Andreas Schwab  <schwab@suse.de>
37500
37501         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37502         literals can be used as initializers for global variables.
37503
37504 2008-06-23  Eric Blake  <ebb9@byu.net>
37505
37506         Make gnulib-cache.m4 easier to diff.
37507         * gnulib-tool (func_import): Allow newlines when reading cached
37508         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37509
37510 2008-06-23  Bruno Haible  <bruno@clisp.org>
37511
37512         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37513         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37514         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37515         m4/signalblocking.m4.
37516         (gl_PREREQ_SIGACTION): Don't invoke it.
37517         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37518         gl_PREREQ_SIG_HANDLER_H.
37519         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37520         Don't check for sigaction here.
37521
37522 2008-06-23  Bruno Haible  <bruno@clisp.org>
37523
37524         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37525         (install_handlers): Don't set the SA_RESETHAND flag.
37526
37527 2008-06-23  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/sigaction.m4: Comment fixes.
37530         * lib/signal.in.h: Likewise.
37531
37532 2008-06-23  Eric Blake  <ebb9@byu.net>
37533
37534         Fix typo.
37535         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37536
37537         Avoid SA_ namespace.
37538         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37539         Reported by Ralf Wildenhues.
37540
37541         Avoid test failure due to SA_RESTORER.
37542         * tests/test-sigaction.c (SA_MASK): New macro.
37543         (main): Avoid failing due to extension flags being set.
37544         Reported by Jim Meyering.
37545
37546         Revert use of sig-handler.h in sigprocmask.c.
37547         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37548         it requires the existence of struct sigaction.
37549         * lib/sigprocmask.c (handler_t): Restore typedef.
37550         (rpl_signal, old_handlers): Use local type.
37551
37552 2008-06-22  Bruno Haible  <bruno@clisp.org>
37553
37554         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37555         conditionally.
37556         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37557
37558 2008-06-22  Bruno Haible  <bruno@clisp.org>
37559
37560         * doc/posix-functions/siginterrupt.texi: Move note.
37561
37562         * lib/signal.in.h (SA_RESTART): New macro.
37563         * lib/sigaction.c: Update comment.
37564
37565         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37566
37567         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37568         (gl_PREREQ_SIGPROCMASK): Invoke it.
37569         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37570
37571         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37572
37573         * lib/sigprocmask.c: Update a comment.
37574
37575 2008-06-21  Eric Blake  <ebb9@byu.net>
37576
37577         Use sigaction module rather than signal().
37578         * modules/c-stack (Depends-on): Add sigaction.
37579         * modules/fatal-signal (Depends-on): Likewise.
37580         * modules/nanosleep (Depends-on): Likewise.
37581         * modules/sigprocmask (Files): Add sig-handler.h.
37582         * modules/sigaction (Files): Likewise.
37583         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37584         Eggert.
37585         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37586         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37587         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37588         (init_fatal_signals): Likewise.
37589         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37590         (siginterrupt): Delete fallback.
37591         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37592         instead.
37593         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37594         siginterrupt.
37595
37596         New module sigaction, for mingw.
37597         * modules/sigaction: New module...
37598         * modules/sigaction-tests: ...and its test.
37599         * m4/sigaction.m4: New file.
37600         * lib/sigaction.c: Likewise.
37601         * tests/test-sigaction.c: Likewise.
37602         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37603         * modules/signal (Makefile.am): Likewise.
37604         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37605         needed.
37606         * doc/posix-headers/signal.texi (signal.h): Mention provided
37607         types.
37608         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37609         that sigaction is preferable.
37610         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37611         module.
37612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37613         sigaction.
37614
37615         Improve robustness of sigprocmask by overriding signal.
37616         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37617         is in use.
37618         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37619         (SIGKILL, SIGSTOP): Provide fallbacks.
37620         (rpl_signal): Implement.
37621         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37622         signal can be called inside handlers.
37623
37624         Fix nanosleep module on mingw.
37625         * modules/nanosleep (Depends-on): Add sys_select.
37626         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37627
37628         Fix licensing of sigprocmask.
37629         * modules/raise (License): Relicense as LGPL.
37630
37631 2008-06-21  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37634         result if it contains question marks.
37635         Reported by Michael Geng <linux@michaelgeng.de>.
37636
37637 2008-06-19  Bruno Haible  <bruno@clisp.org>
37638
37639         Fix CVS-ism.
37640         * doc/gnulib.texi: Include updated-stamp.texi.
37641         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37642         (updated-stamp.texi): New rule.
37643         (gnulib.info): Depend on it.
37644         * doc/.gitignore: Add updated-stamp.texi.
37645         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37646
37647 2008-06-19  Bruno Haible  <bruno@clisp.org>
37648
37649         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37650         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37651
37652 2008-06-19  Eric Blake  <ebb9@byu.net>
37653
37654         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37655         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37656         Reported by Stepan Kasal.
37657
37658 2008-06-18  Bruno Haible  <bruno@clisp.org>
37659
37660         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37661         Reported by Eric Blake.
37662
37663 2008-06-18  Eric Blake  <ebb9@byu.net>
37664
37665         Work around cygwin 1.5.25 strsignal bug.
37666         * tests/test-strsignal.c: Allow for const char *.
37667         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37668
37669 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37670
37671         * users.txt: Update URL to article and add author/date
37672         information.
37673
37674 2008-06-17  Bruno Haible  <bruno@clisp.org>
37675
37676         New macro gl_DISABLE_THREADS.
37677         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37678         if the user did not pass --enable-threads or --disable-threads option.
37679         (gl_DISABLE_THREADS): New macro.
37680         Reported by Eric Blake <ebb9@byu.net>.
37681
37682 2008-06-17  Bruno Haible  <bruno@clisp.org>
37683
37684         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37685         when the macro ignores it.
37686         Based on a patch by Eric Blake <ebb9@byu.net>.
37687
37688 2008-06-17  Bruno Haible  <bruno@clisp.org>
37689
37690         * modules/tls (License): Change to LGPLv2+.
37691         Reported by Eric Blake.
37692
37693 2008-06-17  Eric Blake  <ebb9@byu.net>
37694
37695         Simplify c-stack prerequisites.
37696         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37698         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37699         check.
37700         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37701         <sys/resource.h>.
37702
37703         Move c-stack test into testsuite.
37704         * modules/c-stack-tests: New file.
37705         * lib/c-stack.c [DEBUG]: Move test program...
37706         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37707         fail test if sigaltstack is lacking.
37708         * tests/test-c-stack.sh: New driver file.
37709
37710 2008-06-16  Eric Blake  <ebb9@byu.net>
37711
37712         Use raise module consistently.
37713         * modules/fatal-signal (Depends-on): Add raise.
37714         * modules/sigprocmask (Depends-on): Likewise.
37715         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37716         * lib/sigprocmask.c (sigprocmask): Likewise.
37717         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37718         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37719
37720         Fix compliance bug in sigpending.
37721         * lib/sigprocmask.c (sigpending): Return pending array via
37722         parameter, not return value.
37723
37724 2008-06-14  Eric Blake  <ebb9@byu.net>
37725
37726         Improve obstack-printf test code.
37727         * tests/test-obstack-printf.c (test_function): Fix comment, and
37728         simplify usage of obstack_* in macros.  Add a test for coverage.
37729         Reported by Bruno Haible.
37730
37731 2008-06-14  Bruno Haible  <bruno@clisp.org>
37732
37733         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37734         array size as a constant, not as a const variable.
37735         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37736         AC_USE_SYSTEM_EXTENSIONS.
37737         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37738         Test whether the obstack_printf function actually exists.
37739         * modules/obstack-printf (Depends-on): Add extensions.
37740         (Include): Remove obstack.h.
37741         * modules/obstack-printf-posix (Depends-on): Add extensions.
37742         (Include): Remove obstack.h.
37743
37744 2008-06-13  Eric Blake  <ebb9@byu.net>
37745
37746         Add obstack-printf and obstack-printf-posix modules.
37747         * modules/obstack-printf: New file.
37748         * modules/obstack-printf-posix: Likewise.
37749         * MODULES.html.sh (Misc): Mention them.
37750         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37751         Likewise.
37752         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37753         Likewise.
37754         * modules/stdio (Makefile.am): Accomodate new modules.
37755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37756         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37757         Declare.
37758         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37759         functions.
37760         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37761         (gl_REPLACE_OBSTACK_PRINTF): New macros
37762         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37763         * tests/test-obstack-printf.c: New file.
37764         * modules/obstack-printf-tests: Likewise.
37765         * modules/obstack-printf-posix-tests: Likewise.
37766
37767 2008-06-11  Bruno Haible  <bruno@clisp.org>
37768
37769         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37770         * lib/open.c: Include errno.h.
37771         (open): Fail when attempting to write to a file that has a trailing
37772         slash.
37773         * tests/test-open.c (main): Test against trailing slash bug.
37774         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37775
37776 2008-06-10  Bruno Haible  <bruno@clisp.org>
37777
37778         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37779         for $? to work inside the trap command, with various /bin/sh-s.
37780         * tests/test-vc-list-files-cvs.sh: Likewise.
37781
37782 2008-06-10  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/acl-internal.h: Don't include gettext.h here.
37785         * lib/set-mode-acl.c: Include gettext.h here.
37786         * lib/copy-acl.c: Likewise.
37787
37788 2008-06-10  Bruno Haible  <bruno@clisp.org>
37789
37790         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37791         * lib/wait-process.c (wait_subprocess): Likewise.
37792         * lib/execute.h (execute): Add termsigp argument.
37793         * lib/execute.c (execute): Likewise.
37794         * lib/csharpcomp.c (compile_csharp_using_pnet,
37795         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37796         * lib/csharpexec.c (execute_csharp_using_pnet,
37797         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37798         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37799         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37800         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37801         is_jikes_present): Update.
37802         * lib/javaexec.c (execute_java_class): Update.
37803         * lib/javaversion.c (execute_and_read_line): Update.
37804         * NEWS: Document the changes.
37805         Reported by Eric Blake.
37806
37807 2008-06-10  Eric Blake  <ebb9@byu.net>
37808
37809         Add missing include.
37810         * tests/test-strstr.c (includes): Add <signal.h>.
37811         * tests/test-strcasestr.c (includes): Likewise.
37812         * tests/test-memmem.c (includes): Likewise.
37813
37814 2008-06-10  Bruno Haible  <bruno@clisp.org>
37815
37816         * lib/wait-process.c (wait_subprocess): Add an assertion.
37817
37818 2008-06-10  Bruno Haible  <bruno@clisp.org>
37819
37820         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37821
37822 2008-06-10  Bruno Haible  <bruno@clisp.org>
37823
37824         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37825         using alarm().
37826         * tests/test-strcasestr.c (main): Likewise.
37827         * tests/test-strstr.c (main): Likewise.
37828
37829 2008-06-09  Bruno Haible  <bruno@clisp.org>
37830
37831         Work around the Solaris 10 ACE ACLs ABI change.
37832         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37833         declare if ACL_NO_TRIVIAL is present.
37834         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37835         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37836         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37837         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37838         define if ACL_NO_TRIVIAL is present.
37839         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37840         and use the current ABI.
37841         (file_has_acl): Use same #if condition as elsewhere.
37842         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37843         in use, and use the current ABI.
37844         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37845         Reported by Jim Meyering.
37846
37847 2008-06-09  Eric Blake  <ebb9@byu.net>
37848
37849         Work around environments that (stupidly) ignore SIGALRM.
37850         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37851         before using alarm().
37852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37853         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37854         Reported by Ian Beckwith <ianb@erislabs.net>.
37855
37856         Produce autobuild blurb earlier in log.
37857         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37858
37859 2008-06-09  Jim Meyering  <meyering@redhat.com>
37860         and OndÅ™ej Vašík  <ovasik@redhat.com>
37861
37862         utimens.c: correct kernel bug work-around
37863         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37864         failure, not success, and the kernel bug we're trying to work
37865         around affects not just the utimensat call, but also the fallback
37866         futimens call.
37867         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37868         not success.
37869         [HAVE_FUTIMENS]: Use the same work-around, here.
37870
37871 2008-06-09  Jim Meyering  <meyering@redhat.com>
37872
37873         add more guards around definition of ACE_-related code
37874         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37875         ALLOW and ACE_OWNER are also defined.
37876
37877 2008-06-08  Bruno Haible  <bruno@clisp.org>
37878
37879         * lib/acl-internal.h: Add me as co-author.
37880         * lib/file-has-acl.c: Likewise.
37881         * lib/set-mode-acl.c: Likewise.
37882         * lib/copy-acl.c: Likewise.
37883
37884 2008-06-08  Bruno Haible  <bruno@clisp.org>
37885
37886         Add support for AIX ACLs.
37887         * lib/acl-internal.h (acl_nontrivial): New declaration.
37888         * lib/file-has-acl.c (acl_nontrivial): New function.
37889         (file_has_acl): Add implementation using AIX 4 ACL API.
37890         * lib/set-mode-acl.c (qset_acl): Likewise.
37891         * lib/copy-acl.c (qcopy_acl): Likewise.
37892
37893 2008-06-08  Bruno Haible  <bruno@clisp.org>
37894
37895         Add support for HP-UX ACLs.
37896         * lib/acl-internal.h (acl_nontrivial): New declaration.
37897         * lib/file-has-acl.c (acl_nontrivial): New function.
37898         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37899         * lib/set-mode-acl.c (qset_acl): Likewise.
37900         * lib/copy-acl.c (qcopy_acl): Likewise.
37901
37902 2008-06-08  Bruno Haible  <bruno@clisp.org>
37903
37904         Add support for Cygwin ACLs.
37905         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37906         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37907         the chmod_or_fchmod call.
37908         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37909
37910 2008-06-08  Bruno Haible  <bruno@clisp.org>
37911
37912         Fix bug with setuid modes in Solaris 10+ code.
37913         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37914         succeeded, when the mode contains some special bits.
37915
37916 2008-06-08  Bruno Haible  <bruno@clisp.org>
37917
37918         Add support for Solaris 7..10 ACLs.
37919         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37920         declarations.
37921         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37922         functions.
37923         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37924         * lib/set-mode-acl.c (qset_acl): Likewise.
37925         * lib/copy-acl.c (qcopy_acl): Likewise.
37926
37927 2008-06-08  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37930         declaration.
37931         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37932         (acl_access_nontrivial): Remove MacOS X case.
37933         (file_has_acl): Use acl_extended_nontrivial.
37934         * lib/copy-acl.c (qcopy_acl): Likewise.
37935
37936 2008-06-08  Bruno Haible  <bruno@clisp.org>
37937
37938         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37939
37940 2008-06-08  Jim Meyering  <meyering@redhat.com>
37941
37942         * modules/acl (Maintainer): Add Bruno Haible.
37943
37944 2008-06-07  Bruno Haible  <bruno@clisp.org>
37945
37946         Improve support for Tru64 ACLs.
37947         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37948         ACL on OSF/1.
37949
37950 2008-06-07  Bruno Haible  <bruno@clisp.org>
37951
37952         Add support for MacOS X ACLs.
37953         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37954         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37955         * lib/set-mode-acl.c (qset_acl): Likewise.
37956         * lib/copy-acl.c (qcopy_acl): Likewise.
37957
37958 2008-06-07  Bruno Haible  <bruno@clisp.org>
37959
37960         Fix memory leak introduced on 2008-05-22.
37961         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37962         use.
37963
37964 2008-06-07  Bruno Haible  <bruno@clisp.org>
37965
37966         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37967         to construct an empty ACL.
37968
37969 2008-06-07  Bruno Haible  <bruno@clisp.org>
37970
37971         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37972         precisely.
37973         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37974
37975 2008-06-07  Bruno Haible  <bruno@clisp.org>
37976
37977         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37978         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37979
37980 2008-06-07  Bruno Haible  <bruno@clisp.org>
37981
37982         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37983         regardless of POSIX.
37984         * doc/posix-functions/_longjmp.texi: Likewise.
37985         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37986         SystemV platform in this case.
37987
37988 2008-06-06  Eric Blake  <ebb9@byu.net>
37989
37990         Document abort() bugs.
37991         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37992
37993         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37994         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37995         sigsetjmp.
37996         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37997         siglongjmp, but only as a macro.
37998         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37999         is obsolete.
38000         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38001
38002         Tweak documentation to cover cygwin argz bugs.
38003         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38004         argz bug fix; no code change needed since no cygwin releases
38005         occurred between the last fix and the bug being tested.
38006         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38007         module and recently fixed cygwin bugs.
38008         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38009         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38010         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38011         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38012         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38013         Likewise.
38014         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38015         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38016         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38017         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38018         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38019         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38020         Likewise.
38021
38022         Avoid gcc warning on cygwin.
38023         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38024         !ACL_NO_TRIVIAL]: Avoid unused variable.
38025
38026 2008-06-05  Eric Blake  <ebb9@byu.net>
38027
38028         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38029         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38030         git-version-gen fails to come up with a version.
38031         Reported by Simon Josefsson.
38032
38033 2008-06-05  Jim Meyering  <meyering@redhat.com>
38034             Paul Eggert  <eggert@cs.ucla.edu>
38035
38036         utimens.c: work around a probable Linux kernel bug
38037         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38038         appears to be a kernel bug that causes utimensat to return 280
38039         instead of 0, indicating success.
38040
38041 2008-06-04  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38044         2008-06-01 commit.
38045
38046 2008-06-04  Bruno Haible  <bruno@clisp.org>
38047
38048         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38049         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38050         (file_has_acl): Use it. Save errno afterwards.
38051         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38052
38053 2008-06-03  Bruno Haible  <bruno@clisp.org>
38054
38055         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38056         draft code. Simplify #ifs.
38057         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38058         Put Solaris code after POSIX-draft code. Fix comments regarding
38059         Solaris 10, HP-UX. Mention Cygwin.
38060         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38061
38062 2008-06-03  Eric Blake  <ebb9@byu.net>
38063
38064         Provide fallback for older kernels.
38065         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38066         Provide runtime fallback if kernel lacks support.
38067         Reported by Mike Frysinger.
38068
38069 2008-06-02  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38072         it exists.
38073
38074 2008-06-02  Bruno Haible  <bruno@clisp.org>
38075
38076         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38077         * lib/copy-acl.c (qcopy_acl): Update comment.
38078
38079 2008-06-02  Bruno Haible  <bruno@clisp.org>
38080
38081         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38082         like ACL APIs.
38083
38084 2008-06-02  Bruno Haible  <bruno@clisp.org>
38085
38086         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38087         * tests/test-set-mode-acl.sh: Likewise.
38088         * tests/test-copy-acl.sh: Likewise.
38089         * tests/test-copy-file.sh: Likewise.
38090
38091 2008-06-02  Bruno Haible  <bruno@clisp.org>
38092
38093         * tests/test-file-has-acl.sh: Remove unused code.
38094
38095 2008-06-01  Bruno Haible  <bruno@clisp.org>
38096
38097         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38098         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38099         messages.
38100         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38101
38102 2008-06-01  Bruno Haible  <bruno@clisp.org>
38103
38104         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38105         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38106         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38107         APIs.
38108         * modules/acl-tests (configure.ac): Remove tests now contained in
38109         m4/acl.m4.
38110
38111 2008-06-02  Jim Meyering  <meyering@redhat.com>
38112
38113         announce-gen: use a better key-server host name
38114         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38115         it may be more consistently reliable.  Suggested by Werner Koch
38116         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38117
38118 2008-06-01  Bruno Haible  <bruno@clisp.org>
38119
38120         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38121         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38122
38123 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38124
38125         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38126
38127 2008-06-01  Bruno Haible  <bruno@clisp.org>
38128
38129         New ACL tests.
38130         * tests/test-file-has-acl.sh: New file.
38131         * tests/test-file-has-acl.c: New file.
38132         * tests/test-set-mode-acl.sh: New file.
38133         * tests/test-set-mode-acl.c: New file.
38134         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38135         * tests/test-copy-acl.c: New file.
38136         * modules/acl-tests: New file, based on modules/copy-file-tests.
38137         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38138         (Depends-on): Add acl-tests.
38139         (configure.ac): Remove checks.
38140         (Makefile.am): Don't create test-sameacls program here any more.
38141
38142 2008-06-01  Bruno Haible  <bruno@clisp.org>
38143
38144         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38145         * tests/test-sameacls.c: Include progname.h.
38146         (main): Invoke set_program_name. Portability fixes for MacOS X,
38147         Solaris, HP-UX.
38148
38149 2008-06-01  Bruno Haible  <bruno@clisp.org>
38150
38151         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38152         function.
38153         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38154
38155 2008-06-01  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/rpmatch (Depends-on): Add strdup.
38158
38159 2008-06-01  Bruno Haible  <bruno@clisp.org>
38160
38161         * lib/pipe.c: Include unistd-safer.h.
38162         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38163         * modules/pipe (Depends-on): Add unistd-safer.
38164
38165 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38166
38167         * modules/autobuild (configure.ac): Call AB_INIT.
38168
38169 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38170
38171         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38172         Suggested by Bruno Haible <bruno@clisp.org>.
38173
38174 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38175
38176         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38177         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38178         <bruno@clisp.org>.
38179
38180 2008-05-29  Eric Blake  <ebb9@byu.net>
38181
38182         Prefer new POSIX 200x interfaces over futimesat.
38183         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38184         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38185         when available.
38186         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38187
38188 2008-05-28  Bruno Haible  <bruno@clisp.org>
38189
38190         * modules/stpcpy (License): Change to LGPLv2+.
38191         Requested by David Lutterkort <dlutter@redhat.com>.
38192
38193 2008-05-27  Bruno Haible  <bruno@clisp.org>
38194
38195         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38196         current mingw.
38197         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38198
38199 2008-05-27  Bruno Haible  <bruno@clisp.org>
38200
38201         * modules/iconv_open (Link): New section, from module 'iconv'.
38202         * modules/striconv (Link): Likewise.
38203         * modules/striconveh (Link): Likewise.
38204         * modules/xstriconv (Link): Likewise.
38205         * modules/unicodeio (Link): Likewise.
38206         * modules/propername (Link): Likewise.
38207         Reported by Jim Meyering.
38208
38209 2008-05-26  Jim Meyering  <meyering@redhat.com>
38210
38211         sha256: do not artificially restrict buffer length to be < 2^32
38212         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38213         uint32_t to size_t.
38214         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38215         to match.
38216
38217         avoid unaligned access errors, e.g., on sparc
38218         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38219         direct access through a possibly-unaligned uint64* pointer.
38220         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38221         direct access through a possibly-unaligned uint32* pointer.
38222         Prompted by this patch from Tom "spot" Callaway:
38223         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38224
38225         sha512.c: fix typo in comment
38226         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38227
38228 2008-05-25  Bruno Haible  <bruno@clisp.org>
38229
38230         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38231         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38232         (Makefile.am): Update lib_SOURCES.
38233
38234 2008-05-25  Bruno Haible  <bruno@clisp.org>
38235
38236         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38237
38238 2008-05-25  Jim Meyering  <meyering@redhat.com>
38239
38240         useless-if-before-free: freed expr may have white-space differences
38241         * build-aux/useless-if-before-free: Recognize cases in which the
38242         freed expression differs from the tested one in embedded white
38243         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38244         $1 was used, so we can't make any regexp shy.  Improved tests now
38245         detect this.
38246
38247         useless-if-before-free: accept white space in the expression.
38248         * build-aux/useless-if-before-free: For now, any white space
38249         in the expression must be identical in the free argument.
38250
38251         useless-if-before-free: efficiency tweak
38252         * build-aux/useless-if-before-free: Make the expression-matching
38253         regexp "shy".
38254         Make the *outer* regexp shy, not the expr-matching one.
38255
38256         update code-in-comment to accept cast of free arg
38257         * build-aux/useless-if-before-free: Update regexp.
38258
38259 2008-05-25  Bruno Haible  <bruno@clisp.org>
38260
38261         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38262         * modules/copy-file-tests (Files, Makefile.am): Update.
38263         * tests/test-copy-file.c (func_test_copy): Update.
38264
38265 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38266
38267         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38268
38269 2008-05-23  Bruno Haible  <bruno@clisp.org>
38270
38271         Improve support for ACLs on OSF/1.
38272         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38273         Remove fallback for unknown flavors of ACLs.
38274
38275 2008-05-22  Bruno Haible  <bruno@clisp.org>
38276
38277         Add support for ACLs on OSF/1.
38278         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38279         replacements.
38280         (acl_free_text): New macro fallback.
38281         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38282         acl_free.
38283         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38284         acl_free_text function. Require AC_C_INLINE.
38285
38286 2008-05-22  Bruno Haible  <bruno@clisp.org>
38287
38288         Make copy_acl work on MacOS X 10.5.
38289         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38290         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38291         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38292         If MODE_INSIDE_ACL, don't assume that every system has the same text
38293         representation for ACLs as FreeBSD.
38294         * lib/copy-acl.c (copy_acl): Add support for platforms with
38295         !MODE_INSIDE_ACL.
38296         * lib/file-has-acl.c (file_has_acl): Likewise.
38297         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38298         FreeBSD, MacOS X, or IRIX, respectively.
38299
38300 2008-05-22  Bruno Haible  <bruno@clisp.org>
38301
38302         * lib/acl.h: Don't include <sys/acl.h>.
38303         (GETACLCNT): Move fallback to lib/acl-internal.h.
38304         * lib/acl-internal.h: Include <sys/acl.h> here.
38305         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38306
38307 2008-05-22  Bruno Haible  <bruno@clisp.org>
38308
38309         Split off copy_acl function to separate file.
38310         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38311         * lib/acl.c (copy_acl): Moved function to separate file.
38312         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38313         * modules/acl (Files): Add lib/copy-acl.c.
38314         (Makefiles.am): Augment lib_SOURCES.
38315
38316 2008-05-22  Bruno Haible  <bruno@clisp.org>
38317
38318         * modules/copy-file-tests: New file.
38319         * tests/test-copy-file.sh: New file.
38320         * tests/test-copy-file.c: New file.
38321         * tests/test-copy-file-sameacls.c: New file.
38322
38323 2008-05-22  Eric Blake  <ebb9@byu.net>
38324
38325         Avoid gcc warning.
38326         * tests/test-memcmp.c (main): Pass NULL indirectly.
38327
38328 2008-05-21  Bruno Haible  <bruno@clisp.org>
38329
38330         Add reference doc about ACLs.
38331         * doc/acl-resources.txt: New file.
38332         * doc/acl-cygwin.txt: New file.
38333
38334 2008-05-21  Bruno Haible  <bruno@clisp.org>
38335
38336         Avoid one more warning from gcc.
38337         * lib/vasnprintf.c (IF_LINT): Update comments.
38338         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38339
38340 2008-05-21  Jim Meyering  <meyering@redhat.com>
38341
38342         avoid a warning from gcc
38343         * lib/vasnprintf.c (IF_LINT): Define.
38344         (scale10_round_decimal_long_double):
38345         Use it to avoid a "may be used uninitialized" warning.
38346         (scale10_round_decimal_double): Likewise.
38347
38348 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38349
38350         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38351         declared.
38352
38353 2008-05-20  Bruno Haible  <bruno@clisp.org>
38354
38355         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38356         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38357
38358 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38359
38360         * modules/memcmp-tests: New file.
38361         * tests/test-memcmp.c: New file.
38362
38363 2008-05-19  Bruno Haible  <bruno@clisp.org>
38364
38365         * modules/propername (Notice, configure.ac): Put quoted "..." into
38366         --keyword option.
38367         * lib/propername.h: Update comments accordingly.
38368         Reported by Eric Blake.
38369
38370 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38371
38372         * modules/getpass-gnu (Depends-on): Add fseeko.
38373
38374 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38375
38376         * modules/base64-tests: New file.
38377
38378 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38379
38380         * lib/base64.c (base64_decode_ctx): If a decode context structure
38381         was passed in use it to ignore newlines.  If a context structure
38382         was _not_ passed in, continue to treat newlines as garbage (this
38383         is the historical behavior).  Formerly base64_decode.
38384         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38385         takes a decode context structure.
38386         * lib/base64.h (base64_decode): Macro for four-argument calls.
38387         (base64_decode_alloc): Likewise.
38388         * lib/base64.c (base64_decode_ctx): If a decode context structure
38389         was passed in use it to ignore newlines.  If a context structure
38390         was _not_ passed in, continue to treat newlines as garbage (this
38391         is the historical behavior).  Formerly base64_decode.
38392         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38393         takes a decode context structure.
38394         * lib/base64.h (base64_decode): Macro for four-argument calls.
38395         (base64_decode_alloc): Likewise.
38396
38397 2008-05-19  Jim Meyering  <meyering@redhat.com>
38398
38399         avoid a warning from gcc
38400         * lib/trim.c (IF_LINT): Define.
38401         (trim2): Use it to avoid a "may be used uninitialized" warning.
38402
38403         Fix doc typo.
38404         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38405
38406 2008-05-19  Bruno Haible  <bruno@clisp.org>
38407
38408         * doc/glibc-functions/getpass.texi: Document limits of other
38409         implementations.
38410
38411 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38412             Bruno Haible <bruno@clisp.org>
38413
38414         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38415
38416 2008-05-18  Bruno Haible  <bruno@clisp.org>
38417
38418         * modules/propername: New file, from GNU gettext.
38419         * lib/propername.h: New file, from GNU gettext.
38420         * lib/propername.c: New file, from GNU gettext.
38421         * MODULES.html.sh (Internationalization functions): Add propername.
38422
38423 2008-05-16  Jim Meyering  <meyering@redhat.com>
38424             Bruno Haible  <bruno@clisp.org>
38425
38426         Avoid some warnings from "gcc -Wshadow".
38427         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38428
38429 2008-05-15  Eric Blake  <ebb9@byu.net>
38430
38431         Extend previous patch to cygwin 1.7.0.
38432         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38433         fast implementation in cygwin >= 1.7.0.
38434         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38435         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38436
38437 2008-05-15  Bruno Haible  <bruno@clisp.org>
38438
38439         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38440         implementation in glibc >= 2.9.
38441         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38443
38444 2008-05-15  Bruno Haible  <bruno@clisp.org>
38445
38446         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38447         (Unicode string functions): Add unilbrk/*.
38448         Reported by Karl Berry.
38449
38450 2008-05-15  Eric Blake  <ebb9@byu.net>
38451
38452         Fix violation of <stdbool.h> replacement in regex.
38453         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38454         * lib/regexec.c (re_search_internal): Likewise.
38455         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38456
38457 2008-05-15  Jim Meyering  <meyering@redhat.com>
38458
38459         avoid distracting test output when git or cvs is not found
38460         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38461         * tests/test-vc-list-files-git.sh: Likewise.
38462
38463 2008-05-15  Eric Blake  <ebb9@byu.net>
38464
38465         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38466         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38467         glibc version.
38468         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38469         * doc/posix-functions/strstr.texi (strstr): Likewise.
38470         * lib/str-two-way.h (MAX): Sychronize with glibc.
38471
38472 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38473
38474         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38475         opr.ctx_type.
38476         (calc_first): Initialize constraint field.
38477         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38478         Fix grammar.
38479         (duplicate_node): Merge constraint field for all node types.
38480         (calc_eclosure_iter): Look at constraint field for all node types.
38481         * lib/regex_internal.c (create_cd_newstate): Don't look at
38482         opr.ctx_type.
38483
38484 2008-05-14  Bruno Haible  <bruno@clisp.org>
38485
38486         Help GCC to do better code generation.
38487         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38488         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38489         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38490         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38491         Declare with attribute 'malloc' if supported.
38492
38493 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38494
38495         use "echo STR|wc -c" rather than unportable "expr length STR"
38496         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38497         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38498
38499 2008-05-14  Jim Meyering  <meyering@redhat.com>
38500
38501         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38502         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38503         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38504         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38505         via Collin Lasse.
38506
38507 2008-05-14  Eric Blake  <ebb9@byu.net>
38508
38509         Avoid quadratic growth in gl_LIBSOURCES.
38510         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38511         Suggested by Bruno Haible.
38512
38513         Test xmemdup0.
38514         * modules/xmemdup0-tests: New file.
38515         * tests/test-xmemdup0.c: Likewise.
38516
38517 2008-05-13  Eric Blake  <ebb9@byu.net>
38518
38519         Split xmemdup0 into its own module.
38520         * modules/xmemdup0: New file.
38521         * lib/xmemdup0.h: Likewise.
38522         * lib/xmemdup0.c: Likewise.
38523         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38524         * lib/xalloc.h (xmemdup0): Remove.
38525         * lib/xmalloc.c (xmemdup0): Likewise.
38526
38527 2008-05-13  Eric Blake  <ebb9@byu.net>
38528             Bruno Haible  <bruno@clisp.org>
38529
38530         Reduce number of forks required during autoconf.
38531         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38532         and gl_LIBSOURCES_DIR.
38533         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38534         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38535         m4_syscmd per file.
38536         <m4_foreach_w>: Move...
38537         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38538
38539 2008-05-13  Eric Blake  <ebb9@byu.net>
38540
38541         * gnulib-tool: Fix various comment typos.
38542
38543 2008-05-12  Bruno Haible  <bruno@clisp.org>
38544
38545         Tailor the linebreaking algorithm.
38546         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38547
38548 2008-05-12  Bruno Haible  <bruno@clisp.org>
38549
38550         Update to Unicode 5.0.0.
38551         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38552         LBP_JV, LBP_JT. Redistribute values.
38553         (unilbrk_table): Change size.
38554         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38555         Unicode TR#14 rev. 22.
38556         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38557         LBP_JV, LBP_JT. Redistribute values.
38558         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38559         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38560         Update.
38561         * lib/unilbrk/lbrkprop1.h: Regenerated.
38562         * lib/unilbrk/lbrkprop2.h: Regenerated.
38563         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38564         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38565         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38566         Likewise.
38567         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38568         Likewise.
38569         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38570         result.
38571         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38572         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38573         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38574         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38575         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38576         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38577
38578 2008-05-11  Bruno Haible  <bruno@clisp.org>
38579
38580         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38581
38582 2008-05-11  Bruno Haible  <bruno@clisp.org>
38583
38584         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38585         * modules/unilbrk/gen-lbrk: New file.
38586
38587 2008-05-11  Bruno Haible  <bruno@clisp.org>
38588
38589         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38590         * m4/sha512.m4 (gl_SHA512): Likewise.
38591
38592 2008-05-11  Jim Meyering  <meyering@redhat.com>
38593
38594         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38595         * modules/crypto/sha256: New file.
38596         * modules/crypto/sha512: Likewise.
38597         * lib/sha256.c: Likewise.
38598         * lib/sha256.h: Likewise.
38599         * lib/sha512.c: Likewise.
38600         * lib/sha512.h: Likewise.
38601         * lib/u64.h: Likewise.
38602         * m4/sha256.m4: Likewise.
38603         * m4/sha512.m4: Likewise.
38604         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38605
38606 2008-05-10  Bruno Haible  <bruno@clisp.org>
38607
38608         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38609         (Input/Output <stdio.h>): Add xprintf.
38610         (Signal handling <signal.h>): Add strsignal.
38611         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38612         (Core language properties): Add func.
38613         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38614         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38615         strings.
38616         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38617         (Input/output): New section.
38618         (File system functions): Add openat-die, stat-macros.
38619         (Networking functions): Add sockets.
38620         (Unicode string functions): Add unictype/*.
38621         (Support for building libraries and executables): Add gperf.
38622         (Support for building documentation): Add agpl-3.0.
38623         (Misc): Add nocrash.
38624
38625 2008-05-10  Bruno Haible  <bruno@clisp.org>
38626
38627         * modules/unictype/gen-ctype: New file.
38628
38629 2008-05-10  Jim Meyering  <meyering@redhat.com>
38630
38631         Make chdir-safer.c more efficient on a system with no symlinks.
38632         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38633         also if ELOOP is zero.  Suggested by Bruno Haible.
38634
38635         Make chdir-safer.c slightly safer.
38636         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38637         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38638
38639         Avoid compile failure on systems without ELOOP (like mingw).
38640         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38641         Reported by Bruno Haible.
38642
38643 2008-05-10  Bruno Haible  <bruno@clisp.org>
38644
38645         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38646         (is_utf8_encoding): Use a case-insensitive comparison.
38647         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38648         streq.
38649
38650 2008-05-10  Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38653         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38654         * lib/unilbrk/ulc-common.h (iconv_string_length,
38655         iconv_string_keeping_offsets): Remove declarations.
38656         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38657         Don't include <iconv.h>, streq.h, xsize.h.
38658         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38659         conversion.
38660         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38661         <iconv.h>, streq.h, xsize.h.
38662         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38663         conversion.
38664         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38665         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38666         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38667         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38668
38669 2008-05-10  Bruno Haible  <bruno@clisp.org>
38670
38671         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38672         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38673
38674         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38675         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38676
38677         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38678         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38679
38680         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38681         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38682
38683         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38684         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38685
38686         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38687         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38688
38689         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38690         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38691
38692         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38693         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38694
38695 2008-05-10  Bruno Haible  <bruno@clisp.org>
38696
38697         Split up 'linebreak' module.
38698         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38699         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38700         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38701         modifications.
38702         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38703         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38704         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38705         lib/linebreak.c.
38706         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38707         lib/linebreak.c.
38708         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38709         lib/linebreak.c.
38710         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38711         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38712         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38713         lib/linebreak.c.
38714         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38715         lib/linebreak.c.
38716         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38717         lib/linebreak.c.
38718         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38719         lib/linebreak.c.
38720         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38721         lib/linebreak.c.
38722         * modules/unilbrk/base: New file.
38723         * modules/unilbrk/tables: New file.
38724         * modules/unilbrk/u8-possible-linebreaks: New file.
38725         * modules/unilbrk/u16-possible-linebreaks: New file.
38726         * modules/unilbrk/u32-possible-linebreaks: New file.
38727         * modules/unilbrk/ulc-common: New file.
38728         * modules/unilbrk/ulc-possible-linebreaks: New file.
38729         * modules/unilbrk/u8-width-linebreaks: New file.
38730         * modules/unilbrk/u16-width-linebreaks: New file.
38731         * modules/unilbrk/u32-width-linebreaks: New file.
38732         * modules/unilbrk/ulc-width-linebreaks: New file.
38733         * lib/linebreak.h: Remove file.
38734         * lib/linebreak.c: Remove file.
38735         * m4/linebreak.m4: Remove file.
38736         * modules/linebreak: Remove file.
38737         * NEWS: Mention the changes.
38738
38739 2008-05-09  Eric Blake  <ebb9@byu.net>
38740
38741         Add xmemdup0.
38742         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38743         implementation.
38744         * lib/xmalloc.c (xmemdup0): New C implementation.
38745
38746 2008-05-08  Bruno Haible  <bruno@clisp.org>
38747
38748         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38749
38750 2008-05-07  Eric Blake  <ebb9@byu.net>
38751
38752         Support cross-compilation of <wctype.h>.
38753         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38754         AC_CACHE_CHECK.
38755
38756 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38757
38758         * build-aux/vc-list-files: Add support for bzr.
38759
38760 2008-05-03  Jim Meyering  <meyering@redhat.com>
38761
38762         avoid failed assertion with tight malloc
38763         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38764
38765 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38766
38767         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38768         are needed from arpa/inet.h.
38769         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38770         Reported by Bruno Haible.
38771
38772 2008-05-02  Jim Meyering  <meyering@redhat.com>
38773
38774         avoid compilation error on FreeBSD 6
38775         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38776
38777 2008-05-01  Jim Meyering  <meyering@redhat.com>
38778
38779         useless-if-before-free: correct --help's exit status description
38780         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38781         for one or more matches, etc.  Reported by Bruno Haible.
38782
38783         vc-list-files: make the stand-alone gnulib test work
38784         * modules/vc-list-files-tests (configure.ac):
38785         Define and AC_SUBST abs_aux_dir.
38786         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38787         $(abs_top_srcdir) to each script and having each of them
38788         duplicate the work of setting PATH, set PATH here, using
38789         the new variable, abs_aux_dir instead.
38790         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38791         * tests/test-vc-list-files-git.sh: Likewise.
38792         Reported by Bruno Haible.
38793
38794 2008-05-01  Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38797         reallocation. Rename 'done' to 'found_delimiter'.
38798
38799 2008-05-01  Jim Meyering  <meyering@redhat.com>
38800
38801         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38802         * build-aux/vc-list-files: Use `...`, not $(...).
38803
38804 2008-04-30  Jim Meyering  <meyering@redhat.com>
38805
38806         add tests for vc-list-files
38807         * modules/vc-list-files-tests: New module.
38808         * tests/test-vc-list-files-cvs.sh: New file.
38809         * tests/test-vc-list-files-git.sh: New file.
38810
38811         avoid a warning from gcc
38812         * lib/getndelim2.c (IF_LINT): Define.
38813         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38814
38815         vc-list-files: work properly with build-aux/cvsu, too
38816         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38817         to all cvs-based clauses.
38818
38819         vc-list-files: work properly in the CVS+awk case, too
38820         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38821
38822         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38823         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38824         take more than one file argument, so .  Add quotes, just in case $dir
38825         ever contains a shell meta-character.  Prompted by Soren Hansen in
38826         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38827
38828 2008-04-29  Eric Blake  <ebb9@byu.net>
38829
38830         Optimize getndelim2 to use block operations when possible.
38831         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38832         freadseek, and memchr2.
38833         * lib/getndelim2.c (getndelim2): Use them for block reads.
38834
38835 2008-04-29  Bruno Haible  <bruno@clisp.org>
38836
38837         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38838         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38839         * modules/inet_ntop (Depends-on): Add extensions.
38840         * modules/inet_pton (Depends-on): Likewise.
38841         Reported by Simon Josefsson.
38842
38843 2008-04-29  Jim Meyering  <meyering@redhat.com>
38844
38845         When the is more than one match in a block, match all of them.
38846         * build-aux/useless-if-before-free: Iterate through each block
38847         until there are no more matches.
38848
38849         Fix broken useless-if-before-free script.
38850         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38851         the expression to match cast of argument to free-like function.
38852
38853 2008-04-29  Eric Blake  <ebb9@byu.net>
38854
38855         Use new header.
38856         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38857
38858 2008-04-29  Jim Meyering  <meyering@redhat.com>
38859
38860         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38861         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38862         by gnulib to exist and to declare e.g., inet_ntop.
38863         Don't include "inet_ntop.h", now removed.
38864
38865         * m4/arpa_inet_h.m4: Remove trailing blanks.
38866
38867 2008-04-29  Eric Blake  <ebb9@byu.net>
38868
38869         Silence valgrind on safe reads beyond potential array bounds.
38870         * lib/rawmemchr.valgrind: New file.
38871         * lib/strchrnul.valgrind: Likewise.
38872         * modules/rawmemchr (Files): Distribute new file.
38873         * modules/strchrnul (Files): Likewise.
38874         Suggested by Bruno Haible.
38875
38876 2008-04-29  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38879         (inet_ntop, inet_pton): Change portability warning's wording.
38880         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38881         Invoke gl_CHECK_NEXT_HEADERS.
38882         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38883         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38884         set ARPA_INET_H.
38885         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38886         * modules/arpa_inet (Description): No longer only for systems that
38887         lack it.
38888         (Depends-on): Add include_next.
38889         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38890         HAVE_ARPA_INET_H.
38891
38892 2008-04-29  Jim Meyering  <meyering@redhat.com>
38893
38894         * modules/mkdir (License): Re-license as LGPLv2+.
38895
38896 2008-04-29  Bruno Haible  <bruno@clisp.org>
38897
38898         * modules/rawmemchr (Maintainer): Set to Eric.
38899         * modules/strchrnul (Maintainer): Likewise.
38900
38901 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38902
38903         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38904         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38905
38906         * modules/arpa_inet (arpa/inet.h): Use them.
38907
38908 2008-04-28  Eric Blake  <ebb9@byu.net>
38909
38910         Test getndelim2.
38911         * modules/getndelim2-tests: New file.
38912         * tests/test-getndelim2.c: Likewise.
38913         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38914         stream.
38915         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38916
38917         * MODULES.html.sh: Document new module.
38918
38919 2008-04-20  Bruno Haible  <bruno@clisp.org>
38920
38921         * lib/c-stack.c (die): Use raise.
38922         * modules/c-stack (Depends-on): Add raise.
38923
38924 2008-04-28  Bruno Haible  <bruno@clisp.org>
38925
38926         Expect rpmatch to be declared.
38927         * lib/yesno.c (rpmatch): Remove declaration.
38928
38929         Declare rpmatch.
38930         * lib/stdlib.in.h (rpmatch): New declaration.
38931         * lib/rpmatch.c: Include <stdlib.h> first.
38932         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38933         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38935         HAVE_RPMATCH.
38936         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38937         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38938         (Include): Set to <stdlib.h>.
38939         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38940         HAVE_RPMATCH.
38941         * NEWS: Document the change.
38942
38943 2008-04-28  Bruno Haible  <bruno@clisp.org>
38944
38945         Change rpmatch to use nl_langinfo when appropriate.
38946         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38947         (N_): New macro.
38948         (localized_pattern): New function/macro.
38949         (try): Remove match, nomatch arguments. Copy the pattern into safe
38950         memory before caching it.
38951         (rpmatch): Use localized_pattern. Add translator comments.
38952         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38953         Suggested by Eric Blake.
38954         * modules/rpmatch (Depends-on): Add stdbool.
38955
38956 2008-04-28  Eric Blake  <ebb9@byu.net>
38957
38958         Add rawmemchr module, matching glibc.
38959         * modules/string (Makefile.am): New indicator.
38960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38961         * lib/string.in.h (rawmemchr): Declare when appropriate.
38962         * modules/rawmemchr: New file.
38963         * m4/rawmemchr.m4: Likewise.
38964         * lib/rawmemchr.c: Likewise.
38965         * modules/rawmemchr-tests: Likewise.
38966         * tests/test-rawmemchr.c: Likewise.
38967         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38968         module.
38969         * modules/strchrnul (Depends-on): Add rawmemchr.
38970         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38971
38972         Whitespace cleanup.
38973         * tests/test-strchrnul.c: Reindent.
38974         * lib/strchrnul.c: Likewise.
38975
38976         Optimize and test strchrnul.
38977         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38978         * modules/strchrnul-tests: New file.
38979         * tests/test-strchrnul.c: Likewise.
38980
38981         Remove intprops dependency.
38982         * modules/memchr (Depends-on): Remove intprops.
38983         * modules/memrchr (Depends-on): Likewise.
38984         * modules/memchr2 (Depends-on): Likewise.
38985         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38986         * lib/memrchr.c (__memrchr): Likewise.
38987         * lib/memrchr2.c (memchr2): Likewise.
38988         Reported by Simon Josefsson.
38989
38990 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38991
38992         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38993         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38994
38995 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38996
38997         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38998
38999         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39000
39001         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39002
39003         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39004         declarations.
39005         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39006
39007         * m4/inet_pton.m4: Don't check for header files.
39008
39009         * m4/inet_ntop.m4: Don't check for header files.
39010
39011 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39012
39013         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39014         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39015         trigger for cygwin).
39016         Reported by Bruno Haible  <bruno@clisp.org>.
39017
39018 2008-04-28  Bruno Haible  <bruno@clisp.org>
39019
39020         * doc/posix-functions/strdup.texi: Mention mingw problem.
39021
39022 2008-04-27  Bruno Haible  <bruno@clisp.org>
39023
39024         * modules/stat-time-tests (Depends-on): Add sleep.
39025         * tests/test-stat-time.c (force_unlink): New function.
39026         (cleanup): Use it.
39027         (test_mtime): Remove the ctime related tests.
39028         (test_ctime): New function, containing the ctime related tests.
39029         (main): Call test_ctime, except on native Windows platforms.
39030
39031 2008-04-27  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/rpmatch.c (rpmatch): Add some comments.
39034         Reported by James Youngman <jay@gnu.org>.
39035
39036 2008-04-27  Bruno Haible  <bruno@clisp.org>
39037
39038         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39039         quiet NaNs.
39040
39041 2008-04-27  Bruno Haible  <bruno@clisp.org>
39042
39043         Make test-yesno.sh work on mingw.
39044         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39045         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39046         (main): Set stdin to binary mode.
39047         * modules/yesno-tests (Depends-on): Add binary-io.
39048
39049 2008-04-27  Bruno Haible  <bruno@clisp.org>
39050
39051         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39052         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39053         argument that lie outside the IEEE 854 domain.
39054         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39055         (gl_ISFINITE): Use it.
39056         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39057
39058 2008-04-27  Bruno Haible  <bruno@clisp.org>
39059
39060         Allow local renaming in config.h.
39061         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39062
39063 2008-04-27  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/memchr.c (__memchr): Change type of 'i'.
39066         * lib/memchr2.c (memchr2): Likewise.
39067
39068 2008-04-26  Eric Blake  <ebb9@byu.net>
39069         and Bruno Haible  <bruno@clisp.org>
39070
39071         Optimize and test memrchr.
39072         * modules/memrchr (Depends-on): Add intprops.
39073         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39074         * modules/memrchr-tests: New file.
39075         * tests/test-memrchr.c: New file.
39076
39077 2008-04-26  Bruno Haible  <bruno@clisp.org>
39078
39079         Add tentative support for DragonFly BSD.
39080         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39081         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39082         fp.
39083         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39084         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39085         * lib/fpurge.c (fpurge): Likewise.
39086         * lib/freadable.c (freaadable): Likewise.
39087         * lib/freadahead.c (freadahead): Likewise.
39088         * lib/freading.c (freading): Likewise.
39089         * lib/freadptr.c (freadptr): Likewise.
39090         * lib/freadseek.c (freadptrinc): Likewise.
39091         * lib/fseeko.c (fseeko): Likewise.
39092         * lib/fseterr.c (fseterr): Likewise.
39093         * lib/fwritable.c (fwritable): Likewise.
39094         * lib/fwriting.c (fwriting): Likewise.
39095
39096 2008-04-26  Bruno Haible  <bruno@clisp.org>
39097
39098         * lib/stdio-impl.h: New file.
39099         * lib/fbufmode.c: Include stdio-impl.h.
39100         (fbufmode): Use fp_, remove redundant #defines.
39101         * lib/fflush.c: Include stdio-impl.h.
39102         (clear_ungetc_buffer): Remove redundant #defines.
39103         * lib/fpurge.c: Include stdio-impl.h.
39104         (fpurge): Remove redundant #defines.
39105         * lib/freadable.c: Include stdio-impl.h.
39106         (freadable): Remove redundant #defines.
39107         * lib/freadahead.c: Include stdio-impl.h.
39108         (freadahead): Remove redundant #defines.
39109         * lib/freading.c: Include stdio-impl.h.
39110         (freading): Remove redundant #defines.
39111         * lib/freadptr.c: Include stdio-impl.h.
39112         (freadptr): Remove redundant #defines.
39113         * lib/freadseek.c: Include stdio-impl.h.
39114         (freadptrinc): Remove redundant #defines.
39115         * lib/fseeko.c: Include stdio-impl.h.
39116         (rpl_fseeko): Remove redundant #defines.
39117         * lib/fseterr.c: Include stdio-impl.h.
39118         (fseterr): Remove redundant #defines.
39119         * lib/fwritable.c: Include stdio-impl.h.
39120         (fwritable: Remove redundant #defines.
39121         * lib/fwriting.c: Include stdio-impl.h.
39122         (fwriting): Remove redundant #defines.
39123         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39124         * modules/fflush (Files): Likewise.
39125         * modules/fpurge (Files): Likewise.
39126         * modules/freadable (Files): Likewise.
39127         * modules/freadahead (Files): Likewise.
39128         * modules/freading (Files): Likewise.
39129         * modules/freadptr (Files): Likewise.
39130         * modules/freadseek (Files): Likewise.
39131         * modules/fseeko (Files): Likewise.
39132         * modules/fseterr (Files): Likewise.
39133         * modules/fwritable (Files): Likewise.
39134         * modules/fwriting (Files): Likewise.
39135
39136 2008-04-26  Bruno Haible  <bruno@clisp.org>
39137
39138         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39139         restore_seek_optimization, update_fpos_cache): New functions, extracted
39140         from rpl_fflush.
39141         (rpl_fflush): Use them.
39142         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39143         (gl_REPLACE_FFLUSH): Use it.
39144
39145 2008-04-26  Bruno Haible  <bruno@clisp.org>
39146
39147         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39148         on Solaris.
39149         * tests/test-xstrtoimax.sh: Likewise.
39150         * tests/test-xstrtoumax.sh: Likewise.
39151         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39152
39153 2008-04-26  Bruno Haible  <bruno@clisp.org>
39154
39155         * modules/memchr-tests: New file.
39156         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39157
39158 2008-04-26  Eric Blake  <ebb9@byu.net>
39159             Bruno Haible  <bruno@clisp.org>
39160
39161         * lib/memchr.c: Include intprops.h.
39162         (__memchr): Optimize parallel detection of matching bytes. Rename local
39163         variables. Add explanatory comments.
39164
39165 2008-04-26  Bruno Haible  <bruno@clisp.org>
39166
39167         Fix module 'memchr', broken since 2000-10-28.
39168         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39169
39170 2008-04-26  Bruno Haible  <bruno@clisp.org>
39171
39172         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39173         comments.
39174
39175 2008-04-25  Eric Blake  <ebb9@byu.net>
39176
39177         Use native fstatat on cygwin 1.7.0.
39178         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39179         first.
39180
39181 2008-04-23  Eric Blake  <ebb9@byu.net>
39182
39183         Improve memchr2 performance.
39184         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39185         NUL bytes.
39186         * modules/memchr2 (Depends-on): Use intprops.h.
39187
39188 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39189
39190         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39191         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39192         <blp@cs.stanford.edu>.
39193
39194 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39195
39196         * lib/arpa_inet.in.h: New file.
39197
39198         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39199         (Makefile.am): Sed in substitute header file.
39200
39201         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39202         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39203
39204         * modules/inet_ntop (configure.ac): Use
39205         gl_ARPA_INET_MODULE_INDICATOR.
39206
39207         * modules/inet_pton (configure.ac): Use
39208         gl_ARPA_INET_MODULE_INDICATOR.
39209
39210 2008-04-22  Jim Meyering  <meyering@redhat.com>
39211
39212         * modules/verify (License): Re-license as LGPLv2+.
39213
39214 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39215
39216         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39217         parameter to void* as per POSIX standard (MinGW uses char*).
39218
39219 2008-04-21  Bruno Haible  <bruno@clisp.org>
39220
39221         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39222         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39223         Define to replacements if REPLACE_ISWCNTRL is 1.
39224         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39225         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39226         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39227         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39228         what it fixes.
39229         * doc/posix-functions/iswalpha.texi: Likewise.
39230         * doc/posix-functions/iswblank.texi: Likewise.
39231         * doc/posix-functions/iswcntrl.texi: Likewise.
39232         * doc/posix-functions/iswdigit.texi: Likewise.
39233         * doc/posix-functions/iswgraph.texi: Likewise.
39234         * doc/posix-functions/iswlower.texi: Likewise.
39235         * doc/posix-functions/iswprint.texi: Likewise.
39236         * doc/posix-functions/iswpunct.texi: Likewise.
39237         * doc/posix-functions/iswspace.texi: Likewise.
39238         * doc/posix-functions/iswupper.texi: Likewise.
39239         * doc/posix-functions/iswxdigit.texi: Likewise.
39240         Reported by Alain Guibert.
39241
39242 2008-04-21  Bruno Haible  <bruno@clisp.org>
39243
39244         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39245         Patch by Alain Guibert.
39246
39247 2008-04-21  Bruno Haible  <bruno@clisp.org>
39248
39249         Fix test failures on mingw.
39250         * tests/test-xstrtol.c (print_no_progname): New function.
39251         (main): Install it in error_print_progname hook.
39252         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39253         * tests/test-xstrtoimax.sh: Likewise.
39254         * tests/test-xstrtoumax.sh: Likewise.
39255
39256 2008-04-21  Bruno Haible  <bruno@clisp.org>
39257
39258         Fix test failure on mingw.
39259         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39260
39261 2008-04-21  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39264         Actually assign a value.
39265
39266 2008-04-20  Bruno Haible  <bruno@clisp.org>
39267
39268         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39269         take 2.
39270         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39271         'canonicalize-lgpl' module is also used.
39272         * lib/canonicalize-lgpl.c: Undo last change.
39273         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39274
39275 2008-04-20  Bruno Haible  <bruno@clisp.org>
39276
39277         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39278         config.h. Provide _mkdir based fallback for mingw.
39279         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39280         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39281         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39282         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39283         rather than defining mkdir in config.h.
39284         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39285         (gl_SYS_STAT_H_DEFAULTS): New macro.
39286         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39287         HAVE_IO_H any more.
39288         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39289         HAVE_DECL_MKDIR and HAVE_IO_H.
39290
39291 2008-04-20  Bruno Haible  <bruno@clisp.org>
39292
39293         * lib/isapipe.c: Port to native Windows platforms.
39294
39295 2008-04-20  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39298
39299 2008-04-21  Eric Blake  <ebb9@byu.net>
39300
39301         Work around preprocessors that don't handle UINTMAX_MAX.
39302         * lib/memchr2.c (memchr2): Avoid embedded #if.
39303         Reported by Alain Guibert, fix suggested by Bruno Haible.
39304
39305 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39306
39307         * doc/posix-functions/strftime.texi (strftime): Explain better
39308         Windows incompatibility.  Suggested by Micah Cowan
39309         <micah@cowan.name>.
39310
39311 2008-04-20  Bruno Haible  <bruno@clisp.org>
39312
39313         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39314         unistr/u8-mblen.
39315
39316 2008-04-20  Bruno Haible  <bruno@clisp.org>
39317
39318         Fix test failure on platforms with non-GNU iconv.
39319         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39320         (U_TO_U8): Use it, rather than u16_to_u8.
39321         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39322         units at the end of the input string.
39323         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39324
39325 2008-04-20  Bruno Haible  <bruno@clisp.org>
39326
39327         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39328         when the resulting length is 0.
39329         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39330
39331 2008-04-20  Bruno Haible  <bruno@clisp.org>
39332
39333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39334         works.
39335         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39336
39337 2008-04-20  Bruno Haible  <bruno@clisp.org>
39338
39339         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39340         * modules/tsearch-tests (configure.ac): Test for initstate function.
39341
39342 2008-04-20  Bruno Haible  <bruno@clisp.org>
39343
39344         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39345         for nlink_t if missing.
39346         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39347
39348 2008-04-19  Bruno Haible  <bruno@clisp.org>
39349
39350         Work around snprintf bug on Linux libc5.
39351         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39353         gl_SNPRINTF_SIZE1.
39354         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39355         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39356         that test failed.
39357         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39358         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39359         * modules/snprintf (Files): Add m4/printf.m4.
39360         * modules/vsnprintf (Files): Likewise.
39361         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39362         * doc/posix-functions/vsnprintf.texi: Likewise.
39363
39364 2008-04-19  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39367         from 0.0058 to less than 10^-7.
39368
39369 2008-04-19  Bruno Haible  <bruno@clisp.org>
39370
39371         Fix rounding when a precision is given.
39372         * lib/vasnprintf.c (is_borderline): New function.
39373         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39374         9...9x.
39375         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39376         %e, %g.
39377         * tests/test-vasprintf-posix.c (test_function): Likewise.
39378         * tests/test-snprintf-posix.h (test_function): Likewise.
39379         * tests/test-sprintf-posix.h (test_function): Likewise.
39380         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39381         * tests/test-printf-posix.h (test_function): Likewise.
39382         * tests/test-printf-posix.output: Update.
39383         Reported by John Darrington <john@darrington.wattle.id.au> via
39384         Ben Pfaff <blp@cs.stanford.edu>.
39385
39386 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39387
39388         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39389         Suggested by Bruno Haible <bruno@clisp.org>.
39390
39391 2008-04-17  Bruno Haible  <bruno@clisp.org>
39392
39393         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39394         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39395         implementation.
39396         Patch by Bruce Merry <bmerry@gmail.com>.
39397
39398 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39399
39400         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39401         doesn't work under Windows.
39402
39403 2008-04-16  Bruno Haible  <bruno@clisp.org>
39404
39405         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39406         New macros.
39407         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39408         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39409         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39410         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39411         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39412         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39413         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39414         macros.
39415         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39416         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39417         Northern Sotho, Uighur.
39418
39419 2008-04-16  Bruno Haible  <bruno@clisp.org>
39420
39421         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39422         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39423         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39424         Reported by Daniel Bergström <daniel@octocode.com>.
39425
39426 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39427             Bruno Haible  <bruno@clisp.org>
39428
39429         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39430         function.
39431         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39432         New functions, mostly extracted from gl_locale_name_default.
39433         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39434
39435 2008-04-16  Eric Blake  <ebb9@byu.net>
39436
39437         Adjust strtod detection to catch glibc 2.7 bug.
39438         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39439         Reported by John Gatewood Ham.
39440
39441 2008-04-16  Bruno Haible  <bruno@clisp.org>
39442
39443         Add tentative support for Linux libc5.
39444         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39445         * lib/fpurge.c (fpurge): Likewise.
39446         * lib/freadable.c (freadable): Likewise.
39447         * lib/freadahead.c (freadahead): Likewise.
39448         * lib/freading.c (freading): Likewise.
39449         * lib/freadptr.c (freadptr): Likewise.
39450         * lib/freadseek.c (freadptrinc): Likewise.
39451         * lib/fseeko.c (rpl_fseeko): Likewise.
39452         * lib/fseterr.c (fseterr): Likewise.
39453         * lib/fwritable.c (fwritable): Likewise.
39454         * lib/fwriting.c (fwriting): Likewise.
39455         Reported by Alain Guibert <alguibert+bts@free.fr>.
39456
39457 2008-04-15  Bruno Haible  <bruno@clisp.org>
39458
39459         * modules/mathl (configure.ac): Define module indicator.
39460
39461 2008-04-15  Bruno Haible  <bruno@clisp.org>
39462
39463         * lib/logl.c (logl): Remove unused variables.
39464
39465 2008-04-15  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39468         fails.
39469
39470 2008-04-15  Bruno Haible  <bruno@clisp.org>
39471
39472         * lib/trim.c (trim2): Fix argument of isspace() macro.
39473
39474 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39475
39476         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39477         to 0.
39478         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39479
39480 2008-04-14  Bruno Haible  <bruno@clisp.org>
39481
39482         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39483         AC_LANG_PROGRAM argument.
39484         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39485         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39487         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39488         * m4/math_h.m4 (gl_MATH_H): Likewise.
39489         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39490         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39491         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39492         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39493         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39494         * m4/regex.m4 (gl_REGEX): Likewise.
39495         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39496         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39498         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39500         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39502         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39503
39504 2008-04-14  Jim Meyering  <meyering@redhat.com>
39505
39506         test-strtod: fix typos: s/abs/fabs/
39507         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39508
39509 2008-04-13  Bruno Haible  <bruno@clisp.org>
39510
39511         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39512         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39513         module is also used and while not building the reloc-wrapper.
39514
39515 2008-04-13  Bruno Haible  <bruno@clisp.org>
39516
39517         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39518
39519 2008-04-13  Bruno Haible  <bruno@clisp.org>
39520
39521         Fix AIX compilation failure introduced on 2008-04-02.
39522         * tests/test-frexp.c (exp): Undefine before redefining.
39523         * tests/test-frexpl.c (exp): Likewise.
39524
39525 2008-04-13  Bruno Haible  <bruno@clisp.org>
39526
39527         Work around a HP-UX stdio bug.
39528         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39529         * tests/test-ftello.c (main): Likewise.
39530         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39531         * doc/posix-functions/ftello.texi: Likewise.
39532
39533 2008-04-13  Bruno Haible  <bruno@clisp.org>
39534
39535         Make test-signbit pass on HP-UX/hppa.
39536         * tests/test-signbit.c (minus_zerol): New variable.
39537         (test_signbitl): Use it.
39538
39539 2008-04-13  Bruno Haible  <bruno@clisp.org>
39540
39541         Make truncl work on OSF/1 4.0.
39542         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39543         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39544         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39546         HAVE_DECL_TRUNCL.
39547         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39548         HAVE_DECL_TRUNCL.
39549         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39550
39551 2008-04-13  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39554
39555 2008-04-13  Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39558         expression, so as to avoid HP-UX 11 cc compiler bug.
39559
39560 2008-04-13  Bruno Haible  <bruno@clisp.org>
39561
39562         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39563
39564 2008-04-13  Bruno Haible  <bruno@clisp.org>
39565
39566         * lib/git-merge-changelog.c: Remove empty declaration outside of
39567         functions.
39568
39569 2008-04-13  Bruno Haible  <bruno@clisp.org>
39570
39571         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39572
39573 2008-04-13  Bruno Haible  <bruno@clisp.org>
39574
39575         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39576         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39577         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39578         also if it exists but lacks definitions of the SHUT_* macros.
39579         * modules/sys_socket (Description): Update.
39580         Reported by Elbert Pol <e.pol@chello.nl>.
39581
39582 2008-04-13  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/localcharset.c (OS2): Don't redefine if already defined.
39585         Reported by Elbert Pol <e.pol@chello.nl>.
39586
39587 2008-04-13  Bruno Haible  <bruno@clisp.org>
39588
39589         * lib/binary-io.h [__EMX__]: Include <io.h>.
39590         Reported by Elbert Pol <e.pol@chello.nl>.
39591
39592 2008-04-12  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/fpucw.h: Enable the definitions also for x86_64.
39595         Needed for NetBSD/x86_64.
39596         Reported by Thomas Klausner <tk@giga.or.at>.
39597
39598 2008-04-12  Bruno Haible  <bruno@clisp.org>
39599
39600         * tests/test-strtod.c: Include isnand.h.
39601         (main): Use isnand instead of isnan.
39602         Reported by Jim Meyering.
39603
39604 2008-04-12  Bruno Haible  <bruno@clisp.org>
39605
39606         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39607         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39608
39609 2008-04-12  Jim Meyering  <meyering@redhat.com>
39610
39611         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39612
39613 2008-04-12  Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39616         Reported by Elbert Pol <e.pol@chello.nl>.
39617
39618 2008-04-12  Eric Blake  <ebb9@byu.net>
39619
39620         Work around Solaris 10 math.h bug.
39621         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39622         (gl_MATH_H_DEFAULTS): Set up default.
39623         * modules/math (Makefile.am): Replace new indicators.
39624         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39625         * tests/test-math.c (main): Test this.
39626         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39627         * doc/posix-headers/math.texi (math.h): Mention bug.
39628         Reported by Nelson H. F. Beebe and Jim Meyering.
39629
39630 2008-04-11  Bruno Haible  <bruno@clisp.org>
39631
39632         Adapt to future versions of Apple GCC.
39633         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39634         Reported by Peter O'Gorman <peter@pogma.com>.
39635
39636 2008-04-11  Bruno Haible  <bruno@clisp.org>
39637
39638         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39639
39640 2008-04-11  Bruno Haible  <bruno@clisp.org>
39641
39642         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39643
39644         * modules/getaddrinfo-tests (Makefile.am): Define
39645         test_getaddrinfo_LDADD.
39646
39647 2008-04-11  Bruno Haible  <bruno@clisp.org>
39648
39649         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39650         (init): Fix syntax error.
39651         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39652         is declared.
39653
39654 2008-04-11  Bruno Haible  <bruno@clisp.org>
39655
39656         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39657         * modules/glob (Depends-on): Add stdbool.
39658
39659 2008-04-11  Bruno Haible  <bruno@clisp.org>
39660
39661         * lib/trim.c: Include <string.h>.
39662
39663 2008-04-11  Eric Blake  <ebb9@byu.net>
39664
39665         Avoid compile failure on OS/2.
39666         * lib/regex_internal.h (internal_function): Disable optimization
39667         on OS/2 (__EMX__), where it caused compiler error.
39668         Reported by Elbert Pol.
39669
39670 2008-04-11  Bruno Haible  <bruno@clisp.org>
39671
39672         Flush the standard error stream before aborting. Needed on mingw.
39673         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39674         * tests/test-array_list.c (ASSERT): Likewise.
39675         * tests/test-array_oset.c (ASSERT): Likewise.
39676         * tests/test-avltree_list.c (ASSERT): Likewise.
39677         * tests/test-avltree_oset.c (ASSERT): Likewise.
39678         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39679         * tests/test-binary-io.c (ASSERT): Likewise.
39680         * tests/test-byteswap.c (ASSERT): Likewise.
39681         * tests/test-c-ctype.c (ASSERT): Likewise.
39682         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39683         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39684         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39685         * tests/test-c-strstr.c (ASSERT): Likewise.
39686         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39687         * tests/test-canonicalize.c (ASSERT): Likewise.
39688         * tests/test-carray_list.c (ASSERT): Likewise.
39689         * tests/test-ceilf1.c (ASSERT): Likewise.
39690         * tests/test-ceilf2.c (ASSERT): Likewise.
39691         * tests/test-ceill.c (ASSERT): Likewise.
39692         * tests/test-count-one-bits.c (ASSERT): Likewise.
39693         * tests/test-fbufmode.c (ASSERT): Likewise.
39694         * tests/test-fflush2.c (ASSERT): Likewise.
39695         * tests/test-floorf1.c (ASSERT): Likewise.
39696         * tests/test-floorf2.c (ASSERT): Likewise.
39697         * tests/test-floorl.c (ASSERT): Likewise.
39698         * tests/test-fopen.c (ASSERT): Likewise.
39699         * tests/test-fpending.c (ASSERT): Likewise.
39700         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39701         * tests/test-fpurge.c (ASSERT): Likewise.
39702         * tests/test-freadable.c (ASSERT): Likewise.
39703         * tests/test-freadahead.c (ASSERT): Likewise.
39704         * tests/test-freading.c (ASSERT): Likewise.
39705         * tests/test-freadptr.c (ASSERT): Likewise.
39706         * tests/test-freadptr2.c (ASSERT): Likewise.
39707         * tests/test-freadseek.c (ASSERT): Likewise.
39708         * tests/test-freopen.c (ASSERT): Likewise.
39709         * tests/test-frexp.c (ASSERT): Likewise.
39710         * tests/test-frexpl.c (ASSERT): Likewise.
39711         * tests/test-fseek.c (ASSERT): Likewise.
39712         * tests/test-fseeko.c (ASSERT): Likewise.
39713         * tests/test-fstrcmp.c (ASSERT): Likewise.
39714         * tests/test-ftell.c (ASSERT): Likewise.
39715         * tests/test-ftello.c (ASSERT): Likewise.
39716         * tests/test-func.c (ASSERT): Likewise.
39717         * tests/test-fwritable.c (ASSERT): Likewise.
39718         * tests/test-fwriting.c (ASSERT): Likewise.
39719         * tests/test-getdelim.c (ASSERT): Likewise.
39720         * tests/test-getline.c (ASSERT): Likewise.
39721         * tests/test-i-ring.c (ASSERT): Likewise.
39722         * tests/test-iconv-utf.c (ASSERT): Likewise.
39723         * tests/test-iconv.c (ASSERT): Likewise.
39724         * tests/test-isfinite.c (ASSERT): Likewise.
39725         * tests/test-isnand.c (ASSERT): Likewise.
39726         * tests/test-isnanf.c (ASSERT): Likewise.
39727         * tests/test-isnanl.h (ASSERT): Likewise.
39728         * tests/test-ldexpl.c (ASSERT): Likewise.
39729         * tests/test-linked_list.c (ASSERT): Likewise.
39730         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39731         * tests/test-localename.c (ASSERT): Likewise.
39732         * tests/test-lseek.c (ASSERT): Likewise.
39733         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39734         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39735         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39736         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39737         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39738         * tests/test-mbschr.c (ASSERT): Likewise.
39739         * tests/test-mbscspn.c (ASSERT): Likewise.
39740         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39741         * tests/test-mbspbrk.c (ASSERT): Likewise.
39742         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39743         * tests/test-mbsrchr.c (ASSERT): Likewise.
39744         * tests/test-mbsspn.c (ASSERT): Likewise.
39745         * tests/test-mbsstr1.c (ASSERT): Likewise.
39746         * tests/test-mbsstr2.c (ASSERT): Likewise.
39747         * tests/test-mbsstr3.c (ASSERT): Likewise.
39748         * tests/test-memchr2.c (ASSERT): Likewise.
39749         * tests/test-memmem.c (ASSERT): Likewise.
39750         * tests/test-open.c (ASSERT): Likewise.
39751         * tests/test-printf-frexp.c (ASSERT): Likewise.
39752         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39753         * tests/test-printf-posix.c (ASSERT): Likewise.
39754         * tests/test-quotearg.c (ASSERT): Likewise.
39755         * tests/test-rbtree_list.c (ASSERT): Likewise.
39756         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39757         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39758         * tests/test-round1.c (ASSERT): Likewise.
39759         * tests/test-roundf1.c (ASSERT): Likewise.
39760         * tests/test-roundl.c (ASSERT): Likewise.
39761         * tests/test-signbit.c (ASSERT): Likewise.
39762         * tests/test-sleep.c (ASSERT): Likewise.
39763         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39764         * tests/test-snprintf.c (ASSERT): Likewise.
39765         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39766         * tests/test-stat-time.c (ASSERT): Likewise.
39767         * tests/test-strcasestr.c (ASSERT): Likewise.
39768         * tests/test-strerror.c (ASSERT): Likewise.
39769         * tests/test-striconv.c (ASSERT): Likewise.
39770         * tests/test-striconveh.c (ASSERT): Likewise.
39771         * tests/test-striconveha.c (ASSERT): Likewise.
39772         * tests/test-strsignal.c (ASSERT): Likewise.
39773         * tests/test-strstr.c (ASSERT): Likewise.
39774         * tests/test-strtod.c (ASSERT): Likewise.
39775         * tests/test-trunc1.c (ASSERT): Likewise.
39776         * tests/test-trunc2.c (ASSERT): Likewise.
39777         * tests/test-truncf1.c (ASSERT): Likewise.
39778         * tests/test-truncf2.c (ASSERT): Likewise.
39779         * tests/test-truncl.c (ASSERT): Likewise.
39780         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39781         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39782         * tests/test-vasnprintf.c (ASSERT): Likewise.
39783         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39784         * tests/test-vasprintf.c (ASSERT): Likewise.
39785         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39786         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39787         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39788         * tests/test-vsnprintf.c (ASSERT): Likewise.
39789         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39790         * tests/test-wcwidth.c (ASSERT): Likewise.
39791         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39792         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39793         * tests/test-xvasprintf.c (ASSERT): Likewise.
39794         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39795         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39796         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39797         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39798         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39799         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39800         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39801         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39802         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39803         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39804         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39805         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39806         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39807         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39808         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39809         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39810         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39811         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39812         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39813         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39814         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39815         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39816         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39817         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39818         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39819         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39820         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39821         * tests/unictype/test-combining.c (ASSERT): Likewise.
39822         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39823         * tests/unictype/test-digit.c (ASSERT): Likewise.
39824         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39825         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39826         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39827         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39828         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39829         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39830         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39831         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39832         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39833         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39834         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39835         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39836         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39837         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39838         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39839         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39840         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39841         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39842         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39843         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39844         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39845         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39846         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39847         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39848         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39849         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39850         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39851         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39852         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39853         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39854         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39855         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39856         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39857         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39858         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39859         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39860         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39861         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39862         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39863         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39864         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39865         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39866         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39867         Reported by Eric Blake.
39868
39869 2008-04-11  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/wchar.in.h: Tweak comment.
39872
39873 2008-04-11  Bruno Haible  <bruno@clisp.org>
39874
39875         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39876         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39877         gl_COMMON.
39878         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39879
39880 2008-04-11  Bruno Haible  <bruno@clisp.org>
39881
39882         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39883
39884 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39885
39886         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39887         of attempting to use non-existing /dev/*random.  Based on patch
39888         from Adam Strzelecki <ono@java.pl> in
39889         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39890
39891 2008-04-08  Bruno Haible  <bruno@clisp.org>
39892
39893         Add tentative support for emx+gcc.
39894         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39895         * lib/fpurge.c (fpurge): Likewise.
39896         * lib/freadable.c (freadable): Likewise.
39897         * lib/freadahead.c (freadahead): Likewise.
39898         * lib/freading.c (freading): Likewise.
39899         * lib/freadptr.c (freadptr): Likewise.
39900         * lib/freadseek.c (freadptrinc): Likewise.
39901         * lib/fseeko.c (rpl_fseeko): Likewise.
39902         * lib/fseterr.c (fseterr): Likewise.
39903         * lib/fwritable.c (fwritable): Likewise.
39904         * lib/fwriting.c (fwriting): Likewise.
39905         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39906
39907 2008-04-09  Eric Blake  <ebb9@byu.net>
39908
39909         Avoid some autoconf warnings.
39910         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39911         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39912         * m4/afs.m4 (gl_AFS): Likewise.
39913         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39914         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39915         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39916         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39917         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39918         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39919         (AC_CHECK_DECLS_ONCE): Likewise.
39920         Rename file...
39921         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39922         gnulib-tool requires autoconf 2.59 or better.
39923         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39924
39925 2008-04-08  Eric Blake  <ebb9@byu.net>
39926
39927         Use 'git describe --match' if present (added in git 1.5.5).
39928         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39929         if possible.
39930
39931 2008-04-08  Bruno Haible  <bruno@clisp.org>
39932
39933         Add tentative support for OpenServer.
39934         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39935         _ptr, _cnt.
39936         * lib/fpurge.c (fpurge): Likewise.
39937         * lib/freadable.c (freadable): Likewise.
39938         * lib/freadahead.c (freadahead): Likewise.
39939         * lib/freading.c (freading): Likewise.
39940         * lib/freadptr.c (freadptr): Likewise.
39941         * lib/freadseek.c (freadptrinc): Likewise.
39942         * lib/fseeko.c (rpl_fseeko): Likewise.
39943         * lib/fseterr.c (fseterr): Likewise.
39944         * lib/fwritable.c (fwritable): Likewise.
39945         * lib/fwriting.c (fwriting): Likewise.
39946         Reported by Roger Cornelius <rac@tenzing.org> and
39947         Brian K. White <brian@aljex.com>.
39948
39949 2008-04-06  Jim Meyering  <meyering@redhat.com>
39950
39951         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39952
39953 2008-04-06  Bruno Haible  <bruno@clisp.org>
39954
39955         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39956         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39957         * tests/test-printf-posix.sh: Likewise.
39958         * tests/test-vfprintf-posix.sh: Likewise.
39959         * tests/test-vprintf-posix.sh: Likewise.
39960         * tests/test-xprintf-posix.sh: Likewise.
39961
39962 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39963
39964         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39965         hide error from 'ls', needed on OS/2.
39966         Report by Elbert Pol <elbert.pol@gmail.com>.
39967
39968 2008-04-04  Eric Blake  <ebb9@byu.net>
39969
39970         Make test-fseeko.c failures meaningful.
39971         * tests/test-fseeko.c: Print line number on failure.
39972         * tests/test-fseek.c: Likewise.
39973         Reported by Nelson H. F. Beebe.
39974
39975         Improve strtod bug detection check.
39976         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39977         required for Solaris 10.
39978         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39979
39980 2008-04-04  Bruno Haible  <bruno@clisp.org>
39981
39982         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39983         by m4/setenv.m4.
39984
39985 2008-04-03  Eric Blake  <ebb9@byu.net>
39986
39987         Ensure sane .version contents.
39988         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39989         version string.
39990         * build-aux/git-version-gen: Improve documentation.
39991
39992         Make GNU make output nicer.
39993         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39994         MAKECMDGOALS to enforce message for all command line targets.  Set
39995         srcdir for use in maint.mk.
39996
39997         Another maintainer tweak.
39998         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39999         a target that regenerates version.
40000
40001 2008-04-03  Jim Meyering  <meyering@redhat.com>
40002
40003         vc-list-files: don't cause coreutils "make po-check" failure
40004         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40005
40006 2008-04-03  Eric Blake  <ebb9@byu.net>
40007
40008         Allow VPATH usage of vc-list-files.
40009         * build-aux/vc-list-files (scriptversion): Add timestamp.
40010         (options): Add --help, --version, -C.
40011         (CVS): Support installed cvsu.
40012
40013 2008-04-02  Bruno Haible  <bruno@clisp.org>
40014
40015         Avoid some "statement with no effect" warnings from gcc.
40016         * tests/test-wctype.c (main): Explicitly ignore unused values.
40017         Reported by Jim Meyering.
40018
40019 2008-04-02  Jim Meyering  <meyering@redhat.com>
40020
40021         Avoid some warnings from "gcc -Wshadow".
40022         * tests/test-frexp.c (exp): Define to a different identifier.
40023         * tests/test-frexpl.c (exp): Likewise.
40024
40025 2008-04-03  Jim Meyering  <meyering@redhat.com>
40026
40027         bootstrap: remove dangling *.[ch] symlinks from lib
40028         * build-aux/bootstrap [dangling symlink removal]: Move find's
40029         -depth option to precede all others, to avoid a warning.
40030         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40031
40032 2008-04-02  Bruno Haible  <bruno@clisp.org>
40033
40034         Avoid some warnings from "gcc -Wshadow".
40035         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40036         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40037         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40038         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40039         Reported by Jim Meyering.
40040
40041 2008-04-01  Bruno Haible  <bruno@clisp.org>
40042
40043         Fix test to work on IRIX 6.5 with cc.
40044         * tests/test-math.c (numeric_equal): New function.
40045         (main): Use it.
40046
40047 2008-04-01  Bruno Haible  <bruno@clisp.org>
40048
40049         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40050
40051 2008-04-01  Bruno Haible  <bruno@clisp.org>
40052
40053         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40054         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40055         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40056         (Depends-on): Remove math.
40057
40058         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40059         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40060         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40061         (Depends-on): Remove math.
40062
40063         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40064         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40065         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40066         (Depends-on): Remove math.
40067         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40068         (Depends-on): Remove math.
40069
40070         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40071         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40072         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40073         (Depends-on): Remove math.
40074         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40075         (Depends-on): Remove math.
40076
40077         * tests/test-round1.c: Include nan.h.
40078         (main): Use NaNd instead of NAN.
40079         * modules/round-tests (Files): Add tests/nan.h.
40080
40081         * tests/test-trunc1.c: Include nan.h.
40082         (main): Use NaNd instead of NAN.
40083         * modules/trunc-tests (Files): Add tests/nan.h.
40084
40085         * tests/test-roundf1.c: Include nan.h.
40086         (main): Use NaNf instead of NAN.
40087         * modules/roundf-tests (Files): Add tests/nan.h.
40088
40089         * tests/test-truncf1.c: Include nan.h.
40090         (main): Use NaNf instead of NAN.
40091         * modules/truncf-tests (Files): Add tests/nan.h.
40092
40093         * tests/test-ceilf1.c: Include nan.h.
40094         (main): Use NaNf instead of NAN.
40095         * modules/ceilf-tests (Files): Add tests/nan.h.
40096
40097         * tests/test-floorf1.c: Include nan.h.
40098         (main): Use NaNf instead of NAN.
40099         * modules/floorf-tests (Files): Add tests/nan.h.
40100
40101         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40102         (main): Use NaNf instead of NAN.
40103         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40104
40105         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40106         (main): Use NaNd instead of NAN.
40107         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40108
40109         * tests/test-frexp.c: Include nan.h.
40110         (main): Use NaNd instead of NAN.
40111         * modules/frexp-tests (Files): Add tests/nan.h.
40112
40113         * lib/isnan.c: Don't include <math.h>.
40114         (FUNC): Don't use NAN macro.
40115         * modules/isnand-nolibm (Depends-on): Remove math.
40116         * modules/isnanf-nolibm (Depends-on): Remove math.
40117         * modules/isnanl (Depends-on): Remove math.
40118         * modules/isnanl-nolibm (Depends-on): Remove math.
40119
40120         * tests/nan.h: New file.
40121
40122 2008-04-01  Eric Blake  <ebb9@byu.net>
40123
40124         Fix typos.
40125         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40126         values to be the right type.
40127
40128         For now, cater to gnulib strtod inaccuracies.
40129         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40130         fractional results.  While not as nice from a QoI perspective, it
40131         is a quicker patch than correctly implementing decimal to binary
40132         rounding.
40133
40134 2008-03-31  Eric Blake  <ebb9@byu.net>
40135
40136         Guarantee a definition of NAN.
40137         * lib/math.in.h (NAN): Define if missing.
40138         * tests/test-math.c (main): Test it.
40139         * doc/posix-headers/math.texi (math.h): Document this.
40140         * lib/isnan.c (rpl_isnand): Use it.
40141         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40142         * tests/test-floorf1.c (NaN): Likewise.
40143         * tests/test-frexp.c (NaN): Likewise.
40144         * tests/test-isnand.c (NaN): Likewise.
40145         * tests/test-isnanf.c (NaN): Likewise.
40146         * tests/test-round1.c (NaN): Likewise.
40147         * tests/test-roundf1.c (NaN): Likewise.
40148         * tests/test-snprintf-posix.h (NaN): Likewise.
40149         * tests/test-sprintf-posix.h (NaN): Likewise.
40150         * tests/test-trunc1.c (NaN): Likewise.
40151         * tests/test-truncf1.c (NaN): Likewise.
40152         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40153         * tests/test-vasprintf-posix.c (NaN): Likewise.
40154         * modules/isnand-nolibm (Depends-on): Add math.
40155         * modules/isnanf-nolibm (Depends-on): Likewise.
40156         * modules/isnanl (Depends-on): Likewise.
40157         * modules/isnanl-nolibm (Depends-on): Likewise.
40158         * modules/snprintf-posix-tests (Depends-on): Likewise.
40159         * modules/sprintf-posix-tests (Depends-on): Likewise.
40160         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40161         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40162         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40163         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40164
40165 2008-03-31  Bruno Haible  <bruno@clisp.org>
40166
40167         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40168         * doc/posix-functions/strtod.texi: Likewise.
40169
40170 2008-03-31  Bruno Haible  <bruno@clisp.org>
40171
40172         * tests/test-strtod.c (main): Don't use C99 syntax.
40173
40174 2008-03-31  Bruno Haible  <bruno@clisp.org>
40175
40176         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40177         Reported by Eric Blake.
40178
40179 2008-03-31  Jim Meyering  <meyering@redhat.com>
40180
40181         Don't compare actual signbit return values.
40182         * tests/test-strtod.c (main): Rather, compare only their
40183         zero/non-zero nature.
40184
40185 2008-03-31  Eric Blake  <ebb9@byu.net>
40186
40187         More strtod documentation.
40188         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40189         failures as distinct bugs.
40190
40191 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40192
40193         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40194         Problem reported by Erik Benada in
40195         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40196
40197 2008-03-30  Bruno Haible  <bruno@clisp.org>
40198
40199         * tests/test-strtod.c: Add comments about which assertion fails on which
40200         platform.
40201         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40202
40203 2008-03-30  Eric Blake  <ebb9@byu.net>
40204
40205         Test signbit behavior on zeros.
40206         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40207         (test_signbitd, test_signbitl): Likewise.
40208
40209         More strtod touchups.
40210         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40211         sign of negative underflow, for now.  Use .5, not .1.
40212         * doc/posix-functions/strtod.texi (strtod): Mention these
40213         limitations.
40214         Reported by Jim Meyering.
40215
40216 2008-03-30  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40219         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40220
40221 2008-03-30  Bruno Haible  <bruno@clisp.org>
40222
40223         Avoid failure when attempting to return empty iconv results on some
40224         platforms.
40225         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40226         allocation, don't report ENOMEM when the resulting string is empty.
40227
40228 2008-03-30  Bruno Haible  <bruno@clisp.org>
40229
40230         Fix buffer overrun.
40231         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40232         Don't consider the width for tmp_length. Check count against tmp_length
40233         before doing the padding. Ensure enough allocation during padding.
40234
40235 2008-03-30  Eric Blake  <ebb9@byu.net>
40236
40237         strtod touchups.
40238         * lib/strtod.c (strtod): Avoid compiler warnings.
40239         Reported by Jim Meyering.
40240
40241 2008-03-30  Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40244         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40245         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40246         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40247         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40248         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40249         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40250         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40251
40252         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40253         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40254         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40255         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40256         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40257         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40258         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40259         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40260
40261         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40262         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40263         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40264         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40265         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40266         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40267         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40268         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40269
40270         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40271         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40272
40273         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40274         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40275
40276         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40277         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40278
40279         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40281         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40282
40283         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40285         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40286
40287         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40288         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40289         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40290
40291         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40293         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40294
40295         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40296         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40298         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40299         (Depends-on): Add EOVERFLOW.
40300         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40301         (Depends-on): Add EOVERFLOW.
40302         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40303         (Depends-on): Add EOVERFLOW.
40304         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40305         (Depends-on): Add EOVERFLOW.
40306         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40307         (Depends-on): Add EOVERFLOW.
40308         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40309         (Depends-on): Add EOVERFLOW.
40310         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40311         (Depends-on): Add EOVERFLOW.
40312         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40313         (Depends-on): Add EOVERFLOW.
40314
40315         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40317         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40318
40319         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40321         * modules/snprintf (Depends-on): Add EOVERFLOW.
40322
40323         * lib/poll.c (EOVERFLOW): Remove fallback.
40324         * modules/poll (Depends-on): Add EOVERFLOW.
40325
40326         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40327         * modules/getugroups (Depends-on): Add EOVERFLOW.
40328
40329         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40330         * modules/getdelim (Depends-on): Add EOVERFLOW.
40331
40332         * lib/ftell.c (EOVERFLOW): Remove fallback.
40333         * modules/ftell (Depends-on): Add EOVERFLOW.
40334
40335         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40336         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40337         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40338
40339         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40340
40341         * modules/EOVERFLOW-tests: New file.
40342         * tests/test-EOVERFLOW.c: New file.
40343
40344         * modules/EOVERFLOW: New file.
40345         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40346
40347 2008-03-30  Bruno Haible  <bruno@clisp.org>
40348
40349         Fix bug introduced on 2007-06-10.
40350         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40351         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40352
40353 2008-03-30  Bruno Haible  <bruno@clisp.org>
40354
40355         Improve freadseek's efficiency after ungetc.
40356         * lib/freadseek.c: Include freadahead.h.
40357         (freadptrinc): New function, extracted from freadseek.
40358         (freadseek): Use it in a loop. Use freadahead to determine the number
40359         of loop iterations.
40360         * modules/freadseek (Depends-on): Add freadahead.
40361         (configure.ac): Require AC_C_INLINE.
40362
40363 2008-03-30  Bruno Haible  <bruno@clisp.org>
40364
40365         * lib/freadseek.c (freadseek): Don't ignore the return value of
40366         freadptr.
40367
40368 2008-03-29  Eric Blake  <ebb9@byu.net>
40369
40370         Add hex float support.
40371         * modules/strtod (Depends-on): Add c-ctype.
40372         (Link): Mention POW_LIB.
40373         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40374         whitespace between 'e' and exponent.
40375         * tests/test-strtod.c (main): Enable hex float tests.
40376         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40377         now provides.
40378
40379         Document various strtod bugs, with some fixes.
40380         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40381         "-0x", "inf", "nan", and hex constants.
40382         * doc/posix-functions/atof.texi (atof): Likewise.
40383         * modules/stdlib (Makefile.am): Support strtod.
40384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40385         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40386         detect additional strtod bugs.
40387         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40388         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40389         bool where appropriate.  Parse 'inf' and 'nan'.
40390         * tests/test-strtod.c: New file.
40391         * modules/strtod (Depends-on): Add stdbool, stdlib.
40392         (configure.ac): Turn on module indicator.
40393         * modules/strtod-tests: New module.
40394
40395 2008-03-29  Eric Blake  <ebb9@byu.net>
40396
40397         Fix ftell on mingw.
40398         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40399         * modules/ftell-tests (Depends-on): Add binary-io.
40400         * modules/ftello-tests (Depends-on): Likewise.
40401         * tests/test-ftell.c (main): Enhance test to cover behavior after
40402         ungetc.  Enforce binary mode.
40403         * tests/test-ftello.c (main): Likewise.
40404
40405         Pass test-freadseek on cygwin.
40406         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40407         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40408         ungetc buffer.
40409
40410         * tests/test-fflush2.c (main): Fix typo.
40411
40412 2008-03-29  Bruno Haible  <bruno@clisp.org>
40413
40414         * tests/test-fflush2.c (main): Temporarily disable the contents of
40415         this test.
40416         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40417         Reported by Eric Blake.
40418
40419 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40420
40421         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40422         (GC_SHA224_DIGEST_SIZE): Add.
40423
40424         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40425         (gc_hash_digest_length): Likewise.
40426         (gc_hash_buffer): Likewise.
40427
40428 2008-03-25  Bruno Haible  <bruno@clisp.org>
40429
40430         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40431         detail which gettext release to use.
40432         Reported by Simon Josefsson.
40433
40434 2008-03-26  Jim Meyering  <meyering@redhat.com>
40435
40436         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40437         * modules/gnumakefile (clean-GNUmakefile): Also, use
40438         test ... && ... || : syntax rather than if-then ... fi.
40439
40440         gnumakefile: Don't double-quote-expand $(VPATH) value.
40441         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40442
40443 2008-03-24  Eric Blake  <ebb9@byu.net>
40444
40445         Alter GNUmakefile to install into top directory.
40446         * modules/maintainer-makefile: Split, and add dependency...
40447         * modules/gnumakefile: to this new module.
40448         * build-aux/GNUmakefile: Move...
40449         * top/GNUmakefile: ...here.
40450         * build-aux/maint.mk: Move...
40451         * top/maint.mk: ...here.
40452         * MODULES.html.sh (Support for maintaining...): Document new
40453         module.
40454
40455 2008-03-23  Bruno Haible  <bruno@clisp.org>
40456
40457         * gnulib-tool: New options --vc-files, --no-vc-files.
40458         (func_usage): Document them.
40459         (vc_files): New variable.
40460         (func_import): Consider vc_files.
40461         (func_create_testdir): Set vc_files to empty.
40462         Suggested by Jim Meyering and Karl Berry.
40463
40464 2008-03-23  Bruno Haible  <bruno@clisp.org>
40465
40466         Fix regex compilation error on HP-UX 11.
40467         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40468         * modules/regex (Files): Add m4/mbstate_t.m4.
40469         Reported by Ton Voon <ton.voon@altinity.com>.
40470
40471 2008-03-23  Bruno Haible  <bruno@clisp.org>
40472
40473         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40474
40475 2008-03-23  Eric Blake  <ebb9@byu.net>
40476             Bruno Haible  <bruno@clisp.org>
40477
40478         Install files from top/ in the destination directory.
40479         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40480         augmentation also for the files from top/.
40481         (func_import, func_create_testdir): Rewrite file names:
40482         top/filename -> filename.
40483
40484 2008-03-23  Bruno Haible  <bruno@clisp.org>
40485
40486         Tweak "gnulib --version" output.
40487         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40488
40489 2008-03-23  Bruno Haible  <bruno@clisp.org>
40490
40491         Tweak "gnulib --version" output.
40492         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40493         rather than contents of ChangeLog, when possible.
40494
40495 2008-03-21  Eric Blake  <ebb9@byu.net>
40496
40497         More --version tweaks.
40498         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40499         date of last ChangeLog entry.
40500
40501 2008-03-21  Jim Meyering  <meyering@redhat.com>
40502
40503         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40504
40505 2008-03-20  Eric Blake  <ebb9@byu.net>
40506
40507         VPATH fix.
40508         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40509
40510 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40511
40512         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40513         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40514
40515 2008-03-20  Eric Blake  <ebb9@byu.net>
40516
40517         Sync GNUmakefile with coreutils.
40518         * build-aux/GNUmakefile (have-Makefile): Rename...
40519         (_have-Makefile): ...to this, for namespace consideration.
40520         (GNUmakefile.cfg): Include, if present.
40521         (_autoreconf): Define a default.
40522         (_is-dist-target): New rule for rebuilds to pick up intra-release
40523         version.
40524         (maint-cfg.mk): Rename...
40525         (cfg.mk): ...to this.
40526
40527 2008-03-18  Jim Meyering  <meyering@redhat.com>
40528
40529         New script and module: mktempd
40530         * MODULES.html.sh (maint+release support): Add mktempd.
40531         * build-aux/mktempd: New file.
40532         * modules/mktempd: New file.
40533
40534 2008-03-15  Jim Meyering  <meyering@redhat.com>
40535
40536         Undo last change.
40537         * lib/sha1.c, lib/md5.c: 63 != ~63.
40538         Reported by Andreas Schwab.
40539
40540         sha1.c, md5.c: Hoist a redundant expression.
40541         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40542         "ctx->buflen" only once, before calling *_process_block.
40543         * lib/md5.c (md5_process_bytes): Likewise.
40544
40545 2008-03-14  Eric Blake  <ebb9@byu.net>
40546
40547         Bump copyright year in files generated by gnulib-tool.
40548         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40549         gnulib-tool, rather than hard-coding it.
40550
40551         Fix 'gnulib-tool --version' output to work with git.
40552         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40553         (startup): ...here.
40554         (func_version): Use it to invoke git-version-gen, rather than
40555         relying on CVS keyword expansion.  Modernize wording.
40556         (cvsdatestamp, last_checkin_date, version): Kill unused
40557         variables.
40558
40559 2008-03-12  Jim Meyering  <meyering@redhat.com>
40560
40561         Recognize optional cast of the argument to free.
40562         * build-aux/useless-if-before-free: Update regexps.
40563
40564         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40565
40566 2008-03-11  Bruno Haible  <bruno@clisp.org>
40567
40568         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40569         by a single package.
40570         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40571         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40572         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40573         Reported by Sam Steingold <sds@gnu.org>.
40574
40575 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40576
40577         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40578         repositories.
40579
40580 2008-03-11  Bruno Haible  <bruno@clisp.org>
40581
40582         Avoid conflicts between local macro definitions.
40583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40584         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40585
40586 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40587             Bruno Haible  <bruno@clisp.org>
40588
40589         Make va_copy work with some version of xlc on AIX 5.1.
40590         * lib/stdarg.in.h: New file.
40591         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40592         On AIX, use a <stdarg.h> file substitute.
40593         * modules/stdarg (Files): Add lib/stdarg.in.h.
40594         (Depends-on): Add include_next.
40595         (Makefile.am): Build a stdarg.h substitute if requested.
40596         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40597
40598 2008-03-10  Bruno Haible  <bruno@clisp.org>
40599
40600         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40601         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40602         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40603
40604 2008-03-10  Bruno Haible  <bruno@clisp.org>
40605
40606         * modules/stdlib (Depends-on): Add include_next, remove
40607         absolute-header.
40608
40609 2008-03-09  Bruno Haible  <bruno@clisp.org>
40610
40611         * lib/freadahead.h (freadahead): Document more precisely.
40612         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40613         the sum of both buffer sizes.
40614         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40615         * NEWS: Document the change.
40616
40617 2008-03-09  Bruno Haible  <bruno@clisp.org>
40618
40619         Extend freadptr to return also the buffer size.
40620         * lib/freadptr.h (freadptr): Add sizep argument.
40621         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40622         (freadptr): Add sizep argument. Determine buffer size like freadahead
40623         does.
40624         * tests/test-freadptr.c: Don't include freadahead.h.
40625         (main): Adapt for new calling convention of freadptr.
40626         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40627         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40628         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40629         tests/test-freadptr2.sh.
40630         (Depends): Remove freadahead.
40631         (TESTS): Add test-freadptr2.sh.
40632         (check_PROGRAMS): Add test-freadptr2.
40633
40634 2008-03-09  Bruno Haible  <bruno@clisp.org>
40635
40636         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40637         Report and solution by Simon Josefsson.
40638
40639 2008-03-06  Bruno Haible  <bruno@clisp.org>
40640
40641         Make fflush after ungetc work on BSD platforms.
40642         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40643         * tests/test-fflush2.c: New file.
40644         * tests/test-fflush2.sh: New file.
40645         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40646         tests/test-fflush2.c.
40647         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40648         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40649
40650 2008-03-06  Eric Blake  <ebb9@byu.net>
40651
40652         Likewise for ftello.
40653         * modules/ftello (Dependencies): Add extensions.
40654         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40655
40656 2008-03-06  Bruno Haible  <bruno@clisp.org>
40657
40658         * modules/fseeko (Dependencies): Add extensions.
40659         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40660         Needed on glibc systems.
40661
40662 2008-03-06  Bruno Haible  <bruno@clisp.org>
40663
40664         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40665         email address.
40666         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40667
40668 2008-03-06  Bruno Haible  <bruno@clisp.org>
40669
40670         * users.txt: Add libgnupdf.
40671
40672 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40673
40674         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40675         (Header File Substitutes, Function Substitutes,
40676         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40677         (Build robot for gnulib): Fix typo.
40678
40679 2008-03-06  Bruno Haible  <bruno@clisp.org>
40680
40681         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40682         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40683
40684 2008-03-06  Bruno Haible  <bruno@clisp.org>
40685
40686         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40687         * doc/gnulib.texi: Include it.
40688
40689 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40690
40691         * modules/func (License): Change license to unlimited; there was
40692         no LGPL parts in the module anyway.
40693
40694 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40695
40696         * modules/__func__: Renamed to modules/func.
40697         * modules/__func__-tests: Renamed to modules/func-tests.
40698         * tests/test-__func__.c: Renamed to tests/test-func.c.
40699         * m4/__func__.m4: Renamed to m4/func.m4.
40700         * doc/gnulib.texi (__func__): Section renamed to func.
40701         Suggested by Eric Blake <ebb9@byu.net>.
40702
40703 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40704
40705         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40706         about __func__.  Make example self-contained.  Suggested by Eric
40707         Blake <ebb9@byu.net>.
40708
40709         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40710         Suggested by Eric Blake <ebb9@byu.net>.
40711
40712 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40713
40714         * modules/__func__: New file.
40715         * modules/__func__-tests: New file.
40716         * tests/test-__func__.c: New file.
40717         * m4/__func__.m4: New file.
40718         * doc/gnulib.texi (__func__): Document __func__ module.
40719
40720 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40721
40722         * modules/byteswap (License): Re-license as LGPLv2+.
40723
40724 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40725
40726         * doc/Makefile: Add pdf target.
40727
40728 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40729
40730         * modules/inline (License): Use 'unlimited', since there are only
40731         *.m4 files in this module.
40732
40733 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40734             Bruno Haible  <bruno@clisp.org>
40735
40736         Add support for HP C 7.1 on OpenVMS 8.3.
40737         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40738
40739 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40740
40741         Update VMS specifics.
40742         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40743
40744 2008-03-02  Jim Meyering  <meyering@redhat.com>
40745
40746         Remove the last dependency on the "free" module.
40747         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40748         Reported by Bob Proulx.
40749
40750         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40751
40752         Remove useless "if" tests before free.  Deprecate "free" module.
40753         * doc/posix-functions/free.texi: Mention that this
40754         module is no longer useful.
40755         * modules/free (Notice): Say this module is obsolete.
40756         * modules/readutmp (Depends-on): Remove free.
40757         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40758         * lib/putenv.c (putenv): Likewise.
40759         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40760         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40761         * tests/test-c-strcasestr.c (main): Likewise.
40762         * tests/test-c-strstr.c (main): Likewise.
40763         * tests/test-mbscasestr1.c (main): Likewise.
40764         * tests/test-mbscasestr2.c (main): Likewise.
40765         * tests/test-mbsstr1.c (main): Likewise.
40766         * tests/test-mbsstr2.c (main): Likewise.
40767         * tests/test-memmem.c (main): Likewise.
40768         * tests/test-strcasestr.c (main): Likewise.
40769         * tests/test-striconv.c (main): Likewise.
40770         * tests/test-striconveh.c (main): Likewise.
40771         * tests/test-striconveha.c (main): Likewise.
40772         * tests/test-strstr.c (main): Likewise.
40773
40774         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40775
40776         bootstrap: sync from coreutils again
40777         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40778
40779 2008-03-01  Jim Meyering  <meyering@redhat.com>
40780
40781         bootstrap: sync from coreutils
40782         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40783         also when the target doesn't exist.
40784
40785 2008-03-01  Eric Blake  <ebb9@byu.net>
40786
40787         Fix bugs in last patch.
40788         * lib/memchr2.c (memchr2): Fix typo.
40789         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40790         extension.
40791         Reported by Bruce Korb.
40792
40793         New module 'memchr2'.
40794         * modules/memchr2: New file.
40795         * modules/memchr2-tests: Likewise.
40796         * lib/memchr2.h: Likewise.
40797         * lib/memchr2.c: Likewise, based on memchr.c.
40798         * tests/test-memchr2.c: New test.
40799         * MODULES.html.sh (String handling): Add memchr2.
40800
40801 2008-02-29  Bruno Haible  <bruno@clisp.org>
40802
40803         * modules/freadseek-tests: New file.
40804         * tests/test-freadseek.sh: New file.
40805         * tests/test-freadseek.c: New file.
40806
40807         New module 'freadseek'.
40808         * modules/freadseek: New file.
40809         * lib/freadseek.h: New file.
40810         * lib/freadseek.c: New file.
40811         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40812
40813 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40814
40815         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40816         wydawca.
40817
40818         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40819         program_invocation_name and program_invocation_short_name are
40820         present.
40821
40822 2008-02-28  Bruno Haible  <bruno@clisp.org>
40823
40824         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40825         * tests/test-freadptr.sh: Also test non-seekable stdin.
40826
40827 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40828
40829         * build-aux/bootstrap (source_base, m4_base)
40830         (doc_base, tests_base): New variables.
40831         (gnulib_tool_options): Do not hardcode base directories, use
40832         the above variables instead.
40833
40834 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40835
40836         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40837
40838 2008-02-28  Bruno Haible  <bruno@clisp.org>
40839
40840         * modules/freadptr-tests: New file.
40841         * tests/test-freadptr.sh: New file.
40842         * tests/test-freadptr.c: New file.
40843
40844         New module 'freadptr'.
40845         * modules/freadptr: New file.
40846         * lib/freadptr.h: New file.
40847         * lib/freadptr.c: New file.
40848         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40849
40850 2008-02-26  Karl Berry  <karl@freefriends.org>
40851
40852         Sync from Libtool:
40853         * libltdl/argz.c (argz_add, argz_count): New functions.
40854         * libltdl/argz.in.h: Declare them.
40855         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40856
40857 2008-02-22  Bruno Haible  <bruno@clisp.org>
40858
40859         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40860         is a pointer type.  Needed for HP-UX 10.
40861         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40862         * doc/posix-functions/gmtime_r.texi: Likewise.
40863         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40864
40865 2008-02-24  Bruno Haible  <bruno@clisp.org>
40866
40867         * modules/environ-tests: New file.
40868         * tests/test-environ.c: New file.
40869
40870         New module 'environ'.
40871         * modules/environ: New file.
40872         * lib/unistd.in.h (environ): New declaration.
40873         * m4/environ.m4: New file.
40874         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40875         after use.
40876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40877         HAVE_DECL_ENVIRON.
40878         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40879         HAVE_DECL_ENVIRON.
40880         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40881         wrong claim that 'environ' is missing on some systems.
40882         * modules/execute (Depends-on): Add environ.
40883         * lib/execute.c (environ): Remove fallback declaration.
40884         * modules/pipe (Depends-on): Add environ.
40885         * lib/pipe.c (environ): Remove fallback declaration.
40886         * modules/setenv (Depends-on): Add environ.
40887         * lib/setenv.c (environ): Remove fallback declaration.
40888         * modules/unsetenv (Depends-on): Add environ.
40889         * lib/unsetenv.c (environ): Remove fallback declaration.
40890         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40891         m4/environ.m4.
40892         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40893         (gl_PREREQ_UNSETENV): Likewise.
40894
40895 2008-02-24  Bruno Haible  <bruno@clisp.org>
40896
40897         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40898
40899 2008-02-20  Bob Proulx  <bob@proulx.com>
40900
40901         Enable use of older two part flavor 'git describe'.
40902         * build-aux/git-version-gen: If using the older two part flavor of
40903         git version then recreate the third part now present in the
40904         newer three part flavor of git describe.
40905
40906 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40907
40908         * lib/fts.c (fts_build): Typo correction to comment.
40909
40910 2008-02-17  Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40913         generating no-op conflicts.
40914
40915 2008-02-17  Bruno Haible  <bruno@clisp.org>
40916
40917         Speed up by 10%.
40918         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40919         result_entries, rather than an index-based loop.
40920
40921 2008-02-17  Bruno Haible  <bruno@clisp.org>
40922
40923         Speed up by 25%.
40924         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40925         'hashcode_cached'.
40926         (entry_create): New function.
40927         (entry_hashcode): Use the cached hashcode if possible.
40928         (read_changelog_file, try_split_merged_entry): Use entry_create.
40929
40930 2008-02-17  Bruno Haible  <bruno@clisp.org>
40931
40932         Speed up from O(n^2) to O(n) for long ChangeLog files.
40933         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40934         (read_changelog_file): Change implementation of entries_reversed list
40935         to rbtreehash.
40936         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40937
40938 2008-02-17  Bruno Haible  <bruno@clisp.org>
40939
40940         New option --split-merged-entry.
40941         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40942         (find_paragraph_end, try_split_merged_entry): New functions.
40943         (long_options): Add option --split-merged-entry.
40944         (usage): Document option --split-merged-entry.
40945         (main): Implement option --split-merged-entry.
40946         Reported by Eric Blake.
40947
40948 2008-02-17  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/git-merge-changelog.c: Include c-strstr.h.
40951         (main): Support the "git pull --rebase" situation.
40952         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40953         Reported by Eric Blake.
40954
40955 2008-02-16  Eric Blake  <ebb9@byu.net>
40956
40957         Avoid doubling \ in common case of "c-maybe" quoting style.
40958         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40959         eliding outer quotes.
40960         * lib/quotearg.h: Document this.
40961         * tests/test-quotearg.c (result_strings, inputs, results_g)
40962         (flag_results, locale_results): Test it by adding a new string to
40963         each test group.
40964         (compare_strings): Test new string.
40965
40966 2008-02-13  Eric Blake  <ebb9@byu.net>
40967
40968         Avoid trigraph quoting in default output.
40969         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40970         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40971         unless explicitly requested.
40972         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40973
40974 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40975
40976         Don't rely on signed integer overflowing to negative value.
40977         * lib/getugroups.c (getugroups): Include <limits.h>.
40978         Instead, compare against INT_MAX, and increment only if the test passes.
40979
40980 2008-02-13  Jim Meyering  <meyering@redhat.com>
40981         and Eric Blake  <ebb9@byu.net>
40982
40983         Avoid shadowing warning and compile errors on Linux.
40984         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40985         forwarding macros on Linux.
40986         (dcgettext): Define a stub, for Linux.
40987         (results_g, main): Avoid warnings.
40988
40989 2008-02-12  Eric Blake  <ebb9@byu.net>
40990
40991         Silence warning in last patch.
40992         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40993
40994         Quotearg part 4: add tests, fix c-maybe colon quoting.
40995         * lib/quotearg.h: Improve documentation.
40996         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40997         escapes when adding outer quotes.  When quoting trigraphs, use
40998         valid C notation.  When quoting NUL, omit extra characters if next
40999         character is not digit.  Alter prototype.
41000         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41001         callers.
41002         * modules/quotearg-tests: New module.
41003         * tests/test-quotearg.c: New test.
41004
41005 2008-02-07  Eric Blake  <ebb9@byu.net>
41006
41007         Quotearg part 3: add flag to control outer quote elision.
41008         * lib/quotearg.h (c_maybe_quoting_style): New style.
41009         (enum quoting_flags): Better documentation of flags.
41010         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41011         c-maybe style.
41012         (quotearg_buffer_restyled): Handle new flag to elide outer
41013         quotes.
41014
41015         Quotearg part 2: add flag that can control NUL elision.
41016         * lib/quotearg.h (set_quoting_flags): New prototype.
41017         * lib/quotearg.c (struct quoting_options): Add flag field.
41018         (set_quoting_flags): New function.
41019         (quotearg_buffer_restyled): Add flags parameter.
41020         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41021         (quotearg_n_options): Set the flag, since length cannot be
41022         returned.
41023         (quoting_options_from_style): Default flags correctly.
41024
41025         Quotearg part 1: more wrappers, restore quotearg_char state.
41026         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41027         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41028         (quotearg_colon_mem): New wrappers.
41029         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41030         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41031         functions.
41032         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41033         (quotearg_colon_mem): New functions.
41034
41035 2008-02-11  Bruno Haible  <bruno@clisp.org>
41036
41037         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41038         library in the current directory: it does not work with parallel make.
41039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41040
41041 2008-02-11  Bruno Haible  <bruno@clisp.org>
41042
41043         * .gitattributes: New file.
41044
41045 2008-02-11  Jim Meyering  <meyering@redhat.com>
41046
41047         useless-if-before-free: Fix reversed exit values.
41048         * build-aux/useless-if-before-free: Use correct values
41049         for EXIT_MATCH and EXIT_NO_MATCH.
41050
41051         * build-aux/useless-if-before-free: Close stdout carefully.
41052
41053 2008-02-10  Bruno Haible  <bruno@clisp.org>
41054
41055         New module 'git-merge-changelog'.
41056         * modules/git-merge-changelog: New file.
41057         * lib/git-merge-changelog.c: New file.
41058
41059 2008-02-10  Jim Meyering  <meyering@redhat.com>
41060
41061         useless-if-before-free: New option: --list (-l).
41062
41063         useless-if-before-free: Don't exit immediately upon open failure.
41064         * build-aux/useless-if-before-free: Exit 2 for errors.
41065         Upon failure to open a file, don't exit immediately.
41066         Rather, just warn and continue with any remaining files.
41067
41068 2008-02-10  Bruno Haible  <bruno@clisp.org>
41069
41070         New abstract list operation 'node_set_value'.
41071         * lib/gl_list.h (gl_list_node_set_value): New function.
41072         (struct gl_list_implementation): New field node_set_value.
41073         * lib/gl_list.c (gl_list_node_set_value): New function.
41074         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41075         (gl_array_list_implementation): Update.
41076         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41077         (gl_carray_list_implementation): Update.
41078         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41079         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41080         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41081         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41082         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41083         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41084         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41085         Update.
41086         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41087         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41088         (gl_sublist_list_implementation): Update.
41089
41090 2008-02-10  Bruno Haible  <bruno@clisp.org>
41091
41092         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41093         Needed when ELEMENT is #defined to 'some_type *'.
41094
41095 2008-02-10  Jim Meyering  <meyering@redhat.com>
41096
41097         New script and module: useless-if-before-free
41098         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41099         * build-aux/useless-if-before-free: New file.
41100         * modules/useless-if-before-free: New file.
41101
41102         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41103
41104         xstrtol_error: Fix typo.
41105         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41106         s/exit_failure/exit_status/.
41107
41108 2008-02-09  Jim Meyering  <meyering@redhat.com>
41109
41110         New script and module: gitlog-to-changelog
41111         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41112         * modules/gitlog-to-changelog: New file.
41113         * build-aux/gitlog-to-changelog: New file.
41114
41115 2008-02-08  Jim Meyering  <meyering@redhat.com>
41116
41117         Avoid two "parameter unused" warnings.
41118         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41119         Mark "st" as used.
41120
41121         Use "git COMMAND", not "git-COMMAND".
41122         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41123         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41124         * build-aux/git-version-gen: Use "git status", not "git-status".
41125
41126 2008-02-07  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41129         Avoids a crash on Windows Vista.
41130         Reported by Adam Strzelecki <ono@java.pl> via
41131         Simon Josefsson <simon@josefsson.org>.
41132
41133 2008-02-06  Bruno Haible  <bruno@clisp.org>
41134
41135         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41136         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41137         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41139         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41141         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41142         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41150         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41151         left-adjust flag.
41152         * tests/test-snprintf-posix.h (test_function): Likewise.
41153         * tests/test-sprintf-posix.h (test_function): Likewise.
41154         * tests/test-vasprintf-posix.c (test_function): Likewise.
41155         * doc/posix-functions/fprintf.texi: Update.
41156         * doc/posix-functions/printf.texi: Update.
41157         * doc/posix-functions/snprintf.texi: Update.
41158         * doc/posix-functions/sprintf.texi: Update.
41159         * doc/posix-functions/vfprintf.texi: Update.
41160         * doc/posix-functions/vprintf.texi: Update.
41161         * doc/posix-functions/vsnprintf.texi: Update.
41162         * doc/posix-functions/vsprintf.texi: Update.
41163         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41164
41165 2008-02-06  Bruno Haible  <bruno@clisp.org>
41166
41167         Fix bug introduced on 2008-01-26.
41168         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41169
41170 2008-02-06  Bruno Haible  <bruno@clisp.org>
41171
41172         Fix bug introduced on 2007-06-10.
41173         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41174         !NEED_PRINTF_FLAG_ZERO.
41175
41176 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41177
41178         getloadavg: use libperfstat on AIX5
41179         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41180
41181 2008-02-03  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/diffseq.h: Add comments about required #includes.
41184         Reported by Michael Biggs <gnulib@doubleplum.net>.
41185
41186 2008-02-01  Bruno Haible  <bruno@clisp.org>
41187
41188         * users.txt: Add gnuit.
41189
41190 2008-01-31  Bruno Haible  <bruno@clisp.org>
41191
41192         * lib/md4.c (set_uint32): Mark as inline.
41193         * lib/md5.c (set_uint32): Likewise.
41194         * lib/sha1.c (set_uint32): Likewise.
41195         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41196         * m4/md5.m4 (gl_MD5): Likewise.
41197         * m4/sha1.m4 (gl_SHA1): Likewise.
41198
41199 2008-01-31  Jim Meyering  <meyering@redhat.com>
41200
41201         Use "sizeof VAR", rather than a literal "4".
41202         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41203         * lib/md4.c (md4_read_ctx): Likewise.
41204         * lib/sha1.c (sha1_read_ctx): Likewise.
41205
41206 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41207
41208         * tests/test-sha1.c: New file, based on test-md5.c.
41209
41210         * modules/crypto/sha1-tests: New file.
41211
41212 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41213
41214         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41215
41216 2008-01-31  Jim Meyering  <meyering@redhat.com>
41217
41218         Prefer "sizeof v" over the equivalent "4".
41219         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41220         * lib/md5.c (set_uint32): Likewise.
41221         * lib/sha1.c (set_uint32): Likewise.
41222
41223 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41224
41225         * lib/sha1.c (set_uint32): Mark function as static.
41226
41227 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41228
41229         md2: clarify comments to say that alignment is not required.
41230         * lib/md2.h: Remove warning about alignment in comment.
41231         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41232         never been required.
41233
41234 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41235
41236         md4: adapt alignment constraint fix from sha1.
41237         * lib/md4.c (set_uint32): New function, from sha1.c
41238         (md4_read_ctx): Use it.
41239         (md4_finish_ctx): Doc fix.
41240         * lib/md4.h: Doc fix.
41241
41242 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41243
41244         md5: adapt alignment constraint fix from sha1.
41245         * lib/md5.c (set_uint32): New function, from sha1.c
41246         (md5_read_ctx): Use it.
41247         (md5_finish_ctx): Doc fix.
41248         * lib/md5.h: Doc fix.
41249
41250 2008-01-30  Peter Palfrader  <weasel@debian.org>
41251
41252         sha1: remove the result buffer alignment constraint
41253         * lib/sha1.c (set_uint32): New function.
41254         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41255         constraint.
41256         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41257         * lib/sha1.h: Likewise.
41258
41259 2008-01-30  Andreas Schwab  <schwab@suse.de>
41260             Bruno Haible  <bruno@clisp.org>
41261
41262         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41263         correct definition of LDBL_MIN_EXP.
41264
41265 2008-01-30  Karl Berry  <karl@gnu.org>
41266
41267         * config/srclist-update: try to preserve x bit on updates.
41268         * config/srclistvars.sh: update for karl.
41269
41270 2008-01-29  Jim Meyering  <meyering@redhat.com>
41271
41272         vasnprintf.c: Avoid warning about unused label
41273         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41274         "overflow" label definition and associated code with the
41275         same cpp condition that guards the sole use of that label.
41276
41277 2008-01-26  Bruno Haible  <bruno@clisp.org>
41278
41279         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41280         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41281         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41282         * lib/isnanl-nolibm.h (isnanl): Likewise.
41283         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41284
41285 2008-01-26  Bruno Haible  <bruno@clisp.org>
41286
41287         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41288         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41289
41290 2008-01-26  Bruno Haible  <bruno@clisp.org>
41291
41292         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41293         GCC >= 4.0 built-in.
41294         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41295
41296 2008-01-26  Bruno Haible  <bruno@clisp.org>
41297
41298         Rename isnan, applicable to 'double' only, to isnand.
41299         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41300         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41301         (configure.ac): Update.
41302         (Include): Replace "isnan.h" with "isnand.h".
41303         * m4/isnand.m4: Renamed from m4/isnan.m4.
41304         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41305         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41306         instead of isnan.c.
41307         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41308         instead of HAVE_ISNAN_IN_LIBC.
41309         (isnand): Renamed from isnan.
41310         * lib/isnand.c: New file.
41311         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41312         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41313         (Makefile.am): Update.
41314         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41315         Include isnand.h instead of isnan.h.
41316         (main): Test isnand instead of isnan.
41317         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41318         isnan-nolibm.
41319         * modules/frexp (Depends-on): Likewise.
41320         * modules/frexp-tests (Depends-on): Likewise.
41321         * modules/frexp-nolibm (Depends-on): Likewise.
41322         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41323         * modules/isfinite (Depends-on): Likewise.
41324         * modules/round-tests (Depends-on): Likewise.
41325         * modules/signbit (Depends-on): Likewise.
41326         * modules/signbit-tests (Depends-on): Likewise.
41327         * modules/snprintf-posix (Depends-on): Likewise.
41328         * modules/sprintf-posix (Depends-on): Likewise.
41329         * modules/trunc-tests (Depends-on): Likewise.
41330         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41331         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41332         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41333         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41334         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41335         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41336         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41337         * modules/vasnprintf-posix (Depends-on): Likewise.
41338         * modules/vasprintf-posix (Depends-on): Likewise.
41339         * modules/vfprintf-posix (Depends-on): Likewise.
41340         * modules/vsnprintf-posix (Depends-on): Likewise.
41341         * modules/vsprintf-posix (Depends-on): Likewise.
41342         * lib/frexp.c: Include isnand.h instead of isnan.h.
41343         (ISNAN): Set to isnand instead of isnan.
41344         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41345         (gl_isfinited): Use isnand instead of isnan.
41346         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41347         (gl_signbitd): Use isnand instead of isnan.
41348         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41349         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41350         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41351         (main): Use isnand instead of isnan.
41352         * tests/test-round1.c: Include isnand.h.
41353         (main): Use isnand instead of isnan.
41354         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41355         (ISNAN): Set to isnand instead of isnan.
41356         * tests/test-trunc1.c: Include isnand.h.
41357         (main): Use isnand instead of isnan.
41358         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41359         (equal): Use isnand instead of isnan.
41360         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41361         isnand-nolibm.
41362         * NEWS: Mention the change.
41363
41364 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41365             Bruno Haible  <bruno@clisp.org>
41366
41367         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41368         the GCC builtins for signbits are present and set
41369         REPLACE_SIGNBIT_USING_GCC if so.
41370         * lib/math.in.h (signbit): Define using GCC builtins if
41371         REPLACE_SIGNBIT_USING_GCC is set.
41372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41373         REPLACE_SIGNBIT_USING_GCC.
41374         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41375
41376 2008-01-25  Jim Meyering  <meyering@redhat.com>
41377
41378         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41379         * lib/poll.c: Include <config.h>, not "config.h".
41380         * tests/test-getaddrinfo.c: Likewise.
41381
41382 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41383
41384         * modules/sockets-tests: New file.
41385
41386 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41387
41388         * modules/sockets: New module, can be used to call WSA_Startup and
41389         WSA_Cleanup when needed.
41390
41391         * lib/sockets.h, lib/sockets.c: New files.
41392
41393         * m4/sockets.m4: New file.
41394
41395         * tests/test-sockets.c: New file.
41396
41397 2008-01-19  Bruno Haible  <bruno@clisp.org>
41398
41399         * doc/posix-headers: Renamed from doc/headers.
41400         * doc/posix-functions: Renamed from doc/functions.
41401         * doc/gnulib.texi: Update.
41402
41403 2008-01-19  Bruno Haible  <bruno@clisp.org>
41404
41405         * doc/glibc-functions/strcasestr.texi: Include contents of
41406         doc/functions/strcasestr.texi, fixing the list of platforms.
41407         * doc/functions/strcasestr.texi: Remove file.
41408
41409 2008-01-19  Bruno Haible  <bruno@clisp.org>
41410
41411         * doc/glibc-functions/memmem.texi: Include contents of
41412         doc/functions/memmem.texi.
41413         * doc/functions/memmem.texi: Remove file.
41414
41415 2008-01-18  Bruno Haible  <bruno@clisp.org>
41416
41417         * doc/glibc-functions/*.texi: New files.
41418         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41419         to use the new files.
41420
41421 2008-01-17  Bruno Haible  <bruno@clisp.org>
41422
41423         * tests/test-gethostname.c (main): Fix printf statement.
41424
41425 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41426
41427         * modules/gethostname-tests: New file.
41428
41429         * tests/test-gethostname.c: New file.
41430
41431 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41432
41433         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41434         used by the UNAME case.  Reported by Bruno Haible
41435         <bruno@clisp.org>.
41436
41437 2008-01-17  Eric Blake  <ebb9@byu.net>
41438
41439         Convert c-strcasestr to be more efficient.
41440         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41441         (Depends-on): Add c-strcase, remove malloca, strnlen.
41442         * tests/test-c-strcasestr.c (main): Enhance test.
41443         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41444
41445 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41446
41447         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41448         Use it in creating po/Makevars.
41449
41450 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41451
41452         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41453         Applications that requires it should initialize libgcrypt
41454         manually.
41455
41456 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41457
41458         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41459
41460 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41461
41462         Fix problem with getdate on mingw32 reported by Simon Josefsson
41463         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41464         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41465         tzname", when deciding whether to declare tzname.
41466         * lib/strftime.c (tzname): Likewise.
41467
41468 2008-01-15  Bruno Haible  <bruno@clisp.org>
41469
41470         Work around a MacOS X 10.5 bug in frexpl().
41471         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41472         * doc/functions/frexpl.texi: Document the bug.
41473         Reported by Elias Pipping <pipping@gentoo.org>.
41474
41475 2008-01-14  Eric Blake  <ebb9@byu.net>
41476
41477         Touch up previous patch.
41478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41479         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41480
41481         Convert strcasestr module to use Two-Way algorithm.
41482         * modules/strcasestr-simple: New module, based on the old
41483         strcasestr, but with Two-Way rather than KMP.
41484         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41485         * lib/string.in.h (rpl_strcasestr): Declare.
41486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41487         performance.
41488         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41489         * modules/string (Makefile.am): Support strcasestr.
41490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41491         * modules/strcasestr-tests (Depends-on): Check for alarm.
41492         * tests/test-strcasestr.c: Augment test.
41493         * lib/str-two-way.h: Clean up stray macro.
41494         * NEWS: Document new module.
41495         * MODULES.html.sh (string handling): Likewise.
41496         * doc/functions/strcasestr.texi: New file.
41497         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41498         here, since it is not a POSIX function.
41499
41500 2008-01-14  Colin Watson  <cjwatson@debian.org>
41501             Bruno Haible  <bruno@clisp.org>
41502
41503         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41504         works fine; if not, set REPLACE_STRSIGNAL.
41505         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41507         REPLACE_STRSIGNAL.
41508         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41509         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41510         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41511
41512 2008-01-14  Bruno Haible  <bruno@clisp.org>
41513
41514         * modules/strsignal (Include): Change to <string.h>.
41515
41516 2008-01-14  Colin Watson  <cjwatson@debian.org>
41517
41518         * modules/argp (Notice): Add a notice recommending to change
41519         XGETTEXT_OPTIONS.
41520         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41521
41522 2008-01-13  Colin Watson  <cjwatson@debian.org>
41523
41524         * modules/strsignal-tests: New file.
41525         * tests/test-strsignal.c: New file.
41526
41527         * lib/strsignal.c: New file, from glibc with modifications.
41528         * lib/siglist.h: New file, from glibc with modifications.
41529         * lib/string.in.h (strsignal): New declaration.
41530         * m4/strsignal.m4: New file.
41531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41532         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41533         * modules/strsignal: New file.
41534         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41535         HAVE_DECL_STRSIGNAL.
41536
41537 2008-01-13  Bruno Haible  <bruno@clisp.org>
41538
41539         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41540         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41541         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41542         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41543
41544 2008-01-13  Bruno Haible  <bruno@clisp.org>
41545
41546         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41547         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41548         * lib/argp.h (__attribute__): Likewise.
41549         * lib/c-stack.c (__attribute__): Likewise.
41550         * lib/error.h (__attribute__): Likewise.
41551         * lib/fts.c (__attribute__): Likewise.
41552         * lib/openat.h (__attribute__): Likewise.
41553         * lib/stdio.in.h (__attribute__): Likewise.
41554         * lib/string.in.h (__attribute__): Likewise.
41555         * lib/utimens.c (__attribute__): Likewise.
41556         * lib/vasnprintf.h (__attribute__): Likewise.
41557         * lib/xalloc.h (__attribute__): Likewise.
41558         * lib/xprintf.h (__attribute__): Likewise.
41559         * lib/xstrtol.h (__attribute__): Likewise.
41560         * lib/xvasprintf.h (__attribute__): Likewise.
41561
41562 2008-01-12  Bruno Haible  <bruno@clisp.org>
41563
41564         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41565         * doc/glibc-headers/a.out.texi: New file.
41566         * doc/glibc-headers/aliases.texi: New file.
41567         * doc/glibc-headers/alloca.texi: New file.
41568         * doc/glibc-headers/ar.texi: New file.
41569         * doc/glibc-headers/argp.texi: New file.
41570         * doc/glibc-headers/argz.texi: New file.
41571         * doc/glibc-headers/byteswap.texi: New file.
41572         * doc/glibc-headers/crypt.texi: New file.
41573         * doc/glibc-headers/endian.texi: New file.
41574         * doc/glibc-headers/envz.texi: New file.
41575         * doc/glibc-headers/err.texi: New file.
41576         * doc/glibc-headers/error.texi: New file.
41577         * doc/glibc-headers/execinfo.texi: New file.
41578         * doc/glibc-headers/fpu_control.texi: New file.
41579         * doc/glibc-headers/fstab.texi: New file.
41580         * doc/glibc-headers/fts.texi: New file.
41581         * doc/glibc-headers/getopt.texi: New file.
41582         * doc/glibc-headers/ieee754.texi: New file.
41583         * doc/glibc-headers/ifaddrs.texi: New file.
41584         * doc/glibc-headers/libintl.texi: New file.
41585         * doc/glibc-headers/mcheck.texi: New file.
41586         * doc/glibc-headers/mntent.texi: New file.
41587         * doc/glibc-headers/obstack.texi: New file.
41588         * doc/glibc-headers/paths.texi: New file.
41589         * doc/glibc-headers/printf.texi: New file.
41590         * doc/glibc-headers/pty.texi: New file.
41591         * doc/glibc-headers/resolv.texi: New file.
41592         * doc/glibc-headers/shadow.texi: New file.
41593         * doc/glibc-headers/sysexits.texi: New file.
41594         * doc/glibc-headers/ttyent.texi: New file.
41595
41596 2008-01-12  Jim Meyering  <meyering@redhat.com>
41597
41598         announce-gen: emit Gnulib's git-based version string.
41599         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41600         New option --gnulib-version=V, where V is expected to be
41601         the output of running git describe in the gnulib directory.
41602         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41603         not useful, and plan to stop publishing an xdelta file with each
41604         coreutils release.
41605
41606         * build-aux/announce-gen: Also check for lzma-compressed files.
41607
41608 2008-01-11  Bruno Haible  <bruno@clisp.org>
41609
41610         * tests/test-memmem.c (main): Increase maximum allowed time.
41611         * tests/test-strstr.c (main): Likewise.
41612
41613 2008-01-11  Bruno Haible  <bruno@clisp.org>
41614
41615         * doc/functions/memmem.texi: Add more precisions about platforms.
41616         * doc/functions/strstr.texi: Likewise.
41617
41618 2008-01-10  Eric Blake  <ebb9@byu.net>
41619
41620         * m4/strstr.m4: Delete cruft from copy-n-paste.
41621         Reported by Bruno Haible.
41622
41623 2008-01-10  Bruno Haible  <bruno@clisp.org>
41624
41625         Make c-strstr rely on strstr.
41626         * lib/c-strstr.c: Don't include str-kmp.h.
41627         (c_strstr): Define in terms of strstr.
41628         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41629         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41630
41631 2008-01-10  Bruno Haible  <bruno@clisp.org>
41632
41633         * doc/gnulib.texi (String Functions in C Locale): New section.
41634         * doc/c-ctype.texi: New file.
41635         * doc/c-strcase.texi: New file.
41636         * doc/c-strcaseeq.texi: New file.
41637         * doc/c-strcasestr.texi: New file.
41638         * doc/c-strstr.texi: New file.
41639         * doc/c-strtod.texi: New file.
41640         * doc/c-strtold.texi: New file.
41641
41642 2008-01-10  Eric Blake  <ebb9@byu.net>
41643
41644         * lib/relocatable.h: Fix a comment.
41645
41646 2008-01-10  Eric Blake  <ebb9@byu.net>
41647
41648         Share two-way algorithm.
41649         * lib/str-two-way.h: New file, merged from...
41650         * lib/memmem.c: ...here...
41651         * lib/strstr.c: ...and here.
41652         * modules/memmem (Files): Use it.
41653         * modules/strstr (Files): Likewise.
41654
41655         Avoid quadratic strstr implementations.
41656         * lib/strstr.c: New file.
41657         * m4/strstr.m4: Likewise.
41658         * modules/strstr: Likewise.
41659         * modules/strstr-tests: Likewise.
41660         * tests/test-strstr.c: Likewise.
41661         * lib/string.in.h (rpl_strstr): Declare.
41662         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41664         * modules/string (Makefile.am): Likewise.
41665         * MODULES.html.sh (string handling): Mention new module.
41666         * doc/functions/strstr.texi (strstr): Document the bug.
41667
41668 2008-01-10  Bruno Haible  <bruno@clisp.org>
41669
41670         * lib/relocatable.h (relocate): State whether result is freshly
41671         allocated or not.
41672         * lib/relocatable.c (relocate): Return a freshly allocated string
41673         instead of a pointer to a privately held string.
41674         Reported by Sylvain Beucler <beuc@gnu.org>.
41675
41676 2008-01-10  Colin Watson  <cjwatson@debian.org>
41677
41678         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41679         s/S_ISNLK/S_ISLNK/.
41680
41681 2008-01-09  Bruno Haible  <bruno@clisp.org>
41682
41683         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41684         and other files.
41685         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41686         if it's only a guess.
41687         * modules/memmem: Simplify by depending on memmem-simple.
41688
41689 2008-01-09  Bruno Haible  <bruno@clisp.org>
41690
41691         Work around OpenBSD 4.0 tdelete() bug.
41692         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41693         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41694         macros and don't redefine the enum values.
41695         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41696         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41697         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41698
41699 2008-01-09  Bruno Haible  <bruno@clisp.org>
41700
41701         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41702         (main): Don't perform the tests if setlocale did not install a UTF-8
41703         locale. Needed on OpenBSD 4.0.
41704         * modules/wcwidth-tests (Depends-on): Add localcharset.
41705
41706 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41707
41708         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41709         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41710         * NEWS: announce this.
41711         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41712
41713 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41714         and Eric Blake  <ebb9@byu.net>
41715
41716         Add memmem-simple module.
41717         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41718         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41719         * modules/memmem-simple: New file.
41720         * modules/memmem (Description): Tweak.
41721         * MODULES.html.sh (string handling): Mention new module.
41722         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41723         addressed by memmem-simple.
41724         * NEWS: Document the difference.
41725
41726 2008-01-09  Eric Blake  <ebb9@byu.net>
41727
41728         Give gcc some memmem optimization hints.
41729         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41730         (strcasestr): Declare as pure.
41731         * modules/memmem (Maintainer): Claim my implementation.
41732
41733 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41734
41735         Support AIX 6.1 and higher.
41736         * build-aux/config.libpath: Likewise.
41737         * build-aux/config.rpath: Likewise.
41738
41739 2008-01-08  Jim Meyering  <meyering@redhat.com>
41740             Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41743         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41744         Reported by Peter Fales in
41745         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41746
41747 2008-01-08  Bruno Haible  <bruno@clisp.org>
41748
41749         * modules/unictype/category-of (Depends-on): Add
41750         unictype/category-none.
41751         * modules/unictype/category-and-tests (Depends-on): Add
41752         unictype/category-{L,N,Lu,Nd}.
41753         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41754         * modules/unictype/category-or-tests (Depends-on): Add
41755         unictype/category-{L,N}.
41756         * modules/unictype/category-name-tests (Depends-on): Add
41757         unictype/category-{Z,Nl}.
41758         Reported by Simon Josefsson.
41759
41760 2008-01-08  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41763         convention better.
41764         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41765         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41766         Reported by Peter Miller <millerp@canb.auug.org.au>.
41767
41768 2008-01-08  Eric Blake  <ebb9@byu.net>
41769
41770         Rewrite memmem to guarantee linear complexity without malloc.
41771         * lib/memmem.c (memmem): Use Two-Way rather than
41772         Knuth-Morris-Pratt, to allow O(1) space usage.
41773         (critical_factorization, two_way_short_needle)
41774         (two_way_long_needle): New functions.
41775         (knuth_morris_pratt): Delete.
41776         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41777         Add stdint.
41778         * tests/test-memmem.c (main): Add tests for periodic needle and
41779         sublinear performance.
41780         * doc/functions/memmem.texi (memmem): Document other deficiencies
41781         in cygwin and older glibc.
41782
41783 2008-01-08  Bruno Haible  <bruno@clisp.org>
41784
41785         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41786         augmentation.
41787
41788 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41789
41790         Add a configure time option: --disable-acl.
41791         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41792         AC_ARG_ENABLE(acl).
41793
41794 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41795
41796         * tests/test-localename.c: Don't include obsolete "setenv.h".
41797
41798         * modules/localename-tests (Depends-on): Need unsetenv.
41799
41800 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41801
41802         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41803
41804 2008-01-06  Colin Watson  <cjwatson@debian.org>
41805
41806         * users.txt: Add man-db.
41807
41808 2008-01-07  Bruno Haible  <bruno@clisp.org>
41809
41810         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41811         previous section name.
41812
41813 2008-01-07  Bruno Haible  <bruno@clisp.org>
41814
41815         * lib/progname.c (set_program_name): Don't strip off a leading
41816         "lt-" prefix outside a .libs directory.
41817         Suggested by Paul Eggert.
41818
41819 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41820             Bruno Haible  <bruno@clisp.org>
41821
41822         Improve memory cleanup in 'relocatable' module.
41823         * lib/relocatable.h (compute_curr_prefix): Change return type to
41824         'char *'.
41825         * lib/relocatable.c (compute_curr_prefix): Change return type to
41826         'char *'. Free curr_installdir after use.
41827         (relocate): Free curr_prefix_better after use.
41828         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41829
41830 2008-01-01  Bruno Haible  <bruno@clisp.org>
41831
41832         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41833         failure on older glibc systems.
41834         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41835
41836 2008-01-05  Eric Blake  <ebb9@byu.net>
41837
41838         Avoid quadratic system memmem.
41839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41840         Reported by Ralf Wildenhues.
41841
41842         Fix memmem test for mingw.
41843         * modules/memmem-tests (configure.ac): Check for alarm.
41844         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41845         it.
41846         * doc/functions/memmem.texi: New file.
41847         * doc/gnulib.texi (Function Substitutes): Add memmem.
41848         Reported by Bruno Haible.
41849
41850 2008-01-04  Bruno Haible  <bruno@clisp.org>
41851
41852         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41853         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41854         gl_HEADER_STRING_H_DEFAULTS.
41855
41856 2008-01-04  Eric Blake  <ebb9@byu.net>
41857
41858         Shorten duration of memmem test.
41859         * tests/test-memmem.c (main): Use alarm to declare failure if test
41860         is taking too long.
41861         Reported by Ralf Wildenhues.
41862
41863 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41864
41865         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41866         string, needed by strerror.
41867
41868 2008-01-03  Colin Watson  <cjwatson@debian.org>
41869             Bruno Haible  <bruno@clisp.org>
41870
41871         * doc/gnulib-tool.texi (Localization): New section.
41872
41873 2008-01-02  Bruno Haible  <bruno@clisp.org>
41874
41875         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41876         variables to 'unsigned char *' type.
41877         Reported by Paul Eggert.
41878
41879 2008-01-02  Jim Meyering  <jim@meyering.net>
41880
41881         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41882
41883 2007-12-31  Jim Meyering  <jim@meyering.net>
41884
41885         Avoid use of private FTS type name.
41886         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41887
41888 2007-12-30  Karl Berry  <karl@gnu.org>
41889
41890         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41891         work around defect in Texinfo and/or the standalone Info browser.
41892
41893 2007-12-30  Bruno Haible  <bruno@clisp.org>
41894
41895         Unify 5 copies of the KMP code.
41896         * lib/str-kmp.h: New file.
41897         * lib/c-strcasestr.c: Include str-kmp.h.
41898         (knuth_morris_pratt): Remove function.
41899         (c_strcasestr): Update.
41900         * lib/c-strstr.c: Include str-kmp.h.
41901         (knuth_morris_pratt): Remove function.
41902         (c_strcasestr): Update.
41903         * lib/mbscasestr.c: Include str-kmp.h.
41904         (knuth_morris_pratt_unibyte): Remove function.
41905         * lib/mbsstr.c: Include str-kmp.h.
41906         (knuth_morris_pratt_unibyte): Remove function.
41907         * lib/strcasestr.c: Include str-kmp.h.
41908         (knuth_morris_pratt): Remove function.
41909         (strcasestr): Update.
41910         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41911         * modules/c-strstr (Files): Likewise.
41912         * modules/mbscasestr (Files): Likewise.
41913         * modules/mbsstr (Files): Likewise.
41914         * modules/strcasestr (Files): Likewise.
41915         Suggested by Paul Eggert.
41916
41917 2007-12-30  Bruno Haible  <bruno@clisp.org>
41918
41919         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41920         defined.
41921
41922 2007-12-30  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/xmalloca.h: Include xalloc.h.
41925         (xnmalloca): New macro.
41926
41927 2007-12-30  Bruno Haible  <bruno@clisp.org>
41928
41929         * lib/malloca.h (nmalloca): New macro.
41930         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41931         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41932         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41933         knuth_morris_pratt_multibyte): Likewise.
41934         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41935         knuth_morris_pratt_multibyte): Likewise.
41936         * lib/memmem.c (knuth_morris_pratt): Likewise.
41937         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41938
41939 2007-12-25  Bruno Haible  <bruno@clisp.org>
41940
41941         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41942         * lib/glob.c: Don't include openat.h.
41943         (link_exists2_p): Add back the code that deals with the
41944         !GLOB_ALTDIRFUNC case.
41945         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41946         let it do the filename concatenation.
41947         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41948         * modules/glob (Depends-on): Remove openat.
41949
41950 2007-12-31  Bruno Haible  <bruno@clisp.org>
41951
41952         * modules/dirfd (License): Change to LGPLv2+.
41953         Approved by Jim Meyering.
41954
41955 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41956
41957         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41958         when multiplying M by sizeof (size_t).
41959
41960 2007-12-10  Martin Lambers  <marlam@marlam.de>
41961
41962         Override getpagesize on mingw.
41963         * lib/getpagesize.c: New file.
41964         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41965         * modules/getpagesize (Files): Add lib/getpagesize.c.
41966         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41968         REPLACE_GETPAGESIZE.
41969         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41970
41971 2007-12-25  Bruno Haible  <bruno@clisp.org>
41972
41973         * modules/localcharset (Notice): New field.
41974         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41975         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41976
41977 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41978             Bruno Haible  <bruno@clisp.org>
41979
41980         Avoid using the syntax symbol() in formatted documentation.
41981         * MODULES.html.sh (func_module): When replacing symbol() with a
41982         hyperlink, remove the parentheses. Show an error if some remain.
41983         Recognize and render the '...' syntax.
41984         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41985         Rework. Add paragraph about GCC's inlining.
41986         * doc/alloca.texi: Likewise.
41987         * doc/error.texi: Remove parentheses from symbol reference.
41988         * doc/gnulib-intro.texi: Likewise.
41989         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41990         * modules/fnmatch (Description): Reword to say "the ... function".
41991         * modules/full-read (Description): Likewise.
41992         * modules/full-write (Description): Likewise.
41993         * modules/safe-read (Description): Likewise.
41994         * modules/safe-write (Description): Likewise.
41995         * modules/strchrnul (Description): Likewise.
41996         * modules/trim (Description): Likewise.
41997         * modules/error (Description): Remove parentheses from symbol
41998         references.
41999         * modules/verror (Description): Likewise.
42000         Reported by Karl Berry.
42001
42002 2007-12-25  Bruno Haible  <bruno@clisp.org>
42003
42004         Fixup after 2007-10-16 commit.
42005         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42006
42007 2007-12-24  Bruno Haible  <bruno@clisp.org>
42008
42009         Make --enable-relocatable work with DESTDIR.
42010         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42011         to compute installdir from destprog.
42012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42013         also set the RELOC_DESTDIR variable.
42014         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42015
42016 2007-12-24  Bruno Haible  <bruno@clisp.org>
42017
42018         Fix link error due to xalloc_die().
42019         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42020         of xreadlink.
42021         * lib/relocwrapper.c: Update comments.
42022         * build-aux/install-reloc: Remove xreadlink.c from file list.
42023         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42024         xreadlink.c.
42025         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42026
42027 2007-12-24  Bruno Haible  <bruno@clisp.org>
42028
42029         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42030         * lib/setenv.h: Remove file.
42031         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42032         lib/setenv.h.
42033         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42034         (Depends-on): Add stdlib.
42035         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42036         gl_FUNC_UNSETENV.
42037         (Include): Replace setenv.h with <stdlib.h>.
42038         * modules/unsetenv: New file.
42039         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42040         * lib/unsetenv.c: Include <stdlib.h> first.
42041         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42042         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42043         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42044         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42045         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42046         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42048         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42049         * doc/functions/unsetenv.texi: Update.
42050         * modules/xsetenv (Depends-on): Add unsetenv.
42051         * modules/getdate (Depends-on): Likewise.
42052         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42053         * lib/xsetenv.c: Don't include setenv.h.
42054         * lib/getdate.y: Likewise.
42055         * lib/relocwrapper.c: Likewise.
42056         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42057         (Depends-on): Add stdlib.
42058         * NEWS: Mention the changes.
42059         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42060
42061 2007-12-23  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42064         indentation.
42065
42066 2007-12-23  Bruno Haible  <bruno@clisp.org>
42067
42068         * lib/c-strcasestr.c: Add more comments.
42069         * lib/c-strstr.c: Likewise.
42070         * lib/mbscasestr.c: Likewise.
42071         * lib/mbsstr.c: Likewise.
42072         * lib/strcasestr.c: Likewise.
42073         * lib/memmem.c: Likewise.
42074
42075 2007-12-23  Bruno Haible  <bruno@clisp.org>
42076
42077         * tests/test-memmem.c: Include <string.h> first.
42078
42079 2007-12-22  Bruno Haible  <bruno@clisp.org>
42080
42081         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42082         the contents of $testsbase.
42083         Reported by Ralf Wildenhues.
42084
42085 2007-12-22  Bruno Haible  <bruno@clisp.org>
42086
42087         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42088         two variables local_ldadd_before, local_ldadd_last.
42089
42090 2007-12-20  Eric Blake  <ebb9@byu.net>
42091
42092         Work around circular library issue when cross-compiling.
42093         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42094         that progname.o does not need to pull in rpl_memcmp.
42095
42096 2007-12-19  Eric Blake  <ebb9@byu.net>
42097
42098         Fix memmem to avoid O(n^2) worst-case complexity.
42099         * lib/memmem.c (knuth_morris_pratt): New function.
42100         (memmem): Use it if first few naive iterations fail.
42101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42102         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42103         * modules/memchr (License): Likewise.
42104         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42105         malloca.
42106         * tests/test-memmem.c: Rewrite, borrowing ideas from
42107         test-mbsstr1.c; the old version wouldn't even compile!
42108         * modules/memmem-tests: New file.
42109         * lib/string.in.h (rpl_memmem): Add declaration.
42110         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42112         REPLACE_MEMMEM.
42113
42114 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42115
42116         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42117         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42118         before any system include files, and undef after them all.  This
42119         should fix a problem on VMS reported by John E. Malmberg in
42120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42121
42122 2007-12-17  Eric Blake  <ebb9@byu.net>
42123
42124         Revert addition of verify, for BSD/OS.
42125         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42126         can't handle large files, for the sake of obsolete platforms.
42127         * modules/fseeko (Depends-on): Remove verify.
42128         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42129         * doc/functions/ftello.texi (ftello): Likewise.
42130         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42131         Reported by Larry Jones.
42132
42133 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42134
42135         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42136         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42137
42138 2007-12-17  Jim Meyering  <meyering@redhat.com>
42139
42140         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42141         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42142         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42143         * modules/getcwd (Depends-on): Add openat.
42144         Reported by Petr Salinger.
42145
42146 2007-12-17  Bruno Haible  <bruno@clisp.org>
42147
42148         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42149         avoid a segmentation fault of the configure test on x86_64 systems.
42150
42151 2007-12-15  Jim Meyering  <meyering@redhat.com>
42152
42153         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42154
42155 2007-12-13  Eric Blake  <ebb9@byu.net>
42156
42157         Another fseek test.
42158         * tests/test-fseek.c (main): Also test ungetc handling.
42159         * tests/test-fseeko.c (main): Likewise.
42160         * modules/fseeko (Depends-on): Add verify.
42161         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42162         large.
42163         Reported by Larry Jones.
42164
42165         Fix fseeko on mingw.
42166         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42167         seek.
42168
42169         Beef up fseek tests.
42170         * tests/test-fseek.c (main): Also test eof handling.
42171         * tests/test-fseeko.c (main): Likewise.
42172         Reported by Larry Jones.
42173
42174 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42175
42176         Fix fseeko on BSD-based platforms.
42177         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42178         successful seek.
42179
42180 2007-12-12  Eric Blake  <ebb9@byu.net>
42181
42182         Allow circular dependency of separate libtests.a
42183         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42184         when use_libtests.
42185
42186 2007-12-11  Eric Blake  <ebb9@byu.net>
42187
42188         Fix bug with -0.0L in previous patch.
42189         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42190         * tests/test-isnan.c (main): Also test on zeroes.
42191         * tests/test-isnanf.c (main): Likewise.
42192         * tests/test-isnanl.h (main): Likewise.
42193
42194         Detect pseudo-denormals on x86 even when cross-compiling.
42195         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42196         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42197         invalid bit patterns that happen to satisfy ==.
42198
42199         Avoid link failures with separate libtests.a.
42200         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42201         last, to satisfy circular dependencies.
42202
42203 2007-12-11  Eric Blake  <ebb9@byu.net>
42204         and Bruno Haible  <bruno@clisp.org>
42205
42206         Fix OpenBSD 4.0 <float.h> handling of long double.
42207         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42208         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42209         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42210
42211 2007-12-11  Jim Meyering  <meyering@redhat.com>
42212
42213         * users.txt: Add libvirt.
42214
42215         Support versions of autoconf prior to 2.59c.
42216         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42217         if it is not already defined.
42218
42219 2007-12-09  Bruno Haible  <bruno@clisp.org>
42220
42221         Let 'gnulib-tool --import' collect sources needed for the tests in
42222         tests/ rather than in lib/.
42223         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42224         argument. If true, add rules to generate libtests.a, and put libtests.a
42225         into $(LDADD). Consider source files in subdirectories and set
42226         uses_subdirs.
42227         (func_emit_initmacro_start, func_emit_initmacro_end,
42228         func_emit_initmacro_done): Pass all arguments explicitly.
42229         (func_import): Determine two module lists main_modules,
42230         testsrelated_modules. Determine use_libtests. Determine two variables
42231         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42232         instead of just sed_transform_lib_file. Determine two variables
42233         main_files and testsrelated_files. Compute 'files' as the union of
42234         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42235         func_add_or_update. In the generated gnulib-comp.m4, collect the
42236         object files for tests/ in different variables than those for lib/.
42237         Substitute LIBTESTS_LIBDEPS.
42238         (func_create_testdir): Combine the uses_subdirs results from
42239         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42240
42241 2007-12-09  Bruno Haible  <bruno@clisp.org>
42242
42243         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42244         the build-aux directory.
42245
42246 2007-12-09  Bruno Haible  <bruno@clisp.org>
42247
42248         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42249         introduced on 2006-09-09.
42250
42251 2007-12-07  Jim Meyering  <meyering@redhat.com>
42252
42253         Let these macros work also with autoconf-2.59.
42254         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42255         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42256         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42257
42258 2007-12-06  Jim Meyering  <meyering@redhat.com>
42259
42260         Avoid a configure-time syntax error in gl_FUNC_ACL.
42261         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42262         function in each branch, before testing the cache variable.
42263
42264 2007-12-04  Eric Blake  <ebb9@byu.net>
42265
42266         Make scripts executable.
42267         * build-aux/config.guess: Add execute permissions.
42268         * build-aux/config.sub: Likewise.
42269         * build-aux/gendocs.sh: Likewise.
42270
42271         Fix frexp on mingw.
42272         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42273         cross-compiling.
42274         * doc/functions/frexp.texi (frexp): Document the bug.
42275
42276         Make cygwin fseeko check more reliable.
42277         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42278         version numbers, rather than unrelated feature check.
42279         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42280         * doc/functions/ftello.texi (ftello): Likewise.
42281         Reported by Bruno Haible.
42282
42283         * m4/strerror.m4: Bump version number.
42284
42285 2007-12-03  Bruno Haible  <bruno@clisp.org>
42286
42287         * doc/functions/mprotect.texi: Mention the mingw problem.
42288
42289 2007-12-03  Eric Blake  <ebb9@byu.net>
42290
42291         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42292         REPLACE_STRERROR is initialized before this macro.
42293
42294 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42295
42296         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42297         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42298         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42299         put -lsec in even for programs other than 'ls'.  This fixes a problem
42300         for gettext reported by Bruno Haible in
42301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42302         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42303         Add support for Solaris 10.  This isn't efficient, but should get the
42304         job done for now.
42305
42306 2007-12-03  James Youngman  <jay@gnu.org>
42307
42308         * doc/regexprops-generic.texi: change "an close-group" to "a
42309         close-group" and "illegal" to "not allowed".
42310
42311 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42312
42313         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42314         pr_byname.h. Needed for the rare case when the maintainer has done
42315         "make maintainer-clean" in the source directory and then attempts a
42316         build outside the source directory.
42317         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42318         scripts_byname.h.
42319
42320 2007-12-02  Martin Lambers <marlam@marlam.de>
42321             Bruno Haible  <bruno@clisp.org>
42322
42323         * lib/getpagesize.h: Remove file.
42324         * lib/unistd.in.h: Include declaration of getpagesize here.
42325         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42326         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42327         HAVE_SYS_PARAM_H.
42328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42329         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42330         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42331         (Depends-on): Add unistd.
42332         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42333         (Include): Use <unistd.h> instead of getpagesize.h.
42334         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42335         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42336         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42337         gl_GETPAGESIZE invocation, already handled by module dependency.
42338         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42339
42340 2007-12-02  Bruno Haible  <bruno@clisp.org>
42341
42342         * modules/strings-tests: New file.
42343         * tests/test-strings.c: New file.
42344
42345         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42346         * lib/strings.in.h: New file.
42347         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42348         * m4/strings_h.m4: New file.
42349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42350         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42351         * modules/strings: New file.
42352         * modules/string (Makefile.am): Update.
42353         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42354         Reported by Karl Berry.
42355
42356 2007-12-01  Eric Blake  <ebb9@byu.net>
42357
42358         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42359         accomodate fix in cygwin 1.5.25.
42360
42361 2007-12-01  Jim Meyering  <meyering@redhat.com>
42362
42363         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42364         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42365         that would inhibit utf8-optimization of a regexp containing line-
42366         or buffer-anchors, e.g., `^', `$'.
42367
42368 2007-11-30  Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42371         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42372         glthread_recursive_lock_init.
42373         * lib/lock.c (glthread_recursive_lock_init)
42374         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42375         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42376
42377 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42378
42379         New function qset_acl, like set_acl but with syscall semantics.
42380         * lib/acl.h (qset_acl): New decl.
42381         * lib/acl.c (qset_acl): New function.
42382         (set_acl): Use new function.  Use more-consistent diagnostics.
42383
42384 2007-11-28  Jim Meyering  <meyering@redhat.com>
42385
42386         * modules/physmem (License): Change from GPL to LGPLv2+.
42387
42388 2007-11-26  Bruno Haible  <bruno@clisp.org>
42389
42390         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42391         'long double' type has excess precision.
42392         Reported by Jim Meyering in
42393         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42394
42395 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42396
42397         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42398         Sync from <http://gnu.org/licenses>.
42399         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42400         with license text from same location.
42401         * doc/maintain.texi, doc/standards.texi:  Sync from
42402         <http://savannah.gnu.org/projects/gnustandards>.
42403
42404 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
42405         and Jim Meyering  <meyering@redhat.com>
42406
42407         Adjust getdate' grammar to accept a slightly more regular language.
42408         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42409         Before, the former was rejected.
42410         * lib/getdate.y (digits_to_date_time): New function, factored
42411         out of ...
42412         (number): ...here.  Just call digits_to_date_time.
42413         (hybrid): New non-terminal to handle an <unsigned number,
42414         signed relative offset> sequence consistently.
42415
42416 2007-11-18  Jim Meyering  <meyering@redhat.com>
42417
42418         Pull my changes from coreutils:
42419         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42420         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42421         use of $gnulib_tool_option_extras, so that it's separated from the
42422         preceding argument.
42423
42424         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42425         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42426         parent destination directories before copying a file into place.
42427
42428 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42429
42430         bootstrap: work also with 4-argument variant of AC_INIT
42431         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42432
42433 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42434
42435         Port test-getaddrinfo to Solaris.
42436         Problem reported by Bruno Haible in
42437         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42438         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42439         explanation of setting 'hints'.
42440         Don't reject an implementation merely because it returns EAI_SERVICE.
42441         (EAI_SERVICE): Define to 0 if not defined.
42442
42443 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42444
42445         The license of gnu-make and posix-shell is now "GPLed build tool".
42446         * modules/gnu-make (License): Likewise.
42447         * modules/posix-shell (License): Likewise.
42448
42449         New module posix-shell, for determining a POSIX shell
42450         or perhaps something that is close enough to a POSIX shell.
42451         * m4/posix-shell.m4: New file.
42452         * modules/posix-shell: New file.
42453
42454         * MODULES.html.sh: Mention new module.
42455
42456         New module gnu-make, for determining whether we're using GNU Make.
42457         * m4/gnu-make.m4: New file.
42458         * modules/gnu-make: New file.
42459         * MODULES.html.sh: Mention new module.
42460
42461 2007-11-14  Jim Meyering  <meyering@redhat.com>
42462
42463         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42464         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42465         use this macro to create a function _definition_.
42466         Remove useless "#undef ARGMATCH_DIE".
42467
42468 2007-11-14  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/config.charset: Update for OpenBSD 4.1.
42471         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42472
42473 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42474
42475         Document 64-bit #if problems in stdint.texi.
42476         * doc/headers/stdint.texi (stdint.h): Mention problems with
42477         64-bit-#if, and how to work around them.
42478
42479         Don't insist on 'long long int' support in the preprocessor.  It
42480         breaks too many things.  For example, PRIdMAX still uses a 'long
42481         long int' format with the latest Sun compiler, even though
42482         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42483         preprocessor problem.  This causes the latest coreutils to dump
42484         core on Solaris 10 sparc with the Sun C compiler.
42485         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42486         the troublesome expressions at configure-time, not at #if-time.
42487         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42488         preprocessor.
42489         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42490         compile-time C checks, done at 'configure'-time.
42491         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42492         * modules/inttypes (Makefile): Substitute the new symbols that
42493         gl_INTTYPES_H now generates.
42494         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42495
42496 2007-11-12  Bruno Haible  <bruno@clisp.org>
42497
42498         Tests for Unicode character classification functions.
42499
42500         * modules/unictype/bidicategory-byname-tests: New file.
42501         * modules/unictype/bidicategory-name-tests: New file.
42502         * modules/unictype/bidicategory-of-tests: New file.
42503         * modules/unictype/bidicategory-test-tests: New file.
42504         * modules/unictype/block-list-tests: New file.
42505         * modules/unictype/block-of-tests: New file.
42506         * modules/unictype/block-test-tests: New file.
42507         * modules/unictype/category-C-tests: New file.
42508         * modules/unictype/category-Cc-tests: New file.
42509         * modules/unictype/category-Cf-tests: New file.
42510         * modules/unictype/category-Cn-tests: New file.
42511         * modules/unictype/category-Co-tests: New file.
42512         * modules/unictype/category-Cs-tests: New file.
42513         * modules/unictype/category-L-tests: New file.
42514         * modules/unictype/category-Ll-tests: New file.
42515         * modules/unictype/category-Lm-tests: New file.
42516         * modules/unictype/category-Lo-tests: New file.
42517         * modules/unictype/category-Lt-tests: New file.
42518         * modules/unictype/category-Lu-tests: New file.
42519         * modules/unictype/category-M-tests: New file.
42520         * modules/unictype/category-Mc-tests: New file.
42521         * modules/unictype/category-Me-tests: New file.
42522         * modules/unictype/category-Mn-tests: New file.
42523         * modules/unictype/category-N-tests: New file.
42524         * modules/unictype/category-Nd-tests: New file.
42525         * modules/unictype/category-Nl-tests: New file.
42526         * modules/unictype/category-No-tests: New file.
42527         * modules/unictype/category-P-tests: New file.
42528         * modules/unictype/category-Pc-tests: New file.
42529         * modules/unictype/category-Pd-tests: New file.
42530         * modules/unictype/category-Pe-tests: New file.
42531         * modules/unictype/category-Pf-tests: New file.
42532         * modules/unictype/category-Pi-tests: New file.
42533         * modules/unictype/category-Po-tests: New file.
42534         * modules/unictype/category-Ps-tests: New file.
42535         * modules/unictype/category-S-tests: New file.
42536         * modules/unictype/category-Sc-tests: New file.
42537         * modules/unictype/category-Sk-tests: New file.
42538         * modules/unictype/category-Sm-tests: New file.
42539         * modules/unictype/category-So-tests: New file.
42540         * modules/unictype/category-Z-tests: New file.
42541         * modules/unictype/category-Zl-tests: New file.
42542         * modules/unictype/category-Zp-tests: New file.
42543         * modules/unictype/category-Zs-tests: New file.
42544         * modules/unictype/category-and-not-tests: New file.
42545         * modules/unictype/category-and-tests: New file.
42546         * modules/unictype/category-byname-tests: New file.
42547         * modules/unictype/category-name-tests: New file.
42548         * modules/unictype/category-none-tests: New file.
42549         * modules/unictype/category-of-tests: New file.
42550         * modules/unictype/category-or-tests: New file.
42551         * modules/unictype/category-test-withtable-tests: New file.
42552         * modules/unictype/combining-class-tests: New file.
42553         * modules/unictype/ctype-alnum-tests: New file.
42554         * modules/unictype/ctype-alpha-tests: New file.
42555         * modules/unictype/ctype-blank-tests: New file.
42556         * modules/unictype/ctype-cntrl-tests: New file.
42557         * modules/unictype/ctype-digit-tests: New file.
42558         * modules/unictype/ctype-graph-tests: New file.
42559         * modules/unictype/ctype-lower-tests: New file.
42560         * modules/unictype/ctype-print-tests: New file.
42561         * modules/unictype/ctype-punct-tests: New file.
42562         * modules/unictype/ctype-space-tests: New file.
42563         * modules/unictype/ctype-upper-tests: New file.
42564         * modules/unictype/ctype-xdigit-tests: New file.
42565         * modules/unictype/decimal-digit-tests: New file.
42566         * modules/unictype/digit-tests: New file.
42567         * modules/unictype/mirror-tests: New file.
42568         * modules/unictype/numeric-tests: New file.
42569         * modules/unictype/property-alphabetic-tests: New file.
42570         * modules/unictype/property-ascii-hex-digit-tests: New file.
42571         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42572         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42573         * modules/unictype/property-bidi-block-separator-tests: New file.
42574         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42575         * modules/unictype/property-bidi-common-separator-tests: New file.
42576         * modules/unictype/property-bidi-control-tests: New file.
42577         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42578         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42579         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42580         * modules/unictype/property-bidi-european-digit-tests: New file.
42581         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42582         * modules/unictype/property-bidi-left-to-right-tests: New file.
42583         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42584         * modules/unictype/property-bidi-other-neutral-tests: New file.
42585         * modules/unictype/property-bidi-pdf-tests: New file.
42586         * modules/unictype/property-bidi-segment-separator-tests: New file.
42587         * modules/unictype/property-bidi-whitespace-tests: New file.
42588         * modules/unictype/property-byname-tests: New file.
42589         * modules/unictype/property-combining-tests: New file.
42590         * modules/unictype/property-composite-tests: New file.
42591         * modules/unictype/property-currency-symbol-tests: New file.
42592         * modules/unictype/property-dash-tests: New file.
42593         * modules/unictype/property-decimal-digit-tests: New file.
42594         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42595         * modules/unictype/property-deprecated-tests: New file.
42596         * modules/unictype/property-diacritic-tests: New file.
42597         * modules/unictype/property-extender-tests: New file.
42598         * modules/unictype/property-format-control-tests: New file.
42599         * modules/unictype/property-grapheme-base-tests: New file.
42600         * modules/unictype/property-grapheme-extend-tests: New file.
42601         * modules/unictype/property-grapheme-link-tests: New file.
42602         * modules/unictype/property-hex-digit-tests: New file.
42603         * modules/unictype/property-hyphen-tests: New file.
42604         * modules/unictype/property-id-continue-tests: New file.
42605         * modules/unictype/property-id-start-tests: New file.
42606         * modules/unictype/property-ideographic-tests: New file.
42607         * modules/unictype/property-ids-binary-operator-tests: New file.
42608         * modules/unictype/property-ids-trinary-operator-tests: New file.
42609         * modules/unictype/property-ignorable-control-tests: New file.
42610         * modules/unictype/property-iso-control-tests: New file.
42611         * modules/unictype/property-join-control-tests: New file.
42612         * modules/unictype/property-left-of-pair-tests: New file.
42613         * modules/unictype/property-line-separator-tests: New file.
42614         * modules/unictype/property-logical-order-exception-tests: New file.
42615         * modules/unictype/property-lowercase-tests: New file.
42616         * modules/unictype/property-math-tests: New file.
42617         * modules/unictype/property-non-break-tests: New file.
42618         * modules/unictype/property-not-a-character-tests: New file.
42619         * modules/unictype/property-numeric-tests: New file.
42620         * modules/unictype/property-other-alphabetic-tests: New file.
42621         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42622         * modules/unictype/property-other-grapheme-extend-tests: New file.
42623         * modules/unictype/property-other-id-continue-tests: New file.
42624         * modules/unictype/property-other-id-start-tests: New file.
42625         * modules/unictype/property-other-lowercase-tests: New file.
42626         * modules/unictype/property-other-math-tests: New file.
42627         * modules/unictype/property-other-uppercase-tests: New file.
42628         * modules/unictype/property-paired-punctuation-tests: New file.
42629         * modules/unictype/property-paragraph-separator-tests: New file.
42630         * modules/unictype/property-pattern-syntax-tests: New file.
42631         * modules/unictype/property-pattern-white-space-tests: New file.
42632         * modules/unictype/property-private-use-tests: New file.
42633         * modules/unictype/property-punctuation-tests: New file.
42634         * modules/unictype/property-quotation-mark-tests: New file.
42635         * modules/unictype/property-radical-tests: New file.
42636         * modules/unictype/property-sentence-terminal-tests: New file.
42637         * modules/unictype/property-soft-dotted-tests: New file.
42638         * modules/unictype/property-space-tests: New file.
42639         * modules/unictype/property-terminal-punctuation-tests: New file.
42640         * modules/unictype/property-test-tests: New file.
42641         * modules/unictype/property-titlecase-tests: New file.
42642         * modules/unictype/property-unassigned-code-value-tests: New file.
42643         * modules/unictype/property-unified-ideograph-tests: New file.
42644         * modules/unictype/property-uppercase-tests: New file.
42645         * modules/unictype/property-variation-selector-tests: New file.
42646         * modules/unictype/property-white-space-tests: New file.
42647         * modules/unictype/property-xid-continue-tests: New file.
42648         * modules/unictype/property-xid-start-tests: New file.
42649         * modules/unictype/property-zero-width-tests: New file.
42650         * modules/unictype/scripts-tests: New file.
42651         * modules/unictype/syntax-c-ident-tests: New file.
42652         * modules/unictype/syntax-c-whitespace-tests: New file.
42653         * modules/unictype/syntax-java-ident-tests: New file.
42654         * modules/unictype/syntax-java-whitespace-tests: New file.
42655         * tests/unictype/test-bidi_byname.c: New file.
42656         * tests/unictype/test-bidi_name.c: New file.
42657         * tests/unictype/test-bidi_of.c: New file.
42658         * tests/unictype/test-bidi_test.c: New file.
42659         * tests/unictype/test-block_list.c: New file.
42660         * tests/unictype/test-block_of.c: New file.
42661         * tests/unictype/test-block_test.c: New file.
42662         * tests/unictype/test-categ_and.c: New file.
42663         * tests/unictype/test-categ_and_not.c: New file.
42664         * tests/unictype/test-categ_byname.c: New file.
42665         * tests/unictype/test-categ_name.c: New file.
42666         * tests/unictype/test-categ_none.c: New file.
42667         * tests/unictype/test-categ_of.c: New file.
42668         * tests/unictype/test-categ_or.c: New file.
42669         * tests/unictype/test-categ_test_withtable.c: New file.
42670         * tests/unictype/test-combining.c: New file.
42671         * tests/unictype/test-decdigit.c: New file.
42672         * tests/unictype/test-digit.c: New file.
42673         * tests/unictype/test-mirror.c: New file.
42674         * tests/unictype/test-numeric.c: New file.
42675         * tests/unictype/test-pr_byname.c: New file.
42676         * tests/unictype/test-pr_test.c: New file.
42677         * tests/unictype/test-predicate-part1.h: New file.
42678         * tests/unictype/test-predicate-part2.h: New file.
42679         * tests/unictype/test-scripts.c: New file.
42680         * tests/unictype/test-sy_c_ident.c: New file.
42681         * tests/unictype/test-sy_java_ident.c: New file.
42682
42683         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42684         for Unicode 5.0.0.
42685         * tests/unictype/test-categ_Cc.c: Likewise.
42686         * tests/unictype/test-categ_Cf.c: Likewise.
42687         * tests/unictype/test-categ_Cn.c: Likewise.
42688         * tests/unictype/test-categ_Co.c: Likewise.
42689         * tests/unictype/test-categ_Cs.c: Likewise.
42690         * tests/unictype/test-categ_L.c: Likewise.
42691         * tests/unictype/test-categ_Ll.c: Likewise.
42692         * tests/unictype/test-categ_Lm.c: Likewise.
42693         * tests/unictype/test-categ_Lo.c: Likewise.
42694         * tests/unictype/test-categ_Lt.c: Likewise.
42695         * tests/unictype/test-categ_Lu.c: Likewise.
42696         * tests/unictype/test-categ_M.c: Likewise.
42697         * tests/unictype/test-categ_Mc.c: Likewise.
42698         * tests/unictype/test-categ_Me.c: Likewise.
42699         * tests/unictype/test-categ_Mn.c: Likewise.
42700         * tests/unictype/test-categ_N.c: Likewise.
42701         * tests/unictype/test-categ_Nd.c: Likewise.
42702         * tests/unictype/test-categ_Nl.c: Likewise.
42703         * tests/unictype/test-categ_No.c: Likewise.
42704         * tests/unictype/test-categ_P.c: Likewise.
42705         * tests/unictype/test-categ_Pc.c: Likewise.
42706         * tests/unictype/test-categ_Pd.c: Likewise.
42707         * tests/unictype/test-categ_Pe.c: Likewise.
42708         * tests/unictype/test-categ_Pf.c: Likewise.
42709         * tests/unictype/test-categ_Pi.c: Likewise.
42710         * tests/unictype/test-categ_Po.c: Likewise.
42711         * tests/unictype/test-categ_Ps.c: Likewise.
42712         * tests/unictype/test-categ_S.c: Likewise.
42713         * tests/unictype/test-categ_Sc.c: Likewise.
42714         * tests/unictype/test-categ_Sk.c: Likewise.
42715         * tests/unictype/test-categ_Sm.c: Likewise.
42716         * tests/unictype/test-categ_So.c: Likewise.
42717         * tests/unictype/test-categ_Z.c: Likewise.
42718         * tests/unictype/test-categ_Zl.c: Likewise.
42719         * tests/unictype/test-categ_Zp.c: Likewise.
42720         * tests/unictype/test-categ_Zs.c: Likewise.
42721         * tests/unictype/test-ctype_alnum.c: Likewise.
42722         * tests/unictype/test-ctype_alpha.c: Likewise.
42723         * tests/unictype/test-ctype_blank.c: Likewise.
42724         * tests/unictype/test-ctype_cntrl.c: Likewise.
42725         * tests/unictype/test-ctype_digit.c: Likewise.
42726         * tests/unictype/test-ctype_graph.c: Likewise.
42727         * tests/unictype/test-ctype_lower.c: Likewise.
42728         * tests/unictype/test-ctype_print.c: Likewise.
42729         * tests/unictype/test-ctype_punct.c: Likewise.
42730         * tests/unictype/test-ctype_space.c: Likewise.
42731         * tests/unictype/test-ctype_upper.c: Likewise.
42732         * tests/unictype/test-ctype_xdigit.c: Likewise.
42733         * tests/unictype/test-decdigit.h: Likewise.
42734         * tests/unictype/test-digit.h: Likewise.
42735         * tests/unictype/test-numeric.h: Likewise.
42736         * tests/unictype/test-pr_alphabetic.c: Likewise.
42737         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42738         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42739         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42740         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42741         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42742         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42743         * tests/unictype/test-pr_bidi_control.c: Likewise.
42744         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42745         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42746         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42747         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42748         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42749         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42750         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42751         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42752         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42753         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42754         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42755         * tests/unictype/test-pr_combining.c: Likewise.
42756         * tests/unictype/test-pr_composite.c: Likewise.
42757         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42758         * tests/unictype/test-pr_dash.c: Likewise.
42759         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42760         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42761         * tests/unictype/test-pr_deprecated.c: Likewise.
42762         * tests/unictype/test-pr_diacritic.c: Likewise.
42763         * tests/unictype/test-pr_extender.c: Likewise.
42764         * tests/unictype/test-pr_format_control.c: Likewise.
42765         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42766         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42767         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42768         * tests/unictype/test-pr_hex_digit.c: Likewise.
42769         * tests/unictype/test-pr_hyphen.c: Likewise.
42770         * tests/unictype/test-pr_id_continue.c: Likewise.
42771         * tests/unictype/test-pr_id_start.c: Likewise.
42772         * tests/unictype/test-pr_ideographic.c: Likewise.
42773         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42774         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42775         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42776         * tests/unictype/test-pr_iso_control.c: Likewise.
42777         * tests/unictype/test-pr_join_control.c: Likewise.
42778         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42779         * tests/unictype/test-pr_line_separator.c: Likewise.
42780         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42781         * tests/unictype/test-pr_lowercase.c: Likewise.
42782         * tests/unictype/test-pr_math.c: Likewise.
42783         * tests/unictype/test-pr_non_break.c: Likewise.
42784         * tests/unictype/test-pr_not_a_character.c: Likewise.
42785         * tests/unictype/test-pr_numeric.c: Likewise.
42786         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42787         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42788         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42789         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42790         * tests/unictype/test-pr_other_id_start.c: Likewise.
42791         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42792         * tests/unictype/test-pr_other_math.c: Likewise.
42793         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42794         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42795         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42796         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42797         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42798         * tests/unictype/test-pr_private_use.c: Likewise.
42799         * tests/unictype/test-pr_punctuation.c: Likewise.
42800         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42801         * tests/unictype/test-pr_radical.c: Likewise.
42802         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42803         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42804         * tests/unictype/test-pr_space.c: Likewise.
42805         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42806         * tests/unictype/test-pr_titlecase.c: Likewise.
42807         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42808         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42809         * tests/unictype/test-pr_uppercase.c: Likewise.
42810         * tests/unictype/test-pr_variation_selector.c: Likewise.
42811         * tests/unictype/test-pr_white_space.c: Likewise.
42812         * tests/unictype/test-pr_xid_continue.c: Likewise.
42813         * tests/unictype/test-pr_xid_start.c: Likewise.
42814         * tests/unictype/test-pr_zero_width.c: Likewise.
42815         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42816         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42817
42818 2007-11-12  Bruno Haible  <bruno@clisp.org>
42819
42820         Unicode character classification functions.
42821         * lib/unictype.h: New file.
42822         * modules/unictype/base: New file.
42823         * modules/unictype/category-L: New file.
42824         * modules/unictype/category-Lu: New file.
42825         * modules/unictype/category-Ll: New file.
42826         * modules/unictype/category-Lt: New file.
42827         * modules/unictype/category-Lm: New file.
42828         * modules/unictype/category-Lo: New file.
42829         * modules/unictype/category-M: New file.
42830         * modules/unictype/category-Mn: New file.
42831         * modules/unictype/category-Mc: New file.
42832         * modules/unictype/category-Me: New file.
42833         * modules/unictype/category-N: New file.
42834         * modules/unictype/category-Nd: New file.
42835         * modules/unictype/category-Nl: New file.
42836         * modules/unictype/category-No: New file.
42837         * modules/unictype/category-P: New file.
42838         * modules/unictype/category-Pc: New file.
42839         * modules/unictype/category-Pd: New file.
42840         * modules/unictype/category-Ps: New file.
42841         * modules/unictype/category-Pe: New file.
42842         * modules/unictype/category-Pi: New file.
42843         * modules/unictype/category-Pf: New file.
42844         * modules/unictype/category-Po: New file.
42845         * modules/unictype/category-S: New file.
42846         * modules/unictype/category-Sm: New file.
42847         * modules/unictype/category-Sc: New file.
42848         * modules/unictype/category-Sk: New file.
42849         * modules/unictype/category-So: New file.
42850         * modules/unictype/category-Z: New file.
42851         * modules/unictype/category-Zs: New file.
42852         * modules/unictype/category-Zl: New file.
42853         * modules/unictype/category-Zp: New file.
42854         * modules/unictype/category-C: New file.
42855         * modules/unictype/category-Cc: New file.
42856         * modules/unictype/category-Cf: New file.
42857         * modules/unictype/category-Cs: New file.
42858         * modules/unictype/category-Co: New file.
42859         * modules/unictype/category-Cn: New file.
42860         * modules/unictype/category-or: New file.
42861         * modules/unictype/category-of: New file.
42862         * modules/unictype/category-test: New file.
42863         * modules/unictype/category-test-withtable: New file.
42864         * modules/unictype/category-byname: New file.
42865         * modules/unictype/category-none: New file.
42866         * modules/unictype/category-and: New file.
42867         * modules/unictype/category-and-not: New file.
42868         * modules/unictype/category-name: New file.
42869         * modules/unictype/combining-class: New file.
42870         * modules/unictype/category-all: New file.
42871         * modules/unictype/bidicategory-all: New file.
42872         * modules/unictype/bidicategory-byname: New file.
42873         * modules/unictype/bidicategory-name: New file.
42874         * modules/unictype/bidicategory-of: New file.
42875         * modules/unictype/bidicategory-test: New file.
42876         * modules/unictype/decimal-digit: New file.
42877         * modules/unictype/digit: New file.
42878         * modules/unictype/numeric: New file.
42879         * modules/unictype/mirror: New file.
42880         * modules/unictype/property-white-space: New file.
42881         * modules/unictype/property-alphabetic: New file.
42882         * modules/unictype/property-other-alphabetic: New file.
42883         * modules/unictype/property-not-a-character: New file.
42884         * modules/unictype/property-default-ignorable-code-point: New file.
42885         * modules/unictype/property-other-default-ignorable-code-point: New
42886         file.
42887         * modules/unictype/property-deprecated: New file.
42888         * modules/unictype/property-logical-order-exception: New file.
42889         * modules/unictype/property-variation-selector: New file.
42890         * modules/unictype/property-private-use: New file.
42891         * modules/unictype/property-unassigned-code-value: New file.
42892         * modules/unictype/property-uppercase: New file.
42893         * modules/unictype/property-other-uppercase: New file.
42894         * modules/unictype/property-lowercase: New file.
42895         * modules/unictype/property-other-lowercase: New file.
42896         * modules/unictype/property-titlecase: New file.
42897         * modules/unictype/property-soft-dotted: New file.
42898         * modules/unictype/property-id-start: New file.
42899         * modules/unictype/property-other-id-start: New file.
42900         * modules/unictype/property-id-continue: New file.
42901         * modules/unictype/property-other-id-continue: New file.
42902         * modules/unictype/property-xid-start: New file.
42903         * modules/unictype/property-xid-continue: New file.
42904         * modules/unictype/property-pattern-white-space: New file.
42905         * modules/unictype/property-pattern-syntax: New file.
42906         * modules/unictype/property-join-control: New file.
42907         * modules/unictype/property-grapheme-base: New file.
42908         * modules/unictype/property-grapheme-extend: New file.
42909         * modules/unictype/property-other-grapheme-extend: New file.
42910         * modules/unictype/property-grapheme-link: New file.
42911         * modules/unictype/property-bidi-control: New file.
42912         * modules/unictype/property-bidi-left-to-right: New file.
42913         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42914         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42915         * modules/unictype/property-bidi-european-digit: New file.
42916         * modules/unictype/property-bidi-eur-num-separator: New file.
42917         * modules/unictype/property-bidi-eur-num-terminator: New file.
42918         * modules/unictype/property-bidi-arabic-digit: New file.
42919         * modules/unictype/property-bidi-common-separator: New file.
42920         * modules/unictype/property-bidi-block-separator: New file.
42921         * modules/unictype/property-bidi-segment-separator: New file.
42922         * modules/unictype/property-bidi-whitespace: New file.
42923         * modules/unictype/property-bidi-non-spacing-mark: New file.
42924         * modules/unictype/property-bidi-boundary-neutral: New file.
42925         * modules/unictype/property-bidi-pdf: New file.
42926         * modules/unictype/property-bidi-embedding-or-override: New file.
42927         * modules/unictype/property-bidi-other-neutral: New file.
42928         * modules/unictype/property-hex-digit: New file.
42929         * modules/unictype/property-ascii-hex-digit: New file.
42930         * modules/unictype/property-ideographic: New file.
42931         * modules/unictype/property-unified-ideograph: New file.
42932         * modules/unictype/property-radical: New file.
42933         * modules/unictype/property-ids-binary-operator: New file.
42934         * modules/unictype/property-ids-trinary-operator: New file.
42935         * modules/unictype/property-zero-width: New file.
42936         * modules/unictype/property-space: New file.
42937         * modules/unictype/property-non-break: New file.
42938         * modules/unictype/property-iso-control: New file.
42939         * modules/unictype/property-format-control: New file.
42940         * modules/unictype/property-dash: New file.
42941         * modules/unictype/property-hyphen: New file.
42942         * modules/unictype/property-punctuation: New file.
42943         * modules/unictype/property-line-separator: New file.
42944         * modules/unictype/property-paragraph-separator: New file.
42945         * modules/unictype/property-quotation-mark: New file.
42946         * modules/unictype/property-sentence-terminal: New file.
42947         * modules/unictype/property-terminal-punctuation: New file.
42948         * modules/unictype/property-currency-symbol: New file.
42949         * modules/unictype/property-math: New file.
42950         * modules/unictype/property-other-math: New file.
42951         * modules/unictype/property-paired-punctuation: New file.
42952         * modules/unictype/property-left-of-pair: New file.
42953         * modules/unictype/property-combining: New file.
42954         * modules/unictype/property-composite: New file.
42955         * modules/unictype/property-decimal-digit: New file.
42956         * modules/unictype/property-numeric: New file.
42957         * modules/unictype/property-diacritic: New file.
42958         * modules/unictype/property-extender: New file.
42959         * modules/unictype/property-ignorable-control: New file.
42960         * modules/unictype/property-test: New file.
42961         * modules/unictype/property-byname: New file.
42962         * modules/unictype/property-all: New file.
42963         * modules/unictype/scripts: New file.
42964         * modules/unictype/scripts-all: New file.
42965         * modules/unictype/block-of: New file.
42966         * modules/unictype/block-test: New file.
42967         * modules/unictype/block-list: New file.
42968         * modules/unictype/block-all: New file.
42969         * modules/unictype/syntax-c-whitespace: New file.
42970         * modules/unictype/syntax-java-whitespace: New file.
42971         * modules/unictype/syntax-c-ident: New file.
42972         * modules/unictype/syntax-java-ident: New file.
42973         * modules/unictype/ctype-alnum: New file.
42974         * modules/unictype/ctype-alpha: New file.
42975         * modules/unictype/ctype-cntrl: New file.
42976         * modules/unictype/ctype-digit: New file.
42977         * modules/unictype/ctype-graph: New file.
42978         * modules/unictype/ctype-lower: New file.
42979         * modules/unictype/ctype-print: New file.
42980         * modules/unictype/ctype-punct: New file.
42981         * modules/unictype/ctype-space: New file.
42982         * modules/unictype/ctype-upper: New file.
42983         * modules/unictype/ctype-xdigit: New file.
42984         * modules/unictype/ctype-blank: New file.
42985         * lib/unictype/bidi_byname.c: New file.
42986         * lib/unictype/bidi_name.c: New file.
42987         * lib/unictype/bidi_of.c: New file.
42988         * lib/unictype/bidi_test.c: New file.
42989         * lib/unictype/bitmap.h: New file.
42990         * lib/unictype/block_test.c: New file.
42991         * lib/unictype/blocks.c: New file.
42992         * lib/unictype/categ_C.c: New file.
42993         * lib/unictype/categ_Cc.c: New file.
42994         * lib/unictype/categ_Cf.c: New file.
42995         * lib/unictype/categ_Cn.c: New file.
42996         * lib/unictype/categ_Co.c: New file.
42997         * lib/unictype/categ_Cs.c: New file.
42998         * lib/unictype/categ_L.c: New file.
42999         * lib/unictype/categ_Ll.c: New file.
43000         * lib/unictype/categ_Lm.c: New file.
43001         * lib/unictype/categ_Lo.c: New file.
43002         * lib/unictype/categ_Lt.c: New file.
43003         * lib/unictype/categ_Lu.c: New file.
43004         * lib/unictype/categ_M.c: New file.
43005         * lib/unictype/categ_Mc.c: New file.
43006         * lib/unictype/categ_Me.c: New file.
43007         * lib/unictype/categ_Mn.c: New file.
43008         * lib/unictype/categ_N.c: New file.
43009         * lib/unictype/categ_Nd.c: New file.
43010         * lib/unictype/categ_Nl.c: New file.
43011         * lib/unictype/categ_No.c: New file.
43012         * lib/unictype/categ_P.c: New file.
43013         * lib/unictype/categ_Pc.c: New file.
43014         * lib/unictype/categ_Pd.c: New file.
43015         * lib/unictype/categ_Pe.c: New file.
43016         * lib/unictype/categ_Pf.c: New file.
43017         * lib/unictype/categ_Pi.c: New file.
43018         * lib/unictype/categ_Po.c: New file.
43019         * lib/unictype/categ_Ps.c: New file.
43020         * lib/unictype/categ_S.c: New file.
43021         * lib/unictype/categ_Sc.c: New file.
43022         * lib/unictype/categ_Sk.c: New file.
43023         * lib/unictype/categ_Sm.c: New file.
43024         * lib/unictype/categ_So.c: New file.
43025         * lib/unictype/categ_Z.c: New file.
43026         * lib/unictype/categ_Zl.c: New file.
43027         * lib/unictype/categ_Zp.c: New file.
43028         * lib/unictype/categ_Zs.c: New file.
43029         * lib/unictype/categ_and.c: New file.
43030         * lib/unictype/categ_and_not.c: New file.
43031         * lib/unictype/categ_byname.c: New file.
43032         * lib/unictype/categ_name.c: New file.
43033         * lib/unictype/categ_none.c: New file.
43034         * lib/unictype/categ_of.c: New file.
43035         * lib/unictype/categ_or.c: New file.
43036         * lib/unictype/categ_test.c: New file.
43037         * lib/unictype/combining.c: New file.
43038         * lib/unictype/ctype_alnum.c: New file.
43039         * lib/unictype/ctype_alpha.c: New file.
43040         * lib/unictype/ctype_blank.c: New file.
43041         * lib/unictype/ctype_cntrl.c: New file.
43042         * lib/unictype/ctype_digit.c: New file.
43043         * lib/unictype/ctype_graph.c: New file.
43044         * lib/unictype/ctype_lower.c: New file.
43045         * lib/unictype/ctype_print.c: New file.
43046         * lib/unictype/ctype_punct.c: New file.
43047         * lib/unictype/ctype_space.c: New file.
43048         * lib/unictype/ctype_upper.c: New file.
43049         * lib/unictype/ctype_xdigit.c: New file.
43050         * lib/unictype/decdigit.c: New file.
43051         * lib/unictype/digit.c: New file.
43052         * lib/unictype/identsyntaxmap.h: New file.
43053         * lib/unictype/mirror.c: New file.
43054         * lib/unictype/numeric.c: New file.
43055         * lib/unictype/pr_alphabetic.c: New file.
43056         * lib/unictype/pr_ascii_hex_digit.c: New file.
43057         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43058         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43059         * lib/unictype/pr_bidi_block_separator.c: New file.
43060         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43061         * lib/unictype/pr_bidi_common_separator.c: New file.
43062         * lib/unictype/pr_bidi_control.c: New file.
43063         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43064         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43065         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43066         * lib/unictype/pr_bidi_european_digit.c: New file.
43067         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43068         * lib/unictype/pr_bidi_left_to_right.c: New file.
43069         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43070         * lib/unictype/pr_bidi_other_neutral.c: New file.
43071         * lib/unictype/pr_bidi_pdf.c: New file.
43072         * lib/unictype/pr_bidi_segment_separator.c: New file.
43073         * lib/unictype/pr_bidi_whitespace.c: New file.
43074         * lib/unictype/pr_byname.c: New file.
43075         * lib/unictype/pr_byname.gperf: New file.
43076         * lib/unictype/pr_combining.c: New file.
43077         * lib/unictype/pr_composite.c: New file.
43078         * lib/unictype/pr_currency_symbol.c: New file.
43079         * lib/unictype/pr_dash.c: New file.
43080         * lib/unictype/pr_decimal_digit.c: New file.
43081         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43082         * lib/unictype/pr_deprecated.c: New file.
43083         * lib/unictype/pr_diacritic.c: New file.
43084         * lib/unictype/pr_extender.c: New file.
43085         * lib/unictype/pr_format_control.c: New file.
43086         * lib/unictype/pr_grapheme_base.c: New file.
43087         * lib/unictype/pr_grapheme_extend.c: New file.
43088         * lib/unictype/pr_grapheme_link.c: New file.
43089         * lib/unictype/pr_hex_digit.c: New file.
43090         * lib/unictype/pr_hyphen.c: New file.
43091         * lib/unictype/pr_id_continue.c: New file.
43092         * lib/unictype/pr_id_start.c: New file.
43093         * lib/unictype/pr_ideographic.c: New file.
43094         * lib/unictype/pr_ids_binary_operator.c: New file.
43095         * lib/unictype/pr_ids_trinary_operator.c: New file.
43096         * lib/unictype/pr_ignorable_control.c: New file.
43097         * lib/unictype/pr_iso_control.c: New file.
43098         * lib/unictype/pr_join_control.c: New file.
43099         * lib/unictype/pr_left_of_pair.c: New file.
43100         * lib/unictype/pr_line_separator.c: New file.
43101         * lib/unictype/pr_logical_order_exception.c: New file.
43102         * lib/unictype/pr_lowercase.c: New file.
43103         * lib/unictype/pr_math.c: New file.
43104         * lib/unictype/pr_non_break.c: New file.
43105         * lib/unictype/pr_not_a_character.c: New file.
43106         * lib/unictype/pr_numeric.c: New file.
43107         * lib/unictype/pr_other_alphabetic.c: New file.
43108         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43109         * lib/unictype/pr_other_grapheme_extend.c: New file.
43110         * lib/unictype/pr_other_id_continue.c: New file.
43111         * lib/unictype/pr_other_id_start.c: New file.
43112         * lib/unictype/pr_other_lowercase.c: New file.
43113         * lib/unictype/pr_other_math.c: New file.
43114         * lib/unictype/pr_other_uppercase.c: New file.
43115         * lib/unictype/pr_paired_punctuation.c: New file.
43116         * lib/unictype/pr_paragraph_separator.c: New file.
43117         * lib/unictype/pr_pattern_syntax.c: New file.
43118         * lib/unictype/pr_pattern_white_space.c: New file.
43119         * lib/unictype/pr_private_use.c: New file.
43120         * lib/unictype/pr_punctuation.c: New file.
43121         * lib/unictype/pr_quotation_mark.c: New file.
43122         * lib/unictype/pr_radical.c: New file.
43123         * lib/unictype/pr_sentence_terminal.c: New file.
43124         * lib/unictype/pr_soft_dotted.c: New file.
43125         * lib/unictype/pr_space.c: New file.
43126         * lib/unictype/pr_terminal_punctuation.c: New file.
43127         * lib/unictype/pr_test.c: New file.
43128         * lib/unictype/pr_titlecase.c: New file.
43129         * lib/unictype/pr_unassigned_code_value.c: New file.
43130         * lib/unictype/pr_unified_ideograph.c: New file.
43131         * lib/unictype/pr_uppercase.c: New file.
43132         * lib/unictype/pr_variation_selector.c: New file.
43133         * lib/unictype/pr_white_space.c: New file.
43134         * lib/unictype/pr_xid_continue.c: New file.
43135         * lib/unictype/pr_xid_start.c: New file.
43136         * lib/unictype/pr_zero_width.c: New file.
43137         * lib/unictype/scripts.c: New file.
43138         * lib/unictype/sy_c_ident.c: New file.
43139         * lib/unictype/sy_c_whitespace.c: New file.
43140         * lib/unictype/sy_java_ident.c: New file.
43141         * lib/unictype/sy_java_whitespace.c: New file.
43142
43143         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43144         Unicode 5.0.0.
43145         * lib/unictype/blocks.h: Likewise.
43146         * lib/unictype/categ_C.h: Likewise.
43147         * lib/unictype/categ_Cc.h: Likewise.
43148         * lib/unictype/categ_Cf.h: Likewise.
43149         * lib/unictype/categ_Cn.h: Likewise.
43150         * lib/unictype/categ_Co.h: Likewise.
43151         * lib/unictype/categ_Cs.h: Likewise.
43152         * lib/unictype/categ_L.h: Likewise.
43153         * lib/unictype/categ_Ll.h: Likewise.
43154         * lib/unictype/categ_Lm.h: Likewise.
43155         * lib/unictype/categ_Lo.h: Likewise.
43156         * lib/unictype/categ_Lt.h: Likewise.
43157         * lib/unictype/categ_Lu.h: Likewise.
43158         * lib/unictype/categ_M.h: Likewise.
43159         * lib/unictype/categ_Mc.h: Likewise.
43160         * lib/unictype/categ_Me.h: Likewise.
43161         * lib/unictype/categ_Mn.h: Likewise.
43162         * lib/unictype/categ_N.h: Likewise.
43163         * lib/unictype/categ_Nd.h: Likewise.
43164         * lib/unictype/categ_Nl.h: Likewise.
43165         * lib/unictype/categ_No.h: Likewise.
43166         * lib/unictype/categ_P.h: Likewise.
43167         * lib/unictype/categ_Pc.h: Likewise.
43168         * lib/unictype/categ_Pd.h: Likewise.
43169         * lib/unictype/categ_Pe.h: Likewise.
43170         * lib/unictype/categ_Pf.h: Likewise.
43171         * lib/unictype/categ_Pi.h: Likewise.
43172         * lib/unictype/categ_Po.h: Likewise.
43173         * lib/unictype/categ_Ps.h: Likewise.
43174         * lib/unictype/categ_S.h: Likewise.
43175         * lib/unictype/categ_Sc.h: Likewise.
43176         * lib/unictype/categ_Sk.h: Likewise.
43177         * lib/unictype/categ_Sm.h: Likewise.
43178         * lib/unictype/categ_So.h: Likewise.
43179         * lib/unictype/categ_Z.h: Likewise.
43180         * lib/unictype/categ_Zl.h: Likewise.
43181         * lib/unictype/categ_Zp.h: Likewise.
43182         * lib/unictype/categ_Zs.h: Likewise.
43183         * lib/unictype/categ_of.h: Likewise.
43184         * lib/unictype/combining.h: Likewise.
43185         * lib/unictype/ctype_alnum.h: Likewise.
43186         * lib/unictype/ctype_alpha.h: Likewise.
43187         * lib/unictype/ctype_blank.h: Likewise.
43188         * lib/unictype/ctype_cntrl.h: Likewise.
43189         * lib/unictype/ctype_digit.h: Likewise.
43190         * lib/unictype/ctype_graph.h: Likewise.
43191         * lib/unictype/ctype_lower.h: Likewise.
43192         * lib/unictype/ctype_print.h: Likewise.
43193         * lib/unictype/ctype_punct.h: Likewise.
43194         * lib/unictype/ctype_space.h: Likewise.
43195         * lib/unictype/ctype_upper.h: Likewise.
43196         * lib/unictype/ctype_xdigit.h: Likewise.
43197         * lib/unictype/decdigit.h: Likewise.
43198         * lib/unictype/digit.h: Likewise.
43199         * lib/unictype/mirror.h: Likewise.
43200         * lib/unictype/numeric.h: Likewise.
43201         * lib/unictype/pr_alphabetic.h: Likewise.
43202         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43203         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43204         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43205         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43206         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43207         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43208         * lib/unictype/pr_bidi_control.h: Likewise.
43209         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43210         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43211         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43212         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43213         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43214         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43215         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43216         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43217         * lib/unictype/pr_bidi_pdf.h: Likewise.
43218         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43219         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43220         * lib/unictype/pr_combining.h: Likewise.
43221         * lib/unictype/pr_composite.h: Likewise.
43222         * lib/unictype/pr_currency_symbol.h: Likewise.
43223         * lib/unictype/pr_dash.h: Likewise.
43224         * lib/unictype/pr_decimal_digit.h: Likewise.
43225         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43226         * lib/unictype/pr_deprecated.h: Likewise.
43227         * lib/unictype/pr_diacritic.h: Likewise.
43228         * lib/unictype/pr_extender.h: Likewise.
43229         * lib/unictype/pr_format_control.h: Likewise.
43230         * lib/unictype/pr_grapheme_base.h: Likewise.
43231         * lib/unictype/pr_grapheme_extend.h: Likewise.
43232         * lib/unictype/pr_grapheme_link.h: Likewise.
43233         * lib/unictype/pr_hex_digit.h: Likewise.
43234         * lib/unictype/pr_hyphen.h: Likewise.
43235         * lib/unictype/pr_id_continue.h: Likewise.
43236         * lib/unictype/pr_id_start.h: Likewise.
43237         * lib/unictype/pr_ideographic.h: Likewise.
43238         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43239         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43240         * lib/unictype/pr_ignorable_control.h: Likewise.
43241         * lib/unictype/pr_iso_control.h: Likewise.
43242         * lib/unictype/pr_join_control.h: Likewise.
43243         * lib/unictype/pr_left_of_pair.h: Likewise.
43244         * lib/unictype/pr_line_separator.h: Likewise.
43245         * lib/unictype/pr_logical_order_exception.h: Likewise.
43246         * lib/unictype/pr_lowercase.h: Likewise.
43247         * lib/unictype/pr_math.h: Likewise.
43248         * lib/unictype/pr_non_break.h: Likewise.
43249         * lib/unictype/pr_not_a_character.h: Likewise.
43250         * lib/unictype/pr_numeric.h: Likewise.
43251         * lib/unictype/pr_other_alphabetic.h: Likewise.
43252         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43253         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43254         * lib/unictype/pr_other_id_continue.h: Likewise.
43255         * lib/unictype/pr_other_id_start.h: Likewise.
43256         * lib/unictype/pr_other_lowercase.h: Likewise.
43257         * lib/unictype/pr_other_math.h: Likewise.
43258         * lib/unictype/pr_other_uppercase.h: Likewise.
43259         * lib/unictype/pr_paired_punctuation.h: Likewise.
43260         * lib/unictype/pr_paragraph_separator.h: Likewise.
43261         * lib/unictype/pr_pattern_syntax.h: Likewise.
43262         * lib/unictype/pr_pattern_white_space.h: Likewise.
43263         * lib/unictype/pr_private_use.h: Likewise.
43264         * lib/unictype/pr_punctuation.h: Likewise.
43265         * lib/unictype/pr_quotation_mark.h: Likewise.
43266         * lib/unictype/pr_radical.h: Likewise.
43267         * lib/unictype/pr_sentence_terminal.h: Likewise.
43268         * lib/unictype/pr_soft_dotted.h: Likewise.
43269         * lib/unictype/pr_space.h: Likewise.
43270         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43271         * lib/unictype/pr_titlecase.h: Likewise.
43272         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43273         * lib/unictype/pr_unified_ideograph.h: Likewise.
43274         * lib/unictype/pr_uppercase.h: Likewise.
43275         * lib/unictype/pr_variation_selector.h: Likewise.
43276         * lib/unictype/pr_white_space.h: Likewise.
43277         * lib/unictype/pr_xid_continue.h: Likewise.
43278         * lib/unictype/pr_xid_start.h: Likewise.
43279         * lib/unictype/pr_zero_width.h: Likewise.
43280         * lib/unictype/scripts.h: Likewise.
43281         * lib/unictype/scripts_byname.gperf: Likewise.
43282         * lib/unictype/sy_c_ident.h: Likewise.
43283         * lib/unictype/sy_c_whitespace.h: Likewise.
43284         * lib/unictype/sy_java_ident.h: Likewise.
43285         * lib/unictype/sy_java_whitespace.h: Likewise.
43286
43287         * lib/unictype/Makefile: New file.
43288         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43289         glibc.
43290         * lib/unictype/3level.h: New file, copied from glibc.
43291         * lib/unictype/3levelbit.h: New file.
43292
43293 2007-11-11  Bruno Haible  <bruno@clisp.org>
43294
43295         * modules/gperf: New file.
43296         * modules/iconv_open (Depends-on): Add it.
43297         (Makefile.am): Remove the GPERF definition.
43298
43299 2007-11-11  Bruno Haible  <bruno@clisp.org>
43300
43301         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43302         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43303
43304 2007-11-11  Bruno Haible  <bruno@clisp.org>
43305
43306         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43307         (usage): Remove function.
43308
43309 2007-11-11  Bruno Haible  <bruno@clisp.org>
43310
43311         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43312         gl_FUNC_CEILF_LIBS.
43313         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43314         gl_FUNC_CEIL_LIBS.
43315         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43316         gl_FUNC_CEILL_LIBS.
43317         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43318         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43319         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43320
43321 2007-11-11  Bruno Haible  <bruno@clisp.org>
43322
43323         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43324         roundf were declared but do not exist on functions.
43325         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43326         roundl were declared but do not exist on functions.
43327         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43328         HAVE_FLOORL_AND_CEILL, respectively.
43329         Needed for Sun C on Solaris 10.
43330
43331 2007-11-11  Bruno Haible  <bruno@clisp.org>
43332
43333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43334         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43335         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43336         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43337         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43338         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43339         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43340         HAVE_DECL_ROUNDF.
43341         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43342         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43344         of HAVE_DECL_ROUND*.
43345         * modules/math (Makefile.am): Update.
43346
43347 2007-11-10  Bruno Haible  <bruno@clisp.org>
43348
43349         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43350         ptrdiff_t as m4/intl.m4.
43351
43352 2007-11-10  Jim Meyering  <meyering@redhat.com>
43353
43354         Avoid link failure for the argmatch test.
43355         * tests/test-argmatch.c (usage): Define function to avoid a link
43356         failure: argmatch_die requires a usage function.
43357
43358 2007-11-09  Bruno Haible  <bruno@clisp.org>
43359
43360         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43361         * doc/functions/vsnprintf.texi: Likewise.
43362         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43363         with a size argument < 2.
43364
43365 2007-11-09  Bruno Haible  <bruno@clisp.org>
43366
43367         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43368         buffer. Fixes an inefficiency introduced on 2007-11-03.
43369
43370 2007-11-09  Bruno Haible  <bruno@clisp.org>
43371
43372         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43373         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43374
43375 2007-11-08  Jim Meyering  <meyering@redhat.com>
43376
43377         Change cache variable name prefix "jm_" to "gl_" everywhere.
43378         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43379         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43380         * m4/uptime.m4: s/gl_/jm_/
43381
43382 2007-11-07  Bruno Haible  <bruno@clisp.org>
43383
43384         Update to GNU gettext 0.17.
43385         * m4/intl.m4: Update to GNU gettext 0.17.
43386         * m4/po.m4: Likewise.
43387         * modules/gettext (Files): Remove m4/ulonglong.m4.
43388         (configure.ac): Require gettext infrastructure from version 0.17.
43389
43390 2007-11-06  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43393         symbolic values are not defined in a public header.
43394         * lib/freadable.c (freadable) [QNX]: Likewise.
43395         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43396         * lib/freading.c (freading) [QNX]: Likewise.
43397         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43398         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43399         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43400         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43401         Reported by Alain Magloire.
43402
43403         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43404
43405 2007-11-05  Bruno Haible  <bruno@clisp.org>
43406
43407         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43408         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43409         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43410         Reported by Eric Blake.
43411
43412 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43413             Bruno Haible  <bruno@clisp.org>
43414
43415         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43416         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43417         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43418         (malloc): Undefine also before including <stdlib.h>.
43419         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43420         Needed on OSF/1 4.0.
43421
43422 2007-11-05  Jim Meyering  <meyering@redhat.com>
43423
43424         git-version-gen: sync from coreutils.
43425         * build-aux/git-version-gen: Add comments.
43426         Change the first '-' to '.' in the snapshot version string,
43427         e.g., 6.9-377-08144 -> 6.9.377-08144
43428         Remove first parameter.
43429         Don't declare a version "-dirty" merely because a time
43430         stamp has changed.
43431
43432 2007-11-04  Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/lock.h: Protect all macro definitions containing an 'if'
43435         statement through a "do { ... } while (0)".
43436         * lib/tls.h: Likewise.
43437
43438 2007-11-04  Bruno Haible  <bruno@clisp.org>
43439
43440         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43441
43442 2007-11-04  Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43445         * modules/fprintf-posix (Depends-on): Add nocrash.
43446         * modules/snprintf-posix (Depends-on): Likewise.
43447         * modules/sprintf-posix (Depends-on): Likewise.
43448         * modules/vasnprintf-posix (Depends-on): Likewise.
43449         * modules/vasprintf-posix (Depends-on): Likewise.
43450         * modules/vfprintf-posix (Depends-on): Likewise.
43451         * modules/vsnprintf-posix (Depends-on): Likewise.
43452         * modules/vsprintf-posix (Depends-on): Likewise.
43453         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43454         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43455         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43456         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43457         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43458         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43459         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43460
43461 2007-11-04  Bruno Haible  <bruno@clisp.org>
43462
43463         * modules/nocrash: New file.
43464         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43465         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43466
43467 2007-11-04  Bruno Haible  <bruno@clisp.org>
43468
43469         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43470         precision handling.
43471         * tests/test-vasprintf-posix.c (test_function): Likewise.
43472         * tests/test-snprintf-posix.h (test_function): Likewise.
43473         * tests/test-sprintf-posix.h (test_function): Likewise.
43474
43475         Fix *printf behaviour for large precisions on mingw and BeOS.
43476         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43477         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43479         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43481         gl_PRINTF_PRECISION and test its result. Invoke
43482         gl_PREREQ_VASNPRINTF_PRECISION.
43483         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43484         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43485         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43486         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43488         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43489         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43490         * doc/functions/fprintf.texi: Update.
43491         * doc/functions/printf.texi: Update.
43492         * doc/functions/snprintf.texi: Update.
43493         * doc/functions/sprintf.texi: Update.
43494         * doc/functions/vfprintf.texi: Update.
43495         * doc/functions/vprintf.texi: Update.
43496         * doc/functions/vsnprintf.texi: Update.
43497         * doc/functions/vsprintf.texi: Update.
43498
43499 2007-11-04  Bruno Haible  <bruno@clisp.org>
43500
43501         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43502
43503 2007-11-04  Bruno Haible  <bruno@clisp.org>
43504
43505         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43506         Reported by Sylvain Beucler <beuc@gnu.org>.
43507
43508 2007-11-03  Bruno Haible  <bruno@clisp.org>
43509
43510         * tests/test-fprintf-posix2.sh: New file.
43511         * tests/test-fprintf-posix2.c: New file.
43512         * modules/fprintf-posix-tests (Files): Add them.
43513         (TESTS): Add test-fprintf-posix2.sh.
43514         (configure.ac): Check for getrlimit and setrlimit.
43515         (check_PROGRAMS): Add test-fprintf-posix2.
43516
43517         * tests/test-printf-posix2.sh: New file.
43518         * tests/test-printf-posix2.c: New file.
43519         * modules/printf-posix-tests (Files): Add them.
43520         (TESTS): Add test-printf-posix2.sh.
43521         (configure.ac): Check for getrlimit and setrlimit.
43522         (check_PROGRAMS): Add test-printf-posix2.
43523
43524         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43525         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43526         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43527         (decode_double): New function, copied from decode_long_double.
43528         (scale10_round_decimal_decoded): New function, extracted from
43529         scale10_round_decimal_long_double.
43530         (scale10_round_decimal_long_double): Use it.
43531         (scale10_round_decimal_double): New function.
43532         (floorlog10): New function.
43533         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43535         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43537         gl_PRINTF_ENOMEM and test its result. Invoke
43538         gl_PREREQ_VASNPRINTF_ENOMEM.
43539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43542         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43543         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43545         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43546         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43547         * modules/snprintf-posix (Depends-on): Likewise.
43548         * modules/sprintf-posix (Depends-on): Likewise.
43549         * modules/vasnprintf-posix (Depends-on): Likewise.
43550         * modules/vasprintf-posix (Depends-on): Likewise.
43551         * modules/vfprintf-posix (Depends-on): Likewise.
43552         * modules/vsnprintf-posix (Depends-on): Likewise.
43553         * modules/vsprintf-posix (Depends-on): Likewise.
43554         * doc/functions/fprintf.texi: Update.
43555         * doc/functions/printf.texi: Update.
43556         * doc/functions/snprintf.texi: Update.
43557         * doc/functions/sprintf.texi: Update.
43558         * doc/functions/vfprintf.texi: Update.
43559         * doc/functions/vprintf.texi: Update.
43560         * doc/functions/vsnprintf.texi: Update.
43561         * doc/functions/vsprintf.texi: Update.
43562
43563 2007-11-03  Bruno Haible  <bruno@clisp.org>
43564
43565         * modules/frexp-nolibm-tests: New file.
43566
43567         * modules/frexp-nolibm: New file.
43568         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43569
43570 2007-11-03  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43573         value is C99 compliant.
43574         Needed for OSF/1 5.1.
43575
43576 2007-11-03  Bruno Haible  <bruno@clisp.org>
43577
43578         Fix out-of-memory handling of vasnprintf.
43579         * lib/printf-parse.c: Include <errno.h>.
43580         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43581         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43582         is already set.
43583
43584 2007-11-02  Eric Blake  <ebb9@byu.net>
43585
43586         Fix tests on cygwin.
43587         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43588
43589 2007-11-01  Bruno Haible  <bruno@clisp.org>
43590
43591         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43592         warning.
43593         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43594         needed for POSIX compatibility.
43595
43596 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43597
43598         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43599         for compatibility with GNU.
43600
43601 2007-11-01  Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43604         (putenv): Renamed from rpl_putenv. Change argument type from
43605         'const char *' to 'char *'.
43606         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43607         of defining putenv in config.h, just set REPLACE_PUTENV.
43608         * modules/putenv (Depends-on): Add stdlib.
43609         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43610         (Include): Use <stdlib.h>.
43611         * lib/stdlib.in.h (putenv): New declaration.
43612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43613         REPLACE_PUTENV.
43614         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43615         REPLACE_PUTENV.
43616         Needed for MacOS X 10.5.0.
43617         Reported by Peter O'Gorman <peter@pogma.com>.
43618
43619 2007-11-01  Jim Meyering  <meyering@redhat.com>
43620
43621         Treat an empty date string exactly like "0".
43622         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43623         if the remaining date string (to be parsed) is empty, use "0".
43624         Reported by Mischa Molhoek and discussed in this thread:
43625         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43626
43627 2007-10-31  Bruno Haible  <bruno@clisp.org>
43628
43629         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43630         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43631         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43632         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43633         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43634         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43635
43636 2007-10-31  Bruno Haible  <bruno@clisp.org>
43637
43638         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43639         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43640         (AC_TYPE_LONG_LONG_INT): Use it.
43641         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43642         it as well.
43643         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43644         to m4/longlong.m4.
43645         * modules/stdint (Files): Remove m4/ulonglong.m4.
43646         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43647         m4/ulonglong.m4.
43648         * modules/strtoumax (Files): Likewise.
43649
43650 2007-10-30  Bruno Haible  <bruno@clisp.org>
43651
43652         * modules/xvasprintf-posix: New file.
43653         Suggested by Eric Blake.
43654
43655 2007-10-30  Bruno Haible  <bruno@clisp.org>
43656
43657         * modules/xprintf-posix-tests: New file.
43658         * tests/test-xprintf-posix.sh: New file.
43659         * tests/test-xprintf-posix.c: New file.
43660         * tests/test-xfprintf-posix.c: New file.
43661
43662         * modules/xprintf-posix: New file.
43663
43664 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43665
43666         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43667         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43668         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43669
43670 2007-10-29  Bruno Haible  <bruno@clisp.org>
43671
43672         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43673         contain the special marker '_cv_'.
43674         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43675         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43676         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43677         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43678         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43679         Reported by Ralf Wildenhues.
43680
43681 2007-10-29  Bruno Haible  <bruno@clisp.org>
43682
43683         * gnulib-tool (func_import): When --lgpl is not specified, set
43684         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43685         GPLv3.
43686         Reported by Simon Josefsson.
43687
43688 2007-10-28  Bruno Haible  <bruno@clisp.org>
43689
43690         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43691         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43692         HAVE_DECL_ISFINITE.
43693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43694         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43695         HAVE_DECL_ISFINITE.
43696
43697 2007-10-28  Bruno Haible  <bruno@clisp.org>
43698
43699         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43700         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43701
43702 2007-10-28  Bruno Haible  <bruno@clisp.org>
43703
43704         Fix link errors with Sun C 5.0 on Solaris 10.
43705         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43706         function is declared but not present in the compiler's libm.
43707         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43708         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43709         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43710         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43711         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43712         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43713         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43715         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43716         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43717         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43718         HAVE_DECL_FLOORL.
43719
43720 2007-10-28  Bruno Haible  <bruno@clisp.org>
43721
43722         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43723         gl_FUNC_FLOORL. Cache the result.
43724         (gl_FUNC_FLOORL): Use it.
43725         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43726         gl_FUNC_CEILL. Cache the result.
43727         (gl_FUNC_CEILL): Use it.
43728
43729         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43730         gl_FUNC_FLOOR. Cache the result.
43731         (gl_FUNC_FLOOR): Use it.
43732         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43733         gl_FUNC_CEIL. Cache the result.
43734         (gl_FUNC_CEIL): Use it.
43735
43736         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43737         gl_FUNC_FLOORF. Cache the result.
43738         (gl_FUNC_FLOORF): Use it.
43739         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43740         gl_FUNC_CEILF. Cache the result.
43741         (gl_FUNC_CEILF): Use it.
43742
43743 2007-10-28  Bruno Haible  <bruno@clisp.org>
43744
43745         * gnulib-tool: Allow specifying the LGPL version number through
43746         --lgpl=2 or --lgpl=3.
43747         (func_usage): Document --lgpl with argument.
43748         Handle --lgpl=... arguments.
43749         (func_import): Recognize also gl_LGPL calls with an argument. When
43750         --lgpl=2 is used and the module's license is just LGPL, report an
43751         error. Set sed_transform_lib_file according to the lgpl variable. In
43752         the generated files, use --lgpl or gl_LGPL invocations with argument,
43753         if necessary.
43754         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43755         an LGPv2+ license.
43756         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43757         gl_LGPL macro.
43758
43759 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43760             Bruno Haible  <bruno@clisp.org>
43761
43762         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43763         (u16_uctomb_aux): Likewise.
43764         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43765         !HAVE_INLINE.
43766         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43767
43768 2007-10-28  Bruno Haible  <bruno@clisp.org>
43769
43770         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43771         Invoke AM_GETTEXT_OPTION if it exists.
43772         * modules/vasprintf: Likewise.
43773         * modules/verror: Likewise.
43774         * modules/xprintf: Likewise.
43775         * modules/xvasprintf: Likewise.
43776
43777 2007-10-27  Ben Pfaff  <blp@gnu.org>
43778
43779         * lib/math.in.h: Define isfinite macro and prototypes for
43780         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43781         implementations.
43782         * m4/math_h.m4: New substitutions for isfinite module.
43783         * lib/isfinite.c: New file.
43784         * m4/isfinite.m4: New file.
43785         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43786         * modules/isfinite: New file.
43787         * modules/isfinite-tests: New file.
43788         * tests/tests-isfinite.c: New file.
43789         * doc/functions/isfinite.texi: Mention isfinite module.
43790         * MODULES.html.sh: Mention new module.
43791
43792 2007-10-27  Ben Pfaff  <blp@gnu.org>
43793
43794         Ralf Wildenhues reported that Tru64 4.0D declares the round
43795         functions but does not have definitions.
43796         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43797         cannot be found in any library, set the output variable to
43798         "missing" instead of "".
43799         * m4/round.m4: Also use our substitute if we cannot find round in
43800         any library, even if it is declared.
43801         * m4/roundf.m4: Likewise for roundf.
43802         * m4/roundl.m4: Likewise for roundl.
43803         * lib/math.in.h: Undefine roundf, round, roundl before defining
43804         their replacements, to allow for hypothetical systems where these
43805         may be defined as macros but not available in libraries.
43806
43807 2007-10-27  Bruno Haible  <bruno@clisp.org>
43808
43809         * doc/gnulib.texi: Invoke @firstparagraphindent.
43810         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43811         changes in gnulib.
43812         (Source changes): New section.
43813
43814 2007-10-26  Bruno Haible  <bruno@clisp.org>
43815
43816         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43817         borrowed from autoconf.
43818
43819 2007-10-26  Bruno Haible  <bruno@clisp.org>
43820
43821         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43822         strerror returned the empty string. Needed on HP-UX 11.00.
43823
43824 2007-10-24  Micah Cowan  <micah@cowan.name>
43825
43826         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43827         * build-aux/bootstrap: Remove support for now-unnecessary option,
43828         --cvs-user, and envvars CVS_USER, CVS_RSH.
43829
43830 2007-10-24  Jim Meyering  <meyering@redhat.com>
43831
43832         Avoid diagnostics from sha1sum when there is no cached checksum.
43833         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43834         if the po.s1 file hasn't been created yet.
43835
43836         * build-aux/bootstrap: Sync from coreutils:
43837         2007-10-24  Jim Meyering  <meyering@redhat.com>
43838         Get gnulib from the git repository, not from an obsolete cvs one.
43839         * build-aux/bootstrap: Suggestion from Micah Cowan.
43840         2007-10-04  Jim Meyering  <jim@meyering.net>
43841         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43842         (update_po_files): Work also when there are no .po files in po/.
43843
43844 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43845
43846         * README: Append ".git" to git and cg examples.
43847         Problem reported by Benoit Sigoure.
43848
43849 2007-10-23  Micah Cowan  <micah@cowan.name>
43850
43851         * users.txt: Add wget.
43852
43853 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43854
43855         Fix linking of some unistdio tests on FreeBSD.
43856         * modules/unistdio/u16-vsnprintf-tests
43857         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43858         * modules/unistdio/u16-vsprintf-tests
43859         (test_u16_vsnprintf1_LDADD): Likewise.
43860         * modules/unistdio/u32-vsnprintf-tests
43861         (test_u32_vsnprintf1_LDADD): Likewise.
43862         * modules/unistdio/u32-vsprintf-tests
43863         (test_u32_vsprintf1_LDADD): Likewise.
43864         * modules/unistdio/u8-vsnprintf-tests
43865         (test_u8_vsnprintf1_LDADD): Likewise.
43866         * modules/unistdio/u8-vsprintf-tests
43867         (test_u8_vsprintf1_LDADD): Likewise.
43868         * modules/unistdio/ulc-vsnprintf-tests
43869         (test_ulc_vsnprintf1_LDADD): Likewise.
43870         * modules/unistdio/ulc-vsprintf-tests
43871         (test_ulc_vsprintf1_LDADD): Likewise.
43872
43873         Fix linking of some uniconv tests on FreeBSD.
43874         * modules/uniconv/u16-conv-from-enc-tests
43875         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43876         * modules/uniconv/u16-conv-to-enc-tests
43877         (test_u16_conv_to_enc_LDADD): Likewise.
43878         * modules/uniconv/u16-strconv-from-enc-tests
43879         (test_u16_strconv_from_enc_LDADD): Likewise.
43880         * modules/uniconv/u16-strconv-to-enc-tests
43881         (test_u16_strconv_to_enc_LDADD): Likewise.
43882         * modules/uniconv/u32-conv-from-enc-tests
43883         (test_u32_conv_from_enc_LDADD): Likewise.
43884         * modules/uniconv/u32-conv-to-enc-tests
43885         (test_u32_conv_to_enc_LDADD): Likewise.
43886         * modules/uniconv/u32-strconv-from-enc-tests
43887         (test_u32_strconv_from_enc_LDADD): Likewise.
43888         * modules/uniconv/u32-strconv-to-enc-tests
43889         (test_u32_strconv_to_enc_LDADD): Likewise.
43890         * modules/uniconv/u8-conv-from-enc-tests
43891         (test_u8_conv_from_enc_LDADD): Likewise.
43892         * modules/uniconv/u8-conv-to-enc-tests
43893         (test_u8_conv_to_enc_LDADD): Likewise.
43894         * modules/uniconv/u8-strconv-from-enc-tests
43895         (test_u8_strconv_from_enc_LDADD): Likewise.
43896         * modules/uniconv/u8-strconv-to-enc-tests
43897         (test_u8_strconv_to_enc_LDADD): Likewise.
43898
43899 2007-10-22  Bruno Haible  <bruno@clisp.org>
43900
43901         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43902         size.
43903
43904 2007-10-22  Eric Blake  <ebb9@byu.net>
43905
43906         Tweak x*printf documentation.
43907         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43908         variable name and comments.
43909         Suggested by Bruno Haible.
43910
43911 2007-10-22  Bruno Haible  <bruno@clisp.org>
43912
43913         * lib/acl.c (copy_acl): Fix file name in comment.
43914
43915 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43916
43917         Fix Tru64 problem with stdbool.h.
43918         * lib/stdbool.in.h (false, true):
43919         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43920         Don't declare as an enum in this situation; it runs afoul of Tru64.
43921         Problem reported by Steven M. Schweda in
43922         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43923
43924 2007-10-22  Eric Blake  <ebb9@byu.net>
43925
43926         Also wrap vf?printf.
43927         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43928         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43929         (xvprintf, xvfprintf): New functions.
43930
43931 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43932
43933         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43934         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43935
43936         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43937         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43938
43939 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43940
43941         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43942         by Bruno Haible.
43943
43944 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43945
43946         * lib/getloadavg.c
43947         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43948         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43949
43950         * tests/test-i-ring.c: Work for C89.
43951
43952 2007-10-22  Bruno Haible  <bruno@clisp.org>
43953
43954         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43955         -1u, in preprocessor expression, so that we don't test for the bug
43956         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43958
43959 2007-10-22  Eric Blake  <ebb9@byu.net>
43960
43961         * tests/test-yesno.sh: Silence stderr during test.
43962
43963 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43964
43965         * modules/crypto/gc-camellia: New file.
43966
43967         * m4/gc-camellia.m4: New file.
43968
43969         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43970
43971         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43972
43973 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43974
43975         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43976         --help to stdout.  Reported by sms@antinode.org (Steven
43977         M. Schweda).
43978
43979 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43980
43981         * users.txt: Fix link to libksba.
43982
43983 2007-10-21  Ben Pfaff  <blp@gnu.org>
43984
43985         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43986         round.c roundf implementation that depends on floorf and ceilf to
43987         be tested unconditionally.
43988
43989 2007-10-21  Ben Pfaff  <blp@gnu.org>
43990
43991         * m4/check-libm-func.m4: Removed.
43992         * m4/check-math-lib.m4: New file.
43993         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43994         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43995         definition and lack of AC_LIBOBJ([roundf]).
43996         * m4/roundl.m4: Ditto, and similarly for roundl.
43997         * modules/round: Reference new m4 file.
43998         * modules/roundf: Ditto.
43999         * modules/roundl: Ditto.
44000         * tests/test-round2.c (main): Use ROUND instead of round.
44001         Bug report from Bruno Haible.
44002
44003 2007-10-21  Bruno Haible  <bruno@clisp.org>
44004
44005         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44006         context.
44007
44008 2007-10-21  Bruno Haible  <bruno@clisp.org>
44009
44010         * tests/test-wcwidth.c (main): Allow negative result for some control
44011         characters.
44012
44013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44014         Needed on OSF/1 5.1.
44015
44016 2007-10-21  Bruno Haible  <bruno@clisp.org>
44017
44018         * tests/test-floorf1.c: Include isnanf.h.
44019         (main): Use isnanf() instead of isnan().
44020         * tests/test-ceilf1.c: Include isnanf.h.
44021         (main): Use isnanf() instead of isnan().
44022         * tests/test-truncf1.c: Include isnanf.h.
44023         (main): Use isnanf() instead of isnan().
44024         * tests/test-roundf1.c: Include isnanf.h.
44025         (main): Use isnanf() instead of isnan().
44026
44027 2007-10-21  Eric Blake  <ebb9@byu.net>
44028
44029         * users.txt: Update URL for m4.
44030
44031 2007-10-21  Bruno Haible  <bruno@clisp.org>
44032
44033         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44034
44035 2007-10-21  Bruno Haible  <bruno@clisp.org>
44036
44037         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44038         Git's management files if the CVS files are not present.
44039
44040 2007-10-20  Bruno Haible  <bruno@clisp.org>
44041
44042         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44043         gcc-3.4.x.
44044
44045 2007-10-20  Ben Pfaff  <blp@gnu.org>
44046
44047         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44048         implementations.
44049         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44050         * lib/round.c: New file.
44051         * lib/roundf.c: New file.
44052         * lib/roundl.c: New file.
44053         * m4/round.m4: New file.
44054         * m4/roundf.m4: New file.
44055         * m4/roundl.m4: New file.
44056         * m4/check-libm-func-m4: New file.
44057         * modules/math: Replace round, roundf, roundl related @VARS@ in
44058         math.in.h.
44059         * modules/round: New file.
44060         * modules/round-tests: New file.
44061         * modules/roundf: New file.
44062         * modules/roundf-tests: New file.
44063         * modules/roundl: New file.
44064         * modules/roundl-tests: New file.
44065         * tests/test-round1.c: New file.
44066         * tests/test-round2.c: New file.
44067         * tests/test-roundf1.c: New file.
44068         * tests/test-roundf2.c: New file.
44069         * tests/test-roundl.c: New file.
44070         * doc/functions/round.texi: Mention round module.
44071         * doc/functions/roundf.texi: Mention roundf module.
44072         * doc/functions/roundl.texi: Mention roundl module.
44073         * MODULES.html.sh: Mention new modules.
44074         Thanks to Bruno Haible for suggestions.
44075
44076 2007-10-20  Jim Meyering  <meyering@redhat.com>
44077
44078         * lib/xprintf.c: Include <config.h> unconditionally.
44079
44080         Change xprintf's license to GPL.
44081         * modules/xprintf (License): s/LGPL/GPL/, since this module
44082         depends on modules (exit and exitfail) which are GPL.
44083         Suggestion from Bruno Haible.
44084
44085         xprintf fixes.
44086         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44087         Use a clearer diagnostic.
44088         Patch from Bruno Haible.
44089
44090 2007-10-20  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44093         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44095
44096 2007-10-20  Bruno Haible  <bruno@clisp.org>
44097
44098         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44099         precision in the comparison result > x - 1 or similar.
44100         * tests/test-ceilf2.c (correct_result_p): Likewise.
44101         * tests/test-truncf2.c (correct_result_p): Likewise.
44102         * tests/test-trunc2.c (correct_result_p): Likewise.
44103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44104
44105 2007-10-20  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/ceil: New file.
44108         * m4/ceil.m4: New file.
44109         * doc/functions/ceil.texi: Mention the 'ceil' module.
44110
44111 2007-10-20  Bruno Haible  <bruno@clisp.org>
44112
44113         * modules/floor: New file.
44114         * m4/floor.m4: New file.
44115         * doc/functions/floor.texi: Mention the 'floor' module.
44116
44117 2007-10-20  Bruno Haible  <bruno@clisp.org>
44118
44119         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44120         of %a.
44121         * modules/floorf-tests (Depends-on): Likewise.
44122         * modules/truncf-tests (Depends-on): Likewise.
44123         * modules/trunc-tests (Depends-on): Likewise.
44124         Reported by Ben Pfaff.
44125
44126 2007-10-19  Jim Meyering  <meyering@redhat.com>
44127
44128         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44129         Don't bother testing specific errno values.  Just test ferror.
44130
44131         New module: xprintf
44132         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44133
44134 2007-10-19  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44137         syntax.
44138         * modules/javaexec (Makefile.am): Likewise.
44139         * modules/relocatable-prog (Makefile.am): Likewise.
44140         Suggested by Jim Meyering.
44141
44142 2007-10-18  Bruno Haible  <bruno@clisp.org>
44143
44144         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44145         Reported by Jim Meyering.
44146
44147 2007-10-18  Eric Blake  <ebb9@byu.net>
44148
44149         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44150
44151 2007-10-18  Bruno Haible  <bruno@clisp.org>
44152
44153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44154         the format string into writable memory. Needed in Fortify conditions.
44155
44156 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44157             Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44160         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44161         * modules/trim (Depends-on): Add mbchar.
44162         (configure.ac): Add gl_FUNC_MBRTOWC.
44163         (Makefile.am): Augment lib_SOURCES.
44164
44165 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44166
44167         Modify glob.c to use fstatat and dirfd, to simplify it.
44168         Suggested by Eric Blake.
44169         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44170         Don't include <stdbool.h>; not used.
44171         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44172         (link_exists_p): Simplify implementation, since we can now assume
44173         dirfd and fstatat.
44174         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44175
44176 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44177
44178         * gnulib-tool (func_get_dependencies): Fix sed script to
44179         match only tests.
44180
44181 2007-10-17  Bruno Haible  <bruno@clisp.org>
44182
44183         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44184         allow locale names without encoding suffix.
44185         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44186         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44187
44188 2007-10-16  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44191         * lib/getgroups.c (getgroups): Likewise.
44192         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44193
44194 2007-10-16  Bruno Haible  <bruno@clisp.org>
44195
44196         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44197         * modules/malloc-posix (License): Likewise.
44198         * modules/realloc-posix (License): Likewise.
44199         * modules/calloc-posix (License): Likewise.
44200         * modules/intprops (License): Change from GPL to LGPL, with
44201         Paul Eggert's approval.
44202
44203 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         Merge glibc changes into lib/glob.c.
44206
44207         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44208         2007-10-15 04:59:03 UTC.  Here are the changes:
44209
44210         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44211
44212         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44213
44214         * lib/glob.c: Add some branch prediction throughout.
44215
44216         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44217
44218         [BZ #5103]
44219         * lib/glob.c (glob): Recognize patterns starting \/.
44220
44221         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44222
44223         [BZ #3996]
44224         * lib/glob.c (attribute_hidden): Define if not defined.
44225         (glob): Unescape dirname, filename or username when needed and not
44226         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44227         is NULL.  Handle unescaped [ in pattern without closing ].
44228         Don't pass GLOB_CHECK down to recursive glob for directories.
44229         (__glob_pattern_type): New function.
44230         (__glob_pattern_p): Implement using __glob_pattern_type.
44231         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44232         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44233         Remove unreachable code.
44234
44235         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44236
44237         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44238         explain why there are no leaks.
44239
44240         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44241
44242         [BZ #3253]
44243         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44244         time, rather allocate increasingly bigger arrays of pointers, if
44245         possible with alloca, if too large with malloc.
44246
44247 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44250         Problem reported by H.Merijn Brand in
44251         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44253         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44254
44255 2007-10-15  Bruno Haible  <bruno@clisp.org>
44256
44257         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44258         with explicit rpl_ prefix.
44259         * lib/fopen.c (fopen): Likewise.
44260         * lib/freopen.c (freopen): Likewise.
44261         * lib/iconv.c (iconv): Likewise.
44262         * lib/iconv_close.c (iconv_close): Likewise.
44263
44264 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44265
44266         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44267
44268 2007-10-15  Bruno Haible  <bruno@clisp.org>
44269
44270         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44271         <stddef.h> instead of <stdlib.h> since we only need NULL.
44272         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44273
44274 2007-10-15  Bruno Haible  <bruno@clisp.org>
44275
44276         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44277         Replace paragraph talking about LIBOBJS.
44278         Reported by Colin Watson <cjwatson@debian.org>.
44279
44280 2007-10-15  Bruno Haible  <bruno@clisp.org>
44281
44282         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44283         <stdlib.h> before using NULL.
44284
44285 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44286
44287         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44288         Reported by Albert Chin <china@thewrittenword.com>.
44289
44290 2007-10-14  Bruno Haible  <bruno@clisp.org>
44291
44292         * modules/iconv_open-utf-tests: New file.
44293         * tests/test-iconv-utf.c: New file.
44294
44295         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44296         * modules/iconv_open-utf: New file.
44297         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44298         (iconv, iconv_close): New declarations.
44299         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44300         be defined.
44301         (iconv_open): Add special handling of conversion between UTF-8 and
44302         UTF-{16,32}{BE,LE}.
44303         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44304         * lib/iconv_close.c: New file.
44305         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44306         gl_FUNC_ICONV_OPEN.
44307         (gl_FUNC_ICONV_OPEN): Use it.
44308         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44309         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44310         and REPLACE_ICONV_UTF.
44311         * modules/iconv_open (Depends-on): Add c-strcase.
44312         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44313         ICONV_CONST.
44314         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44315
44316 2007-10-13  Albert Chin  <china@thewrittenword.com>
44317             Bruno Haible  <bruno@clisp.org>
44318
44319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44320         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44321
44322 2007-10-13  Bruno Haible  <bruno@clisp.org>
44323
44324         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44325         defined, use the ISO C99 inline semantics.
44326         * lib/argp.h (ARGP_EI): Likewise.
44327
44328 2007-10-13  Bruno Haible  <bruno@clisp.org>
44329
44330         Handle 'inline' change in gcc 4.3.0.
44331         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44332         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44333         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44334         argp_fmtstream_point): Disable 'extern' declaration if the function
44335         definition is going to be provided inline.
44336         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44337         semantics, not the ISO C99 inline semantics.
44338         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44339         'extern' declaration if the function definition is going to be provided
44340         inline.
44341         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44342         the GNU C inline semantics, not the ISO C99 inline semantics. With
44343         GCC 4.2, avoid a warning.
44344
44345 2007-10-13  Bruno Haible  <bruno@clisp.org>
44346
44347         * lib/freading.h (freading): Enable the use of __freading for
44348         glibc >= 2.7.
44349         * lib/freading.c (freading): Likewise.
44350
44351 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44352
44353         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44354         "warning: C99 inline functions are not supported; using GNU89".
44355
44356 2007-10-12  Bruno Haible  <bruno@clisp.org>
44357
44358         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44359         of 2.
44360         * tests/test-ceilf2.c: New file.
44361         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44362
44363         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44364         * modules/ceilf-tests: Update.
44365
44366 2007-10-12  Bruno Haible  <bruno@clisp.org>
44367
44368         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44369         of 2.
44370         * tests/test-floorf2.c: New file.
44371         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44372
44373         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44374         * modules/floorf-tests: Update.
44375
44376 2007-10-12  Bruno Haible  <bruno@clisp.org>
44377
44378         * tests/test-trunc2.c: New file.
44379         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44380
44381         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44382         * modules/trunc-tests: Update.
44383
44384 2007-10-12  Bruno Haible  <bruno@clisp.org>
44385
44386         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44387         of 2.
44388         * tests/test-truncf2.c: New file.
44389         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44390
44391         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44392         * modules/truncf-tests: Update.
44393
44394 2007-10-11  Eric Blake  <ebb9@byu.net>
44395
44396         Don't claim strerror is broken on Interix.
44397         * doc/functions/strerror.texi (strerror): Known broken systems are
44398         now Solaris 8, and not Interix.
44399         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44400         Interix on cross-compile.
44401         Reported by Martin Koeppe in
44402         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44403
44404 2007-10-11  Bruno Haible  <bruno@clisp.org>
44405
44406         * modules/i-ring-tests: New file.
44407         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44408         instead of assert.
44409
44410 2007-10-11  Bruno Haible  <bruno@clisp.org>
44411
44412         * modules/filenamecat-tests: New file.
44413         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44414         * lib/filenamecat.c: Remove test code.
44415
44416 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44417
44418         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44419
44420         * lib/strerror.c: Include <string.h> always, to test interface,
44421         and to remove the need for the dummy.
44422         Include intprops.h to compute width instead of doing it ourselves
44423         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44424         (strerror): Define it to return NULL if there's no system strerror.
44425         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44426         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44427         ancient pre-strerror Unix systems well any more.  Saying "unknown
44428         system error" is enough.
44429         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44430         simpler strerror.c implementation.
44431         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44432         Simplify the tests to reflect the simpler strerror implementation.
44433         * modules/strerror (Depends-on): Add intprops.
44434
44435 2007-10-09  Eric Blake  <ebb9@byu.net>
44436
44437         Silence test-fpending.
44438         * modules/fpending-tests (Files): Add wrapper script.
44439         * tests/test-fpending.sh: New file.
44440
44441 2007-10-09  Bruno Haible  <bruno@clisp.org>
44442
44443         * MODULES.html.sh (func_module): Don't create a hyperlink for
44444         function names like 'printf_frexp'.
44445         (Misc): Add crc, memxor.
44446         (Characteristics of floating types): New section.
44447         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44448         isnanf-nolibm, signbit, trunc, truncf, truncl.
44449         (Enhancements for ISO C 99 functions): New subsection Input/output.
44450         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44451         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44452         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44453         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44454         (Enhancements for POSIX:2001 functions): Add chdir-long.
44455         (File system functions): Add areadlink, chdir-safer, read-file.
44456         Remove cycle-check.
44457         (File system as inode set): New section.
44458         (Date and time): Add gethrxtime.
44459         (Multithreading): Add openmp.
44460         (Internationalization functions): Add localename.
44461         (Unicode string functions): Add unistr/u*-mbsnlen.
44462         (Support for maintaining and releasing projects): Add git-version-gen.
44463         (Lone files): Remove directories.
44464
44465 2007-10-08  Ben Pfaff  <blp@gnu.org>
44466
44467         * lib/xmalloca.h: Fix typo in comment.
44468
44469 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44470
44471         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44472         when avoiding problems with integer overflow.  Use a portable test
44473         instead.
44474
44475 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44476
44477         * modules/dummy (License): Change to LGPLv2+.
44478         * modules/float (License): Likewise
44479         * modules/realloc (License): Likewise
44480         * modules/stdlib (License): Likewise
44481
44482 2007-10-07  Bruno Haible  <bruno@clisp.org>
44483
44484         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44485         * floor.c (TWO_MANT_DIG): Likewise.
44486         * ceil.c (TWO_MANT_DIG): Likewise.
44487         Reported by Ben Pfaff.
44488
44489 2007-10-07  Bruno Haible  <bruno@clisp.org>
44490
44491         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44492         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44493         * lib/frexp.c (FUNC): Likewise.
44494         * lib/printf-frexp.h (printf_frexp): Likewise.
44495         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44496         * lib/printf-frexp.c (FUNC): Likewise.
44497         Suggested by Jim Meyering.
44498
44499 2007-10-07  Jim Meyering  <meyering@redhat.com>
44500
44501         Make xnanosleep's integer overflow test more robust.
44502         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44503         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44504
44505 2007-10-07  Bruno Haible  <bruno@clisp.org>
44506
44507         * NEWS: Mention the license change.
44508
44509         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44510         abbreviations in the modules files.
44511
44512         Change copyright notice from GPLv2+ to GPLv3+.
44513         * README: Change copyright notice.
44514         * MODULES.html.sh: Likewise.
44515         * build-aux/bootstrap.conf: Likewise.
44516         * build-aux/config.libpath: Likewise.
44517         * build-aux/csharpcomp.sh.in: Likewise.
44518         * build-aux/csharpexec.sh.in: Likewise.
44519         * build-aux/install-reloc: Likewise.
44520         * build-aux/javacomp.sh.in: Likewise.
44521         * build-aux/javaexec.sh.in: Likewise.
44522         * build-aux/ldd.sh.in: Likewise.
44523         * build-aux/reloc-ldflags: Likewise.
44524         * build-aux/relocatable.sh.in: Likewise.
44525         * build-aux/x-to-1.in: Likewise.
44526         * check-module: Likewise.
44527         * config/srclistvars.sh: Likewise.
44528         * gnulib-tool: Likewise.
44529         * lib/acl-internal.h: Likewise.
44530         * lib/acl.c: Likewise.
44531         * lib/acl.h: Likewise.
44532         * lib/acl_entries.c: Likewise.
44533         * lib/areadlink-with-size.c: Likewise.
44534         * lib/areadlink.c: Likewise.
44535         * lib/areadlink.h: Likewise.
44536         * lib/argmatch.c: Likewise.
44537         * lib/argmatch.h: Likewise.
44538         * lib/argp-ba.c: Likewise.
44539         * lib/argp-eexst.c: Likewise.
44540         * lib/argp-fmtstream.c: Likewise.
44541         * lib/argp-fmtstream.h: Likewise.
44542         * lib/argp-fs-xinl.c: Likewise.
44543         * lib/argp-help.c: Likewise.
44544         * lib/argp-namefrob.h: Likewise.
44545         * lib/argp-parse.c: Likewise.
44546         * lib/argp-pin.c: Likewise.
44547         * lib/argp-pv.c: Likewise.
44548         * lib/argp-pvh.c: Likewise.
44549         * lib/argp-xinl.c: Likewise.
44550         * lib/argp.h: Likewise.
44551         * lib/at-func.c: Likewise.
44552         * lib/atanl.c: Likewise.
44553         * lib/backupfile.c: Likewise.
44554         * lib/backupfile.h: Likewise.
44555         * lib/basename.c: Likewise.
44556         * lib/binary-io.h: Likewise.
44557         * lib/byteswap.in.h: Likewise.
44558         * lib/c-stack.c: Likewise.
44559         * lib/c-stack.h: Likewise.
44560         * lib/c-strcasestr.c: Likewise.
44561         * lib/c-strcasestr.h: Likewise.
44562         * lib/c-strstr.c: Likewise.
44563         * lib/c-strstr.h: Likewise.
44564         * lib/c-strtod.c: Likewise.
44565         * lib/calloc.c: Likewise.
44566         * lib/canon-host.c: Likewise.
44567         * lib/canon-host.h: Likewise.
44568         * lib/canonicalize-lgpl.c: Likewise.
44569         * lib/canonicalize.c: Likewise.
44570         * lib/canonicalize.h: Likewise.
44571         * lib/ceil.c: Likewise.
44572         * lib/ceilf.c: Likewise.
44573         * lib/ceill.c: Likewise.
44574         * lib/chdir-long.c: Likewise.
44575         * lib/chdir-long.h: Likewise.
44576         * lib/chdir-safer.c: Likewise.
44577         * lib/chdir-safer.h: Likewise.
44578         * lib/chown.c: Likewise.
44579         * lib/classpath.c: Likewise.
44580         * lib/classpath.h: Likewise.
44581         * lib/clean-temp.c: Likewise.
44582         * lib/clean-temp.h: Likewise.
44583         * lib/cloexec.c: Likewise.
44584         * lib/close-stream.c: Likewise.
44585         * lib/closein.c: Likewise.
44586         * lib/closein.h: Likewise.
44587         * lib/closeout.c: Likewise.
44588         * lib/closeout.h: Likewise.
44589         * lib/concat-filename.c: Likewise.
44590         * lib/copy-file.c: Likewise.
44591         * lib/copy-file.h: Likewise.
44592         * lib/count-one-bits.h: Likewise.
44593         * lib/crc.c: Likewise.
44594         * lib/crc.h: Likewise.
44595         * lib/creat-safer.c: Likewise.
44596         * lib/csharpcomp.c: Likewise.
44597         * lib/csharpcomp.h: Likewise.
44598         * lib/csharpexec.c: Likewise.
44599         * lib/csharpexec.h: Likewise.
44600         * lib/cycle-check.c: Likewise.
44601         * lib/cycle-check.h: Likewise.
44602         * lib/diacrit.c: Likewise.
44603         * lib/diacrit.h: Likewise.
44604         * lib/diffseq.h: Likewise.
44605         * lib/dirchownmod.c: Likewise.
44606         * lib/dirent.in.h: Likewise.
44607         * lib/dirfd.c: Likewise.
44608         * lib/dirfd.h: Likewise.
44609         * lib/dirname.c: Likewise.
44610         * lib/dirname.h: Likewise.
44611         * lib/dummy.c: Likewise.
44612         * lib/dup-safer.c: Likewise.
44613         * lib/dup2.c: Likewise.
44614         * lib/eealloc.h: Likewise.
44615         * lib/error.c: Likewise.
44616         * lib/error.h: Likewise.
44617         * lib/euidaccess.c: Likewise.
44618         * lib/exclude.c: Likewise.
44619         * lib/exclude.h: Likewise.
44620         * lib/execute.c: Likewise.
44621         * lib/execute.h: Likewise.
44622         * lib/exitfail.c: Likewise.
44623         * lib/exitfail.h: Likewise.
44624         * lib/expl.c: Likewise.
44625         * lib/fatal-signal.c: Likewise.
44626         * lib/fatal-signal.h: Likewise.
44627         * lib/fbufmode.c: Likewise.
44628         * lib/fbufmode.h: Likewise.
44629         * lib/fchdir.c: Likewise.
44630         * lib/fchmodat.c: Likewise.
44631         * lib/fchownat.c: Likewise.
44632         * lib/fcntl--.h: Likewise.
44633         * lib/fcntl-safer.h: Likewise.
44634         * lib/fcntl.in.h: Likewise.
44635         * lib/fd-safer.c: Likewise.
44636         * lib/fflush.c: Likewise.
44637         * lib/file-has-acl.c: Likewise.
44638         * lib/file-set.c: Likewise.
44639         * lib/file-type.c: Likewise.
44640         * lib/file-type.h: Likewise.
44641         * lib/fileblocks.c: Likewise.
44642         * lib/filemode.c: Likewise.
44643         * lib/filemode.h: Likewise.
44644         * lib/filename.h: Likewise.
44645         * lib/filenamecat.c: Likewise.
44646         * lib/filenamecat.h: Likewise.
44647         * lib/findprog.c: Likewise.
44648         * lib/findprog.h: Likewise.
44649         * lib/float.in.h: Likewise.
44650         * lib/floor.c: Likewise.
44651         * lib/floorf.c: Likewise.
44652         * lib/floorl.c: Likewise.
44653         * lib/fopen-safer.c: Likewise.
44654         * lib/fopen.c: Likewise.
44655         * lib/fpending.c: Likewise.
44656         * lib/fpending.h: Likewise.
44657         * lib/fprintf.c: Likewise.
44658         * lib/fprintftime.h: Likewise.
44659         * lib/fpucw.h: Likewise.
44660         * lib/fpurge.c: Likewise.
44661         * lib/fpurge.h: Likewise.
44662         * lib/freadable.c: Likewise.
44663         * lib/freadable.h: Likewise.
44664         * lib/freadahead.c: Likewise.
44665         * lib/freadahead.h: Likewise.
44666         * lib/freading.c: Likewise.
44667         * lib/freading.h: Likewise.
44668         * lib/free.c: Likewise.
44669         * lib/freopen.c: Likewise.
44670         * lib/frexp.c: Likewise.
44671         * lib/frexpl.c: Likewise.
44672         * lib/fseek.c: Likewise.
44673         * lib/fseterr.c: Likewise.
44674         * lib/fseterr.h: Likewise.
44675         * lib/fstatat.c: Likewise.
44676         * lib/fstrcmp.c: Likewise.
44677         * lib/fstrcmp.h: Likewise.
44678         * lib/fsusage.c: Likewise.
44679         * lib/fsusage.h: Likewise.
44680         * lib/ftell.c: Likewise.
44681         * lib/ftello.c: Likewise.
44682         * lib/fts-cycle.c: Likewise.
44683         * lib/fts.c: Likewise.
44684         * lib/fts_.h: Likewise.
44685         * lib/full-read.c: Likewise.
44686         * lib/full-read.h: Likewise.
44687         * lib/full-write.c: Likewise.
44688         * lib/full-write.h: Likewise.
44689         * lib/fwritable.c: Likewise.
44690         * lib/fwritable.h: Likewise.
44691         * lib/fwriteerror.c: Likewise.
44692         * lib/fwriteerror.h: Likewise.
44693         * lib/fwriting.c: Likewise.
44694         * lib/fwriting.h: Likewise.
44695         * lib/gcd.c: Likewise.
44696         * lib/gcd.h: Likewise.
44697         * lib/getcwd.c: Likewise.
44698         * lib/getdate.h: Likewise.
44699         * lib/getdate.y: Likewise.
44700         * lib/getdomainname.c: Likewise.
44701         * lib/getdomainname.h: Likewise.
44702         * lib/getgroups.c: Likewise.
44703         * lib/gethostname.c: Likewise.
44704         * lib/gethrxtime.c: Likewise.
44705         * lib/gethrxtime.h: Likewise.
44706         * lib/getloadavg.c: Likewise.
44707         * lib/getndelim2.c: Likewise.
44708         * lib/getndelim2.h: Likewise.
44709         * lib/getnline.c: Likewise.
44710         * lib/getnline.h: Likewise.
44711         * lib/getopt.c: Likewise.
44712         * lib/getopt.in.h: Likewise.
44713         * lib/getopt1.c: Likewise.
44714         * lib/getopt_int.h: Likewise.
44715         * lib/getpagesize.h: Likewise.
44716         * lib/getsubopt.c: Likewise.
44717         * lib/gettime.c: Likewise.
44718         * lib/getugroups.c: Likewise.
44719         * lib/getugroups.h: Likewise.
44720         * lib/getusershell.c: Likewise.
44721         * lib/gl_anyavltree_list1.h: Likewise.
44722         * lib/gl_anyavltree_list2.h: Likewise.
44723         * lib/gl_anyhash_list1.h: Likewise.
44724         * lib/gl_anyhash_list2.h: Likewise.
44725         * lib/gl_anylinked_list1.h: Likewise.
44726         * lib/gl_anylinked_list2.h: Likewise.
44727         * lib/gl_anyrbtree_list1.h: Likewise.
44728         * lib/gl_anyrbtree_list2.h: Likewise.
44729         * lib/gl_anytree_list1.h: Likewise.
44730         * lib/gl_anytree_list2.h: Likewise.
44731         * lib/gl_anytree_oset.h: Likewise.
44732         * lib/gl_anytreehash_list1.h: Likewise.
44733         * lib/gl_anytreehash_list2.h: Likewise.
44734         * lib/gl_array_list.c: Likewise.
44735         * lib/gl_array_list.h: Likewise.
44736         * lib/gl_array_oset.c: Likewise.
44737         * lib/gl_array_oset.h: Likewise.
44738         * lib/gl_avltree_list.c: Likewise.
44739         * lib/gl_avltree_list.h: Likewise.
44740         * lib/gl_avltree_oset.c: Likewise.
44741         * lib/gl_avltree_oset.h: Likewise.
44742         * lib/gl_avltreehash_list.c: Likewise.
44743         * lib/gl_avltreehash_list.h: Likewise.
44744         * lib/gl_carray_list.c: Likewise.
44745         * lib/gl_carray_list.h: Likewise.
44746         * lib/gl_linked_list.c: Likewise.
44747         * lib/gl_linked_list.h: Likewise.
44748         * lib/gl_linkedhash_list.c: Likewise.
44749         * lib/gl_linkedhash_list.h: Likewise.
44750         * lib/gl_list.c: Likewise.
44751         * lib/gl_list.h: Likewise.
44752         * lib/gl_oset.c: Likewise.
44753         * lib/gl_oset.h: Likewise.
44754         * lib/gl_rbtree_list.c: Likewise.
44755         * lib/gl_rbtree_list.h: Likewise.
44756         * lib/gl_rbtree_oset.c: Likewise.
44757         * lib/gl_rbtree_oset.h: Likewise.
44758         * lib/gl_rbtreehash_list.c: Likewise.
44759         * lib/gl_rbtreehash_list.h: Likewise.
44760         * lib/gl_sublist.c: Likewise.
44761         * lib/gl_sublist.h: Likewise.
44762         * lib/group-member.c: Likewise.
44763         * lib/group-member.h: Likewise.
44764         * lib/hard-locale.c: Likewise.
44765         * lib/hard-locale.h: Likewise.
44766         * lib/hash-pjw.c: Likewise.
44767         * lib/hash-pjw.h: Likewise.
44768         * lib/hash-triple.c: Likewise.
44769         * lib/hash.c: Likewise.
44770         * lib/hash.h: Likewise.
44771         * lib/human.c: Likewise.
44772         * lib/human.h: Likewise.
44773         * lib/i-ring.c: Likewise.
44774         * lib/i-ring.h: Likewise.
44775         * lib/idcache.c: Likewise.
44776         * lib/imaxabs.c: Likewise.
44777         * lib/imaxdiv.c: Likewise.
44778         * lib/inet_pton.c: Likewise.
44779         * lib/inet_pton.h: Likewise.
44780         * lib/intprops.h: Likewise.
44781         * lib/inttostr.c: Likewise.
44782         * lib/inttostr.h: Likewise.
44783         * lib/inttypes.in.h: Likewise.
44784         * lib/isapipe.c: Likewise.
44785         * lib/isdir.c: Likewise.
44786         * lib/isnan.c: Likewise.
44787         * lib/isnan.h: Likewise.
44788         * lib/isnanf.c: Likewise.
44789         * lib/isnanf.h: Likewise.
44790         * lib/isnanl-nolibm.h: Likewise.
44791         * lib/isnanl.c: Likewise.
44792         * lib/isnanl.h: Likewise.
44793         * lib/javacomp.c: Likewise.
44794         * lib/javacomp.h: Likewise.
44795         * lib/javaexec.c: Likewise.
44796         * lib/javaexec.h: Likewise.
44797         * lib/javaversion.c: Likewise.
44798         * lib/javaversion.h: Likewise.
44799         * lib/javaversion.java: Likewise.
44800         * lib/lbrkprop.h: Likewise.
44801         * lib/lchmod.h: Likewise.
44802         * lib/lchown.c: Likewise.
44803         * lib/ldexpl.c: Likewise.
44804         * lib/linebreak.c: Likewise.
44805         * lib/linebreak.h: Likewise.
44806         * lib/linebuffer.c: Likewise.
44807         * lib/linebuffer.h: Likewise.
44808         * lib/locale.in.h: Likewise.
44809         * lib/logl.c: Likewise.
44810         * lib/long-options.c: Likewise.
44811         * lib/long-options.h: Likewise.
44812         * lib/lstat.c: Likewise.
44813         * lib/lstat.h: Likewise.
44814         * lib/math.in.h: Likewise.
44815         * lib/mbchar.c: Likewise.
44816         * lib/mbchar.h: Likewise.
44817         * lib/mbfile.h: Likewise.
44818         * lib/mbiter.h: Likewise.
44819         * lib/mbscasecmp.c: Likewise.
44820         * lib/mbscasestr.c: Likewise.
44821         * lib/mbschr.c: Likewise.
44822         * lib/mbscspn.c: Likewise.
44823         * lib/mbslen.c: Likewise.
44824         * lib/mbsncasecmp.c: Likewise.
44825         * lib/mbsnlen.c: Likewise.
44826         * lib/mbspbrk.c: Likewise.
44827         * lib/mbspcasecmp.c: Likewise.
44828         * lib/mbsrchr.c: Likewise.
44829         * lib/mbssep.c: Likewise.
44830         * lib/mbsspn.c: Likewise.
44831         * lib/mbsstr.c: Likewise.
44832         * lib/mbstok_r.c: Likewise.
44833         * lib/mbswidth.c: Likewise.
44834         * lib/mbswidth.h: Likewise.
44835         * lib/mbuiter.h: Likewise.
44836         * lib/memcasecmp.c: Likewise.
44837         * lib/memcasecmp.h: Likewise.
44838         * lib/memchr.c: Likewise.
44839         * lib/memcmp.c: Likewise.
44840         * lib/memcoll.c: Likewise.
44841         * lib/memcoll.h: Likewise.
44842         * lib/memcpy.c: Likewise.
44843         * lib/memrchr.c: Likewise.
44844         * lib/mkancesdirs.c: Likewise.
44845         * lib/mkdir-p.c: Likewise.
44846         * lib/mkdir-p.h: Likewise.
44847         * lib/mkdir.c: Likewise.
44848         * lib/mkdirat.c: Likewise.
44849         * lib/mkdtemp.c: Likewise.
44850         * lib/mkstemp-safer.c: Likewise.
44851         * lib/mkstemp.c: Likewise.
44852         * lib/modechange.c: Likewise.
44853         * lib/modechange.h: Likewise.
44854         * lib/mountlist.c: Likewise.
44855         * lib/mountlist.h: Likewise.
44856         * lib/mpsort.c: Likewise.
44857         * lib/nanosleep.c: Likewise.
44858         * lib/obstack.c: Likewise.
44859         * lib/obstack.h: Likewise.
44860         * lib/open-safer.c: Likewise.
44861         * lib/open.c: Likewise.
44862         * lib/openat-die.c: Likewise.
44863         * lib/openat-priv.h: Likewise.
44864         * lib/openat-proc.c: Likewise.
44865         * lib/openat.c: Likewise.
44866         * lib/openat.h: Likewise.
44867         * lib/pagealign_alloc.c: Likewise.
44868         * lib/pagealign_alloc.h: Likewise.
44869         * lib/physmem.c: Likewise.
44870         * lib/physmem.h: Likewise.
44871         * lib/pipe-safer.c: Likewise.
44872         * lib/pipe.c: Likewise.
44873         * lib/pipe.h: Likewise.
44874         * lib/posixtm.c: Likewise.
44875         * lib/posixtm.h: Likewise.
44876         * lib/posixver.c: Likewise.
44877         * lib/printf-frexp.c: Likewise.
44878         * lib/printf-frexp.h: Likewise.
44879         * lib/printf-frexpl.c: Likewise.
44880         * lib/printf-frexpl.h: Likewise.
44881         * lib/printf.c: Likewise.
44882         * lib/progname.c: Likewise.
44883         * lib/progname.h: Likewise.
44884         * lib/progreloc.c: Likewise.
44885         * lib/putenv.c: Likewise.
44886         * lib/quote.c: Likewise.
44887         * lib/quote.h: Likewise.
44888         * lib/quotearg.c: Likewise.
44889         * lib/quotearg.h: Likewise.
44890         * lib/raise.c: Likewise.
44891         * lib/readline.c: Likewise.
44892         * lib/readline.h: Likewise.
44893         * lib/readlink.c: Likewise.
44894         * lib/readtokens.c: Likewise.
44895         * lib/readtokens.h: Likewise.
44896         * lib/readtokens0.c: Likewise.
44897         * lib/readtokens0.h: Likewise.
44898         * lib/readutmp.c: Likewise.
44899         * lib/readutmp.h: Likewise.
44900         * lib/realloc.c: Likewise.
44901         * lib/relocwrapper.c: Likewise.
44902         * lib/rename-dest-slash.c: Likewise.
44903         * lib/rename.c: Likewise.
44904         * lib/rmdir.c: Likewise.
44905         * lib/rpmatch.c: Likewise.
44906         * lib/safe-read.c: Likewise.
44907         * lib/safe-read.h: Likewise.
44908         * lib/safe-write.c: Likewise.
44909         * lib/safe-write.h: Likewise.
44910         * lib/same-inode.h: Likewise.
44911         * lib/same.c: Likewise.
44912         * lib/same.h: Likewise.
44913         * lib/save-cwd.c: Likewise.
44914         * lib/save-cwd.h: Likewise.
44915         * lib/savedir.c: Likewise.
44916         * lib/savedir.h: Likewise.
44917         * lib/savewd.c: Likewise.
44918         * lib/savewd.h: Likewise.
44919         * lib/search.in.h: Likewise.
44920         * lib/setenv.c: Likewise.
44921         * lib/setenv.h: Likewise.
44922         * lib/settime.c: Likewise.
44923         * lib/sh-quote.c: Likewise.
44924         * lib/sh-quote.h: Likewise.
44925         * lib/sig2str.c: Likewise.
44926         * lib/sig2str.h: Likewise.
44927         * lib/signal.in.h: Likewise.
44928         * lib/signbitd.c: Likewise.
44929         * lib/signbitf.c: Likewise.
44930         * lib/signbitl.c: Likewise.
44931         * lib/sigprocmask.c: Likewise.
44932         * lib/sincosl.c: Likewise.
44933         * lib/sleep.c: Likewise.
44934         * lib/sprintf.c: Likewise.
44935         * lib/sqrtl.c: Likewise.
44936         * lib/stat-time.h: Likewise.
44937         * lib/stdio--.h: Likewise.
44938         * lib/stdio-safer.h: Likewise.
44939         * lib/stdlib--.h: Likewise.
44940         * lib/stdlib-safer.h: Likewise.
44941         * lib/stdlib.in.h: Likewise.
44942         * lib/stpcpy.c: Likewise.
44943         * lib/stpncpy.c: Likewise.
44944         * lib/strchrnul.c: Likewise.
44945         * lib/strcspn.c: Likewise.
44946         * lib/strerror.c: Likewise.
44947         * lib/strftime.c: Likewise.
44948         * lib/strftime.h: Likewise.
44949         * lib/striconveh.c: Likewise.
44950         * lib/striconveh.h: Likewise.
44951         * lib/striconveha.c: Likewise.
44952         * lib/striconveha.h: Likewise.
44953         * lib/stripslash.c: Likewise.
44954         * lib/strnlen1.c: Likewise.
44955         * lib/strnlen1.h: Likewise.
44956         * lib/strtod.c: Likewise.
44957         * lib/strtoimax.c: Likewise.
44958         * lib/strtok_r.c: Likewise.
44959         * lib/strtol.c: Likewise.
44960         * lib/strtoll.c: Likewise.
44961         * lib/strtoul.c: Likewise.
44962         * lib/strtoull.c: Likewise.
44963         * lib/sysexits.in.h: Likewise.
44964         * lib/tempname.c: Likewise.
44965         * lib/tempname.h: Likewise.
44966         * lib/timespec.h: Likewise.
44967         * lib/tls.c: Likewise.
44968         * lib/tls.h: Likewise.
44969         * lib/tmpdir.c: Likewise.
44970         * lib/tmpdir.h: Likewise.
44971         * lib/tmpfile-safer.c: Likewise.
44972         * lib/tmpfile.c: Likewise.
44973         * lib/trigl.c: Likewise.
44974         * lib/trigl.h: Likewise.
44975         * lib/trim.c: Likewise.
44976         * lib/trim.h: Likewise.
44977         * lib/trunc.c: Likewise.
44978         * lib/truncf.c: Likewise.
44979         * lib/truncl.c: Likewise.
44980         * lib/tsearch.c: Likewise.
44981         * lib/unicodeio.c: Likewise.
44982         * lib/unicodeio.h: Likewise.
44983         * lib/unistd--.h: Likewise.
44984         * lib/unistd-safer.h: Likewise.
44985         * lib/unistdio/ulc-fprintf.c: Likewise.
44986         * lib/unistdio/ulc-vfprintf.c: Likewise.
44987         * lib/unlinkdir.c: Likewise.
44988         * lib/unlinkdir.h: Likewise.
44989         * lib/unlocked-io.h: Likewise.
44990         * lib/unsetenv.c: Likewise.
44991         * lib/userspec.c: Likewise.
44992         * lib/utime.c: Likewise.
44993         * lib/utimecmp.c: Likewise.
44994         * lib/utimecmp.h: Likewise.
44995         * lib/utimens.c: Likewise.
44996         * lib/verify.h: Likewise.
44997         * lib/verror.c: Likewise.
44998         * lib/verror.h: Likewise.
44999         * lib/version-etc-fsf.c: Likewise.
45000         * lib/version-etc.c: Likewise.
45001         * lib/version-etc.h: Likewise.
45002         * lib/vfprintf.c: Likewise.
45003         * lib/vprintf.c: Likewise.
45004         * lib/vsprintf.c: Likewise.
45005         * lib/w32spawn.h: Likewise.
45006         * lib/wait-process.c: Likewise.
45007         * lib/wait-process.h: Likewise.
45008         * lib/wcwidth.c: Likewise.
45009         * lib/write-any-file.c: Likewise.
45010         * lib/xalloc-die.c: Likewise.
45011         * lib/xalloc.h: Likewise.
45012         * lib/xasprintf.c: Likewise.
45013         * lib/xgetcwd.c: Likewise.
45014         * lib/xgetcwd.h: Likewise.
45015         * lib/xgetdomainname.c: Likewise.
45016         * lib/xgetdomainname.h: Likewise.
45017         * lib/xgethostname.c: Likewise.
45018         * lib/xmalloc.c: Likewise.
45019         * lib/xmalloca.c: Likewise.
45020         * lib/xmalloca.h: Likewise.
45021         * lib/xmemcoll.c: Likewise.
45022         * lib/xnanosleep.c: Likewise.
45023         * lib/xreadlink.c: Likewise.
45024         * lib/xreadlink.h: Likewise.
45025         * lib/xsetenv.c: Likewise.
45026         * lib/xsetenv.h: Likewise.
45027         * lib/xstriconv.c: Likewise.
45028         * lib/xstriconv.h: Likewise.
45029         * lib/xstrndup.c: Likewise.
45030         * lib/xstrndup.h: Likewise.
45031         * lib/xstrtod.c: Likewise.
45032         * lib/xstrtod.h: Likewise.
45033         * lib/xstrtol-error.c: Likewise.
45034         * lib/xstrtol.c: Likewise.
45035         * lib/xstrtol.h: Likewise.
45036         * lib/xtime.h: Likewise.
45037         * lib/xvasprintf.c: Likewise.
45038         * lib/xvasprintf.h: Likewise.
45039         * lib/yesno.c: Likewise.
45040         * lib/yesno.h: Likewise.
45041         * posix-modules: Likewise.
45042         * tests/test-alloca-opt.c: Likewise.
45043         * tests/test-arcfour.c: Likewise.
45044         * tests/test-arctwo.c: Likewise.
45045         * tests/test-argmatch.c: Likewise.
45046         * tests/test-argp-2.sh: Likewise.
45047         * tests/test-argp.c: Likewise.
45048         * tests/test-arpa_inet.c: Likewise.
45049         * tests/test-array_list.c: Likewise.
45050         * tests/test-array_oset.c: Likewise.
45051         * tests/test-atexit.c: Likewise.
45052         * tests/test-avltree_list.c: Likewise.
45053         * tests/test-avltree_oset.c: Likewise.
45054         * tests/test-avltreehash_list.c: Likewise.
45055         * tests/test-base64.c: Likewise.
45056         * tests/test-binary-io.c: Likewise.
45057         * tests/test-byteswap.c: Likewise.
45058         * tests/test-c-ctype.c: Likewise.
45059         * tests/test-c-strcasecmp.c: Likewise.
45060         * tests/test-c-strcasestr.c: Likewise.
45061         * tests/test-c-strncasecmp.c: Likewise.
45062         * tests/test-c-strstr.c: Likewise.
45063         * tests/test-canonicalize-lgpl.c: Likewise.
45064         * tests/test-canonicalize.c: Likewise.
45065         * tests/test-carray_list.c: Likewise.
45066         * tests/test-ceilf.c: Likewise.
45067         * tests/test-ceill.c: Likewise.
45068         * tests/test-count-one-bits.c: Likewise.
45069         * tests/test-crc.c: Likewise.
45070         * tests/test-dirname.c: Likewise.
45071         * tests/test-fbufmode.c: Likewise.
45072         * tests/test-fcntl.c: Likewise.
45073         * tests/test-fflush.c: Likewise.
45074         * tests/test-floorf.c: Likewise.
45075         * tests/test-floorl.c: Likewise.
45076         * tests/test-fopen.c: Likewise.
45077         * tests/test-fprintf-posix.c: Likewise.
45078         * tests/test-fprintf-posix.h: Likewise.
45079         * tests/test-fpurge.c: Likewise.
45080         * tests/test-freadable.c: Likewise.
45081         * tests/test-freadahead.c: Likewise.
45082         * tests/test-freading.c: Likewise.
45083         * tests/test-freopen.c: Likewise.
45084         * tests/test-frexp.c: Likewise.
45085         * tests/test-frexpl.c: Likewise.
45086         * tests/test-fseek.c: Likewise.
45087         * tests/test-fseeko.c: Likewise.
45088         * tests/test-fseterr.c: Likewise.
45089         * tests/test-fstrcmp.c: Likewise.
45090         * tests/test-ftell.c: Likewise.
45091         * tests/test-ftello.c: Likewise.
45092         * tests/test-fwritable.c: Likewise.
45093         * tests/test-fwriting.c: Likewise.
45094         * tests/test-getaddrinfo.c: Likewise.
45095         * tests/test-getpass.c: Likewise.
45096         * tests/test-gettimeofday.c: Likewise.
45097         * tests/test-hmac-md5.c: Likewise.
45098         * tests/test-hmac-sha1.c: Likewise.
45099         * tests/test-iconv.c: Likewise.
45100         * tests/test-iconvme.c: Likewise.
45101         * tests/test-inttypes.c: Likewise.
45102         * tests/test-isnan.c: Likewise.
45103         * tests/test-isnanf.c: Likewise.
45104         * tests/test-isnanl-nolibm.c: Likewise.
45105         * tests/test-isnanl.c: Likewise.
45106         * tests/test-isnanl.h: Likewise.
45107         * tests/test-ldexpl.c: Likewise.
45108         * tests/test-linked_list.c: Likewise.
45109         * tests/test-linkedhash_list.c: Likewise.
45110         * tests/test-locale.c: Likewise.
45111         * tests/test-localename.c: Likewise.
45112         * tests/test-lock.c: Likewise.
45113         * tests/test-lseek.c: Likewise.
45114         * tests/test-malloca.c: Likewise.
45115         * tests/test-math.c: Likewise.
45116         * tests/test-mbscasecmp.c: Likewise.
45117         * tests/test-mbscasestr1.c: Likewise.
45118         * tests/test-mbscasestr2.c: Likewise.
45119         * tests/test-mbscasestr3.c: Likewise.
45120         * tests/test-mbscasestr4.c: Likewise.
45121         * tests/test-mbschr.c: Likewise.
45122         * tests/test-mbscspn.c: Likewise.
45123         * tests/test-mbsncasecmp.c: Likewise.
45124         * tests/test-mbspbrk.c: Likewise.
45125         * tests/test-mbspcasecmp.c: Likewise.
45126         * tests/test-mbsrchr.c: Likewise.
45127         * tests/test-mbsspn.c: Likewise.
45128         * tests/test-mbsstr1.c: Likewise.
45129         * tests/test-mbsstr2.c: Likewise.
45130         * tests/test-mbsstr3.c: Likewise.
45131         * tests/test-md5.c: Likewise.
45132         * tests/test-memmem.c: Likewise.
45133         * tests/test-netinet_in.c: Likewise.
45134         * tests/test-open.c: Likewise.
45135         * tests/test-printf-frexp.c: Likewise.
45136         * tests/test-printf-frexpl.c: Likewise.
45137         * tests/test-printf-posix.c: Likewise.
45138         * tests/test-printf-posix.h: Likewise.
45139         * tests/test-rbtree_list.c: Likewise.
45140         * tests/test-rbtree_oset.c: Likewise.
45141         * tests/test-rbtreehash_list.c: Likewise.
45142         * tests/test-read-file.c: Likewise.
45143         * tests/test-rijndael.c: Likewise.
45144         * tests/test-search.c: Likewise.
45145         * tests/test-signbit.c: Likewise.
45146         * tests/test-sleep.c: Likewise.
45147         * tests/test-snprintf-posix.c: Likewise.
45148         * tests/test-snprintf-posix.h: Likewise.
45149         * tests/test-snprintf.c: Likewise.
45150         * tests/test-sprintf-posix.c: Likewise.
45151         * tests/test-sprintf-posix.h: Likewise.
45152         * tests/test-stat-time.c: Likewise.
45153         * tests/test-stdbool.c: Likewise.
45154         * tests/test-stdint.c: Likewise.
45155         * tests/test-stdio.c: Likewise.
45156         * tests/test-stdlib.c: Likewise.
45157         * tests/test-stpncpy.c: Likewise.
45158         * tests/test-strcasestr.c: Likewise.
45159         * tests/test-striconv.c: Likewise.
45160         * tests/test-striconveh.c: Likewise.
45161         * tests/test-striconveha.c: Likewise.
45162         * tests/test-string.c: Likewise.
45163         * tests/test-sys_select.c: Likewise.
45164         * tests/test-sys_socket.c: Likewise.
45165         * tests/test-sys_stat.c: Likewise.
45166         * tests/test-sys_time.c: Likewise.
45167         * tests/test-sysexits.c: Likewise.
45168         * tests/test-time.c: Likewise.
45169         * tests/test-tls.c: Likewise.
45170         * tests/test-trunc.c: Likewise.
45171         * tests/test-truncf.c: Likewise.
45172         * tests/test-truncl.c: Likewise.
45173         * tests/test-unistd.c: Likewise.
45174         * tests/test-vasnprintf-posix.c: Likewise.
45175         * tests/test-vasnprintf-posix2.c: Likewise.
45176         * tests/test-vasnprintf.c: Likewise.
45177         * tests/test-vasprintf-posix.c: Likewise.
45178         * tests/test-vasprintf.c: Likewise.
45179         * tests/test-verify.c: Likewise.
45180         * tests/test-vfprintf-posix.c: Likewise.
45181         * tests/test-vprintf-posix.c: Likewise.
45182         * tests/test-vsnprintf-posix.c: Likewise.
45183         * tests/test-vsnprintf.c: Likewise.
45184         * tests/test-vsprintf-posix.c: Likewise.
45185         * tests/test-wchar.c: Likewise.
45186         * tests/test-wctype.c: Likewise.
45187         * tests/test-wcwidth.c: Likewise.
45188         * tests/test-xstrtol.c: Likewise.
45189         * tests/test-xvasprintf.c: Likewise.
45190         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45191         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45192         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45193         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45194         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45195         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45198         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45199         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45200         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45201         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45202         * tests/uniname/test-uninames.c: Likewise.
45203         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45204         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45205         * tests/unistdio/test-u16-printf1.h: Likewise.
45206         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45207         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45208         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45209         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45210         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45211         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45212         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45213         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45214         * tests/unistdio/test-u32-printf1.h: Likewise.
45215         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45216         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45217         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45218         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45219         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45220         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45221         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45222         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45223         * tests/unistdio/test-u8-printf1.h: Likewise.
45224         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45225         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45226         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45227         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45228         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45229         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45230         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45231         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45232         * tests/unistdio/test-ulc-printf1.h: Likewise.
45233         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45234         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45235         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45236         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45237         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45238         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45239         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45240         * tests/uniwidth/test-u16-width.c: Likewise.
45241         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45242         * tests/uniwidth/test-u32-width.c: Likewise.
45243         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45244         * tests/uniwidth/test-u8-width.c: Likewise.
45245         * tests/uniwidth/test-uc_width.c: Likewise.
45246         * config/srclist-update: Likewise.
45247         (fixlicense): Update to GPLv3+.
45248
45249         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45250         * tests/test-tsearch.c: Change copyright notice.
45251
45252         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45253         * lib/c-strcaseeq.h: Change copyright notice.
45254         * lib/streq.h: Likewise.
45255         * lib/uniconv.h: Likewise.
45256         * lib/uniconv/u-conv-from-enc.h: Likewise.
45257         * lib/uniconv/u-conv-to-enc.h: Likewise.
45258         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45259         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45260         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45261         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45262         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45263         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45264         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45265         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45266         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45267         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45268         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45269         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45270         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45271         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45272         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45273         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45274         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45275         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45276         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45277         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45278         * lib/uniname.h: Likewise.
45279         * lib/uniname/uniname.c: Likewise.
45280         * lib/unistdio.h: Likewise.
45281         * lib/unistdio/u-asnprintf.h: Likewise.
45282         * lib/unistdio/u-asprintf.h: Likewise.
45283         * lib/unistdio/u-printf-args.c: Likewise.
45284         * lib/unistdio/u-printf-args.h: Likewise.
45285         * lib/unistdio/u-printf-parse.h: Likewise.
45286         * lib/unistdio/u-snprintf.h: Likewise.
45287         * lib/unistdio/u-sprintf.h: Likewise.
45288         * lib/unistdio/u-vasprintf.h: Likewise.
45289         * lib/unistdio/u-vsnprintf.h: Likewise.
45290         * lib/unistdio/u-vsprintf.h: Likewise.
45291         * lib/unistdio/u16-asnprintf.c: Likewise.
45292         * lib/unistdio/u16-asprintf.c: Likewise.
45293         * lib/unistdio/u16-printf-parse.c: Likewise.
45294         * lib/unistdio/u16-snprintf.c: Likewise.
45295         * lib/unistdio/u16-sprintf.c: Likewise.
45296         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45297         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45298         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45299         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45300         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45301         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45302         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45303         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45304         * lib/unistdio/u16-vasnprintf.c: Likewise.
45305         * lib/unistdio/u16-vasprintf.c: Likewise.
45306         * lib/unistdio/u16-vsnprintf.c: Likewise.
45307         * lib/unistdio/u16-vsprintf.c: Likewise.
45308         * lib/unistdio/u32-asnprintf.c: Likewise.
45309         * lib/unistdio/u32-asprintf.c: Likewise.
45310         * lib/unistdio/u32-printf-parse.c: Likewise.
45311         * lib/unistdio/u32-snprintf.c: Likewise.
45312         * lib/unistdio/u32-sprintf.c: Likewise.
45313         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45314         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45315         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45316         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45317         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45318         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45319         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45320         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45321         * lib/unistdio/u32-vasnprintf.c: Likewise.
45322         * lib/unistdio/u32-vasprintf.c: Likewise.
45323         * lib/unistdio/u32-vsnprintf.c: Likewise.
45324         * lib/unistdio/u32-vsprintf.c: Likewise.
45325         * lib/unistdio/u8-asnprintf.c: Likewise.
45326         * lib/unistdio/u8-asprintf.c: Likewise.
45327         * lib/unistdio/u8-printf-parse.c: Likewise.
45328         * lib/unistdio/u8-snprintf.c: Likewise.
45329         * lib/unistdio/u8-sprintf.c: Likewise.
45330         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45331         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45332         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45333         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45334         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45335         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45336         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45337         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45338         * lib/unistdio/u8-vasnprintf.c: Likewise.
45339         * lib/unistdio/u8-vasprintf.c: Likewise.
45340         * lib/unistdio/u8-vsnprintf.c: Likewise.
45341         * lib/unistdio/u8-vsprintf.c: Likewise.
45342         * lib/unistdio/ulc-asnprintf.c: Likewise.
45343         * lib/unistdio/ulc-asprintf.c: Likewise.
45344         * lib/unistdio/ulc-printf-parse.c: Likewise.
45345         * lib/unistdio/ulc-snprintf.c: Likewise.
45346         * lib/unistdio/ulc-sprintf.c: Likewise.
45347         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45348         * lib/unistdio/ulc-vasprintf.c: Likewise.
45349         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45350         * lib/unistdio/ulc-vsprintf.c: Likewise.
45351         * lib/unistr.h: Likewise.
45352         * lib/unistr/u-cpy-alloc.h: Likewise.
45353         * lib/unistr/u-cpy.h: Likewise.
45354         * lib/unistr/u-endswith.h: Likewise.
45355         * lib/unistr/u-move.h: Likewise.
45356         * lib/unistr/u-set.h: Likewise.
45357         * lib/unistr/u-startswith.h: Likewise.
45358         * lib/unistr/u-stpcpy.h: Likewise.
45359         * lib/unistr/u-stpncpy.h: Likewise.
45360         * lib/unistr/u-strcat.h: Likewise.
45361         * lib/unistr/u-strcpy.h: Likewise.
45362         * lib/unistr/u-strcspn.h: Likewise.
45363         * lib/unistr/u-strdup.h: Likewise.
45364         * lib/unistr/u-strlen.h: Likewise.
45365         * lib/unistr/u-strncat.h: Likewise.
45366         * lib/unistr/u-strncpy.h: Likewise.
45367         * lib/unistr/u-strnlen.h: Likewise.
45368         * lib/unistr/u-strpbrk.h: Likewise.
45369         * lib/unistr/u-strspn.h: Likewise.
45370         * lib/unistr/u-strstr.h: Likewise.
45371         * lib/unistr/u-strtok.h: Likewise.
45372         * lib/unistr/u16-check.c: Likewise.
45373         * lib/unistr/u16-chr.c: Likewise.
45374         * lib/unistr/u16-cmp.c: Likewise.
45375         * lib/unistr/u16-cpy-alloc.c: Likewise.
45376         * lib/unistr/u16-cpy.c: Likewise.
45377         * lib/unistr/u16-endswith.c: Likewise.
45378         * lib/unistr/u16-mblen.c: Likewise.
45379         * lib/unistr/u16-mbsnlen.c: Likewise.
45380         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45381         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45382         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45383         * lib/unistr/u16-mbtouc.c: Likewise.
45384         * lib/unistr/u16-mbtoucr.c: Likewise.
45385         * lib/unistr/u16-move.c: Likewise.
45386         * lib/unistr/u16-next.c: Likewise.
45387         * lib/unistr/u16-prev.c: Likewise.
45388         * lib/unistr/u16-set.c: Likewise.
45389         * lib/unistr/u16-startswith.c: Likewise.
45390         * lib/unistr/u16-stpcpy.c: Likewise.
45391         * lib/unistr/u16-stpncpy.c: Likewise.
45392         * lib/unistr/u16-strcat.c: Likewise.
45393         * lib/unistr/u16-strchr.c: Likewise.
45394         * lib/unistr/u16-strcmp.c: Likewise.
45395         * lib/unistr/u16-strcpy.c: Likewise.
45396         * lib/unistr/u16-strcspn.c: Likewise.
45397         * lib/unistr/u16-strdup.c: Likewise.
45398         * lib/unistr/u16-strlen.c: Likewise.
45399         * lib/unistr/u16-strmblen.c: Likewise.
45400         * lib/unistr/u16-strmbtouc.c: Likewise.
45401         * lib/unistr/u16-strncat.c: Likewise.
45402         * lib/unistr/u16-strncmp.c: Likewise.
45403         * lib/unistr/u16-strncpy.c: Likewise.
45404         * lib/unistr/u16-strnlen.c: Likewise.
45405         * lib/unistr/u16-strpbrk.c: Likewise.
45406         * lib/unistr/u16-strrchr.c: Likewise.
45407         * lib/unistr/u16-strspn.c: Likewise.
45408         * lib/unistr/u16-strstr.c: Likewise.
45409         * lib/unistr/u16-strtok.c: Likewise.
45410         * lib/unistr/u16-to-u32.c: Likewise.
45411         * lib/unistr/u16-to-u8.c: Likewise.
45412         * lib/unistr/u16-uctomb-aux.c: Likewise.
45413         * lib/unistr/u16-uctomb.c: Likewise.
45414         * lib/unistr/u32-check.c: Likewise.
45415         * lib/unistr/u32-chr.c: Likewise.
45416         * lib/unistr/u32-cmp.c: Likewise.
45417         * lib/unistr/u32-cpy-alloc.c: Likewise.
45418         * lib/unistr/u32-cpy.c: Likewise.
45419         * lib/unistr/u32-endswith.c: Likewise.
45420         * lib/unistr/u32-mblen.c: Likewise.
45421         * lib/unistr/u32-mbsnlen.c: Likewise.
45422         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45423         * lib/unistr/u32-mbtouc.c: Likewise.
45424         * lib/unistr/u32-mbtoucr.c: Likewise.
45425         * lib/unistr/u32-move.c: Likewise.
45426         * lib/unistr/u32-next.c: Likewise.
45427         * lib/unistr/u32-prev.c: Likewise.
45428         * lib/unistr/u32-set.c: Likewise.
45429         * lib/unistr/u32-startswith.c: Likewise.
45430         * lib/unistr/u32-stpcpy.c: Likewise.
45431         * lib/unistr/u32-stpncpy.c: Likewise.
45432         * lib/unistr/u32-strcat.c: Likewise.
45433         * lib/unistr/u32-strchr.c: Likewise.
45434         * lib/unistr/u32-strcmp.c: Likewise.
45435         * lib/unistr/u32-strcpy.c: Likewise.
45436         * lib/unistr/u32-strcspn.c: Likewise.
45437         * lib/unistr/u32-strdup.c: Likewise.
45438         * lib/unistr/u32-strlen.c: Likewise.
45439         * lib/unistr/u32-strmblen.c: Likewise.
45440         * lib/unistr/u32-strmbtouc.c: Likewise.
45441         * lib/unistr/u32-strncat.c: Likewise.
45442         * lib/unistr/u32-strncmp.c: Likewise.
45443         * lib/unistr/u32-strncpy.c: Likewise.
45444         * lib/unistr/u32-strnlen.c: Likewise.
45445         * lib/unistr/u32-strpbrk.c: Likewise.
45446         * lib/unistr/u32-strrchr.c: Likewise.
45447         * lib/unistr/u32-strspn.c: Likewise.
45448         * lib/unistr/u32-strstr.c: Likewise.
45449         * lib/unistr/u32-strtok.c: Likewise.
45450         * lib/unistr/u32-to-u16.c: Likewise.
45451         * lib/unistr/u32-to-u8.c: Likewise.
45452         * lib/unistr/u32-uctomb.c: Likewise.
45453         * lib/unistr/u8-check.c: Likewise.
45454         * lib/unistr/u8-chr.c: Likewise.
45455         * lib/unistr/u8-cmp.c: Likewise.
45456         * lib/unistr/u8-cpy-alloc.c: Likewise.
45457         * lib/unistr/u8-cpy.c: Likewise.
45458         * lib/unistr/u8-endswith.c: Likewise.
45459         * lib/unistr/u8-mblen.c: Likewise.
45460         * lib/unistr/u8-mbsnlen.c: Likewise.
45461         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45462         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45463         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45464         * lib/unistr/u8-mbtouc.c: Likewise.
45465         * lib/unistr/u8-mbtoucr.c: Likewise.
45466         * lib/unistr/u8-move.c: Likewise.
45467         * lib/unistr/u8-next.c: Likewise.
45468         * lib/unistr/u8-prev.c: Likewise.
45469         * lib/unistr/u8-set.c: Likewise.
45470         * lib/unistr/u8-startswith.c: Likewise.
45471         * lib/unistr/u8-stpcpy.c: Likewise.
45472         * lib/unistr/u8-stpncpy.c: Likewise.
45473         * lib/unistr/u8-strcat.c: Likewise.
45474         * lib/unistr/u8-strchr.c: Likewise.
45475         * lib/unistr/u8-strcmp.c: Likewise.
45476         * lib/unistr/u8-strcpy.c: Likewise.
45477         * lib/unistr/u8-strcspn.c: Likewise.
45478         * lib/unistr/u8-strdup.c: Likewise.
45479         * lib/unistr/u8-strlen.c: Likewise.
45480         * lib/unistr/u8-strmblen.c: Likewise.
45481         * lib/unistr/u8-strmbtouc.c: Likewise.
45482         * lib/unistr/u8-strncat.c: Likewise.
45483         * lib/unistr/u8-strncmp.c: Likewise.
45484         * lib/unistr/u8-strncpy.c: Likewise.
45485         * lib/unistr/u8-strnlen.c: Likewise.
45486         * lib/unistr/u8-strpbrk.c: Likewise.
45487         * lib/unistr/u8-strrchr.c: Likewise.
45488         * lib/unistr/u8-strspn.c: Likewise.
45489         * lib/unistr/u8-strstr.c: Likewise.
45490         * lib/unistr/u8-strtok.c: Likewise.
45491         * lib/unistr/u8-to-u16.c: Likewise.
45492         * lib/unistr/u8-to-u32.c: Likewise.
45493         * lib/unistr/u8-uctomb-aux.c: Likewise.
45494         * lib/unistr/u8-uctomb.c: Likewise.
45495         * lib/unitypes.h: Likewise.
45496         * lib/uniwidth.h: Likewise.
45497         * lib/uniwidth/cjk.h: Likewise.
45498         * lib/uniwidth/u16-strwidth.c: Likewise.
45499         * lib/uniwidth/u16-width.c: Likewise.
45500         * lib/uniwidth/u32-strwidth.c: Likewise.
45501         * lib/uniwidth/u32-width.c: Likewise.
45502         * lib/uniwidth/u8-strwidth.c: Likewise.
45503         * lib/uniwidth/u8-width.c: Likewise.
45504         * lib/uniwidth/width.c: Likewise.
45505
45506 2007-10-07  Bruno Haible  <bruno@clisp.org>
45507
45508         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45509         The file is still under LGPL (see modules/inttypes).
45510
45511 2007-10-06  Bruno Haible  <bruno@clisp.org>
45512
45513         * modules/trunc (Dependencies): Add 'extensions'.
45514         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45515         Reported by Ben Pfaff <blp@gnu.org>.
45516
45517 2007-10-06  Bruno Haible  <bruno@clisp.org>
45518
45519         * modules/freopen-tests: New file.
45520         * tests/test-freopen.c: New file.
45521
45522         * modules/fopen-tests: New file.
45523         * tests/test-fopen.c: New file.
45524
45525         * modules/fopen: New file.
45526         * lib/fopen.c: New file.
45527         * m4/fopen.m4: New file.
45528         * modules/freopen: New file.
45529         * lib/freopen.c: New file.
45530         * m4/freopen.m4: New file.
45531         * lib/stdio.in.h (fopen, freopen): New declarations.
45532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45533         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45534         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45535         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45536         * doc/functions/fopen.texi: Mention the 'fopen' module.
45537         * doc/functions/freopen.texi: Mention the 'freopen' module.
45538
45539 2007-10-06  Bruno Haible  <bruno@clisp.org>
45540
45541         * modules/open-tests: New file.
45542         * tests/test-open.c: New file.
45543
45544         * modules/open: New file.
45545         * lib/open.c: New file.
45546         * m4/open.m4: New file.
45547         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45548         lib/open.c does.
45549         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45550         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45551         macros.
45552         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45553         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45554         REPLACE_OPEN.
45555         * doc/functions/open.texi: Mention the 'open' module.
45556
45557 2007-10-04  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/ceill-tests: New file.
45560         * tests/test-ceill.c: New file.
45561
45562         * modules/ceill: New file.
45563         * lib/ceill.c: Replace entire file.
45564         * m4/ceill.m4: New file.
45565         * lib/math.in.h (ceill): Replace declaration.
45566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45567         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45568         * doc/functions/ceill.texi: Mention the 'ceill' module.
45569         * modules/mathl (Files): Remove lib/ceill.c.
45570         (Depends-on): Add ceill.
45571
45572 2007-10-04  Bruno Haible  <bruno@clisp.org>
45573
45574         * modules/ceilf-tests: New file.
45575         * tests/test-ceilf.c: New file.
45576
45577         * modules/ceilf: New file.
45578         * lib/ceil.c: New file.
45579         * lib/ceilf.c: New file.
45580         * m4/ceilf.m4: New file.
45581         * lib/math.in.h (ceilf): New declaration.
45582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45583         HAVE_DECL_CEILF.
45584         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45585         HAVE_DECL_CEILF.
45586         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45587
45588 2007-10-04  Bruno Haible  <bruno@clisp.org>
45589
45590         * modules/floorl-tests: New file.
45591         * tests/test-floorl.c: New file.
45592
45593         * modules/floorl: New file.
45594         * lib/floorl.c: Replace entire file.
45595         * m4/floorl.m4: New file.
45596         * lib/math.in.h (floorl): Replace declaration.
45597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45598         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45599         * doc/functions/floorl.texi: Mention the 'floorl' module.
45600         * modules/mathl (Files): Remove lib/floorl.c.
45601         (Depends-on): Add floorl.
45602
45603 2007-10-04  Bruno Haible  <bruno@clisp.org>
45604
45605         * modules/floorf-tests: New file.
45606         * tests/test-floorf.c: New file.
45607
45608         * modules/floorf: New file.
45609         * lib/floor.c: New file.
45610         * lib/floorf.c: New file.
45611         * m4/floorf.m4: New file.
45612         * lib/math.in.h (floorf): New declaration.
45613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45614         HAVE_DECL_FLOORF.
45615         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45616         HAVE_DECL_FLOORF.
45617         * doc/functions/floorf.texi: Mention the 'floorf' module.
45618
45619 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45620             Bruno Haible  <bruno@clisp.org>
45621
45622         Advertise for the Git server instead of the CVS server.
45623         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45624         repository instead of the CVS one.
45625         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45626         about all VCS systems generically.
45627         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45628
45629 2007-10-04  Bruno Haible  <bruno@clisp.org>
45630
45631         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45632         means.
45633         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45634
45635 2007-10-04  Bruno Haible  <bruno@clisp.org>
45636
45637         * modules/truncl-tests: New file.
45638         * tests/test-truncl.c: New file.
45639
45640         * modules/truncl: New file.
45641         * lib/truncl.c: New file.
45642         * m4/truncl.m4: New file.
45643         * lib/math.in.h (truncl): New declaration.
45644         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45645         HAVE_DECL_TRUNCL.
45646         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45647         HAVE_DECL_TRUNCL.
45648         * doc/functions/truncl.texi: Mention the 'truncl' module.
45649
45650 2007-10-04  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/truncf-tests: New file.
45653         * tests/test-truncf.c: New file.
45654
45655         * modules/truncf: New file.
45656         * lib/trunc.c: Make paramerizable through USE_* macros.
45657         * lib/truncf.c: New file.
45658         * m4/truncf.m4: New file.
45659         * lib/math.in.h (truncf): New declaration.
45660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45661         HAVE_DECL_TRUNCF.
45662         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45663         HAVE_DECL_TRUNCF.
45664         * doc/functions/truncf.texi: Mention the 'truncf' module.
45665
45666 2007-10-03  Bruno Haible  <bruno@clisp.org>
45667
45668         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45669         augmentation also for tests modules.
45670         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45671         * modules/atexit-tests (Makefile.am): Likewise.
45672         * modules/binary-io-tests (Makefile.am): Likewise.
45673         * modules/c-strcase-tests (Makefile.am): Likewise.
45674         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45675         * modules/canonicalize-tests (Makefile.am): Likewise.
45676         * modules/closein-tests (Makefile.am): Likewise.
45677         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45678         * modules/freadahead-tests (Makefile.am): Likewise.
45679         * modules/fseek-tests (Makefile.am): Likewise.
45680         * modules/fseeko-tests (Makefile.am): Likewise.
45681         * modules/ftell-tests (Makefile.am): Likewise.
45682         * modules/ftello-tests (Makefile.am): Likewise.
45683         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45684         * modules/isnanl-tests (Makefile.am): Likewise.
45685         * modules/lseek-tests (Makefile.am): Likewise.
45686         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45687         * modules/mbscasestr-tests (Makefile.am): Likewise.
45688         * modules/mbschr-tests (Makefile.am): Likewise.
45689         * modules/mbscspn-tests (Makefile.am): Likewise.
45690         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45691         * modules/mbspbrk-tests (Makefile.am): Likewise.
45692         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45693         * modules/mbsrchr-tests (Makefile.am): Likewise.
45694         * modules/mbsspn-tests (Makefile.am): Likewise.
45695         * modules/mbsstr-tests (Makefile.am): Likewise.
45696         * modules/printf-posix-tests (Makefile.am): Likewise.
45697         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45698         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45699         * modules/tsearch-tests (Makefile.am): Likewise.
45700         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45701         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45702         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45703         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45704         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45705         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45706         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45707         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45708         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45709         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45710         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45711         * modules/xstrtol-tests (Makefile.am): Likewise.
45712         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45713         * modules/yesno-tests (Makefile.am): Likewise.
45714
45715 2007-10-03  Bruno Haible  <bruno@clisp.org>
45716
45717         * modules/trunc-tests: New file.
45718         * tests/test-trunc.c: New file.
45719
45720         * modules/trunc: New file.
45721         * lib/trunc.c: New file.
45722         * m4/trunc.m4: New file.
45723         * lib/math.in.h (trunc): New declaration.
45724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45725         HAVE_DECL_TRUNC.
45726         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45727         HAVE_DECL_TRUNC.
45728         * doc/functions/trunc.texi: Mention the 'trunc' module.
45729
45730 2007-10-03  Bruno Haible  <bruno@clisp.org>
45731
45732         * tests/test-fpending.c: New file, mostly copied
45733         from coreutils/lib/t-fpending.c.
45734         * modules/fpending-tests: New file.
45735
45736 2007-10-03  Bruno Haible  <bruno@clisp.org>
45737
45738         Port the stdio extensions to QNX (untested).
45739         * lib/fseterr.c (fseterr): Add support for QNX.
45740         * lib/fbufmode.c (fbufmode): Likewise.
45741         * lib/freadable.c (freadable): Likewise.
45742         * lib/fwritable.c (fwritable): Likewise.
45743         * lib/freading.c (freading): Likewise.
45744         * lib/fwriting.c (fwriting): Likewise.
45745         * lib/freadahead.c (freadahed): Likewise.
45746         * lib/fpurge.c (fpurge): Likewise.
45747         * lib/fseeko.c (rpl_fseeko): Likewise.
45748
45749 2007-10-03  Bruno Haible  <bruno@clisp.org>
45750             Jim Meyering  <jim@meyering.net>
45751             Eric Blake  <ebb9@byu.net>
45752
45753         * doc/relocatable.texi: Use @command instead of @program.
45754
45755 2007-10-02  Jim Meyering  <jim@meyering.net>
45756
45757         Perform one more "_.h" -> ".in.h" substitution.
45758         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45759         instead of unistd_.h here, too.
45760
45761 2007-10-01  Bruno Haible  <bruno@clisp.org>
45762
45763         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45764         Needed for the alloca-opt module.
45765
45766 2007-09-30  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45769         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45770         alloca_.h.
45771         * lib/argz.in.h: Renamed from lib/argz_.h.
45772         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45773         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45774         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45775         byteswap_.h.
45776         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45777         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45778         dirent_.h.
45779         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45780         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45781         fcntl_.h.
45782         * lib/float.in.h: Renamed from lib/float_.h.
45783         * modules/float (Files, Makefile.am): Use float.in.h instead of
45784         float_.h.
45785         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45786         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45787         fnmatch_.h.
45788         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45789         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45790         getopt_.h.
45791         * lib/glob.in.h: Renamed from lib/glob_.h.
45792         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45793         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45794         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45795         iconv_.h.
45796         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45797         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45798         inttypes_.h.
45799         * lib/locale.in.h: Renamed from lib/locale_.h.
45800         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45801         locale_.h.
45802         * lib/math.in.h: Renamed from lib/math_.h.
45803         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45804         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45805         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45806         of netinet_in_.h. Add dependency.
45807         * lib/poll.in.h: Renamed from lib/poll_.h.
45808         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45809         * lib/search.in.h: Renamed from lib/search_.h.
45810         * modules/search (Files, Makefile.am): Use search.in.h instead of
45811         search_.h.
45812         * lib/signal.in.h: Renamed from lib/signal_.h.
45813         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45814         _signal.h.
45815         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45816         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45817         stdbool_.h.
45818         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45819         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45820         stdint_.h.
45821         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45822         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45823         stdio_.h.
45824         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45825         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45826         stdlib_.h.
45827         * lib/string.in.h: Renamed from lib/string_.h.
45828         * modules/string (Files, Makefile.am): Use string.in.h instead of
45829         string_.h.
45830         * doc/gnulib-tool.texi (Initial import): Update.
45831         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45832         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45833         of sys_select_.h. Add dependency.
45834         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45835         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45836         of sys_socket_.h.
45837         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45838         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45839         sys_stat_.h.
45840         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45841         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45842         sys_time_.h.
45843         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45844         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45845         sysexits_.h.
45846         * lib/time.in.h: Renamed from lib/time_.h.
45847         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45848         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45849         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45850         unistd_.h.
45851         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45852         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45853         wchar_.h.
45854         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45855         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45856         wctype_.h.
45857         * build-aux/bootstrap (slurp): Update.
45858         * lib/.cppi-disable: Update.
45859
45860 2007-09-30  Bruno Haible  <bruno@clisp.org>
45861
45862         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45863         Needed on BeOS.
45864
45865 2007-09-30  Bruno Haible  <bruno@clisp.org>
45866
45867         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45868
45869 2007-09-29  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45872
45873 2007-09-29  Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45876         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45877         * build-aux/install-reloc: Compile also areadlink.c.
45878         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45879
45880 2007-09-29  Bruno Haible  <bruno@clisp.org>
45881
45882         * gnulib-tool (func_emit_initmacro_done): Indentation.
45883
45884 2007-09-29  Bruno Haible  <bruno@clisp.org>
45885
45886         * README: Add CVS checkout update instructions.
45887         Info from Bob Proulx <bob@proulx.com>.
45888
45889 2007-09-28  Eric Blake  <ebb9@byu.net>
45890
45891         Provide move-if-change.
45892         * build-aux/move-if-change: New file, based on best practice
45893         rather than any canonical upstream location.
45894
45895 2007-09-28  Jim Meyering  <jim@meyering.net>
45896
45897         Fix canonicalize loop-detection corner case.
45898         Do not attempt to stat the symlink values stored via seen_triple.
45899         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45900         on linux-2.6.18, (but not 2.6.22).
45901         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45902         triple_compare.  The former compares dev,ino,filename, while the latter
45903         would actually stat dirname(filename) when dev and ino were equal.
45904         * lib/hash-triple.c: Install <string.h>.
45905         (STREQ): Define.
45906         (triple_compare_ino_str): New function.
45907         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45908
45909 2007-09-28  Eric Blake  <ebb9@byu.net>
45910
45911         Enforce that AC_REPLACE_FUNCS files exist.
45912         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45913         override check for typos.
45914
45915         Fix test-closein on Solaris 10.
45916         * tests/test-closein.c (main): Don't assume stdin can be inherited
45917         closed on all systems.
45918         * tests/test-closein.sh: Likewise.
45919         Reported by Piotr Tarnowski.
45920
45921 2007-09-28  Jim Meyering  <jim@meyering.net>
45922
45923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45924
45925 2007-09-27  Jim Meyering  <jim@meyering.net>
45926
45927         canonicalize: Avoid a false-positive cycle failure.
45928         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45929         Sort.  Remove cycle-check.
45930         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45931         not cycle-check.h.
45932         (seen_triple): New function.
45933         (canonicalize_filename_mode): Use it instead of cycle-check.
45934         * tests/test-canonicalize.c: Add a test for this bug.
45935         * tests/test-canonicalize.sh: Set up and run the test.
45936
45937         New module, file-set, from coreutils.
45938         * modules/file-set: Define it.
45939         * lib/file-set.c, lib/file-set.h: Implement.
45940
45941         New module, hash-triple, from coreutils.
45942         * modules/hash-triple: Define it.
45943         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45944
45945 2007-09-25  Eric Blake  <ebb9@byu.net>
45946
45947         Fix strerror on Interix.
45948         * lib/string_.h (strerror): Declare replacement.
45949         * doc/functions/strerror.texi (strerror): Document the Interix
45950         shortcoming.
45951         * modules/string (Makefile.am): Support new hooks.
45952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45953         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45954         gl_FUNC_STRERROR_SEPARATE.
45955         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45956         * lib/strerror.c (rpl_strerror): Provide replacement.
45957         * modules/strerror (Depends-on): Add string.
45958         (configure.ac): Detect use of module.
45959         * tests/test-strerror.c: New file.
45960         * modules/strerror-tests: New test module.
45961         * modules/argp (Depends-on): Add strerror.
45962         * modules/error (Depends-on): Likewise.
45963         Reported by Martin Koeppe.
45964
45965 2007-09-24  Bruno Haible  <bruno@clisp.org>
45966
45967         * README: Update git instructions.
45968
45969 2007-09-24  Eric Blake  <ebb9@byu.net>
45970
45971         Revert fpending breakage from 2007-09-08.
45972         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45973         __fpending.c.
45974
45975 2007-09-24  Jim Meyering  <jim@meyering.net>
45976
45977         filenamecat.c: Add a test.
45978         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45979         showing how the function works when DIR is the empty string.
45980
45981 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45982
45983         * tests/test-canonicalize.sh: Turn on executable bit.
45984
45985 2007-09-19  Eric Blake  <ebb9@byu.net>
45986
45987         * README: Update CVS instructions.
45988
45989 2007-09-18  Bruno Haible  <bruno@clisp.org>
45990
45991         * modules/areadlink: New file.
45992         * lib/areadlink.h (areadlink): New declaration.
45993         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45994
45995 2007-09-17  Jim Meyering  <jim@meyering.net>
45996
45997         * lib/savewd.c (ESTALE) [!defined]: Define.
45998         Reported to be required on Interix by Martin Koeppe.
45999
46000 2007-09-17  Bruno Haible  <bruno@clisp.org>
46001
46002         * gnulib-tool (func_version): Use $version.
46003
46004 2007-09-16  Bruno Haible  <bruno@clisp.org>
46005
46006         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46007         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46008         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46009         Reported by Greg Schafer <gschafer@zip.com.au>.
46010
46011 2007-09-15  Bruno Haible  <bruno@clisp.org>
46012
46013         * gnulib-tool (sed): Try a little harder to make bash understand the
46014         alias.
46015         Reported by Bruce Korb <bruce.korb@gmail.com>.
46016
46017 2007-09-13  Eric Blake  <ebb9@byu.net>
46018
46019         * ChangeLog: Remove conflict markers.
46020
46021 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46022
46023         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46024         Reported by Bruno Haible <bruno@clisp.org>.
46025
46026 2007-09-12  Bruno Haible  <bruno@clisp.org>
46027
46028         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46029         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46030         is not defined.
46031
46032 2007-09-12  Eric Blake  <ebb9@byu.net>
46033
46034         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46035         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46036         Autoconf definition.
46037         * modules/euidaccess (Depends-on): Add extensions, for
46038         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46039         * modules/fnmatch (Depends-on): Likewise.
46040         * modules/getaddrinfo (Depends-on): Likewise.
46041         * modules/getdelim (Depends-on): Likewise.
46042         * modules/getline (Depends-on): Likewise.
46043         * modules/getsubopt (Depends-on): Likewise.
46044         * modules/gettext (Depends-on): Likewise.
46045         * modules/group-member (Depends-on): Likewise.
46046         * modules/mbchar (Depends-on): Likewise.
46047         * modules/memmem (Depends-on): Likewise.
46048         * modules/mempcpy (Depends-on): Likewise.
46049         * modules/memrchr (Depends-on): Likewise.
46050         * modules/pagealign_alloc (Depends-on): Likewise.
46051         * modules/readutmp (Depends-on): Likewise.
46052         * modules/stpcpy (Depends-on): Likewise.
46053         * modules/stpncpy (Depends-on): Likewise.
46054         * modules/strchrnul (Depends-on): Likewise.
46055         * modules/strndup (Depends-on): Likewise.
46056         * modules/strsep (Depends-on): Likewise.
46057         * modules/strverscmp (Depends-on): Likewise.
46058         * modules/vasprintf (Depends-on): Likewise.
46059         * modules/wcwidth (Depends-on): Likewise.
46060         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46061         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46062         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46063         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46064         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46065         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46066         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46067         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46068         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46069         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46070         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46071         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46072         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46073         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46074         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46075         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46076         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46077         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46079         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46080         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46081         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46082         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46083         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46084         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46086         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46087         so that lock.m4 can be used in gettext without extensions module.
46088
46089 2007-09-11  Bruno Haible  <bruno@clisp.org>
46090
46091         * m4/isc-posix.m4: Remove file.
46092         Suggested by Eric Blake.
46093
46094 2007-09-11  Eric Blake  <ebb9@byu.net>
46095
46096         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46097
46098 2007-09-10  Bruno Haible  <bruno@clisp.org>
46099
46100         * posix-modules: Fix typo in error message.
46101         Reported by Matt <mkraai@beckman.com>.
46102
46103 2007-09-09  Bruno Haible  <bruno@clisp.org>
46104
46105         * doc/functions/getdelim.texi: Update list of platforms lacking the
46106         function.
46107         * doc/functions/getline.texi: Likewise.
46108
46109 2007-09-09  Jim Meyering  <jim@meyering.net>
46110
46111         * lib/hash.c (hash_initialize): Detect calloc failure.
46112         Reported by Bruno Haible.
46113
46114 2007-09-09  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46117         malloc or realloc fails.
46118
46119 2007-09-09  Bruno Haible  <bruno@clisp.org>
46120
46121         * modules/getcwd (Depends-on): Add malloc-posix.
46122         * modules/glob (Depends-on): Likewise.
46123         * modules/putenv (Depends-on): Likewise.
46124         * modules/strdup (Depends-on): Likewise.
46125         * modules/getdelim (Depends-on): Add realloc-posix.
46126         * modules/read-file (Depends-on): Likewise.
46127
46128 2007-09-09  Bruno Haible  <bruno@clisp.org>
46129
46130         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46131         (gl_FUNC_MALLOC_POSIX): Require it.
46132         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46133         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46134         * modules/realloc (Files): Add m4/malloc.m4.
46135         * modules/calloc (Files): Likewise.
46136
46137 2007-09-09  Bruno Haible  <bruno@clisp.org>
46138
46139         * modules/malloc-posix: New file.
46140         * modules/malloc (Depends-on): Add malloc-posix.
46141         * lib/malloc.c: Include errno.h.
46142         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46143         and a POSIX-compatible malloc into a single function. Set ENOMEM
46144         when returning NULL.
46145         * m4/malloc.m4: New file.
46146         * doc/functions/malloc.texi: Mention the malloc-posix module.
46147         * lib/stdlib_.h (malloc): New declaration.
46148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46149         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46150         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46151         and HAVE_MALLOC_POSIX.
46152
46153 2007-09-09  Bruno Haible  <bruno@clisp.org>
46154
46155         * modules/realloc-posix: New file.
46156         * modules/realloc (Depends-on): Add realloc-posix.
46157         * lib/realloc.c: Include errno.h.
46158         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46159         and a POSIX-compatible realloc into a single function. Set ENOMEM
46160         when returning NULL.
46161         * m4/realloc.m4: New file.
46162         * doc/functions/realloc.texi: Mention the realloc-posix module.
46163         * lib/stdlib_.h (realloc): New declaration.
46164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46165         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46166         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46167         and HAVE_REALLOC_POSIX.
46168
46169 2007-09-09  Bruno Haible  <bruno@clisp.org>
46170
46171         * modules/calloc-posix: New file.
46172         * modules/calloc (Depends-on): Add calloc-posix.
46173         * lib/calloc.c: Include errno.h.
46174         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46175         and a POSIX-compatible calloc into a single function. Set ENOMEM
46176         when returning NULL.
46177         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46178         * doc/functions/calloc.texi: Mention the calloc-posix module.
46179         * lib/stdlib_.h (calloc): New declaration.
46180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46181         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46182         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46183         and HAVE_CALLOC_POSIX.
46184
46185 2007-09-09  Bruno Haible  <bruno@clisp.org>
46186
46187         Allow for modules to show an arbitrary notice.
46188         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46189         * gnulib-tool: New option --extract-notice.
46190         (func_usage): Document it.
46191         (sed_extract_prog): Update.
46192         (func_get_notice): New function.
46193         (func_modules_notice): New function.
46194         (func_import, func_create_testdir): Invoke it.
46195         Suggested by Jim Meyering.
46196
46197 2007-09-09  Bruno Haible  <bruno@clisp.org>
46198
46199         * gnulib-tool: New options --verbose, --quiet.
46200         (func_usage): Document them.
46201         (verbose): New variable.
46202         (func_execute_command): New function.
46203         (func_import): Don't show the module list and the file list if
46204         $verbose < 0.
46205         (func_create_testdir): Likewise. Use func_execute_command.
46206         (func_create_megatestdir): Use func_execute_command.
46207
46208 2007-09-08  Bruno Haible  <bruno@clisp.org>
46209
46210         * gnulib-tool (func_import): Prefer rsync over wget when available,
46211         for fetching the PO files.
46212
46213 2007-09-08  Bruno Haible  <bruno@clisp.org>
46214
46215         * posix-modules: New file. Portions copied from gnulib-tool.
46216         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46217
46218 2007-09-08  Jim Meyering  <jim@meyering.net>
46219
46220         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46221         * lib/fpending.h: Rename from __fpending.h.
46222         * lib/fpending.c: Rename from __fpending.c.
46223         Include "fpending.h", not "__fpending.h".
46224         * lib/__fpending.h, lib/__fpending.c: Remove files.
46225         * modules/fpending (Files): Reflect new file names.
46226         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46227
46228 2007-09-08  Bruno Haible  <bruno@clisp.org>
46229
46230         * m4/inttypes-h.m4: Remove stub file.
46231
46232 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46233
46234         * doc/headers/stdint.texi: Discuss #include_next issue.
46235
46236 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46237
46238         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46239
46240 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46241
46242         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46243         in variable name.
46244
46245 2007-09-03  Jim Meyering  <jim@meyering.net>
46246
46247         New module: git-version-gen.
46248         * modules/git-version-gen: New file.
46249
46250         Import changes from coreutils for bootstrap script.
46251
46252         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46253
46254         bootstrap: uses rsync to download the .po files
46255         * build-aux/bootstrap (po_download_command_format): New global.
46256         (download_po_files): Use rsync.
46257         (update_po_files): Don't remove .po files after download,
46258         so future rsync runs can take advantage of the copies.
46259
46260         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46261
46262         Solve the unnecessary-.po-file-regeneration problem once and for all.
46263         * build-aux/bootstrap (download_po_files): New function, renamed from
46264         get_translations.  Now, downloads, but doesn't update LINGUAS.
46265         (update_po_files): New function.
46266
46267         bootstrap: Ignore more.
46268         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46269         uniwidth to e.g., lib/.gitignore.
46270         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46271
46272         * build-aux/bootstrap: New setting: vc_ignore.
46273         (insert_sorted_if_absent): Create $file if absent.
46274         Adapt to new, possibly empty, list: $vc_ignore.
46275
46276         bootstrap: generate more ignorable names
46277         * build-aux/bootstrap (slurp): When generating ignorable names,
46278         also map .sin to .sed, .gperf to .c, and .y to .c.
46279
46280 2007-09-03  Jim Meyering  <jim@meyering.net>
46281
46282         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46283         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46284
46285 2007-09-02  Bruno Haible  <bruno@clisp.org>
46286
46287         Fix mis-recognition of 'mcs' on QNX 6.
46288         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46289         output contains the string "Mono".
46290         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46291         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46292
46293 2007-09-01  Bruno Haible  <bruno@clisp.org>
46294
46295         Fix collision between uniwidth/* and linebreak modules.
46296         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46297         u32_width): Remove declarations.
46298         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46299         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46300         streq3, streq2, streq1, streq0): Remove functions.
46301         (STREQ): Remove macro.
46302         (is_cjk_encoding): Remove function.
46303         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46304         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46305         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46306         * NEWS: Document the change.
46307
46308 2007-09-01  Bruno Haible  <bruno@clisp.org>
46309
46310         * lib/streq.h: Add double-inclusion guard.
46311
46312 2007-09-01  Karl Berry  <karl@gnu.org>
46313
46314         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46315
46316 2007-08-28  Jim Meyering  <jim@meyering.net>
46317
46318         Rename mreadlink_with_size to areadlink_with_size.
46319         * NEWS: Document the change.
46320         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46321         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46322         * lib/mreadlink.h: Rename this to...
46323         * lib/areadlink.h: ...this.
46324         * modules/mreadlink-with-size: Rename this to...
46325         * modules/areadlink-with-size: ...this.
46326         * lib/canonicalize.c: Reflect the renaming.
46327         * modules/canonicalize: Likewise.
46328
46329 2007-08-26  Bruno Haible  <bruno@clisp.org>
46330
46331         * gnulib-tool (func_import): When deciding which files to remove,
46332         consider also dangling symbolic links.
46333         Reported by Eric Blake.
46334
46335 2007-08-26  Bruno Haible  <bruno@clisp.org>
46336
46337         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46338
46339 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46340
46341         * lib/readline.c: Don't include getline.h, the prototype is now
46342         found in stdio.h.
46343
46344 2007-08-23  Jim Meyering  <jim@meyering.net>
46345
46346         Getdelim touchup.
46347         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46348         around the funlockfile call, since funlockfile never sets errno.
46349         Don't set errno upon failed realloc.
46350
46351 2007-08-22  Eric Blake  <ebb9@byu.net>
46352
46353         Getline touchups.
46354         * lib/getdelim.c (getdelim): Revert regression that required *n to
46355         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46357         getdelim, rather than whether implementation is missing.
46358         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46359         * lib/stdio_.h (getline): Also declare if replacement is
46360         required.
46361         * doc/functions/getdelim.texi: New file.
46362         * doc/functions/getline.texi: Likewise.
46363         * doc/gnulib.texi (Function Substitutes): Add new files.
46364         Reported by Bruno Haible.
46365
46366 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46367
46368         * users.txt: Add Guile.
46369
46370 2007-08-22  Eric Blake  <ebb9@byu.net>
46371
46372         * tests/test-getdelim.c (main): Use remove, not unlink.
46373         * tests/test-getline.c (main): Likewise.
46374
46375         Move getline and getdelim into stdio.h, per POSIX 200x.
46376         * modules/getline (Files): Remove getline.h.
46377         (Depends-on): Add stdio.
46378         (configure.ac): Add module indicator.
46379         * modules/getdelim (Files): Remove getdelim.h.
46380         (Depends-on): Add stdio.
46381         (configure.ac): Add module indicator.
46382         * modules/stdio (Makefile.am): Work with new indicators.
46383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46384         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46385         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46386         * lib/getdelim.h: Delete.
46387         * lib/getline.h: Delete.
46388         * lib/stdio_.h (getdelim, getline): Declare.
46389         * modules/getdelim-tests: New module.
46390         * modules/getline-tests: Likewise.
46391         * tests/test-getdelim.c: New file.
46392         * tests/test-getline.c: Likewise.
46393         * NEWS: Document the change.
46394         * lib/getline.c: Update choice of header.
46395         * lib/csharpcomp.c: Likewise.
46396         * lib/getpass.c: Likewise.
46397         * lib/javacomp.c: Likewise.
46398         * lib/javaversion.c: Likewise.
46399         * lib/yesno.c: Likewise.
46400         * lib/getdelim.c: Likewise.
46401         (getdelim): Set errno on failure, and avoid memory leak.
46402
46403 2007-08-19  Bruno Haible  <bruno@clisp.org>
46404
46405         * modules/closein (Depends-on): Add freadahead.
46406         * lib/closein.c: Include freadahead.h.
46407         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46408         is zero.
46409
46410 2007-08-19  Bruno Haible  <bruno@clisp.org>
46411
46412         * modules/freadahead-tests: New file.
46413         * tests/test-freadahead.sh: New file.
46414         * tests/test-freadahead.c: New file.
46415
46416         * modules/freadahead: New file.
46417         * lib/freadahead.h: New file.
46418         * lib/freadahead.c: New file.
46419         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46420         fbufmode, fpurge, freadable, fwritable.
46421
46422 2007-08-19  Eric Blake  <ebb9@byu.net>
46423
46424         Test yesno in combination with closein.
46425         * lib/yesno.c (yesno): Document use of stdin.
46426         * modules/yesno-tests (Files): New module.
46427         * tests/test-yesno.c (main): New file.
46428         * tests/test-yesno.sh: Likewise.
46429
46430 2007-08-19  Bruno Haible  <bruno@clisp.org>
46431
46432         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46433         * lib/fseeko.c (rpl_fseeko): Likewise.
46434         * lib/fseterr.c (fseterr): Likewise.
46435
46436 2007-08-19  Bruno Haible  <bruno@clisp.org>
46437
46438         * tests/test-lseek.c (main): Disable a test for BeOS.
46439         * doc/functions/lseek.texi: Document the BeOS bug.
46440
46441 2007-08-19  Bruno Haible  <bruno@clisp.org>
46442             Eric Blake  <ebb9@byu.net>
46443
46444         * lib/lseek.c: Include <sys/stat.h>.
46445         (rpl_lseek): Add workaround code also for Unix platforms.
46446         Needed for BeOS.
46447         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46448         * doc/functions/lseek.texi: Document BeOS definiency.
46449
46450 2007-08-18  Bruno Haible  <bruno@clisp.org>
46451
46452         * modules/fstrcmp-tests: New file.
46453         * tests/test-fstrcmp.c: New file.
46454
46455 2007-08-18  Bruno Haible  <bruno@clisp.org>
46456
46457         * modules/fstrcmp: New file, from GNU gettext with modifications.
46458         * lib/fstrcmp.h: New file, from GNU gettext.
46459         * lib/fstrcmp.c: New file, from GNU gettext.
46460         * MODULES.html.sh (String handling): Add fstrcmp.
46461
46462 2007-08-18  Bruno Haible  <bruno@clisp.org>
46463
46464         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46465         'bool'.
46466         (diag, compareseq): Remove const from the ctxt argument.
46467         (USE_HEURISTIC): Undefine at the end.
46468
46469 2007-08-18  Jim Meyering  <jim@meyering.net>
46470
46471         New file: lib/idcache.h
46472         * NEWS: Mention the addition.
46473         * modules/idcache (Files): Add lib/idcache.h
46474         * lib/idcache.c: Include "idcache.h".
46475         Don't include <sys/types.h>.
46476         Add a FIXME comment.
46477         Move file-scoped "static" declarations to the top.
46478         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46479
46480 2007-08-17  Bruno Haible  <bruno@clisp.org>
46481         and Paul Eggert  <eggert@cs.ucla.edu>
46482
46483         * MODULES.html.sh: Add diffseq.
46484         * modules/diffseq: New file.
46485         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46486         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46487
46488 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46489
46490         Import changes from coreutils for bootstrap script.
46491
46492         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46493
46494         * build-aux/bootstrap (slurp): Work even in environments where
46495         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46496         current code does not slurp files whose names start with ".", and
46497         this looks like it might be a troublesome area.
46498
46499         2007-07-11  Jim Meyering  <jim@meyering.net>
46500
46501         If there's a GPL vN copyright comment, require that N == 3.
46502
46503         2007-07-08  Jim Meyering  <jim@meyering.net>
46504
46505         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46506         * build-aux/bootstrap (mam_template): Move definition out of loop.
46507
46508         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46509
46510         * build-aux/bootstrap (symlink_to_dir): Rename function from
46511         symlink_to_gnulib.  Add a directory parameter.  Update all
46512         callers.
46513         (cp_mark_as_generated): Also check for -- and link to -- files in
46514         gl/.
46515
46516         2007-07-08  Jim Meyering  <jim@meyering.net>
46517
46518         Adapt to deeper hierarchy in gnulib.
46519         * build-aux/bootstrap (symlink_to_dir): If the destination
46520         directory doesn't exist, create it. This is required at least for
46521         "lib/uniwidth/cjk.h".
46522
46523         2007-05-15  Jim Meyering  <jim@meyering.net>
46524
46525         * build-aux/bootstrap: Now that generated Makefile.am files
46526         are no longer under version control, they must be created at
46527         bootstrap time.
46528
46529 2007-08-14  Ben Pfaff  <blp@gnu.org>
46530
46531         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46532
46533 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46534
46535         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46536         given the changes below.
46537         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46538         even on hosts that have padding bits beyond the supported 64.
46539
46540 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46541
46542         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46543         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46544         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46545         depends on it.
46546         (xstrtol_error): Remove.
46547         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46548         but with a different signature.
46549         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46550         * lib/xstrtol-error.c: Include exitfail.h.
46551         (xstrtol_fatal): New function, with a different signature from the
46552         old xstrtol_error, so that the caller need not worry about passing
46553         in an exit status, or about storage management of the option argument.
46554         (xstrtol_error): Now a static function.  Redo signature to
46555         implement xstrtol_fatal.  Output the correct number of hyphens in
46556         front of the option so that the caller need not worry about
46557         storage management.
46558         (N_): New macro.
46559         (_): Remove; not used now.
46560         * modules/xstrtol: Depend on getopt.
46561         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46562         of old STRTOL_FATAL_ERROR macro.
46563         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46564         of test program.
46565         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46566         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46567
46568 2007-08-08  Eric Blake  <ebb9@byu.net>
46569
46570         * lib/xstrtol-error.c: Add missing include.
46571
46572         Move xstrtol messages into gnulib domain, when --pobase is used.
46573         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46574         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46575         * modules/xstrtol (Files): Distribute new file.
46576         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46577         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46578         * tests/test-xstrtol.c: ...into new file.
46579         * tests/test-xstrtoul.c: Also test xstrtoul.
46580         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46581         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46582         * tests/test-xstrtol.sh: Drive the tests.
46583         * tests/test-xstrtoimax.sh: Likewise.
46584         * tests/test-xstrtoumax.sh: Likewise.
46585         * modules/xstrtol-tests: New module.
46586         * modules/xstrtoimax-tests: Likewise.
46587         * modules/xstrtoumax-tests: Likewise.
46588
46589 2007-08-08  Jim Meyering  <jim@meyering.net>
46590
46591         New function: mfile_name_concat.
46592         * lib/filenamecat.c (mfile_name_concat): New function, just like
46593         file_name_concat, but return NULL upon failure rather than exiting
46594         with a diagnostic.
46595         * lib/filenamecat.h: Declare it.
46596
46597 2007-08-07  Bruno Haible  <bruno@clisp.org>
46598
46599         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46600         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46601         warning from gcc.
46602         Reported by Eric Blake.
46603
46604 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46605
46606         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46607         * modules/crypto/arcfour (License): Likewise.
46608         * modules/crypto/des-tests (License): Likewise.
46609         * modules/crypto/gc-arctwo-tests (License): Likewise.
46610         * modules/crypto/gc-des-tests (License): Likewise.
46611         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46612         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46613         * modules/crypto/gc-md2-tests (License): Likewise.
46614         * modules/crypto/gc-md4-tests (License): Likewise.
46615         * modules/crypto/gc-md5-tests (License): Likewise.
46616         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46617         * modules/crypto/gc-rijndael-tests (License): Likewise.
46618         * modules/crypto/gc-sha1-tests (License): Likewise.
46619         * modules/crypto/gc-tests (License): Likewise.
46620         * modules/crypto/hmac-md5 (License): Likewise.
46621         * modules/crypto/hmac-sha1 (License): Likewise.
46622         * modules/crypto/md2-tests (License): Likewise.
46623         * modules/crypto/md4-tests (License): Likewise.
46624         * modules/crypto/md5 (License): Likewise.
46625         * modules/crypto/rijndael (License): Likewise.
46626         * modules/crypto/sha1 (License): Likewise.
46627         * modules/memxor (License): Likewise.
46628
46629 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46630         and Bruno Haible  <bruno@clisp.org>
46631
46632         * NEWS: Describe interface changes to human, xstrtol.
46633         * lib/human.h: Include <xstrtol.h>.
46634         (human_options): Return enum strtol_error, not int.  Remove
46635         bool arg; take int * instead.
46636         * lib/human.c: Don't include "gettext.h".
46637         (_): Remove; no longer used.
46638         Don't include <xstrtol.h>, since human.h does it.
46639         (human_options): Adjust to abovementioned interface changes.
46640         Do not report error to stderr; that's now the caller's
46641         responsibility.
46642         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46643         interface change.
46644         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46645         Str, Argument_type_string.  All uses changed.  Put " argument"
46646         in diagnostics to make them clearer.  Change wording of suffix
46647         message for clarity.
46648         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46649         Argument_type_string.
46650         (STRTOL_FATAL_WARN): Remove; no longer used.
46651         * modules/human (Depends-on): Remove gettext-h.
46652
46653 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46654
46655         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46656
46657 2007-07-31  Bruno Haible  <bruno@clisp.org>
46658
46659         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46660         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46661         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46662
46663 2007-07-31  Bruno Haible  <bruno@clisp.org>
46664
46665         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46666         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46667
46668 2007-07-30  Bruno Haible  <bruno@clisp.org>
46669
46670         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46671         * modules/c-ctype (License): Likewise.
46672         * modules/c-strcase (License): Likewise.
46673         * modules/check-version (License): Likewise.
46674         * modules/iconv (License): Likewise.
46675         * modules/iconv_open (License): Likewise.
46676         * modules/read-file (License): Likewise.
46677         * modules/striconv (License): Likewise.
46678         * modules/strverscmp (License): Likewise.
46679         * modules/vasprintf (License): Likewise.
46680         * modules/crypto/des (License): Likewise.
46681         * modules/crypto/gc (License): Likewise.
46682         * modules/crypto/gc-arcfour (License): Likewise.
46683         * modules/crypto/gc-arctwo (License): Likewise.
46684         * modules/crypto/gc-des (License): Likewise.
46685         * modules/crypto/gc-hmac-md5 (License): Likewise.
46686         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46687         * modules/crypto/gc-md2 (License): Likewise.
46688         * modules/crypto/gc-md4 (License): Likewise.
46689         * modules/crypto/gc-md5 (License): Likewise.
46690         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46691         * modules/crypto/gc-random (License): Likewise.
46692         * modules/crypto/gc-rijndael (License): Likewise.
46693         * modules/crypto/gc-sha1 (License): Likewise.
46694         * modules/crypto/md2 (License): Likewise.
46695         * modules/crypto/md4 (License): Likewise.
46696
46697 2007-07-30  Jim Meyering  <jim@meyering.net>
46698
46699         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46700         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46701         it has valid stat data.  This bug would cause du not to count the
46702         sizes of inaccessible directories.
46703         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46704         in <http://bugzilla.redhat.com/250077>.
46705
46706 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46707             Bruno Haible  <bruno@clisp.org>
46708
46709         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46710         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46711         #include_next, gives a diagnostic about it, but reports no error in
46712         the exit code.
46713         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46714
46715 2007-07-24  Ben Pfaff  <blp@gnu.org>
46716
46717         Improve name: "count-one-bits" is better than "popcount".
46718         * MODULES.html.sh: Update name.
46719         * lib/popcount.h: Renamed lib/count-one-bits.h.
46720         (popcount): Renamed count_one_bits.
46721         (popcountl): Renamed count_one_bits_l.
46722         (popcountll): Renamed count_one_bits_ll.
46723         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46724         * modules/popcount: Renamed module/count-one-bits.
46725         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46726         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46727
46728 2007-07-23  Ben Pfaff  <blp@gnu.org>
46729
46730         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46731         better code generation, and add U to large constants to avoid
46732         warnings, in non-GCC case.
46733         Suggested by Bruno Haible.
46734
46735 2007-07-23  Ben Pfaff  <blp@gnu.org>
46736
46737         * lib/popcount.h: Use verify_true instead of if...abort.
46738         * modules/popcount: Depend on verify module.
46739         Suggested by Jim Meyering.
46740
46741 2007-07-23  Bruno Haible  <bruno@clisp.org>
46742
46743         * gnulib-tool (func_import): Create a .cvsignore file also when the
46744         directory is not yet in CVS but the toplevel directory is. When
46745         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46746         Reported by Karl Berry.
46747
46748 2007-07-22  Ben Pfaff  <blp@gnu.org>
46749
46750         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46751         case.
46752         Suggested by Eric Blake.
46753
46754 2007-07-22  Ben Pfaff  <blp@gnu.org>
46755
46756         New module: popcount.
46757         * MODULES.html.sh: Add popcount.
46758         * modules/popcount: New file.
46759         * modules/popcount-tests: New file.
46760         * tests/test-popcount.c: New file.
46761         * lib/popcount.h: New file.
46762         * m4/popcount.m4: New file.
46763
46764 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46765
46766         * build-aux/announce-gen: Update to GPLv3.
46767
46768         * build-aux/config.guess: Update from config.
46769
46770 2007-07-21  Bruno Haible  <bruno@clisp.org>
46771
46772         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46773         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46774
46775 2007-07-20  Jim Meyering  <jim@meyering.net>
46776
46777         * check-module: Diagnose a self-dependency.
46778
46779 2007-07-19  Bruno Haible  <bruno@clisp.org>
46780
46781         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46782         empty.
46783         Reported by Eric Blake.
46784
46785 2007-07-18  Bruno Haible  <bruno@clisp.org>
46786
46787         * gnulib-tool: New options --po-base, --po-domain.
46788         (func_usage): Document them.
46789         (pobase, po_domain): New variables.
46790         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46791         DEFAULT_TEXT_DOMAIN.
46792         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46793         (func_import): Consider pobase and po_domain. Create a po/ directory.
46794         (func_create_testdir): Set pobase and po_domain to empty.
46795         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46796         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46797
46798 2007-07-18  Bruno Haible  <bruno@clisp.org>
46799
46800         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46801         EXTRA_DIST augmentation for files in build-aux/.
46802
46803 2007-07-16  Bruno Haible  <bruno@clisp.org>
46804
46805         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46806         * modules/getdelim (License): Likewise.
46807
46808 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46809
46810         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46811         * modules/d-type (License): Likewise.
46812         * modules/extensions (License): Likewise.
46813         * modules/fnmatch (License): Likewise.
46814         * modules/fseeko (License): Likewise.
46815         * modules/getaddrinfo (License): Likewise.
46816         * modules/getline (License): Likewise.
46817         * modules/getlogin_r (License): Likewise.
46818         * modules/getpass (License): Likewise.
46819         * modules/gettimeofday (License): Likewise.
46820         * modules/glob (License): Likewise.
46821         * modules/inet_ntop (License): Likewise.
46822         * modules/malloc (License): Likewise.
46823         * modules/malloca (License): Likewise.
46824         * modules/memmem (License): Likewise.
46825         * modules/mempcpy (License): Likewise.
46826         * modules/memset (License): Likewise.
46827         * modules/minmax (License): Likewise.
46828         * modules/mktime (License): Likewise.
46829         * modules/netinet_in (License): Likewise.
46830         * modules/pathmax (License): Likewise.
46831         * modules/poll (License): Likewise.
46832         * modules/regex (License): Likewise.
46833         * modules/snprintf (License): Likewise.
46834         * modules/stdbool (License): Likewise.
46835         * modules/stdint (License): Likewise.
46836         * modules/stdio (License): Likewise.
46837         * modules/strcase (License): Likewise.
46838         * modules/strcasestr (License): Likewise.
46839         * modules/strdup (License): Likewise.
46840         * modules/string (License): Likewise.
46841         * modules/strndup (License): Likewise.
46842         * modules/strnlen (License): Likewise.
46843         * modules/strpbrk (License): Likewise.
46844         * modules/strptime (License): Likewise.
46845         * modules/strsep (License): Likewise.
46846         * modules/sys_select (License): Likewise.
46847         * modules/sys_socket (License): Likewise.
46848         * modules/sys_stat (License): Likewise.
46849         * modules/sys_time (License): Likewise.
46850         * modules/time (License): Likewise.
46851         * modules/time_r (License): Likewise.
46852         * modules/timegm (License): Likewise.
46853         * modules/unistd (License): Likewise.
46854         * modules/vsnprintf (License): Likewise.
46855         * modules/wctype (License): Likewise.
46856
46857 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46858
46859         * modules/argz (License): LGPLv2+.
46860
46861 2007-07-15  Karl Berry  <karl@gnu.org>
46862
46863         * doc/gnulib.texi: revise node structure per new fdl.texi.
46864
46865 2007-07-14  Bruno Haible  <bruno@clisp.org>
46866
46867         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46868         the output file.
46869         * lib/uniname/uninames.h: Regenerated.
46870
46871 2007-07-14  Karl Berry  <karl@gnu.org>
46872
46873         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46874         omitting sectioning and index commands.
46875
46876 2007-07-13  Bruno Haible  <bruno@clisp.org>
46877
46878         New gnulib-tool option --more-symlinks.
46879         * gnulib-tool (func_usage): Document --more-symlinks.
46880         (do_copyrights): New variable.
46881         Recognize option --more-symlinks.
46882         (func_import): Don't add a copyright notice transform to
46883         sed_transform_lib_file if do_copyrights is empty.
46884
46885 2007-07-13  Bruno Haible  <bruno@clisp.org>
46886
46887         * lib/vasnprintf.c (decimal_point_char): Define also if
46888         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46889         && !NEED_PRINTF_DIRECTIVE_A.
46890         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46891         Gary V. Vaughan <gary@gnu.org>.
46892
46893 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46894
46895         * lib/inttypes_.h: Undo previous change, since it was fixed
46896         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46897
46898 2007-07-13  Bruno Haible  <bruno@clisp.org>
46899
46900         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46901         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46902
46903 2007-07-13  Jim Meyering  <jim@meyering.net>
46904
46905         df: Don't fail for Tru64's "file-on-file mount".
46906         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46907         so we fall through and use statfs instead.  Details here:
46908         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46909         Reported by Albert Chin.
46910
46911 2007-07-13  Bruno Haible  <bruno@clisp.org>
46912
46913         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46914         * modules/configmake (License): Likewise.
46915         * modules/gettext (License): Likewise.
46916         * modules/gettext-h (License): Likewise.
46917         * modules/include_next (License): Likewise.
46918         * modules/link-warning (License): Likewise.
46919         * modules/localcharset (License): Likewise.
46920         * modules/localename (License): Likewise.
46921         * modules/lock (License): Likewise.
46922         * modules/relocatable-lib-lgpl (License): Likewise.
46923         * modules/size_max (License): Likewise.
46924         * modules/vasnprintf (License): Likewise.
46925         * modules/wchar (License): Likewise.
46926         * modules/xsize (License): Likewise.
46927
46928 2007-07-13  Bruno Haible  <bruno@clisp.org>
46929
46930         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46931         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46932
46933 2007-07-12  Bruno Haible  <bruno@clisp.org>
46934
46935         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46936         in the modules files.
46937
46938 2007-07-11  Karl Berry  <karl@gnu.org>
46939
46940         * MODULES.html.sh (func_module): use
46941          sed -e '\|^'"${includefile}"'$|d'
46942          instead of /.../d, to avoid errors on $includefile's containing /.
46943
46944 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46945
46946         * gnulib-tool (func_import): Avoid duplication of --avoid
46947         statements
46948         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46949         names to `_' in variable names.
46950
46951 2007-07-10  Eric Blake  <ebb9@byu.net>
46952
46953         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46954         * NEWS: Document this change.
46955
46956 2007-07-08  Bruno Haible  <bruno@clisp.org>
46957
46958         Update to Unicode 5.0.
46959         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46960         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46961         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46962         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46963         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46964         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46965         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46966         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46967         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46968         U+10A3F, U+1D242..U+1D244.
46969         (nonspacing_table_ind): Update.
46970         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46971         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46972
46973 2007-07-08  Bruno Haible  <bruno@clisp.org>
46974
46975         Update to Unicode 5.0.
46976         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46977         code transform. Extend the name index field of unicode_name_to_code and
46978         unicode_code_to_name from 16 to 24 bits.
46979         * lib/uniname/uniname.c (unicode_character_name,
46980         unicode_name_character): Add the range 0x12xxx to the code transform.
46981         * lib/uniname/uninames.h: Regenerated.
46982         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46983
46984 2007-07-07  Bruno Haible  <bruno@clisp.org>
46985
46986         * modules/wcwidth-tests: New file.
46987         * tests/test-wcwidth.c: New file.
46988
46989         Work around MacOS X wcwidth() bug.
46990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46991         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46992         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46993         original wcwidth in non-UTF-8 locales.
46994         * modules/wcwidth (Depends-on): Add localcharset, streq,
46995         uniwidth/width.
46996         * doc/functions/wcwidth.texi: Update.
46997
46998 2007-07-07  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47001         (wcwidth): New declaration.
47002         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47003         macros.
47004         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47005         here. Prepare for creating <wchar.h> unconditionally.
47006         * modules/wchar (Depends-on): Add link-warning.
47007         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47008         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47009         * lib/wcwidth.h: Remove file.
47010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47011         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47012         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47013         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47014         (Include): Replace wcwidth.h with <wchar.h>.
47015         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47016         * lib/mbchar.h: Don't include wcwidth.h.
47017         * lib/mbswidth.c: Likewise.
47018         * NEWS: Mention the change.
47019
47020 2007-07-07  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47023         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47024         definition with an external declaration.
47025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47026         defined as a function. Remove AC_C_INLINE requirement.
47027         * modules/wcwidth (Files): Add lib/wcwidth.c.
47028         (Makefile.am): Remove redundant statement.
47029
47030 2007-07-07  Bruno Haible  <bruno@clisp.org>
47031
47032         * MODULES.html.sh (Unicode string functions): Add the new modules.
47033
47034         * tests/uniwidth/test-u32-strwidth.c: New file.
47035         * modules/uniwidth/u32-strwidth-tests: New file.
47036
47037         * lib/uniwidth/u32-strwidth.c: New file.
47038         * modules/uniwidth/u32-strwidth: New file.
47039
47040         * tests/uniwidth/test-u16-strwidth.c: New file.
47041         * modules/uniwidth/u16-strwidth-tests: New file.
47042
47043         * lib/uniwidth/u16-strwidth.c: New file.
47044         * modules/uniwidth/u16-strwidth: New file.
47045
47046         * tests/uniwidth/test-u8-strwidth.c: New file.
47047         * modules/uniwidth/u8-strwidth-tests: New file.
47048
47049         * lib/uniwidth/u8-strwidth.c: New file.
47050         * modules/uniwidth/u8-strwidth: New file.
47051
47052         * tests/uniwidth/test-u32-width.c: New file.
47053         * modules/uniwidth/u32-width-tests: New file.
47054
47055         * lib/uniwidth/u32-width.c: New file.
47056         * modules/uniwidth/u32-width: New file.
47057
47058         * tests/uniwidth/test-u16-width.c: New file.
47059         * modules/uniwidth/u16-width-tests: New file.
47060
47061         * lib/uniwidth/u16-width.c: New file.
47062         * modules/uniwidth/u16-width: New file.
47063
47064         * tests/uniwidth/test-u8-width.c: New file.
47065         * modules/uniwidth/u8-width-tests: New file.
47066
47067         * lib/uniwidth/u8-width.c: New file.
47068         * modules/uniwidth/u8-width: New file.
47069
47070         * tests/uniwidth/test-uc_width.c: New file.
47071         * modules/uniwidth/width-tests: New file.
47072
47073         * lib/uniwidth/width.c: New file, from GNU libiconv.
47074         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47075         * modules/uniwidth/width: New file.
47076
47077         * lib/uniwidth.h: New file, from GNU libiconv.
47078         * modules/uniwidth/base: New file.
47079
47080 2007-07-07  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/uniname.h: New file, from GNU gettext.
47083         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47084         * lib/uniname/uninames.h: New file, from GNU gettext.
47085         * lib/uniname/uniname.c: New file, from GNU gettext.
47086         * tests/uniname/test-uninames.sh: New file.
47087         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47088         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47089         * modules/uniname/base: New file.
47090         * modules/uniname/uniname: New file.
47091         * modules/uniname/uniname-tests: New file.
47092         * MODULES.html.sh (Unicode string functions): Add the new modules.
47093
47094 2007-07-06  Bruno Haible  <bruno@clisp.org>
47095
47096         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47097
47098 2007-07-06  Bruno Haible  <bruno@clisp.org>
47099
47100         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47101         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47102         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47103         include <sys/time.h>.
47104         Reported by Eric Blake.
47105
47106 2007-07-06  Eric Blake  <ebb9@byu.net>
47107
47108         Fix testing canonicalize on cygwin.
47109         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47110         Revert patch from 2007-06-19.
47111         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47112         canonicalize module is also in use.
47113         * tests/test-canonicalize.c: New file.
47114         * tests/test-canonicalize.sh: Likewise.
47115         * modules/canonicalize-tests: Likewise.
47116
47117 2007-07-06  Jim Meyering  <jim@meyering.net>
47118
47119         * lib/getugroups.c (getugroups): Detect getgrent failure.
47120         Adjust comment to reflect reality: this function may return -1.
47121
47122 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47123
47124         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47125         the new TP address.
47126         (usage): Fix typo
47127         (gnulib_mk): New variable.
47128
47129 2007-07-05  Jim Meyering  <jim@meyering.net>
47130
47131         Don't let endgrent clobber errno, no matter how improbable.
47132         * lib/getugroups.c (getugroups): Save and restore errno around
47133         endgrent call.
47134
47135         Close the group DB even when failing with 2^31 or more members.
47136         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47137
47138 2007-07-04  Jim Meyering  <jim@meyering.net>
47139
47140         * lib/getugroups.h: New file.
47141         * lib/getugroups.c: Include "getugroups.h".
47142         Remove uses of "register" keyword.
47143         Move local variable, "cp", down into scope where used.
47144         Give "username" parameter the "const" attribute.
47145         * modules/getugroups (Files): Add lib/getugroups.h
47146
47147 2007-07-04  Karl Berry  <karl@gnu.org>
47148
47149         * MODULES.html.sh (func_all_modules): Complete rename of
47150         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47151
47152 2007-07-02  Bruno Haible  <bruno@clisp.org>
47153
47154         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47155         mode, when inttypes.h comes from gnulib.
47156         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47157
47158 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47159
47160         * NEWS: Mention lgpl module name change.
47161
47162         * modules/lgpl-2.1: Renamed from lgpl.
47163
47164         * NEWS: Mention gpl module name change.
47165
47166         * modules/gpl-3.0: New file, based on gpl-2.0.
47167
47168         * modules/gpl-2.0: Renamed from gpl.
47169
47170         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47171         doc/gpl-2.0.texi.
47172
47173 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47174
47175         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47176         #define __STDC_LIMIT_MACROS temporarily while including
47177         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47178         Problem reported by Joel E. Denny in
47179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47180
47181 2007-07-01  Bruno Haible  <bruno@clisp.org>
47182
47183         * lib/unistdio.h: New file.
47184         * lib/unistdio/u-asnprintf.h: New file.
47185         * lib/unistdio/u-asprintf.h: New file.
47186         * lib/unistdio/u-printf-args.c: New file.
47187         * lib/unistdio/u-printf-args.h: New file.
47188         * lib/unistdio/u-printf-parse.h: New file.
47189         * lib/unistdio/u-snprintf.h: New file.
47190         * lib/unistdio/u-sprintf.h: New file.
47191         * lib/unistdio/u-vasprintf.h: New file.
47192         * lib/unistdio/u-vsnprintf.h: New file.
47193         * lib/unistdio/u-vsprintf.h: New file.
47194         * lib/unistdio/ulc-asnprintf.c: New file.
47195         * lib/unistdio/ulc-asprintf.c: New file.
47196         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47197         * lib/unistdio/ulc-printf-parse.c: New file.
47198         * lib/unistdio/ulc-snprintf.c: New file.
47199         * lib/unistdio/ulc-sprintf.c: New file.
47200         * lib/unistdio/ulc-vasnprintf.c: New file.
47201         * lib/unistdio/ulc-vasprintf.c: New file.
47202         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47203         * lib/unistdio/ulc-vsnprintf.c: New file.
47204         * lib/unistdio/ulc-vsprintf.c: New file.
47205         * lib/unistdio/u8-asnprintf.c: New file.
47206         * lib/unistdio/u8-asprintf.c: New file.
47207         * lib/unistdio/u8-printf-parse.c: New file.
47208         * lib/unistdio/u8-snprintf.c: New file.
47209         * lib/unistdio/u8-sprintf.c: New file.
47210         * lib/unistdio/u8-vasnprintf.c: New file.
47211         * lib/unistdio/u8-vasprintf.c: New file.
47212         * lib/unistdio/u8-vsnprintf.c: New file.
47213         * lib/unistdio/u8-vsprintf.c: New file.
47214         * lib/unistdio/u8-u8-asnprintf.c: New file.
47215         * lib/unistdio/u8-u8-asprintf.c: New file.
47216         * lib/unistdio/u8-u8-snprintf.c: New file.
47217         * lib/unistdio/u8-u8-sprintf.c: New file.
47218         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47219         * lib/unistdio/u8-u8-vasprintf.c: New file.
47220         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47221         * lib/unistdio/u8-u8-vsprintf.c: New file.
47222         * lib/unistdio/u16-asnprintf.c: New file.
47223         * lib/unistdio/u16-asprintf.c: New file.
47224         * lib/unistdio/u16-printf-parse.c: New file.
47225         * lib/unistdio/u16-snprintf.c: New file.
47226         * lib/unistdio/u16-sprintf.c: New file.
47227         * lib/unistdio/u16-vasnprintf.c: New file.
47228         * lib/unistdio/u16-vasprintf.c: New file.
47229         * lib/unistdio/u16-vsnprintf.c: New file.
47230         * lib/unistdio/u16-vsprintf.c: New file.
47231         * lib/unistdio/u16-u16-asnprintf.c: New file.
47232         * lib/unistdio/u16-u16-asprintf.c: New file.
47233         * lib/unistdio/u16-u16-snprintf.c: New file.
47234         * lib/unistdio/u16-u16-sprintf.c: New file.
47235         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47236         * lib/unistdio/u16-u16-vasprintf.c: New file.
47237         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47238         * lib/unistdio/u16-u16-vsprintf.c: New file.
47239         * lib/unistdio/u32-asnprintf.c: New file.
47240         * lib/unistdio/u32-asprintf.c: New file.
47241         * lib/unistdio/u32-printf-parse.c: New file.
47242         * lib/unistdio/u32-snprintf.c: New file.
47243         * lib/unistdio/u32-sprintf.c: New file.
47244         * lib/unistdio/u32-vasnprintf.c: New file.
47245         * lib/unistdio/u32-vasprintf.c: New file.
47246         * lib/unistdio/u32-vsnprintf.c: New file.
47247         * lib/unistdio/u32-vsprintf.c: New file.
47248         * lib/unistdio/u32-u32-asnprintf.c: New file.
47249         * lib/unistdio/u32-u32-asprintf.c: New file.
47250         * lib/unistdio/u32-u32-snprintf.c: New file.
47251         * lib/unistdio/u32-u32-sprintf.c: New file.
47252         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47253         * lib/unistdio/u32-u32-vasprintf.c: New file.
47254         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47255         * lib/unistdio/u32-u32-vsprintf.c: New file.
47256         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47257         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47258         * tests/unistdio/test-ulc-printf1.h: New file.
47259         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47260         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47261         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47262         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47263         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47264         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47265         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47266         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47267         * tests/unistdio/test-u8-asnprintf1.c: New file.
47268         * tests/unistdio/test-u8-asnprintf1.h: New file.
47269         * tests/unistdio/test-u8-printf1.h: New file.
47270         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47271         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47272         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47273         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47274         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47275         * tests/unistdio/test-u8-vasprintf1.c: New file.
47276         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47277         * tests/unistdio/test-u8-vsprintf1.c: New file.
47278         * tests/unistdio/test-u16-asnprintf1.c: New file.
47279         * tests/unistdio/test-u16-asnprintf1.h: New file.
47280         * tests/unistdio/test-u16-printf1.h: New file.
47281         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47282         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47283         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47284         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47285         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47286         * tests/unistdio/test-u16-vasprintf1.c: New file.
47287         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47288         * tests/unistdio/test-u16-vsprintf1.c: New file.
47289         * tests/unistdio/test-u32-asnprintf1.c: New file.
47290         * tests/unistdio/test-u32-asnprintf1.h: New file.
47291         * tests/unistdio/test-u32-printf1.h: New file.
47292         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47293         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47294         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47295         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47296         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47297         * tests/unistdio/test-u32-vasprintf1.c: New file.
47298         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47299         * tests/unistdio/test-u32-vsprintf1.c: New file.
47300         * modules/unistdio/base: New file.
47301         * modules/unistdio/u-printf-args: New file.
47302         * modules/unistdio/ulc-asnprintf: New file.
47303         * modules/unistdio/ulc-asprintf: New file.
47304         * modules/unistdio/ulc-fprintf: New file.
47305         * modules/unistdio/ulc-printf-parse: New file.
47306         * modules/unistdio/ulc-snprintf: New file.
47307         * modules/unistdio/ulc-sprintf: New file.
47308         * modules/unistdio/ulc-vasnprintf: New file.
47309         * modules/unistdio/ulc-vasprintf: New file.
47310         * modules/unistdio/ulc-vfprintf: New file.
47311         * modules/unistdio/ulc-vsnprintf: New file.
47312         * modules/unistdio/ulc-vsprintf: New file.
47313         * modules/unistdio/u8-asnprintf: New file.
47314         * modules/unistdio/u8-asprintf: New file.
47315         * modules/unistdio/u8-printf-parse: New file.
47316         * modules/unistdio/u8-snprintf: New file.
47317         * modules/unistdio/u8-sprintf: New file.
47318         * modules/unistdio/u8-vasnprintf: New file.
47319         * modules/unistdio/u8-vasprintf: New file.
47320         * modules/unistdio/u8-vsnprintf: New file.
47321         * modules/unistdio/u8-vsprintf: New file.
47322         * modules/unistdio/u8-u8-asnprintf: New file.
47323         * modules/unistdio/u8-u8-asprintf: New file.
47324         * modules/unistdio/u8-u8-snprintf: New file.
47325         * modules/unistdio/u8-u8-sprintf: New file.
47326         * modules/unistdio/u8-u8-vasnprintf: New file.
47327         * modules/unistdio/u8-u8-vasprintf: New file.
47328         * modules/unistdio/u8-u8-vsnprintf: New file.
47329         * modules/unistdio/u8-u8-vsprintf: New file.
47330         * modules/unistdio/u16-asnprintf: New file.
47331         * modules/unistdio/u16-asprintf: New file.
47332         * modules/unistdio/u16-printf-parse: New file.
47333         * modules/unistdio/u16-snprintf: New file.
47334         * modules/unistdio/u16-sprintf: New file.
47335         * modules/unistdio/u16-vasnprintf: New file.
47336         * modules/unistdio/u16-vasprintf: New file.
47337         * modules/unistdio/u16-vsnprintf: New file.
47338         * modules/unistdio/u16-vsprintf: New file.
47339         * modules/unistdio/u16-u16-asnprintf: New file.
47340         * modules/unistdio/u16-u16-asprintf: New file.
47341         * modules/unistdio/u16-u16-snprintf: New file.
47342         * modules/unistdio/u16-u16-sprintf: New file.
47343         * modules/unistdio/u16-u16-vasnprintf: New file.
47344         * modules/unistdio/u16-u16-vasprintf: New file.
47345         * modules/unistdio/u16-u16-vsnprintf: New file.
47346         * modules/unistdio/u16-u16-vsprintf: New file.
47347         * modules/unistdio/u32-asnprintf: New file.
47348         * modules/unistdio/u32-asprintf: New file.
47349         * modules/unistdio/u32-printf-parse: New file.
47350         * modules/unistdio/u32-snprintf: New file.
47351         * modules/unistdio/u32-sprintf: New file.
47352         * modules/unistdio/u32-vasnprintf: New file.
47353         * modules/unistdio/u32-vasprintf: New file.
47354         * modules/unistdio/u32-vsnprintf: New file.
47355         * modules/unistdio/u32-vsprintf: New file.
47356         * modules/unistdio/u32-u32-asnprintf: New file.
47357         * modules/unistdio/u32-u32-asprintf: New file.
47358         * modules/unistdio/u32-u32-snprintf: New file.
47359         * modules/unistdio/u32-u32-sprintf: New file.
47360         * modules/unistdio/u32-u32-vasnprintf: New file.
47361         * modules/unistdio/u32-u32-vasprintf: New file.
47362         * modules/unistdio/u32-u32-vsnprintf: New file.
47363         * modules/unistdio/u32-u32-vsprintf: New file.
47364         * modules/unistdio/ulc-asnprintf-tests: New file.
47365         * modules/unistdio/ulc-vasnprintf-tests: New file.
47366         * modules/unistdio/ulc-vasprintf-tests: New file.
47367         * modules/unistdio/ulc-vsnprintf-tests: New file.
47368         * modules/unistdio/ulc-vsprintf-tests: New file.
47369         * modules/unistdio/u8-asnprintf-tests: New file.
47370         * modules/unistdio/u8-vasnprintf-tests: New file.
47371         * modules/unistdio/u8-vasprintf-tests: New file.
47372         * modules/unistdio/u8-vsnprintf-tests: New file.
47373         * modules/unistdio/u8-vsprintf-tests: New file.
47374         * modules/unistdio/u16-asnprintf-tests: New file.
47375         * modules/unistdio/u16-vasnprintf-tests: New file.
47376         * modules/unistdio/u16-vasprintf-tests: New file.
47377         * modules/unistdio/u16-vsnprintf-tests: New file.
47378         * modules/unistdio/u16-vsprintf-tests: New file.
47379         * modules/unistdio/u32-asnprintf-tests: New file.
47380         * modules/unistdio/u32-vasnprintf-tests: New file.
47381         * modules/unistdio/u32-vasprintf-tests: New file.
47382         * modules/unistdio/u32-vsnprintf-tests: New file.
47383         * modules/unistdio/u32-vsprintf-tests: New file.
47384         * MODULES.html.sh (Unicode string functions): Add the new modules.
47385
47386 2007-07-01  Bruno Haible  <bruno@clisp.org>
47387
47388         * lib/sprintf.c (sprintf): Limit the available length estimation,
47389         to avoid address wraparound.
47390         * lib/vsprintf.c (vsprintf): Likewise.
47391         * modules/sprintf-posix (Dependencies): Add stdint.
47392         * modules/vsprintf-posix (Dependencies): Likewise.
47393
47394 2007-07-01  Bruno Haible  <bruno@clisp.org>
47395
47396         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47397         Windows PATH as well. Conservative double-quoting. Comments.
47398
47399 2007-07-01  Bruno Haible  <bruno@clisp.org>
47400             Eric Blake  <ebb9@byu.net>
47401             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47402
47403         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47404         empty components in $PATH, denoting '.'.
47405
47406 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47407
47408         * gnulib-tool: Fix indentation.
47409         (func_create_megatestdir): Likewise.
47410         Report by Bruno Haible.
47411
47412 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47413
47414         Sync from Automake.
47415         * build-aux/gnupload: Fix shell portability issues with for loops.
47416         Report by Karl Berry.
47417
47418 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47419
47420         * build-aux/maint.mk (POURL): Use translationproject.org.
47421
47422 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47423             Bruno Haible  <bruno@clisp.org>
47424
47425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47426         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47427         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47428         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47429         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47430
47431 2007-06-27  Bruno Haible  <bruno@clisp.org>
47432
47433         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47434         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47435
47436 2007-06-26  Karl Berry  <karl@gnu.org>
47437
47438         * MODULES.html.sh: remove xreadlink-with-size.
47439
47440 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47441
47442         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47443         method that I hope also handles the double-include problem noted
47444         by Bruno Haible in
47445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47446
47447 2007-06-23  Bruno Haible  <bruno@clisp.org>
47448
47449         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47450         Don't let the 'mostlyclean' target fail if the last subdirectory could
47451         not be removed.
47452         Reported by Karl Berry.
47453
47454 2007-06-23  Bruno Haible  <bruno@clisp.org>
47455
47456         * gnulib-tool (echo): Add a speedier workaround for ksh.
47457         * tests/test-echo.sh: Likewise.
47458
47459 2007-06-23  Bruno Haible  <bruno@clisp.org>
47460
47461         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47462         * tests/test-echo.sh: Likewise.
47463
47464 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47465
47466         * gnulib-tool (IFS): Initialize early, so we don't set it to
47467         empty later.
47468         (self_abspathname): Rewrite algorithm to set it, reindent.
47469         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47470         (func_create_megatestdir): Merge some sed scripts.
47471
47472 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47473
47474         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47475         exposed by Sun Studio 11 cc on Solaris 8.
47476
47477 2007-06-22  Bruno Haible  <bruno@clisp.org>
47478
47479         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47480         backslashes.
47481         * tests/test-echo.sh: New file.
47482
47483 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47484
47485         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47486         simplify `sed_replace_build_aux' scripts, they are portable but
47487         echoing them with `echo' is not.
47488         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47489
47490 2007-06-21  Karl Berry  <karl@gnu.org>
47491
47492         * config/srclist.txt: guess we can't handle the licenses via
47493         srclist at the moment.
47494
47495 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47496
47497         * MODULES.html.sh: Add include_next.
47498         * modules/include_next: New file.
47499
47500 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47501
47502         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47503         INCLUDE_NEXT.
47504         (gl_CHECK_NEXT_HEADERS): New macro.
47505         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47506         the obsolescent gl_ABSOLUTE_HEADER.
47507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47508         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47509         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47510         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47511         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47512         * m4/math_h.m4 (gl_MATH_H): Likewise.
47513         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47514         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47515         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47516         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47517         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47518         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47519         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47520         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47523         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47524         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47525         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47526         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47527         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47528         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47529         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47530         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47531         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47532         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47533         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47534         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47535         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47536         * lib/float_.h: Likewise.
47537         * lib/inttypes_.h: Likewise.
47538         * lib/math_.h: Likewise.
47539         * lib/search_.h: Likewise.
47540         * lib/signal_.h: Likewise.
47541         * lib/stdint_.h: Likewise.
47542         * lib/stdio_.h: Likewise.
47543         * lib/stdlib_.h: Likewise.
47544         * lib/string_.h: Likewise.
47545         * lib/sys_stat_.h: Likewise.
47546         * lib/sys_time_.h: Likewise.
47547         * lib/time_.h: Likewise.
47548         * lib/unistd_.h: Likewise.
47549         * lib/wchar_.h: Likewise.
47550         * lib/wctype_.h: Likewise.
47551         * lib/dirent_.h: Likewise.
47552         * lib/iconv_.h: Likewise.
47553         * lib/locale_.h: Likewise.
47554         * lib/netinet_in_.h: Likewise.
47555         * lib/sys_select_.h: Likewise.
47556         * lib/sys_socket_.h: Likewise.
47557         * lib/sysexits_.h: Likewise.
47558         * modules/fcntl (Depends-on): Depend on include_next, not
47559         absolute_header.
47560         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47561         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47562         * modules/fchdir: Likewise.
47563         * modules/float: Likewise.
47564         * modules/iconv_open: Likewise.
47565         * modules/inttypes: Likewise.
47566         * modules/locale: Likewise.
47567         * modules/math: Likewise.
47568         * modules/netinet_in: Likewise.
47569         * modules/search: Likewise.
47570         * modules/signal: Likewise.
47571         * modules/stdint: Likewise.
47572         * modules/stdio: Likewise.
47573         * modules/stdlib: Likewise.
47574         * modules/string: Likewise.
47575         * modules/sys_select: Likewise.
47576         * modules/sys_socket: Likewise.
47577         * modules/sys_stat: Likewise.
47578         * modules/sys_time: Likewise.
47579         * modules/sysexits: Likewise.
47580         * modules/time: Likewise.
47581         * modules/unistd: Likewise.
47582         * modules/wchar: Likewise.
47583         * modules/wctype: Likewise.
47584         * modules/sys_stat: Change maintainer to "all".
47585         * modules/unistd: Likewise.
47586
47587 2007-06-20  Karl Berry  <karl@gnu.org>
47588
47589         * config/srclist.txt: track www changes in license files.
47590
47591 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47592
47593         * build-aux/bootstrap: Remove stray dot.
47594         Make sure build_aux settings are honored when linking
47595         gnulib_extra_files.
47596
47597 2007-06-19  Eric Blake  <ebb9@byu.net>
47598
47599         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47600         Allow compilation on cygwin.
47601
47602 2007-06-19  Jim Meyering  <jim@meyering.net>
47603
47604         xreadlink-with-size: Remove module.  No longer used.
47605         Ex-callers now use xreadlink or mreadlink-with-size.
47606         * modules/xreadlink-with-size: Remove module.
47607         * lib/xreadlink-with-size.c: Remove file.
47608         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47609         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47610         just before the function definition *is* accurate.
47611
47612         Eliminate one way canonicalize_filename_mode could exit.
47613         * lib/canonicalize.c (canonicalize_filename_mode):
47614         Use mreadlink_with_size, not xreadlink_with_size.
47615
47616 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47617
47618         Detect porting problems to FreeBSD/arm, which has time_t wider than
47619         long int.  Original problem reported for GNU diff by Xin Li in
47620         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47621         * modules/getdate (Depends-on): Add intprops, verify.
47622         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47623         is an integer type no wider than long int.
47624
47625 2007-06-18  Jim Meyering  <jim@meyering.net>
47626
47627         New module: mreadlink-with-size.
47628         * MODULES.html.sh: Add mreadlink-with-size.
47629         * modules/mreadlink-with-size: New module
47630         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47631         not xreadlink-with-size.
47632         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47633
47634 2007-06-16  Bruno Haible  <bruno@clisp.org>
47635
47636         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47637         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47638         Reported by Gary V. Vaughan <gary@gnu.org>.
47639
47640 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         Revamp lchown so that it lives in unistd.h where it belongs.
47643         * lib/lchown.h: Remove.
47644         * lib/dirchownmod.c: Don't include lib/lchown.h.
47645         * lib/fchownat.c: Likewise.
47646         * lib/openat.c: Likewise.
47647         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47648         does not follow symlinks.
47649         (EOPNOTSUPP): Define if not defined.
47650         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47651         is defined to 0.
47652         (lchown): New decl.
47653         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47654         Do not check for lchown decl.
47655         Set REPLACE_LCHOWN.
47656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47657         REPLACE_LCHOWN.
47658         * modules/chown: Make it clear it follows symlinks.
47659         * modules/lchown: Make it clear it doesn't follow symlinks.
47660         (Files): Remove lib/lchown.h
47661         (Depends-on): Add unistd.
47662         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47663         (Include): Include <unistd.h>, not "lchown.h".
47664         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47665         REPLACE_LCHOWN.
47666
47667 2007-06-15  Jim Meyering  <jim@meyering.net>
47668
47669         Change license (GPL to LGPL) of fsusage and dependents.
47670         * modules/fsusage (License): Change to LGPL.
47671         * modules/full-read (License): Likewise.
47672         * modules/full-write (License): Likewise.
47673         * modules/safe-read (License): Likewise.
47674         * modules/safe-write (License): Likewise.
47675
47676 2007-06-14  Ben Pfaff  <blp@gnu.org>
47677
47678         Missing part of allocsa -> malloca transition.
47679         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47680         gl_MALLOCA.
47681
47682 2007-06-12  Bruno Haible  <bruno@clisp.org>
47683
47684         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47685         to ia64, x86_64, i386.
47686         Reported by Eric Blake.
47687
47688 2007-06-12  Bruno Haible  <bruno@clisp.org>
47689
47690         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47691         cross-compiling to x86_64.
47692
47693 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47696         glitch reported by Ralf Wildenhues in
47697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47698
47699         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47700         Vin Shelton.
47701
47702 2007-06-11  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47705         replacement string.
47706         Reported by Eric Blake.
47707
47708 2007-06-10  Bruno Haible  <bruno@clisp.org>
47709
47710         Prepare vasnprintf code for use with Unicode strings.
47711         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47712         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47713         TYPE_U32_STRING.
47714         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47715         a_u32_string variants.
47716         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47717         * lib/printf-args.c: Don't include config.h and the specification
47718         header if PRINTF_FETCHARGS is already defined.
47719         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47720         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47721         TYPE_U16_STRING, TYPE_U32_STRING.
47722         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47723         u16_directive, u16_directives, u32_directive, u32_directives): New
47724         types.
47725         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47726         New declarations.
47727         * lib/printf-parse.c: Don't include config.h and the specification
47728         header if PRINTF_PARSE is already defined. Eliminate the set of
47729         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47730         them now. Include c-ctype.h.
47731         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47732         directive and CHAR_T_ONLY_ASCII.
47733         * lib/vasnprintf.c: Don't include config.h and the specification header
47734         if VASNPRINTF is already defined.
47735         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47736         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47737         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47738         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47739         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47740         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47741         code accordingly.
47742         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47743         pad_ourselves also in this case, with the 'c' and 's' directives, and
47744         with a different notion of "width".
47745         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47746
47747 2007-06-10  Bruno Haible  <bruno@clisp.org>
47748
47749         * modules/unistr/u32-mbsnlen: New file.
47750         * lib/unistr/u32-mbsnlen.c: New file.
47751
47752         * modules/unistr/u16-mbsnlen: New file.
47753         * lib/unistr/u16-mbsnlen.c: New file.
47754
47755         * modules/unistr/u8-mbsnlen: New file.
47756         * lib/unistr/u8-mbsnlen.c: New file.
47757
47758         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47759         declarations.
47760
47761 2007-06-10  Bruno Haible  <bruno@clisp.org>
47762
47763         * lib/string_.h (mbsnlen): New declaration.
47764         * lib/mbsnlen.c: New file.
47765         * m4/mbsnlen.m4: New file.
47766         * modules/mbsnlen: New file.
47767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47768         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47769         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47770
47771 2007-06-10  Bruno Haible  <bruno@clisp.org>
47772
47773         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47774
47775 2007-06-10  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47778         * lib/mbuiter.h: Likewise.
47779
47780 2007-06-10  Bruno Haible  <bruno@clisp.org>
47781
47782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47783         declaration.
47784
47785 2007-06-10  Karl Berry  <karl@gnu.org>
47786
47787         * config/srclist.txt: remove gettext entries, Bruno prefers
47788         to update individually.
47789
47790 2007-06-10  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47793         'maxlen'. Ensure only length + width bytes are allocated, not
47794         length + 1 + width.
47795
47796 2007-06-09  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47799         (CHAR_T): Remove macro.
47800         (VASNPRINTF): Update.
47801
47802 2007-06-09  Bruno Haible  <bruno@clisp.org>
47803
47804         * MODULES.html.sh (Unicode string functions): Add the new modules.
47805
47806         * modules/uniconv/u32-conv-to-enc: New file.
47807         * lib/uniconv/u32-conv-to-enc.c: New file.
47808         * modules/uniconv/u32-conv-to-enc-tests: New file.
47809         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47810
47811         * modules/uniconv/u16-conv-to-enc: New file.
47812         * lib/uniconv/u16-conv-to-enc.c: New file.
47813         * lib/uniconv/u-conv-to-enc.h: New file.
47814         * modules/uniconv/u16-conv-to-enc-tests: New file.
47815         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47816
47817         * modules/uniconv/u8-conv-to-enc: New file.
47818         * lib/uniconv/u8-conv-to-enc.c: New file.
47819         * modules/uniconv/u8-conv-to-enc-tests: New file.
47820         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47821
47822         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47823         u32_conv_to_encoding): New declarations.
47824
47825 2007-06-09  Bruno Haible  <bruno@clisp.org>
47826
47827         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47828
47829 2007-06-09  Bruno Haible  <bruno@clisp.org>
47830
47831         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47832         * modules/malloca: Renamed from modules/allocsa, updated.
47833         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47834         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47835         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47836         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47837         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47838         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47839         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47840         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47841         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47842         * modules/c-strcasestr (Depends-on): Update.
47843         * lib/c-strcasestr.c: Update.
47844         * modules/c-strstr (Depends-on): Update.
47845         * lib/c-strstr.c: Update.
47846         * modules/canonicalize-lgpl (Depends-on): Update.
47847         * lib/canonicalize-lgpl.c: Update.
47848         * modules/clean-temp (Depends-on): Update.
47849         * lib/clean-temp.c: Update.
47850         * modules/csharpcomp (Depends-on): Update.
47851         * lib/csharpcomp.c: Update.
47852         * modules/csharpexec (Depends-on): Update.
47853         * lib/csharpexec.c: Update.
47854         * modules/javacomp (Depends-on): Update.
47855         * lib/javacomp.c: Update.
47856         * modules/javaexec (Depends-on): Update.
47857         * lib/javaexec.c: Update.
47858         * modules/mbscasestr (Depends-on): Update.
47859         * lib/mbscasestr.c: Update.
47860         * modules/mbsstr (Depends-on): Update.
47861         * lib/mbsstr.c: Update.
47862         * modules/setenv (Depends-on): Update.
47863         * lib/setenv.c: Update.
47864         * modules/strcasestr (Depends-on): Update.
47865         * lib/strcasestr.c: Update.
47866         * modules/striconveha (Depends-on): Update.
47867         * lib/striconveha.c: Update.
47868         * modules/relocatable-prog-wrapper (Files): Update.
47869         * lib/relocwrapper.c: Update.
47870         * build-aux/install-reloc: Update.
47871         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47872
47873 2007-06-08  Bruno Haible  <bruno@clisp.org>
47874
47875         Port to uClibc.
47876         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47877         * lib/fpurge.c (fpurge): Likewise.
47878         * lib/freading.c (freading): Likewise.
47879         * lib/fseeko.c (rpl_fseeko): Likewise.
47880         * lib/fseterr.c (fseterr): Likewise.
47881         * lib/fwriting.c (fwriting): Likewise.
47882         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47883
47884 2007-06-08  Bruno Haible  <bruno@clisp.org>
47885
47886         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47887         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47888         * modules/gettext (Files): Add m4/intlmacosx.m4.
47889
47890 2007-06-07  Bruno Haible  <bruno@clisp.org>
47891
47892         * modules/localename-tests: New file.
47893         * tests/test-localename.c: New file.
47894
47895         New module 'localename'.
47896         * lib/localename.h: New file.
47897         * lib/localename.c: New file, from GNU gettext.
47898         * m4/localename.m4: New file.
47899         * modules/localename: New file.
47900
47901 2007-06-07  Bruno Haible  <bruno@clisp.org>
47902
47903         Work around the lack of <wchar.h> on some builds of uClibc.
47904         * doc/headers/wchar.texi: Update.
47905         * lib/wchar_.h: Include <wchar.h> only if it exists.
47906         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47907         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47908         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47909         doesn't exist.
47910         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47911         * modules/mbfile (Depends-on): Add wchar.
47912         * modules/mbiter (Depends-on): Likewise.
47913         * modules/mbuiter (Depends-on): Likewise.
47914         Reported by Simon Josefsson.
47915
47916 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47917
47918         Work around problem reported by Steven M. Schweda in
47919         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47920         Tru64 5.1B with the Compaq compiler environment installed declares
47921         an 'isblank' function but does not define it in the C library.
47922         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47923         * lib/regex_internal.h (isblank): Likewise.
47924         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47925         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47926
47927 2007-06-05  Bruno Haible  <bruno@clisp.org>
47928
47929         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47930         ia64.
47931         * modules/printf-safe: New file.
47932         * modules/fprintf-posix (Depends-on): Add printf-safe.
47933         * modules/printf-posix (Depends-on): Likewise.
47934         * modules/snprintf-posix (Depends-on): Likewise.
47935         * modules/sprintf-posix (Depends-on): Likewise.
47936         * modules/vasnprintf-posix (Depends-on): Likewise.
47937         * modules/vasprintf-posix (Depends-on): Likewise.
47938         * modules/vfprintf-posix (Depends-on): Likewise.
47939         * modules/vprintf-posix (Depends-on): Likewise.
47940         * modules/vsnprintf-posix (Depends-on): Likewise.
47941         * modules/vsprintf-posix (Depends-on): Likewise.
47942         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47943         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47944         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47945         "no" on i386, x86_64, ia64.
47946         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47947         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47948         on i386, x86_64, ia64.
47949         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47950         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47951         on i386, x86_64, ia64.
47952         * tests/test-vasnprintf-posix.c: Include float.h.
47953         (LDBL80_WORDS): New macro.
47954         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47955         on i386, x86_64, ia64.
47956         * tests/test-vasprintf-posix.c: Include float.h.
47957         (LDBL80_WORDS): New macro.
47958         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47959         on i386, x86_64, ia64.
47960         * tests/test-snprintf-posix.c: Include float.h.
47961         * tests/test-sprintf-posix.c: Likewise.
47962         * tests/test-vsnprintf-posix.c: Likewise.
47963         * tests/test-vsprintf-posix.c: Likewise.
47964
47965 2007-06-05  Bruno Haible  <bruno@clisp.org>
47966
47967         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47968         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47969         non-IEEE numbers on i386, x86_64, ia64.
47970         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47971         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47972         * tests/test-isnanl.h: Include float.h.
47973         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47974
47975 2007-06-05  Bruno Haible  <bruno@clisp.org>
47976
47977         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47978         also the %a / %A. Handle the %a / %A code before this extra handling.
47979
47980 2007-06-05  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47983         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47984
47985 2007-06-05  Bruno Haible  <bruno@clisp.org>
47986
47987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47988         typo in variable name.
47989
47990 2007-06-05  Eric Blake  <ebb9@byu.net>
47991
47992         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47993         Reported by Simon Josefsson.
47994
47995 2007-06-04  Bruno Haible  <bruno@clisp.org>
47996
47997         Avoid test failures on some PowerPC platforms.
47998         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47999         Define differently for PowerPC.
48000         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48001         Reported by Gary V. Vaughan <gary@gnu.org>.
48002
48003 2007-06-02  Bruno Haible  <bruno@clisp.org>
48004
48005         Fix test-stdint failure on FreeBSD/ia64.
48006         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48007         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48008         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48009         * doc/headers/stdint.texi: Update.
48010
48011 2007-06-01  Bruno Haible  <bruno@clisp.org>
48012
48013         * tests/test-binary-io.c (main): Pass a third argument to open().
48014         Reported by Gary V. Vaughan <gary@gnu.org>.
48015
48016 2007-06-01  Bruno Haible  <bruno@clisp.org>
48017
48018         * doc/functions/frexpl.texi: Update for mingw.
48019
48020 2007-06-01  Bruno Haible  <bruno@clisp.org>
48021
48022         * tests/test-lseek.c (main): Disable test of errno for invalid third
48023         argument.
48024         * doc/functions/lseek.texi: Update.
48025         Reported by Gary V. Vaughan <gary@gnu.org>.
48026
48027 2007-05-28  Bruno Haible  <bruno@clisp.org>
48028
48029         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48030
48031 2007-05-31  Eric Blake  <ebb9@byu.net>
48032
48033         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48034         cross compiling.
48035
48036 2007-05-30  Eric Blake  <ebb9@byu.net>
48037         and Bruno Haible  <bruno@clisp.org>
48038
48039         Work around mingw test failures exposed by m4-1.4.9b.
48040         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48041         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48042         moment.
48043
48044 2007-05-30  Bruno Haible  <bruno@clisp.org>
48045
48046         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48047         assuming that they are closed. Needed on HP-UX 11.
48048
48049 2007-05-29  Bruno Haible  <bruno@clisp.org>
48050
48051         Fix a problem with #include_next.
48052         * lib/dirent_.h: Split the double-inclusion guard.
48053         * lib/fcntl_.h: Likewise.
48054         * lib/float_.h: Likewise.
48055         * lib/iconv_.h: Likewise.
48056         * lib/inttypes_.h: Likewise.
48057         * lib/locale_.h: Likewise.
48058         * lib/math_.h: Likewise.
48059         * lib/netinet_in_.h: Likewise.
48060         * lib/search_.h: Likewise.
48061         * lib/signal_.h: Likewise.
48062         * lib/stdint_.h: Likewise.
48063         * lib/stdio_.h: Likewise.
48064         * lib/stdlib_.h: Likewise.
48065         * lib/string_.h: Likewise.
48066         * lib/sys_select_.h: Likewise.
48067         * lib/sys_socket_.h: Likewise.
48068         * lib/sys_stat_.h: Likewise.
48069         * lib/sys_time_.h: Likewise.
48070         * lib/sysexits_.h: Likewise.
48071         * lib/time_.h: Likewise.
48072         * lib/unistd_.h: Likewise.
48073         * lib/wchar_.h: Likewise.
48074         * lib/wctype_.h: Likewise.
48075
48076 2007-05-29  Bruno Haible  <bruno@clisp.org>
48077
48078         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48079         for the moment.
48080
48081 2007-05-29  Bruno Haible  <bruno@clisp.org>
48082
48083         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48084         invocation.
48085         Reported by Eric Blake.
48086
48087 2007-05-29  Bruno Haible  <bruno@clisp.org>
48088
48089         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48090         compiling case.
48091
48092 2007-05-29  Eric Blake  <ebb9@byu.net>
48093             Bruno Haible  <bruno@clisp.org>
48094
48095         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48096         cross compiles.
48097
48098 2007-05-28  Eric Blake  <ebb9@byu.net>
48099
48100         * modules/closein-tests (test_closein_LDADD): Support test on
48101         cygwin with libtool.
48102
48103 2007-05-28  Bruno Haible  <bruno@clisp.org>
48104
48105         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48106         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48107         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48108         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48109         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48110         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48111         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48112         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48113         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48114
48115 2007-05-28  Eric Blake  <ebb9@byu.net>
48116
48117         Unconditionally include <config.h> in unit tests.
48118         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48119         * tests/test-allocsa.c, tests/test-arcfour.c,
48120         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48121         tests/test-array_list.c, tests/test-array_oset.c,
48122         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48123         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48124         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48125         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48126         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48127         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48128         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48129         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48130         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48131         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48132         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48133         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48134         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48135         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48136         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48137         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48138         test-md5.c, test-memmem.c, test-printf-posix.c,
48139         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48140         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48141         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48142         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48143         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48144         test-vasnprintf-posix2.c, test-vasnprintf.c,
48145         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48146         test-vfprintf-posix.c, test-vprintf-posix.c,
48147         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48148         test-xvasprintf.c: Likewise.
48149
48150 2007-05-28  Bruno Haible  <bruno@clisp.org>
48151
48152         * gnulib-tool (func_import): Remember the --with-tests command-line
48153         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48154         Reported by Eric Blake.
48155
48156 2007-05-28  Bruno Haible  <bruno@clisp.org>
48157
48158         * modules/ftell-tests: New file.
48159         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48160         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48161
48162         * lib/ftell.c: New file.
48163         * modules/ftell: New file.
48164         * m4/ftell.m4: New file.
48165         * doc/functions/ftell.texi: Update.
48166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48167         REPLACE_FTELL.
48168         * lib/stdio_.h (rpl_ftell): New declaration.
48169         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48170         REPLACE_FTELL.
48171
48172 2007-05-28  Eric Blake  <ebb9@byu.net>
48173
48174         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48175
48176 2007-05-28  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/fseek-tests: New file.
48179         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48180         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48181
48182         * lib/fseek.c: New file.
48183         * modules/fseek: New file.
48184         * m4/fseek.m4: New file.
48185         * doc/functions/fseek.texi: Update.
48186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48187         REPLACE_FSEEK.
48188         * lib/stdio_.h (rpl_fseek): New declaration.
48189         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48190         REPLACE_FSEEK.
48191
48192 2007-05-28  Bruno Haible  <bruno@clisp.org>
48193
48194         * lib/stdio_.h (fflush): More comments.
48195
48196 2007-05-28  Bruno Haible  <bruno@clisp.org>
48197
48198         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48199         runtime test.
48200
48201 2007-05-28  Eric Blake  <ebb9@byu.net>
48202
48203         Improve lseek module.
48204         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48205         * lib/unistd_.h (lseek): Scale back link warning message.
48206         * tests/test-lseek.c: Beef up test.
48207         * tests/test-lseek.sh: Exercise more facets of lseek.
48208         Reported by Bruno Haible.
48209
48210 2007-05-28  Bruno Haible  <bruno@clisp.org>
48211
48212         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48213         to define.
48214
48215 2007-05-27  Bruno Haible  <bruno@clisp.org>
48216
48217         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48218
48219 2007-05-27  Bruno Haible  <bruno@clisp.org>
48220
48221         * modules/openmp: New file.
48222         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48223         Noah Misch.
48224
48225 2007-05-26  Bruno Haible  <bruno@clisp.org>
48226
48227         * modules/chdir-long (Depends-on): Add fchdir.
48228         * modules/chdir-safer (Depends-on): Likewise.
48229         * modules/fts (Depends-on): Likewise.
48230         * modules/fts-lgpl (Depends-on): Likewise.
48231         * modules/openat (Depends-on): Likewise.
48232         * modules/savewd (Depends-on): Likewise.
48233
48234 2007-05-24  Eric Blake  <ebb9@byu.net>
48235
48236         Fix lseek on mingw.
48237         * modules/lseek: New module.
48238         * m4/lseek.m4: New file.
48239         * lib/lseek.c: New file.
48240         * modules/lseek-tests: New file.
48241         * tests/test-lseek.c: New file.
48242         * tests/test-lseek.sh: New file.
48243         * MODULES.html.sh: Document lseek module.
48244         * modules/fflush (Depends-on): Add lseek, fseeko.
48245         * modules/fseeko (Depends-on): Likewise.
48246         * modules/ftello (Depends-on): Likewise.
48247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48248         broken.
48249         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48250         broken.
48251         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48252         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48253         * lib/ftello.c (rpl_ftello): Likewise.
48254         * tests/test-fseeko.c (main): Test this.
48255         * tests/test-fseeko.sh: Likewise.
48256         * tests/test-ftello.c (main): Likewise.
48257         * tests/test-ftello.sh: Likewise.
48258         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48259         implies replacing fseek.
48260         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48261         HAVE_FTELLO.
48262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48263         * modules/unistd (Makefile.am): Likewise.
48264         * lib/unistd_.h (lseek): Declare a replacement.
48265         * doc/functions/lseek.texi (lseek): Document this fix.
48266         * doc/functions/fseek.texi (fseek): Likewise.
48267         * doc/functions/ftell.texi (ftell): Likewise.
48268
48269 2007-05-24  Bruno Haible  <bruno@clisp.org>
48270
48271         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48272         in the printed representation of a NaN.
48273         * tests/test-vasprintf-posix.c (test_function): Likewise.
48274         * tests/test-snprintf-posix.h (test_function): Likewise.
48275         * tests/test-sprintf-posix.h (test_function): Likewise.
48276         Reported by Eric Blake.
48277
48278 2007-05-23  Eric Blake  <ebb9@byu.net>
48279
48280         Fix fseeko/ftello on cygwin 1.5.24.
48281         * doc/functions/fseeko.texi (fseeko): Document the fix.
48282         * doc/functions/ftello.texi (ftello): Document the fix.
48283         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48284         * doc/functions/stdout.text (stdout): New file.
48285         * doc/functions/stderr.text (stderr): New file.
48286         * doc/gnulib.texi (Function Substitutes): Use new files.
48287         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48288         prior to 1.7.0.
48289         * tests/test-ftello.c (main): Likewise for ftello.
48290         * tests/test-fseeko.sh: New file.
48291         * tests/test-ftello.sh: New file.
48292         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48293         with seekable stdin.
48294         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48295         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48296         (gl_REPLACE_FSEEKO): New macro.
48297         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48298         * modules/fseeko (Files): Distribute fseeko.c.
48299         * modules/ftello (Files): Distribute ftello.c.
48300         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48301         mode.
48302         * lib/ftello.c (rpl_ftello): New file.
48303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48304         fseeko, ftello.
48305         (gl_STDIN_LARGE_OFFSET): New macro.
48306         * modules/stdio (Makefile.am): Perform the replacement.
48307         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48308
48309 2007-05-23  Bruno Haible  <bruno@clisp.org>
48310
48311         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48312         GNULIB_POSIXCHECK is defined.
48313
48314 2007-05-21  Bruno Haible  <bruno@clisp.org>
48315
48316         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48317         Check also the output for NaN arguments. When cross-compiling, guess
48318         no on IRIX.
48319         * lib/vasnprintf.c: Update comments.
48320         * tests/test-vasnprintf-posix.c (strisnan): New function.
48321         (test_function): Use it.
48322         * tests/test-vasprintf-posix.c (strisnan): New function.
48323         (test_function): Use it.
48324         * tests/test-snprintf-posix.h (strisnan): New function.
48325         (test_function): Use it.
48326         * tests/test-sprintf-posix.h (strisnan): New function.
48327         (test_function): Use it.
48328         Reported by Eric Blake.
48329
48330 2007-05-20  Bruno Haible  <bruno@clisp.org>
48331
48332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48333         numbers that fails on BeOS.
48334         * doc/functions/frexpl.texi: Update.
48335
48336 2007-05-20  Jim Meyering  <jim@meyering.net>
48337
48338         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48339         forced upon us by glibc-2.6.
48340
48341 2007-05-20  Bruno Haible  <bruno@clisp.org>
48342
48343         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48344         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48345         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48346         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48347         NEED_PRINTF_INFINITE.
48348         (is_infinitel): New function.
48349         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48351         gl_PREREQ_VASNPRINTF_INFINITE.
48352         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48354         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48355         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48356         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48357         gl_PREREQ_VASNPRINTF_INFINITE.
48358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48365         * doc/functions/fprintf.texi: Update.
48366         * doc/functions/printf.texi: Update.
48367         * doc/functions/snprintf.texi: Update.
48368         * doc/functions/sprintf.texi: Update.
48369         * doc/functions/vfprintf.texi: Update.
48370         * doc/functions/vprintf.texi: Update.
48371         * doc/functions/vsnprintf.texi: Update.
48372         * doc/functions/vsprintf.texi: Update.
48373
48374 2007-05-20  Bruno Haible  <bruno@clisp.org>
48375
48376         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48377         was not found in libc.
48378         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48379
48380 2007-05-20  Bruno Haible  <bruno@clisp.org>
48381
48382         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48383         printed as "-nan" instead of "nan".
48384         * tests/test-vasprintf-posix.c (test_function): Likewise.
48385         * tests/test-snprintf-posix.h (test_function): Likewise.
48386         * tests/test-sprintf-posix.h (test_function): Likewise.
48387         Needed for HP-UX 11.
48388
48389 2007-05-20  Jim Meyering  <jim@meyering.net>
48390
48391         Fix buggy test for the fchownat-deref bug.
48392         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48393         symlink required for the run-test.  Without it, this test would
48394         always declare that fchownat doesn't work, and client code would
48395         unnecessarily use the replacement function with fixed libc.
48396         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48397         Reported by Greg Schafer.
48398
48399 2007-05-19  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48402         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48403         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48404         Needed for IRIX 6.5 and Solaris 2.5.1.
48405
48406 2007-05-19  Bruno Haible  <bruno@clisp.org>
48407
48408         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48409         (test_function): Skip tests involving -0.0 on platforms where
48410         -0.0 = 0.0.
48411         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48412         (test_function): Skip tests involving -0.0 on platforms where
48413         -0.0 = 0.0.
48414         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48415         (test_function): Skip tests involving -0.0 on platforms where
48416         -0.0 = 0.0.
48417         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48418         (test_function): Skip tests involving -0.0 on platforms where
48419         -0.0 = 0.0.
48420         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48421         tests.
48422         * tests/test-printf-posix.h (test_function): Likewise.
48423         * tests/test-printf-posix.output: Remove all -0.0 related results.
48424         Needed for IRIX 6.5.
48425
48426 2007-05-19  Bruno Haible  <bruno@clisp.org>
48427
48428         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48429         printed as "nan0x7fffffff" instead of "nan".
48430         * tests/test-vasprintf-posix.c (test_function): Likewise.
48431         * tests/test-snprintf-posix.h (test_function): Likewise.
48432         * tests/test-sprintf-posix.h (test_function): Likewise.
48433         * tests/test-fprintf-posix.h (NaN): Remove macro.
48434         (test_function): Remove all NaN related tests.
48435         * tests/test-printf-posix.h (NaN): Remove macro.
48436         (test_function): Remove all NaN related tests.
48437         * tests/test-printf-posix.output: Remove all NaN related results.
48438         Needed for IRIX 6.5.
48439
48440 2007-05-19  Bruno Haible  <bruno@clisp.org>
48441
48442         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48443         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48444
48445 2007-05-19  Bruno Haible  <bruno@clisp.org>
48446
48447         * lib/float_.h: New file.
48448         * m4/float_h.m4: New file.
48449         * modules/float: New file.
48450         * modules/isnanl (Dependencies): Add float.
48451         * modules/isnanl-nolibm (Dependencies): Likewise.
48452         * modules/mathl (Dependencies): Likewise.
48453         * modules/printf-frexpl (Dependencies): Likewise.
48454         * modules/signbit (Dependencies): Likewise.
48455         * modules/vasnprintf (Dependencies): Likewise.
48456         * doc/headers/float.texi: Update.
48457
48458 2007-05-19  Jim Meyering  <jim@meyering.net>
48459
48460         * lib/utimens.c (gl_futimens): Rename from futimens,
48461         now that glibc-2.6 declares futimens.
48462         * lib/utimens.h: Likewise.
48463
48464 2007-05-19  Bruno Haible  <bruno@clisp.org>
48465
48466         Avoid test failures on mingw.
48467         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48468         * tests/test-printf-posix.sh: Likewise.
48469         * tests/test-vfprintf-posix.sh: Likewise.
48470         * tests/test-vprintf-posix.sh: Likewise.
48471
48472 2007-05-19  Bruno Haible  <bruno@clisp.org>
48473
48474         Fix *printf result for NaN, Inf, -0.0 on mingw.
48475         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48476         * lib/vasnprintf.c: Include math.h and isnan.h.
48477         (is_infinite_or_zero): New function.
48478         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48479         values in the %f, %F, %e, %E, %g, %G directives.
48480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48482         gl_PRINTF_INFINITE and test its result. Invoke
48483         gl_PREREQ_VASNPRINTF_INFINITE.
48484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48490         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48491         * doc/functions/fprintf.texi: Update.
48492         * doc/functions/printf.texi: Update.
48493         * doc/functions/snprintf.texi: Update.
48494         * doc/functions/sprintf.texi: Update.
48495         * doc/functions/vfprintf.texi: Update.
48496         * doc/functions/vprintf.texi: Update.
48497         * doc/functions/vsnprintf.texi: Update.
48498         * doc/functions/vsprintf.texi: Update.
48499
48500 2007-05-19  Bruno Haible  <bruno@clisp.org>
48501
48502         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48503         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48504         Instead of multiplying with 10^k, set extra_zeroes to k.
48505         (scale10_round_long_double): Remove function.
48506
48507 2007-05-18  Bruno Haible  <bruno@clisp.org>
48508
48509         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48510         introduced on 2007-05-06.
48511
48512 2007-05-18  Bruno Haible  <bruno@clisp.org>
48513
48514         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48515         %g directives.
48516         * tests/test-vasprintf-posix.c (test_function): Likewise.
48517         * tests/test-snprintf-posix.h (test_function): Likewise.
48518         * tests/test-sprintf-posix.h (test_function): Likewise.
48519
48520 2007-05-18  Bruno Haible  <bruno@clisp.org>
48521
48522         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48523         (strmatch): New function.
48524         (test_function): Test the %f directive on numbers of various exponents.
48525         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48526         (strmatch): New function.
48527         (test_function): Test the %f directive on numbers of various exponents.
48528         * tests/test-snprintf-posix.h (strmatch): New function.
48529         (test_function): Test the %f directive on numbers of various exponents.
48530         * tests/test-sprintf-posix.h (strmatch): New function.
48531         (test_function): Test the %f directive on numbers of various exponents.
48532         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48533         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48534         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48535         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48536
48537 2007-05-18  Bruno Haible  <bruno@clisp.org>
48538
48539         Add support for 'long double' number output.
48540         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48541         * lib/vasnprintf.c: Include math.h and float+.h.
48542         (mp_limb_t): New type.
48543         (GMP_LIMB_BITS): New macro.
48544         (mp_twolimb_t): New type.
48545         (GMP_TWOLIMB_BITS): New macro.
48546         (mpn_t): New type.
48547         (multiply, divide, convert_to_decimal, decode_long_double,
48548         scale10_round_long_double, scale10_round_decimal_long_double,
48549         floorlog10l): New functions.
48550         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48551         for the %f, %F, %e, %E, %g, %G directives.
48552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48553         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48554         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48555         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48556         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48563         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48564         * modules/snprintf-posix (Depends-on): Likewise.
48565         * modules/sprintf-posix (Depends-on): Likewise.
48566         * modules/vasnprintf-posix (Depends-on): Likewise.
48567         * modules/vasprintf-posix (Depends-on): Likewise.
48568         * modules/vfprintf-posix (Depends-on): Likewise.
48569         * modules/vsnprintf-posix (Depends-on): Likewise.
48570         * modules/vsprintf-posix (Depends-on): Likewise.
48571         * modules/vasnprintf (Files): Add lib/float+.h.
48572         * doc/functions/fprintf.texi: Update.
48573         * doc/functions/printf.texi: Update.
48574         * doc/functions/snprintf.texi: Update.
48575         * doc/functions/sprintf.texi: Update.
48576         * doc/functions/vfprintf.texi: Update.
48577         * doc/functions/vprintf.texi: Update.
48578         * doc/functions/vsnprintf.texi: Update.
48579         * doc/functions/vsprintf.texi: Update.
48580
48581 2007-05-18  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48584
48585 2007-05-18  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48588         for printing 64-bit integers. Needed for mingw.
48589
48590 2007-05-18  Bruno Haible  <bruno@clisp.org>
48591
48592         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48593         gl_FUNC_FREXPL_WORKS.
48594         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48595
48596 2007-05-18  Bruno Haible  <bruno@clisp.org>
48597
48598         * modules/frexpl-nolibm-tests: New file.
48599
48600         * modules/frexpl-nolibm: New file.
48601         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48602
48603 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48604
48605         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48606         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48607         GCC 4.2, which otherwise issues a lot of warnings.
48608         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48609         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48610         Likewise.
48611         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48612         * modules/iconv_open (iconv.h): Likewise.
48613         * modules/locale (locale.h): Likewise.
48614         * modules/netinet_in (netinet/in.h): Likewise.
48615         * modules/sys_select (sys_select.h): Likewise.
48616         * modules/sys_socket (sys/socket.h): Likewise.
48617         * modules/sys_stat (sys/stat.h): Likewise.
48618         * modules/sysexits (sysexits.h): Likewise.
48619         * modules/unistd (unistd.h): Likewise.
48620
48621 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48622
48623         * modules/closein-tests (Makefile.am): Distribute
48624         `test-closein.sh'.
48625
48626 2007-05-17  Bruno Haible  <bruno@clisp.org>
48627
48628         * tests/test-printf-posix.output: Renamed from
48629         tests/test-fprintf-posix.out.
48630         * modules/fprintf-posix-tests: Update.
48631         * modules/printf-posix-tests: Update.
48632         * modules/vfprintf-posix-tests: Update.
48633         * modules/vprintf-posix-tests: Update.
48634         * tests/test-fprintf-posix.sh: Update.
48635         * tests/test-printf-posix.sh: Update.
48636         * tests/test-vfprintf-posix.sh: Update.
48637         * tests/test-vprintf-posix.sh: Update.
48638         Reported by Ralf Wildenhues.
48639
48640 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48641
48642         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48643         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48644         GCC 4.2, which otherwise issues a lot of warnings.
48645         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48646         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48647         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48648         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48649         it should no longer be needed.
48650         * lib/string_.h: Likewise.
48651         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48652         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48653         * modules/inttypes (inttypes.h): Likewise.
48654         * modules/math (math.h): Likewise.
48655         * modules/search (search.h): Likewise.
48656         * modules/signal (signal.h): Likewise.
48657         * modules/stdint (stdint.h): Likewise.
48658         * modules/stdio (stdio.h): Likewise.
48659         * modules/stdlib (stdlib.h): Likewise.
48660         * modules/string (string.h): Likewise.
48661         * modules/sys_time (sys/time.h): Likewise.
48662         * modules/time (time.h): Likewise.
48663         * modules/wchar (wchar.h): Likewise.
48664         * modules/wctype (wtype.h): Likewise.
48665
48666 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48667
48668         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48669
48670 2007-05-13  Bruno Haible  <bruno@clisp.org>
48671
48672         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48673         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48674         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48675         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48676         (gl_PREREQ_STRTOK_R): Don't require it here.
48677
48678 2007-05-13  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48681         when used in C++ mode.
48682
48683 2007-05-12  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/linebuffer.h: Tweak doc.
48686         * lib/linebuffer.c: Likewise.
48687
48688 2007-05-12  James Youngman  <jay@gnu.org>
48689
48690         * lib/linebuffer.c (readlinebuffer_delim): New function,
48691         like readlinebuffer, but use a caller-specified delimiter.
48692         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48693         as the delimiter.
48694         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48695
48696 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48697
48698         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48699         * modules/openat (Files): Remove openat-die.c.
48700         (Depends-on): Add openat-die.
48701         * modules/openat-die: New module.
48702
48703 2007-05-06  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48706         Update with info about Cygwin.
48707         * doc/functions/fprintf.texi: Update.
48708         * doc/functions/printf.texi: Update.
48709         * doc/functions/snprintf.texi: Update.
48710         * doc/functions/sprintf.texi: Update.
48711         * doc/functions/vfprintf.texi: Update.
48712         * doc/functions/vprintf.texi: Update.
48713         * doc/functions/vsnprintf.texi: Update.
48714         * doc/functions/vsprintf.texi: Update.
48715         Reported by Eric Blake.
48716
48717 2007-05-06  Bruno Haible  <bruno@clisp.org>
48718
48719         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48720         padding ourselves for the floating-point directives.
48721         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48722         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48723         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48724         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48725         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48726         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48728         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48730         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48732         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48733         * tests/test-snprintf-posix.h (test_function): Also check the width
48734         and some flags in the %f directive.
48735         * tests/test-sprintf-posix.h (test_function): Likewise.
48736         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48737         * tests/test-vasprintf-posix.c (test_function): Likewise.
48738         * doc/functions/fprintf.texi: Update.
48739         * doc/functions/printf.texi: Update.
48740         * doc/functions/snprintf.texi: Update.
48741         * doc/functions/sprintf.texi: Update.
48742         * doc/functions/vfprintf.texi: Update.
48743         * doc/functions/vprintf.texi: Update.
48744         * doc/functions/vsnprintf.texi: Update.
48745         * doc/functions/vsprintf.texi: Update.
48746
48747 2007-05-06  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48750         pass the ' flag character to sprintf or snprintf.
48751         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48752         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48754         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48755         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48756         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48759         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48760         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48761         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48762         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48763         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48764         flag.
48765         * tests/test-sprintf-posix.h (test_function): Likewise.
48766         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48767         * tests/test-vasprintf-posix.c (test_function): Likewise.
48768         * doc/functions/fprintf.texi: Update.
48769         * doc/functions/printf.texi: Update.
48770         * doc/functions/snprintf.texi: Update.
48771         * doc/functions/sprintf.texi: Update.
48772         * doc/functions/vfprintf.texi: Update.
48773         * doc/functions/vprintf.texi: Update.
48774         * doc/functions/vsnprintf.texi: Update.
48775         * doc/functions/vsprintf.texi: Update.
48776
48777 2007-05-01  Bruno Haible  <bruno@clisp.org>
48778
48779         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48780
48781 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48782
48783         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48784         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48785
48786 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48787
48788         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48789         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48791
48792 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48793
48794         * lib/argp-help.c (struct hol_entry): New member `ord'.
48795         (HOL_ENTRY_PTRCMP): Use ord for comparison
48796         (hol_sort): Initialize ord.
48797
48798 2007-05-01  Bruno Haible  <bruno@clisp.org>
48799
48800         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48801         Reported by Eric Blake.
48802         * doc/gnulib.texi (Function Substitutes): Update.
48803
48804 2007-05-01  Bruno Haible  <bruno@clisp.org>
48805
48806         * doc/functions.texi: Remove file, now redundant through
48807         doc/functions/*.texi.
48808
48809 2007-05-01  Bruno Haible  <bruno@clisp.org>
48810
48811         * modules/argp (Depends-on): Add sleep.
48812
48813 2007-05-01  Bruno Haible  <bruno@clisp.org>
48814
48815         * modules/sleep-tests: New file.
48816         * tests/test-sleep.c: New file.
48817
48818         * modules/sleep: New file.
48819         * lib/sleep.c: New file.
48820         * m4/sleep.m4: New file.
48821         * lib/unistd_.h (sleep): New declaration.
48822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48823         HAVE_SLEEP.
48824         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48825         * doc/functions/sleep.texi: Document the sleep module.
48826
48827 2007-05-01  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/sigprocmask.h: Remove file.
48830         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48831         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48832         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48833         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48834         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48835         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48836         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48837         HAVE_SIGSET_T as a shell variable.
48838         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48839         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48840         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48841         (Depends-on): Add signal. Remove verify.
48842         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48843         (Include): Mention <signal.h> instead of sigprocmask.h.
48844         * NEWS: Mention the change.
48845         * lib/fatal-signal.c: Don't include sigprocmask.h.
48846
48847 2007-05-01  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/signal: New file.
48850         * lib/signal_.h: New file.
48851         * m4/signal_h.m4: New file.
48852
48853 2007-05-01  Bruno Haible  <bruno@clisp.org>
48854
48855         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48856         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48857         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48858         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48859
48860 2007-05-01  Bruno Haible  <bruno@clisp.org>
48861
48862         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48863         configure time.
48864         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48865         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48866         * modules/sys_stat (Makefile.am): Substitute their values into
48867         sys/stat.h.
48868
48869 2007-05-01  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48872         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48873         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48874
48875 2007-05-01  Bruno Haible  <bruno@clisp.org>
48876
48877         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48878         'assert' module here.
48879
48880 2007-05-01  Bruno Haible  <bruno@clisp.org>
48881
48882         * doc/functions/*.texi: New files.
48883         * doc/functions/google-ranking.txt: New file.
48884         * doc/gnulib.texi (Function Substitutes): New chapter.
48885         (ctime, inet_ntoa): Remove sections.
48886         * doc/ctime.texi: Remove file.
48887         * doc/inet_ntoa.texi: Remove file.
48888         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48889         dependencies.
48890         (%.info): New rule, specifying a --reference-limit.
48891
48892 2007-05-01  Bruno Haible  <bruno@clisp.org>
48893
48894         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48895
48896 2007-05-01  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48899         the portability of 'mkdir' to mingw systems.
48900
48901 2007-05-01  Bruno Haible  <bruno@clisp.org>
48902
48903         * doc/headers/google-ranking.txt: New file.
48904
48905 2007-04-30  Eric Blake  <ebb9@byu.net>
48906
48907         Prefer fseeko to fseek.
48908         * modules/getpass (Depends-on): Add fseeko.
48909         * lib/getpass.c (getpass): Use fseeko, not fseek.
48910
48911 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48912
48913         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48914         assumes the sorting is stable, while most qsort implementations
48915         are not.  Use argument addresses to ensure they never compare as
48916         equal.
48917
48918         * tests/test-argp-2.sh (usage-indent test): Fix output
48919         (func_compare): Restore diff options
48920         * tests/test-argp.c: Restore #include "progname.h"
48921
48922 2007-04-29  Bruno Haible  <bruno@clisp.org>
48923
48924         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48926         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48928         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48929         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48930         (TESTS, check_PROGRAMS): Add test-snprintf.
48931         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48932         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48933         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48934         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48935         assertions that fail on HP-UX, OSF/1, or IRIX.
48936         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48937
48938 2007-04-29  Bruno Haible  <bruno@clisp.org>
48939
48940         * MODULES.html.sh (posix_functions): Remove 'contents'.
48941
48942 2007-04-29  Karl Berry  <karl@gnu.org>
48943
48944         * config/srclist.txt (gendocs_template_min): new entry.
48945
48946 2007-04-29  Bruno Haible  <bruno@clisp.org>
48947
48948         Work around fpurge bug on BSD systems.
48949         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48950         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48951         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48952         fpurge to rpl_fpurge if the system already has this function.
48953         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48954         the case where the system already has this function. Correct invariants
48955         on BSD systems.
48956         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48957         BSD systems.
48958
48959 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48960
48961         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48962         proposed by Sven Verdoolaege.
48963
48964         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48965         options.
48966         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48967         (usage and help tests): Update
48968
48969 2007-04-29  Bruno Haible  <bruno@clisp.org>
48970
48971         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48972         Print more information in case of failure. Disable a test on BeOS.
48973
48974 2007-04-29  Bruno Haible  <bruno@clisp.org>
48975
48976         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48977         This helps debugging on systems on which no gdb is available.
48978
48979 2007-04-29  Bruno Haible  <bruno@clisp.org>
48980
48981         * lib/freading.h: Improve comments.
48982         * lib/fwriting.h: Likewise.
48983         * tests/test-freading.c (main): Don't check freading immediately after
48984         repositioning. Needed for glibc.
48985
48986 2007-04-29  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/freading.c (freading): Trivial simplification.
48989
48990 2007-04-28  Bruno Haible  <bruno@clisp.org>
48991
48992         * tests/test-fwriting.c (main): Also test the interaction between
48993         fflush and fwriting.
48994         * modules/fwriting-tests (Depends-on): Add fflush.
48995
48996         * tests/test-freading.c (main): Also test the interaction between
48997         fflush and freading.
48998         * modules/freading-tests (Depends-on): Add fflush.
48999
49000 2007-04-28  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49003         fseeko and ftello.
49004         Suggested by Eric Blake.
49005
49006 2007-04-28  Jim Meyering  <jim@meyering.net>
49007
49008         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49009         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49010         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49011
49012 2007-04-27  Eric Blake  <ebb9@byu.net>
49013
49014         * doc/headers/assert.texi (assert.h): Document assert module use.
49015
49016 2007-04-27  Bruno Haible  <bruno@clisp.org>
49017
49018         * doc/headers/*.texi: New files.
49019         * doc/gnulib.texi (Header File Substitutes): New chapter.
49020         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49021         dependencies.
49022         (standards.info ,standards.html, standards.dvi): Update dependencies.
49023         (mostlyclean, clean): New targets.
49024
49025 2007-04-27  Bruno Haible  <bruno@clisp.org>
49026
49027         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49028         * modules/sysexits (Files, Makefile.am): Update.
49029
49030         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49031         * modules/sys_socket (Files, Makefile.am): Update.
49032
49033         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49034         * modules/sys_stat (Files, Makefile.am): Update.
49035
49036 2007-04-27  Eric Blake  <ebb9@byu.net>
49037
49038         * lib/freading.h: Improve comments.
49039         * lib/fwriting.h: Likewise.
49040         * lib/fflush.c: Likewise.
49041
49042         Fix closein for mingw.
49043         * modules/closein-tests: Add tests for closein.
49044         * tests/test-closein.c: New file.
49045         * tests/test-closein.sh: Likewise.
49046         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49047         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49048
49049 2007-04-27  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49052         version is < 6.
49053         * lib/math_.h [__DECC]: Likewise.
49054         * lib/stdio_.h [__DECC]: Likewise.
49055         * lib/stdlib_.h [__DECC]: Likewise.
49056         * lib/string_.h [__DECC]: Likewise.
49057         * lib/time_.h [__DECC]: Likewise.
49058         * lib/wchar_.h [__DECC]: Likewise.
49059         * lib/wctype_.h [__DECC]: Likewise.
49060
49061 2007-04-27  Bruno Haible  <bruno@clisp.org>
49062
49063         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49064
49065 2007-04-27  Bruno Haible  <bruno@clisp.org>
49066
49067         * lib/fflush.c: Add comments.
49068         * modules/fpurge-tests (Depends-on): Add fflush.
49069         * modules/freadable-tests (Depends-on): Likewise.
49070         * modules/fwritable-tests (Depends-on): Likewise.
49071
49072 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49073
49074         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49075         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49076         Report by Bruno Haible <bruno@clisp.org>.
49077
49078 2007-04-26  Eric Blake  <ebb9@byu.net>
49079
49080         Fix fflush on mingw.
49081         * modules/fflush (Depends-on): Add freading.
49082         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49083         but unread data.
49084
49085 2007-04-26  Eric Blake  <ebb9@byu.net>
49086         and Bruno Haible  <bruno@clisp.org>
49087
49088         Implement freading and fwriting.
49089         * lib/freading.c: New file.
49090         * lib/freading.h: Likewise.
49091         * m4/freading.m4: Likewise.
49092         * modules/freading: Likewise.
49093         * modules/freading-tests: Likewise.
49094         * tests/test-freading.c: Likewise.
49095         * lib/fwriting.c: New file.
49096         * lib/fwriting.h: Likewise.
49097         * m4/fwriting.m4: Likewise.
49098         * modules/fwriting: Likewise.
49099         * modules/fwriting-tests: Likewise.
49100         * tests/test-fwriting.c: Likewise.
49101         * MODULES.html.sh (File stream based Input/Output): Mention them.
49102
49103 2007-04-26  Bruno Haible  <bruno@clisp.org>
49104
49105         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49106         'long' when we assume it.
49107         Suggested by Eric Blake.
49108
49109 2007-04-26  Bruno Haible  <bruno@clisp.org>
49110
49111         Ensure fseeko, ftello are declared on glibc systems.
49112         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49113         * modules/fseeko (configure.ac-early): Likewise.
49114         * modules/ftello (configure.ac-early): Likewise.
49115         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49116         AC_FUNC_FSEEKO for this.
49117         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49118         (gl_CHECK_FSEEKO): Remove macro.
49119
49120 2007-04-26  Bruno Haible  <bruno@clisp.org>
49121
49122         * tests/test-fflush.c (main): Also check the ftell result after
49123         fflush and fseek/fseeko.
49124         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49125         file descriptor position cache in the stream.
49126         * lib/fseeko.c (rpl_fseeko): Likewise.
49127
49128 2007-04-26  Bruno Haible  <bruno@clisp.org>
49129
49130         * modules/fflush-tests (Depends-on): Add fseeko.
49131
49132 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49133             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49134
49135         * lib/argz_.h: ensure error_t definition is obtained in same
49136         mechanism system argz.h would have.
49137         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49138         argz facilities are known bad.  Err on the side of caution if
49139         cross-compiling.
49140
49141 2007-04-25  Eric Blake  <ebb9@byu.net>
49142
49143         * lib/fpurge.c (includes): Use stdlib.h for free.
49144         * tests/test-fflush.c (main): Also test fflush-fseeko.
49145
49146 2007-04-25  Bruno Haible  <bruno@clisp.org>
49147
49148         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49149         * lib/fseeko.c: New file.
49150         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49151         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49152         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49153         gl_FUNC_FSEEKO.
49154         (gl_FUNC_FSEEKO): Invoke it.
49155         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49156         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49157         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49158
49159 2007-04-25  Bruno Haible  <bruno@clisp.org>
49160
49161         * modules/fflush (Depends-on): Add ftello.
49162
49163 2007-04-25  Bruno Haible  <bruno@clisp.org>
49164
49165         * modules/ftello-tests: New file.
49166         * tests/test-ftello.c: New file.
49167
49168         * modules/ftello: New file.
49169         * m4/ftello.m4: New file.
49170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49171         HAVE_FTELLO.
49172         * lib/stdio_.h (ftello): New declaration.
49173         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49174         HAVE_FTELLO.
49175
49176 2007-04-25  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/fseeko-tests: New file.
49179         * tests/test-fseeko.c: New file.
49180
49181         * modules/fseeko: New file.
49182         * m4/fseeko.m4: New file.
49183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49184         HAVE_FSEEKO.
49185         * lib/stdio_.h (fseeko): New declaration.
49186         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49187         HAVE_FSEEKO.
49188
49189 2007-04-25  Bruno Haible  <bruno@clisp.org>
49190
49191         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49192
49193 2007-04-25  Bruno Haible  <bruno@clisp.org>
49194
49195         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49196         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49197         * tests/test-unistd.c: Likewise.
49198         * tests/test-fcntl.c: Likewise.
49199
49200 2007-04-23  Eric Blake  <ebb9@byu.net>
49201
49202         * lib/fflush.c: Fix missing include.
49203         Reported by Bruno Haible.
49204
49205 2007-04-23  Bruno Haible  <bruno@clisp.org>
49206
49207         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49208         Reported by Eric Blake.
49209
49210 2007-04-23  Bruno Haible  <bruno@clisp.org>
49211
49212         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49213
49214 2007-04-23  Bruno Haible  <bruno@clisp.org>
49215
49216         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49217
49218 2007-04-23  Bruno Haible  <bruno@clisp.org>
49219
49220         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49221         Needed on HP-UX 11.
49222
49223 2007-04-16  Eric Blake  <ebb9@byu.net>
49224
49225         Make fflush rely on fpurge.
49226         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49227         open coding all variants.
49228         * modules/fflush (Depends-on): Add fpurge and unistd.
49229         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49230         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49231
49232         Fix --with-tests compilation on cygwin.
49233         * modules/argmatch-tests (Makefile.am): List gnulib library first
49234         in LDADD.
49235         * modules/argp-tests (Makefile.am): Likewise.
49236         * modules/array-list-tests (Makefile.am): Likewise.
49237         * modules/array-oset-tests (Makefile.am): Likewise.
49238         * modules/avltree-list-tests (Makefile.am): Likewise.
49239         * modules/avltree-oset-tests (Makefile.am): Likewise.
49240         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49241         * modules/carray-list-tests (Makefile.am): Likewise.
49242         * modules/dirname-tests (Makefile.am): Likewise.
49243         * modules/frexp-tests (Makefile.am): Likewise.
49244         * modules/isnanl-tests (Makefile.am): Likewise.
49245         * modules/linked-list-tests (Makefile.am): Likewise.
49246         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49247         * modules/lock-tests (Makefile.am): Likewise.
49248         * modules/rbtree-list-tests (Makefile.am): Likewise.
49249         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49250         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49251         * modules/tls-tests (Makefile.am): Likewise.
49252         * modules/tsearch-tests (Makefile.am): Likewise.
49253         * modules/xvasprintf-tests (Makefile.am): Likewise.
49254
49255         Fix fpurge for cygwin.
49256         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49257         value.
49258         * modules/fpurge-tests (Depends-on): Clean up trash.
49259
49260 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49261
49262         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49263
49264         * m4/autobuild.m4: Re-indent.
49265
49266 2007-04-13  Bruno Haible  <bruno@clisp.org>
49267
49268         * modules/fpurge-tests: New file.
49269         * tests/test-fpurge.c: New file.
49270
49271         * modules/fpurge: New file.
49272         * lib/fpurge.h: New file.
49273         * lib/fpurge.c: New file.
49274         * m4/fpurge.m4: New file.
49275
49276 2007-04-13  Bruno Haible  <bruno@clisp.org>
49277
49278         * modules/fbufmode-tests: New file.
49279         * tests/test-fbufmode.c: New file.
49280
49281         * modules/fbufmode: New file.
49282         * lib/fbufmode.h: New file.
49283         * lib/fbufmode.c: New file.
49284         * m4/fbufmode.m4: New file.
49285
49286 2007-04-13  Bruno Haible  <bruno@clisp.org>
49287
49288         * modules/fwritable-tests: New file.
49289         * tests/test-fwritable.c: New file.
49290
49291         * modules/fwritable: New file.
49292         * lib/fwritable.h: New file.
49293         * lib/fwritable.c: New file.
49294         * m4/fwritable.m4: New file.
49295
49296 2007-04-13  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/freadable-tests: New file.
49299         * tests/test-freadable.c: New file.
49300
49301         * modules/freadable: New file.
49302         * lib/freadable.h: New file.
49303         * lib/freadable.c: New file.
49304         * m4/freadable.m4: New file.
49305
49306 2007-04-13  Bruno Haible  <bruno@clisp.org>
49307
49308         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49309         MOSTLYCLEANFILES.
49310
49311 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49312
49313         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49314         gzip bootstrap.conf to avoid dragging in i18n machinery.
49315         (gnulib_tool_option): Use it.
49316
49317 2007-04-13  Bruno Haible  <bruno@clisp.org>
49318
49319         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49320         %F directives.
49321         * tests/test-vasprintf-posix.c (test_function): Likewise.
49322         * tests/test-snprintf-posix.h (test_function): Likewise.
49323         * tests/test-sprintf-posix.h (test_function): Likewise.
49324         * tests/test-fprintf-posix.h (test_function): Likewise.
49325         * tests/test-printf-posix.h (test_function): Likewise.
49326         * tests/test-fprintf-posix.out: Likewise.
49327
49328 2007-04-13  Bruno Haible  <bruno@clisp.org>
49329
49330         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49331         * modules/tls-tests (configure.ac): Likewise.
49332         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49333
49334 2007-04-13  Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/tls.c (glthread_tls_get): Fix return type.
49337         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49338
49339 2007-04-12  Eric Blake  <ebb9@byu.net>
49340
49341         * modules/gettime (Depends-on): Remove gettime.
49342         Reported by Dmitry V. Levin.
49343
49344 2007-04-12  Bruno Haible  <bruno@clisp.org>
49345
49346         * modules/fflush (Include): Mention <stdio.h>.
49347         * modules/strtoimax (Include): Mention <inttypes.h>.
49348         * modules/strtoumax (Include): Likewise.
49349
49350 2007-04-12  Eric Blake  <ebb9@byu.net>
49351
49352         * .cvsignore: New file.
49353         * .gitignore: Likewise.
49354
49355 2007-04-12  Bruno Haible  <bruno@clisp.org>
49356
49357         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49358         not before, since $(LDADD) often contains libgnu.a.
49359         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49360         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49361         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49362         Needed on Cygwin.
49363
49364 2007-04-12  Eric Blake  <ebb9@byu.net>
49365
49366         Work around glibc's failure to flush stdin on fclose.
49367         * lib/closein.c (close_stdin): Flush stdin before closing.
49368
49369         Work around glibc's failure to reset seekable stdin on exit.
49370         * modules/closein: New module.
49371         * lib/closein.c: New file.
49372         * lib/closein.h: Likewise.
49373         * m4/closein.m4: Likewise.
49374         * MODULES.html.sh (File stream based Input/Output): Document it.
49375
49376 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49377
49378         * gnulib-tool: Rename generated 'autobuild' script to
49379         'do-autobuild' in --create-megatestdir output.
49380
49381         * doc/gnulib.texi (Build robot for gnulib): Fix.
49382
49383 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49384
49385         * modules/sysexits (Depends-on): Add absolute-header.
49386
49387 2007-04-12  Eric Blake  <ebb9@byu.net>
49388
49389         No need to preserve errno on success.
49390         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49391         Reported by Bruno Haible.
49392
49393 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49394
49395         * MODULES.html.sh (Support for maintaining and releasing
49396         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49397
49398 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49399
49400         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49401
49402 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49403
49404         * modules/autobuild: New module.
49405
49406         * m4/autobuild.m4: New file.
49407
49408 2007-04-11  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49411         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49412         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49413         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49414         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49415         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49416         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49418         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49419         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49420         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49421         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49422         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49424         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49425         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49438         Reported by Eric Blake.
49439
49440 2007-04-11  Bruno Haible  <bruno@clisp.org>
49441
49442         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49443
49444 2007-04-10  Bruno Haible  <bruno@clisp.org>
49445
49446         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49447         for NaN and Infinity. Needed on FreeBSD 6.1.
49448         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49449         regarding results for "%010a" of Infinity and NaN.
49450         * tests/test-vasprintf-posix.c (test_function): Likewise.
49451         * tests/test-snprintf-posix.h (test_function): Likewise.
49452         * tests/test-sprintf-posix.h (test_function): Likewise.
49453         * tests/test-fprintf-posix.h (test_function): Likewise.
49454         * tests/test-printf-posix.h (test_function): Likewise.
49455         * tests/test-fprintf-posix.out: Likewise.
49456
49457 2007-04-10  Bruno Haible  <bruno@clisp.org>
49458
49459         * modules/locale-tests: New file.
49460         * tests/test-locale.c: New file.
49461
49462         * modules/locale: New file.
49463         * lib/locale_.h: New file.
49464         * m4/locale_h.m4: New file.
49465
49466 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49467             Bruno Haible  <bruno@clisp.org>
49468
49469         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49470         be determined, test for availability of the copysignf, copysign,
49471         copysignl functions.
49472         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49473         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49474         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49475
49476 2007-04-09  Eric Blake  <ebb9@byu.net>
49477
49478         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49479         * modules/stdio (Makefile.am): Support fflush.
49480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49481         * modules/fflush: New file.
49482         * lib/fflush.c: Likewise.
49483         * m4/fflush.m4: Likewise.
49484         * modules/fflush-tests: New test.
49485         * tests/test-fflush.c: Likewise.
49486         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49487
49488 2007-04-06  Bruno Haible  <bruno@clisp.org>
49489
49490         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49491         (VASNPRINTF): Use signbit for faster determination whether to print a
49492         minus sign.
49493         * modules/vasnprintf (Files): Remove lib/float+.h.
49494         * modules/fprintf-posix (Depends-on): Add signbit.
49495         * modules/snprintf-posix (Depends-on): Likewise.
49496         * modules/sprintf-posix (Depends-on): Likewise.
49497         * modules/vasnprintf-posix (Depends-on): Likewise.
49498         * modules/vasprintf-posix (Depends-on): Likewise.
49499         * modules/vfprintf-posix (Depends-on): Likewise.
49500         * modules/vsnprintf-posix (Depends-on): Likewise.
49501         * modules/vsprintf-posix (Depends-on): Likewise.
49502
49503 2007-04-06  Bruno Haible  <bruno@clisp.org>
49504
49505         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49506         * tests/test-frexpl.c (main): Likewise.
49507         * tests/test-ldexpl.c (main): Likewise.
49508         * modules/frexp-tests (Depends-on): Add signbit.
49509         * modules/frexpl-tests (Depdends-on): Likewise.
49510         * modules/ldexpl-tests (Depdends-on): Likewise.
49511
49512 2007-04-06  Bruno Haible  <bruno@clisp.org>
49513
49514         * modules/signbit-tests: New file.
49515         * tests/test-signbit.c: New file.
49516
49517         * modules/signbit: New file.
49518         * lib/signbitf.c: New file.
49519         * lib/signbitd.c: New file.
49520         * lib/signbitl.c: New file.
49521         * m4/signbit.m4: New file.
49522         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49523         (signbit): New macro.
49524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49525         REPLACE_SIGNBIT.
49526         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49527         REPLACE_FREXPL into math.h.
49528
49529 2007-04-06  Bruno Haible  <bruno@clisp.org>
49530
49531         * modules/isnanf-nolibm-tests: New file.
49532         * tests/test-isnanf.c: New file.
49533
49534         * modules/isnanf-nolibm: New file.
49535         * lib/isnanf.h: New file.
49536         * lib/isnanf.c: New file.
49537         * lib/isnan.c: Consider the USE_FLOAT macro.
49538         * m4/isnanf.m4: New file.
49539
49540 2007-04-06  Bruno Haible  <bruno@clisp.org>
49541
49542         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49543         (Link): New section.
49544
49545         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49546
49547 2007-04-06  Bruno Haible  <bruno@clisp.org>
49548
49549         Assume the 'long double' type.
49550         * m4/longdouble.m4: Remove file.
49551         * config/srclist.txt: Don't mention longdouble.m4.
49552         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49553         * lib/float+.h: Likewise.
49554         * lib/frexp.c: Likewise.
49555         * lib/printf-args.h: Likewise.
49556         * lib/printf-args.c: Likewise.
49557         * lib/printf-frexp.c: Likewise.
49558         * lib/printf-parse.c: Likewise.
49559         * lib/vasnprintf.c: Likewise.
49560         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49561         * m4/intl.m4: Likewise.
49562         * m4/isnanl.m4: Likewise.
49563         * m4/printf.m4: Likewise.
49564         * m4/printf-frexpl.m4: Likewise.
49565         * m4/vasnprintf.m4: Likewise.
49566         * modules/allocsa (Files): Remove m4/longdouble.m4.
49567         * modules/gettext (Files): Likewise.
49568         * modules/relocatable-prog-wrapper (Files): Likewise.
49569         * modules/vasnprintf (Files): Likewise.
49570         * modules/isnanl (Files): Likewise.
49571         (Include): Simplify.
49572         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49573         (Include): Simplify.
49574         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49575         (Include): Simplify.
49576         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49577         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49578         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49579         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49580         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49581         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49582         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49583         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49584         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49585         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49586         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49587         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49588         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49589         * tests/test-isnanl.c: Likewise.
49590         * tests/test-snprintf-posix.h: Likewise.
49591         * tests/test-sprintf-posix.h: Likewise.
49592         * tests/test-vasnprintf-posix.c: Likewise.
49593         * tests/test-vasnprintf-posix2.c: Likewise.
49594         * tests/test-vasprintf-posix.c: Likewise.
49595
49596 2007-04-06  Bruno Haible  <bruno@clisp.org>
49597
49598         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49599         * lib/math_.h [__DECC]: Include the overridden include file through
49600         #include_next, outside the double-inclusion guard.
49601         * lib/stdio_.h [__DECC]: Likewise.
49602         * lib/stdlib_.h [__DECC]: Likewise.
49603         * lib/string_.h [__DECC]: Likewise.
49604         * lib/time_.h [__DECC]: Likewise.
49605         * lib/wchar_.h [__DECC]: Likewise.
49606         * lib/wctype_.h [__DECC]: Likewise.
49607         * lib/inttypes_.h [__DECC]: Likewise.
49608         Reported by Albert Chin <china@thewrittenword.com> in
49609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49610
49611 2007-04-04  Eric Blake  <ebb9@byu.net>
49612
49613         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49614         1.5.x.
49615
49616 2007-04-04  Bruno Haible  <bruno@clisp.org>
49617
49618         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49619         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49620
49621 2007-04-04  Bruno Haible  <bruno@clisp.org>
49622
49623         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49624         results for "%010a" of Infinity and NaN.
49625         * tests/test-vasprintf-posix.c (test_function): Likewise.
49626         * tests/test-snprintf-posix.h (test_function): Likewise.
49627         * tests/test-sprintf-posix.h (test_function): Likewise.
49628         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49629         * tests/test-printf-posix.h (test_function): Likewise.
49630         * tests/test-fprintf-posix.out: Update.
49631         Needed for FreeBSD 6.1.
49632
49633 2007-04-04  Bruno Haible  <bruno@clisp.org>
49634
49635         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49636         directly used by the gnulib modules nor by gnulib-tool.
49637
49638 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49639
49640         * DEPENDENCIES: Give overall description of version dependency
49641         desirability.  Use more-typical names for apps.
49642         Add shell, coreutils, diffutils, grep, tar, gzip.
49643
49644 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49645
49646         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49647
49648 2007-04-04  Karl Berry  <karl@gnu.org>
49649
49650         * MODULES.html.sh (func_module): missing '.
49651
49652 2007-04-03  Bruno Haible  <bruno@clisp.org>
49653
49654         * modules/argmatch-tests (Makefile.am): New variable
49655         test_argmatch_LDADD.
49656         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49657         * modules/array-list-tests (Makefile.am): New variable
49658         test_array_list_LDADD.
49659         * modules/array-oset-tests (Makefile.am): New variable
49660         test_array_oset_LDADD.
49661         * modules/avltree-list-tests (Makefile.am): New variable
49662         test_avltree_list_LDADD.
49663         * modules/avltree-oset-tests (Makefile.am): New variable
49664         test_avltree_oset_LDADD.
49665         * modules/avltreehash-list-tests (Makefile.am): New variable
49666         test_avltreehash_list_LDADD.
49667         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49668         test_canonicalize_lgpl_LDADD.
49669         * modules/carray-list-tests (Makefile.am): New variable
49670         test_carray_list_LDADD.
49671         * modules/dirname-tests (Makefile.am): New variable
49672         test_dirname_LDADD.
49673         * modules/linked-list-tests (Makefile.am): New variable
49674         test_linked_list_LDADD.
49675         * modules/linkedhash-list-tests (Makefile.am): New variable
49676         test_linkedhash_list_LDADD.
49677         * modules/rbtree-list-tests (Makefile.am): New variable
49678         test_rbtree_list_LDADD.
49679         * modules/rbtree-oset-tests (Makefile.am): New variable
49680         test_rbtree_oset_LDADD.
49681         * modules/rbtreehash-list-tests (Makefile.am): New variable
49682         test_rbtreehash_list_LDADD.
49683         * modules/xvasprintf-tests (Makefile.am): New variable
49684         test_xvasprintf_LDADD.
49685         Reported by Eric Blake.
49686
49687 2007-04-03  Eric Blake  <ebb9@byu.net>
49688
49689         * DEPENDENCIES: Weaken m4 requirements.
49690
49691 2007-04-03  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49694         * modules/isnanl-tests (configure.ac): Likewise.
49695
49696 2007-04-03  Ben Pfaff  <blp@gnu.org>
49697
49698         * modules/iconv_open: Add $(srcdir)/ to source directory
49699         references in Makefile fragments that call gperf, to fix VPATH
49700         builds.
49701
49702 2007-04-03  Bruno Haible  <bruno@clisp.org>
49703
49704         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49705         * lib/ldexpl.c: Undo last change.
49706
49707 2007-04-03  Bruno Haible  <bruno@clisp.org>
49708
49709         * modules/printf-frexpl (Depends-on): Undo last change.
49710         (Files): Add m4/ldexpl.m4.
49711
49712 2007-04-03  Bruno Haible  <bruno@clisp.org>
49713
49714         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49715         * modules/isnanl (Link): New section.
49716
49717         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49718         * modules/frexp (Link): New section.
49719
49720         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49721         * modules/frexpl (Link): New section.
49722
49723         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49724         * modules/ldexpl (Link): New section.
49725
49726 2007-04-03  Bruno Haible  <bruno@clisp.org>
49727
49728         * modules/TEMPLATE-EXTENDED: New file.
49729         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49730
49731 2007-04-03  Bruno Haible  <bruno@clisp.org>
49732
49733         * DEPENDENCIES: New file.
49734         Suggested by Simon Josefsson.
49735
49736 2007-04-03  Bruno Haible  <bruno@clisp.org>
49737
49738         * doc/gnulib.texi: Escape @.
49739
49740 2007-04-03  James Youngman  <jay@gnu.org>
49741         and Paul Eggert  <eggert@cs.ucla.edu>
49742
49743         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49744         birthtime on all systems that have birthtime, not just those which
49745         use st_birthtimensec rather than st_birthtim.  Putting zero in
49746         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49747         that the birth time is not available for files on an NFS mount.
49748
49749 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49750
49751         * modules/memxor: Move back from crypto/, suggested by Bruno.
49752         * modules/crypto/hmac-sha1: Fix memxor dependency.
49753
49754         * modules/crypto/gc: Moved from ../.
49755
49756 2007-04-02  Eric Blake  <ebb9@byu.net>
49757
49758         * lib/ldexpl.c (includes): Avoid libm.
49759
49760         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49761
49762 2007-04-02  Bruno Haible  <bruno@clisp.org>
49763
49764         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49765         on IRIX.
49766
49767 2007-04-02  Bruno Haible  <bruno@clisp.org>
49768
49769         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49770         x86 or x86_64 platforms running MacOS X.
49771         Reported by Ryan Schmidt <@ryandesign.com>.
49772
49773 2007-04-02  Bruno Haible  <bruno@clisp.org>
49774
49775         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49776         i386.
49777
49778 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49779
49780         * modules/crypto/arcfour: Moved from ../.
49781         * modules/crypto/arcfour-tests: Moved from ../.
49782         * modules/crypto/arctwo: Moved from ../.
49783         * modules/crypto/arctwo-tests: Moved from ../.
49784         * modules/crypto/des: Moved from ../.
49785         * modules/crypto/des-tests: Moved from ../.
49786         * modules/crypto/gc-arcfour: Moved from ../.
49787         * modules/crypto/gc-arcfour-tests: Moved from ../.
49788         * modules/crypto/gc-arctwo: Moved from ../.
49789         * modules/crypto/gc-arctwo-tests: Moved from ../.
49790         * modules/crypto/gc-des: Moved from ../.
49791         * modules/crypto/gc-des-tests: Moved from ../.
49792         * modules/crypto/gc-hmac-md5: Moved from ../.
49793         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49794         * modules/crypto/gc-hmac-sha1: Moved from ../.
49795         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49796         * modules/crypto/gc-md2: Moved from ../.
49797         * modules/crypto/gc-md2-tests: Moved from ../.
49798         * modules/crypto/gc-md4: Moved from ../.
49799         * modules/crypto/gc-md4-tests: Moved from ../.
49800         * modules/crypto/gc-md5: Moved from ../.
49801         * modules/crypto/gc-md5-tests: Moved from ../.
49802         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49803         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49804         * modules/crypto/gc-random: Moved from ../.
49805         * modules/crypto/gc-rijndael: Moved from ../.
49806         * modules/crypto/gc-rijndael-tests: Moved from ../.
49807         * modules/crypto/gc-sha1: Moved from ../.
49808         * modules/crypto/gc-sha1-tests: Moved from ../.
49809         * modules/crypto/gc-tests: Moved from ../.
49810         * modules/crypto/hmac-md5: Moved from ../.
49811         * modules/crypto/hmac-md5-tests: Moved from ../.
49812         * modules/crypto/hmac-sha1: Moved from ../.
49813         * modules/crypto/hmac-sha1-tests: Moved from ../.
49814         * modules/crypto/md2: Moved from ../.
49815         * modules/crypto/md2-tests: Moved from ../.
49816         * modules/crypto/md4: Moved from ../.
49817         * modules/crypto/md4-tests: Moved from ../.
49818         * modules/crypto/md5: Moved from ../.
49819         * modules/crypto/md5-tests: Moved from ../.
49820         * modules/crypto/memxor: Moved from ../.
49821         * modules/crypto/rijndael: Moved from ../.
49822         * modules/crypto/rijndael-tests: Moved from ../.
49823         * modules/crypto/sha1: Moved from ../.
49824
49825 2007-03-30  James Youngman  <jay@gnu.org>
49826
49827         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49828         rename() to change the ctime of a file (because ctime is unaffected
49829         by rename on jfs2 on AIX 5.1).
49830         (main): Start by doing cleanup, in case a previous run failed leaving
49831         test files behind.
49832
49833 2007-03-31  Bruno Haible  <bruno@clisp.org>
49834
49835         Support old proprietary implementations of iconv.
49836         * modules/iconv_open: New file.
49837         * lib/iconv_.h: New file.
49838         * m4/iconv_h.m4: New file.
49839         * lib/iconv_open.c: New file.
49840         * lib/iconv_open-aix.gperf: New file.
49841         * lib/iconv_open-hpux.gperf: New file.
49842         * lib/iconv_open-irix.gperf: New file.
49843         * lib/iconv_open-osf.gperf: New file.
49844         * m4/iconv_open.m4: New file.
49845         * modules/linebreak (Depends-on): Add iconv_open.
49846         * modules/striconv (Depends-on): Likewise.
49847         * modules/striconveh (Depends-on): Likewise.
49848         * modules/unicodeio (Depends-on): Likewise.
49849         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49850         (iconv_t)(-1).
49851         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49852         conversion if cd is (iconv_t)(-1).
49853         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49854         is not possible.
49855
49856 2007-03-31  Bruno Haible  <bruno@clisp.org>
49857
49858         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49859         work on Solaris either. Protect also second use of "autodetect_jp".
49860
49861 2007-03-31  Bruno Haible  <bruno@clisp.org>
49862
49863         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49864         the function is not present.
49865
49866 2007-03-31  Bruno Haible  <bruno@clisp.org>
49867
49868         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49869         the function is not present.
49870
49871 2007-03-31  Bruno Haible  <bruno@clisp.org>
49872
49873         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49874         a bug in HP-UX iconv_open().
49875
49876 2007-03-31  Bruno Haible  <bruno@clisp.org>
49877
49878         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49879         (Mathematics <math.h>): New section, add fpieee.
49880         (Input/output <stdio.h>): Add fseterr.
49881         (Mathematics <math.h>): New section, add printf-frexp.
49882         (Container data structures): Add sublist.
49883         (Core language properties): Add fpucw, inline.
49884         (Functions for greatest-width integer types <inttypes.h>): Add
49885         imaxabs, imaxdiv, inttypes.
49886         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49887         isnanl-nolibm, ldexp.
49888         (Mathematics <math.h>): New section, add printf-frexpl.
49889         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49890         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49891         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49892         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49893         (Unicode string functions): Add unistr/u*-mbtoucr.
49894         (Java): Add javacomp-script, javaexec-script.
49895         (C#): Add csharpcomp-script, csharpexec-script.
49896         (Support for building libraries and executables): Add havelib,
49897         relocatable-*.
49898         (Support for maintaining and releasing projects): Renamed from
49899         'Support for maintaining and release projects'. Add announce-gen.
49900
49901 2007-03-31  Bruno Haible  <bruno@clisp.org>
49902
49903         * README: Talk primarily about git.
49904         (git and CVS): Renamed from CVS.
49905         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49906         gnulib is available through git.
49907         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49908
49909 2007-03-30  Bruno Haible  <bruno@clisp.org>
49910
49911         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49912         * lib/poll_.h: Likewise.
49913         * lib/stat_.h: Likewise.
49914         * lib/sys_time_.h: Likewise.
49915         * lib/sysexit_.h: Likewise.
49916         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49917         * lib/stdbool_.h: Likewise.
49918         * lib/byteswap_.h: Add double-inclusion guard.
49919
49920 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49921
49922         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49923
49924 2007-03-30  Karl Berry  <karl@gnu.org>
49925
49926         * config/srclist-update: double space after USA in the license
49927         substitution, since that's how it's usually (?) written.
49928
49929 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49932         reported by Bruno Haible.
49933
49934 2007-03-29  Bruno Haible  <bruno@clisp.org>
49935
49936         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49937         a bug in AIX iconv().
49938
49939 2007-03-29  Bruno Haible  <bruno@clisp.org>
49940
49941         * modules/ldexpl-tests: New file.
49942         * tests/test-ldexpl.c: New file.
49943
49944 2007-03-29  Bruno Haible  <bruno@clisp.org>
49945
49946         * lib/ldexpl.c: Include fpucw.h.
49947         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49948         multiplication.
49949         * modules/ldexpl (Depends-on): Add fpucw.
49950
49951 2007-03-29  Bruno Haible  <bruno@clisp.org>
49952
49953         * modules/ldexpl: New file.
49954         * m4/ldexpl.m4: New file.
49955         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49956         set.
49957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49958         REPLACE_LDEXPL.
49959         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49960         REPLACE_LDEXPL.
49961         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49962         gl_FUNC_LDEXPL_WORKS.
49963         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49964         * modules/mathl (Files): Remove lib/ldexpl.c.
49965         (Depends-on): Add ldexpl.
49966
49967 2007-03-29  Bruno Haible  <bruno@clisp.org>
49968
49969         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49970
49971 2007-03-29  Bruno Haible  <bruno@clisp.org>
49972
49973         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49974         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49975         and possibly also HP-UX.
49976         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49977         work on AIX, IRIX, HP-UX, OSF/1.
49978         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49979         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49980         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49981         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49982         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49983         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49984
49985 2007-03-29  Bruno Haible  <bruno@clisp.org>
49986
49987         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49988
49989 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49990
49991         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49992         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49993
49994 2007-03-29  Eric Blake  <ebb9@byu.net>
49995
49996         * lib/acl-internal.h: Remove redundant include.
49997         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49998         Cygwin when a file is locked.
49999
50000 2007-03-29  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50003         file.
50004         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50005
50006 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50007
50008         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50009         try to remove a parent directory if the child couldn't be removed
50010         (except for the first rmdir, which could fail because the child
50011         doesn't exist).  Problem reported by Jeff Blaine in
50012         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50013
50014 2007-03-28  Bruno Haible  <bruno@clisp.org>
50015
50016         * lib/striconveh.c (utf8conv_carefully): New function.
50017         (mem_cd_iconveh_internal): Invoke it.
50018
50019 2007-03-28  Bruno Haible  <bruno@clisp.org>
50020
50021         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50022         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50023         input.
50024         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50025         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50026         unistr/u8-uctomb.
50027
50028 2007-03-28  Bruno Haible  <bruno@clisp.org>
50029
50030         * modules/unistr/u8-mbtoucr: New file.
50031         * lib/unistr/u8-mbtoucr.c: New file.
50032         * modules/unistr/u16-mbtoucr: New file.
50033         * lib/unistr/u16-mbtoucr.c: New file.
50034         * modules/unistr/u16-mbtoucr: New file.
50035         * lib/unistr/u16-mbtoucr.c: New file.
50036         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50037
50038 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50039             Bruno Haible  <bruno@clisp.org>
50040
50041         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50042         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50043         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50044
50045         * m4/stdio_h.m4: Add stubs for vasprintf too.
50046
50047         * modules/stdio: Support vasprintf in sed command.
50048
50049         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50050         vasprintf.h.  Add stdio module indicator.
50051
50052         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50053         vasprintf.h.
50054
50055         * lib/vasprintf.h: File removed.
50056
50057         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50058         * lib/vasprintf.c: Ditto.
50059         * lib/xvasprintf.c: Ditto.
50060         * tests/test-vasprintf-posix.c: Ditto.
50061         * tests/test-vasprintf.c: Ditto.
50062
50063 2007-03-27  Bruno Haible  <bruno@clisp.org>
50064
50065         Make vasnprintf multithread-safe.
50066         * lib/vasnprintf.c (decimal_point_char): New function.
50067         (VASNPRINTF): Use it.
50068         Suggested by Simon Josefsson.
50069
50070 2007-03-27  Eric Blake  <ebb9@byu.net>
50071
50072         Support sub-second birthtime on cygwin.
50073         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50074         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50075         (get_stat_birthtime): Also work with st_birthtim.
50076
50077 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50078
50079         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50080         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50081         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50082         (get_stat_birthtime_ns): Simplify compile-time tests.
50083         (get_stat_birthtime): Change the API to look like
50084         get_stat_mtime etc., except return a negative tv_nsec on error.
50085         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50086         Don't check for "spare" fields.
50087         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50088         or for struct stat.st_birthtime, as these tests aren't used.
50089         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50090
50091 2007-03-27  Bruno Haible  <bruno@clisp.org>
50092
50093         * lib/stat-time.h: Include <sys/stat.h>.
50094
50095 2007-03-27  James Youngman  <jay@gnu.org>
50096
50097         * lib/stat-time.h (get_stat_birthtime): New function for
50098           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50099         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50100           and its variants.
50101         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50102         * modules/stat-time-test: New file.
50103         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50104
50105 2007-03-26  Bruno Haible  <bruno@clisp.org>
50106
50107         Better support of signalling NaNs.
50108         * lib/atanl.c: Include isnanl.h.
50109         (atanl): Perform test for NaN at the beginning of the function and
50110         through a call to isnanl.
50111         * lib/cosl.c: Include isnanl.h.
50112         (cosl): Perform test for NaN at the beginning of the function and
50113         through a call to isnanl.
50114         * lib/ldexpl.c: Include isnanl.h.
50115         (ldexpl): Perform test for NaN through a call to isnanl.
50116         * lib/logl.c: Include isnanl.h.
50117         (logl): Perform test for NaN at the beginning of the function and
50118         through a call to isnanl.
50119         * lib/sinl.c: Include isnanl.h.
50120         (sinl): Perform test for NaN at the beginning of the function and
50121         through a call to isnanl.
50122         * lib/sqrtl.c: Include isnanl.h.
50123         (sqrtl): Perform test for NaN at the beginning of the function and
50124         through a call to isnanl.
50125         * lib/tanl.c: Include isnanl.h.
50126         (tanl): Perform test for NaN at the beginning of the function and
50127         through a call to isnanl.
50128         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50129         * modules/mathl (Depends-on): Add isnanl.
50130
50131 2007-03-26  Eric Blake  <ebb9@byu.net>
50132
50133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50134         regression in logic sense of previous patch.
50135
50136 2007-03-26  Bruno Haible  <bruno@clisp.org>
50137
50138         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50139         unportable shell command "if ! ...".
50140         Reported by Ralf Wildenhues.
50141
50142 2007-03-25  Bruno Haible  <bruno@clisp.org>
50143
50144         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50145         <sysexits.h> file, and only add EX_CONFIG.
50146         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50147         absolute file name and whether it is sufficient. Substitute also
50148         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50149         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50150         ABSOLUTE_SYSEXITS_H into sysexits.h.
50151
50152 2007-03-25  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50155         hints is NULL.
50156
50157 2007-03-25  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50160         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50161
50162 2007-03-25  Bruno Haible  <bruno@clisp.org>
50163
50164         * lib/vasnprintf.c: Include langinfo.h.
50165         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50166         multithread-safe.
50167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50170         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50171         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50173         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50175         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50176         Reported by Simon Josefsson.
50177
50178 2007-03-25  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50181         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50182         * modules/vasnprintf (Depends-on): Add stdint.
50183
50184 2007-03-25  Bruno Haible  <bruno@clisp.org>
50185
50186         * modules/fpieee: New file.
50187         * m4/fpieee.m4: New file.
50188         * modules/isnan-nolibm (Depends-on): Add fpieee.
50189         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50190         * modules/isnanl (Depends-on): Add fpieee.
50191
50192 2007-03-25  Bruno Haible  <bruno@clisp.org>
50193
50194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50195
50196 2007-03-25  Bruno Haible  <bruno@clisp.org>
50197
50198         Avoid test failures on IRIX 6.5.
50199         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50200         (main): Use it.
50201         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50202         macros.
50203         (main): Use them.
50204
50205 2007-03-25  Bruno Haible  <bruno@clisp.org>
50206
50207         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50208         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50209         exists but doesn't work.
50210         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50211         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50213         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50214
50215 2007-03-25  Bruno Haible  <bruno@clisp.org>
50216
50217         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50218         returns inf. Needed on IRIX 6.5.
50219
50220 2007-03-25  Bruno Haible  <bruno@clisp.org>
50221
50222         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50223         (main): Use isnanl instead of x != x idiom.
50224         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50225
50226         * tests/test-frexp.c: Include isnan.h.
50227         (main): Use isnan instead of x != x idiom.
50228         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50229
50230 2007-03-25  Bruno Haible  <bruno@clisp.org>
50231
50232         * tests/test-frexp.c (NaN): New function/macro.
50233         (main): Use it instead of 0.0 / 0.0.
50234         * tests/test-isnan.c (NaN): New function/macro.
50235         (main): Use it instead of 0.0 / 0.0.
50236         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50237         (test_function): Use it instead of 0.0 / 0.0.
50238         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50239         (test_function): Use it instead of 0.0 / 0.0.
50240         * tests/test-snprintf-posix.h (NaN): New function/macro.
50241         (test_function): Use it instead of 0.0 / 0.0.
50242         * tests/test-sprintf-posix.h (NaN): New function/macro.
50243         (test_function): Use it instead of 0.0 / 0.0.
50244         * tests/test-fprintf-posix.h (NaN): New function/macro.
50245         (test_function): Use it instead of 0.0 / 0.0.
50246         * tests/test-printf-posix.h (NaN): New function/macro.
50247         (test_function): Use it instead of 0.0 / 0.0.
50248
50249         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50250
50251 2007-03-25  Bruno Haible  <bruno@clisp.org>
50252
50253         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50254
50255 2007-03-25  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/regexec.c (merge_state_with_log): Make static.
50258
50259 2007-03-25  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/trigl.c (kernel_rem_pio2): Make static.
50262
50263 2007-03-25  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/sincosl.c (sincosl_table): Make static.
50266
50267 2007-03-25  Bruno Haible  <bruno@clisp.org>
50268
50269         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50270         if the compiler does not support C99.
50271
50272 2007-03-25  Bruno Haible  <bruno@clisp.org>
50273
50274         * modules/time (Makefile.am): Ensure all rule action lines start with a
50275         tab.
50276
50277 2007-03-24  Bruno Haible  <bruno@clisp.org>
50278
50279         * modules/tsearch-tests: New file.
50280         * tests/test-tsearch.sh: New file.
50281         * tests/test-tsearch.c: New file, mostly copied from glibc.
50282
50283         * modules/search-tests: New file.
50284         * tests/test-search.c: New file.
50285
50286         * modules/search: New file.
50287         * lib/search_.h: New file, incorporating lib/tsearch.h.
50288         * m4/search_h.m4: New file.
50289         * lib/tsearch.h: Remove file.
50290         * lib/tsearch.c: Include search.h instead of tsearch.h.
50291         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50292         HAVE_TSEARCH.
50293         * modules/tsearch (Files): Remove lib/tsearch.h.
50294         (Depends-on): Add search.
50295         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50296         (Include): Change tsearch.h into search.h.
50297
50298 2007-03-24  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/fpucw: New file.
50301         * lib/fpucw.h: New file.
50302         * lib/frexp.c: Include fpucw.h.
50303         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50304         (FUNC): Use them.
50305         * lib/printf-frexp.c: Include fpucw.h.
50306         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50307         (FUNC): Use them.
50308         * lib/vasnprintf.c: Include fpucw.h.
50309         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50310         'long double' calculations.
50311         * tests/test-frexpl.c: Include fpucw.h.
50312         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50313         * tests/test-printf-frexpl.c: Include fpucw.h.
50314         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50315         * modules/frexpl (Depends-on): Add fpucw.
50316         * modules/printf-frexpl (Depends-on): Likewise.
50317         * modules/fprintf-posix (Depends-on): Likewise.
50318         * modules/snprintf-posix (Depends-on): Likewise.
50319         * modules/sprintf-posix (Depends-on): Likewise.
50320         * modules/vasnprintf-posix (Depends-on): Likewise.
50321         * modules/vasprintf-posix (Depends-on): Likewise.
50322         * modules/vfprintf-posix (Depends-on): Likewise.
50323         * modules/vsnprintf-posix (Depends-on): Likewise.
50324         * modules/vsprintf-posix (Depends-on): Likewise.
50325         * modules/frexpl-tests (Depends-on): Likewise.
50326         * modules/printf-frexpl-tests (Depends-on): Likewise.
50327
50328 2007-03-24  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/float+.h: New file.
50331         * lib/isnan.c: Include float+.h.
50332         (SIZE): New macro.
50333         (FUNC): Compare only SIZE bytes of the value.
50334         * lib/vasnprintf.c: Include float+.h.
50335         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50336         SIZEOF_LDBL or SIZEOF_DBL bytes.
50337         * modules/isnan-nolibm (Files): Add lib/float+.h.
50338         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50339         * modules/isnanl (Files): Add lib/float+.h.
50340         * modules/vasnprintf (Files): Add lib/float+.h.
50341
50342 2007-03-24  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50345         include isnanl-nolibm.h.
50346
50347 2007-03-24  Bruno Haible  <bruno@clisp.org>
50348
50349         * tests/test-read-file.c (main): Don't produce spurious output for
50350         expected situations. Make the test fail if it encountered unexpected
50351         results.
50352
50353 2007-03-24  Bruno Haible  <bruno@clisp.org>
50354
50355         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50356         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50357
50358 2007-03-24  Bruno Haible  <bruno@clisp.org>
50359
50360         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50361
50362 2007-03-24  Bruno Haible  <bruno@clisp.org>
50363
50364         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50365         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50366
50367         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50368         * modules/utf8-ucs4: Turn into a symbolic link to module
50369         unistr/u8-mbtouc.
50370
50371         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50372         utf8-ucs4-unsafe.
50373         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50374         unistr/u8-mbtouc-unsafe.
50375
50376         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50377         * modules/utf16-ucs4: Turn into a symbolic link to module
50378         unistr/u16-mbtouc.
50379
50380         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50381         utf16-ucs4-unsafe.
50382         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50383         unistr/u16-mbtouc-unsafe.
50384
50385         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50386         * modules/ucs4-utf8: Turn into a symbolic link to module
50387         unistr/u8-ubtomb.
50388
50389         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50390         * modules/ucs4-utf16: Turn into a symbolic link to module
50391         unistr/u16-ubtomb.
50392
50393 2007-03-24  Bruno Haible  <bruno@clisp.org>
50394
50395         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50396         Enable the function only if HAVE_INLINE.
50397         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50398         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50399         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50400         Enable the function only if HAVE_INLINE.
50401         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50402         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50403         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50404         Enable the function only if HAVE_INLINE.
50405         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50406         Enable the function only if HAVE_INLINE.
50407         * modules/utf8-ucs4: Update.
50408         * modules/utf8-ucs4-unsafe: Update.
50409         * modules/utf16-ucs4: Update.
50410         * modules/utf16-ucs4-unsafe: Update.
50411         * modules/ucs4-utf8: Update.
50412         * modules/ucs4-utf16: Update.
50413
50414 2007-03-24  Bruno Haible  <bruno@clisp.org>
50415
50416         * lib/utf8-ucs4.h: Remove file.
50417         * lib/utf8-ucs4-unsafe.h: Remove file.
50418         * lib/utf16-ucs4.h: Remove file.
50419         * lib/utf16-ucs4-unsafe.h: Remove file.
50420         * lib/ucs4-utf8.h: Remove file.
50421         * lib/ucs4-utf16.h: Remove file.
50422         * lib/unistr.h: Include their previous contents.
50423         * m4/utf-ucs4.m4: Remove file.
50424         * m4/ucs4-utf.m4: Remove file.
50425         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50426         (Depends-on): Add unistr/base.
50427         (configure.ac): Remove gl_UTF_UCS4.
50428         (Makefile.am): Update.
50429         (Include): Change to unistr.h.
50430         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50431         (Depends-on): Add unistr/base.
50432         (configure.ac): Remove gl_UTF_UCS4.
50433         (Makefile.am): Update.
50434         (Include): Change to unistr.h.
50435         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50436         (Depends-on): Add unistr/base.
50437         (configure.ac): Remove gl_UTF_UCS4.
50438         (Makefile.am): Update.
50439         (Include): Change to unistr.h.
50440         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50441         (Depends-on): Add unistr/base.
50442         (configure.ac): Remove gl_UTF_UCS4.
50443         (Makefile.am): Update.
50444         (Include): Change to unistr.h.
50445         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50446         (Depends-on): Add unistr/base.
50447         (configure.ac): Remove gl_UCS4_UTF.
50448         (Makefile.am): Update.
50449         (Include): Change to unistr.h.
50450         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50451         (Depends-on): Add unistr/base.
50452         (configure.ac): Remove gl_UCS4_UTF.
50453         (Makefile.am): Update.
50454         (Include): Change to unistr.h.
50455         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50456         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50457         utf8-ucs4-unsafe.h.
50458         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50459         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50460         utf16-ucs4-unsafe.h.
50461         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50462         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50463         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50464         * lib/unistr/u8-strchr.c: Likewise.
50465         * lib/unistr/u8-strrchr.c: Likewise.
50466         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50467         * lib/unistr/u16-strchr.c: Likewise.
50468         * lib/unistr/u16-strrchr.c: Likewise.
50469         * lib/striconveh.c: Update.
50470         * lib/linebreak.c: Update.
50471
50472 2007-03-24  Bruno Haible  <bruno@clisp.org>
50473
50474         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50475         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50476
50477 2007-03-22  Bruno Haible  <bruno@clisp.org>
50478
50479         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50480
50481 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50482
50483         * MODULES.html.sh (File system functions): New module write-any-file.
50484         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50485         * m4/write-any-file.m4: New files.
50486
50487 2007-03-23  Eric Blake  <ebb9@byu.net>
50488
50489         * gnulib-tool: Rearrange space-tab sequences, since some editors
50490         like to eat them.
50491
50492 2007-03-23  Eric Blake  <ebb9@byu.net>
50493
50494         * lib/version-etc.c (version_etc_va): Update license wording to
50495         be more concise.  Recommended by Richard Stallman.
50496
50497 2007-03-22  Bruno Haible  <bruno@clisp.org>
50498
50499         * lib/poll.c (MSG_PEEK): New fallback definition.
50500
50501 2007-03-22  Bruno Haible  <bruno@clisp.org>
50502
50503         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50504         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50505         (main): Update.
50506         Fixes a compilation error on BeOS.
50507
50508 2007-03-22  Bruno Haible  <bruno@clisp.org>
50509
50510         * modules/frexpl-tests: New file.
50511         * tests/test-frexpl.c: New file.
50512
50513         * modules/frexpl: New file.
50514         * m4/frexpl.m4: New file.
50515         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50516         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50518         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50519         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50520         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50521
50522 2007-03-22  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/frexpl.c: Share code with lib/frexp.c.
50525         * modules/mathl (Files): Add lib/frexp.c.
50526         (Depends-on): Add isnanl-nolibm.
50527
50528 2007-03-22  Bruno Haible  <bruno@clisp.org>
50529
50530         * modules/printf-frexp (Files): Add m4/frexp.m4.
50531         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50532         only if the found frexp function actually works.
50533
50534 2007-03-22  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/frexp.c: Remove older implementation that uses divisions.
50537
50538 2007-03-21  Bruno Haible  <bruno@clisp.org>
50539
50540         * modules/frexp-tests: New file.
50541         * tests/test-frexp.c: New file.
50542
50543         * modules/frexp: New file.
50544         * lib/frexp.c: New file.
50545         * m4/frexp.m4: New file.
50546         * lib/math_.h (frexp): New declaration.
50547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50548         REPLACE_FREXP.
50549         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50550
50551 2007-03-21  Bruno Haible  <bruno@clisp.org>
50552
50553         * modules/isnanl-tests: New file.
50554         * tests/test-isnanl.c: New file.
50555
50556         * modules/isnanl: New file.
50557         * lib/isnanl.h: New file.
50558         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50559         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50560         gl_FUNC_ISNANL_WORKS.
50561         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50562         New macros.
50563
50564 2007-03-21  Bruno Haible  <bruno@clisp.org>
50565
50566         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50567         lib/isnanl.h.
50568         (Include): Update.
50569         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50570         * lib/vasnprintf.c: Update.
50571         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50572         tests/test-isnanl.h, remove tests/test-isnanl.c.
50573         (Makefile.am): Update.
50574         * tests/test-isnanl-nolibm.c: New file.
50575         * tests/test-isnanl.h: New file.
50576         * tests/test-isnanl.c: Remove file.
50577
50578 2007-03-21  Jim Meyering  <jim@meyering.net>
50579
50580         When trying to open ".", treat ESTALE like EACCES.
50581         * lib/savewd.c (savewd_save): Resort to forking not just upon
50582         failure with EACCES, but also when errno is ESTALE.
50583
50584 2007-03-20  Bruno Haible  <bruno@clisp.org>
50585
50586         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50587         Needed on AIX 5.1. Reported by Matthew Woehlke.
50588
50589 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50590
50591         Suggestions by Bruno Haible:
50592         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50593         our own.
50594         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50595         * modules/acl (Depends-on): Add gettext.
50596
50597 2007-03-19  Bruno Haible  <bruno@clisp.org>
50598
50599         * modules/iconvme: Remove file.
50600         * lib/iconvme.h: Remove file.
50601         * lib/iconvme.c: Remove file.
50602         * m4/iconvme.m4: Remove file.
50603
50604 2007-03-19  Bruno Haible  <bruno@clisp.org>
50605
50606         * doc/relocatable-maint.texi: Break long shell script line.
50607         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50608
50609 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50612         handle file_has_acl.
50613         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50614         * lib/acl.c: Move header inclusions and related macro defns into
50615         lib/acl-internal.h.
50616         (S_ISLNK): Remove defn, since that's now done for us.
50617         (file_has_acl): Move to lib/file-has-acl.c.
50618         Call acl_trivial if available.  This is the crucial part of the fix.
50619         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50620         shared within the library.  Rewrite a bit, partly to make it compatible
50621         with the GNU coding style.
50622         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50623         Remove unnecessary double-quotes.
50624         Don't test for acl_to_text; the build will catch that.
50625         Replace acl_entries if it doesn't exist and it is needed.
50626         Check for -lsec and acl_trivial (as used on Solaris 10).
50627         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50628         lib/file-has-acl.c.
50629         (Depends-on): Add sys_stat, for S_ISLNK.
50630
50631 2007-03-19  Ben Pfaff  <blp@gnu.org>
50632
50633         * doc/gnulib.texi: Fix typos.
50634         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50635
50636 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50637
50638         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50639         If size is zero here, buf must be zero.
50640
50641 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50642
50643         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50644         <bruno@clisp.org>.
50645
50646 2007-03-18  Bruno Haible  <bruno@clisp.org>
50647
50648         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50649         Suggested by Eric Blake.
50650
50651 2007-03-18  Ben Pfaff  <blp@gnu.org>
50652
50653         * doc/relocatable.texi: Recommend using as prefix a directory
50654         that does not exist and will never be created.  Based on
50655         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50656         and others.
50657
50658 2007-03-17  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/fchownat.c: Include lchown.h.
50661
50662 2007-03-17  Bruno Haible  <bruno@clisp.org>
50663
50664         Fix endless loop when the given allocated size was > INT_MAX.
50665         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50666         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50667         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50668         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50669         * lib/sprintf.c (sprintf): Likewise.
50670
50671 2007-03-17  Bruno Haible  <bruno@clisp.org>
50672
50673         * tests/test-argp-2.sh (func_compare): Output a context diff.
50674
50675 2007-03-17  Bruno Haible  <bruno@clisp.org>
50676
50677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50678         locale's decimal-point character.
50679
50680 2007-03-17  Bruno Haible  <bruno@clisp.org>
50681
50682         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50683         before comparing it. Needed because on some platforms (e.g. x86) a
50684         'long double' occupies less bytes than sizeof (long double).
50685
50686 2007-03-17  Bruno Haible  <bruno@clisp.org>
50687
50688         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50689         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50690         * tests/test-getaddrinfo.c (simple): Likewise.
50691         * tests/test-read-file.c (main): Likewise.
50692
50693 2007-03-17  Bruno Haible  <bruno@clisp.org>
50694
50695         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50696
50697 2007-03-17  Bruno Haible  <bruno@clisp.org>
50698
50699         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50700         unused variable.
50701
50702 2007-03-17  Bruno Haible  <bruno@clisp.org>
50703
50704         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50705         * tests/test-c-strncasecmp.c: Likewise.
50706
50707 2007-03-17  Bruno Haible  <bruno@clisp.org>
50708
50709         * modules/stdlib (Depends-on): Add unistd.
50710         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50711         Needed for MacOS X 10.3.
50712
50713 2007-03-17  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50716
50717 2007-03-17  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50720
50721 2007-03-17  Bruno Haible  <bruno@clisp.org>
50722
50723         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50724         to reflect files copied from gnulib (with or without modifications).
50725         Suggested by Jim Meyering.
50726
50727 2007-03-17  Eric Blake  <ebb9@byu.net>
50728
50729         * NEWS: Document stdlib change from 2007-02-18.
50730
50731 2007-03-17  Jim Meyering  <jim@meyering.net>
50732
50733         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50734         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50735         someone uses a name containing shell meta-characters.
50736         Reported by Alfred M. Szmidt.
50737
50738         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50739
50740 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50741
50742         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50743         and copy gettext configuration files only if configure.ac contains
50744         a use of AM_GNU_GETTEXT_VERSION.
50745
50746 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50747
50748         * build-aux/bootstrap (gnulib_name): New variable.
50749         (gnulib_tool_options): Use it.
50750
50751 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50752
50753         * tests/test-des.c: Use new namespace.
50754
50755 2007-03-15  Bruno Haible  <bruno@clisp.org>
50756
50757         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50758         Reported by James Youngman <jay@gnu.org>.
50759
50760 2007-03-15  Bruno Haible  <bruno@clisp.org>
50761
50762         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50763         declared prototype. Needed with cc on OSF/1 5.1.
50764
50765 2007-03-15  Bruno Haible  <bruno@clisp.org>
50766
50767         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50768         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50769         (struct gl_list_implementation): Add dispose_fn argument to the
50770         'create_empty', 'create' methods.
50771         (struct gl_list_impl_base): Add field 'dispose_fn'.
50772         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50773         argument.
50774         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50775         dispose_fn argument.
50776         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50777         dispose_fn on the dropped values.
50778         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50779         dispose_fn argument.
50780         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50781         dropped values.
50782         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50783         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50784         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50785         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50786         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50787         argument.
50788         (gl_tree_list_free): Call dispose_fn on the dropped values.
50789         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50790         the dropped values.
50791         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50792         Add dispose_fn argument.
50793         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50794         Call dispose_fn on the dropped values.
50795         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50796         Add dispose_fn argument.
50797         (gl_sublist_create): Initialize the 'dispose_fn' field.
50798         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50799         * tests/test-array_list.c (main): Update.
50800         * tests/test-carray_list.c (main): Update.
50801         * tests/test-avltree_list.c (main): Update.
50802         * tests/test-rbtree_list.c (main): Update.
50803         * tests/test-avltreehash_list.c (main): Update.
50804         * tests/test-rbtreehash_list.c (main): Update.
50805         * tests/test-linked_list.c (main): Update.
50806         * tests/test-linkedhash_list.c (main): Update.
50807         * tests/test-array_oset.c (main): Update.
50808
50809 2007-03-15  Bruno Haible  <bruno@clisp.org>
50810
50811         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50812         (gl_oset_create_empty): Add dispose_fn argument.
50813         (struct gl_oset_implementation): Add dispose_fn argument to
50814         'create_empty' method.
50815         (struct gl_oset_impl_base): Add dispose_fn field.
50816         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50817         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50818         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50819         values.
50820         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50821         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50822         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50823         dropped value.
50824         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50825         dropped value.
50826         * tests/test-array_oset.c (main): Update.
50827         * tests/test-avltree_oset.c (main): Update.
50828         * tests/test-rbtree_oset.c (main): Update.
50829         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50830
50831 2007-03-13  Bruno Haible  <bruno@clisp.org>
50832
50833         * tests/test-stdbool.c (i): Update after last patch.
50834
50835 2007-03-12  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50838         the iswprint macro. Needed on Solaris 2.5.1.
50839
50840 2007-03-12  Bruno Haible  <bruno@clisp.org>
50841
50842         * tests/test-printf-frexp.c (main): Declare x as volatile.
50843
50844 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50845
50846         * doc/gnulib.texi (Build robot for gnulib): New section.
50847
50848 2007-03-12  Jim Meyering  <jim@meyering.net>
50849
50850         * build-aux/bootstrap: New file.
50851         * build-aux/bootstrap.conf: New file, from coreutils.
50852
50853 2007-03-11  Bruno Haible  <bruno@clisp.org>
50854
50855         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50856
50857 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50858
50859         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50860         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50861         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50862
50863 2007-03-11  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50866         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50867
50868 2007-03-11  Bruno Haible  <bruno@clisp.org>
50869
50870         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50871         formula. Needed for SunPRO C 5.0.
50872
50873 2007-03-11  Bruno Haible  <bruno@clisp.org>
50874
50875         * modules/long-options (Depends-on): Add getopt.
50876
50877 2007-03-11  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/modechange (Depends-on): Add stdbool.
50880
50881 2007-03-11  Bruno Haible  <bruno@clisp.org>
50882
50883         * modules/i-ring (Depends-on): Add stdbool.
50884
50885 2007-03-11  Bruno Haible  <bruno@clisp.org>
50886
50887         * modules/gc-des (Depends-on): Add stdbool.
50888
50889 2007-03-11  Bruno Haible  <bruno@clisp.org>
50890
50891         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50892
50893 2007-03-11  Bruno Haible  <bruno@clisp.org>
50894
50895         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50896
50897 2007-03-11  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50900
50901 2007-03-11  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/vasnprintf.c (sprintf): Undefine.
50904
50905 2007-03-11  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50908         initializers in SunPRO C and Compaq C compilers.
50909
50910 2007-03-11  Bruno Haible  <bruno@clisp.org>
50911
50912         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50913         decrementing code ANSI C compliant.
50914
50915 2007-03-11  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50918         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50919
50920 2007-03-11  Bruno Haible  <bruno@clisp.org>
50921
50922         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50923         <stdbool.h> substitute doesn't pass.
50924
50925 2007-03-11  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50928
50929 2007-03-11  Bruno Haible  <bruno@clisp.org>
50930
50931         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50932         script, for submission to autobuild.josefsson.org.
50933
50934 2007-03-10  Bruno Haible  <bruno@clisp.org>
50935
50936         * modules/canonicalize-lgpl-tests: New file.
50937         * tests/test-canonicalize-lgpl.sh: New file.
50938         * tests/test-canonicalize-lgpl.c: New file.
50939
50940         * modules/c-strcase-tests: New file.
50941         * tests/test-c-strcase.sh: New file.
50942         * tests/test-c-strcasecmp.c: New file.
50943         * tests/test-c-strncasecmp.c: New file.
50944
50945         * modules/atexit-tests: New file.
50946         * tests/test-atexit.sh: New file.
50947         * tests/test-atexit.c: New file.
50948
50949 2007-03-10  Bruno Haible  <bruno@clisp.org>
50950
50951         * tests/test-binary-io.sh: Use temporary filenames that are not so
50952         likely to clash with those of other tests (in a parallel make).
50953         * tests/test-binary-io.c: Likewise.
50954
50955 2007-03-10  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50958         fallback; use #error instead.
50959         Suggested by Simon Josefsson.
50960
50961 2007-03-10  Bruno Haible  <bruno@clisp.org>
50962
50963         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50964         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50965         first and the last.
50966
50967 2007-03-10  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50970
50971 2007-03-10  Bruno Haible  <bruno@clisp.org>
50972
50973         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50974         "make distcheck".
50975         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50976         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50977         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50978
50979 2007-03-10  Bruno Haible  <bruno@clisp.org>
50980
50981         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50982         variable.
50983         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50984         variable.
50985
50986 2007-03-09  Eric Blake  <ebb9@byu.net>
50987         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50988
50989         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50990         types are not being provided by gnulib.
50991         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50992         types are supported.
50993
50994 2007-03-10  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/stdio_.h (__attribute__): New macro.
50997         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50998         vsprintf): Specify __attribute__ __format__ for GCC.
50999         Suggested by Eric Blake.
51000
51001 2007-03-09  Bruno Haible  <bruno@clisp.org>
51002
51003         * modules/printf-posix-tests: New file.
51004         * tests/test-printf-posix.sh: New file.
51005         * tests/test-printf-posix.c: New file.
51006
51007         * modules/printf-posix: New file.
51008         * lib/printf.c: New file.
51009         * m4/printf-posix-rpl.m4: New file.
51010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51011         REPLACE_PRINTF.
51012         * lib/stdio_.h (printf): New declaration.
51013         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51014         ____strfmon____): New macros.
51015         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51016         REPLACE_PRINTF.
51017
51018 2007-03-09  Bruno Haible  <bruno@clisp.org>
51019
51020         * tests/test-vasnprintf-posix2.sh: New file.
51021         * tests/test-vasnprintf-posix2.c: New file.
51022         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51023         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51024         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51025
51026         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51027         a locale dependent decimal point, rather than always '.'.
51028
51029 2007-03-09  Eric Blake  <ebb9@byu.net>
51030
51031         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51032         spite of platforms like Tandem/NSK that define it to -1.
51033
51034 2007-03-08  Bruno Haible  <bruno@clisp.org>
51035
51036         * modules/vprintf-posix-tests: New file.
51037         * tests/test-vprintf-posix.sh: New file.
51038         * tests/test-vprintf-posix.c: New file.
51039         * tests/test-printf-posix.h: New file.
51040
51041         * modules/vprintf-posix: New file.
51042         * lib/vprintf.c: New file.
51043         * m4/vprintf-posix.m4: New file.
51044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51045         REPLACE_VPRINTF.
51046         * lib/stdio_.h (vprintf): New declaration.
51047         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51048         REPLACE_VPRINTF.
51049
51050 2007-03-08  Bruno Haible  <bruno@clisp.org>
51051
51052         * modules/fprintf-posix-tests: New file.
51053         * tests/test-fprintf-posix.sh: New file.
51054         * tests/test-fprintf-posix.c: New file.
51055
51056         * modules/fprintf-posix: New file.
51057         * lib/fprintf.c: New file.
51058         * m4/fprintf-posix.m4: New file.
51059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51060         REPLACE_FPRINTF.
51061         * lib/stdio_.h (fprintf): New declaration.
51062         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51063         REPLACE_FPRINTF.
51064
51065 2007-03-08  Bruno Haible  <bruno@clisp.org>
51066
51067         * modules/vfprintf-posix-tests: New file.
51068         * tests/test-vfprintf-posix.sh: New file.
51069         * tests/test-vfprintf-posix.c: New file.
51070         * tests/test-fprintf-posix.h: New file.
51071         * tests/test-fprintf-posix.out: New file.
51072
51073         * modules/vfprintf-posix: New file.
51074         * lib/vfprintf.c: New file.
51075         * m4/vfprintf-posix.m4: New file.
51076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51077         REPLACE_VFPRINTF.
51078         * lib/stdio_.h (vfprintf): New declaration.
51079         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51080         REPLACE_VFPRINTF.
51081
51082 2007-03-08  Bruno Haible  <bruno@clisp.org>
51083
51084         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51085
51086 2007-03-08  Bruno Haible  <bruno@clisp.org>
51087
51088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51089         instead of 'expr' invocations.
51090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51095         Suggested by Paul Eggert.
51096
51097 2007-03-08  Bruno Haible  <bruno@clisp.org>
51098
51099         * modules/fseterr-tests: New file.
51100         * tests/test-fseterr.c: New file.
51101
51102         * modules/fseterr: New file.
51103         * lib/fseterr.h: New file.
51104         * lib/fseterr.c: New file.
51105
51106 2007-03-08  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51109         * lib/getopt_.h: Likewise.
51110         * lib/mbswidth.h: Likewise.
51111         * lib/setenv.h: Likewise.
51112         * lib/vasnprintf.h: Likewise.
51113         * lib/vasprintf.h: Likewise.
51114         * lib/verror.h: Likewise.
51115         * lib/xsetenv.h: Likewise.
51116         * lib/xvasprintf.h: Likewise.
51117
51118 2007-03-08  Jim Meyering  <jim@meyering.net>
51119
51120         * users.txt: Add parted.
51121
51122         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51123
51124 2007-03-07  Bruno Haible  <bruno@clisp.org>
51125
51126         * m4/printf.m4: Make the shell script snippets copy&pastable.
51127
51128 2007-03-02  Bruno Haible  <bruno@clisp.org>
51129
51130         * lib/netinet_in_.h: New file.
51131         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51132         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51133         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51134         (Depends-on): Add absolute-header.
51135         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51136         into netinet/in.h.
51137
51138 2007-03-03  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/sys_select_.h: New file.
51141         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51142         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51143         * modules/sys_select (Files): Add lib/sys_select_.h.
51144         (Depends-on): Add absolute-header.
51145         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51146         into sys/select.h.
51147
51148 2007-03-02  Bruno Haible  <bruno@clisp.org>
51149
51150         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51151         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51152         values.
51153         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51154         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51155         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51156         * modules/sys_socket (Depends-on): Add absolute-header.
51157         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51158         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51159         (Include): Remove requirement of inclusion of <sys/types.h>.
51160
51161 2007-03-02  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/byteswap_.h (bswap_32): Fix formula.
51164
51165 2007-03-06  Bruno Haible  <bruno@clisp.org>
51166
51167         * modules/sprintf-posix-tests: New file.
51168         * tests/test-sprintf-posix.c: New file.
51169
51170         * modules/sprintf-posix: New file.
51171         * lib/sprintf.c: New file.
51172         * m4/sprintf-posix.m4: New file.
51173         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51174         REPLACE_SPRINTF.
51175         * lib/stdio_.h (sprintf): New declaration.
51176         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51177         REPLACE_SPRINTF.
51178
51179 2007-03-06  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/vsprintf-posix-tests: New file.
51182         * tests/test-vsprintf-posix.c: New file.
51183         * tests/test-sprintf-posix.h: New file.
51184
51185         * modules/vsprintf-posix: New file.
51186         * lib/vsprintf.c: New file.
51187         * m4/vsprintf-posix.m4: New file.
51188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51189         REPLACE_VSPRINTF.
51190         * lib/stdio_.h (vsprintf): New declaration.
51191         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51192         REPLACE_VSPRINTF.
51193
51194 2007-03-06  Bruno Haible  <bruno@clisp.org>
51195
51196         * modules/vsnprintf (Depend-on): Remove minmax.
51197
51198 2007-03-06  Bruno Haible  <bruno@clisp.org>
51199
51200         * modules/snprintf-posix-tests: New file.
51201         * tests/test-snprintf-posix.c: New file.
51202
51203         * modules/snprintf-posix: New file.
51204         * m4/snprintf-posix.m4: New file.
51205         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51206         gl_FUNC_SNPRINTF.
51207         (gl_FUNC_SNPRINTF): Invoke it.
51208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51209         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51210         is set.
51211         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51212
51213 2007-03-06  Bruno Haible  <bruno@clisp.org>
51214
51215         * modules/vsnprintf-posix-tests: New file.
51216         * tests/test-vsnprintf-posix.c: New file.
51217         * tests/test-snprintf-posix.h: New file.
51218
51219         * modules/vsnprintf-posix: New file.
51220         * m4/vsnprintf-posix.m4: New file.
51221         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51222         gl_FUNC_VSNPRINTF.
51223         (gl_FUNC_VSNPRINTF): Invoke it.
51224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51225         * lib/stdio_.h (vsnprintf): Define as a replacement if
51226         REPLACE_VSNPRINTF is set.
51227         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51228
51229 2007-03-06  Bruno Haible  <bruno@clisp.org>
51230
51231         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51232         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51233
51234 2007-03-06  Bruno Haible  <bruno@clisp.org>
51235
51236         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51237         (asinl): Declare also if HAVE_DECL_ASINL is set.
51238         (atanl): Declare also if HAVE_DECL_ATANL is set.
51239         (ceill): Declare also if HAVE_DECL_CEILL is set.
51240         (cosl): Declare also if HAVE_DECL_COSL is set.
51241         (expl): Declare also if HAVE_DECL_EXPL is set.
51242         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51243         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51244         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51245         (logl): Declare also if HAVE_DECL_LOGL is set.
51246         (sinl): Declare also if HAVE_DECL_SINL is set.
51247         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51248         (tanl): Declare also if HAVE_DECL_TANL is set.
51249         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51252         declaration of frexpl, ldexpl.
51253         * modules/printf-frexpl (Depends-on): Add math.
51254         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51255
51256 2007-03-05  Bruno Haible  <bruno@clisp.org>
51257
51258         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51259         frexpl and ldexpl are declared.
51260         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51261
51262 2007-03-05  Bruno Haible  <bruno@clisp.org>
51263
51264         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51265         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51266
51267 2007-03-05  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/stdio_.h: Include <stddef.h>.
51270
51271 2007-03-05  Bruno Haible  <bruno@clisp.org>
51272
51273         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51274
51275 2007-03-05  Bruno Haible  <bruno@clisp.org>
51276
51277         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51278         NetBSD 4, from Ralf Wildenhues.
51279
51280 2007-03-04  Bruno Haible  <bruno@clisp.org>
51281
51282         * lib/vasprintf.h: Update #if logic for the case when the functions
51283         exist but are overridden.
51284
51285 2007-03-04  Bruno Haible  <bruno@clisp.org>
51286
51287         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51288         implementations: glibc-2.4 and MacOS X 10.3.
51289         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51290         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51291         * tests/test-vasprintf-posix.c (test_function): Likewise.
51292
51293 2007-03-04  Bruno Haible  <bruno@clisp.org>
51294
51295         * modules/vasprintf-posix-tests: New file.
51296         * tests/test-vasprintf-posix.c: New file.
51297
51298         * modules/vasprintf-posix: New file.
51299         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51300         defined.
51301         * m4/vasprintf-posix.m4: New file.
51302         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51303         gl_FUNC_VASPRINTF.
51304         (gl_FUNC_VASPRINTF): Invoke it.
51305         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51306         here.
51307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51308
51309 2007-03-04  Bruno Haible  <bruno@clisp.org>
51310
51311         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51312         REPLACE_GETTIMEOFDAY.
51313         * modules/sys_time (Makefile.am): Likewise.
51314         * m4/sys_time_h.m4: Likewise.
51315         * m4/gettimeofday.m4: Likewise.
51316
51317 2007-03-04  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/vasnprintf-posix-tests: New file.
51320         * tests/test-vasnprintf-posix.c: New file.
51321
51322         * modules/vasnprintf-posix: New file.
51323         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51324         printf-frexpl.h.
51325         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51326         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51327         REPLACE_VASNPRINTF is defined.
51328         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51329         gl_FUNC_VASNPRINTF.
51330         (gl_FUNC_VASNPRINTF): Invoke it.
51331         * m4/vasnprintf-posix.m4: New file.
51332         * m4/printf.m4: New file.
51333
51334 2007-03-04  Bruno Haible  <bruno@clisp.org>
51335
51336         Compile progreloc.c only if --enable-relocatable is specified.
51337         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51338         if --enable-relocatable was specified.
51339         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51340         lib_SOURCES.
51341
51342 2007-03-04  Jim Meyering  <jim@meyering.net>
51343
51344         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51345         Use it consistently, rather than enumerating errno constants.
51346
51347 2007-03-04  Bruno Haible  <bruno@clisp.org>
51348
51349         * modules/xvasprintf-tests: New file.
51350         * tests/test-xvasprintf.c: New file.
51351
51352         * modules/vasprintf-tests: New file.
51353         * tests/test-vasprintf.c: New file.
51354
51355         * modules/vasnprintf-tests: New file.
51356         * tests/test-vasnprintf.c: New file.
51357
51358         * modules/vsnprintf-tests: New file.
51359         * tests/test-vsnprintf.c: New file.
51360
51361         * modules/snprintf-tests: New file.
51362         * tests/test-snprintf.c: New file.
51363
51364 2007-03-04  Bruno Haible  <bruno@clisp.org>
51365
51366         Compile relocatable.c only if --enable-relocatable is specified.
51367         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51368         gl_RELOCATABLE_LIBRARY.
51369         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51370         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51371         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51372         gl_RELOCATABLE_LIBRARY.
51373         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51374         (Makefile.am): Remove lib_SOURCES.
51375         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51376         gl_RELOCATABLE_LIBRARY.
51377         (Makefile.am): Remove lib_SOURCES.
51378         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51379         always.
51380         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51381         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51382
51383 2007-03-04  Bruno Haible  <bruno@clisp.org>
51384
51385         * modules/argmatch-tests: New file.
51386         * tests/test-argmatch.c: New file.
51387
51388         * tests/test-allocsa.c (main): Halve the number of loop runs.
51389
51390         * modules/alloca-opt-tests: New file.
51391         * tests/test-alloca-opt.c: New file.
51392
51393 2007-03-04  Jim Meyering  <jim@meyering.net>
51394
51395         Work around difference between Linux ACLs and Solaris 10 ZFS.
51396         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51397         for EINVAL.
51398
51399 2007-03-03  Bruno Haible  <bruno@clisp.org>
51400
51401         * modules/relocatable-prog (Depends-on): Add back progreloc's
51402         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51403
51404 2007-03-03  Bruno Haible  <bruno@clisp.org>
51405
51406         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51407         * modules/relocatable-lib: New file.
51408
51409 2007-03-03  Bruno Haible  <bruno@clisp.org>
51410
51411         * modules/relocatable-prog: Renamed from modules/relocatable.
51412         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51413
51414 2007-03-03  Bruno Haible  <bruno@clisp.org>
51415
51416         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51417         m4/relocatable-lib.m4.
51418         (Depends-on): Remove 'relocatable'.
51419         (configure.ac): Add gl_RELOCATABLE_NOP.
51420
51421 2007-03-03  Bruno Haible  <bruno@clisp.org>
51422
51423         * modules/relocatable-prog-wrapper: New file.
51424         * modules/relocatable (Depends-on): Add it. Remove all other
51425         dependencies except progname.
51426         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51427
51428         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51429         (gl_FUNC_STRERROR): Nop.
51430         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51431
51432         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51433         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51434
51435         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51436         (gl_FUNC_READLINK): Update.
51437
51438         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51439
51440 2007-03-03  Bruno Haible  <bruno@clisp.org>
51441
51442         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51443         * modules/xreadlink (Depends-on): Add unistd.
51444         * modules/xreadlink-with-size (Depends-on): Likewise.
51445
51446 2007-03-03  Bruno Haible  <bruno@clisp.org>
51447
51448         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51449         extracted from gt_FUNC_SETENV.
51450         (gt_FUNC_SETENV): Remove macro.
51451         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51452         remove gt_FUNC_SETENV.
51453
51454 2007-03-03  Bruno Haible  <bruno@clisp.org>
51455
51456         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51457         ENABLE_RELOCATABLE here.
51458         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51459
51460 2007-03-03  Bruno Haible  <bruno@clisp.org>
51461
51462         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51463         * tests/test-rbtreehash_list.c: Include progname.h.
51464         (main): Call set_program_name.
51465
51466         * modules/rbtree-oset-tests (Depends-on): Add progname.
51467         * tests/test-rbtree_oset.c: Include progname.h.
51468         (main): Call set_program_name.
51469
51470         * modules/rbtree-list-tests (Depends-on): Add progname.
51471         * tests/test-rbtree_list.c: Include progname.h.
51472         (main): Call set_program_name.
51473
51474         * modules/linked-list-tests (Depends-on): Add progname.
51475         * tests/test-linked_list.c: Include progname.h.
51476         (main): Call set_program_name.
51477
51478 2007-03-03  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51481         All uses of __restrict changed to _Restrict_.
51482         * lib/glob_.h (__restrict): Remove macro.
51483
51484 2007-03-02  Bruno Haible  <bruno@clisp.org>
51485
51486         * modules/gettext (configure.ac): Require gettext infrastructure
51487         from version 0.16.1.
51488
51489 2007-03-02  Bruno Haible  <bruno@clisp.org>
51490
51491         * modules/linkedhash-list-tests (Depends-on): Add progname.
51492         * tests/test-linkedhash_list.c: Include progname.h.
51493         (main): Call set_program_name.
51494
51495         * modules/carray-list-tests (Depends-on): Add progname.
51496         * tests/test-carray_list.c: Include progname.h.
51497         (main): Call set_program_name.
51498
51499         * modules/avltreehash-list-tests (Depends-on): Add progname.
51500         * tests/test-avltreehash_list.c: Include progname.h.
51501         (main): Call set_program_name.
51502
51503         * modules/avltree-oset-tests (Depends-on): Add progname.
51504         * tests/test-avltree_oset.c: Include progname.h.
51505         (main): Call set_program_name.
51506
51507         * modules/avltree-list-tests (Depends-on): Add progname.
51508         * tests/test-avltree_list.c: Include progname.h.
51509         (main): Call set_program_name.
51510
51511         * modules/array-oset-tests (Depends-on): Add progname.
51512         * tests/test-array_oset.c: Include progname.h.
51513         (main): Call set_program_name.
51514
51515         * modules/array-list-tests (Depends-on): Add progname.
51516         * tests/test-array_list.c: Include progname.h.
51517         (main): Call set_program_name.
51518
51519         * modules/argp-tests (Depends-on): Add progname.
51520         * tests/test-argp.c: Include argp.h first. Include progname.h.
51521         (main): Call set_program_name.
51522
51523 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51524
51525         * doc/gnulib-tool.texi (Initial import): Reword description of
51526         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51527         limited effect even if defined after the first system include.
51528
51529 2007-03-01  Bruno Haible  <bruno@clisp.org>
51530
51531         * build-aux/config.libpath: Update to libtool-1.5.22.
51532         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51533
51534 2007-03-01  Bruno Haible  <bruno@clisp.org>
51535
51536         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51537         foo_CFLAGS.
51538         Reported by Ralf Wildenhues.
51539
51540 2007-03-01  Bruno Haible  <bruno@clisp.org>
51541
51542         * build-aux/install-reloc: Remove object files left over by some
51543         compilers.
51544         Reported by Ralf Wildenhues.
51545
51546 2007-03-01  Bruno Haible  <bruno@clisp.org>
51547
51548         * build-aux/install-reloc: Break long lines.
51549
51550 2007-03-01  Bruno Haible  <bruno@clisp.org>
51551
51552         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51553         Reported by Ralf Wildenhues.
51554
51555 2007-03-01  Bruno Haible  <bruno@clisp.org>
51556
51557         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51558         include ordering constraints.
51559
51560 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51561
51562         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51564         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51565         as another example.
51566         * lib/time_.h: Fix misspelling.
51567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51568         Require gl_HEADER_TIME_H_DEFAULTS.
51569         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51570         * m4/time_r.m4 (gl_TIME_R): Likewise.
51571         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51572
51573 2007-03-01  Bruno Haible  <bruno@clisp.org>
51574
51575         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51576         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51577
51578 2007-03-01  Jim Meyering  <jim@meyering.net>
51579
51580         * modules/xreadlink (Maintainer): Add my name.
51581         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51582
51583 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51584             Bruno Haible  <bruno@clisp.org>
51585
51586         * build-aux/install-reloc: Compile also c-ctype.c.
51587         * build-aux/relocatable.sh.in: New file.
51588         * doc/relocatable.texi: New file.
51589         * doc/relocatable-maint.texi: New file.
51590         * doc/gnulib.texi: Include relocatable-maint.texi.
51591         * lib/progreloc.c: Include unistd.h unconditionally.
51592         * lib/relocwrapper.c: Include unistd.h unconditionally.
51593         Include c-ctype.h.
51594         (add_dotbin): Use c_tolower.
51595         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51596         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51597         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51598         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51599         to m4/relocatable-lib.m4.
51600         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51601         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51602         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51603         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51604         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51605         * modules/relocatable: New file.
51606         * modules/relocatable-lib: New file.
51607         * modules/relocatable-script: New file.
51608
51609 2007-02-28  Bruno Haible  <bruno@clisp.org>
51610
51611         Import --enable-relocatable infrastructure.
51612         * build-aux/config.libpath: New file, from GNU gettext.
51613         * build-aux/install-reloc: New file, from GNU gettext.
51614         * build-aux/reloc-ldflags: New file, from GNU gettext.
51615         * lib/relocatable.h: New file, from GNU gettext.
51616         * lib/relocatable.c: New file, from GNU gettext.
51617         * lib/relocwrapper.c: New file, from GNU gettext.
51618         * m4/relocatable.m4: New file, from GNU gettext.
51619
51620 2007-02-28  Bruno Haible  <bruno@clisp.org>
51621
51622         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51623
51624         * modules/xreadlink: New file, from GNU gettext with modifications.
51625         * lib/xreadlink.c: New file, from GNU gettext.
51626         * lib/xreadlink.h: Add comments.
51627         (xreadlink): New declaration.
51628
51629         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51630         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51631         lib/xreadlink-with-size.c.
51632         (configure.ac): Remove gl_XREADLINK invocation.
51633         (Makefile.am): Augment lib_SOURCES.
51634         * m4/xreadlink.m4: Remove file.
51635         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51636         (xreadlink_with_size): Renamed from xreadink.
51637         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51638         * modules/canonicalize (Depends-on): Replace xreadlink with
51639         xreadlink-with-size.
51640         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51641
51642 2007-02-25  Jim Meyering  <jim@meyering.net>
51643
51644         * build-aux/announce-gen: When complaining about excess arguments,
51645         list them.
51646
51647 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51648
51649         * README: Document signed integer overflow situation more
51650         accurately.
51651
51652 2007-02-25  Bruno Haible  <bruno@clisp.org>
51653
51654         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51655         'a' or 'A' conversion.
51656
51657 2007-02-25  Bruno Haible  <bruno@clisp.org>
51658
51659         * modules/filename: Renamed from modules/pathname.
51660         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51661         lib/concatpath.c with lib/concat-filename.c.
51662         (Makefile.am): Update.
51663         (Include): Replace pathname.h with filename.h.
51664         * lib/filename.h: Renamed from lib/pathname.h.
51665         (concatenated_filename): Renamed from concatenated_pathname.
51666         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51667         (concatenated_filename): Renamed from concatenated_pathname.
51668         * lib/findprog.c: Include filename.h instead of pathname.h.
51669         (find_in_path): Update.
51670         * lib/javacomp.c: Include filename.h instead of pathname.h.
51671         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51672         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51673         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51674         is_oldgcj_14_13_usable, is_javac_usable): Update.
51675         * lib/javaexec.c: Include filename.h instead of pathname.h.
51676         (execute_java_class): Update.
51677         * modules/findprog: Update.
51678         * modules/javacomp: Update.
51679         * modules/javaexec: Update.
51680         * MODULES.html.sh (File system functions): Add 'filename', remove
51681         'pathname'.
51682
51683 2007-02-25  Bruno Haible  <bruno@clisp.org>
51684
51685         * modules/printf-frexpl-tests: New file.
51686         * tests/test-printf-frexpl.c: New file.
51687
51688         * modules/printf-frexpl: New file.
51689         * lib/printf-frexpl.h: New file.
51690         * lib/printf-frexpl.c: New file.
51691         * m4/printf-frexpl.m4: New file.
51692
51693 2007-02-25  Bruno Haible  <bruno@clisp.org>
51694
51695         * modules/printf-frexp-tests: New file.
51696         * tests/test-printf-frexp.c: New file.
51697
51698         * modules/printf-frexp: New file.
51699         * lib/printf-frexp.h: New file.
51700         * lib/printf-frexp.c: New file.
51701         * m4/printf-frexp.m4: New file.
51702
51703 2007-02-25  Bruno Haible  <bruno@clisp.org>
51704
51705         Assume automake >= 1.10 for the tests.
51706         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51707         * modules/arctwo-tests: Likewise.
51708         * modules/argp-tests: Likewise.
51709         * modules/avltree-list-tests: Likewise.
51710         * modules/avltree-oset-tests: Likewise.
51711         * modules/avltreehash-list-tests: Likewise.
51712         * modules/carray-list-tests: Likewise.
51713         * modules/crc-tests: Likewise.
51714         * modules/des-tests: Likewise.
51715         * modules/gc-arcfour-tests: Likewise.
51716         * modules/gc-arctwo-tests: Likewise.
51717         * modules/gc-des-tests: Likewise.
51718         * modules/gc-hmac-md5-tests: Likewise.
51719         * modules/gc-hmac-sha1-tests: Likewise.
51720         * modules/gc-md2-tests: Likewise.
51721         * modules/gc-md4-tests: Likewise.
51722         * modules/gc-md5-tests: Likewise.
51723         * modules/gc-pbkdf2-sha1-tests: Likewise.
51724         * modules/gc-rijndael-tests: Likewise.
51725         * modules/gc-sha1-tests: Likewise.
51726         * modules/gc-tests: Likewise.
51727         * modules/getaddrinfo-tests: Likewise.
51728         * modules/hmac-md5-tests: Likewise.
51729         * modules/hmac-sha1-tests: Likewise.
51730         * modules/linked-list-tests: Likewise.
51731         * modules/linkedhash-list-tests: Likewise.
51732         * modules/lock-tests: Likewise.
51733         * modules/md2-tests: Likewise.
51734         * modules/md4-tests: Likewise.
51735         * modules/md5-tests: Likewise.
51736         * modules/rbtree-list-tests: Likewise.
51737         * modules/rbtree-oset-tests: Likewise.
51738         * modules/rbtreehash-list-tests: Likewise.
51739         * modules/read-file-tests: Likewise.
51740         * modules/rijndael-tests: Likewise.
51741         * modules/stdint-tests: Likewise.
51742         * modules/tls-tests: Likewise.
51743
51744 2007-02-24  Bruno Haible  <bruno@clisp.org>
51745
51746         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51747         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51748         function; instead check whether isnan with a double argument links.
51749         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51750         function; instead check whether isnan with a 'long double' argument
51751         links.
51752         Reported by Eric Blake <ebb9@byu.net>.
51753
51754 2007-02-24  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51757         defined.
51758         * lib/isnanl.c: Remove all code. Just include isnan.c.
51759         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51760
51761 2007-02-25  Jim Meyering  <jim@meyering.net>
51762
51763         Avoid conflicting types for 'unsetenv' on FreeBSD.
51764         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51765         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51766         in stdlib.h.
51767
51768 2007-02-24  Bruno Haible  <bruno@clisp.org>
51769
51770         * modules/isnanl-nolibm-tests: New file.
51771         * tests/test-isnanl.c: New file.
51772
51773         * modules/isnanl-nolibm: New file.
51774         * lib/isnanl.h: New file.
51775         * lib/isnanl.c: New file.
51776         * m4/isnanl.m4: New file.
51777
51778 2007-02-24  Bruno Haible  <bruno@clisp.org>
51779
51780         * modules/isnan-nolibm-tests: New file.
51781         * tests/test-isnan.c: New file.
51782
51783         * modules/isnan-nolibm: New file.
51784         * lib/isnan.h: New file.
51785         * lib/isnan.c: New file.
51786         * m4/isnan.m4: New file.
51787
51788 2007-02-24  Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51791         assume that an exponent fits in 20 bits.
51792
51793 2007-02-24  Jim Meyering  <jim@meyering.net>
51794
51795         * m4/regex.m4: Update the description of the configure-time option,
51796         --without-included-regex, to state accurately what the defaults are,
51797         and perhaps to give people an idea why using this option is risky.
51798
51799 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51800
51801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51802         loops on small arguments.  This attempts to avoid the problem
51803         Bruno Haible reported for AIX 4.3.2 in
51804         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51805
51806 2007-02-23  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51809         Needed for help2man.
51810
51811 2007-02-23  Karl Berry  <karl@gnu.org>
51812
51813         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51814         exists, foo.h should be cvs-ignored, not committed.
51815
51816 2007-02-23  Eric Blake  <ebb9@byu.net>
51817
51818         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51819         * lib/stat-time.h (includes): Likewise.
51820         * lib/utimecmp.c (includes): Likewise.
51821         * lib/utimens.h (includes): Likewise.
51822         * lib/getdate.y (includes): Also include "timespec.h" for use
51823         internal to the module.
51824         * modules/utimens (Depends-on): Revert yesterday's patch.
51825         * modules/nanosleep (Depends-on): Add missing dependency.
51826
51827 2007-02-22  Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/glob.c: Don't include getlogin_r.h.
51830
51831 2007-02-22  Jim Meyering  <jim@meyering.net>
51832
51833         * modules/utimens (Depends-on): Add timespec, required for
51834         utimens.h's inclusion of timespec.h.
51835
51836 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51837
51838         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51839         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51840         Schwab in
51841         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51842         I'll try to think of a better way to fix the Solaris problem.
51843
51844         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51845         like glibc; on Solaris 10, it fails with errno == EINVAL.
51846         POSIX says the behavior is unspecified if the first argument is NULL,
51847         so play it safe and never pass NULL to the system getcwd.
51848
51849 2007-02-21  Jim Meyering  <jim@meyering.net>
51850
51851         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51852         of gettimeofday.  It would conflict with the one now always
51853         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51854         an IRIX 6.5 build failure.
51855
51856 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         Minor fixups to port to Solaris 10 with Sun C 5.8.
51859         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51860         * modules/getcwd (Depends-on): Add dirfd.
51861         * lib/putenv.c (putenv): #undef it.
51862         (rpl_putenv): New decl.
51863         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51864
51865 2007-02-20  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/stdio-tests: New file.
51868         * tests/test-stdio.c: New file.
51869
51870         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51871         (Depends-on): Add stdio.
51872         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51873         (Include): Use <stdio.h> instead of vsnprintf.h.
51874         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51875         HAVE_DECL_VSNPRINTF.
51876         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51877
51878         * modules/snprintf (Files): Remove lib/snprintf.h.
51879         (Depends-on): Add stdio.
51880         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51881         (Include): Use <stdio.h> instead of snprintf.h.
51882         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51883         HAVE_DECL_SNPRINTF.
51884         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51885         * lib/getaddrinfo.c: Likewise.
51886
51887         * modules/stdio: New file.
51888         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51889         * lib/snprintf.h: Remove file.
51890         * lib/vsnprintf.h: Remove file.
51891         * lib/.cppi-disable: Remove snprintf.h.
51892         * m4/stdio_h.m4: New file.
51893         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51894
51895 2007-02-20  Jim Meyering  <jim@meyering.net>
51896
51897         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51898         used by e.g., mingw.  From Bruno Haible.
51899
51900 2007-02-19  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51903         warnings.
51904         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51905
51906 2007-02-19  Bruno Haible  <bruno@clisp.org>
51907
51908         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51909         from mingw users.
51910
51911 2007-02-19  Bruno Haible  <bruno@clisp.org>
51912
51913         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51914         warnings.
51915         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51916
51917 2007-02-19  Jim Meyering  <jim@meyering.net>
51918
51919         Don't use FD after a successful "fdopendir (fd)".
51920         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51921         Reset it by calling dirfd on the just-obtained DIR*.
51922
51923         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51924         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51925
51926 2007-02-18  Bruno Haible  <bruno@clisp.org>
51927
51928         * lib/readlink.c: Include <unistd.h>.
51929         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51930         HAVE_READLINK.
51931         * modules/readlink (Depends-on): Add unistd.
51932         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51933         (Include): Add <unistd.h>.
51934
51935         * lib/getlogin_r.h: Remove file.
51936         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51937         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51938         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51939         HAVE_DECL_GETLOGIN_R.
51940         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51941         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51942         (Include): Use <unistd.h> instead of getlogin_r.h.
51943
51944         * lib/getcwd.h: Remove file.
51945         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51946         * lib/xgetcwd.c: Likewise.
51947         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51948         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51949         * modules/getcwd (Files): Remove lib/getcwd.h.
51950         (Depends-on): Add unistd.
51951         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51952         (Include): Use <unistd.h> instad of getcwd.h.
51953
51954         * lib/ftruncate.c: Include <unistd.h> first.
51955         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51956         Set HAVE_FTRUNCATE.
51957         * modules/ftruncate (Depends-on): Add unistd.
51958         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51959
51960         * lib/fchdir.c: Include <unistd.h> first.
51961         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51963         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51964         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51965         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51966
51967         * lib/dup2.c: Include <unistd.h> first.
51968         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51969         HAVE_DUP2.
51970         * modules/dup2 (Depends-on): Add unistd.
51971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51972
51973         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51974         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51975         REPLACE_CHOWN. Don't define chown as a macro here.
51976         * modules/chown (Depends-on): Add unistd.
51977         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51978
51979         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51980         Add definition for GL_LINK_WARNING.
51981         (chown, dup2): New declarations.
51982         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51983         link warning.
51984         (ftruncate): New declaration.
51985         (getcwd): New declaration, taken from old getcwd.h.
51986         (getlogin_r): New declaration, taken from old getlogin_r.h.
51987         (readlink): New declaration.
51988         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51989         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51990         (gl_PREREQ_UNISTD): Remove macro.
51991         (gl_UNISTD_MODULE_INDICATOR): New macro.
51992         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51993         many new variables. Don't set UNISTD_H.
51994         * modules/unistd (Description): Change.
51995         (Depends-on): Add link-warning.
51996         (configure.ac): Update.
51997         (Makefile.am): Create unistd.h always. Substitute many new variables
51998         into it.
51999
52000 2007-02-18  Bruno Haible  <bruno@clisp.org>
52001
52002         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52003         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52004         HAVE_GETSUBOPT.
52005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52006         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52007         * lib/getsubopt.h: Remove file.
52008         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52009         (Depends-on): Add stdlib.
52010         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52011         (Includes): Use <stdlib.h> instead of getsubopt.h.
52012         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52013         Set HAVE_GETSUBOPT.
52014         * lib/getsubopt.c: Don't include getsubopt.h.
52015
52016 2007-02-18  Bruno Haible  <bruno@clisp.org>
52017
52018         * modules/fchdir (Depends-on): Add dup2.
52019
52020 2007-02-18  Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/stdlib_.h: Handle glibc's special invocation convention
52023         specially.
52024
52025 2007-02-18  Bruno Haible  <bruno@clisp.org>
52026
52027         * modules/stdlib-tests: New file.
52028         * tests/test-stdlib.c: New file.
52029
52030         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52031         (Depends-on): Add stdlib.
52032         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52033         (Includes): Use <stdlib.h> instead of mkstemp.h.
52034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52035         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52036         * lib/mkstemp.c: Don't include mkstemp.h.
52037         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52038         * lib/stdlib--.h: Don't include mkstemp.h.
52039
52040         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52041         (Depends-on): Add stdlib.
52042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52043         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52044         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52045         HAVE_MKDTEMP.
52046         * lib/mkdtemp.c: Don't include mkdtemp.h.
52047         * lib/clean-temp.c: Don't include mkdtemp.h.
52048
52049         * modules/exit (Files): Remove lib/exit.h.
52050         (Depends-on): Add stdlib.
52051         (Makefile.am): Remove lib_SOURCES.
52052         (Include): Use <stdlib.h> instead of exit.h.
52053         * lib/argmatch.c: Don't include exit.h.
52054         * lib/execute.c: Likewise.
52055         * lib/pagealign_alloc.c: Likewise.
52056         * lib/pipe.c: Likewise.
52057         * lib/wait-process.c: Likewise.
52058         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52059         * lib/exitfail.c: Likewise.
52060         * lib/savewd.c: Likewise.
52061         * lib/xsetenv.c: Likewise.
52062
52063         * modules/stdlib: New file.
52064         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52065         and extra comments about mkstemp().
52066         * lib/exit.h: Remove file.
52067         * lib/mkdtemp.h: Remove file.
52068         * lib/mkstemp.h: Remove file.
52069         * m4/stdlib_h.m4: New file.
52070         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52071
52072 2007-02-18  Bruno Haible  <bruno@clisp.org>
52073
52074         * modules/math-tests: New file.
52075         * tests/test-math.c: New file.
52076
52077         * modules/math: New file.
52078         * modules/mathl (Files): Remove lib/mathl.h.
52079         (Depends-on): Add math.
52080         (Makefile.am): Don't mention mathl.h.
52081         (Include): Use <math.h> instead of mathl.h.
52082         * lib/math_.h: New file.
52083         * lib/mathl.h: Remove file.
52084         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52085         mathl.h.
52086         * lib/asinl.c: Likewise.
52087         * lib/atanl.c: Likewise.
52088         * lib/ceill.c: Likewise.
52089         * lib/cosl.c: Likewise.
52090         * lib/expl.c: Likewise.
52091         * lib/floorl.c: Likewise.
52092         * lib/frexpl.c: Likewise.
52093         * lib/ldexpl.c: Likewise.
52094         * lib/logl.c: Likewise.
52095         * lib/sincosl.c: Likewise.
52096         * lib/sinl.c: Likewise.
52097         * lib/sqrtl.c: Likewise.
52098         * lib/tanl.c: Likewise.
52099         * lib/trigl.c: Likewise.
52100         * m4/math_h.m4: New file.
52101         * MODULES.html.sh (Mathematics): Add math.
52102
52103 2007-02-17  Bruno Haible  <bruno@clisp.org>
52104
52105         * modules/wctype-tests: New file.
52106         * tests/test-wctype.c: New file.
52107
52108         * modules/wchar-tests: New file.
52109         * tests/test-wchar.c: New file.
52110
52111         * modules/unistd-tests: New file.
52112         * tests/test-unistd.c: New file.
52113
52114         * modules/time-tests: New file.
52115         * tests/test-time.c: New file.
52116
52117         * modules/sysexits-tests: New file.
52118         * tests/test-sysexits.c: New file.
52119
52120         * modules/sys_time-tests: New file.
52121         * tests/test-sys_time.c: New file.
52122
52123         * modules/sys_stat-tests: New file.
52124         * tests/test-sys_stat.c: New file.
52125
52126         * modules/sys_socket-tests: New file.
52127         * tests/test-sys_socket.c: New file.
52128
52129         * modules/sys_select-tests: New file.
52130         * tests/test-sys_select.c: New file.
52131
52132         * modules/string-tests: New file.
52133         * tests/test-string.c: New file.
52134
52135         * modules/stdbool-tests: New file.
52136         * tests/test-stdbool.c: New file.
52137
52138         * modules/netinet_in-tests: New file.
52139         * tests/test-netinet_in.c: New file.
52140
52141         * modules/inttypes-tests: New file.
52142         * tests/test-inttypes.c: New file.
52143
52144         * modules/fcntl-tests: New file.
52145         * tests/test-fcntl.c: New file.
52146
52147         * modules/byteswap-tests: New file.
52148         * tests/test-byteswap.c: New file.
52149
52150         * modules/arpa_inet-tests: New file.
52151         * tests/test-arpa_inet.c: New file.
52152
52153 2007-02-17  Bruno Haible  <bruno@clisp.org>
52154
52155         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52156         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52157         if the corresponding module is not enabled. Emit link warnings if
52158         the function is used nevertheless.
52159         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52160         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52161         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52162         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52163         * modules/inttypes (Depends-on): Add link-warning.
52164         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52165         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52166         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52167         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52168         * modules/imaxdiv (configure.ac): Likewise.
52169         * modules/strtoimax (configure.ac): Likewise.
52170         * modules/strtoumax (configure.ac): Likewise.
52171
52172 2007-02-17  Bruno Haible  <bruno@clisp.org>
52173
52174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52175         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52176         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52177         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52178
52179 2007-02-17  Bruno Haible  <bruno@clisp.org>
52180
52181         * modules/link-warning: New file.
52182         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52183         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52184         * modules/string (Depends-on): Add link-warning.
52185         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52186         string.h.
52187         * MODULES.html.sh (Support for building libraries and executables): Add
52188         link-warning.
52189
52190 2007-02-17  Bruno Haible  <bruno@clisp.org>
52191
52192         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52193         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52194         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52195         long lines.
52196
52197 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52198             Bruno Haible  <bruno@clisp.org>
52199
52200         * modules/tmpfile: New file.
52201         * lib/tmpfile.c: New file.
52202         * m4/tmpfile.m4: New file.
52203         * MODULES.html.sh (func_all_modules): New section "Input/output".
52204
52205 2007-02-15  Bruno Haible  <bruno@clisp.org>
52206
52207         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52208         (supports_delete_on_close): New function.
52209         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52210
52211 2007-02-14  Bruno Haible  <bruno@clisp.org>
52212
52213         * modules/mbspcasecmp-tests: New file.
52214         * tests/test-mbspcasecmp.sh: New file.
52215         * tests/test-mbspcasecmp.c: New file.
52216
52217         New module mbspcasecmp.
52218         * modules/mbspcasecmp: New file.
52219         * lib/mbspcasecmp.c: New file.
52220         * lib/string_.h (strncasecmp): Change warning message.
52221         (mbspcasecmp): New declaration.
52222         * m4/mbspcasecmp.m4: New file.
52223         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52224         GNULIB_MBSPCASECMP.
52225         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52226         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52227
52228 2007-02-14  Bruno Haible  <bruno@clisp.org>
52229
52230         * modules/mbsncasecmp-tests: New file.
52231         * tests/test-mbsncasecmp.sh: New file.
52232         * tests/test-mbsncasecmp.c: New file.
52233
52234         New module mbsncasecmp.
52235         * modules/mbsncasecmp: New file.
52236         * lib/mbsncasecmp.c: New file.
52237         * lib/string_.h (mbsncasecmp): New declaration.
52238         * m4/mbsncasecmp.m4: New file.
52239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52240         GNULIB_MBSNCASECMP.
52241         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52242         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52243
52244 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52245
52246         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52247         Verify that it doesn't overlap with our flags.
52248         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52249         do not have the desired effect in multibyte locales; instead, use
52250         mbscasecmp.
52251         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52252         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52253         we don't require GNU fnmatch ourselves (if our users require it, they
52254         should do so explicitly).
52255
52256         Fix regex code so it doesn't rely on strcasecmp.
52257         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52258         Otherwise, include gnulib's langinfo.h.
52259         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52260         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52261         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52262         * modules/regex (FILES): Remove m4/codeset.m4.
52263         (Depends-on): Add localcharset.  Remove strcase.
52264
52265 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52266
52267         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52268         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52269
52270 2007-02-13  Bruno Haible  <bruno@clisp.org>
52271
52272         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52274
52275 2007-02-12  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52278         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52279         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52280         time warning rather than a link error.
52281
52282 2007-02-12  Bruno Haible  <bruno@clisp.org>
52283
52284         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52285         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52287
52288 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52291         args, not 2.
52292
52293 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52294
52295         New module 'time', so that apps can include <time.h> as per
52296         POSIX and GNU instead of separate include files like time_r.h
52297         and timegm.h.  This implementation tries out a simpler approach
52298         for replacing decls in standard include files (as compared to
52299         the string module), somewhat as an experiment.
52300
52301         * config/srclist.txt: Comment out mktime.c for now.
52302         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52303         since it doesn't apply any more.  Use generic wording instead.
52304         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52305         'time'.
52306         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52307         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52308         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52309         Don't include <sys/types.h>; no longer needed since we assume C89.
52310         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52311         * lib/strftime.c: Likewise.
52312         * lib/time_r.c: Likewise.
52313         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52314         * lib/nanosleep.c: Include <time.h> first, to check interface.
52315         * lib/strptime.c: Likewise.
52316         * lib/time_r.c: Likewise.
52317         * lib/timegm.c: Likewise.
52318         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52319         needed.
52320         * lib/timegm.c: Don't include timegm.h; no longer needed.
52321         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52322         time.h now handles any problems in that area.
52323         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52324         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52325         that time.h defines struct timespec.
52326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52327         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52328         handles that.
52329         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52330         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52331         needed.  Set REPLACE_LOCALTIME.
52332         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52333         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52334         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52335         nanosleep; time_h.m4 now does that.  Don't require
52336         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52337         module handles this now.
52338         * modules/getdate (Depends-on): Remove timespec.  Add time.
52339         * modules/nanosleep (Depends-on): Likewise.
52340         * modules/stat-time (Depends-on): Likewise.
52341         * modules/nanosleep (Include): Include time.h, not timespec.h.
52342         * modules/strptime (Files): Remove lib/strptime.h.
52343         (Depends-on): Add extensions, time.
52344         (Include): Include time.h, not strptime.h.
52345         * modules/time_r (Files): Remove lib/time_r.h.
52346         (Depends-on): Add time.
52347         (Include): Include time.h, not time_r.h.
52348         * modules/timegm: Likewise.
52349         * modules/timespec (Description): Now does timespec-related decls
52350         of our own, instead of struct timespec itself.
52351         (Depends-on): Add time; remove extensions.
52352         (Maintainer): Add self.
52353         * modules/utimecmp (Depends-on): Add time; remove timespec.
52354         * modules/utimens (Depends-on): Likewise.
52355         * modules/xnanosleep (Depends-on): Likewise.
52356
52357 2007-02-11  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/c-strstr.c: Include allocsa.h.
52360         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52361         * lib/c-strcasestr.c: Include allocsa.h.
52362         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52363         * lib/strcasestr.c: Include allocsa.h.
52364         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52365         * lib/mbsstr.c: Include allocsa.h.
52366         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52367         allocsa/freesa instead of malloc/free.
52368         * lib/mbscasestr.c: Include allocsa.h.
52369         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52370         allocsa/freesa instead of malloc/free.
52371         * modules/c-strstr (Depends-on): Add allocsa.
52372         * modules/c-strcasestr (Depends-on): Likewise.
52373         * modules/strcasestr (Depends-on): Likewise.
52374         * modules/mbsstr (Depends-on): Likewise.
52375         * modules/mbscasestr (Depends-on): Likewise.
52376
52377 2007-02-11  Bruno Haible  <bruno@clisp.org>
52378
52379         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52380
52381         * modules/mbsspn-tests: New file.
52382         * tests/test-mbsspn.sh: New file.
52383         * tests/test-mbsspn.c: New file.
52384
52385 2007-02-11  Bruno Haible  <bruno@clisp.org>
52386
52387         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52388
52389         * modules/mbspbrk-tests: New file.
52390         * tests/test-mbspbrk.sh: New file.
52391         * tests/test-mbspbrk.c: New file.
52392
52393 2007-02-11  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52396         unneeded cast.
52397
52398         * modules/mbscspn-tests: New file.
52399         * tests/test-mbscspn.sh: New file.
52400         * tests/test-mbscspn.c: New file.
52401
52402 2007-02-11  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/mbscasecmp-tests: New file.
52405         * tests/test-mbscasecmp.sh: New file.
52406         * tests/test-mbscasecmp.c: New file.
52407
52408 2007-02-11  Bruno Haible  <bruno@clisp.org>
52409
52410         Ensure O(n) worst-case complexity of mbscasestr.
52411         * lib/mbscasestr.c: Include stdbool.h.
52412         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52413         functions.
52414         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52415         the bookkeeping indicates that it's worth it.
52416         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52417
52418         * modules/mbscasestr-tests: New file.
52419         * tests/test-mbscasestr1.c: New file.
52420         * tests/test-mbscasestr2.sh: New file.
52421         * tests/test-mbscasestr2.c: New file.
52422         * tests/test-mbscasestr3.sh: New file.
52423         * tests/test-mbscasestr3.c: New file.
52424         * tests/test-mbscasestr4.sh: New file.
52425         * tests/test-mbscasestr4.c: New file.
52426         * m4/locale-tr.m4: New file.
52427
52428 2007-02-11  Bruno Haible  <bruno@clisp.org>
52429
52430         Ensure O(n) worst-case complexity of mbsstr.
52431         * lib/mbsstr.c: Include stdbool.h.
52432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52433         functions.
52434         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52435         bookkeeping indicates that it's worth it.
52436         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52437
52438         * modules/mbsstr-tests: New file.
52439         * tests/test-mbsstr1.c: New file.
52440         * tests/test-mbsstr2.sh: New file.
52441         * tests/test-mbsstr2.c: New file.
52442         * tests/test-mbsstr3.sh: New file.
52443         * tests/test-mbsstr3.c: New file.
52444         * m4/locale-fr.m4: New file.
52445
52446 2007-02-11  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/mbsrchr.c (mbsrchr): Fix bug.
52449
52450         * modules/mbsrchr-tests: New file.
52451         * tests/test-mbsrchr.sh: New file.
52452         * tests/test-mbsrchr.c: New file.
52453
52454 2007-02-11  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/mbschr.c (mbschr): Fix bug.
52457
52458         * modules/mbschr-tests: New file.
52459         * tests/test-mbschr.sh: New file.
52460         * tests/test-mbschr.c: New file.
52461         * m4/locale-zh.m4: New file.
52462
52463 2007-02-11  Bruno Haible  <bruno@clisp.org>
52464
52465         Support for copying multibyte string iterators.
52466         * lib/mbiter.h: Include <string.h>.
52467         (mbiter_multi_copy): New function.
52468         (mbi_copy): New macro.
52469         * lib/mbuiter.h: Include <string.h>.
52470         (mbuiter_multi_copy): New function.
52471         (mbui_copy): New macro.
52472
52473 2007-02-11  Bruno Haible  <bruno@clisp.org>
52474
52475         New module mbslen.
52476         * modules/mbslen: New file.
52477         * lib/mbslen.c: New file.
52478         * lib/string_.h (mbslen): New declaration.
52479         * m4/mbslen.m4: New file.
52480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52481         GNULIB_MBSLEN.
52482         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52483         * MODULES.html.sh (Internationalization functions): Add mbslen.
52484
52485 2007-02-11  Bruno Haible  <bruno@clisp.org>
52486
52487         Ensure O(n) worst-case complexity of strcasestr substitute.
52488         * lib/strcasestr.c: Include stdbool.h.
52489         (knuth_morris_pratt): New function.
52490         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52491         bookkeeping indicates that it's worth it.
52492         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52493
52494         * modules/strcasestr-tests: New file.
52495         * tests/test-strcasestr.c: New file.
52496
52497 2007-02-11  Bruno Haible  <bruno@clisp.org>
52498
52499         Ensure O(n) worst-case complexity of c_strcasestr.
52500         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52501         (knuth_morris_pratt): New function.
52502         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52503         the bookkeeping indicates that it's worth it.
52504         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52505
52506         * modules/c-strcasestr-tests: New file.
52507         * tests/test-c-strcasestr.c: New file.
52508
52509 2007-02-11  Bruno Haible  <bruno@clisp.org>
52510
52511         Ensure O(n) worst-case complexity of c_strstr.
52512         * lib/c-strstr.c: Include stdbool.h, string.h.
52513         (knuth_morris_pratt): New function.
52514         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52515         bookkeeping indicates that it's worth it.
52516         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52517
52518         * lib/c-strstr.c: Complete rewrite for maintainability.
52519
52520         * modules/c-strstr-tests: New file.
52521         * tests/test-c-strstr.c: New file.
52522
52523 2007-02-11  Bruno Haible  <bruno@clisp.org>
52524
52525         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52526         5.2.1 and earlier, whereby \055 was treated just like the range
52527         delimiter '-'.
52528         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52529
52530 2007-02-08  Bruno Haible  <bruno@clisp.org>
52531
52532         * modules/regex (Depends-on): Add stdbool.
52533         Reported by Dalibor Topic <robilad@kaffe.org>.
52534
52535 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52536
52537         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52538         Prefer returning from main to exiting from it.
52539         Remove unnecessary parens after sizeof.
52540
52541 2007-02-05  Bruno Haible  <bruno@clisp.org>
52542
52543         New module mbssep.
52544         * modules/mbssep: New file.
52545         * lib/mbssep.c: New file.
52546         * lib/string_.h (strsep): Add a conditional link warning.
52547         (mbssep): New declaration.
52548         * m4/mbssep.m4: New file.
52549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52550         GNULIB_MBSSEP.
52551         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52552         * MODULES.html.sh (Internationalization functions): Add mbssep.
52553
52554 2007-02-05  Bruno Haible  <bruno@clisp.org>
52555
52556         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52557         Optimize search in case of 1 delimiter.
52558
52559 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52560
52561         * lib/acl.h: Include sys/types.h before sys/acl.h.
52562
52563 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52564
52565         Merge upstream fix for glibc bugzilla #3957:
52566
52567         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52568
52569         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52570         bit for RE_HAT_LISTS_NOT_NEWLINE.
52571         (build_charclass_op): Remove bogus comment.
52572
52573 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52574
52575         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52576
52577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52578
52579         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52580         * lib/memmem.c [!defined _LIBC]: Include config.h.
52581
52582 2007-02-04  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52585         warning message.
52586
52587 2007-02-04  Bruno Haible  <bruno@clisp.org>
52588
52589         New module mbstok_r.
52590         * modules/mbstok_r: New file.
52591         * lib/mbstok_r.c: New file.
52592         * lib/string_.h (strtok_r): Change argument names to match the
52593         comments. Add a conditional link warning.
52594         (mbstok_r): New declaration.
52595         * m4/mbstok_r.m4: New file.
52596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52597         GNULIB_MBSTOK_R.
52598         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52599         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52600
52601 2007-02-04  Bruno Haible  <bruno@clisp.org>
52602
52603         New module mbsspn.
52604         * modules/mbsspn: New file.
52605         * lib/mbsspn.c: New file.
52606         * lib/string_.h (strspn): Add a conditional link warning.
52607         (mbsspn): New declaration.
52608         * m4/mbsspn.m4: New file.
52609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52610         GNULIB_MBSSPN.
52611         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52612         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52613
52614 2007-02-04  Bruno Haible  <bruno@clisp.org>
52615
52616         New module mbspbrk.
52617         * modules/mbspbrk: New file.
52618         * lib/mbspbrk.c: New file.
52619         * lib/string_.h (strpbrk): Add a conditional link warning.
52620         (mbspbrk): New declaration.
52621         * m4/mbspbrk.m4: New file.
52622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52623         GNULIB_MBSPBRK.
52624         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52625         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52626
52627 2007-02-04  Bruno Haible  <bruno@clisp.org>
52628
52629         New module mbscspn.
52630         * modules/mbscspn: New file.
52631         * lib/mbscspn.c: New file.
52632         * lib/string_.h (strcspn): Add a conditional link warning.
52633         (mbscspn): New declaration.
52634         * m4/mbscspn.m4: New file.
52635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52636         GNULIB_MBSCSPN.
52637         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52638         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52639
52640 2007-02-04  Bruno Haible  <bruno@clisp.org>
52641
52642         New module mbscasestr, reduced goal of strcasestr.
52643         * modules/mbscasestr: New file.
52644         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52645         (mbscasestr): Renamed from strcasestr.
52646         * lib/strcasestr.c: Don't include mbuiter.h.
52647         (strcasestr): Remove support for multibyte locales.
52648         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52649         Change the conditional link warning.
52650         (mbscasestr): New declaration.
52651         * m4/mbscasestr.m4: New file.
52652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52653         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52654         REPLACE_STRCASESTR.
52655         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52657         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52658         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52659         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52660         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52661         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52662         (Depends-on): Remove mbuiter.
52663         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52664
52665 2007-02-04  Bruno Haible  <bruno@clisp.org>
52666
52667         Simplify handling of strncasecmp.
52668         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52669         the conditional link warning.
52670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52671         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52672         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52673         * modules/strcase (configure.ac): Don't invoke
52674         gl_STRING_MODULE_INDICATOR.
52675         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52676
52677 2007-02-04  Bruno Haible  <bruno@clisp.org>
52678
52679         New module mbscasecmp, reduced goal of strcasecmp.
52680         * modules/mbscasecmp: New file.
52681         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52682         (mbscasecmp): Renamed from strcasecmp.
52683         * lib/strcasecmp.c: Don't include mbuiter.h.
52684         (strcasecmp): Remove support for multibyte locales.
52685         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52686         Change the conditional link warning.
52687         (mbscasecmp): New declaration.
52688         * m4/mbscasecmp.m4: New file.
52689         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52690         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52691         REPLACE_STRCASECMP.
52692         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52694         GNULIB_MBSCASECMP.
52695         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52696         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52697         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52698         (Depends-on): Remove mbuiter.
52699         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52700
52701 2007-02-04  Bruno Haible  <bruno@clisp.org>
52702
52703         New module mbsstr. Remove module strstr.
52704         * modules/mbsstr: New file.
52705         * modules/strstr: Remove file.
52706         * lib/mbsstr.c: Renamed from lib/strstr.c.
52707         (mbsstr): Renamed from strstr.
52708         * lib/string_.h (strstr): Remove declaration. Change the conditional
52709         link warning.
52710         (mbsstr): New declaration.
52711         * m4/mbsstr.m4: New file.
52712         * m4/strstr.m4: Remove file.
52713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52714         REPLACE_STRSTR.
52715         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52716         Don't initialize GNULIB_STRSTR.
52717         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52718         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52719         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52720         (Support for systems lacking ANSI C 89): Remove strstr.
52721
52722 2007-02-04  Bruno Haible  <bruno@clisp.org>
52723
52724         New module mbsrchr.
52725         * modules/mbsrchr: New file.
52726         * lib/mbsrchr.c: New file.
52727         * lib/string_.h (strrchr): Add a conditional link warning.
52728         (mbsrchr): New declaration.
52729         * m4/mbsrchr.m4: New file.
52730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52731         GNULIB_MBSRCHR.
52732         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52733         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52734
52735 2007-02-04  Bruno Haible  <bruno@clisp.org>
52736
52737         New module mbschr.
52738         * modules/mbschr: New file.
52739         * lib/mbschr.c: New file.
52740         * lib/string_.h (strchr): Add a conditional link warning.
52741         (mbschr): New declaration.
52742         * m4/mbschr.m4: New file.
52743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52744         GNULIB_MBSCHR.
52745         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52746         * MODULES.html.sh (Internationalization functions): Add mbschr.
52747
52748 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52749
52750         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52751
52752         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52753
52754 2007-02-04  Bruno Haible  <bruno@clisp.org>
52755
52756         New module description section 'configure.ac-early'.
52757         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52758         (func_get_autoconf_early_snippet): New function.
52759         (func_import, func_create_testdir): Use it. Remove special cases for
52760         modules 'extensions' and 'lock'.
52761         * modules/extensions (configure.ac-early): Require
52762         gl_USE_SYSTEM_EXTENSIONS.
52763         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52764
52765 2007-02-04  Bruno Haible  <bruno@clisp.org>
52766
52767         Make use of gcj-4.3's -fsource and -ftarget option.
52768         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52769         and if so try the options -fsource and -ftarget.
52770         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52771         source_version, ftarget_option, target_version arguments.
52772         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52773         (is_envjavac_oldgcj_14_14_usable): Renamed from
52774         is_envjavac_gcj_14_14_usable.
52775         (is_envjavac_oldgcj_14_13_usable): Renamed from
52776         is_envjavac_gcj_14_13_usable.
52777         (is_gcj_present): Update.
52778         (is_gcj_43, is_gcj43_usable): New functions.
52779         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52780         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52781         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52782         try the options -fsource and -ftarget.
52783
52784 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52785
52786         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52787         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52788         larger value.
52789
52790 2007-02-03  Jim Meyering  <jim@meyering.net>
52791
52792         Give tools a better chance to allocate space for very large buffers.
52793         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52794
52795         Make pwd and readlink work also when run with an unreadable parent dir
52796         on systems with openat support.
52797         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52798         provided getcwd function, even when we have openat support.
52799         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52800
52801 2007-02-02  Bruno Haible  <bruno@clisp.org>
52802
52803         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52804         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52805         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52806         portability problems if one of these functions is only used on specific
52807         platforms.
52808         Reported by Paul Eggert.
52809
52810 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52811
52812         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52813         is causing more trouble than it's curing.
52814         * lib/regex_internal.h (__mempcpy): Remove.
52815         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52816         (and make the code a tad smaller to boot).
52817         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52818
52819 2007-02-02  Jim Meyering  <jim@meyering.net>
52820
52821         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52822         section, not in the Makefile.am: one.
52823
52824 2007-02-02  Eric Blake  <ebb9@byu.net>
52825
52826         * lib/strchrnul.c: Always include config.h first.
52827
52828         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52829         gnulib strstr is not necessary here.
52830
52831 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52832
52833         * m4/socklen.m4: Fix typo.
52834
52835 2007-02-02  Eric Blake  <ebb9@byu.net>
52836
52837         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52838         * modules/netinet_in (Makefile.am): Likewise.
52839
52840 2007-02-01  Bruno Haible  <bruno@clisp.org>
52841
52842         * lib/string_.h (GL_LINK_WARNING): New macro.
52843         (strcasecmp, strstr, strcasestr): If provided by the system,
52844         conditionally define as a macro that leads to a warning instead of to
52845         an error.
52846         (strncasecmp): Conditionally define as a macro that leads to a warning.
52847
52848 2007-02-01  Karl Berry  <karl@gnu.org>
52849
52850         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52851
52852 2007-02-01  Bruno Haible  <bruno@clisp.org>
52853
52854         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52855         renamings.
52856
52857 2007-02-01  Eric Blake  <ebb9@byu.net>
52858
52859         * modules/regex (Depends-on): Revert dependence on mempcpy.
52860         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52861         module's definition of mempcpy.
52862         Reported by Paul Eggert.
52863
52864 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52865
52866         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52867         the symbol XYZ before redefining it.  This fixes a problem with
52868         programs that don't use XYZ, when compiled on systems that define
52869         XYZ to something else.
52870
52871 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52872
52873         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52874         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52875         writeable to group or other and (2) is intended to have a special
52876         mode bit that is set or cleared.  In such a case, the directory
52877         should be neither group- nor other-writeable until the special
52878         mode bits are right.
52879
52880 2007-01-31  Eric Blake  <ebb9@byu.net>
52881
52882         * modules/mountlist (Depends-on): Add strstr.
52883
52884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52885         bug.
52886         * modules/string (Makefile.am): Remove redundant replacement.
52887         * modules/regex (Depends-on): Add mempcpy.
52888
52889 2007-01-31  Bruno Haible  <bruno@clisp.org>
52890
52891         New module description field 'Link'.
52892         * gnulib-tool (func_usage): Document --extract-link-directive.
52893         (sed_extract_prog): Recognize 'Link' directive.
52894         (func_get_link_directive): New function.
52895         (func_import): Show summary of link directives.
52896         Handle --extract-link-directive option.
52897         * modules/acl (Link): New section.
52898         * modules/clock-time (Link): New section.
52899         * modules/euidaccess (Link): New section.
52900         * modules/gettext (Link): New section.
52901         * modules/iconv (Link): New section.
52902         * modules/lock (Link): New section.
52903         * modules/nanosleep (Link): New section.
52904         * modules/readline (Link): New section.
52905
52906 2007-01-27  Bruno Haible  <bruno@clisp.org>
52907
52908         Enforce the use of gnulib modules for unportable <string.h> functions.
52909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52910         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52911         (gl_HEADER_STRING_H_BODY): Require it.
52912         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52913         the symbol XYZ to one that gives a link error.
52914         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52915         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52916         * modules/mempcpy (configure.ac): Likewise.
52917         * modules/memrchr (configure.ac): Likewise.
52918         * modules/stpcpy (configure.ac): Likewise.
52919         * modules/stpncpy (configure.ac): Likewise.
52920         * modules/strcase (configure.ac): Likewise.
52921         * modules/strcasestr (configure.ac): Likewise.
52922         * modules/strchrnul (configure.ac): Likewise.
52923         * modules/strdup (configure.ac): Likewise.
52924         * modules/strndup (configure.ac): Likewise.
52925         * modules/strnlen (configure.ac): Likewise.
52926         * modules/strpbrk (configure.ac): Likewise.
52927         * modules/strsep (configure.ac): Likewise.
52928         * modules/strstr (configure.ac): Likewise.
52929         * modules/strtok_r (configure.ac): Likewise.
52930
52931 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52932
52933         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52934
52935 2007-01-30  Jim Meyering  <jim@meyering.net>
52936
52937         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52938
52939 2007-01-29  Bruno Haible  <bruno@clisp.org>
52940
52941         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52942         * lib/execute.c: Likewise.
52943         * lib/pipe.c: Likewise.
52944         * lib/printf-args.h: Likewise.
52945         * lib/printf-args.c: Likewise.
52946         * lib/printf-parse.c: Likewise.
52947         * lib/vasnprintf.c: Likewise.
52948
52949 2007-01-29  Eric Blake  <ebb9@byu.net>
52950
52951         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52952         declaration.
52953
52954 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52955
52956         * lib/strptime.h (strptime): Use 'restrict' for args where
52957         POSIX requires this.
52958         * lib/strptime.c (strptime): Likewise.
52959         Change license notice from LGPL to GPL, since gnulib-tool will
52960         change this as needed.
52961         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52962         defined.
52963         Include "strptime.h" first, to check interface.
52964         Do not #undef _LIBC and _NL_CURRENT.
52965         Do not include <stdlib.h>; no longer needed.
52966         Include "time_r.h" and declare ptime_locale_status
52967         only if _LIBC is not defined.
52968         (__P): Remove unused macro.
52969         (match_string): Bring back glibc version, but use it only if _LIBC
52970         is defined.
52971         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52972         Remove unnecessary assertion and abort() call.
52973         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52974         * m4/strptime.m4: Fix serial number comment.
52975         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52976         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52977         (Depends-on): Add time_r.
52978
52979 2007-01-29  Bruno Haible  <bruno@clisp.org>
52980
52981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52982         strptime.
52983         * modules/strptime (Depends-on): Add stdbool.
52984         * lib/strptime.h: Include <time.h> always. Add comments.
52985
52986 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52987
52988         * modules/strptime: New file.
52989         * lib/strptime.h: New file.
52990         * lib/strptime.c: New file.
52991         * m4/strptime.m4: New file.
52992
52993 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52994
52995         * MODULES.html.sh: New module mpsort.
52996         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52997
52998         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52999         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53001         All uses changed.
53002         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53003         All uses changed.
53004         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53005         to _Restrict_.
53006         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53007         the parameter matches the prototype.
53008
53009 2007-01-28  Jim Meyering  <jim@meyering.net>
53010
53011         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53012         sys/time.h here, reverting that part of the previous patch:
53013         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53014
53015 2007-01-28  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53018         value of $(SYS_TIME_H).
53019         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53020         remove it conditionally, too. [added by Jim Meyering]
53021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53023         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53024         GETTIMEOFDAY_REPLACEMENT to 1.
53025
53026 2007-01-28  Bruno Haible  <bruno@clisp.org>
53027
53028         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53029         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53031         Set UNISTD_H instead of UNISTD_H2.
53032         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53033
53034 2007-01-28  Bruno Haible  <bruno@clisp.org>
53035
53036         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53037         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53038
53039 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53040
53041         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53042         (func_create_testdir): Ensure C locale for `grep' and `tr'
53043         character ranges.
53044         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53045         ACLOCAL_AMFLAGS parsing state machine.
53046
53047 2007-01-27  Bruno Haible  <bruno@clisp.org>
53048
53049         * modules/unistr/base: Update.
53050
53051 2007-01-27  Bruno Haible  <bruno@clisp.org>
53052
53053         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53054         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53055         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53056         modules/unistr/u32-mbtouc.
53057         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53058         * lib/unistr.h: Update.
53059         * lib/linebreak.c: Update.
53060         * modules/unistr/u32-mbtouc: Renamed from
53061         modules/unistr/u32-mbtouc-safe.
53062         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53063         * lib/unistr.h: Update.
53064         * lib/unistr/u32-to-u8.c: Update.
53065         * lib/unistr/u32-to-u16.c: Update.
53066
53067 2007-01-27  Bruno Haible  <bruno@clisp.org>
53068
53069         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53070         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53071         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53072         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53073         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53074         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53075         modules/unistr/u16-mbtouc.
53076         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53077         * lib/unistr.h: Update.
53078         * lib/linebreak.c: Update.
53079         * modules/linebreak: Update.
53080         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53081         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53082         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53083         * modules/unistr/u16-mbtouc: Renamed from
53084         modules/unistr/u16-mbtouc-safe.
53085         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53086         * lib/unistr.h: Update.
53087         * lib/unistr/u16-to-u8.c: Update.
53088         * modules/unistr/u16-to-u8: Update.
53089         * lib/unistr/u16-to-u32.c: Update.
53090         * modules/unistr/u16-to-u32: Update.
53091
53092 2007-01-27  Bruno Haible  <bruno@clisp.org>
53093
53094         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53095         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53096         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53097         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53098         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53099         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53100         modules/unistr/u8-mbtouc.
53101         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53102         * lib/unistr.h: Update.
53103         * lib/striconveh.c: Update.
53104         * modules/striconveh: Update.
53105         * lib/linebreak.c: Update.
53106         * modules/linebreak: Update.
53107         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53108         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53109         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53110         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53111         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53112         * lib/unistr.h: Update.
53113         * lib/striconveh.c: Update.
53114         * modules/striconveh: Update.
53115         * lib/unistr/u8-to-u16.c: Update.
53116         * modules/unistr/u8-to-u16: Update.
53117         * lib/unistr/u8-to-u32.c: Update.
53118         * modules/unistr/u8-to-u32: Update.
53119
53120 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53121
53122         Sync from Libtool.
53123         * lib/argz.c: Do not include strings.h nor memory.h, include
53124         string.h unconditionally.  Patch by Simon Josefsson.
53125
53126 2007-01-27  Bruno Haible  <bruno@clisp.org>
53127
53128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53129         from gl_HEADER_STRING_H_BODY.
53130         (gl_HEADER_STRING_H_BODY): Require it.
53131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53132         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53133         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53134         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53135         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53136         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53138         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53139         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53140         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53142         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53143         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53144         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53145         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53146
53147 2007-01-27  Bruno Haible  <bruno@clisp.org>
53148
53149         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53150         check_PROGRAMS into noinst_PROGRAMS.
53151         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53152         check_PROGRAMS in this case.
53153         (func_import): Set for_test to false.
53154         (func_create_testdir): Set for_test to true.
53155
53156 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53157             Bruno Haible  <bruno@clisp.org>
53158
53159         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53160         (Depends-on): Add string.
53161         (Includes): Use <string.h> instead of strcasestr.h.
53162         * modules/string (Makefile.am): Also substitute the value of
53163         REPLACE_STRCASESTR.
53164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53165         assume strcasestr is declared in <string.h> not <strings.h>. Also
53166         set REPLACE_STRCASESTR.
53167         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53168         REPLACE_STRCASESTR.
53169         * lib/strcasestr.h: Remove file.
53170         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53171         * lib/string_.h (strcasestr): New declaration.
53172
53173 2007-01-27  Bruno Haible  <bruno@clisp.org>
53174
53175         * lib/string_.h: Use 'extern'.
53176
53177 2007-01-27  Jim Meyering  <jim@meyering.net>
53178
53179         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53180         of set-but-not-used local, "q".
53181
53182         * lib/mempcpy.c: Include <config.h> before <string.h>.
53183         This fixes a compilation error on HP-UX, due to the system's
53184         "restrict"-using mempcpy prototype.
53185
53186 2007-01-26  Bruno Haible  <bruno@clisp.org>
53187
53188         Small optimization.
53189         * lib/javacomp.c: Include c-strstr.h.
53190          (is_envjavac_gcj): Use c_strstr instead of strstr.
53191         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53192
53193 2007-01-26  Bruno Haible  <bruno@clisp.org>
53194
53195         * MODULES.html.sh (Unicode string functions): Add the new modules.
53196
53197         * modules/uniconv/u32-strconv-to-locale: New file.
53198         * lib/uniconv/u32-strconv-to-locale.c: New file.
53199
53200         * modules/uniconv/u16-strconv-to-locale: New file.
53201         * lib/uniconv/u16-strconv-to-locale.c: New file.
53202
53203         * modules/uniconv/u8-strconv-to-locale: New file.
53204         * lib/uniconv/u8-strconv-to-locale.c: New file.
53205
53206         * modules/uniconv/u32-strconv-from-locale: New file.
53207         * lib/uniconv/u32-strconv-from-locale.c: New file.
53208
53209         * modules/uniconv/u16-strconv-from-locale: New file.
53210         * lib/uniconv/u16-strconv-from-locale.c: New file.
53211
53212         * modules/uniconv/u8-strconv-from-locale: New file.
53213         * lib/uniconv/u8-strconv-from-locale.c: New file.
53214
53215         * modules/uniconv/u32-strconv-to-enc: New file.
53216         * lib/uniconv/u32-strconv-to-enc.c: New file.
53217         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53218         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53219
53220         * modules/uniconv/u16-strconv-to-enc: New file.
53221         * lib/uniconv/u16-strconv-to-enc.c: New file.
53222         * lib/uniconv/u-strconv-to-enc.h: New file.
53223         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53224         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53225
53226         * modules/uniconv/u8-strconv-to-enc: New file.
53227         * lib/uniconv/u8-strconv-to-enc.c: New file.
53228         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53229         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53230
53231         * modules/uniconv/u32-strconv-from-enc: New file.
53232         * lib/uniconv/u32-strconv-from-enc.c: New file.
53233         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53234         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53235
53236         * modules/uniconv/u16-strconv-from-enc: New file.
53237         * lib/uniconv/u16-strconv-from-enc.c: New file.
53238         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53239         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53240
53241         * modules/uniconv/u8-strconv-from-enc: New file.
53242         * lib/uniconv/u8-strconv-from-enc.c: New file.
53243         * lib/uniconv/u-strconv-from-enc.h: New file.
53244         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53245         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53246
53247         * modules/uniconv/u32-conv-from-enc: New file.
53248         * lib/uniconv/u32-conv-from-enc.c: New file.
53249         * modules/uniconv/u32-conv-from-enc-tests: New file.
53250         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53251
53252         * modules/uniconv/u16-conv-from-enc: New file.
53253         * lib/uniconv/u16-conv-from-enc.c: New file.
53254         * lib/uniconv/u-conv-from-enc.h: New file.
53255         * modules/uniconv/u16-conv-from-enc-tests: New file.
53256         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53257
53258         * modules/uniconv/u8-conv-from-enc: New file.
53259         * lib/uniconv/u8-conv-from-enc.c: New file.
53260         * modules/uniconv/u8-conv-from-enc-tests: New file.
53261         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53262
53263         * modules/uniconv/base: New file.
53264         * lib/uniconv.h: New file.
53265
53266 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * doc/gnulib-tool.texi (Initial import): Update to match current
53269         behavior with strdup module.
53270         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53271         * lib/memmem.h: Remove; all uses removed.  This is now done
53272         by <string.h>.
53273         * lib/mempcpy.h: Likewise.
53274         * lib/memrchr.h: Likewise.
53275         * lib/stpcpy.h: Likewise.
53276         * lib/stpncpy.h: Likewise.
53277         * lib/strcase.h: Likewise.
53278         * lib/strchrnul.h: Likewise.
53279         * lib/strdup.h: Likewise.
53280         * lib/strndup.h: Likewise.
53281         * lib/strnlen.h: Likewise.
53282         * lib/strpbrk.h: Likewise.
53283         * lib/strsep.h: Likewise.
53284         * lib/strstr.h: Likewise.
53285         * lib/strtok_r.h: Likewise.
53286         * lib/string_.h: New file.
53287         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53288         Rely on <string.h> instead.
53289         * lib/canon-host.c: Likewise.
53290         * lib/chdir-long.c: Likewise.
53291         * lib/concatpath.c: Likewise.
53292         * lib/exclude.c: Likewise.
53293         * lib/fchdir.c: Likewise.
53294         * lib/getaddrinfo.c: Likewise.
53295         * lib/getcwd.c: Likewise.
53296         * lib/getsubopt.c: Likewise.
53297         * lib/glob.c: Likewise.
53298         * lib/hard-locale.c: Likewise.
53299         * lib/iconvme.c: Likewise.
53300         * lib/javacomp.c: Likewise.
53301         * lib/mempcpy.c: Likewise.
53302         * lib/memrchr.c: Likewise.
53303         * lib/regex_internal.h: Likewise.
53304         * lib/stpncpy.c: Likewise.
53305         * lib/strcasecmp.c: Likewise.
53306         * lib/strchrnul.c: Likewise.
53307         * lib/strdup.c: Likewise.
53308         * lib/striconv.c: Likewise.
53309         * lib/striconveh.c: Likewise.
53310         * lib/striconveha.c: Likewise.
53311         * lib/strncasecmp.c: Likewise.
53312         * lib/strndup.c: Likewise.
53313         * lib/strnlen.c: Likewise.
53314         * lib/strsep.c: Likewise.
53315         * lib/strstr.c: Likewise.
53316         * lib/strtok_r.c: Likewise.
53317         * lib/userspec.c: Likewise.
53318         * lib/w32spawn.h: Likewise.
53319         * lib/xstrndup.c: Likewise.
53320         * lib/mountlist.c (strstr): Remove decl.
53321         * m4/string_h.m4: New file.
53322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53323         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53324         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53325         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53326         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53327         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53328         Set REPLACE_STRCASECMP if necessary.
53329         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53330         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53331         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53333         HAVE_DECL_STRDUP if necessary.
53334         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53335         since gl_FUNC_STRNDUP does that now.
53336         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53337         Check for decl here...
53338         (gl_PREREQ_STRNLEN): ... not here.
53339         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53340         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53341         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53342         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53343         necessary.
53344         * modules/string: New file.
53345         * modules/memmem (Files): Remove special-purpose include file.
53346         (Depends-on): Add string.
53347         (Include): Include <string.h>, not the removed file.
53348         * modules/mempcpy: Likewise.
53349         * modules/memrchr: Likewise.
53350         * modules/stpcpy: Likewise.
53351         * modules/stpncpy: Likewise.
53352         * modules/strcase: Likewise.
53353         * modules/strchrnul: Likewise.
53354         * modules/strdup: Likewise.
53355         * modules/strndup: Likewise.
53356         * modules/strnlen: Likewise.
53357         * modules/strpbrk: Likewise.
53358         * modules/strsep: Likewise.
53359         * modules/strstr: Likewise.
53360         * modules/strtok_r: Likewise.
53361         * tests/test-dirname.c: Don't include "strdup.h", since
53362         <string.h> now suffices.
53363         * tests/test-memmem.c: Don't include "memmem.h", since
53364         <string.h> now suffices.
53365
53366 2007-01-25  Bruno Haible  <bruno@clisp.org>
53367
53368         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53369         *resultp is 0.
53370
53371         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53372         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53373         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53374         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53375
53376         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53377         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53378         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53379         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53380         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53381         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53382
53383 2007-01-24  Bruno Haible  <bruno@clisp.org>
53384
53385         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53387         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53388         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53389         gl_FUNC_FTS_CORE.
53390         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53391         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53392         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53393         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53394         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53395         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53396         gl_FUNC_FCHOWNAT.
53397         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53398         gl_FUNC_STRFTIME.
53399         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53400         Reported by Ralf Wildenhues.
53401
53402 2007-01-24  Bruno Haible  <bruno@clisp.org>
53403
53404         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53405         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53406         gl_GETADDRINFO.
53407         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53408         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53409         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53410
53411 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53412
53413         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53414         Don't use 'exit'; just return from 'main'.
53415         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53416
53417         * lib/fnmatch_.h: Readjust white space and comments to match
53418         glibc, to avoid spurious diffs.
53419
53420 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53421
53422         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53423         2004-12-01 change by Jakub Jelinek, since this code won't compile
53424         if !LIBC.  Problem reported by Bob Proulx.
53425
53426 2007-01-23  Bruno Haible  <bruno@clisp.org>
53427
53428         * lib/striconveh.c: Include c-strcaseeq.h.
53429         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53430         * modules/striconveh (Depends-on): Add c-strcaseeq.
53431
53432 2007-01-23  Bruno Haible  <bruno@clisp.org>
53433
53434         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53435
53436         * modules/c-strcaseeq: New file.
53437         * lib/c-strcaseeq.h: New file.
53438
53439         * modules/streq: New file.
53440         * lib/streq.h: New file.
53441
53442 2007-01-23  Bruno Haible  <bruno@clisp.org>
53443
53444         * modules/striconveha-tests: New file.
53445         * tests/test-striconveha.c: New file.
53446
53447         * lib/striconveha.h: Include <stdbool.h>.
53448         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53449         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53450         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53451         (mem_iconveha): New function.
53452         (str_iconveha_notranslit): Renamed from str_iconveha.
53453         (str_iconveha): New function.
53454         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53455         c-strcase.
53456
53457 2007-01-23  Bruno Haible  <bruno@clisp.org>
53458
53459         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53460         encodings without forgiving before trying any encoding with handler.
53461         (str_iconveha): Try all encodings without forgiving before trying any
53462         encoding with handler.
53463
53464 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53465
53466         Import the following changes from libc.
53467
53468         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53469
53470         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53471
53472         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53473
53474         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53475         normal_bracket label.
53476
53477         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53478
53479         [BZ #361]
53480         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53481         to normal_bracket after fetching the next character.
53482
53483 2007-01-22  Bruno Haible  <bruno@clisp.org>
53484
53485         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53486         argument.
53487         * lib/striconveh.c (iconv_carefully_1): New function.
53488         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53489         argument.
53490         (str_cd_iconveh): Update.
53491         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53492         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53493         * tests/test-striconveh.c (MAGIC): New macro.
53494         (new_offsets): New function.
53495         (main): Test call with and without offsets.
53496
53497 2007-01-22  Bruno Haible  <bruno@clisp.org>
53498
53499         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53500         * modules/sys_select (Makefile.am): Likewise.
53501         * modules/sys_socket (Makefile.am): Likewise.
53502         * modules/sys_time (Makefile.am): Likewise.
53503
53504 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53505
53506         * modules/gettimeofday (License): Change from GPL to LGPL, since
53507         gettimeofday is a library function.
53508
53509 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53510
53511         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53512
53513 2007-01-21  Bruno Haible  <bruno@clisp.org>
53514
53515         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53516
53517 2007-01-21  Bruno Haible  <bruno@clisp.org>
53518
53519         * modules/striconveha: New file.
53520         * lib/striconveha.h: New file.
53521         * lib/striconveha.c: New file.
53522         * MODULES.html.sh (Internationalization functions): Add striconveha.
53523         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53524         string.
53525         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53526
53527 2007-01-21  Bruno Haible  <bruno@clisp.org>
53528
53529         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53530         * lib/striconveh.c (str_iconveh): Likewise.
53531
53532 2007-01-21  Bruno Haible  <bruno@clisp.org>
53533
53534         * lib/striconveh.h (mem_iconveh): New declaration.
53535         * lib/striconveh.c (mem_iconveh): New function.
53536         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53537
53538 2007-01-21  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53541
53542         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53543         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53544         original result buffer.
53545         (str_cd_iconveh): Update.
53546         * tests/test-striconveh.c (main): Update.
53547
53548         * lib/striconv.h (mem_cd_iconv): Change specification.
53549         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53550         result buffer.
53551         (str_cd_iconv): Update.
53552         * tests/test-striconv.c (main): Update.
53553
53554 2007-01-21  Bruno Haible  <bruno@clisp.org>
53555
53556         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53557
53558 2007-01-20  Jim Meyering  <jim@meyering.net>
53559
53560         * lib/userspec.c (parse_with_separator): If a user or group string
53561         starts with "+", skip the corresponding name-to-ID look-up, since
53562         such a look-up must fail: user and group names may not include "+".
53563
53564 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53565
53566         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53567         since we now assume the sys_time module.
53568         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53569         check for sys/time.h; no longer needed.
53570         * modules/poll (Depends-on): Depend on sys_time.
53571
53572 2007-01-18  Bruno Haible  <bruno@clisp.org>
53573
53574         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53575         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53576
53577         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53578         gettimeofday.
53579
53580         * tests/test-gettimeofday.c: Include <time.h>.
53581         (dummy): Remove variable.
53582
53583         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53584         gl_HEADER_SYS_TIME_H.
53585         (gl_HEADER_SYS_TIME_H): New macro.
53586
53587         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53588         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53589         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53590         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53591         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53592         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53593         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53594         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53595         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53596         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53597         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53598
53599         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53600         last change; it caused a compilation error when cross-compiling to
53601         Cygwin.
53602
53603 2007-01-18  Jim Meyering  <jim@meyering.net>
53604
53605         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53606         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53607         than the race-prone "test -d sys || mkdir sys".
53608         (configure.ac): Use AC_PROG_MKDIR_P.
53609         * modules/sys_select: Likewise.
53610         * modules/sys_socket: Likewise.
53611         * modules/sys_time: Likewise.
53612
53613 2007-01-18  Eric Blake  <ebb9@byu.net>
53614
53615         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53616         replace gettimeofday.
53617         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53618         name, to avoid infinite recursion.
53619
53620 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53621
53622         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53623         module sys_time.
53624         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53625         assume timespec.h defines struct timeval.
53626         * lib/settime.c: Likewise.
53627         * lib/utimens.c: Likewise.
53628         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53629         since we now assume the gettimeofday module.
53630         * lib/tempname.c (__gen_tempname): Likewise.
53631         * lib/gettimeofday.h: Remove.
53632         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53633         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53634         Include <time.h>, for 'time()'.
53635         (localtime_buffer_addr): Also use this workaround if
53636         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53637         to simplify the uses.  All uses changed.
53638         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53639         that #undef is inside {}, and 'const' follows type name consistently.
53640         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53641         (gettimeofday): Do not use the maximum possible value for
53642         tv->tv_usec, since that might break usages other than ls.c.
53643         Instead, we'll leave ls.c alone.  This undoes today's patch
53644         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53645         we've never observed the problem but might as well keep the
53646         canary.
53647         * lib/nanosleep.c: Include timespec.h first, for interface check.
53648         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53649         now assume the sys_time module.
53650         * lib/tempname.c: Likewise.
53651         * lib/timespec.h: Likewise.
53652         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53653         needed.
53654         * lib/strftime.c: Likewise.
53655         * lib/timespec.h: Likewise.
53656         * lib/posixtm.c: Include posixtm.h first, for interface check.
53657         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53658         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53659         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53660         * lib/sys_time_.h: New file.
53661         * lib/timespec.h (struct timespec): Use long int, not long.
53662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53663         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53664         Remove obsolescent call to AC_HEADER_TIME.
53665         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53667         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53668         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53669         Likewise.
53670         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53671         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53673         into the sys_time module.  Check for gettimeofday just once.
53674         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53675         for gettimeofday signature to just check the signature.  Merely
53676         compile it, since linking doesn't test signature.  Improve test for
53677         whether gettimeofday.o is actually needed.
53678         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53679         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53680         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53681         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53682         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53683         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53684         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53685         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53686         than worrying about sys/time.h.
53687         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53688         Don't bother worrying about TIME_WITH_SYS_TIME.
53689         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53690         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53691         * m4/sys_time_h.m4: New file.
53692         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53693         Don't include sys/time.h.  Return from main rather than exiting.
53694         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53695         all uses changed.
53696         * modules/gethrxtime (Depends-on): Add sys_time.
53697         * modules/gettime (Depends-on): Likewise.
53698         * modules/gettimeofday (Depends-on): Likewise.
53699         * modules/nanosleep (Depends-on): Likewise.
53700         * modules/settime (Depends-on): Likewise.
53701         * modules/tempname (Depends-on): Likewise.
53702         * modules/utimens (Depends-on): Likewise.
53703         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53704         (Include:) Change back to <sys/time.h>.
53705         (Maintainer:) Add self.
53706         * modules/sys_time: New file.
53707         * modules/tempname (Depends-on): Add gettimeofday.
53708         * tests/test-gettimeofday.c: Include <sys/time.h>
53709         rather than gettimeofday.h.
53710
53711 2007-01-17  Bruno Haible  <bruno@clisp.org>
53712
53713         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53714         the license default to GPL.
53715         (func_create_testdir): Don't complain if a module is LGPL and its
53716         tests module depends on GPLed modules.
53717
53718 2007-01-17  Bruno Haible  <bruno@clisp.org>
53719
53720         * lib/gettimeofday.c (gettimeofday): Add code for the case
53721         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53722         maximum possible value for tv->tv_usec, rather than the minimum one.
53723
53724 2005-10-08  Martin Lambers  <marlam@marlam.de>
53725 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53726 2007-01-16  Bruno Haible  <bruno@clisp.org>
53727
53728         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53729         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53730         gl_FUNC_GETTIMEOFDAY.
53731         (Include): Add gettimeofday.h.
53732         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53733         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53734         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53735         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53736         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53737         * lib/gettimeofday.h: New file.
53738         * lib/gettimeofday.c: Include <sys/timeb.h>.
53739         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53740         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53741         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53742         fall back on time().
53743
53744         * tests/test-gettimeofday.c: New file.
53745         * modules/gettimeofday-tests: New file.
53746
53747 2007-01-16  Eric Blake  <ebb9@byu.net>
53748
53749         * modules/fnmatch (Depends-on): Depend on wchar.
53750         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53751         * m4/fnmatch.m4: Likewise.
53752         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53753         * m4/mbchar.m4: Likewise.
53754         * modules/mbswidth (Depends-on): Depend on wchar.
53755         * lib/mbswidth.c: Assume <wchar.h>.
53756         * m4/mbswidth.m4: Likewise.
53757         * modules/quotearg (Depends-on): Depend on wchar.
53758         * lib/quotearg.c: Assume <wchar.h>.
53759         * m4/quotearg.m4: Likewise.
53760         * modules/regex (Depends-on): Depend on wchar.
53761         * lib/regex_internal.h: Assume <wchar.h>.
53762         * m4/regex.m4: Likewise.
53763         * modules/stdint (Depends-on): Depend on wchar.
53764         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53765         * m4/stdint.m4: Likewise.
53766         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53767         * modules/strftime (Depends-on): Depend on wchar.
53768         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53769         * modules/strtol (Depends-on): Depend on wchar.
53770         * lib/strtol.c: Assume <wchar.h>.
53771         * modules/wcwidth (Depends-on): Depend on wchar.
53772         * lib/wcwidth.h: Assume <wchar.h>.
53773         * m4/wcwidth.m4: Likewise.
53774
53775 2007-01-16  Bruno Haible  <bruno@clisp.org>
53776
53777         * modules/csharpexec-script: New, created from...
53778         * modules/csharpexec: ... this.
53779
53780 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53781
53782         * modules/javaexec-script: New, created from...
53783         * modules/javaexec: ... this.
53784
53785 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53786
53787         * modules/poll (Dependencies): Add sys_select.
53788
53789 2007-01-15  Jim Meyering  <jim@meyering.net>
53790
53791         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53792         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53793         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53794         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53795
53796 2007-01-15  Bruno Haible  <bruno@clisp.org>
53797
53798         * modules/striconveh: New file.
53799         * lib/striconveh.h: New file.
53800         * lib/striconveh.c: New file.
53801         * MODULES.html.sh (Internationalization functions): Add striconveh.
53802
53803         * modules/striconveh-tests: New file.
53804         * tests/test-striconveh.c: New file.
53805
53806 2007-01-15  Bruno Haible  <bruno@clisp.org>
53807
53808         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53809         not from GNU libiconv or GNU libc.
53810
53811 2007-01-15  Bruno Haible  <bruno@clisp.org>
53812
53813         * doc/gnulib-intro.texi (Copyright): Explain the different license
53814         terms for module descriptions, autoconf macros, tests, documentation.
53815
53816 2007-01-14  Bruno Haible  <bruno@clisp.org>
53817
53818         * modules/striconv-tests: New file.
53819         * tests/test-striconv.c: New file.
53820
53821 2007-01-14  Bruno Haible  <bruno@clisp.org>
53822
53823         * modules/iconv-tests: New file.
53824         * tests/test-iconv.c: New file.
53825
53826 2007-01-14  Bruno Haible  <bruno@clisp.org>
53827
53828         * gnulib-tool (func_get_license): For test modules, use the license of
53829         the main module.
53830
53831 2007-01-14  Bruno Haible  <bruno@clisp.org>
53832
53833         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53834         if iconv is found to exist.
53835
53836 2007-01-14  Bruno Haible  <bruno@clisp.org>
53837
53838         * modules/c-ctype-tests: New file.
53839         * tests/test-c-ctype.c: New file.
53840
53841 2007-01-14  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/binary-io-tests: New file.
53844         * tests/test-binary-io.sh: New file.
53845         * tests/test-binary-io.c: New file.
53846
53847 2007-01-14  Bruno Haible  <bruno@clisp.org>
53848
53849         * modules/array-oset-tests: New file.
53850         * tests/test-array_oset.c: New file.
53851
53852 2007-01-14  Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/array-list-tests: New file.
53855         * tests/test-array_list.c: New file.
53856
53857 2007-01-14  Bruno Haible  <bruno@clisp.org>
53858
53859         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53860         and make.
53861         Reported by Simon Josefsson in
53862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53863
53864 2007-01-14  Bruno Haible  <bruno@clisp.org>
53865
53866         * modules/allocsa-tests: New file.
53867         * tests/test-allocsa.c: New file.
53868
53869 2007-01-14  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/fchdir (Depends-on): Add absolute-header.
53872         * modules/unistd (Depends-on): Likewise.
53873
53874 2006-12-30  Bruno Haible  <bruno@clisp.org>
53875
53876         * modules/fchdir: New file.
53877         * modules/unistd (Files): Add lib/unistd_.h.
53878         (Makefile.am): Generate unistd.h from unistd_.h.
53879         * lib/fchdir.c: New file.
53880         * lib/dirent_.h: New file.
53881         * lib/unistd_.h: New file.
53882         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53883         * m4/fchdir.m4: New file.
53884         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53885         (gl_HEADER_UNISTD): Invoke it.
53886         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53887         function.
53888         * lib/backupfile.c (opendir, closedir): Undefine.
53889         * lib/chown.c (open, close): Undefine.
53890         * lib/clean-temp.c (open, close): Undefine.
53891         * lib/copy-file.c (open, close): Undefine.
53892         * lib/execute.c (open, close): Undefine.
53893         * lib/fsusage.c (open, close): Undefine.
53894         * lib/gc-gnulib.c (open, close): Undefine.
53895         * lib/getcwd.c (opendir, closedir): Undefine.
53896         * lib/glob.c (opendir, closedir): Undefine.
53897         * lib/javacomp.c (open, close): Undefine.
53898         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53899         * lib/openat-proc.c (open, close): Undefine.
53900         * lib/pagealign_alloc.c (open, close): Undefine.
53901         * lib/pipe.c (open, close): Undefine.
53902         * lib/progreloc.c (open, close): Undefine.
53903         * lib/savedir.c (opendir, closedir): Undefine.
53904         * lib/utime.c (open, close): Undefine.
53905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53906
53907 2007-01-10  Bruno Haible  <bruno@clisp.org>
53908
53909         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53910
53911 2007-01-12  Eric Blake  <ebb9@byu.net>
53912
53913         Provide a robust <wchar.h>.  Further simplifications are now
53914         possible in other modules, but not included here.
53915         * modules/wchar: New module.
53916         * m4/wchar.m4: New file.
53917         * lib/wchar_.h: Likewise.
53918         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53919         of the new module.
53920         * MODULES.html.sh (Extended multibyte and wide character utilities):
53921         New section.
53922
53923 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53926         to a reasonable default for memory allocation.
53927         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53928         file system that reports garbage st_size values for symlinks.
53929         Problem reported by Liyang Hu.
53930
53931 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53932
53933         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53934         Emacs .#* auto-save files).
53935
53936 2007-01-11  Bruno Haible  <bruno@clisp.org>
53937
53938         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53939         directory.
53940
53941 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         Use @...@ consistently in lib/wctype_.h.
53944         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53945         on it being set to 1 or 0.
53946         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53947         go back to AC_SUBSTing it.
53948         * modules/wctype (Makefile.am): Undo previous change.
53949
53950 2007-01-10  Eric Blake  <ebb9@byu.net>
53951
53952         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53953         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53954         * modules/wctype (Makefile.am): Likewise.
53955         Reported by Chris McGuire.
53956
53957 2007-01-10  Jim Meyering  <jim@meyering.net>
53958
53959         fts.c: a small readability/maintainability improvement
53960         * lib/fts.c (fts_read): Make this code slightly more readable and
53961         maintainable by hoisting the "sp->fts_cur = p" assignments to
53962         immediately follow the statements that set P.  Derived from
53963         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53964
53965 2007-01-10  Eric Blake  <ebb9@byu.net>
53966
53967         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53968         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53969         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53970         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53971         Reported by Chris McGuire.
53972
53973 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53974
53975         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53976         in sed script.
53977
53978 2007-01-09  Bruno Haible  <bruno@clisp.org>
53979
53980         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53981         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53982         variables.
53983         (func_module): Use them.
53984
53985 2007-01-09  Bruno Haible  <bruno@clisp.org>
53986
53987         * modules/unistr/base: New file.
53988         * lib/unistr.h: New file.
53989
53990         * modules/unistr/u8-to-u16: New file.
53991         * lib/unistr/u8-to-u16.c: New file.
53992
53993         * modules/unistr/u8-to-u32: New file.
53994         * lib/unistr/u8-to-u32.c: New file.
53995
53996         * modules/unistr/u16-to-u8: New file.
53997         * lib/unistr/u16-to-u8.c: New file.
53998
53999         * modules/unistr/u16-to-u32: New file.
54000         * lib/unistr/u16-to-u32.c: New file.
54001
54002         * modules/unistr/u32-to-u8: New file.
54003         * lib/unistr/u32-to-u8.c: New file.
54004
54005         * modules/unistr/u32-to-u16: New file.
54006         * lib/unistr/u32-to-u16.c: New file.
54007
54008         * modules/unistr/u8-check: New file.
54009         * modules/unistr/u16-check: New file.
54010         * modules/unistr/u32-check: New file.
54011         * lib/unistr/u8-check.c: New file.
54012         * lib/unistr/u16-check.c: New file.
54013         * lib/unistr/u32-check.c: New file.
54014
54015         * modules/unistr/u8-chr: New file.
54016         * modules/unistr/u16-chr: New file.
54017         * modules/unistr/u32-chr: New file.
54018         * lib/unistr/u8-chr.c: New file.
54019         * lib/unistr/u16-chr.c: New file.
54020         * lib/unistr/u32-chr.c: New file.
54021
54022         * modules/unistr/u8-cmp: New file.
54023         * modules/unistr/u16-cmp: New file.
54024         * modules/unistr/u32-cmp: New file.
54025         * lib/unistr/u8-cmp.c: New file.
54026         * lib/unistr/u16-cmp.c: New file.
54027         * lib/unistr/u32-cmp.c: New file.
54028
54029         * modules/unistr/u8-cpy: New file.
54030         * modules/unistr/u16-cpy: New file.
54031         * modules/unistr/u32-cpy: New file.
54032         * lib/unistr/u8-cpy.c: New file.
54033         * lib/unistr/u16-cpy.c: New file.
54034         * lib/unistr/u32-cpy.c: New file.
54035         * lib/unistr/u-cpy.h: New file.
54036
54037         * modules/unistr/u8-cpy-alloc: New file.
54038         * modules/unistr/u16-cpy-alloc: New file.
54039         * modules/unistr/u32-cpy-alloc: New file.
54040         * lib/unistr/u8-cpy-alloc.c: New file.
54041         * lib/unistr/u16-cpy-alloc.c: New file.
54042         * lib/unistr/u32-cpy-alloc.c: New file.
54043         * lib/unistr/u-cpy-alloc.h: New file.
54044
54045         * modules/unistr/u8-endswith: New file.
54046         * modules/unistr/u16-endswith: New file.
54047         * modules/unistr/u32-endswith: New file.
54048         * lib/unistr/u8-endswith.c: New file.
54049         * lib/unistr/u16-endswith.c: New file.
54050         * lib/unistr/u32-endswith.c: New file.
54051         * lib/unistr/u-endswith.h: New file.
54052
54053         * modules/unistr/u8-mblen: New file.
54054         * modules/unistr/u16-mblen: New file.
54055         * modules/unistr/u32-mblen: New file.
54056         * lib/unistr/u8-mblen.c: New file.
54057         * lib/unistr/u16-mblen.c: New file.
54058         * lib/unistr/u32-mblen.c: New file.
54059
54060         * modules/unistr/u8-mbtouc: New file.
54061         * modules/unistr/u16-mbtouc: New file.
54062         * modules/unistr/u32-mbtouc: New file.
54063         * lib/unistr/u8-mbtouc.c: New file.
54064         * lib/unistr/u16-mbtouc.c: New file.
54065         * lib/unistr/u32-mbtouc.c: New file.
54066
54067         * modules/unistr/u8-mbtouc-safe: New file.
54068         * modules/unistr/u16-mbtouc-safe: New file.
54069         * modules/unistr/u32-mbtouc-safe: New file.
54070         * lib/unistr/u8-mbtouc-safe.c: New file.
54071         * lib/unistr/u16-mbtouc-safe.c: New file.
54072         * lib/unistr/u32-mbtouc-safe.c: New file.
54073
54074         * modules/unistr/u8-move: New file.
54075         * modules/unistr/u16-move: New file.
54076         * modules/unistr/u32-move: New file.
54077         * lib/unistr/u8-move.c: New file.
54078         * lib/unistr/u16-move.c: New file.
54079         * lib/unistr/u32-move.c: New file.
54080         * lib/unistr/u-move.h: New file.
54081
54082         * modules/unistr/u8-next: New file.
54083         * modules/unistr/u16-next: New file.
54084         * modules/unistr/u32-next: New file.
54085         * lib/unistr/u8-next.c: New file.
54086         * lib/unistr/u16-next.c: New file.
54087         * lib/unistr/u32-next.c: New file.
54088
54089         * modules/unistr/u8-prev: New file.
54090         * modules/unistr/u16-prev: New file.
54091         * modules/unistr/u32-prev: New file.
54092         * lib/unistr/u8-prev.c: New file.
54093         * lib/unistr/u16-prev.c: New file.
54094         * lib/unistr/u32-prev.c: New file.
54095
54096         * modules/unistr/u8-set: New file.
54097         * modules/unistr/u16-set: New file.
54098         * modules/unistr/u32-set: New file.
54099         * lib/unistr/u8-set.c: New file.
54100         * lib/unistr/u16-set.c: New file.
54101         * lib/unistr/u32-set.c: New file.
54102         * lib/unistr/u-set.h: New file.
54103
54104         * modules/unistr/u8-startswith: New file.
54105         * modules/unistr/u16-startswith: New file.
54106         * modules/unistr/u32-startswith: New file.
54107         * lib/unistr/u8-startswith.c: New file.
54108         * lib/unistr/u16-startswith.c: New file.
54109         * lib/unistr/u32-startswith.c: New file.
54110         * lib/unistr/u-startswith.h: New file.
54111
54112         * modules/unistr/u8-stpcpy: New file.
54113         * modules/unistr/u16-stpcpy: New file.
54114         * modules/unistr/u32-stpcpy: New file.
54115         * lib/unistr/u8-stpcpy.c: New file.
54116         * lib/unistr/u16-stpcpy.c: New file.
54117         * lib/unistr/u32-stpcpy.c: New file.
54118         * lib/unistr/u-stpcpy.h: New file.
54119
54120         * modules/unistr/u8-stpncpy: New file.
54121         * modules/unistr/u16-stpncpy: New file.
54122         * modules/unistr/u32-stpncpy: New file.
54123         * lib/unistr/u8-stpncpy.c: New file.
54124         * lib/unistr/u16-stpncpy.c: New file.
54125         * lib/unistr/u32-stpncpy.c: New file.
54126         * lib/unistr/u-stpncpy.h: New file.
54127
54128         * modules/unistr/u8-strcat: New file.
54129         * modules/unistr/u16-strcat: New file.
54130         * modules/unistr/u32-strcat: New file.
54131         * lib/unistr/u8-strcat.c: New file.
54132         * lib/unistr/u16-strcat.c: New file.
54133         * lib/unistr/u32-strcat.c: New file.
54134         * lib/unistr/u-strcat.h: New file.
54135
54136         * modules/unistr/u8-strchr: New file.
54137         * modules/unistr/u16-strchr: New file.
54138         * modules/unistr/u32-strchr: New file.
54139         * lib/unistr/u8-strchr.c: New file.
54140         * lib/unistr/u16-strchr.c: New file.
54141         * lib/unistr/u32-strchr.c: New file.
54142
54143         * modules/unistr/u8-strcmp: New file.
54144         * modules/unistr/u16-strcmp: New file.
54145         * modules/unistr/u32-strcmp: New file.
54146         * lib/unistr/u8-strcmp.c: New file.
54147         * lib/unistr/u16-strcmp.c: New file.
54148         * lib/unistr/u32-strcmp.c: New file.
54149
54150         * modules/unistr/u8-strcpy: New file.
54151         * modules/unistr/u16-strcpy: New file.
54152         * modules/unistr/u32-strcpy: New file.
54153         * lib/unistr/u8-strcpy.c: New file.
54154         * lib/unistr/u16-strcpy.c: New file.
54155         * lib/unistr/u32-strcpy.c: New file.
54156         * lib/unistr/u-strcpy.h: New file.
54157
54158         * modules/unistr/u8-strcspn: New file.
54159         * modules/unistr/u16-strcspn: New file.
54160         * modules/unistr/u32-strcspn: New file.
54161         * lib/unistr/u8-strcspn.c: New file.
54162         * lib/unistr/u16-strcspn.c: New file.
54163         * lib/unistr/u32-strcspn.c: New file.
54164         * lib/unistr/u-strcspn.h: New file.
54165
54166         * modules/unistr/u8-strdup: New file.
54167         * modules/unistr/u16-strdup: New file.
54168         * modules/unistr/u32-strdup: New file.
54169         * lib/unistr/u8-strdup.c: New file.
54170         * lib/unistr/u16-strdup.c: New file.
54171         * lib/unistr/u32-strdup.c: New file.
54172         * lib/unistr/u-strdup.h: New file.
54173
54174         * modules/unistr/u8-strlen: New file.
54175         * modules/unistr/u16-strlen: New file.
54176         * modules/unistr/u32-strlen: New file.
54177         * lib/unistr/u8-strlen.c: New file.
54178         * lib/unistr/u16-strlen.c: New file.
54179         * lib/unistr/u32-strlen.c: New file.
54180         * lib/unistr/u-strlen.h: New file.
54181
54182         * modules/unistr/u8-strmblen: New file.
54183         * modules/unistr/u16-strmblen: New file.
54184         * modules/unistr/u32-strmblen: New file.
54185         * lib/unistr/u8-strmblen.c: New file.
54186         * lib/unistr/u16-strmblen.c: New file.
54187         * lib/unistr/u32-strmblen.c: New file.
54188
54189         * modules/unistr/u8-strmbtouc: New file.
54190         * modules/unistr/u16-strmbtouc: New file.
54191         * modules/unistr/u32-strmbtouc: New file.
54192         * lib/unistr/u8-strmbtouc.c: New file.
54193         * lib/unistr/u16-strmbtouc.c: New file.
54194         * lib/unistr/u32-strmbtouc.c: New file.
54195
54196         * modules/unistr/u8-strncat: New file.
54197         * modules/unistr/u16-strncat: New file.
54198         * modules/unistr/u32-strncat: New file.
54199         * lib/unistr/u8-strncat.c: New file.
54200         * lib/unistr/u16-strncat.c: New file.
54201         * lib/unistr/u32-strncat.c: New file.
54202         * lib/unistr/u-strncat.h: New file.
54203
54204         * modules/unistr/u8-strncmp: New file.
54205         * modules/unistr/u16-strncmp: New file.
54206         * modules/unistr/u32-strncmp: New file.
54207         * lib/unistr/u8-strncmp.c: New file.
54208         * lib/unistr/u16-strncmp.c: New file.
54209         * lib/unistr/u32-strncmp.c: New file.
54210
54211         * modules/unistr/u8-strncpy: New file.
54212         * modules/unistr/u16-strncpy: New file.
54213         * modules/unistr/u32-strncpy: New file.
54214         * lib/unistr/u8-strncpy.c: New file.
54215         * lib/unistr/u16-strncpy.c: New file.
54216         * lib/unistr/u32-strncpy.c: New file.
54217         * lib/unistr/u-strncpy.h: New file.
54218
54219         * modules/unistr/u8-strnlen: New file.
54220         * modules/unistr/u16-strnlen: New file.
54221         * modules/unistr/u32-strnlen: New file.
54222         * lib/unistr/u8-strnlen.c: New file.
54223         * lib/unistr/u16-strnlen.c: New file.
54224         * lib/unistr/u32-strnlen.c: New file.
54225         * lib/unistr/u-strnlen.h: New file.
54226
54227         * modules/unistr/u8-strpbrk: New file.
54228         * modules/unistr/u16-strpbrk: New file.
54229         * modules/unistr/u32-strpbrk: New file.
54230         * lib/unistr/u8-strpbrk.c: New file.
54231         * lib/unistr/u16-strpbrk.c: New file.
54232         * lib/unistr/u32-strpbrk.c: New file.
54233         * lib/unistr/u-strpbrk.h: New file.
54234
54235         * modules/unistr/u8-strrchr: New file.
54236         * modules/unistr/u16-strrchr: New file.
54237         * modules/unistr/u32-strrchr: New file.
54238         * lib/unistr/u8-strrchr.c: New file.
54239         * lib/unistr/u16-strrchr.c: New file.
54240         * lib/unistr/u32-strrchr.c: New file.
54241
54242         * modules/unistr/u8-strspn: New file.
54243         * modules/unistr/u16-strspn: New file.
54244         * modules/unistr/u32-strspn: New file.
54245         * lib/unistr/u8-strspn.c: New file.
54246         * lib/unistr/u16-strspn.c: New file.
54247         * lib/unistr/u32-strspn.c: New file.
54248         * lib/unistr/u-strspn.h: New file.
54249
54250         * modules/unistr/u8-strstr: New file.
54251         * modules/unistr/u16-strstr: New file.
54252         * modules/unistr/u32-strstr: New file.
54253         * lib/unistr/u8-strstr.c: New file.
54254         * lib/unistr/u16-strstr.c: New file.
54255         * lib/unistr/u32-strstr.c: New file.
54256         * lib/unistr/u-strstr.h: New file.
54257
54258         * modules/unistr/u8-strtok: New file.
54259         * modules/unistr/u16-strtok: New file.
54260         * modules/unistr/u32-strtok: New file.
54261         * lib/unistr/u8-strtok.c: New file.
54262         * lib/unistr/u16-strtok.c: New file.
54263         * lib/unistr/u32-strtok.c: New file.
54264         * lib/unistr/u-strtok.h: New file.
54265
54266         * modules/unistr/u8-uctomb: New file.
54267         * modules/unistr/u16-uctomb: New file.
54268         * modules/unistr/u32-uctomb: New file.
54269         * lib/unistr/u8-uctomb.c: New file.
54270         * lib/unistr/u16-uctomb.c: New file.
54271         * lib/unistr/u32-uctomb.c: New file.
54272
54273         * MODULES.html.sh (Unicode string functions): Add the new modules.
54274
54275 2007-01-08  Bruno Haible  <bruno@clisp.org>
54276
54277         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54278         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54279         subdirectories.
54280
54281 2007-01-08  Karl Berry  <karl@gnu.org>
54282
54283         * doc/error.texi: mention that main() fns must set program_name
54284         when progname is used.
54285
54286 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54289         WCTYPE_H is empty, for the benefit of builds from non-distclean
54290         directories.  Problem reported by Eric Blake in
54291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54292
54293 2007-01-08  Bruno Haible  <bruno@clisp.org>
54294
54295         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54296         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54297         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54298         PROVIDE_CANONICALIZE_FILENAME_MODE.
54299         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54300
54301 2007-01-08  Bruno Haible  <bruno@clisp.org>
54302
54303         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54304         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54305         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54306         * lib/fts.c: Likewise.
54307         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54308
54309 2006-12-25  Bruno Haible  <bruno@clisp.org>
54310
54311         * modules/utf8-ucs4-safe: New file.
54312         * lib/utf8-ucs4-safe.h: New file.
54313         * lib/unistr/utf8-ucs4-safe.c: New file.
54314
54315         * modules/utf16-ucs4-safe: New file.
54316         * lib/utf16-ucs4-safe.h: New file.
54317         * lib/unistr/utf16-ucs4-safe.c: New file.
54318
54319         * MODULES.html.sh (Unicode string functions): Add the new modules.
54320
54321 2007-01-08  Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54324         (Depends-on): Add unitypes.
54325         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54326         (u8_mbtouc_aux): Move out to separate file.
54327         (u8_mbtouc): Use ucs4_t, uint8_t types.
54328         * lib/unistr/utf8-ucs4.c: New file.
54329
54330         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54331         (Depends-on): Add unitypes.
54332         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54333         (u16_mbtouc_aux): Move out to separate file.
54334         (u16_mbtouc): Use ucs4_t, uint16_t types.
54335         * lib/unistr/utf16-ucs4.c: New file.
54336
54337         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54338         (Depends-on): Add unitypes.
54339         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54340         (u8_uctomb_aux): Move out to separate file.
54341         (u8_uctomb): Use ucs4_t, uint8_t types.
54342         * lib/unistr/ucs4-utf8.c: New file.
54343
54344         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54345         (Depends-on): Add unitypes.
54346         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54347         (u16_uctomb_aux): Move out to separate file.
54348         (u16_uctomb): Use ucs4_t, uint16_t types.
54349         * lib/unistr/ucs4-utf16.c: New file.
54350
54351 2006-12-25  Bruno Haible  <bruno@clisp.org>
54352
54353         * modules/unitypes: New file.
54354         * lib/unitypes.h: New file.
54355         * MODULES.html.sh (func_all_modules): New section "Unicode string
54356         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54357         this section. Add unitypes.
54358
54359 2007-01-08  Bruno Haible  <bruno@clisp.org>
54360
54361         Avoid variable names that conflict with those from libtool.
54362         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54363         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54364         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54365         library_names_spec to acl_library_names_spec, hardcode_* to
54366         acl_hardcode_*.
54367         Reported by Ralf Wildenhues.
54368
54369 2007-01-08  Bruno Haible  <bruno@clisp.org>
54370
54371         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54372         definition.
54373         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54374         definition.
54375         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54376         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54377         definition.
54378         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54379         definition.
54380         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54381         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54382         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54383         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54384         definition.
54385         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54386         definition.
54387         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54388         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54389         GC_USE_<algorithm>.
54390         * lib/gc-libgcrypt.c: Likewise.
54391         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54392         * modules/gc-arctwo (configure.ac): Likewise.
54393         * modules/gc-des (configure.ac): Likewise.
54394         * modules/gc-hmac-md5 (configure.ac): Likewise.
54395         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54396         * modules/gc-md2 (configure.ac): Likewise.
54397         * modules/gc-md4 (configure.ac): Likewise.
54398         * modules/gc-md5 (configure.ac): Likewise.
54399         * modules/gc-random (configure.ac): Likewise.
54400         * modules/gc-rijndael (configure.ac): Likewise.
54401         * modules/gc-sha1 (configure.ac): Likewise.
54402
54403 2007-01-08  Bruno Haible  <bruno@clisp.org>
54404
54405         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54406         macro definition.
54407         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54408         definition.
54409         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54410         definition.
54411         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54412         * modules/fcntl-safer (configure.ac): Likewise.
54413         * modules/fopen-safer (configure.ac): Likewise.
54414         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54415         GNULIB_FWRITEERROR macro definition.
54416
54417 2007-01-08  Bruno Haible  <bruno@clisp.org>
54418
54419         * m4/gnulib-common.m4: New file.
54420         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54421         (func_get_filelist): Add m4/gnulib-common.m4.
54422
54423 2007-01-08  Bruno Haible  <bruno@clisp.org>
54424
54425         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54426         command.
54427
54428 2007-01-08  Jim Meyering  <jim@meyering.net>
54429
54430         Use a more robust test for a "can't happen" condition.
54431         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54432         narrowed the st_size value.  Presuming the "can't happen" condition
54433         is true, that narrowing could conceivably convert an invalid st_size
54434         value into a valid one.  Instead, use a change based on Matthew
54435         Woehlke's original patch.
54436
54437         Slight readability improvement: use an assert-like macro
54438         in place of literal "abort ()" uses.
54439         * lib/fts.c (fts_assert): Define.
54440         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54441         Use this macro instead of a bare 'abort'.
54442
54443 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54446         simply work around them.
54447         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54448         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54449         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54450         declaring.
54451         Don't bother to define as macros, since the standard doesn't require it.
54452         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54453         longer worry about IRIX 5.3.
54454         (HAVE_WCTYPE_CTMP_BUG): Remove.
54455
54456 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54457
54458         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54459         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54460         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54461         Problems reported by Georg Schwarz for IRIX 5.3.
54462
54463         * gnulib-tool (autoconf_minversion): Take the maximum version number
54464         found, not the minimum.  Problem reported by James Youngman.
54465
54466 2007-01-03  Karl Berry  <karl@gnu.org>
54467
54468         * doc/error.texi: new file, explaining interaction with progname.
54469         * doc/gnulib.texi: include it.  Update copyright.
54470
54471 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54472
54473         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54474         AC_CANONICAL_HOST, to improve autobuild outputs.
54475
54476 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54477             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54478
54479         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54480         sockets, server sockets, and other file descriptors.  Count errors
54481         to compute the return value.  Reorder the code a bit to be easier
54482         to follow.  Don't set event bits that were not requested (except
54483         POLLERR and POLLHUP).
54484
54485 2007-01-01  Bruno Haible  <bruno@clisp.org>
54486
54487         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54488
54489 2007-01-03  Jim Meyering  <jim@meyering.net>
54490
54491         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54492
54493 2007-01-02  Bruno Haible  <bruno@clisp.org>
54494
54495         * modules/settime (Include): Require timespec.h.
54496         * modules/nanosleep (Include): Likewise.
54497
54498 2007-01-01  Bruno Haible  <bruno@clisp.org>
54499
54500         * gnulib-tool (func_emit_copyright_notice): Bump year.
54501         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54502
54503 2007-01-01  Bruno Haible  <bruno@clisp.org>
54504
54505         Improve support for OpenBSD.
54506         * build-aux/config.rpath (libname_spec): Export.
54507         (library_names_spec): New variable. Export.
54508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54509         library_names_spec from the config.rpath output. Locate shared library
54510         through the name pattern in library_names_spec.
54511
54512 2007-01-01  Eric Blake  <ebb9@byu.net>
54513
54514         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54515
54516 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54517
54518         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54519         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54520         assume the C locale, and avoid an "eval" that could cause trouble.
54521         Problem with SORT reported by Bob Proulx.
54522
54523         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54524         Define.  Trivial patch from Henning Nielsen Lund, originally
54525         sent to bug-grep@gnu.org today.
54526
54527 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54528
54529         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54530         struct stat.  Problem reported by Henning Nielsen Lund.
54531         * lib/acl.c: Include acl.h first, to check interface.  Don't
54532         bother to include sys/types.h and sys/stat.h again.
54533
54534 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54535
54536         Import the following change from libc; problem reported by
54537         Sven Verdoolaege.
54538
54539         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54540
54541         [BZ #1373]
54542         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54543
54544 2006-12-28  Jim Meyering  <jim@meyering.net>
54545
54546         * build-aux/announce-gen: Do not assume that the package
54547         builds any of tar.gz, tar.bz2, and .xdelta files.
54548         Suggestion from Simon Josefsson.
54549
54550 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54551
54552         * modules/announce-gen: New file.
54553
54554 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54555
54556         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54557         handles its gotchas now.
54558         * lib/mbswidth.c: Likewise.
54559         * lib/wcwidth.h: Likewise.
54560         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54561         and iswcntrl; the wctype module does this stuff now.
54562         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54564         * modules/mbchar (Depends-on): Add wctype.
54565         * modules/mbswidth (Depends-on): Likewise.
54566         * modules/wcwidth (Depends-on): Likewise.
54567
54568 2006-12-27  Eric Blake  <ebb9@byu.net>
54569
54570         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54571         module uses more than what <wctype.h> is required to provide.
54572
54573 2006-12-26  Eric Blake  <ebb9@byu.net>
54574
54575         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54576
54577 2006-12-26  Eric Blake  <ebb9@byu.net>
54578
54579         * modules/absolute-header: New module.
54580         * modules/fcntl (Depends-on): Depend on it.
54581         * modules/inttypes (Depends-on): Likewise.
54582         * modules/stdint (Depends-on): Likewise.
54583         * modules/sys_stat (Depends-on): Likewise.
54584         * modules/wctype (Depends-on): Likewise.
54585         * MODULES.html.sh (Support for building libraries and
54586         executables): Document it.
54587
54588 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         * gnulib-tool (SED): Remove, undoing previous change.
54591         The problem was that it broke coreutils on Solaris, because
54592         "sed --posix" leaked into a makefile.
54593         (sed): New alias, if 'alias' and GNU sed.
54594
54595 2006-12-24  Jim Meyering  <jim@meyering.net>
54596
54597         Work around an fchownat bug in glibc-2.4:
54598         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54599         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54600         in spite of the -P option.
54601         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54602         New macros.
54603         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54604         * modules/openat (Files): Add lib/fchownat.c.
54605         * lib/openat.c (fchownat): Don't define here.  Move to...
54606         * lib/fchownat.c: ...this new file.
54607
54608 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54609
54610         Fix bug reported by Bruno Haible in
54611         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54612         where quotearg.c didn't compile on Mac OS X 10.2 because it
54613         lacks <wchar.h> and wint_t.
54614         * lib/wctype_.h (__wctype_wint_t): New type.
54615         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54616         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54617         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54618         Arg is now of type __wctype_wint_t, not wint_t.
54619         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54620         substitute HAVE_WINT_T.
54621         * modules/wctype (Files): Add m4/wint_t.m4.
54622         (wctype.h): Substitute HAVE_WINT_T.
54623
54624 2006-12-23  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54627
54628 2006-12-23  Bruno Haible  <bruno@clisp.org>
54629
54630         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54631         S_ISLNK.
54632         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54633         mingw.
54634
54635 2006-12-22  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/copy-file.c: Include acl.h.
54638         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54639         Close the file descriptors only after being done with copy_acl.
54640         * modules/copy-file (Depends-on): Add acl.
54641
54642 2006-12-22  Bruno Haible  <bruno@clisp.org>
54643
54644         * gnulib-tool (SED): New variable.
54645         Use $SED instead of sed everywhere.
54646
54647 2006-12-22  Bruno Haible  <bruno@clisp.org>
54648
54649         * modules/no-c++: New file.
54650         * m4/no-c++.m4: New file.
54651         * MODULES.html.sh (Support for building libraries and executables):
54652         Add no-c++.
54653
54654 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54655
54656         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54657         Include <limits.h>, and use its INT_MAX to rewrite the
54658         j loop so that it does not overflow 'int'.  Problem reported by
54659         Ralf Wildenhues in
54660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54661         Play it safe by shifting left by 1 rather than multiplying by 2,
54662         as GCC is less likely to optimize this away when the value
54663         is signed (when it assumes overflow leads to undefined behavior).
54664         Also, don't assume time_t uses two's complement.
54665
54666 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         * MODULES.html.sh: New module wctype.
54669         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54670         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54671         <wctype.h>, since the new wctype module should fix this.
54672         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54673         the wctype module should arrange for it.
54674         * lib/regex_internal.h: Likewise.
54675         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54676         since the wctype module should handle this now.
54677         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54678         * modules/fnmatch (Depends-on): Add wctype.
54679         * modules/quotearg (Depends-on): Likewise.
54680         * modules/regex (Depends-on): Likewise.
54681
54682 2006-12-19  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54685         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54686
54687 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54688
54689         * modules/savewd (Depends-on): Fix dependency on fcntl.
54690
54691 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54694         conforms to C99, rather than relying on the user's environment
54695         setting of STDINT_H.
54696
54697 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54698         and Eric Blake  <ebb9@byu.net>
54699
54700         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54701         This is more consistent with the other defines here.
54702         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54703         Port to z/OS.  Problem reported by Paul Gilmartin.
54704         Change local vars to use gl_ prefix rather than ac_.
54705         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54706         with other defines.
54707         * modules/double-slash-root: New module.
54708         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54709         (Depends-on): Add double-slash-root.
54710         * MODULES.html.sh (File system functions): Mention new module.
54711
54712 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54713
54714         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54715         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54716         This is for the benefit of gzip, which doesn't do i18n.
54717
54718 2006-12-12  Jim Meyering  <jim@meyering.net>
54719
54720         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54721         Reported by Andreas Schwab <schwab@suse.de>.
54722
54723 2006-12-12  Bruno Haible  <bruno@clisp.org>
54724
54725         Merge these changes.
54726         2006-09-05  Bruno Haible  <bruno@clisp.org>
54727         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54728         iconv_alloc succeeded.
54729         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54730         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54731         test for " && dest " at the end - dest is always != NULL there. Call
54732         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54733         with 2xNULL arguments, also to flush the state storage. Handle the
54734         IRIX iconv behaviour. Realloc the final result, to throw away unused
54735         memory.
54736
54737 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54738
54739         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54740         and fchmodat unconditionally, since glibc 2.4 has them.
54741         Problem reported by Arkadiusz Miskiewicz.
54742
54743 2006-12-10  Bruno Haible  <bruno@clisp.org>
54744
54745         * gnulib-tool (func_import): Show the include files only for those
54746         modules that are copied and specified.
54747         Reported by Karl Berry.
54748
54749 2006-12-08  Jim Meyering  <jim@meyering.net>
54750
54751         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54752         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54753
54754         * build-aux/announce-gen: Add two new options, both optional:
54755         --bootstrap-tools=TOOL_LIST
54756               a comma-separated list of tools, e.g.,
54757               autoconf,automake,bison,gnulib
54758         --gnulib-snapshot-date=DATE
54759               if gnulib is in the bootstrap tool list,
54760               then report this as the snapshot date.
54761               If not specified, use the current date/time.
54762               If you specify a date here, be sure it's UTC.
54763
54764 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54765
54766         * tests/test-argp-2.sh: Fix test to match actual output.
54767         (func_compare): Fix sed script to be portable.
54768
54769 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54772         workaround for this case.  It is not autoconfigured now; offhand
54773         it's hard to see how to autoconfigure it.
54774
54775 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54778         a directory that is about to be chowned.  Such a directory's
54779         initial file permissions should permit the owner only and this
54780         should not be changed until after the chown, since the group and
54781         other bits would be incorrect if they granted permission before
54782         the chown.
54783
54784         Fix porting problem for iswctype reported by Georg Schwarz in:
54785         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54786         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54787         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54789         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54790
54791 2006-12-03  Jim Meyering  <jim@meyering.net>
54792
54793         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54794         p->fts_statp may not yet be defined.
54795         (fts_read): Instead, set it in the caller, once p->fts_statp is
54796         sure to be defined, and corresponds to a top-level directory.
54797         This bug made du -x fail.  Here's the coreutils test case:
54798         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54799         Reported by Mike Frysinger.
54800
54801 2006-12-01  Jim Meyering  <jim@meyering.net>
54802
54803         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54804         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54805         Reported by Simon Josefsson.
54806
54807 2006-11-30  Jim Meyering  <jim@meyering.net>
54808
54809         * m4/warning.m4: Use the all-permissive copyright notice
54810         recommended by RMS (rather than LGPL).
54811         * m4/vararrays.m4: Likewise.
54812         * m4/flexmember.m4: Likewise.
54813
54814 2006-11-29  Bruno Haible  <bruno@clisp.org>
54815
54816         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54817         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54818         using +=.
54819         Reported by Simon Josefsson <simon@josefsson.org>.
54820
54821 2006-11-28  James Youngman <jay@gnu.org>
54822
54823         * README: Advise users that they might find the bug-gnulib@gnu.org
54824         and autotools-announce@gnu.org mailing lists useful.
54825
54826 2006-11-28  Bruno Haible  <bruno@clisp.org>
54827
54828         * m4/ptrdiff_max.m4: Remove file.
54829
54830 2006-11-21  Bruno Haible  <bruno@clisp.org>
54831
54832         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54833         _AC_COMPUTE_INT.
54834         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54835         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54836         _AC_COMPUTE_INT.
54837         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54838         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54839         _AC_COMPUTE_INT.
54840         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54841
54842 2006-11-28  Jim Meyering  <jim@meyering.net>
54843
54844         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54845         warning from "gcc -Wshadow" about shadowing the builtin.
54846
54847 2006-11-27  Bruno Haible  <bruno@clisp.org>
54848
54849         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54850         _AC_COMPUTE_INT.
54851         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54852
54853 2006-11-27  Bruno Haible  <bruno@clisp.org>
54854             Paul Eggert  <eggert@cs.ucla.edu>
54855
54856         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54857
54858 2006-11-26  Bruno Haible  <bruno@clisp.org>
54859
54860         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54861         noinst_LTLIBRARIES.
54862
54863 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54864             Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54867         if compiling with "gcc -ansi".
54868
54869 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54870
54871         Fix some incompatibilities with gcc -ansi -pedantic.
54872         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54873         if compiling pedantically with GCC, unless it's C99 or later.
54874         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54875         it mishandles gcc -ansi -pedantic as well.
54876         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54877         if gcc -pedantic.
54878         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54879         initializers for struct if -pedantic, unless it's C99 or later.
54880
54881 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54882
54883         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54884         Don't close an fd more than once. Identical atimes indicate
54885         success, not failure.
54886
54887 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54888
54889         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54890
54891 2006-11-23  Jim Meyering  <jim@meyering.net>
54892
54893         * build-aux/announce-gen: New file.  From coreutils.
54894
54895 2006-11-22  Jim Meyering  <jim@meyering.net>
54896
54897         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54898         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54899         (fts_read): Use a temporary to narrow the overused st_size member
54900         before using it in a switch statement.  Reported by Matthew Woehlke.
54901
54902         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54903         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54904
54905 2006-11-20  Bruno Haible  <bruno@clisp.org>
54906
54907         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54908         changequote instead of pairs of brackets.
54909         Reported by Andreas Schwab <schwab@suse.de>.
54910
54911 2006-11-21  Jim Meyering  <jim@meyering.net>
54912
54913         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54914         so as to remain compatible with older compilers.
54915         Patch from Michael Deutschmann.
54916
54917 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54918
54919         * MODULES.html.sh (File system functions): Add openat.
54920
54921         * lib/openat.h (rpl_fstatat): New macro, if
54922         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54923         (fstatat): Define to rpl_fstatat under the same conditions,
54924         unless COMPILING_FSTATAT.
54925         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54926         seems to have the bug.
54927         * lib/fstatat.c: New file.
54928         * modules/openat (Files): Add it.
54929
54930 2006-11-20  Bruno Haible  <bruno@clisp.org>
54931
54932         * Makefile: New file.
54933
54934 2006-11-20  Jim Meyering  <jim@meyering.net>
54935
54936         The beginnings of syntax-related checks for gnulib.
54937         * lib/Makefile: New file.
54938         * lib/t-idcache: New script.  Ensure that the two halves of
54939         idcache.c stay in sync.
54940
54941         * lib/idcache.c: Adjust comments in user- and group- portions to
54942         be more accurate, and to be consistent with one another.
54943
54944 2006-11-20  Jim Meyering  <jim@meyering.net>
54945
54946         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54947         continue using the flexible array member (thus, this module performs
54948         half as many malloc calls), with the addition that...
54949         (getgroup, getuser): Consistently record a non-match via an empty
54950         "name" string, and map an empty string match to a NULL return value.
54951         * modules/idcache (Depends-on): Re-add flexmember.
54952
54953         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54954         (getuidbyname, getgroup, getgidbyname): Likewise.
54955
54956         Use cleaner syntax: NULL rather than 0.
54957         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54958
54959 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54960
54961         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54962         It mishandled the case where the group was missing.
54963         Problem reported by Greg Schafer.
54964         * modules/idcache: Likewise.
54965
54966 2006-11-18  Jim Meyering  <jim@meyering.net>
54967
54968         * check-module (%exempt_header): Add exception for some
54969         conditionally-included headers.
54970
54971         * modules/i-ring (Depends-on): Add verify.
54972         (License): Change to LGPL.
54973
54974 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54977         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54978         and inttostr.h.  Use snprintf rather than uinttostr, so that
54979         LGPLed code doesn't depend on GPLed.
54980
54981 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54982
54983         * modules/inline (License): Change from GPL to LGPL.
54984
54985 2006-11-17  Jim Meyering  <jim@meyering.net>
54986
54987         * modules/d-type (License): Switch to LGPL.
54988
54989 2006-11-15  Bruno Haible  <bruno@clisp.org>
54990
54991         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54992
54993 2006-11-15  Eric Blake  <ebb9@byu.net>
54994
54995         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54996         the module dependency.
54997
54998 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54999             Bruno Haible  <bruno@clisp.org>
55000
55001         * gnulib-tool (func_create_testdir): Add license consistency check.
55002
55003 2006-11-15  Eric Blake  <ebb9@byu.net>
55004
55005         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55006         random "(cached)" in configure output.
55007
55008 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55009
55010         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55011         test for conforming inttypes.h is both announced and cached.
55012
55013         * MODULES.html.sh (seen_modules, seen_files): New variables.
55014         (func_module): Rewrite to use a few less gnulib-tool and sed
55015         invocations.  Avoid a couple of quadratic algorithms for ...
55016         (missed_modules, missed_files): ... these, with ...
55017         (func_append, func_tmpdir): ... these new functions, from
55018         gnulib-tool.  Analogously, install traps for cleanup.
55019
55020         * tests/test-gc.c (main): Remove unused variables.
55021         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55022
55023 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55024
55025         * modules/inttostr (License): Change to LGPL.
55026
55027 2006-11-14  Eric Blake  <ebb9@byu.net>
55028
55029         * modules/tempname (License): Change to LGPL.
55030
55031 2006-11-14  Eric Blake  <ebb9@byu.net>
55032
55033         * doc/functions.texi (Function Portability): *printf functions on
55034         Cygwin now understand all POSIX size specifiers.
55035
55036 2006-11-14  Bruno Haible  <bruno@clisp.org>
55037
55038         * modules/c-ctype (License): Change to LGPL.
55039
55040 2006-11-12  Bruno Haible  <bruno@clisp.org>
55041
55042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55043         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55044         for GNOME libraries, for which the include files are installed in
55045         subdirectories of $prefix/include.
55046
55047 2006-11-12  Bruno Haible  <bruno@clisp.org>
55048
55049         * m4/lib-link.m4: Require at least autoconf-2.54.
55050         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55051         name to underscores for the --with option.
55052
55053 2006-11-13  Bruno Haible  <bruno@clisp.org>
55054
55055         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55056         the tests directory.
55057         Reported by Ralf Wildenhues.
55058
55059 2006-11-13  Bruno Haible  <bruno@clisp.org>
55060
55061         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55062         (func_emit_initmacro_end): Undo the override here.
55063         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55064         Works around the famous automake error in coreutils.
55065
55066 2006-11-13  Eric Blake  <ebb9@byu.net>
55067
55068         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55069         element, not its node.
55070
55071 2006-11-12  Bruno Haible  <bruno@clisp.org>
55072
55073         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55074         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55075
55076 2006-11-12  Bruno Haible  <bruno@clisp.org>
55077
55078         * gnulib-tool: New option --local-symlink.
55079         (func_usage): Document it.
55080         (lsymbolic): New variable.
55081         (func_import, func_create_testdir): If --symlink was not specified,
55082         test whether --local-symlink was specified and the file comes from
55083         the local_gnulib_dir.
55084
55085 2006-11-12  Bruno Haible  <bruno@clisp.org>
55086
55087         * gnulib-tool (func_ln): New function.
55088         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55089
55090 2006-11-12  Bruno Haible  <bruno@clisp.org>
55091
55092         Finish support for source files in subdirectories.
55093         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55094         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55095         AUTOMAKE_OPTIONS.
55096         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55097
55098 2006-11-12  Bruno Haible  <bruno@clisp.org>
55099
55100         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55101         EXTRA_lib_SOURCES augmentation.
55102         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55103
55104 2006-11-12  Jim Meyering  <jim@meyering.net>
55105
55106         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55107         file descriptors.  This also averts a failure on systems with
55108         native openat support when a traversed directory lacks "x" access.
55109         * lib/fts_.h: Include "i-ring.h"
55110         (struct FTS) [fts_fd_ring]: New member.
55111         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55112         (FCHDIR): Add parentheses.
55113         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55114         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55115         When descending, rather than simply closing the previous
55116         fts_cwd_fd value, push that file descriptor onto the ring.
55117         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55118         (fts_open): Initialize the new fd_ring member.
55119         (fts_close): Clear the ring.
55120         (fts_safe_changedir): When possible, use our new fd_ring to skip
55121         the diropen and fstat and dev/ino comparison that would normally
55122         accompany a virtual `chdir ("..")'.
55123
55124         * modules/fts (Depends-on): Add i-ring.
55125         * modules/i-ring: New module.
55126         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55127         * m4/i-ring.m4: New file.
55128
55129 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55130
55131         * gnulib-tool (func_create_testdir): Fix replacement of
55132         `build-aux' in configure.ac.  Run autotools in gltests
55133         subdirectory.
55134         (func_create_testdir, func_create_megatestdir, test): There is
55135         no need for '--force' in most autotool invocations in a new
55136         tree.  Actually fail the whole test if any of the tools, or the
55137         configure or make stages fail.
55138
55139         Sync from Automake.
55140         * build-aux/gnupload: Revert last change.  Add pointer to upload
55141         instructions of the GNU Maintenance Instructions.
55142         Suggestion by Karl Berry.
55143
55144 2006-11-10  Jim Meyering  <jim@meyering.net>
55145
55146         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55147
55148 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55151         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55152         (bind_textdomain_codeset) [! ENABLE_NLS]:
55153         Evaluate all the arguments.  That way, callers get compatible behavior
55154         if the arguments have side effects.  Also, it avoids some GCC
55155         diagnostics in some cases; Joel E. Denny reported problems when Bison
55156         was configured with --enable-gcc-warnigs.
55157
55158 2006-11-10  Jim Meyering  <jim@meyering.net>
55159
55160         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55161         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55162         account.
55163
55164 2006-11-10  Jim Meyering  <jim@meyering.net>
55165
55166         * modules/inline: New file/module.
55167         * modules/xalloc (Files): Remove m4/inline.m4.
55168         (Depends-on): Add inline, instead.
55169         * modules/oset: Likewise.
55170         * modules/list: Likewise.
55171
55172 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55175         Problem reported by Matthew Woehlke.
55176
55177 2006-11-09  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/tempname.c (gen_tempname): Remove variant that invokes
55180         __gen_tempname.
55181         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55182         __gen_tempname.
55183
55184 2006-11-08  Bruno Haible  <bruno@clisp.org>
55185
55186         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55187         to 'yes' instead of 'cross-compiling'.
55188
55189 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55190
55191         * lib/quotearg.h (quotearg_free): New decl.
55192         * lib/quotearg.c (quotearg_free): New function.
55193         (slot0, nslots, slotvec0, slotvec):
55194         Now file-scope so that quotearg_free can get at them.
55195
55196 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55197
55198         Sync from Automake.
55199         * build-aux/gnupload: Add missing 'gnu' to example URL.
55200         Report by Karl Berry.
55201
55202 2006-11-08  Bruno Haible  <bruno@clisp.org>
55203
55204         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55205         Suggested by Paul Eggert.
55206
55207 2006-11-08  Jim Meyering  <jim@meyering.net>
55208
55209         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55210         It's already included if !_LIBC.
55211         (fts_safe_changedir): Add a comment.
55212
55213 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55216         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55217         Matthew Woehlke.
55218
55219         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55220         definitions up, to avoid colliding with change below.
55221         (static_inline) [HAVE_INLINE]: New macro.
55222         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55223         Provide extern decls when !HAVE_INLINE.  Do not define unless
55224         static_inline is defined, either by us or by xmalloc.c.  Use
55225         static_inline rather than static inline.
55226         (XCALLOC): Optimize sizeof(T) = 1 case.
55227         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55228
55229 2006-11-07  Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55232         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55233         AC_C_INLINE.
55234         * modules/xalloc (Files): Add m4/inline.m4.
55235
55236 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55237
55238         * README: Fix typo.
55239         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55240         (Miscellanous Notes): ...from this.
55241
55242 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55243
55244         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55245         Mention that offsetof should be used instead of sizeof.
55246         From Bruno Haible.
55247
55248 2006-11-07  Bruno Haible  <bruno@clisp.org>
55249
55250         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55251
55252 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55253
55254         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55255         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55256         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55257         (gl_tree_add_before, gl_tree_add_after):
55258         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55259         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55260         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55261         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55262         (gl_linked_add_after, gl_linked_add_at): Likewise.
55263         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55264         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55265         (gl_tree_add_before, gl_tree_add_after): Likewise.
55266         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55267         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55268         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55269
55270 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55271
55272         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55273
55274 2006-11-06  Bruno Haible  <bruno@clisp.org>
55275
55276         * m4/inline.m4: New file.
55277         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55278         * modules/list (Files): Add m4/inline.m4.
55279         * modules/oset (Files): Likewise.
55280
55281 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55282
55283         * lib/idcache.c: Include <stddef.h>, for offsetof.
55284         (struct userid.name): Change from char * to a flexible array member.
55285         All uses changed.
55286         * modules/idcache (Depends-on): Add flexmember.
55287
55288         * MODULES.html.sh (Core language properties): New module flexmember.
55289         * modules/flexmember, m4/flexmember.m4: New files.
55290
55291         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55292         inline functions that are identical with the old xnmalloc_inline,
55293         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55294         that we can avoid some unnecessary integer multiplications and
55295         divisions in the common case where the element size is known at
55296         compile time.
55297         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55298         needed.
55299         (xnboundedmalloc): Remove.
55300         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55301         arguments, for consistency with rest of this header.
55302         (xcharalloc): Rewrite using XNMALLOC.
55303         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55304         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55305         versions have been moved to lib/xalloc.h and renamed to be the
55306         non-*_inline versions.
55307         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55308         and xnrealloc functions, since those functions are now inline and
55309         now call us.
55310         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55311         renaming described above.
55312         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55313         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55314         captures the dependency in AC_C_INLINE.
55315
55316         New module canonicalize-lgpl, proposed by Charles Wilson in
55317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55318         with a few small changes afterwards.
55319         * MODULES.html.sh (File system functions): New module
55320         canonicalize-lgpl.
55321         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55322         and canonicalize_file_name.
55323         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55324         * modules/canonicalize-lgpl: New files.
55325
55326 2006-11-05  Bruno Haible  <bruno@clisp.org>
55327
55328         * gnulib-tool (func_import, func_create_testdir): Create directories
55329         also for files in subdirectories of lib/.
55330
55331 2006-11-05  Bruno Haible  <bruno@clisp.org>
55332
55333         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55334         ANSI C compliant.
55335
55336 2006-11-03  Bruno Haible  <bruno@clisp.org>
55337
55338         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55339         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55340         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55341         (xnboundedmalloc): New inline function.
55342         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55343         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55344         xmalloc.
55345         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55346         xmalloc.
55347         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55348         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55349         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55350         xmalloc.
55351         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55352         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55353         xmalloc.
55354         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55355         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55356         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55357         xmalloc.
55358         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55359         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55360         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55361         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55362         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55363         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55364         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55365
55366 2006-11-03  Bruno Haible  <bruno@clisp.org>
55367
55368         * lib/c-ctype.h [C++]: Define functions without name mangling.
55369         * lib/fwriteerror.h [C++]: Likewise.
55370         * lib/gcd.h [C++]: Likewise.
55371         * lib/linebreak.h [C++]: Likewise.
55372
55373 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55374
55375         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55376         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55377         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55378         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55379         Check for functions and headers just once.
55380         Check for declaration of canonicalize_file_name.
55381         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55382
55383 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55384
55385         * gnulib-tool (func_import): Fix typo in actioncmd.
55386
55387 2006-11-02  Bruno Haible  <bruno@clisp.org>
55388
55389         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55390         newline sequence in the Makefile.am snippet as a space, like "make"
55391         does.
55392         Reported by Roger Persson <perrog@gmail.com>.
55393
55394 2006-11-01  Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55397         already declared in <string.h>.
55398         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55399
55400 2006-11-01  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55403         * lib/strcase.h: Include <string.h>.
55404         (strcasecmp): Define to rpl_strcasecmp here.
55405
55406 2006-11-01  Bruno Haible  <bruno@clisp.org>
55407
55408         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55409
55410 2006-11-01  Eric Blake  <ebb9@byu.net>
55411
55412         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55413
55414         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55415
55416 2006-10-29  Bruno Haible  <bruno@clisp.org>
55417
55418         Make it compile in C++ mode.
55419         * lib/full-write.c (full_rw): Add a cast.
55420
55421 2006-11-01  Bruno Haible  <bruno@clisp.org>
55422
55423         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55424         be POSIX compliant.
55425         Reported by Roger Persson <perrog@gmail.com>.
55426
55427 2006-11-01  Eric Blake  <ebb9@byu.net>
55428
55429         * lib/getopt_.h: Fix comments.
55430
55431 2006-10-31  Eric Blake  <ebb9@byu.net>
55432
55433         * modules/tmpdir (Depends-on): Add sys_stat.
55434         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55435         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55436         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55437         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55438         tempname.
55439
55440 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         Avoid some C++ diagnostics reported by Bruno Haible.
55443         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55444         xmalloc.
55445         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55446         (struct slotvec): Move to top level.
55447         (quotearg_n_options): Rewrite to avoid xmalloc.
55448         * lib/xalloc.h (xcharalloc): New function.
55449         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55450         [defined __cplusplus]: Add function template that provides result
55451         type propagation.  This part of the change is from Bruno Haible.
55452
55453 2006-10-29  Bruno Haible  <bruno@clisp.org>
55454
55455         Make it compile in C++ mode.
55456         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55457         * lib/strnlen1.c (strnlen1): Cast memchr result.
55458         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55459         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55460         (create_temp_dir): Rename local variable 'template'.
55461         (compile_csharp_using_sscli): Add cast.
55462         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55463         * lib/findprog.c (find_in_path): Likewise.
55464         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55465         * lib/wait-process.c (register_slave_subprocess): Likewise.
55466
55467 2006-10-22  Bruno Haible  <bruno@clisp.org>
55468
55469         * modules/tsearch: New file.
55470         * lib/tsearch.h: New file.
55471         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55472         * m4/tsearch.m4: New file.
55473         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55474
55475 2006-10-29  Eric Blake  <ebb9@byu.net>
55476
55477         * lib/arcfour.c: Assume config.h.
55478         * lib/arctwo.c: Likewise.
55479         * lib/base64.c: Likewise.
55480         * lib/check-version.c: Likewise.
55481         * lib/crc.c: Likewise.
55482         * lib/des.c: Likewise.
55483         * lib/gc-gnulib.c: Likewise.
55484         * lib/gc-libgcrypt.c: Likewise.
55485         * lib/gc-pbkdf2-sha1.c: Likewise.
55486         * lib/getaddrinfo.c: Likewise.
55487         * lib/getdelim.c: Likewise.
55488         * lib/getline.c: Likewise.
55489         * lib/hmac-md5.c: Likewise.
55490         * lib/hmac-sha1.c: Likewise.
55491         * lib/iconvme.c: Likewise.
55492         * lib/md2.c: Likewise.
55493         * lib/md4.c: Likewise.
55494         * lib/memxor.c: Likewise.
55495         * lib/read-file.c: Likewise.
55496         * lib/readline.c: Likewise.
55497         * lib/rijndael-alg-fst.c: Likewise.
55498         * lib/rijndael-api-fst.c: Likewise.
55499         * lib/xgetdomainname.c: Likewise.
55500
55501 2006-10-28  Eric Blake  <ebb9@byu.net>
55502
55503         * lib/xstrndup.c: Assume config.h.
55504
55505 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55508         stat-macros.h is now for our own macros, whereas stat_h is for
55509         macros in the <sys/stat.h> name space.
55510         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55511         (STAT_MACROS_H): Remove.
55512         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55513         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55514         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55515         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55516         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55517         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55518         Move these macros to ...
55519         * lib/stat_.h: here.  Don't include stat-macros.h.
55520         * lib/canonicalize.c: Don't include stat-macros.h.
55521         * lib/chown.c: Likewise.
55522         * lib/euidaccess.c: Likewise.
55523         * lib/file-type.c: Likewise.
55524         * lib/filemode.c: Likewise.
55525         * lib/glob.c: Likewise.
55526         * lib/isapipe.c: Likewise.
55527         * lib/lchown.c: Likewise.
55528         * lib/lstat.c: Likewise.
55529         * lib/mkdir-p.c: Likewise.
55530         * lib/rmdir.c: Likewise.
55531         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55532         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55533         unless mkdir isn't declared, to speed up 'configure'.
55534         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55535         would define all the S_* symbols.
55536         * modules/canonicalize (Depends-on):
55537         Depend on sys_stat, not stat-macros.
55538         * modules/chown: Likewise.
55539         * modules/euidaccess: Likewise.
55540         * modules/filemode: Likewise.
55541         * modules/file-type: Likewise.
55542         * modules/glob: Likewise.
55543         * modules/isapipe: Likewise.
55544         * modules/lchown: Likewise.
55545         * modules/lstat: Likewise.
55546         * modules/mkancesdirs: Likewise.
55547         * modules/rmdir: Likewise.
55548         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55549         * modules/modechange: Likewise.
55550         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55551         (configure.ac): Remove gl_STAT_MACROS.
55552         * modules/sys_stat (Depends-on): Remove stat-macros.
55553
55554 2006-10-27  Bruno Haible  <bruno@clisp.org>
55555
55556         * m4/signed.m4: Remove file.
55557         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55558         invocation.
55559         * modules/vasnprintf (Files): Remove m4/signed.m4.
55560
55561 2006-10-27  Bruno Haible  <bruno@clisp.org>
55562
55563         Update to GNU gettext 0.16.
55564         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55565         m4/inttypes-h.m4, m4/signed.m4.
55566         * m4/gettext.m4: Update to GNU gettext 0.16.
55567         * m4/intl.m4: New file, from GNU gettext.
55568         * m4/intldir.m4: New file, from GNU gettext.
55569         * config/srclist.txt: Update
55570
55571 2006-10-27  Eric Blake  <ebb9@byu.net>
55572
55573         * MODULES.html.sh: Document tempname.
55574         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55575         dependencies.
55576         (Files): Move lib/tempname.c...
55577         * modules/tempname: ...to this new module.
55578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55579         (gl_PREREQ_TEMPNAME): Move...
55580         * m4/tempname.m4: ...to this new file.
55581         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55582         * modules/sys_stat (Depends-on): Add stat-macros.
55583         * lib/stat_.h (includes): Pick up stat macros.
55584         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55585         if stat macros are broken.
55586         * lib/tempname.c (includes): No need to include "stat-macros.h".
55587         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55588         (direxists, __path_search) [!_LIBC]: Don't compile these in
55589         gnulib; the tmpdir module covers that.
55590         * lib/tempname.h: New file.
55591
55592 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55593
55594         * COPYING: Explain how gnulib-tool converts licence headers.
55595         Almost all wording by Eric Blake.
55596
55597 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55598
55599         * lib/mbchar.h (is_basic_table): Make read-only.
55600         * lib/mbchar.c (is_basic_table): Likewise.
55601         Reported by John Darrington.
55602
55603 2006-10-25  Bruno Haible  <bruno@clisp.org>
55604
55605         * lib/progname.h (set_program_name): Undefine before defining.
55606
55607 2006-10-25  Bruno Haible  <bruno@clisp.org>
55608
55609         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55610         false for non-gcc C++ compilers.
55611         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55612
55613 2006-10-24  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55616         iconv implementations like Irix iconv.
55617
55618 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55619
55620         * modules/vararrays: New file.
55621         * m4/vararrays.m4: New file, taken from diffutils.
55622         * MODULES.html.sh: New module vararrays.
55623
55624 2006-10-24  Karl Berry  <karl@gnu.org>
55625
55626         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55627         Don't call GNU Unix.
55628
55629 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55630
55631         * users.txt: Add Libtool.
55632
55633         Sync from Libtool:
55634
55635         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55636
55637         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55638         to gnulib's policy of including config.h unconditionally.
55639
55640 2006-10-24  Bruno Haible  <bruno@clisp.org>
55641
55642         * modules/wcwidth (Files): Add m4/wint_t.m4.
55643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55644         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55645
55646 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55647
55648         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55649         to pacify GCC with some -W flags enabled.  Problem reported by
55650         Bruno Haible.
55651
55652 2006-10-24  Jim Meyering  <jim@meyering.net>
55653
55654         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55655         Reported by Karl Berry.
55656
55657 2006-10-23  Bruno Haible  <bruno@clisp.org>
55658
55659         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55660
55661 2006-10-24  Bruno Haible  <bruno@clisp.org>
55662
55663         * lib/gl_list.h: Use C comment style, not C++ comment style.
55664
55665 2006-10-23  Eric Blake  <ebb9@byu.net>
55666
55667         * lib/getaddrinfo.c (includes): Add missing include.
55668
55669 2006-10-23  Bruno Haible  <bruno@clisp.org>
55670             Paul Eggert  <eggert@cs.ucla.edu>
55671
55672         Ability to rename obstack_free.
55673         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55674         obstack_free.
55675         (obstack_free): Invoke the __obstack_free macro.
55676         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55677
55678 2006-10-23  Bruno Haible  <bruno@clisp.org>
55679             Paul Eggert  <eggert@cs.ucla.edu>
55680
55681         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55682         __argc, __argv from the declaration. (They are defined as macros on
55683         mingw.)
55684
55685 2006-10-22  Bruno Haible  <bruno@clisp.org>
55686
55687         * doc/gnulib-intro.texi: New file.
55688         * doc/gnulib.texi: Include it.
55689
55690 2006-10-21  Bruno Haible  <bruno@clisp.org>
55691
55692         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55693         "Introduction", "Miscellanous Notes", "Particular Modules".
55694
55695 2006-10-21  Bruno Haible  <bruno@clisp.org>
55696
55697         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55698         Change mostlyclean-local rule to avoid sh syntax error from bash
55699         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55700
55701 2006-10-23  Jim Meyering  <jim@meyering.net>
55702
55703         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55704         in place of snprintf.
55705
55706         * modules/inttostr (Files): Add lib/uinttostr.c.
55707         * lib/uinttostr.c (inttostr): New file/function.
55708         * lib/inttostr.h (uinttostr): Declare.
55709         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55710         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55711         Add uinttostr.
55712         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55713
55714 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55715
55716         * lib/canonicalize.c (ELOOP): Define if not already defined.
55717         Problem reported by Bruno Haible in
55718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55719
55720 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55723         Problem reported by Perry Smith and Ville Laurikari.
55724
55725         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55726         uses.
55727
55728 2006-10-19  Bruno Haible  <bruno@clisp.org>
55729
55730         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55731         for mingw.
55732
55733 2006-10-19  Bruno Haible  <bruno@clisp.org>
55734
55735         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55736         Needed for mingw.
55737
55738 2006-10-19  Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55741
55742 2006-10-19  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55745         it.
55746
55747 2006-10-19  Bruno Haible  <bruno@clisp.org>
55748
55749         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55750         invocation.
55751
55752 2006-10-19  Bruno Haible  <bruno@clisp.org>
55753
55754         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55755         mountlist by default.
55756
55757 2006-10-16  Bruno Haible  <bruno@clisp.org>
55758
55759         * lib/c-strstr.c: Include c-strstr.h.
55760
55761 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55762
55763         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55764         in a slash.
55765
55766 2006-10-18  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/lock.h [C++]: Wrap definitions in extern "C".
55769
55770 2006-10-18  Bruno Haible  <bruno@clisp.org>
55771
55772         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55773         gl_LIBOBJS list.
55774
55775 2006-10-18  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55778
55779 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55780
55781         * lib/xstrtol.h: Include gettext.h.
55782         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55783         Problem reported by Eric Blake.
55784         * modules/xstrtol (Depends-on): Add gettext-h.
55785
55786 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55787
55788         * lib/strftime.c (advance): New macro.
55789         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55790         incomplete type, so you can't add 0 to it.  Problem and patch
55791         reported by Eelco Dolstra for dietlibc.
55792
55793 2006-10-18  Jim Meyering  <jim@meyering.net>
55794
55795         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55796         type for a local, and rename it: s/up/user_proc/.
55797
55798 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55799
55800         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55801         READ_UTMP_USER_PROCESS.
55802         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55803
55804 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55807         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55808
55809 2006-10-17  Eric Blake  <ebb9@byu.net>
55810
55811         * lib/sigprocmask.c (sigprocmask): Fix typo.
55812
55813         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55814
55815         * modules/clean-temp (Makefile.am): Don't add to make output...
55816         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55817         config.h.
55818
55819 2006-10-17  Bruno Haible  <bruno@clisp.org>
55820
55821         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55822         differently if DEFAULT_TEXT_DOMAIN is set.
55823
55824 2006-10-16  Bruno Haible  <bruno@clisp.org>
55825
55826         * lib/clean-temp.c: Include fwriteerror.h.
55827
55828 2006-10-16  Bruno Haible  <bruno@clisp.org>
55829
55830         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55831
55832 2006-10-16  Bruno Haible  <bruno@clisp.org>
55833
55834         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55835         * lib/sigprocmask.h: Include <sys/types.h>.
55836         (sigset_t): Use the system's definition if present.
55837
55838 2006-10-17  Eric Blake  <ebb9@byu.net>
55839
55840         * lib/xvasprintf.c (includes): Assume config.h.
55841         * lib/xasprintf.c (includes): Likewise.
55842
55843 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55846         at least as wide as intmax_t.
55847
55848 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55849
55850         (Imported from Automake.)
55851         * build-aux/gnupload: Update to version 1.1 of directive file.
55852
55853 2006-10-16  Eric Blake  <ebb9@byu.net>
55854
55855         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55856         match Automake 1.10a.
55857
55858 2006-10-14  Bruno Haible  <bruno@clisp.org>
55859
55860         * modules/sigprocmask: New file.
55861         * lib/sigprocmask.h: New file.
55862         * lib/sigprocmask.c: New file.
55863         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55864         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55865         request sigprocmask.o.
55866         (gl_PREREQ_SIGPROCMASK): New macro.
55867         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55868         (Depends-on): Add sigprocmask.
55869         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55870         gt_SIGNALBLOCKING. Test for 'raise' only once.
55871         * lib/fatal-signal.c: Include sigprocmask.h.
55872         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55873         unblock_fatal_signals): Define always.
55874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55875         sigprocmask.
55876
55877 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55878
55879         Sync from Automake.
55880         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55881         which incorrectly sets the mode of an existing destination
55882         directory.  In some cases the unpatched install-sh could do the
55883         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55884         system.  We hope this is rare in practice, but it's clearly worth
55885         fixing.  Problem reported by Alex Unleashed in
55886         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55887         Also, don't bother to check for -m bugs unless we're using -m;
55888         suggested by Stepan Kasal.
55889
55890 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55891
55892         Sync from Automake.
55893         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55894         `-c' flag, so they appear at the same position as in %FASTDEP%
55895         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55896         which ignores unknown options only after the first non-option.
55897         Bug report against M4 by Nelson H. F. Beebe.
55898
55899 2006-10-13  Jim Meyering  <jim@meyering.net>
55900
55901         Fix a bug in yesterday's change.
55902         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55903         p->fts_statp->st_dev would be used uninitialized.
55904         Ensures that we always call fts_stat on the very first entry.
55905         Miklos Szeredi reported that find -xdev stopped working.
55906
55907 2006-10-12  Bruno Haible  <bruno@clisp.org>
55908
55909         * gnulib-tool (func_get_automake_snippet): Append an automatically
55910         computed EXTRA_DIST augmentation.
55911         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55912         * modules/alloca-opt (Makefile.am): Likewise.
55913         * modules/allocsa (Makefile.am): Likewise.
55914         * modules/arcfour (Makefile.am): Likewise.
55915         * modules/arctwo (Makefile.am): Likewise.
55916         * modules/argmatch (Makefile.am): Likewise.
55917         * modules/argz (Makefile.am): Likewise.
55918         * modules/atexit (Makefile.am): Likewise.
55919         * modules/backupfile (Makefile.am): Likewise.
55920         * modules/byteswap (Makefile.am): Likewise.
55921         * modules/c-strtod (Makefile.am): Likewise.
55922         * modules/c-strtold (Makefile.am): Likewise.
55923         * modules/calloc (Makefile.am): Likewise.
55924         * modules/canon-host (Makefile.am): Likewise.
55925         * modules/canonicalize (Makefile.am): Likewise.
55926         * modules/chdir-long (Makefile.am): Likewise.
55927         * modules/chdir-safer (Makefile.am): Likewise.
55928         * modules/check-version (Makefile.am): Likewise.
55929         * modules/chown (Makefile.am): Likewise.
55930         * modules/cloexec (Makefile.am): Likewise.
55931         * modules/close-stream (Makefile.am): Likewise.
55932         * modules/closeout (Makefile.am): Likewise.
55933         * modules/crc (Makefile.am): Likewise.
55934         * modules/csharpexec (Makefile.am): Likewise.
55935         * modules/cycle-check (Makefile.am): Likewise.
55936         * modules/des (Makefile.am): Likewise.
55937         * modules/dev-ino (Makefile.am): Likewise.
55938         * modules/dirfd (Makefile.am): Likewise.
55939         * modules/dirname (Makefile.am): Likewise.
55940         * modules/dup2 (Makefile.am): Likewise.
55941         * modules/eealloc (Makefile.am): Likewise.
55942         * modules/error (Makefile.am): Likewise.
55943         * modules/euidaccess (Makefile.am): Likewise.
55944         * modules/exclude (Makefile.am): Likewise.
55945         * modules/exitfail (Makefile.am): Likewise.
55946         * modules/fcntl-safer (Makefile.am): Likewise.
55947         * modules/fcntl (Makefile.am): Likewise.
55948         * modules/file-type (Makefile.am): Likewise.
55949         * modules/fileblocks (Makefile.am): Likewise.
55950         * modules/filemode (Makefile.am): Likewise.
55951         * modules/filenamecat (Makefile.am): Likewise.
55952         * modules/fnmatch (Makefile.am): Likewise.
55953         * modules/fopen-safer (Makefile.am): Likewise.
55954         * modules/fpending (Makefile.am): Likewise.
55955         * modules/fprintftime (Makefile.am): Likewise.
55956         * modules/free (Makefile.am): Likewise.
55957         * modules/fsusage (Makefile.am): Likewise.
55958         * modules/ftruncate (Makefile.am): Likewise.
55959         * modules/fts (Makefile.am): Likewise.
55960         * modules/gc-arcfour (Makefile.am): Likewise.
55961         * modules/gc-des (Makefile.am): Likewise.
55962         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55963         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55964         * modules/gc-md4 (Makefile.am): Likewise.
55965         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55966         * modules/gc-sha1 (Makefile.am): Likewise.
55967         * modules/gc (Makefile.am): Likewise.
55968         * modules/getaddrinfo (Makefile.am): Likewise.
55969         * modules/getcwd (Makefile.am): Likewise.
55970         * modules/getdelim (Makefile.am): Likewise.
55971         * modules/getdomainname (Makefile.am): Likewise.
55972         * modules/getgroups (Makefile.am): Likewise.
55973         * modules/gethostname (Makefile.am): Likewise.
55974         * modules/gethrxtime (Makefile.am): Likewise.
55975         * modules/getline (Makefile.am): Likewise.
55976         * modules/getloadavg (Makefile.am): Likewise.
55977         * modules/getlogin_r (Makefile.am): Likewise.
55978         * modules/getndelim2 (Makefile.am): Likewise.
55979         * modules/getopt (Makefile.am): Likewise.
55980         * modules/getpagesize (Makefile.am): Likewise.
55981         * modules/getpass-gnu (Makefile.am): Likewise.
55982         * modules/getpass (Makefile.am): Likewise.
55983         * modules/getsubopt (Makefile.am): Likewise.
55984         * modules/gettime (Makefile.am): Likewise.
55985         * modules/gettimeofday (Makefile.am): Likewise.
55986         * modules/getugroups (Makefile.am): Likewise.
55987         * modules/getusershell (Makefile.am): Likewise.
55988         * modules/glob (Makefile.am): Likewise.
55989         * modules/group-member (Makefile.am): Likewise.
55990         * modules/hard-locale (Makefile.am): Likewise.
55991         * modules/hash (Makefile.am): Likewise.
55992         * modules/hmac-md5 (Makefile.am): Likewise.
55993         * modules/hmac-sha1 (Makefile.am): Likewise.
55994         * modules/human (Makefile.am): Likewise.
55995         * modules/idcache (Makefile.am): Likewise.
55996         * modules/imaxabs (Makefile.am): Likewise.
55997         * modules/imaxdiv (Makefile.am): Likewise.
55998         * modules/inet_ntop (Makefile.am): Likewise.
55999         * modules/inet_pton (Makefile.am): Likewise.
56000         * modules/intprops (Makefile.am): Likewise.
56001         * modules/inttostr (Makefile.am): Likewise.
56002         * modules/inttypes (Makefile.am): Likewise.
56003         * modules/isapipe (Makefile.am): Likewise.
56004         * modules/javaversion (Makefile.am): Likewise.
56005         * modules/lchmod (Makefile.am): Likewise.
56006         * modules/lchown (Makefile.am): Likewise.
56007         * modules/localcharset (Makefile.am): Likewise.
56008         * modules/long-options (Makefile.am): Likewise.
56009         * modules/lstat (Makefile.am): Likewise.
56010         * modules/malloc (Makefile.am): Likewise.
56011         * modules/mathl (Makefile.am): Likewise.
56012         * modules/mbchar (Makefile.am): Likewise.
56013         * modules/md2 (Makefile.am): Likewise.
56014         * modules/md4 (Makefile.am): Likewise.
56015         * modules/md5 (Makefile.am): Likewise.
56016         * modules/memcasecmp (Makefile.am): Likewise.
56017         * modules/memchr (Makefile.am): Likewise.
56018         * modules/memcmp (Makefile.am): Likewise.
56019         * modules/memcoll (Makefile.am): Likewise.
56020         * modules/memcpy (Makefile.am): Likewise.
56021         * modules/memmem (Makefile.am): Likewise.
56022         * modules/memmove (Makefile.am): Likewise.
56023         * modules/mempcpy (Makefile.am): Likewise.
56024         * modules/memrchr (Makefile.am): Likewise.
56025         * modules/memset (Makefile.am): Likewise.
56026         * modules/memxor (Makefile.am): Likewise.
56027         * modules/mkancesdirs (Makefile.am): Likewise.
56028         * modules/mkdir-p (Makefile.am): Likewise.
56029         * modules/mkdir (Makefile.am): Likewise.
56030         * modules/mkdtemp (Makefile.am): Likewise.
56031         * modules/mkstemp (Makefile.am): Likewise.
56032         * modules/mktime (Makefile.am): Likewise.
56033         * modules/modechange (Makefile.am): Likewise.
56034         * modules/mountlist (Makefile.am): Likewise.
56035         * modules/nanosleep (Makefile.am): Likewise.
56036         * modules/obstack (Makefile.am): Likewise.
56037         * modules/openat (Makefile.am): Likewise.
56038         * modules/pagealign_alloc (Makefile.am): Likewise.
56039         * modules/pathmax (Makefile.am): Likewise.
56040         * modules/physmem (Makefile.am): Likewise.
56041         * modules/poll (Makefile.am): Likewise.
56042         * modules/posixtm (Makefile.am): Likewise.
56043         * modules/posixver (Makefile.am): Likewise.
56044         * modules/putenv (Makefile.am): Likewise.
56045         * modules/quote (Makefile.am): Likewise.
56046         * modules/quotearg (Makefile.am): Likewise.
56047         * modules/raise (Makefile.am): Likewise.
56048         * modules/read-file (Makefile.am): Likewise.
56049         * modules/readline (Makefile.am): Likewise.
56050         * modules/readlink (Makefile.am): Likewise.
56051         * modules/readtokens (Makefile.am): Likewise.
56052         * modules/readutmp (Makefile.am): Likewise.
56053         * modules/realloc (Makefile.am): Likewise.
56054         * modules/regex (Makefile.am): Likewise.
56055         * modules/rename-dest-slash (Makefile.am): Likewise.
56056         * modules/rename (Makefile.am): Likewise.
56057         * modules/rijndael (Makefile.am): Likewise.
56058         * modules/rmdir (Makefile.am): Likewise.
56059         * modules/rpmatch (Makefile.am): Likewise.
56060         * modules/safe-read (Makefile.am): Likewise.
56061         * modules/safe-write (Makefile.am): Likewise.
56062         * modules/same-inode (Makefile.am): Likewise.
56063         * modules/same (Makefile.am): Likewise.
56064         * modules/save-cwd (Makefile.am): Likewise.
56065         * modules/savedir (Makefile.am): Likewise.
56066         * modules/setenv (Makefile.am): Likewise.
56067         * modules/settime (Makefile.am): Likewise.
56068         * modules/sha1 (Makefile.am): Likewise.
56069         * modules/sig2str (Makefile.am): Likewise.
56070         * modules/snprintf (Makefile.am): Likewise.
56071         * modules/stat-macros (Makefile.am): Likewise.
56072         * modules/stat-time (Makefile.am): Likewise.
56073         * modules/stdbool (Makefile.am): Likewise.
56074         * modules/stdint (Makefile.am): Likewise.
56075         * modules/stdlib-safer (Makefile.am): Likewise.
56076         * modules/stpcpy (Makefile.am): Likewise.
56077         * modules/stpncpy (Makefile.am): Likewise.
56078         * modules/strcase (Makefile.am): Likewise.
56079         * modules/strcasestr (Makefile.am): Likewise.
56080         * modules/strchrnul (Makefile.am): Likewise.
56081         * modules/strcspn (Makefile.am): Likewise.
56082         * modules/strdup (Makefile.am): Likewise.
56083         * modules/strerror (Makefile.am): Likewise.
56084         * modules/strftime (Makefile.am): Likewise.
56085         * modules/strndup (Makefile.am): Likewise.
56086         * modules/strnlen (Makefile.am): Likewise.
56087         * modules/strpbrk (Makefile.am): Likewise.
56088         * modules/strsep (Makefile.am): Likewise.
56089         * modules/strstr (Makefile.am): Likewise.
56090         * modules/strtod (Makefile.am): Likewise.
56091         * modules/strtoimax (Makefile.am): Likewise.
56092         * modules/strtok_r (Makefile.am): Likewise.
56093         * modules/strtol (Makefile.am): Likewise.
56094         * modules/strtoll (Makefile.am): Likewise.
56095         * modules/strtoul (Makefile.am): Likewise.
56096         * modules/strtoull (Makefile.am): Likewise.
56097         * modules/strtoumax (Makefile.am): Likewise.
56098         * modules/strverscmp (Makefile.am): Likewise.
56099         * modules/sys_socket (Makefile.am): Likewise.
56100         * modules/sys_stat (Makefile.am): Likewise.
56101         * modules/sysexits (Makefile.am): Likewise.
56102         * modules/time_r (Makefile.am): Likewise.
56103         * modules/timegm (Makefile.am): Likewise.
56104         * modules/timespec (Makefile.am): Likewise.
56105         * modules/tmpfile-safer (Makefile.am): Likewise.
56106         * modules/trim (Makefile.am): Likewise.
56107         * modules/unistd-safer (Makefile.am): Likewise.
56108         * modules/unlinkdir (Makefile.am): Likewise.
56109         * modules/unlocked-io (Makefile.am): Likewise.
56110         * modules/userspec (Makefile.am): Likewise.
56111         * modules/utime (Makefile.am): Likewise.
56112         * modules/utimecmp (Makefile.am): Likewise.
56113         * modules/utimens (Makefile.am): Likewise.
56114         * modules/vasnprintf (Makefile.am): Likewise.
56115         * modules/vasprintf (Makefile.am): Likewise.
56116         * modules/vsnprintf (Makefile.am): Likewise.
56117         * modules/xalloc (Makefile.am): Likewise.
56118         * modules/xgetcwd (Makefile.am): Likewise.
56119         * modules/xnanosleep (Makefile.am): Likewise.
56120         * modules/xreadlink (Makefile.am): Likewise.
56121         * modules/xstrtod (Makefile.am): Likewise.
56122         * modules/xstrtol (Makefile.am): Likewise.
56123         * modules/xstrtold (Makefile.am): Likewise.
56124         * modules/yesno (Makefile.am): Likewise.
56125         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56126
56127 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56128
56129         * modules/error (Makefile.am): Distribute files through
56130         EXTRA_DIST, not lib_SOURCES.
56131
56132 2006-10-12  Eric Blake  <ebb9@byu.net>
56133
56134         * modules/error (Makefile.am): Distribute files in /lib.
56135         * modules/obstack (Makefile.am): Likewise.
56136
56137 2006-10-12  Bruno Haible  <bruno@clisp.org>
56138
56139         * modules/acl (Makefile.am): Distribute all files in lib/ through
56140         EXTRA_DIST.
56141         * modules/arcfour (Makefile.am): Likewise.
56142         * modules/arctwo (Makefile.am): Likewise.
56143         * modules/argmatch (Makefile.am): Likewise.
56144         * modules/argz (Makefile.am): Likewise.
56145         * modules/atexit (Makefile.am): Likewise.
56146         * modules/backupfile (Makefile.am): Likewise.
56147         * modules/c-strtod (Makefile.am): Likewise.
56148         * modules/c-strtold (Makefile.am): Likewise.
56149         * modules/calloc (Makefile.am): Likewise.
56150         * modules/canon-host (Makefile.am): Likewise.
56151         * modules/canonicalize (Makefile.am): Likewise.
56152         * modules/chdir-long (Makefile.am): Likewise.
56153         * modules/chdir-safer (Makefile.am): Likewise.
56154         * modules/check-version (Makefile.am): Likewise.
56155         * modules/chown (Makefile.am): Likewise.
56156         * modules/cloexec (Makefile.am): Likewise.
56157         * modules/close-stream (Makefile.am): Likewise.
56158         * modules/closeout (Makefile.am): Likewise.
56159         * modules/crc (Makefile.am): Likewise.
56160         * modules/cycle-check (Makefile.am): Likewise.
56161         * modules/des (Makefile.am): Likewise.
56162         * modules/dirfd (Makefile.am): Likewise.
56163         * modules/dirname (Makefile.am): Likewise.
56164         * modules/dup2 (Makefile.am): Likewise.
56165         * modules/euidaccess (Makefile.am): Likewise.
56166         * modules/exclude (Makefile.am): Likewise.
56167         * modules/exitfail (Makefile.am): Likewise.
56168         * modules/fcntl-safer (Makefile.am): Likewise.
56169         * modules/file-type (Makefile.am): Likewise.
56170         * modules/fileblocks (Makefile.am): Likewise.
56171         * modules/filemode (Makefile.am): Likewise.
56172         * modules/filenamecat (Makefile.am): Likewise.
56173         * modules/fnmatch (Makefile.am): Likewise.
56174         * modules/fopen-safer (Makefile.am): Likewise.
56175         * modules/fpending (Makefile.am): Likewise.
56176         * modules/fprintftime (Makefile.am): Likewise.
56177         * modules/free (Makefile.am): Likewise.
56178         * modules/fsusage (Makefile.am): Likewise.
56179         * modules/ftruncate (Makefile.am): Likewise.
56180         * modules/fts (Makefile.am): Likewise.
56181         * modules/gc (Makefile.am): Likewise.
56182         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56183         * modules/getaddrinfo (Makefile.am): Likewise.
56184         * modules/getcwd (Makefile.am): Likewise.
56185         * modules/getdelim (Makefile.am): Likewise.
56186         * modules/getdomainname (Makefile.am): Likewise.
56187         * modules/getgroups (Makefile.am): Likewise.
56188         * modules/gethostname (Makefile.am): Likewise.
56189         * modules/gethrxtime (Makefile.am): Likewise.
56190         * modules/getline (Makefile.am): Likewise.
56191         * modules/getloadavg (Makefile.am): Likewise.
56192         * modules/getlogin_r (Makefile.am): Likewise.
56193         * modules/getopt (Makefile.am): Likewise.
56194         * modules/getpass (Makefile.am): Likewise.
56195         * modules/getpass-gnu (Makefile.am): Likewise.
56196         * modules/getsubopt (Makefile.am): Likewise.
56197         * modules/gettime (Makefile.am): Likewise.
56198         * modules/gettimeofday (Makefile.am): Likewise.
56199         * modules/getugroups (Makefile.am): Likewise.
56200         * modules/getusershell (Makefile.am): Likewise.
56201         * modules/glob (Makefile.am): Likewise.
56202         * modules/group-member (Makefile.am): Likewise.
56203         * modules/hard-locale (Makefile.am): Likewise.
56204         * modules/hash (Makefile.am): Likewise.
56205         * modules/hmac-md5 (Makefile.am): Likewise.
56206         * modules/hmac-sha1 (Makefile.am): Likewise.
56207         * modules/human (Makefile.am): Likewise.
56208         * modules/idcache (Makefile.am): Likewise.
56209         * modules/imaxabs (Makefile.am): Likewise.
56210         * modules/imaxdiv (Makefile.am): Likewise.
56211         * modules/inet_ntop (Makefile.am): Likewise.
56212         * modules/inet_pton (Makefile.am): Likewise.
56213         * modules/inttostr (Makefile.am): Likewise.
56214         * modules/isapipe (Makefile.am): Likewise.
56215         * modules/lchown (Makefile.am): Likewise.
56216         * modules/long-options (Makefile.am): Likewise.
56217         * modules/lstat (Makefile.am): Likewise.
56218         * modules/malloc (Makefile.am): Likewise.
56219         * modules/mathl (Makefile.am): Likewise.
56220         * modules/mbchar (Makefile.am): Likewise.
56221         * modules/md2 (Makefile.am): Likewise.
56222         * modules/md4 (Makefile.am): Likewise.
56223         * modules/md5 (Makefile.am): Likewise.
56224         * modules/memcasecmp (Makefile.am): Likewise.
56225         * modules/memchr (Makefile.am): Likewise.
56226         * modules/memcmp (Makefile.am): Likewise.
56227         * modules/memcoll (Makefile.am): Likewise.
56228         * modules/memcpy (Makefile.am): Likewise.
56229         * modules/memmem (Makefile.am): Likewise.
56230         * modules/memmove (Makefile.am): Likewise.
56231         * modules/mempcpy (Makefile.am): Likewise.
56232         * modules/memrchr (Makefile.am): Likewise.
56233         * modules/memset (Makefile.am): Likewise.
56234         * modules/memxor (Makefile.am): Likewise.
56235         * modules/mkancesdirs (Makefile.am): Likewise.
56236         * modules/mkdir (Makefile.am): Likewise.
56237         * modules/mkdir-p (Makefile.am): Likewise.
56238         * modules/mkdtemp (Makefile.am): Likewise.
56239         * modules/mkstemp (Makefile.am): Likewise.
56240         * modules/mktime (Makefile.am): Likewise.
56241         * modules/modechange (Makefile.am): Likewise.
56242         * modules/mountlist (Makefile.am): Likewise.
56243         * modules/nanosleep (Makefile.am): Likewise.
56244         * modules/openat (Makefile.am): Likewise.
56245         * modules/pagealign_alloc (Makefile.am): Likewise.
56246         * modules/physmem (Makefile.am): Likewise.
56247         * modules/poll (Makefile.am): Likewise.
56248         * modules/posixtm (Makefile.am): Likewise.
56249         * modules/posixver (Makefile.am): Likewise.
56250         * modules/putenv (Makefile.am): Likewise.
56251         * modules/quote (Makefile.am): Likewise.
56252         * modules/quotearg (Makefile.am): Likewise.
56253         * modules/raise (Makefile.am): Likewise.
56254         * modules/read-file (Makefile.am): Likewise.
56255         * modules/readline (Makefile.am): Likewise.
56256         * modules/readlink (Makefile.am): Likewise.
56257         * modules/readtokens (Makefile.am): Likewise.
56258         * modules/readutmp (Makefile.am): Likewise.
56259         * modules/realloc (Makefile.am): Likewise.
56260         * modules/regex (Makefile.am): Likewise.
56261         * modules/rename (Makefile.am): Likewise.
56262         * modules/rename-dest-slash (Makefile.am): Likewise.
56263         * modules/rijndael (Makefile.am): Likewise.
56264         * modules/rmdir (Makefile.am): Likewise.
56265         * modules/rpmatch (Makefile.am): Likewise.
56266         * modules/safe-read (Makefile.am): Likewise.
56267         * modules/safe-write (Makefile.am): Likewise.
56268         * modules/same (Makefile.am): Likewise.
56269         * modules/save-cwd (Makefile.am): Likewise.
56270         * modules/savedir (Makefile.am): Likewise.
56271         * modules/setenv (Makefile.am): Likewise.
56272         * modules/settime (Makefile.am): Likewise.
56273         * modules/sha1 (Makefile.am): Likewise.
56274         * modules/sig2str (Makefile.am): Likewise.
56275         * modules/snprintf (Makefile.am): Likewise.
56276         * modules/stdlib-safer (Makefile.am): Likewise.
56277         * modules/stpcpy (Makefile.am): Likewise.
56278         * modules/stpncpy (Makefile.am): Likewise.
56279         * modules/strcase (Makefile.am): Likewise.
56280         * modules/strcasestr (Makefile.am): Likewise.
56281         * modules/strchrnul (Makefile.am): Likewise.
56282         * modules/strcspn (Makefile.am): Likewise.
56283         * modules/strdup (Makefile.am): Likewise.
56284         * modules/strerror (Makefile.am): Likewise.
56285         * modules/strftime (Makefile.am): Likewise.
56286         * modules/strndup (Makefile.am): Likewise.
56287         * modules/strnlen (Makefile.am): Likewise.
56288         * modules/strpbrk (Makefile.am): Likewise.
56289         * modules/strsep (Makefile.am): Likewise.
56290         * modules/strstr (Makefile.am): Likewise.
56291         * modules/strtod (Makefile.am): Likewise.
56292         * modules/strtoimax (Makefile.am): Likewise.
56293         * modules/strtok_r (Makefile.am): Likewise.
56294         * modules/strtol (Makefile.am): Likewise.
56295         * modules/strtoll (Makefile.am): Likewise.
56296         * modules/strtoul (Makefile.am): Likewise.
56297         * modules/strtoull (Makefile.am): Likewise.
56298         * modules/strtoumax (Makefile.am): Likewise.
56299         * modules/strverscmp (Makefile.am): Likewise.
56300         * modules/time_r (Makefile.am): Likewise.
56301         * modules/timegm (Makefile.am): Likewise.
56302         * modules/tmpfile-safer (Makefile.am): Likewise.
56303         * modules/unistd-safer (Makefile.am): Likewise.
56304         * modules/unlinkdir (Makefile.am): Likewise.
56305         * modules/userspec (Makefile.am): Likewise.
56306         * modules/utime (Makefile.am): Likewise.
56307         * modules/utimecmp (Makefile.am): Likewise.
56308         * modules/utimens (Makefile.am): Likewise.
56309         * modules/vasnprintf (Makefile.am): Likewise.
56310         * modules/vasprintf (Makefile.am): Likewise.
56311         * modules/vsnprintf (Makefile.am): Likewise.
56312         * modules/xalloc (Makefile.am): Likewise.
56313         * modules/xgetcwd (Makefile.am): Likewise.
56314         * modules/xnanosleep (Makefile.am): Likewise.
56315         * modules/xreadlink (Makefile.am): Likewise.
56316         * modules/xstrtod (Makefile.am): Likewise.
56317         * modules/xstrtol (Makefile.am): Likewise.
56318         * modules/xstrtold (Makefile.am): Likewise.
56319         * modules/yesno (Makefile.am): Likewise.
56320
56321 2006-10-12  Jim Meyering  <jim@meyering.net>
56322
56323         * m4/getloadavg.m4: Revert the change below.
56324
56325         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56326         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56327         fail with a symlink, which is what coreutils' ./bootstrap now
56328         creates by default.
56329
56330 2006-10-12  Bruno Haible  <bruno@clisp.org>
56331
56332         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56333         mingw.
56334         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56335         MSVC and mingw explicitly.
56336
56337 2006-10-11  Simon Josefsson  <jas@extundo.com>
56338             Bruno Haible  <bruno@clisp.org>
56339
56340         Add support for multiple gnulib-tool invocations in the scope of a
56341         single configure.ac file.
56342         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56343         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56344         with the same contents as the _LIBADD variable.
56345         (func_emit_initmacro_start, func_emit_initmacro_end,
56346         func_emit_initmacro_done): New functions.
56347         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56348         gl_LIBOBJS and gl_LTLIBOBJS.
56349
56350 2006-10-11  Bruno Haible  <bruno@clisp.org>
56351
56352         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56353         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56354         autoreconf. Instead, invoke autopoint explicitly but move back the
56355         *.m4 files from gnulib.
56356
56357 2006-10-11  Bruno Haible  <bruno@clisp.org>
56358
56359         * gnulib-tool (func_usage): Make module names after --create-testdir
56360         optional.
56361         (func_create_testdir): If no module was specified, use nearly all
56362         modules.
56363
56364 2006-10-12  Jim Meyering  <jim@meyering.net>
56365
56366         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56367         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56368         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56369         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56370         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56371         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56372         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56373         (fts_set_stat_required): New function.
56374         (fts_open): Defer the calls to fts_stat, if possible or requested.
56375         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56376         into fts_stat itself.
56377         (fts_read): Perform any required (deferred) fts_stat call.
56378         (fts_build): Likewise, for the directory we're about to open and read.
56379         In the readdir loop, carefully decide whether each entry will require
56380         an eventual call to fts_stat, using dirent.d_type info if available.
56381         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56382         a command line argument into this function.  Update all callers.
56383         Map a return value of FTS_DOT to FTS_D for a command line argument.
56384         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56385         Thanks to Miklos Szeredi for his tenacity and for the initial
56386         bug report about "find" failing on a FUSE-based file system.
56387
56388         * lib/fts.c (fts_open): Use consistent indentation.
56389
56390 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56393         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56394         reported by Jim Meyering.  All uses of cache variables renamed
56395         to match Autoconf's.
56396         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56397         the other one.
56398
56399         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56400         Fix misspelling in diagnostic.
56401
56402 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56403
56404         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56405         defined.  Problem reported by Matthew Woehlke.
56406
56407         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56408         Add support for Tandem NonStop R series.
56409         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56410         Use new macro.
56411
56412         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56413         (has_trailing_slash): Omit size arg; all callers changed.
56414         Omit 'inline', since it doesn't help performance and we'd
56415         need to configure it.
56416         Don't count //, ///, etc. as having a trailing slash.
56417         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56418         (rpl_rename_dest_slash): On failure, use rename's errno rather
56419         than (in some cases) an incorrect or junk errno.
56420         Simplify code by removing need to compute length; this does
56421         cause it to make two passes instead of one over the file name,
56422         but it's worth it.
56423
56424         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56425         change, since Autoconf's version may no longer be appropriate now
56426         that we are using CVS Autoconf's version.  Add support for Tandem.
56427
56428 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56429             Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56432         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56433         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56434         gl_AC_TYPE_LONG_LONG.
56435
56436         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56437         instead of HAVE_LONG_LONG.
56438         * lib/printf-args.c (printf_fetchargs): Likewise.
56439         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56440         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56442         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56443         gl_AC_TYPE_LONG_LONG.
56444
56445 2006-10-11  Bruno Haible  <bruno@clisp.org>
56446
56447         * m4/longlong.m4: Add comments.
56448         * m4/ulonglong.m4: Likewise.
56449
56450 2006-10-10  Bruno Haible  <bruno@clisp.org>
56451
56452         Make it possible to #define stpcpy, strdup to aliases.
56453         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56454         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56455
56456 2006-10-10  Bruno Haible  <bruno@clisp.org>
56457
56458         Make it possible to #define gcd to an alias.
56459         * lib/gcd.c: Include config.h.
56460
56461 2006-10-10  Bruno Haible  <bruno@clisp.org>
56462
56463         Make it possible to #define c_isascii to an alias.
56464         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56465         defined. Undefine the macros before defining them, to avoid gcc
56466         warnings.
56467         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56468         define NO_C_CTYPE_MACROS early.
56469
56470 2006-10-10  Bruno Haible  <bruno@clisp.org>
56471
56472         Make it possible to #define set_program_name to an alias.
56473         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56474         ENABLE_RELOCATABLE early.
56475
56476 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56479         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56480         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56481         More generally, don't assume that 64-bit signed int is available
56482         if unsigned int is, and vice versa.
56483         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56484         unsigned symbols, not on their signed counterparts.
56485         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56486         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56487         (UINT64_C, UINTMAX_C):
56488         Likewise.
56489         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56490         unsigned counterparts.
56491         (Have_long_long, Unsigned): New macros.
56492         (Int): Renamed from INT.
56493         (strtoimax): Use the new macros.
56494         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56495         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56496         * modules/inttypes (inttypes.h): Substitute
56497         HAVE_UNSIGNED_LONG_LONG_INT.
56498         * modules/stdint (stdint.h): Likewise.
56499         (Files): Add m4/ulonglong.m4.
56500
56501 2006-10-10  Bruno Haible  <bruno@clisp.org>
56502
56503         Fix a gcc -Wshadow warning.
56504         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56505         to 'bucket'.
56506         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56507         gl_linked_indexof_from_to): Likewise.
56508         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56509         Likewise.
56510         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56511         Likewise.
56512         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56513         Reported by Eric Blake.
56514
56515 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56518         for NetBSD.  Problem reported by Bruno Haible.
56519
56520 2006-10-09  Jim Meyering  <jim@meyering.net>
56521
56522         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56523         Patch from Bruno Haible.
56524
56525 2006-10-09  Jim Meyering  <jim@meyering.net>
56526
56527         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56528         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56529         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56530
56531 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56532
56533         Don't include <config.h> twice; this doesn't work in some cases,
56534         e.g., when config.h has "#define intmax_t long long int" and
56535         we include <config.h>, <inttypes.h>, <config.h> in that order.
56536         Problem reported by Matthew Woehlke in:
56537         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56538         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56539         * lib/fts-cycle.c: Don't include config.h.
56540         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56541         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56542         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56543         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56544         inttypes.h.
56545         * lib/xstrtoumax.c: Likewise.
56546         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56547         __strtol and the like, so that this module is more like its siblings.
56548         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56549         Remove; no longer needed now that we assume gnulib inttypes.h.
56550
56551 2006-10-08  Bruno Haible  <bruno@clisp.org>
56552
56553         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56554         option.
56555
56556 2006-10-07  Jim Meyering  <jim@meyering.net>
56557
56558         * modules/inttypes (inttypes.h): Revert what seems to have been
56559         an inadvertent part of today's change: use "|", not "/" in the
56560         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56561
56562 2006-10-07  Bruno Haible  <bruno@clisp.org>
56563
56564         * modules/sublist: New file.
56565
56566 2006-10-07  Bruno Haible  <bruno@clisp.org>
56567
56568         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56569         * modules/argz (argz.h): Likewise.
56570         * modules/arpa_inet (arpa/inet.h): Likewise.
56571         * modules/byteswap (byteswap.h): Likewise.
56572         * modules/configmake (configmake.h): Likewise.
56573         * modules/fcntl (fcntl.h): Likewise.
56574         * modules/fnmatch (fnmatch.h): Likewise.
56575         * modules/getopt (getopt.h): Likewise.
56576         * modules/glob (glob.h): Likewise.
56577         * modules/inttypes (inttypes.h): Likewise.
56578         * modules/netinet_in (netinet/in.h): Likewise.
56579         * modules/poll (poll.h): Likewise.
56580         * modules/stdbool (stdbool.h): Likewise.
56581         * modules/stdint (stdint.h): Likewise.
56582         * modules/sys_select (sys/select.h): Likewise.
56583         * modules/sys_socket (sys/socket.h): Likewise.
56584         * modules/sys_stat (sys/stat.h): Likewise.
56585         * modules/sysexits (sysexits.h): Likewise.
56586         * modules/unistd (unistd.h): Likewise.
56587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56588         Add a "DO NOT EDIT" comment to the generated file.
56589         (func_import): Likewise for gnulib-comp.m4.
56590
56591 2006-10-07  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/gl_sublist.h: New file.
56594         * lib/gl_sublist.c: New file.
56595
56596 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56597
56598         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56599         name (relative to the original working directory) and the file
56600         name component (relative to the temporary working directory).  All
56601         callers changed.
56602         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56603         * lib/mkdir-p.c (make_dir_parents): Likewise.
56604         * lib/mkdir-p.h (make_dir_parents): Likewise.
56605
56606 2006-10-06  Eric Blake  <ebb9@byu.net>
56607
56608         Define several macros for use by the clean-temp module.
56609         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56610         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56611         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56612
56613         * lib/clean-temp.h (close_stream_temp): New declaration.
56614         * lib/clean-temp.c (includes): Pull in headers according to what
56615         other modules are in use.
56616         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56617
56618 2006-10-06  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56621         instead of fopen, fwriteerror.
56622
56623 2006-10-06  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56626         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56627         int.
56628         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56629         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56630         Return an error indicator.
56631         Suggested by Eric Blake.
56632
56633 2006-10-06  Bruno Haible  <bruno@clisp.org>
56634
56635         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56636         Reported by Eric Blake.
56637
56638 2006-10-06  Bruno Haible  <bruno@clisp.org>
56639
56640         * modules/closeout (Description): Mention stderr too.
56641
56642 2006-10-06  Bruno Haible  <bruno@clisp.org>
56643         and Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         * lib/closeout.c (close_stdout): Also close stderr.
56646         * lib/closeout.h: Update comment.
56647
56648 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56649
56650         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56651         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56652         * lib/dirchownmod.c: Include lchown.h.
56653         * lib/lchown.c: Don't include files that lchown.h now includes.
56654         Don't declare chown, since lchown.h now does that.
56655         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56656         (lchown): Define to rpl_chown if lchown is declared but
56657         does not exist.  Declare using a prototype if lchown is not
56658         declared.  Add a copyright notice.
56659         * lib/mkstemp.h: Include <unistd.h>.
56660         * lib/openat.c: Include lchown.h.
56661
56662         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56663         we now test for that separately.
56664         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56665         rather than O_NOFOLLOW, when testing whether it's possible to
56666         avoid a race condition reliably.
56667         * lib/savewd.c (savewd_chdir): Likewise.
56668
56669         Remove macros that are no longer needed now that stdint.h is
56670         reliable.
56671         * lib/fsusage.c (UINTMAX_MAX): Remove.
56672         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56673         * lib/utimecmp.c (SIZE_MAX): Remove.
56674
56675         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56676
56677         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56678         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56679         O_NOATIME works.
56680
56681 2006-10-05  Bruno Haible  <bruno@clisp.org>
56682
56683         * lib/gl_list.h (gl_sortedlist_search_from_to,
56684         gl_sortedlist_indexof_from_to): New declarations.
56685         (gl_list_implementation): New fields sortedlist_search_from_to,
56686         sortedlist_indexof_from_to.
56687         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56688         inline functions.
56689         * lib/gl_list.c (gl_sortedlist_search_from_to,
56690         gl_sortedlist_indexof_from_to): New functions.
56691         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56692         function.
56693         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56694         (gl_array_sortedlist_search_from_to): New function.
56695         (gl_array_list_implementation): Update.
56696         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56697         function.
56698         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56699         (gl_carray_sortedlist_search_from_to): New function.
56700         (gl_carray_list_implementation): Update.
56701         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56702         gl_linked_sortedlist_indexof_from_to): New functions.
56703         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56704         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56705         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56706         gl_tree_sortedlist_indexof_from_to): New functions.
56707         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56708         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56709         Update.
56710         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56711         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56712         Update.
56713
56714 2006-10-05  Bruno Haible  <bruno@clisp.org>
56715
56716         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56717         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56718         (struct gl_list_implementation): Add fields search_from_to,
56719         indexof_from_to. Remove fields search, indexof.
56720         (gl_list_search): Use the search_from_to method.
56721         (gl_list_search_from, gl_list_search_from_to): New functions.
56722         (gl_list_indexof): Use the indexof_from_to method.
56723         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56724         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56725         (gl_list_search_from, gl_list_search_from_to): New functions.
56726         (gl_list_indexof): Use the indexof_from_to method.
56727         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56728         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56729         gl_array_indexof. Add start_index, end_index arguments.
56730         (gl_array_search_from_to): Renamed from gl_array_search. Add
56731         start_index, end_index arguments.
56732         (gl_array_remove, gl_array_list_implementation): Update.
56733         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56734         gl_carray_indexof. Add start_index, end_index arguments.
56735         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56736         start_index, end_index arguments.
56737         (gl_carray_remove, gl_carray_list_implementation): Update.
56738         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56739         gl_linked_search. Add start_index, end_index arguments.
56740         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56741         start_index, end_index arguments.
56742         (gl_linked_remove): Update.
56743         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56744         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56745         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56746         field to 'size_t'.
56747         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56748         gl_tree_search. Add start_index, end_index arguments.
56749         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56750         start_index, end_index arguments.
56751         (gl_tree_remove): Update.
56752         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56753         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56754         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56755         function.
56756         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56757         gl_tree_search. Add start_index, end_index arguments.
56758         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56759         start_index, end_index arguments.
56760         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56761         Update.
56762         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56763
56764 2006-10-05  Bruno Haible  <bruno@clisp.org>
56765
56766         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56767
56768         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56769         fwriteerror_temp): New declarations.
56770         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56771         (descriptors): New variable.
56772         (cleanup): First, close the descriptors.
56773         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56774         fclose_temp, fwriteerror_temp): New functions.
56775
56776 2006-10-04  Jim Meyering  <jim@meyering.net>
56777
56778         * lib/fts.c (fts_open): Tiny comment change.
56779
56780 2006-10-04  Bruno Haible  <bruno@clisp.org>
56781
56782         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56783         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56784         gl_LOCK_BODY.
56785         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56786         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56787         gl_LOCK_EARLY_BODY.
56788         (gl_LOCK): Require gl_LOCK_BODY.
56789
56790 2006-10-04  Bruno Haible  <bruno@clisp.org>
56791
56792         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56793         (gl_oset_search_atleast): New declaration.
56794         (struct gl_oset_implementation): Add field 'search_atleast'.
56795         (gl_oset_search_atleast): New inline function.
56796         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56797         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56798         (gl_array_oset_implementation): Update.
56799         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56800         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56801         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56802
56803 2006-10-04  Bruno Haible  <bruno@clisp.org>
56804
56805         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56806
56807 2006-10-03  Bruno Haible  <bruno@clisp.org>
56808
56809         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56810         from gl_avltreehash_list_implementation.
56811
56812 2006-10-03  Bruno Haible  <bruno@clisp.org>
56813
56814         * lib/gl_oset.c (gl_oset_add): Fix return type.
56815
56816 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56817
56818         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56819
56820 2006-10-02  Eric Blake  <ebb9@byu.net>
56821
56822         * modules/strnlen (Depends-on): Add extensions.
56823
56824 2006-10-02  Eric Blake  <ebb9@byu.net>
56825
56826         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56827         definition in 2.60+.
56828
56829 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56830
56831         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56832         checks.
56833
56834 2006-10-02  Bruno Haible  <bruno@clisp.org>
56835
56836         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56837         to the AUTOMAKE_OPTIONS.
56838         Reported by Jim Meyering.
56839
56840 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56841
56842         Work around bug in Solaris 10 /proc file system:
56843         /proc/self/fd/NNN/.. isn't the parent directory of
56844         the directory whose file descriptor is NNN.  This needs to
56845         be worked around at run time, not compile time, since a
56846         program might be built on Solaris 8, where things work, and
56847         run on Solaris 10.
56848         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56849         to use the following interface instead:
56850         (OPENAT_BUFFER_SIZE): New macro.
56851         (openat_proc_name): New function.
56852         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56853         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56854         Likewise.
56855         * lib/openat-proc.c: New file.
56856         * modules/openat (Files): Add lib/openat-proc.c.
56857         (Depends-on): Add same-inode, stdbool.
56858         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56859
56860 2006-09-29  Bruno Haible  <bruno@clisp.org>
56861
56862         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56863         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56864         argument. Set stdout_closed before testing for ferror, not after.
56865         (fwriteerror, fwriteerror_no_ebadf): New functions.
56866
56867 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56868
56869         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56870
56871 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56872
56873         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56874         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56875
56876 2006-09-28  Jim Meyering  <jim@meyering.net>
56877
56878         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56879         Include <unistd.h>.
56880
56881 2006-09-28  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56884         * modules/linkedhash-list (Depends-on): Likewise.
56885         * modules/rbtreehash-list (Depends-on): Likewise.
56886
56887 2006-09-28  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/strndup.h: Simplify the redefinition of strndup.
56890         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56891         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56892
56893 2006-09-28  Bruno Haible  <bruno@clisp.org>
56894
56895         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56896         * lib/gl_linkedhash_list.c: Likewise.
56897         * lib/gl_rbtreehash_list.c: Likewise.
56898
56899 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56900
56901         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56902         getaddrinfo.
56903
56904         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56905         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56906         it causes <stdio_ext.h> to cause a compile-time error.
56907         Problem reported by Nelson H. F. Beebe.
56908         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56909         of HAVE_DECL___PENDING.
56910
56911         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56912         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56913         declaration.
56914
56915 2006-09-27  Jim Meyering  <jim@meyering.net>
56916
56917         This file could end up with a definition for a function
56918         named __strndup, rather than rpl_strndup on a system with
56919         incomplete weak_alias support.
56920         * lib/strndup.c (strndup): Rename from __strndup.
56921         Remove #defines that used to map __strndup to strndup.
56922         Don't use K&R prototypes.
56923         Remove LIBC-related code, since this file is not sync'd with glibc.
56924         * lib/strndup.h: Revamp, accordingly.
56925         * m4/strndup.m4: Modernize.
56926
56927 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56928
56929         * modules/savewd (Depends-on): Add 'raise'.
56930         * lib/savewd.c: Include <signal.h>, for 'raise'.
56931
56932 2006-09-26  Jim Meyering  <jim@meyering.net>
56933
56934         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56935         when we detect Darwin 8.7.0's acl_get_file bug.
56936         Rearrange to perform the new (below) run-test while $LIBS
56937         contains any acl-related library.  Set USE_ACL at the end.
56938         (gl_ACL_GET_FILE): New function.
56939
56940 2006-09-26  Eric Blake  <ebb9@byu.net>
56941
56942         * lib/verror.c: Include <config.h> unconditionally.
56943
56944 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56945
56946         * modules/clock-time (Maintainer): Add self.
56947         * modules/getlogin_r (Depends-on): Add extensions.
56948
56949 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56950
56951         * modules/clock-time: New module.
56952         * modules/nanosleep (Depends-on): Add clock-time.
56953         * modules/gethrxtime (Depends-on): Likewise.
56954         * modules/gettime (Depends-on): Likewise.
56955         * modules/settime (Depends-on): Likewise.
56956
56957         * modules/fts-lgpl: Depend on openat.
56958         * modules/mkancesdirs: Depend on savewd.
56959         * modules/mkdir-p: Likewise.
56960
56961 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56962
56963         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56964
56965         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56966         `gl_have_arbitrary_file_name_length_limit' to
56967         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56968         actually works between configure runs.
56969
56970 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56971             Bruno Haible  <bruno@clisp.org>
56972
56973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56974
56975 2006-09-25  Jim Meyering  <jim@meyering.net>
56976
56977         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56978         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56979
56980 2006-09-25  Eric Blake  <ebb9@byu.net>
56981
56982         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56983         exec's in 2006-09-18 patch when shuffling fds.
56984
56985 2006-09-25  Bruno Haible  <bruno@clisp.org>
56986
56987         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56988         Reported by Jim Meyering.
56989
56990 2006-09-24  Jim Meyering  <jim@meyering.net>
56991
56992         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56993         compare a pointer against a literal "0".  That caused failures with
56994         at least HP-UX's hpcc.
56995
56996 2006-09-22  Simon Josefsson  <jas@extundo.com>
56997
56998         * modules/gc-sha1:
56999         * modules/gc-md4:
57000         * modules/gc-hmac-sha1:
57001         * modules/gc-hmac-md5:
57002         * modules/gc-des:
57003         * modules/gc-arcfour: Distribute more files.
57004
57005 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57006
57007         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57008         (gl_linked_iterator_from_to): Initialize struct completely.
57009         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57010         (gl_tree_iterator_from_to): Likewise
57011         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57012         * lib/gl_array_list.c [lint] (gl_array_iterator)
57013         (gl_array_iterator_from_to): Likewise.
57014         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57015         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57016         (gl_carray_iterator_from_to): Likewise.
57017
57018         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57019         * lib/md4.c (md4_process_block): Remove unused variable.
57020         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57021         parentheses for clarity.
57022
57023 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57024
57025         * modules/bison-i18n (Depends-on): Add gettext.
57026
57027 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57028
57029         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57030         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57031         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57032         also add missing comma that caused broken test.
57033         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57034         stdlib.h, for `abort'.
57035         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57036         variables.
57037         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57038         include unistd.h if present, for `rmdir'.
57039         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57040         variables.
57041         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57042         in the process include standard headers for prototypes.
57043         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57044         gets declared on GNU/Linux.
57045         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57046         unistd.h, for `rmdir'.
57047         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57048
57049         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57050         always true.
57051         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57052
57053         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57054
57055 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57056
57057         * gnulib-tool (func_version): Create output all at once.  This
57058         may help avoid triggering unnecessary SIGPIPEs, and at any
57059         rate it doesn't hurt.
57060
57061 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57062             Bruno Haible  <bruno@clisp.org>
57063
57064         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57065         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57066         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57067
57068         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57069         (gl_FUNC_VASPRINTF): Invoke it.
57070
57071 2006-09-22  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57074         getloadavg.c as first argument.
57075
57076 2006-09-22  Bruno Haible  <bruno@clisp.org>
57077
57078         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57079         at the beginning of the gl_INIT macro.
57080         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57081         gl_GETLOADAVG.
57082
57083 2006-09-22  Bruno Haible  <bruno@clisp.org>
57084
57085         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57086         module.
57087         Suggested by Ralf Wildenhues.
57088
57089 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57090
57091         Import this patch from libc:
57092
57093         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57094
57095         * lib/regex_internal.c (re_string_reconstruct): Handle
57096         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57097         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57098         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57099         re_string_context_at.
57100
57101         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57102         now requires it.
57103         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57104         gl_REGEX now does it for us.
57105         (gl_REGEX): Add test taken from
57106         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57107
57108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57109         Check that large offsets work.  Modernize Autoconf usages.
57110         Prefer "yes" to mean a good thing rather than a bad.
57111         Don't put "#define mkstemp" in config.h, as this might interfere
57112         with standard system headers that "#define mkstemp mkstemp64".
57113
57114         * modules/mkstemp (Depends-on): Add extensions, so that
57115         mkstemp is visible on some platforms.
57116         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57117         (Include): Change to "mkstemp.h" from <stdlib.h>.
57118         (Files): Add mkstemp.h.
57119
57120         * lib/mkstemp.h: New file, since some standard headers
57121         #define mkstemp.
57122         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57123         Include "mkstemp.h".
57124         Make the _LIBC code resemble glibc original more,
57125         e.g., use K&R style.
57126         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57127         (mkstemp): Remove, since mkstemp.h does this for us.
57128         * lib/stdlib--.h: Include mkstemp.h.
57129
57130         Import this patch from libc:
57131
57132         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57133
57134         * lib/tempname.c (__gen_tempname): Change attempts_min
57135         into a macro.  Use preprocessor to decide how to initialize
57136         attempts [Coverity CID 67].
57137
57138 2006-09-20  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/mkdtemp.c: Import from libc.
57141         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57142                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57143                 attempts_min into a macro.  Use preprocessor to decide how to
57144                 initialize attempts [Coverity CID 67].
57145         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57146                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57147                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57148
57149 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57150
57151         * gnulib-tool (func_exit): New function, to allow to pass the
57152         exit status portably through the trap.  Use everywhere.
57153         (--help, --version): Signal a write error.
57154         (trap): catch SIGPIPE, for write errors.
57155         Exit at the end of the trap, with the correct exit status.
57156
57157 2006-09-19  Karl Berry  <karl@gnu.org>
57158
57159         * doc/gnulib.texi: note about the license texinfo files.
57160
57161 2006-09-19  Eric Blake  <ebb9@byu.net>
57162
57163         * gnulib-tool: Avoid space-tab.
57164
57165 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57166
57167         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57168         that prevented coreutils 6.1 from building.  Problem reported
57169         by Petter Reinholdtsen.
57170
57171 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         * gnulib-tool (avoidlist): Fix typo that broke options like
57174         --avoid=lock that are used by coreutils bootstrap.
57175
57176 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57177
57178         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57179         more systematically.
57180
57181 2006-09-18  Jim Meyering  <jim@meyering.net>
57182
57183         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57184
57185 2006-09-18  Bruno Haible  <bruno@clisp.org>
57186
57187         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57188
57189 2006-09-18  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57192         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57193         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57194         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57195         * m4/gettext.m4: Require autoconf >= 2.52.
57196         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57197         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57198         of gl_cv_header_inttypes_h.
57199
57200 2006-09-18  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/javaversion.c: Include configmake.h.
57203
57204 2006-09-18  Bruno Haible  <bruno@clisp.org>
57205
57206         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57207         avoid that the while loops be executed in a subshell.
57208
57209 2006-09-18  Bruno Haible  <bruno@clisp.org>
57210
57211         * MODULES.html.sh (func_module): Break long lines.
57212         Suggested by Bruce Korb <bkorb@gnu.org>.
57213
57214 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57215
57216         Speed up by a factor of 1.12.
57217         * gnulib-tool (nl): New variable.
57218         (func_import): Rewrite include directive extraction to only read each
57219         directive once.
57220
57221 2006-09-17  Bruno Haible  <bruno@clisp.org>
57222
57223         * modules/javaversion (Makefile.am): Remove DEFS setting.
57224         (Depends-on): Add configmake, for PKGDATADIR definition.
57225
57226 2006-09-17  Bruno Haible  <bruno@clisp.org>
57227
57228         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57229
57230 2006-09-17  Bruno Haible  <bruno@clisp.org>
57231
57232         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57233         (func_modules_transitive_closure, func_modules_add_dummy,
57234         func_modules_to_filelist, func_import, func_create_testdir,
57235         func_create_megatestdir, ...): Use it wherever possible.
57236         Suggested by Ralf Wildenhues.
57237
57238 2006-09-16  Karl Berry  <karl@gnu.org>
57239
57240         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57241         to avoid sectioning errors.
57242         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57243         [ifinfo]: blank line after @center-ed titles.
57244         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57245         Spell FSF address consistently with others.
57246         (These changes approved by rms.)
57247
57248 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57249
57250         Speed up by a factor of 1.61.
57251         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57252         already checked module names again.
57253
57254 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57255
57256         Speed up by a factor of 1.13.
57257         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57258         for new_files, and the input to func_add_or_update.
57259
57260 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57261
57262         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57263         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57264
57265 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57266
57267         * modules/mkancesdirs (Depends-on): Add fcntl.
57268         * modules/savewd: New file.
57269         * MODULES.html.sh (File system functions): Add savewd.
57270
57271         * modules/configmake (Makefile.am): Add support for the
57272         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57273
57274 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57275
57276         * m4/savewd.m4: New file.
57277
57278 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57279
57280         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57281         (dirchownmod): New arg FD.  All callers changed.
57282         Use FD rather than opening the directory ourself, as opening is
57283         now the caller's responsibility.
57284         * lib/dirchownmod.h: Likewise.
57285         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57286         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57287         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57288         (test_dir): Remove.
57289         (mkancesdirs): Return length of prefix of FILE that has already
57290         been made, or -2 if there is a child doing the work.  Redo
57291         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57292         ".", and treat ".." specially since it might stray back into
57293         already-created areas.  Use a subprocess if necessary.  New arg
57294         WD; all users changed.  MAKE_DIR function should now return 1
57295         if it creates a directory that is not readable.  Return -2 if
57296         a child process is spun off.
57297         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57298         Adjust signature to match code.
57299         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57300         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57301         all users changed.
57302         * lib/savewd.c, lib/savewd.h: New files.
57303
57304 2006-09-15  Jim Meyering  <jim@meyering.net>
57305
57306         * modules/rename-dest-slash: New module.
57307         * MODULES.html.sh (posix_compat): Add it here.
57308
57309         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57310
57311 2006-09-15  Jim Meyering  <jim@meyering.net>
57312
57313         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57314         file.
57315
57316         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57317
57318 2006-09-15  Jim Meyering  <jim@meyering.net>
57319
57320         * lib/rename-dest-slash.c (has_trailing_slash): Use
57321         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57322         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57323         test before testing whether SRC is a directory.
57324         Suggestions from Bruno Haible.
57325
57326         Avoid a warning about an unused variable.
57327         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57328         into the #ifdef block where it's used.
57329
57330         * lib/rename-dest-slash.c: New file.
57331
57332 2006-09-14  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/allocsa.c: Include <config.h> unconditionally.
57335         * lib/asnprintf.c: Likewise.
57336         * lib/asprintf.c: Likewise.
57337         * lib/c-strcasecmp.c: Likewise.
57338         * lib/c-strcasestr.c: Likewise.
57339         * lib/c-strncasecmp.c: Likewise.
57340         * lib/c-strstr.c: Likewise.
57341         * lib/classpath.c: Likewise.
57342         * lib/clean-temp.c: Likewise.
57343         * lib/concatpath.c: Likewise.
57344         * lib/copy-file.c: Likewise.
57345         * lib/csharpcomp.c: Likewise.
57346         * lib/csharpexec.c: Likewise.
57347         * lib/execute.c: Likewise.
57348         * lib/fatal-signal.c: Likewise.
57349         * lib/findprog.c: Likewise.
57350         * lib/fwriteerror.c: Likewise.
57351         * lib/gl_array_list.c: Likewise.
57352         * lib/gl_array_oset.c: Likewise.
57353         * lib/gl_avltree_list.c: Likewise.
57354         * lib/gl_avltree_oset.c: Likewise.
57355         * lib/gl_avltreehash_list.c: Likewise.
57356         * lib/gl_carray_list.c: Likewise.
57357         * lib/gl_linked_list.c: Likewise.
57358         * lib/gl_linkedhash_list.c: Likewise.
57359         * lib/gl_list.c: Likewise.
57360         * lib/gl_oset.c: Likewise.
57361         * lib/gl_rbtree_list.c: Likewise.
57362         * lib/gl_rbtree_oset.c: Likewise.
57363         * lib/gl_rbtreehash_list.c: Likewise.
57364         * lib/imaxabs.c: Likewise.
57365         * lib/imaxdiv.c: Likewise.
57366         * lib/javacomp.c: Likewise.
57367         * lib/javaexec.c: Likewise.
57368         * lib/javaversion.c: Likewise.
57369         * lib/linebreak.c: Likewise.
57370         * lib/localcharset.c: Likewise.
57371         * lib/lock.c: Likewise.
57372         * lib/mbchar.c: Likewise.
57373         * lib/mbswidth.c: Likewise.
57374         * lib/mkdtemp.c: Likewise.
57375         * lib/pipe.c: Likewise.
57376         * lib/printf-args.c: Likewise.
57377         * lib/printf-parse.c: Likewise.
57378         * lib/progname.c: Likewise.
57379         * lib/progreloc.c: Likewise.
57380         * lib/readlink.c: Likewise.
57381         * lib/sh-quote.c: Likewise.
57382         * lib/stpcpy.c: Likewise.
57383         * lib/stpncpy.c: Likewise.
57384         * lib/strcasecmp.c: Likewise.
57385         * lib/strcasestr.c: Likewise.
57386         * lib/strcspn.c: Likewise.
57387         * lib/striconv.c: Likewise.
57388         * lib/strncasecmp.c: Likewise.
57389         * lib/strnlen1.c: Likewise.
57390         * lib/strstr.c: Likewise.
57391         * lib/strtok_r.c: Likewise.
57392         * lib/tls.c: Likewise.
57393         * lib/tmpdir.c: Likewise.
57394         * lib/unicodeio.c: Likewise.
57395         * lib/unsetenv.c: Likewise.
57396         * lib/vasnprintf.c: Likewise.
57397         * lib/vasprintf.c: Likewise.
57398         * lib/wait-process.c: Likewise.
57399         * lib/xallocsa.c: Likewise.
57400         * lib/xsetenv.c: Likewise.
57401         * lib/xstriconv.c: Likewise.
57402
57403 2006-09-13  Simon Josefsson  <jas@extundo.com>
57404
57405         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57406         that internally, suggested by Ralf Wildenhues
57407         <Ralf.Wildenhues@gmx.de>.
57408
57409 2006-09-13  Simon Josefsson  <jas@extundo.com>
57410
57411         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57412         @LIBOBJS@.
57413         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57414
57415 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57416
57417         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57418         longer worry about uses that don't define HAVE_CONFIG_H.
57419         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57420         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57421         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57422         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57423         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57424         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57425         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57426         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57427         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57428         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57429         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57430         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57431         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57432         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57433         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57434         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57435         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57436         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57437         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57438         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57439         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57440         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57441         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57442         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57443         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57444         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57445         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57446         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57447         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57448         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57449         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57450         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57451         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57452         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57453         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57454         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57455         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57456         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57457         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57458         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57459         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57460         Likewise.
57461
57462 2006-09-13  Eric Blake  <ebb9@byu.net>
57463
57464         * lib/getopt.c: Fix typo in last commit.
57465
57466 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57467
57468         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57469         dgettext.
57470
57471 2006-09-12  Jim Meyering  <jim@meyering.net>
57472
57473         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57474         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57475         Reported by Nelson H. F. Beebe.
57476
57477 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57478
57479         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57480         program_invocation_name and program_invocation_short_name are
57481         initialized.
57482         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57483         and program_invocation_short_name to argp.h, so they are visible
57484         to user programs.
57485         * lib/argp.h: Likewise
57486
57487 2006-09-10  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57490         m4/inttypes_h.m4, m4/uintmax_t.m4.
57491
57492 2006-09-10  Bruno Haible  <bruno@clisp.org>
57493
57494         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57495         gl_AC_TYPE_UINTMAX_T.
57496
57497 2006-09-10  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57500
57501 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57502
57503         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57504         convention.  Text proposed by Bruno Haible.
57505         (struct argp_option): Document the use of N_() wrappers.
57506
57507         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57508         '\v', and translate the two parts separately, instead of feeding
57509         the whole string to gettext.  This allows to exclude
57510         '\v' from the strings visible to the translator by writing doc
57511         strings as N_("..") "\v" N_("..").
57512
57513 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57514
57515         * config/srclist.txt: Undo latest change; the bug was fixed.
57516
57517 2006-09-09  Bruno Haible  <bruno@clisp.org>
57518
57519         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57520         assignments if building a library without libtool.
57521         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57522         in func_emit_lib_Makefile_am.
57523         (func_import): When building a static library libfoo.a, arrange to
57524         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57525         (func_create_testdir): Likewise.
57526         * modules/gc (configure.ac, Makefile.am): If building statically,
57527         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57528         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57529         * modules/striconv (configure.ac, Makefile.am): Likewise.
57530         Based on a suggestion by Ralf Wildenhues.
57531
57532 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57533
57534         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57535         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57536         Also:
57537
57538         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57539         Add year_2050_test to catch glibc bug 2821
57540         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57541
57542         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57543         Prefer #ifdef to #if.
57544
57545         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57546         Return from 'main' instead of calling 'exit'.
57547
57548 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57551         returned the maximum time_t value rather than (time_t) -1.
57552         Problem originally reported by William Bardwell
57553         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57554
57555         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57556         Moved to here ...
57557         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57558         ... from here.
57559
57560 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57563         2821 is fixed.
57564
57565 2006-09-08  Jim Meyering  <jim@meyering.net>
57566
57567         Don't make generated files read-only.  That would bother too many
57568         people.  However, do retain the ability to work when targets are
57569         read-only: remove the destination and temporary files before writing
57570         them (when generated via sed or echo), or by using the -f option for
57571         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57572         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57573         * modules/byteswap, modules/configmake, modules/fcntl:
57574         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57575         * modules/localcharset, modules/netinet_in, modules/poll:
57576         * modules/stdbool, modules/stdint, modules/sys_select:
57577         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57578
57579 2006-09-08  Jim Meyering  <jim@meyering.net>
57580
57581         Avoid new build failure on FreeBSD 6.0.
57582         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57583         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57584         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57585
57586 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57587
57588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57589
57590 2006-09-07  Jim Meyering  <jim@meyering.net>
57591
57592         Fix global typo in last change: use chmod u-w, not chmod u-x.
57593         Spotted by Paul Eggert and Bruce Korb.
57594         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57595         * modules/byteswap, modules/configmake, modules/fcntl:
57596         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57597         * modules/localcharset, modules/netinet_in, modules/poll:
57598         * modules/stdbool, modules/stdint, modules/sys_select:
57599         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57600
57601 2006-09-06  Jim Meyering  <jim@meyering.net>
57602
57603         Make generated files be read-only.
57604         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57605         Ensure that each generated file is now read-only.
57606         * modules/argz: Likewise.
57607         * modules/arpa_inet: Likewise.
57608         * modules/byteswap: Likewise.
57609         * modules/configmake: Likewise.
57610         * modules/fcntl: Likewise.
57611         * modules/fnmatch: Likewise.
57612         * modules/getopt: Likewise.
57613         * modules/glob: Likewise.
57614         * modules/inttypes: Likewise.
57615         * modules/netinet_in: Likewise.
57616         * modules/poll: Likewise.
57617         * modules/stdbool: Likewise.
57618         * modules/stdint: Likewise.
57619         * modules/sys_select: Likewise.
57620         * modules/sys_socket: Likewise.
57621         * modules/sys_stat: Likewise.
57622         * modules/sysexits: Likewise.
57623         * modules/localcharset: Same as above, but continue using temporary
57624         file named "t-$@" (why different?) rather than the "$@-t" used
57625         everywhere else.
57626
57627         * modules/sysexits (Makefile.am): Replace literal occurrences
57628         of "sysexit.h" more readable, and more consistent, "$@".
57629
57630 2006-09-06  Bruno Haible  <bruno@clisp.org>
57631
57632         * modules/striconv: New file.
57633         * modules/xstriconv: New file.
57634         * MODULES.html.sh (Internationalization functions): Add striconv,
57635         xstriconv.
57636
57637 2006-09-06  Bruno Haible  <bruno@clisp.org>
57638
57639         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57640         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57641         not using libtool correctly.
57642
57643 2006-09-06  Bruno Haible  <bruno@clisp.org>
57644
57645         * lib/striconv.h: New file.
57646         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57647         iconvstring.c.
57648         * lib/xstriconv.h: New file.
57649         * lib/xstriconv.c: New file.
57650
57651 2006-09-06  Bruno Haible  <bruno@clisp.org>
57652
57653         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57654         lib_..._LDFLAGS.
57655
57656 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57657
57658         * lib/argz_.h: Sync from Libtool.
57659
57660         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57661                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57662
57663         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57664
57665 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57666
57667         * modules/trim: New file.
57668
57669 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57670
57671         * lib/trim.h: New file.
57672         * lib/trim.c: New file.
57673
57674 2006-09-05  Bruno Haible  <bruno@clisp.org>
57675
57676         * MODULES.html.sh (String handling): Add trim.
57677
57678 2006-09-04  Karl Berry  <karl@gnu.org>
57679
57680         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57681         until next release.
57682
57683 2006-09-03  Bruno Haible  <bruno@clisp.org>
57684
57685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57686         correctly.
57687
57688 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57691         not gl_GETLOADAVG.  Omit unneeded semicolons.
57692         Problems reported by Ralf Wildenhues in
57693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57694         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57695         at the end, which is the usual gnulib style.
57696
57697         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57698         of doing all the work ourselves.
57699         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57700         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57701
57702 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57703
57704         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57705         Problem reported by Ralf Wildenhues in
57706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57707
57708         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57709         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57710
57711 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57714         yesterday's patch by changing test -n to test -z.
57715
57716 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57717
57718         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57719         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57720         the former is now obsolescent.
57721
57722         * modules/chdir-long (Depends-on): Add fcntl.
57723
57724 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57725
57726         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57727         obsolescent, and programs should use gnulib instead.
57728         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57729         but with prefixes changed.
57730
57731 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57734         or stdbool.h, because they might not exist while configuring.
57735
57736         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57737         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57738         does that for us.
57739         (O_DIRECTORY): Remove.
57740
57741 2006-08-31  Eric Blake  <ebb9@byu.net>
57742
57743         * gnulib-tool: Don't let emacs change spaces to TAB.
57744
57745 2006-08-31  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool: When calling func_import more than once, do it in a
57748         subshell.
57749         Reported by Eric Blake <ebb9@byu.net>.
57750
57751 2006-08-31  Bruno Haible  <bruno@clisp.org>
57752
57753         * gnulib-tool (nl): Remove variable.
57754         (sed_transform_lib_file): Use more robust test for config-h module.
57755         (func_import): Fix typo in 2006-08-25 patch.
57756
57757 2006-08-31  Bruno Haible  <bruno@clisp.org>
57758
57759         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57760         specified, augment Makefile.am variables instead of assigning them.
57761
57762 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57763
57764         Work around a bug in both the Linux and SunOS 64-bit kernels:
57765         nanosleep mishandles sleeps for longer than 2**31 seconds.
57766         Problem reported by Frank v Waveren in
57767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57769         Check for nanosleep bug.
57770         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57771
57772 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57773
57774         Work around a bug in both the Linux and SunOS 64-bit kernels:
57775         nanosleep mishandles sleeps for longer than 2**31 seconds.
57776         Problem reported by Frank v Waveren in
57777         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57778         * lib/nanosleep.c (BILLION): New constant.
57779         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57780         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57781         implementation.
57782
57783 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57784
57785         * modules/nanosleep (Depends-on): Add gettime.
57786
57787 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57788         and Simon Josefsson  <jas@extundo.com>
57789         and Oskar Liljeblad  <oskar@osk.mine.nu>
57790
57791         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57792         * gnulib-tool (func_import): New license type 'unmodifiable license
57793         text'.
57794         * modules/fdl: Use it.  Longer description.
57795         * module/gpl, module/lgpl: New files.
57796
57797 2006-08-30  Jim Meyering  <jim@meyering.net>
57798
57799         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57800         shadowing the parameter.
57801
57802 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57803
57804         Sync from Libtool:
57805
57806         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57807
57808         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57809         sharing with gnulib.  Report by Eric Blake.
57810
57811 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57812
57813         * modules/isapipe: New file.
57814         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57815
57816 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57817
57818         * modules/configmake (Makefile.am): Add a comment, and omit
57819         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57820         by Bruno Haible.
57821
57822 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57823
57824         * m4/isapipe.m4: New file.
57825
57826 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         * lib/isapipe.c, lib/isapipe.h: New files.
57829
57830 2006-08-29  Jim Meyering  <jim@meyering.net>
57831
57832         * modules/configmake (Makefile.am): Make configmake.h depend on
57833         Makefile.  Otherwise, a stale configmake.h could hang around.
57834
57835 2006-08-29  Eric Blake  <ebb9@byu.net>
57836
57837         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57838         resolution of upstream bug 3044.
57839
57840 2006-08-29  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/localcharset (Depends-on): Add configmake.
57843         (Makefile.am): Remove setting of LIBDIR through DEFS.
57844
57845 2006-08-29  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57848         defined.
57849
57850 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57851
57852         * modules/fcntl: New file.
57853         * modules/chdir-safer (Depends-on): Add fcntl.
57854         * modules/fts: Likewise.
57855         * modules/mkdir-p: Likewise.
57856
57857         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57858         This undoes the most recent change, since we're now addressing the
57859         problem in a different way.
57860
57861         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57862         into output, since the output might be called Makefile.am even
57863         if $makefile_name is something different.
57864         (func_import): Use $makefile_am rather than
57865         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57866         empty.
57867
57868         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57869
57870 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57873         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57874         recent change to stdint.m4, since we're now addressing the problem in a
57875         different way.
57876
57877 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         * m4/fcntl_h.m4: New file.
57880
57881 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57882
57883         * lib/fcntl_.h: New file.
57884         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57885         the fcntl module.
57886         * lib/dirchownmod.c: Likewise.
57887         * lib/fts.c: Likewise.
57888
57889         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57890         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57891         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57892         just before including <inttypes.h>, to avoid circular inclusion.
57893
57894 2006-08-28  Jim Meyering  <jim@meyering.net>
57895
57896         * doc/visibility.texi: Actually read and correct the grammar of the
57897         sentence affected by yesterday's change.
57898
57899 2006-08-28  Eric Blake  <ebb9@byu.net>
57900
57901         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57902         needs wrapper.
57903
57904 2006-08-28  Eric Blake  <ebb9@byu.net>
57905
57906         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57907
57908 2006-08-28  Eric Blake  <ebb9@byu.net>
57909
57910         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57911
57912 2006-08-28  Bruno Haible  <bruno@clisp.org>
57913
57914         * modules/c-strstr: New file, from GNU gettext.
57915         * MODULES.html.sh (String handling): Add c-strstr.
57916
57917 2006-08-28  Bruno Haible  <bruno@clisp.org>
57918
57919         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57920         macros.
57921         Reported by Eric Blake.
57922
57923 2006-08-28  Bruno Haible  <bruno@clisp.org>
57924
57925         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57926         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57927         * lib/vasprintf.c: Include errno.h, limits.h.
57928         (EOVERFLOW): New fallback definition.
57929         (vasprintf): Test here whether the string length is > INT_MAX.
57930         * lib/vsnprintf.c: Include errno.h, limits.h.
57931         (EOVERFLOW): New fallback definition.
57932         (vsnprintf): Fix bug when generated string was too long for the buffer.
57933         Test here whether the string length is > INT_MAX.
57934
57935 2006-08-28  Bruno Haible  <bruno@clisp.org>
57936
57937         * lib/inttypes_.h (SCNX*): Remove definitions.
57938         Reported by Eric Blake.
57939
57940 2006-08-28  Bruno Haible  <bruno@clisp.org>
57941
57942         * lib/c-strstr.h: New file, from GNU gettext.
57943         * lib/c-strstr.c: New file, from GNU gettext.
57944
57945 2006-08-28  Bruno Haible  <bruno@clisp.org>
57946
57947         * gnulib-tool: Reorder some statements.
57948
57949 2006-08-28  Bruno Haible  <bruno@clisp.org>
57950
57951         * gnulib-tool: New option --makefile-name.
57952         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57953         $makefile_name.
57954         (func_import): Write $makefile_name to the cache file, and read it from
57955         there unless explicitly specified. Use $makefile_name as file name
57956         instead of Makefile.am. Adjust the recommendations accordingly.
57957
57958 2006-08-28  Bruno Haible  <bruno@clisp.org>
57959
57960         * gnulib-tool (func_verify_module): Check against misapplying patch.
57961
57962 2006-08-28  Bruno Haible  <bruno@clisp.org>
57963
57964         * gnulib-tool (func_relativize, func_relconcat): New functions.
57965         Give an error if --local-dir is given with --update.
57966         Remove trailing slashes from $local_gnulib_dir.
57967         (func_import): Store the relativized $local_gnulib_dir in
57968         gnulib-cache.m4, and read it from there if not specified explicitly.
57969
57970 2006-08-28  Bruno Haible  <bruno@clisp.org>
57971
57972         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57973         is the current directory. Respect also $local_gnulib_dir.
57974
57975 2006-08-28  Bruno Haible  <bruno@clisp.org>
57976             Simon Josefsson  <jas@extundo.com>
57977
57978         BeOS portability.
57979         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57980
57981 2006-08-27  Jim Meyering  <jim@meyering.net>
57982
57983         * doc/visibility.texi: Remove duplicate word: "pointer".
57984
57985 2006-08-26  Bruno Haible  <bruno@clisp.org>
57986
57987         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57988         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57989         (Makefile.am): Create inttypes.h from inttypes_.h.
57990         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57991
57992         * modules/imaxabs: New file.
57993
57994         * modules/imaxdiv: New file.
57995
57996 2006-08-26  Bruno Haible  <bruno@clisp.org>
57997
57998         * m4/inttypes.m4: New file.
57999         * m4/_inttypes_h.m4: Remove file.
58000         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58001         PRI_MACROS_BROKEN.
58002         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58003
58004         * m4/imaxabs.m4: New file.
58005
58006         * m4/imaxdiv.m4: New file.
58007
58008 2006-08-26  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/inttypes_.h: New file.
58011         * lib/inttypes.h: Remove file.
58012         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58013
58014         * lib/imaxabs.c: New file.
58015
58016         * lib/imaxdiv.c: New file.
58017
58018 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         New config-h module, so that "make" output needn't be cluttered
58021         by -DHAVE_CONFIG_H.
58022         * MODULES.html.sh (Support for building libraries and executables):
58023         Add config-h.
58024         * modules/config-h: New file.
58025         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58026         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58027         the config-h module is used.
58028
58029         New configmake module, so that "make" output needn't be cluttered
58030         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58031         * MODULES.html.sh (Support for building libraries and executables):
58032         Add configmake.
58033         * modules/configmake: New file.
58034
58035 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58036
58037         * m4/config-h.m4: New file.
58038
58039 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58040
58041         * config/srclist.txt: Add elisp-comp.
58042
58043 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58044
58045         * MODULES.html.sh (Support for building libraries and executables):
58046         Add elisp-comp.
58047         * build-aux/elisp-comp: New file.
58048         * modules/elisp-comp: New file.
58049
58050 2006-08-24  Bruno Haible  <bruno@clisp.org>
58051
58052         * gnulib-tool (func_create_testdir): Use non-default values of
58053         sourcebase and m4base.
58054
58055 2006-08-24  Bruno Haible  <bruno@clisp.org>
58056
58057         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58058         HTML structure.
58059
58060 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58061
58062         * modules/openat (Depends-on): Add lchown.
58063
58064 2006-08-23  Bruno Haible  <bruno@clisp.org>
58065
58066         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58067         of gl_LOCK_EARLY instead of gl_LOCK.
58068
58069 2006-08-23  Bruno Haible  <bruno@clisp.org>
58070
58071         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58072         on OSF/1 to no.
58073         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58074
58075 2006-08-23  Bruno Haible  <bruno@clisp.org>
58076
58077         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58078         as unusable.
58079
58080         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58081         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58082         (gl_LOCK): New macro.
58083
58084 2006-08-22  Simon Josefsson  <jas@extundo.com>
58085
58086         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58087         to md5 module.
58088
58089 2006-08-22  Simon Josefsson  <jas@extundo.com>
58090
58091         * MODULES.html.sh: Add "Support for maintaining and release
58092         projects".
58093
58094         * build-aux/gnupload: New file, from coreutils.
58095
58096 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58097
58098         Avoid the need for AC_LIBSOURCES in m4 macros.
58099         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58100         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58101         * modules/check-version (EXTRA_DIST): Add check-version.h.
58102         * modules/crc (EXTRA_DIST): Add crc.h.
58103         * modules/des (EXTRA_DIST): Add des.h.
58104         * modules/gc (EXTRA_DIST): Add gc.h.
58105         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58106         * modules/getline (EXTRA_DIST): Add getline.h.
58107         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58108         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58109         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58110         * modules/md2 (EXTRA_DIST): Add md2.h.
58111         * modules/md4 (EXTRA_DIST): Add md4.h.
58112         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58113         * modules/read-file (EXTRA_DIST): Add read-file.h.
58114         * modules/readline (EXTRA_DIST): Add readline.h.
58115         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58116         rijndael-api-fst.h.
58117
58118 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58119
58120         * m4/rijndael.m4 (gl_ARCFOUR):
58121         * m4/arctwo.m4 (gl_ARCTWO):
58122         * m4/check-version.m4 (gl_CHECK_VERSION):
58123         * m4/crc.m4 (gl_CRC):
58124         * m4/des.m4 (gl_DES):
58125         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58126         * m4/gc.m4 (gl_GC):
58127         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58128         * m4/getline.m4 (gl_FUNC_GETLINE):
58129         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58130         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58131         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58132         * m4/md2.m4 (gl_MD2):
58133         * m4/md4.m4 (gl_MD4):
58134         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58135         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58136         * m4/readline.m4 (gl_FUNC_READLINE):
58137         * m4/rijndael.m4 (gl_RIJNDAEL):
58138         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58139         to get the necessary .h files and whatnot.
58140
58141 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58142
58143         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58144         gnulib rather than the other way around.
58145         * config/srclistvars.sh (COREUTILS): Remove.
58146
58147 2006-08-22  Jim Meyering  <jim@meyering.net>
58148
58149         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58150
58151         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58152
58153 2006-08-22  Eric Blake  <ebb9@byu.net>
58154
58155         * modules/regexprops-generic: New file.
58156         * MODULES.html.sh (Support for building documentation): List it.
58157
58158 2006-08-22  Eric Blake  <ebb9@byu.net>
58159
58160         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58161         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58162         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58163         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58164
58165 2006-08-22  Bruno Haible  <bruno@clisp.org>
58166
58167         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58168         and lib_LTLIBRARIES like the other lib_* variables.
58169
58170 2006-08-22  Bruno Haible  <bruno@clisp.org>
58171
58172         * build-aux/x-to-1.in: New file, from GNU gettext.
58173
58174 2006-08-22  Bruno Haible  <bruno@clisp.org>
58175
58176         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58177         <utmpx.h> exists.
58178
58179 2006-08-22  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58182         <utmpx.h> exists.
58183
58184 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         BeOS portability.
58187         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58188         exist.
58189         Problem reported by Bruno Haible.
58190
58191 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58192
58193         Avoid the need for AC_LIBSOURCES in m4 macros.
58194         * modules/acl (EXTRA_DIST): Add acl.h.
58195         * modules/argmatch (Files): Add m4/argmatch.m4.
58196         (configure.ac): Add gl_ARGMATCH.
58197         (EXTRA_DIST): Renamed from lib_SOURCES, for
58198         consistency with the other modules.  Remove argmatch.c.
58199         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58200         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58201         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58202         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58203         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58204         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58205         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58206         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58207         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58208         * modules/closeout (EXTRA_DIST): Add closeout.h.
58209         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58210         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58211         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58212         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58213         dirname.h; remove basename.c and stripslash.c.
58214         * modules/exclude (EXTRA_DIST): Add exclude.h.
58215         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58216         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58217         * modules/file-type (EXTRA_DIST): Add file-type.h.
58218         * modules/filemode (EXTRA_DIST): Add filemode.h.
58219         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58220         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58221         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58222         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58223         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58224         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58225         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58226         * modules/getdate (EXTRA_DIST): Add getdate.c.
58227         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58228         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58229         * modules/getpass (EXTRA_DIST): Add getpass.h.
58230         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58231         * modules/group-member (EXTRA_DIST): Add group-member.h.
58232         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58233         * modules/hash (EXTRA_DIST): Add hash.h.
58234         * modules/human (EXTRA_DIST): Add human.h.
58235         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58236         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58237         * modules/lchown (EXTRA_DIST): Add lchown.h.
58238         * modules/long-options (EXTRA_DIST): Add long-options.h.
58239         * modules/lstat (EXTRA_DIST): Add lstat.h.
58240         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58241         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58242         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58243         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58244         * modules/memxor (EXTRA_DIST): Add memxor.h.
58245         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58246         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58247         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58248         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58249         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58250         * modules/physmem (EXTRA_DIST): Add physmem.h.
58251         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58252         * modules/posixver (EXTRA_DIST): Add posixver.h.
58253         * modules/quote (EXTRA_DIST): Add quote.h.
58254         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58255         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58256         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58257         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58258         regex_internal.h regexec.c.
58259         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58260         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58261         * modules/same (EXTRA_DIST): Add same.h.
58262         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58263         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58264         * modules/savedir (EXTRA_DIST): Add savedir.h.
58265         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58266         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58267         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58268         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58269         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58270         * modules/strdup (EXTRA_DIST): Add strdup.h.
58271         * modules/strftime (EXTRA_DIST): Add strftime.h.
58272         * modules/strndup (EXTRA_DIST): Add strndup.h.
58273         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58274         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58275         * modules/time_r (EXTRA_DIST): Add time_r.h.
58276         * modules/timespec (EXTRA_DIST): Add timespec.h.
58277         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58278         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58279         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58280         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58281         * modules/userspec (EXTRA_DIST): Add userspec.h.
58282         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58283         * modules/utimens (EXTRA_DIST): Add utimens.h.
58284         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58285         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58286         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58287         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58288         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58289         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58290         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58291         * modules/yesno (EXTRA_DIST): Add yesno.h.
58292
58293 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58294
58295         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58296
58297         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58298         * m4/dev-ino.m4, same-inode.m4: Remove.
58299
58300         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58301         * m4/acl.m4 (AC_FUNC_ACL):
58302         * m4/backupfile.m4 (gl_BACKUPFILE):
58303         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58304         * m4/canon-host.m4 (gl_CANON_HOST):
58305         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58306         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58307         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58308         * m4/cloexec.m4 (gl_CLOEXEC):
58309         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58310         * m4/closeout.m4 (gl_CLOSEOUT):
58311         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58312         * m4/dirname.m4 (gl_DIRNAME):
58313         * m4/exclude.m4 (gl_EXCLUDE):
58314         * m4/exitfail.m4 (gl_EXITFAIL):
58315         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58316         * m4/file-type.m4 (gl_FILE_TYPE):
58317         * m4/filemode.m4 (gl_FILEMODE):
58318         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58319         * m4/fpending.m4 (gl_FUNC_FPENDING):
58320         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58321         * m4/fts.m4 (gl_FUNC_FTS):
58322         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58323         * m4/getdate.m4 (gl_GETDATE):
58324         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58325         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58326         * m4/getpass.m4 (gl_FUNC_GETPASS):
58327         * m4/gettime.m4 (gl_GETTIME):
58328         * m4/getugroups.m4 (gl_GETUGROUPS):
58329         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58330         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58331         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58332         * m4/hash.m4 (gl_HASH):
58333         * m4/idcache.m4 (gl_IDCACHE):
58334         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58335         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58336         * m4/long-options.m4 (gl_LONG_OPTIONS):
58337         * m4/lstat.m4 (gl_FUNC_LSTAT):
58338         * m4/md5.m4 (gl_MD5):
58339         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58340         * m4/memcoll.m4 (gl_MEMCOLL):
58341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58342         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58343         * m4/memxor.m4 (gl_MEMXOR):
58344         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58345         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58346         * m4/modechange.m4 (gl_MODECHANGE):
58347         * m4/mountlist.m4 (gl_MOUNTLIST):
58348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58349         * m4/openat.m4 (gl_FUNC_OPENAT):
58350         * m4/pathmax.m4 (gl_PATHMAX):
58351         * m4/physmem.m4 (gl_PHYSMEM):
58352         * m4/posixtm.m4 (gl_POSIXTM):
58353         * m4/posixver.m4 (gl_POSIXVER):
58354         * m4/quote.m4 (gl_QUOTE):
58355         * m4/quotearg.m4 (gl_QUOTEARG):
58356         * m4/readtokens.m4 (gl_READTOKENS):
58357         * m4/readutmp.m4 (gl_READUTMP):
58358         * m4/regex.m4 (gl_REGEX):
58359         * m4/safe-read.m4 (gl_SAFE_READ):
58360         * m4/safe-write.m4 (gl_SAFE_WRITE):
58361         * m4/same.m4 (gl_SAME):
58362         * m4/save-cwd.m4 (gl_SAVE_CWD):
58363         * m4/savedir.m4 (gl_SAVEDIR):
58364         * m4/settime.m4 (gl_SETTIME):
58365         * m4/sha1.m4 (gl_SHA1):
58366         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58367         * m4/stat-macros.m4 (gl_STAT_MACROS):
58368         * m4/stat-time.m4 (gl_STAT_TIME):
58369         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58370         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58371         * m4/strdup.m4 (gl_FUNC_STRDUP):
58372         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58373         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58374         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58375         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58376         * m4/time_r.m4 (gl_TIME_R):
58377         * m4/timespec.m4 (gl_TIMESPEC):
58378         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58379         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58380         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58381         * m4/userspec.m4 (gl_USERSPEC):
58382         * m4/utimecmp.m4 (gl_UTIMECMP):
58383         * m4/utimens.m4 (gl_UTIMENS):
58384         * m4/xalloc.m4 (gl_XALLOC):
58385         * m4/xgetcwd.m4 (gl_XGETCWD):
58386         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58387         * m4/xreadlink.m4 (gl_XREADLINK):
58388         * m4/xstrtod.m4 (gl_XSTRTOD):
58389         * m4/yesno.m4 (gl_YESNO):
58390         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58391         to get the necessary .h files and whatnot.
58392
58393 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58394             Bruno Haible  <bruno@clisp.org>
58395
58396         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58397         /bin/sh understanding of '!' conditional negation.
58398
58399 2006-08-21  Jim Meyering  <jim@meyering.net>
58400
58401         * modules/openat (Depends-on): Really alphabetize.
58402
58403         * modules/acl (Depends-on): Add error and quote.
58404
58405         * check-module (find_included_lib_files): Add at-func.c to the
58406         ok-to-include-more-than-once white list.
58407
58408         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58409
58410 2006-08-21  Bruno Haible  <bruno@clisp.org>
58411
58412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58413         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58414         Reported by Martin Lambers <marlam@marlam.de>.
58415
58416 2006-08-21  Bruno Haible  <bruno@clisp.org>
58417
58418         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58419         specify an installation location, don't emit a noinst_LIBRARIES or
58420         noinst_LTLIBRARIES assignment.
58421
58422 2006-08-21  Bruno Haible  <bruno@clisp.org>
58423
58424         BeOS portability.
58425         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58426         BeOS has mbrtowc() but no <wctype.h>.
58427
58428 2006-08-21  Bruno Haible  <bruno@clisp.org>
58429
58430         BeOS portability.
58431         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58432         exist.
58433
58434 2006-08-21  Bruno Haible  <bruno@clisp.org>
58435
58436         BeOS portability.
58437         * lib/mbchar.h: Include <wctype.h> only if it exists.
58438
58439 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         Remove files that are no longer needed by their respective modules.
58442         * m4/obstack.m4: Remove.
58443         * m4/strerror_r.m4: Remove.
58444         * m4/uint32_t.m4: Remove.
58445         * m4/uintptr_t.m4: Remove.
58446         * m4/ullong_max.m4: Remove.
58447         * m4/xstrtoimax.m4: Remove.
58448         * m4/xstrtoumax.m4: Remove.
58449
58450         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58451         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58452         dependencies now capture this.
58453
58454         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58455         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58456         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58457         * m4/human.m4 (gl_HUMAN): Likewise.
58458         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58459         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58460
58461         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58462
58463         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58464         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58465         stdint.
58466         * m4/human.m4 (gl_HUMAN): Likewise.
58467         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58468         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58469         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58470         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58471         * m4/xstrtol (gl_XSTRTOL): Likewise.
58472
58473         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58474         AC_TYPE_LONG_LONG_INT.
58475         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58476         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58477         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58478         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58479
58480         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58481         on stdbool.
58482
58483         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58484         (gl_PREREQ_XSTRTOUL): Remove.
58485
58486         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58487
58488         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58489         mode.
58490
58491 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58492
58493         Add and change modules to make it easier for coreutils to use
58494         gnulib-tool.
58495         * modules/backupfile (Files): Remove m4/d-ino.m4.
58496         (Depends-on): Add d-ino.
58497         * modules/cycle-check (Depends-on): Add stdint.
58498         (lib_SOURCES): Add cycle-check.h.
58499         * modules/d-ino: New module.
58500         * modules/d-type: New module.
58501         * modules/error (Files): Remove m4/strerror_r.m4.
58502         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58503         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58504         m4/inttypes_h.m4, m4/uintmax_t.m4.
58505         (Depends-on): Add stdint.
58506         (lib_SOURCES): Add fsusage.h.
58507         * modules/getcwd (Files): Remove d-ino.m4.
58508         (Depends-on): Add d-ino.
58509         * modules/getndelim2 (Depends-on): Add stdint.
58510         * modules/glob (Files): Remove m4/d-type.m4.
58511         (Depends-on): Add d-type.
58512         * modules/host-os: New module.
58513         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58514         m4/inttypes_h.m4, m4/uintmax_t.m4.
58515         * Depends-on: Add stdint.
58516         (lib_SOURCES): Add human.h.
58517         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58518         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58519         m4/uintmax_t.m4, m4/ulonglong.m4.
58520         (Depends-on): Add stdint.
58521         (EXTRA_DIST): Add inttostr.h.
58522         * modules/lchmod: New module.
58523         * modules/link-follow: New module.
58524         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58525         (Depends-on): Add lchmod.
58526         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58527         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58528         (Depends-on): Add stdint.
58529         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58530         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58531         (Depends-on): Add stdint.
58532         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58533         * modules/perl: New module.
58534         * modules/regex (Depends-on): Add stdint.
58535         * modules/rmdir-errno: New module.
58536         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58537         m4/intmax_t.m4.
58538         (Depends-on): Add stdint.
58539         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58540         m4/uintmax_t.m4.
58541         (Depends-on): Add stdint.
58542         * modules/unlink-busy: New module.
58543         * modules/utimecmp (Depends-on): Add stdint.
58544         * modules/uptime: New module.
58545         * modules/winsz-ioctl: New module.
58546         * modules/winsz-termios: New module.
58547         * modules/xnanosleep (Depends-on): Add nanosleep.
58548         * modules/ullong_max: Remove.
58549         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58550         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58551         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58552         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58553         (Depends-on): Add inttypes.
58554         (lib_SOURCES): Add xstrtol.h.
58555         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58556         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58557         * MODULES.html.sh: Move 'assert' into the assert section.
58558         Move 'dummy' into the linking section.
58559         Remove ullong_max.
58560         Add section for compatibility checks for POSIX:2001 functions,
58561         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58562         winsz-ioctl, and winsz-termios into it.
58563         Add lchmod.
58564         Add top-level Misc section and put host-os, perl, and uptime
58565         into it.
58566
58567 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58568
58569         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58570         now assume the stdint module.  Do not include inttypes.h.
58571         * lib/fsusage.h: Likewise.
58572         * lib/getndelim2.c: Likewise.
58573         * lib/human.h: Likewise.
58574         * lib/inttostr.h: Likewise.
58575         * lib/obstack.c: Likewise.
58576         * lib/regex_internal.h: Likewise.
58577         * lib/tempname.c: Likewise.
58578         * lib/utimecmp.c: Likewise.
58579         * lib/xstrtol.h: Likewise.
58580
58581         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58582
58583         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58584         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58585         * lib/xtime.h: Likewise.
58586
58587 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         * modules/openat (Files): Add lib/fchmodat.c.
58590         Fixes problem reported by Jay Youngman.
58591
58592 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58595         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58596
58597 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58598             Bruno Haible  <bruno@clisp.org>
58599
58600         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58601         and is a script that invokes bison. Tighten the code. Add comments.
58602
58603 2006-08-18  Jim Meyering  <jim@meyering.net>
58604
58605         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58606         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58607         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58608         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58609
58610 2006-08-18  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/bison-i18n: New file.
58613         * MODULES.html.sh (Internationalization functions): Add it.
58614
58615 2006-08-18  Bruno Haible  <bruno@clisp.org>
58616
58617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58618         sys/statvfs.h. When getmntinfo was found, check its declaration and
58619         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58620
58621 2006-08-18  Bruno Haible  <bruno@clisp.org>
58622
58623         * m4/bison-i18n.m4: New file, from bison.
58624
58625 2006-08-18  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58628         (ME_DUMMY): Treat "kernfs" as a dummy.
58629         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58630
58631 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         Update from coreutils.
58634
58635         2006-08-15  Jim Meyering  <jim@meyering.net>
58636
58637         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58638
58639         2006-01-17  Jim Meyering  <jim@meyering.net>
58640
58641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58642
58643         2006-01-11  Jim Meyering  <jim@meyering.net>
58644
58645         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58646         Check for the lchmod function.
58647
58648 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58649
58650         Update from coreutils.
58651
58652         * lib/__fpending.h: Add copyright notice.
58653         * lib/fprintftime.h: Likewise.
58654         * lib/savedir.c: Use (C) in copyright notice.
58655         * lib/savedir.h: Likewise.
58656
58657         2006-08-15  Jim Meyering  <jim@meyering.net>
58658
58659         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58660         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58661         in support of the EXPECTED_ERRNO macro.
58662         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58663         definitions.  Instead, define the appropriate symbols and include
58664         "at-func.c".
58665         * lib/mkdirat.c (mkdirat): Likewise.
58666         * lib/fchmodat.c (fchmodat): Likewise.
58667         (ENOSYS): Remove definition.
58668         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58669         it.  Don't include "unistd--.h" -- it wasn't ever used.
58670
58671         2006-01-17  Jim Meyering  <jim@meyering.net>
58672
58673         Rewrite fts.c not to change the current working directory,
58674         by using openat, fstatat, fdopendir, etc..
58675
58676         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58677         (HAVE_OPENAT_SUPPORT): Define.
58678         [_LIBC] (fchdir): Don't undef or define; no longer used.
58679         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58680         Now, this `function' always succeeds, and consumes its file descriptor
58681         parameter -- so callers must not close such FDs.  Update callers.
58682         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58683         (diropen): Add parameter, SP.  Adjust all callers.
58684         Implement using diropen_fd, rather than open.
58685         (fts_open): Initialize new member, fts_cwd_fd.
58686         Remove fts_rft-setting code.
58687         (fts_close): Close fts_cwd_fd, if necessary.
58688         (__opendir2): Define in terms of opendir or opendirat,
58689         depending on whether the FST_NOCHDIR flag is set.
58690         (fts_build): Since fts_safe_changedir consumes its FD, and since
58691         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58692         and close the dup'd file descriptor upon failure.
58693         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58694         (fts_safe_changedir): Tweak semantics to reflect that this function
58695         now calls cwd_advance_fd and hence consumes its FD argument.
58696         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58697         [struct FTS] (fts_rft): Remove now-unused member.
58698         [struct FTS] (fts_cycle.state): Improve comment.
58699
58700         * lib/openat.c (openat_needs_fchdir): New function.
58701         * lib/openat.h (openat_needs_fchdir): Declare it.
58702
58703 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58706         Problem and fix reported by Pádraig Brady in
58707         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58708
58709 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58712
58713 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         * lib/memcoll.c (memcoll): Optimize for the common case where the
58716         arguments are bytewise equal.
58717
58718 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         * doc/regexprops-generic.texi: Add a copyright notice.
58721
58722 2006-08-15  Bruno Haible  <bruno@clisp.org>
58723
58724         * modules/tmpdir (License): Change to LGPL.
58725
58726 2006-08-15  Bruno Haible  <bruno@clisp.org>
58727
58728         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58729         module.
58730
58731 2006-08-14  Simon Josefsson  <jas@extundo.com>
58732
58733         * config/srclist.txt: Add gnupload.
58734
58735 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         Change copyright notice from LGPL 2 to GPL 2, since that's the
58738         standard form used in the gnulib repository.
58739         * tests/test-lock.c: Likewise.
58740         * tests/test-stdint.c: Likewise.
58741         * tests/test-tls.c: Likewise.
58742
58743         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58744         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58745         Add copyright notice.
58746
58747         * check-module: Add copyright notice.  Output a copyright
58748         notice if "--version" is specified.
58749         * modules/COPYING: New file.
58750         * tests/test-getaddrinfo.c: Add copyright notice.
58751         * tests/test-verify.c: Likewise.
58752
58753 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58754
58755         Change copyright notice from LGPL 2 to GPL 2, since that's the
58756         standard form used in the gnulib repository.
58757         * lib/lock.c: LGPL -> GPL.
58758         * lib/lock.h: Likewise.
58759         * lib/strnlen1.c: Likewise.
58760         * lib/strnlen1.h: Likewise.
58761         * lib/tls.c: Likewise.
58762         * lib/tls.h: Likewise.
58763         * lib/tmpdir.c: Likewise.
58764
58765         * lib/TODO: Remove; this belongs only in coreutils.
58766
58767 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         Add copyright notices to long-enough files that lack them, since
58770         otherwise the files aren't clearly free.  Use the same notice that
58771         getdate.texi already uses.
58772         * doc/alloca-opt.texi: Add copyright notice.
58773         * doc/alloca.texi: Likewise.
58774         * doc/ctime.texi: Likewise.
58775         * doc/functions.texi: Likewise.
58776         * doc/gcd.texi: Likewise.
58777         * doc/gnulib-tool.texi: Likewise.
58778         * doc/inet_ntoa.texi: Likewise.
58779         * doc/visibility.texi: Likewise.
58780
58781         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58782         * doc/quote.texi: Add copyright notice.
58783
58784         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58785         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58786         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58787         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58788         is now obsolete, and give a pointer to the Sun list.
58789         Add copyright notice.
58790
58791 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         * config/srclistvars.sh: Add copyright notice.
58794
58795 2006-08-14  Eric Blake  <ebb9@byu.net>
58796
58797         Import the following change from libc:
58798
58799         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58800
58801         Upstream bug 2997.
58802         * lib/misc/error.c: Add space between program name and message if file
58803         name is missing.
58804
58805 2006-08-12  Karl Berry  <karl@gnu.org>
58806
58807         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58808         remove, these originate in gnulib now.
58809
58810 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58811
58812         * doc/Makefile (standards.info standards.html standards.dvi):
58813         Also depend on make-stds.texi.
58814
58815 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58816
58817         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58818         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58819
58820         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58821         in wchar_t.  Problem reported by Eric Blake.
58822
58823         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58824         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58825         Also, help the compiler to keep LEN in a register.
58826
58827 2006-08-11  Eric Blake  <ebb9@byu.net>
58828
58829         * users.txt: Sort.  Add tar.
58830
58831 2006-08-11  Bruno Haible  <bruno@clisp.org>
58832
58833         * users.txt: New file.
58834
58835 2006-08-11  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58838         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58839
58840 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58841
58842         * modules/snprintf (Depends-on): Remove minmax.
58843         (Maintainer): Add self and Bruno.
58844
58845 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58846
58847         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58848         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58849         (EOVERFLOW): Define if the system does not.
58850         Do not include "minmax.h"; it wasn't used.
58851         (snprintf): Don't assume size_t promotes to an unsigned type.
58852         Fix bug when generated string was too long for the buffer: the
58853         buffer's contents are supposed to be the initial prefix of the
58854         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58855         exceeds INT_MAX; do the check ourselves.
58856
58857         Import the following changes from libc:
58858
58859         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58860
58861         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58862         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58863         set wc to the byte which couldn't be converted.
58864         (re_string_reconstruct): Don't clear valid_raw_len before calling
58865         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58866         tip_context using re_string_context_at.
58867
58868         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58869
58870         * lib/posix/regex.h: g++ still cannot handled [restrict].
58871
58872         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58873
58874         * lib/posix/regex.h: Remove special handling for VMS.
58875
58876 2006-08-10  Jim Meyering  <jim@meyering.net>
58877
58878         * modules/same-inode: New module.
58879         * modules/dev-ino: New module.
58880         * modules/cycle-check: Depend on these modules, rather than simply
58881         including their .h files.
58882         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58883         required via m4/cycle-check.m4.
58884         * modules/same: Depend on new same-inode module, rather than
58885         including same-inode.h.
58886         * modules/chdir-safer: New file.
58887
58888         * modules/chown (Depends-on): Add stat-macros.
58889
58890 2006-08-10  Jim Meyering  <jim@meyering.net>
58891
58892         * m4/cycle-check.m4: New file.
58893         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58894         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58895
58896 2006-08-10  Eric Blake  <ebb9@byu.net>
58897
58898         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58899         in from original proposal.
58900
58901 2006-08-10  Eric Blake  <ebb9@byu.net>
58902         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58903
58904         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58905         namespace.
58906
58907 2006-08-10  Bruno Haible  <bruno@clisp.org>
58908
58909         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58910         as well.
58911
58912 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58913
58914         Sync from coreutils.
58915
58916         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58917
58918         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58919         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58920
58921 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * modules/restrict: Remove; no longer needed now that we assume
58924         Autoconf 2.59 or later.
58925         * MODULES.html.sh: Remove 'restrict'.
58926         * modules/argp (Depends-on): Remove 'restrict'.
58927         * modules/base64 (Depends-on): Likewise.
58928         * modules/gc (Depends-on): Likewise.
58929         * modules/getaddrinfo (Depends-on): Likewise.
58930         * modules/glob (Depends-on): Likewise.
58931         * modules/inet_ntop (Depends-on): Likewise.
58932         * modules/inet_pton (Depends-on): Likewise.
58933         * modules/memxor (Depends-on): Likewise.
58934         * modules/regex (Depends-on): Likewise.
58935         * modules/strtok_r (Depends-on): Likewise.
58936         * modules/time_r (Depends-on): Likewise.
58937
58938 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58941         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58942         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58943         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58944         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58945         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58946         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58947         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58948
58949         Merge from coreutils.
58950         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58951         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58952         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58953         * m4/time_r.m4 (gl_TIME_R): Likewise.
58954
58955 2006-08-09  Karl Berry  <karl@gnu.org>
58956
58957         * config/srclist.txt: no more gettext-tools, per Bruno.
58958
58959 2006-08-08  Eric Blake  <ebb9@byu.net>
58960
58961         * modules/verror: New module.
58962         * MODULES.html.sh: Document it.
58963
58964 2006-08-08  Eric Blake  <ebb9@byu.net>
58965
58966         * lib/verror.h, lib/verror.c: New files.
58967
58968 2006-08-08  Eric Blake  <ebb9@byu.net>
58969
58970         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58971         verror_at_line output complies with GNU Coding Standards even when
58972         file is NULL.
58973
58974 2006-08-07  Bruno Haible  <bruno@clisp.org>
58975
58976         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58977         versions of AIX.
58978         Reported by Ralf Wildenhues.
58979
58980 2006-08-07  Bruno Haible  <bruno@clisp.org>
58981
58982         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58983         in an AC_DEFUN. Needed so that the autoconf snippets can use
58984         AC_REQUIRE.
58985
58986 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58987
58988         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58989         Initialize pkgdata_DATA.
58990         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58991         overriding it.
58992
58993 2006-08-06  Eric Blake  <ebb9@byu.net>
58994
58995         * lib/error.h: Fold in some upstream changes from glibc.
58996         * lib/error.c: Likewise.
58997
58998 2006-08-04  Bruno Haible  <bruno@clisp.org>
58999
59000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59001         Make the mostlyclean-local rule depend on mostlyclean-generic.
59002         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59003
59004 2006-07-31  Bruno Haible  <bruno@clisp.org>
59005
59006         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59007         <stdlib.h>, <string.h>.
59008
59009 2006-07-30  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/readlink (License): Change to LGPL.
59012
59013 2006-07-30  Bruno Haible  <bruno@clisp.org>
59014
59015         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59016         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59017         set PKGDATADIR to point to it.
59018
59019 2006-07-30  Bruno Haible  <bruno@clisp.org>
59020
59021         * modules/csharpexec (configure.ac): Comment out macro invocation.
59022         * modules/javaexec (configure.ac): Likewise.
59023         * modules/javacomp-script (configure.ac): Likewise.
59024
59025         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59026
59027 2006-07-30  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59030         linked-list.
59031
59032 2006-07-30  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59035
59036 2006-07-30  Bruno Haible  <bruno@clisp.org>
59037
59038         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59039         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59040         get removed.
59041
59042 2006-07-29  Bruno Haible  <bruno@clisp.org>
59043
59044         Make it possible for gnulib-tool to work with locally modified or
59045         augmented gnulib repositories.
59046         * gnulib-tool (func_usage): Document --local-dir option.
59047         (local_gnulib_dir): New variable.
59048         Handle --local-dir option.
59049         (func_lookup_file): New function.
59050         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59051         (func_get_description, func_get_filelist, func_get_description,
59052         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59053         func_get_automake_snippet, func_get_include_directive,
59054         func_get_license, func_get_maintainer): Use func_lookup_file.
59055         (func_import, func_create_testdir): Use func_lookup_file.
59056
59057 2006-07-29  Bruno Haible  <bruno@clisp.org>
59058
59059         * modules/setenv (Depends-on): Add unistd.
59060
59061 2006-07-29  Bruno Haible  <bruno@clisp.org>
59062
59063         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59064
59065 2006-07-29  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59068
59069 2006-07-29  Bruno Haible  <bruno@clisp.org>
59070
59071         * gnulib-tool (import, update): If there is no Makefile.am, look at
59072         aclocal.m4, instead of bailing out.
59073
59074 2006-07-29  Bruno Haible  <bruno@clisp.org>
59075
59076         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59077         Categorize the options by when they are useful.
59078
59079 2006-07-29  Bruno Haible  <bruno@clisp.org>
59080
59081         * gnulib-tool (func_usage): Document option --no-libtool.
59082         Handle option --no-libtool.
59083         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59084         for changed semantics of $libtool variable.
59085         (func_import): Likewise. If libtool is not used, show this through
59086         an option --no-libtool.
59087         (func_create_testdir): Update.
59088
59089 2006-07-29  Bruno Haible  <bruno@clisp.org>
59090
59091         * gnulib-tool (func_import): Extend error message about missing
59092         --doc-base.
59093
59094 2006-07-29  Bruno Haible  <bruno@clisp.org>
59095
59096         * gnulib-tool (func_import): Don't create the $docbase directory if
59097         there is no file to store there.
59098
59099 2006-07-29  Bruno Haible  <bruno@clisp.org>
59100
59101         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59102         relevant, look for configure.ac there, not in the current directory.
59103         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59104
59105 2006-07-29  Bruno Haible  <bruno@clisp.org>
59106
59107         * gnulib-tool (SORT): New variable.
59108         (func_usage): Undocument --assume-autoconf option.
59109         Remove --assume-autoconf option handling.
59110         (autoconf_minversion): Determine from the contents of configure.ac.
59111         (func_import): Remove autoconf_minversion handling.
59112         Suggested by Eric Blake.
59113
59114 2006-07-29  Bruno Haible  <bruno@clisp.org>
59115
59116         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59117
59118 2006-07-29  Bruno Haible  <bruno@clisp.org>
59119
59120         * config/srclist.txt (*setenv.[ch]): Remove rules.
59121
59122 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59123
59124         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59125
59126 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59127
59128         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59129         arpa/inet.h.
59130
59131 2006-07-28  Simon Josefsson  <jas@extundo.com>
59132
59133         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59134         * modules/inet_pton (Depends-on): Likewise.
59135
59136 2006-07-28  Simon Josefsson  <jas@extundo.com>
59137
59138         * m4/netinet_in_h.m4: New file.
59139
59140 2006-07-28  Simon Josefsson  <jas@extundo.com>
59141
59142         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59143         #include's.
59144
59145 2006-07-28  Simon Josefsson  <jas@extundo.com>
59146
59147         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59148         #include's.
59149
59150 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59153         setgid on directories only if they set these bits.
59154         * lib/modechange.h: Remove obsolete comment about masks.
59155
59156 2006-07-28  Eric Blake  <ebb9@byu.net>
59157
59158         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59159         macro expansion.
59160
59161 2006-07-28  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59164
59165 2006-07-28  Bruno Haible  <bruno@clisp.org>
59166
59167         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59168
59169 2006-07-28  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59172         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59173         Define fallbacks.
59174         Avoids link error on FreeBSD 4.x.
59175         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59176
59177         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59178         encoding.
59179         * lib/mbswidth.c (iswcntrl): Likewise.
59180
59181 2006-07-27  Bruno Haible  <bruno@clisp.org>
59182
59183         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59184         test.
59185
59186 2006-07-27  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59189         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59190         defined.
59191
59192 2006-07-26  Eric Blake  <ebb9@byu.net>
59193
59194         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59195
59196 2006-07-26  Eric Blake  <ebb9@byu.net>
59197
59198         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59199         like mingw that lack mkstemp.
59200         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59201         avoid compilation warning on mingw.
59202
59203 2006-07-26  Bruno Haible  <bruno@clisp.org>
59204
59205         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59206         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59207         INT_FAST*_MIN, INTPTR_MIN.
59208
59209 2006-07-25  Bruno Haible  <bruno@clisp.org>
59210
59211         * modules/version-etc (Depends-on): Add stdarg.
59212
59213 2006-07-25  Bruno Haible  <bruno@clisp.org>
59214
59215         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59216         complex commands.
59217
59218 2006-07-25  Bruno Haible  <bruno@clisp.org>
59219
59220         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59221         defined in <stdarg.h> or config.h.
59222
59223 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59224
59225         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59226         (gl_STDIO_SAFER): Remove.
59227
59228 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59229
59230         * MODULES.html.sh (File stream based Input/Output):
59231         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59232         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59233         * modules/fopen-safer, modules/tmpfile-safer: New files.
59234         * modules/stdio-safer: Remove.
59235
59236 2006-07-24  Bruno Haible  <bruno@clisp.org>
59237
59238         * modules/tmpdir: New file.
59239         * MODULES.html.sh (File system functions): Add it.
59240
59241 2006-07-24  Bruno Haible  <bruno@clisp.org>
59242
59243         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59244         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59245
59246 2006-07-24  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/clean-temp: New file.
59249
59250 2006-07-24  Bruno Haible  <bruno@clisp.org>
59251
59252         * m4/tmpdir.m4: New file, from GNU gettext.
59253
59254 2006-07-24  Bruno Haible  <bruno@clisp.org>
59255
59256         * lib/tmpdir.h: New file, from GNU gettext.
59257         * lib/tmpdir.c: New file, from GNU gettext.
59258
59259 2006-07-24  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/clean-temp.h: New file, from GNU gettext.
59262         * lib/clean-temp.c: New file, from GNU gettext.
59263
59264 2006-07-23  Eric Blake  <ebb9@byu.net>
59265
59266         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59267         (Depends-on): Add binary-io.
59268
59269 2006-07-23  Eric Blake  <ebb9@byu.net>
59270
59271         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59272
59273 2006-07-23  Eric Blake  <ebb9@byu.net>
59274
59275         * lib/tmpfile-safer.c: New file.
59276         * lib/stdio-safer.h (fopen_safer): Add prototype.
59277         * lib/stdio--.h (tmpfile): Make safer.
59278
59279 2006-07-23  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59282         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59283         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59284         gl_linked_remove_at): Use it.
59285
59286 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59287         and Simon Josefsson <jas@extundo.com>
59288
59289         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59290
59291         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59292
59293 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59294
59295         * modules/close-stream: New file.
59296         * modules/closeout (Description): Make it clear that it exits
59297         with a diagnostic on error.
59298         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59299         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59300
59301 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * m4/close-stream.m4: New file.
59304
59305 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         * lib/close-stream.c, lib/close-stream.h: New files.
59308
59309 2006-07-22  Bruno Haible  <bruno@clisp.org>
59310
59311         Merge from GNU gettext 0.15.
59312
59313         2006-05-01  Bruno Haible  <bruno@clisp.org>
59314
59315                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59316
59317         2006-07-22  Bruno Haible  <bruno@clisp.org>
59318
59319                 * modules/javaversion: New file.
59320                 * MODULES.html.sh (Java): Add javaversion.
59321
59322         2006-03-12  Bruno Haible  <bruno@clisp.org>
59323
59324                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59325
59326         2005-12-04  Bruno Haible  <bruno@clisp.org>
59327
59328                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59329                 (untested).
59330
59331         2006-06-21  Bruno Haible  <bruno@clisp.org>
59332
59333                 Avoid warnings from recent versions of mcs.
59334                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59335                 -o, -L, -r any more. Use options documented since mcs-1.0
59336                 instead. Similarly for -g.
59337
59338         2005-12-04  Bruno Haible  <bruno@clisp.org>
59339
59340                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59341                 .resources, not .resource.
59342
59343         2005-07-09  Bruno Haible  <bruno@clisp.org>
59344
59345                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59346                 add a .dll suffix.
59347                 Reported by Mark Junker <mjscod@gmx.de>.
59348
59349         2006-07-22  Bruno Haible  <bruno@clisp.org>
59350
59351                 * modules/gettext: Upgrade to gettext-0.15.
59352                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59353                 m4/visibility.m4.
59354                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59355
59356 2006-07-22  Bruno Haible  <bruno@clisp.org>
59357
59358         Merge from GNU gettext 0.15.
59359
59360         2006-03-25  Bruno Haible  <bruno@clisp.org>
59361
59362                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59363
59364         2006-07-21  Bruno Haible  <bruno@clisp.org>
59365
59366                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59367                 "1.1".
59368
59369         2006-05-09  Bruno Haible  <bruno@clisp.org>
59370
59371                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59372                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59373                 for the conftestver execution.
59374
59375         2006-05-01  Bruno Haible  <bruno@clisp.org>
59376
59377                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59378                 optional target-version argument. Verify that the compiler
59379                 groks source of the specified source-version, or add -source
59380                 option as necessary. Verify that the compiler produces
59381                 bytecode in the specified target-version, or add -target and
59382                 -source options as necessary. Make the result of the test
59383                 available as variable CONF_JAVAC. Also log error output in
59384                 config.log.
59385
59386         2006-03-11  Bruno Haible  <bruno@clisp.org>
59387
59388                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59389
59390         2006-05-09  Bruno Haible  <bruno@clisp.org>
59391
59392                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59393                 CLASSPATH_SEPARATOR to a semicolon.
59394
59395         2006-03-12  Bruno Haible  <bruno@clisp.org>
59396
59397                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59398                 available as variable CONF_JAVA, for subsequent autoconf
59399                 tests. Also log error output in config.log.
59400
59401         2006-07-19  Bruno Haible  <bruno@clisp.org>
59402
59403                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59404                 that getline works on glibc2 systems. Needed to avoid trouble
59405                 in relocatable.c.
59406                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59407
59408         2005-12-04  Bruno Haible  <bruno@clisp.org>
59409
59410                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59411                 launcher (untested).
59412
59413         2005-12-04  Bruno Haible  <bruno@clisp.org>
59414
59415                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59416
59417         2006-07-22  Bruno Haible  <bruno@clisp.org>
59418
59419                 * gettext.m4: Update from GNU gettext-0.15.
59420                 * nls.m4: Likewise.
59421                 * po.m4: Likewise.
59422                 * inttypes-pri.m4: Likewise.
59423                 * inttypes-h.m4: Renamed from inttypes.m4.
59424                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59425
59426 2006-07-22  Bruno Haible  <bruno@clisp.org>
59427
59428         Merge from GNU gettext 0.15.
59429
59430         2005-07-05  Bruno Haible  <bruno@clisp.org>
59431
59432                 * printf-args.c (printf_fetchargs): Work around broken
59433                 definition of wint_t on mingw.
59434
59435         2005-02-12  Bruno Haible  <bruno@clisp.org>
59436
59437                 * xallocsa.h: Add extern "C" for C++.
59438
59439         2006-05-17  Bruno Haible  <bruno@clisp.org>
59440
59441                 Cygwin portability.
59442                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59443
59444         2006-04-30  Bruno Haible  <bruno@clisp.org>
59445
59446                 * progreloc.c: Include <mach-o/dyld.h> if available.
59447                 (find_executable): Use _NSGetExecutablePath when possible.
59448
59449         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59450
59451                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59452                 function.
59453
59454         2005-12-29  Bruno Haible  <bruno@clisp.org>
59455
59456                 * progreloc.c (set_program_name_and_installdir): Fix
59457                 compilation error.
59458
59459         2005-12-04  Bruno Haible  <bruno@clisp.org>
59460
59461                 Cygwin portability.
59462                 * progreloc.c: Include <windows.h> also on Cygwin.
59463                 (find_executable): Add support for Cygwin.
59464                 (set_program_name_and_installdir): Handle also platforms with
59465                 nonempty EXEEXT.
59466
59467         2006-07-11  Bruno Haible  <bruno@clisp.org>
59468
59469                 * javacomp.c: Fix a comment.
59470                 Reported by Jim Meyering.
59471
59472         2006-04-30  Bruno Haible  <bruno@clisp.org>
59473
59474                 * javacomp.h (compile_java_class): Add source_version,
59475                 target_version arguments.
59476                 * javacomp.c: Rewritten to choose only a compiler that
59477                 respects the specified source_version and target_version.
59478
59479         2006-06-27  Bruno Haible  <bruno@clisp.org>
59480
59481                 Assume correct S_ISDIR macro.
59482                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59483
59484         2006-07-22  Bruno Haible  <bruno@clisp.org>
59485
59486                 * javaversion.h: New file, from GNU gettext.
59487                 * javaversion.c: New file, from GNU gettext.
59488                 * javaversion.java: New file, from GNU gettext.
59489                 * javaversion.class: New file, from GNU gettext.
59490
59491         2006-05-17  Bruno Haible  <bruno@clisp.org>
59492
59493                 Cygwin portability.
59494                 * javaexec.c (execute_java_class): Test for jview program
59495                 also on Cygwin.
59496
59497         2006-04-09  Bruno Haible  <bruno@clisp.org>
59498
59499                 * fatal-signal.c: Don't include string.h.
59500                 (at_fatal_signal): Use a copying loop instead of memcpy.
59501
59502         2005-12-04  Bruno Haible  <bruno@clisp.org>
59503
59504                 * csharpexec.c: Add support for 'clix' launcher (untested).
59505                 (execute_csharp_using_sscli): New function.
59506                 (execute_csharp_program): Call it.
59507
59508         2006-06-21  Bruno Haible  <bruno@clisp.org>
59509
59510                 Avoid warnings from recent versions of mcs.
59511                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59512                 -o, -L, -r any more. Use options documented since mcs-1.0
59513                 instead. Similarly for -g.
59514
59515         2005-07-09  Bruno Haible  <bruno@clisp.org>
59516
59517                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59518                 add a .dll suffix.
59519                 Reported by Mark Junker <mjscod@gmx.de>.
59520
59521         2006-06-17  Bruno Haible  <bruno@clisp.org>
59522
59523                 * config.charset: Update for NetBSD 3.0.
59524
59525         2006-05-17  Bruno Haible  <bruno@clisp.org>
59526
59527                 Cygwin portability.
59528                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59529
59530         2006-05-16  Bruno Haible  <bruno@clisp.org>
59531
59532                 * localcharset.c [CYGWIN]: Include <windows.h>.
59533                 (get_charset_aliases): For Cygwin, return the same CPxxx
59534                 aliases list as under WIN32.
59535                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59536                 the environment variables. Fall back to GetACP().
59537
59538         2006-04-05  Bruno Haible  <bruno@clisp.org>
59539
59540                 * config.charset: Update Juan Manuel Guerrero's address.
59541
59542         2005-02-12  Bruno Haible  <bruno@clisp.org>
59543
59544                 * allocsa.h: Add extern "C" for C++.
59545
59546         2005-02-10  Bruno Haible  <bruno@clisp.org>
59547
59548                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59549                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59550
59551         2006-07-22  Bruno Haible  <bruno@clisp.org>
59552
59553                 * gettext.h: Update to GNU gettext-0.15.
59554
59555 2006-07-22  Bruno Haible  <bruno@clisp.org>
59556
59557         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59558         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59559         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59560
59561 2006-07-21  Eric Blake  <ebb9@byu.net>
59562
59563         * modules/stdlib-safer: New file.
59564         * MODULES.html.sh (File stream based Input/Output): Add
59565         stdlib-safer.
59566
59567 2006-07-21  Eric Blake  <ebb9@byu.net>
59568
59569         * lib/stdlib-safer.h: New file from coreutils, required by
59570         stdlib--.h.
59571
59572 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59573
59574         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59575
59576 2006-07-20  Bruno Haible  <bruno@clisp.org>
59577
59578         * gnulib-tool: Recognize new option --assume-autoconf.
59579         (autoconf_minversion): New variable.
59580         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59581
59582 2006-07-20  Bruno Haible  <bruno@clisp.org>
59583
59584         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59585
59586 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59587
59588         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59589         Reindent and repaginate.
59590
59591 2006-07-19  Derek Price  <derek@ximbiot.com>
59592
59593         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59594         Correct grammar.
59595
59596 2006-07-17  Bruno Haible  <bruno@clisp.org>
59597
59598         * modules/list: New file.
59599         * modules/array-list: New file.
59600         * modules/carray-list, modules/carray-list-tests: New files.
59601         * modules/linked-list, modules/linked-list-tests: New files.
59602         * modules/avltree-list, modules/avltree-list-tests: New files.
59603         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59604         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59605         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59606         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59607         * modules/oset: New file.
59608         * modules/array-oset: New file.
59609         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59610         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59611         * tests/test-carray_list.c: New file.
59612         * tests/test-linked_list.c: New file.
59613         * tests/test-avltree_list.c: New file.
59614         * tests/test-rbtree_list.c: New file.
59615         * tests/test-linkedhash_list.c: New file.
59616         * tests/test-avltreehash_list.c: New file.
59617         * tests/test-rbtreehash_list.c: New file.
59618         * tests/test-avltree_oset.c: New file.
59619         * tests/test-rbtree_oset.c: New file.
59620         * MODULES.html.sh (Container data structures): New section.
59621
59622 2006-07-17  Bruno Haible  <bruno@clisp.org>
59623
59624         * m4/gl_list.m4: New file.
59625
59626 2006-07-17  Bruno Haible  <bruno@clisp.org>
59627
59628         * lib/gl_list.h: New file.
59629         * lib/gl_list.c: New file.
59630         * lib/gl_array_list.h: New file.
59631         * lib/gl_array_list.c: New file.
59632         * lib/gl_carray_list.h: New file.
59633         * lib/gl_carray_list.c: New file.
59634         * lib/gl_linked_list.h: New file.
59635         * lib/gl_linked_list.c: New file.
59636         * lib/gl_anylinked_list1.h: New file.
59637         * lib/gl_anylinked_list2.h: New file.
59638         * lib/gl_avltree_list.h: New file.
59639         * lib/gl_avltree_list.c: New file.
59640         * lib/gl_anyavltree_list1.h: New file.
59641         * lib/gl_anyavltree_list2.h: New file.
59642         * lib/gl_rbtree_list.h: New file.
59643         * lib/gl_rbtree_list.c: New file.
59644         * lib/gl_anyrbtree_list1.h: New file.
59645         * lib/gl_anyrbtree_list2.h: New file.
59646         * lib/gl_anytree_list1.h: New file.
59647         * lib/gl_anytree_list2.h: New file.
59648         * lib/gl_linkedhash_list.h: New file.
59649         * lib/gl_linkedhash_list.c: New file.
59650         * lib/gl_anyhash_list1.h: New file.
59651         * lib/gl_anyhash_list2.h: New file.
59652         * lib/gl_avltreehash_list.h: New file.
59653         * lib/gl_avltreehash_list.c: New file.
59654         * lib/gl_rbtreehash_list.h: New file.
59655         * lib/gl_rbtreehash_list.c: New file.
59656         * lib/gl_anytreehash_list1.h: New file.
59657         * lib/gl_anytreehash_list2.h: New file.
59658
59659         * lib/gl_oset.h: New file.
59660         * lib/gl_oset.c: New file.
59661         * lib/gl_array_oset.h: New file.
59662         * lib/gl_array_oset.c: New file.
59663         * lib/gl_avltree_oset.h: New file.
59664         * lib/gl_avltree_oset.c: New file.
59665         * lib/gl_rbtree_oset.h: New file.
59666         * lib/gl_rbtree_oset.c: New file.
59667         * lib/gl_anytree_oset.h: New file.
59668
59669 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59670
59671         * m4/mkancesdirs.m4: New file.
59672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59673         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59674         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59675         it.
59676
59677 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59680         * lib/mkancesdirs.h: New files.
59681         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59682         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59683         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59684         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59685         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59686         callers changed.  Revamp internals significantly, by not
59687         attempting to create directories that are temporarily more
59688         permissive than the final results.  Do not attempt to use
59689         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59690         This removes some race conditions, fixes some bugs, and simplifies
59691         things.  Use new dirchownmod function to do owner and mode changes.
59692         * lib/mkdir-p.h: Likewise.
59693         * lib/modechange.c (octal_to_mode): New function.
59694         (struct mode_change): New member mentioned.
59695         (make_node_op_equals): New arg mentioned.  All callers changed.
59696         (mode_compile): Keep track of which mode bits the user has explicitly
59697         mentioned.
59698         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59699         New arg PMODE_BITS, to keep track of which mode bits the user
59700         mentioned; it treats S_ISUID and S_ISGID speciall.
59701         All callers changed.
59702         * lib/modechange.h: Likewise.
59703
59704 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * MODULES.html.sh: Add mkancestors.
59707         * modules/mkancesdirs: New module.
59708         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59709         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59710         The chdir-safer and afs files are now orphans; I'll remove them
59711         unless someone speaks up.
59712         Add lib/dirchownmod.c, lib/dirchownmod.h.
59713         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59714         Add lchown, mkancesdirs.
59715         (Maintainer): Add self.
59716
59717 2006-07-15  Karl Berry  <karl@gnu.org>
59718
59719         * gnulib-tool: help message wording/arrangement.
59720
59721 2006-07-14  Simon Josefsson  <jas@extundo.com>
59722
59723         * doc/gnulib.texi (Libtool and Windows): New section.
59724
59725 2006-07-12  Simon Josefsson  <jas@extundo.com>
59726
59727         * modules/gendocs (License): Fix license, approved by Karl.
59728
59729 2006-07-12  Eric Blake  <ebb9@byu.net>
59730
59731         * MODULES.html.sh: Add gendocs.
59732
59733 2006-07-11  Eric Blake  <ebb9@byu.net>
59734
59735         * modules/fdl: New module, to install doc/fdl.texi.
59736         * MODULES.html.sh: Add new section for documentation modules.
59737         * gnulib-tool: Avoid space-tab.
59738         (--doc-base): New option, to manage files from doc.
59739
59740 2006-07-11  Eric Blake  <ebb9@byu.net>
59741
59742         * m4/absolute-header.m4: Fix comments to match recent change.
59743
59744 2006-07-11  Eric Blake  <ebb9@byu.net>
59745
59746         * gnulib-tool: List --doc-base before --tests-base.
59747
59748 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59749
59750         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59751
59752 2006-07-11  Bruno Haible  <bruno@clisp.org>
59753
59754         * README: Mention where to put documentation.
59755
59756 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59757
59758         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59759
59760 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59761
59762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59763         to stdint.m4.
59764
59765 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59766
59767         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59768         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59769         "no/such/file/stdint.h" when there is no such file, so that
59770         the resulting C code can be parsed by dodgy compilers.
59771         Problems reported by Bob Proulx.
59772
59773 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59774
59775         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59776         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59777         macros into the GNU _D_EXACT_NAMLEN.
59778         * lib/savedir.c:  Likewise.
59779         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59780
59781 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59782         and Paul Eggert  <eggert@cs.ucla.edu>
59783
59784         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59785         * m4/savedir.m4:
59786         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59787         macros into the GNU _D_EXACT_NAMLEN.
59788
59789 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59792         around the absolute name, to work around a problem with the HP-UX
59793         11.23 native C compiler, reported by Bob Proulx.
59794
59795 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59796
59797         * doc/maintain.texi, make-stds.texi: Sync from
59798         <http://savannah.gnu.org/projects/gnustandards>.
59799
59800 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59801
59802         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59803
59804 2006-07-09  Jim Meyering  <jim@meyering.net>
59805
59806         * m4/glob.m4: Remove a doubled word in a comment.
59807
59808 2006-07-09  Jim Meyering  <jim@meyering.net>
59809
59810         * lib/argp-pv.c: Remove a doubled word in a comment.
59811         * lib/check-version.c (check_version): Likewise.
59812         * lib/javacomp.c (compile_java_class): Likewise.
59813
59814 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59815
59816         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59817         for the benefit of people using Autoconf 2.60.  If you want to
59818         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59819         (or m4/onceonly.m4, if pre-2.57) manually.
59820
59821 2006-07-08  Jim Meyering  <jim@meyering.net>
59822
59823         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59824         comment.
59825         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59826         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59827         comment.
59828
59829 2006-07-08  Jim Meyering  <jim@meyering.net>
59830
59831         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59832
59833 2006-07-07  Simon Josefsson  <jas@extundo.com>
59834
59835         * tests/test-crc.c: Change expected crc value, the test vector
59836         were probably computed using the old broken crc.c?
59837
59838 2006-07-06  Simon Josefsson  <jas@extundo.com>
59839
59840         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59841         now the canonical place for the M4 file).
59842
59843         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59844         from the sys_socket dependency now.
59845
59846         * modules/inet_pton (Files): Ditto.
59847
59848         * modules/inet_ntop (Files): Ditto.
59849
59850 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59851
59852         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59853         not gl_PREREQ_GETUSERSHELL.
59854
59855 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59856
59857         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59858         with only one argument, for Autoconf 2.60.
59859         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59860         expand to nothing, so add a shell command to avoid syntax error.
59861         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59862
59863 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59864
59865         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59866
59867 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59870         no longer needed.  Check for isblank decl.
59871         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59872         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59873         of existence.
59874
59875 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * lib/getloadavg.c: Use __VMS, not VMS.
59878         * lib/getopt.c: Likewise.
59879         * lib/getpagesize.h: Likewise.
59880         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59881         and probably does not work.
59882
59883 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59884
59885         * lib/.cppi-disable: Add wcwidth.
59886         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59887         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59888         (ISGRAPH): Remove.  All uses changed to isgraph.
59889         (FOLD) [!defined _LIBC]: Remove special case.
59890         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59891         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59892         HAVE_ISBLANK.
59893         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59894         case.
59895
59896 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59897
59898         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59899         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59900         brackets.  Other minor changes to suppress some compiler
59901         warnings.
59902
59903 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59904         and Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59907         of invoking obsolescent AC_HEADER_DIRENT macro.
59908         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59909         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59910         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59912         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59913         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59914         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59915         * m4/readdir.m4: Remove; no longer needed.
59916
59917 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59918         and Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59921         Don't worry about this obsolete case any more.
59922         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59923         directories.
59924         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59925         worry about this obsolete case any more.
59926         * lib/fts.c: Likewise.
59927         * lib/getcwd.c: Likewise.
59928         * lib/glob.h: Likewise.
59929         * lib/savedir.c: Likewise.
59930
59931 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59932
59933         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59934         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59935         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59936         needed.
59937         All uses removed.
59938         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59939         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59940         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59941         needed.
59942         * m4/getdate.m4 (gl_GETDATE): Likewise.
59943         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59944         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59945         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59946         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59947         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59948         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59949         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59950         needed.
59951
59952 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59953
59954         * lib/memcasecmp.c: Include <limits.h>.
59955         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59956         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59957         Don't assume isdigit succeeds only on '0' through '9'.
59958
59959 2006-07-05  Eric Blake  <ebb9@byu.net>
59960
59961         * modules/getaddrinfo (Depends-on): Add snprintf.
59962
59963 2006-07-05  Eric Blake  <ebb9@byu.net>
59964
59965         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59966         to avoid 'header present but could not be compiled' on cygwin.
59967
59968 2006-07-05  Eric Blake  <ebb9@byu.net>
59969
59970         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59971         missing from netdb.h.
59972         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59973
59974 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59975
59976         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59977         no longer needed.
59978         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59979         * m4/getdate.m4 (gl_GETDATE): Likewise.
59980         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59981         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59982         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59983         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59984         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59985
59986 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59987
59988         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59989         All uses of is_space replaced by isspace.
59990         * lib/exit.h: Don't talk about STDC_HEADERS.
59991         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59992         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59993         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59994         replaced by isprint etc.
59995         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59996         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59997         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59998         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59999         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60000         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60001
60002 2006-07-05  Bruno Haible  <bruno@clisp.org>
60003
60004         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60005         the function exists, before testing against AIX.
60006         Reported by Martin Lambers <marlam@marlam.de>.
60007
60008 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60009
60010         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60011         From Mark D. Baushke.
60012
60013 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60016         to the absolute name, not just one, to bypass Sun C 5.8's
60017         "warning: #include of /usr/include/... may be non-portable".
60018
60019 2006-07-04  Eric Blake  <ebb9@byu.net>
60020
60021         * modules/dirname-tests: New test module.
60022         * tests/test-dirname.c: New file, replacing dirname.c
60023         TEST_DIRNAME section that was recently deleted.
60024
60025 2006-07-04  Bruno Haible  <bruno@clisp.org>
60026
60027         Assume ANSI C header files and <ctype.h> functions.
60028         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60029         (mbsnwidth): Use isprint, iscntrl instead.
60030
60031 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60032
60033         Merge from coreutils.
60034         * MODULES.html.sh: Add xstrtold.
60035         * modules/xstrtold: New file.
60036         * modules/cycle-check (Files): Add lib/same-inode.h.
60037         * modules/dirname (Files): Add m4/double-slash-root.m4.
60038         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60039         * modules/mkdir-p (Files): Add lib/same-inode.h.
60040         * modules/same (Files): Add lib/same-inode.h.
60041
60042 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60045         This is to keep the terminology clean; POSIX talks about
60046         "absolute pathnames", not "full pathnames", but the GNU
60047         Coding Standards say to use "path" for something else;
60048         so use "absolute" to keep both sides happy.
60049         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60050         Set gl_absolute_header, not gl_full_header_path.
60051         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60052         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60053         All uses changed.
60054
60055         Merge from coreutils.
60056
60057         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60060         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60061         want to require the building of c-strtod.o.
60062         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60063         needs -lm directly.
60064         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60065
60066         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60067
60068         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60069         --as-needed option if available.  Problem reported by Albert Chin in
60070         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60071         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60072         cc merely issues a bunch of annoying warnings for --as-needed
60073         (this problem was reported by Bob Proulx).  Also, try linking with
60074         -lm to detect a bug in binutils 2.16 (this problem was reported
60075         by Ralf Wildenhues).
60076
60077         2006-06-18  Jim Meyering  <jim@meyering.net>
60078
60079         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60080         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60081         macro.
60082         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60083         also check for glibc-2.4's abort-inducing bug.
60084
60085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60086         Low-probability clean-up should be to use rmdir to get rid of
60087         the just-created directory, not unlink.
60088
60089         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60090         configure fail, and request a bug report to inform us about it.
60091         Add a comment that, barring reports to the contrary, in 2007 we'll
60092         assume ftruncate is universally available.
60093
60094         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60095
60096         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60097
60098         2006-03-12  Jim Meyering  <jim@meyering.net>
60099
60100         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60101         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60102         * m4/same.m4 (gl_SAME): Likewise.
60103         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60104
60105         2006-03-11  Eric Blake  <ebb9@byu.net>
60106
60107         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60108         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60109         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60110         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60111
60112 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60113
60114         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60115         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60116         reported by Mark D. Baushke, one in
60117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60118
60119         Merge from coreutils.
60120
60121         * lib/.cppi-disable: Add stdint_.h.
60122         * lib/.cvsignore: Add stdint.h.
60123
60124         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60125
60126         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60127         both double and long double versions.
60128         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60129         * lib/xstrtold.c: New file.
60130         * lib/xstrtod.h (xstrtold): New decl.
60131
60132         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         * lib/filemode.c (setst): Remove.
60135         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60136         (arguably) clearer, and the generated code is a bit smaller on my
60137         Debian GNU/Linux stable x86 host.
60138
60139         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60140
60141         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60142         Assume that filemode.h includes sys/types.h and sys/stat.h.
60143         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60144         (ftypelet): Reorder to put common cases first, for efficiency.
60145         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60146         to do 'M'.
60147         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60148         of 10, for compatibility with FreeBSD.  All callers changed.
60149         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60150         types that can't be deduced solely from st_mode.  First arg is now a
60151         const pointer.
60152         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60153         (strmode): Renamed from mode_string.
60154         (filemodestring): New decl.
60155         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60156         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60157         needed.
60158         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60159
60160         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60163         fsusage.h now does that.  Include fsusage.h first, to test interface.
60164         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60165         at most one method (the old code could have generated decls that
60166         didn't conform to C89, not that this was ever exercised).
60167         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60168
60169         2006-03-19  Jim Meyering  <jim@meyering.net>
60170
60171         Work even in a chroot where d_ino values for entries in "/"
60172         don't match the stat.st_ino values for the same names.
60173         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60174         number, iterate through all entries again, using lstat instead.
60175         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60176         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60177
60178         * lib/getcwd.c (__getcwd): Clarify a comment.
60179         Use memcpy in place of a call to strcpy.
60180
60181         2006-03-12  Jim Meyering  <jim@meyering.net>
60182
60183         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60184         matches that of the current directory (which we're about to chdir ".."
60185         out of), then save the dev-ino of the parent, instead.
60186
60187         * lib/same-inode.h (SAME_INODE): New file/macro.
60188         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60189         Include "same-inode.h", instead.
60190         * lib/same.c: Likewise.
60191         * lib/cycle-check.h: Include "same-inode.h".
60192         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60193         * lib/cycle-check.c (SAME_INODE): Remove definition.
60194         * lib/root-dev-ino.h: Include "same-inode.h".
60195
60196         2006-03-11  Eric Blake  <ebb9@byu.net>
60197
60198         * lib/same.c (same_name): s/base_name/last_component/
60199         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60200         * lib/filenamecat.c (file_name_concat): Likewise.
60201
60202         2006-03-11  Eric Blake  <ebb9@byu.net>,
60203                     Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60206         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60207         drive prefix.
60208         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60209         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60210         (last_component): New method.
60211         * lib/dirname.c (dir_len): Determine when drive letters need a
60212         subsequent slash.  Preserve // when it is special.
60213         (dir_name): Don't append dot when drive letter is absolute.
60214         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60215         * lib/basename.c (base_name): New semantics - malloc the result.
60216         Preserve // when it is special.  Preserve relative files that look
60217         like drive letters.
60218         (base_len): Preserve // when it is special.
60219         (last_component): New method, similar to old base_name semantics.
60220         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60221         base_name.  Strip redundant slashes from ///.
60222
60223 2006-07-03  Jim Meyering  <jim@meyering.net>
60224
60225         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60226         macro is used before the first cycle_check call.
60227
60228 2006-07-03  Eric Blake  <ebb9@byu.net>
60229
60230         * modules/dirname (Depends-on): Add xstrndup.
60231
60232 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60233
60234         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60235         test cases, so that config.log is a bit easier to follow.
60236
60237 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60240         both are 64 bits, since this seems to be the tradition, and this
60241         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60242         we ever run into a host that prefers long long to long in this
60243         case, we'll need another configure-time test.  Problem reported by
60244         Jim Meyering.
60245
60246 2006-07-02  Eric Blake  <ebb9@byu.net>
60247
60248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60249
60250 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * modules/inttypes (Depends-on): No longer depends on stdint.
60253         * modules/stdint (Description): Say more about assumptions.
60254         Say that the fast types might differ.  Say macros are used.
60255         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60256         (Makefile.am): Revise list of substituted symbols to match
60257         new stdint.m4.
60258         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60259         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60260         * tests/test-stdint.c (verify_same_types)
60261         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60262         the code conforms to C99/C89.
60263         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60264         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60265
60266 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60269         but fix a bug, by requiring at least 64 bits.
60270         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60271         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60272         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60273         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60274
60275         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60276         changes.  Make 2.59 a prerequisite.  Check and substitute for
60277         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60278         inttypes.h.  Do not use special include files; just use the
60279         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60280         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60281         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60282         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60283         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60284         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60285         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60286         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60287         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60288         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60289         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60290         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60291         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60292         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60293         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60294         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60295         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60296         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60297         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60298         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60299         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60300         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60301         not check for things that C99 does not require, e.g., int8_t.  If
60302         a test isn't needed unless <stdint.h> isn't working, and is
60303         unlikely to be needed for any other reason, then don't do it
60304         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60305         size_t, since we assume C89 freestanding at least.  Do not check
60306         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60307         the right thing even if the types are not defined.  Instead use:
60308         (gl_STDINT_TYPE_PROPERTIES): New macro.
60309         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60310         testing whether <sys/types.h> clashes, as Autoconf does this for
60311         us now.  All uses removed.
60312         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60313         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60314         (gl_CHECK_TYPE_SAME):
60315         Remove; no longer needed.
60316         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60317         exists, since we'll return 0 anyway in that case.
60318         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60319
60320 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60321
60322         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60323         possible collision with system files.
60324         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60325         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60326         WCHAR_MIN and WCHAR_MAX in this case.
60327         (<stddef.h>): Do not include; no longer needed.
60328         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60329         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60330         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60331         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60332         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60333         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60334         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60335         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60336         !defined(__c99))]: Include in this case too, since it's harmless
60337         now.
60338         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60339         dangerous to do so.
60340         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60341         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60342         (_STDINT_MIN, _STDINT_MAX): New macros.
60343         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60344         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60345         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60346         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60347         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60348         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60349         macros, not typedefs; this simplifies things quite a bit.
60350         Use long int for all types narrower than int64_t.
60351         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60352         Define in terms of long long int or int64_t or long int,
60353         not int64_t or int32_t.  This saves some compile-time testing.
60354         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60355         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60356         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60357         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60358         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60359         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60360         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60361         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60362         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60363         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60364         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60365         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60366         undef any previous version and define our own version, for
60367         simplicity and consistency with the new macros for types.
60368         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60369         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60370         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60371         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60372         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60373         @WINT_T_SUFFIX@ to keep things simple here.
60374         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60375         Simplify by assuming typical 8/16/32/64 host, since we're
60376         already doing that elsewhere anyway.
60377         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60378         and assume long long int is 64 bits if available.  This
60379         speeds up 'configure'.
60380
60381 2006-07-01  Eric Blake  <ebb9@byu.net>
60382
60383         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60384         Reported by Andreas Buening.
60385
60386 2006-07-01  Eric Blake  <ebb9@byu.net>
60387
60388         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60389
60390 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60391
60392         * lib/getaddrinfo.c: fixed typo
60393
60394 2006-06-29  Jim Meyering  <jim@meyering.net>
60395
60396         * modules/strftime (Maintainer): Add my name, since with the
60397         FPRINTFTIME changes strftime.c has forked from glibc.
60398
60399 2006-06-29  Eric Blake  <ebb9@byu.net>
60400
60401         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60402
60403 2006-06-29  Eric Blake  <ebb9@byu.net>
60404
60405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60406
60407 2006-06-29  Eric Blake  <ebb9@byu.net>
60408
60409         * lib/stat_.h: New file.
60410
60411 2006-06-29  Eric Blake  <ebb9@byu.net>
60412
60413         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60414         unused static function.
60415
60416 2006-06-29  Eric Blake  <ebb9@byu.net>
60417
60418         * doc/functions.texi (Function Portability): Document missing lstat
60419         on mingw.
60420
60421 2006-06-29  Eric Blake  <ebb9@byu.net>
60422
60423         * MODULES.html.sh: Add sys_stat.
60424         * modules/sys_stat: New module.
60425         * modules/mkstemp (Depends-on): Add sys_stat.
60426
60427 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60428
60429         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60430
60431 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60432
60433         * m4/c-bs-a.m4: Removed.
60434
60435 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60436
60437         * lib/strftime.c: Assume strftime() exists.
60438
60439 2006-06-29  Derek Price  <derek@ximbiot.com>
60440
60441         * modules/c-bs-a: Removed - \a is C89.
60442         * MODULES.html.sh: Remove c-bs-a.
60443
60444 2006-06-29  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/wcwidth (License): Change to LGPL.
60447
60448 2006-06-28  Simon Josefsson  <jas@extundo.com>
60449
60450         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60451         on _WIN32.
60452
60453         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60454         getnameinfo.
60455
60456 2006-06-28  Simon Josefsson  <jas@extundo.com>
60457
60458         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60459
60460 2006-06-28  Simon Josefsson  <jas@extundo.com>
60461
60462         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60463         functions there.  It will succeed on Windows XP, but on Windows
60464         2000 and (presumably) earlier, it will fail, and use the internal
60465         re-implementation.
60466         (use_win32_p): New function.
60467         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60468         Support AI_NUMERICSERV to disable getservbyname.
60469         (getnameinfo): New function, only supports
60470         NI_NUMERICHOST|NI_NUMERICSERV for now.
60471
60472         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60473         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60474         getnameinfo.
60475
60476 2006-06-28  Eric Blake  <ebb9@byu.net>
60477
60478         * modules/wcwidth: New file.
60479         * modules/mbchar (Depends-on): Add wcwidth.
60480         * modules/mbswidth (Depends-on): Add wcwidth.
60481         * MODULES.html.sh: Add wcwidth.
60482
60483 2006-06-28  Eric Blake  <ebb9@byu.net>
60484
60485         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60486         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60487
60488 2006-06-28  Eric Blake  <ebb9@byu.net>
60489
60490         * lib/xvasprintf.h: Fix comments.
60491
60492 2006-06-28  Eric Blake  <ebb9@byu.net>
60493
60494         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60495         * lib/mbswidth.c (wcwidth): Move from here...
60496         * lib/wcwidth.h: ...to this new file.
60497
60498 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60499
60500         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60501
60502         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60503         it's obsolete.
60504         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60505
60506 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60507
60508         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60509         Autoconf 2.60 says this stuff was obsolete.
60510
60511 2006-06-28  Bruno Haible  <bruno@clisp.org>
60512
60513         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60514
60515 2006-06-28  Bruno Haible  <bruno@clisp.org>
60516
60517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60518         gt_TYPE_WCHAR_T.
60519
60520 2006-06-28  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60523         declaration for wcwidth.
60524         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60525
60526 2006-06-28  Bruno Haible  <bruno@clisp.org>
60527
60528         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60529         (mkdir): Define using _mkdir.
60530
60531 2006-06-28  Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/getaddrinfo.h: Fix POSIX URL.
60534         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60535         _WIN32.
60536         (use_win32_p): Make static.
60537         (getaddrinfo): Reject service name if it is empty or does not consist
60538         solely of decimal digits, or if its value is > 65535.
60539         (getnameinfo): Remove useless casts.
60540
60541 2006-06-27  Simon Josefsson  <jas@extundo.com>
60542
60543         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60544         Eggert and Martin Lambers.
60545
60546 2006-06-27  Simon Josefsson  <jas@extundo.com>
60547
60548         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60549         Eggert and Martin Lambers.
60550
60551 2006-06-27  Bruno Haible  <bruno@clisp.org>
60552
60553         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60554         result to 0, not to empty.
60555         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60556
60557 2006-06-27  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60560
60561 2006-06-26  Simon Josefsson  <jas@extundo.com>
60562
60563         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60564         present.
60565
60566 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60569         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60571
60572 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60573
60574         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60575
60576 2006-06-26  Bruno Haible  <bruno@clisp.org>
60577
60578         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60579
60580 2006-06-26  Bruno Haible  <bruno@clisp.org>
60581
60582         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60583
60584 2006-06-26  Bruno Haible  <bruno@clisp.org>
60585
60586         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60587         SGI C compiler in pre-C99 mode.
60588         Suggested by Mark D. Baushke and Larry Jones.
60589
60590 2006-06-26  Bruno Haible  <bruno@clisp.org>
60591
60592         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60593         WCHAR_MAX.
60594         Reported by Mark D. Baushke and Larry Jones.
60595
60596 2006-06-26  Bruno Haible  <bruno@clisp.org>
60597
60598         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60599         in pre-C99 mode.
60600         Suggested by Mark D. Baushke and Larry Jones.
60601
60602 2006-06-23  Simon Josefsson  <jas@extundo.com>
60603             Bruno Haible  <bruno@clisp.org>
60604
60605         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60606         Emit mostlyclean-local rule.
60607         (func_emit_tests_Makefile_am): Likewise.
60608         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60609
60610 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60611
60612         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60613
60614 2006-06-23  Bruno Haible  <bruno@clisp.org>
60615
60616         * tests/test-stdint.c: Update to match ISO C 99 Technical
60617         Corrigendum 1.
60618
60619 2006-06-23  Bruno Haible  <bruno@clisp.org>
60620
60621         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60622
60623 2006-06-23  Bruno Haible  <bruno@clisp.org>
60624
60625         * lib/stdint_.h: Treat IRIX like OpenBSD.
60626
60627 2006-06-23  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60630         ISO C 99 Technical Corrigendum 1.
60631
60632 2006-06-22  Simon Josefsson  <jas@extundo.com>
60633
60634         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60635         MinGW.
60636
60637 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60640         needed.  Some compiler complained about some of them.  Problem reported
60641         by Larry Jones in
60642         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60643
60644 2006-06-21  Simon Josefsson  <jas@extundo.com>
60645
60646         * tests/test-getaddrinfo.c: New file.
60647
60648         * modules/getaddrinfo-tests: New file.
60649
60650         * MODULES.html.sh: Add inet_pton.
60651
60652         * modules/inet_pton: New file.
60653
60654 2006-06-21  Simon Josefsson  <jas@extundo.com>
60655
60656         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60657         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60658         of using the (limited) gnulib implementation on Windows XP.
60659
60660         * m4/inet_pton.m4: New file.
60661
60662 2006-06-21  Simon Josefsson  <jas@extundo.com>
60663
60664         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60665         variable.
60666
60667         * lib/socket_.h: Don't define WINVER.
60668
60669         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60670         slightly modified to work in gnulib.
60671
60672 2006-06-21  Simon Josefsson  <jas@extundo.com>
60673
60674         * doc/gnulib.texi (Windows sockets): Add.
60675
60676 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60677
60678         * lib/read-file.c (fread_file): Start with buffer allocation of
60679         0 bytes rather than 1 byte; this simplifies the code.
60680         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60681         code to free buffer and save/restore errno.
60682         (internal_read_file): Remove unused local.
60683
60684 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60687         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60688         Problem reported by Denis Excoffier in
60689         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60690
60691 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60692
60693         * modules/sys_socket, modules/socklen: Include sys/types since
60694         FreeBSD 4.x's sys/socket.h needs it.
60695
60696 2006-06-19  Simon Josefsson  <jas@extundo.com>
60697
60698         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60699
60700 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60701
60702         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60703
60704 2006-06-19  Bruno Haible  <bruno@clisp.org>
60705
60706         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60707         and FULL_PATH_INTTYPES_H in angle brackets.
60708         Reported by Mark D. Baushke <mdb@gnu.org>.
60709
60710 2006-06-17  Eric Blake  <ebb9@byu.net>
60711
60712         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60713         errno.
60714
60715 2006-06-17  Bruno Haible  <bruno@clisp.org>
60716
60717         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60718         <sys/inttypes.h>.
60719
60720 2006-06-17  Bruno Haible  <bruno@clisp.org>
60721
60722         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60723         whether errno is declared. Assume <errno.h> declares errno.
60724
60725 2006-06-17  Bruno Haible  <bruno@clisp.org>
60726
60727         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60728
60729 2006-06-17  Bruno Haible  <bruno@clisp.org>
60730
60731         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60732         problem on Solaris 2.5.1.
60733
60734 2006-06-16  Eric Blake  <ebb9@byu.net>
60735
60736         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60737         * lib/unicodeio.c [!defined errno]: Likewise.
60738         * lib/strtol.c [!defined errno]: Likewise.
60739         * lib/strtod.c [!defined errno]: Likewise.
60740
60741 2006-06-15  Eric Blake  <ebb9@byu.net>
60742
60743         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60744
60745 2006-06-15  Eric Blake  <ebb9@byu.net>
60746
60747         * config/srclist.txt (ssize_t.m4): Lose sync.
60748
60749 2006-06-15  Bruno Haible  <bruno@clisp.org>
60750
60751         * modules/stdint (Files): Include m4/full-header-path.m4,
60752         m4/size_max.m4, m4/wchar_t.m4.
60753         (Makefile.am): Many more substitutions.
60754         * modules/stdint-tests: New file.
60755         * tests/test-stdint.c: New file.
60756
60757 2006-06-15  Bruno Haible  <bruno@clisp.org>
60758
60759         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60760         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60761         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60762         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60763         gl_CHECK_TYPE_SAME): New macros.
60764
60765 2006-06-15  Bruno Haible  <bruno@clisp.org>
60766
60767         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60768
60769 2006-06-15  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/stdint_.h: Rewritten to be fully auto-configured.
60772         Fixes bug on HP-UX/IA64.
60773
60774 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * lib/getdate.y (__attribute__): Don't define if already defined.
60777         Problem reported by Larry Jones.
60778         * lib/utimens.c (__attribute__): Likewise.
60779
60780 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60783         reported by Andreas Schwab.
60784
60785 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60786             Bruno Haible  <bruno@clisp.org>
60787
60788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60789         check for the declaration of strnlen and a run test that exposes the
60790         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60791         rpl_strndup.
60792
60793 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60794             Bruno Haible  <bruno@clisp.org>
60795
60796         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60797
60798 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60799
60800         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60801         compile test, for Tru64 4.0D.
60802
60803 2006-05-28  Karl Berry  <karl@gnu.org>
60804
60805         * config/srclist.txt (printf-args.c): lose sync.
60806
60807 2006-05-26  Martin Lambers  <marlam@marlam.de>
60808
60809         * lib/getpass.c: Updates the test for the native W32 API, and adds
60810         missing includes, thus fixing compilation warnings.
60811
60812 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60813
60814         * lib/exclude.c (exclude_fnmatch): New function.
60815         (excluded_file_name): Call exclude_fnmatch.
60816         * lib/exclude.h (excluded_file_name): New prototype
60817
60818 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60819
60820         * lib/tempname.c (small_open, large_open): New macros.
60821         (__open, __open64) [!_LIBC]: Remove.
60822         (__gen_tempname): Use small_open and large_open instead of __open
60823         and __open64.  This fixes a portability bug on HP-UX 11.11i
60824         reported by Simon Wing-Tang in
60825         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60826
60827 2006-05-24  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60830         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60831         Reported by Thorsten Maerz <torte@netztorte.de> via
60832         Aaron Stone <aaron@serendipity.cx>.
60833
60834 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60835
60836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60837         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60838         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60839         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60840         not really conditional on the cache.
60841         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60842
60843 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60844
60845         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60846         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60847         (my_usleep): Don't mishandle maximum value.
60848
60849 2006-05-19  Jim Meyering  <jim@meyering.net>
60850
60851         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60852
60853 2006-05-17  Bruno Haible  <bruno@clisp.org>
60854
60855         Cygwin portability.
60856         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60857
60858 2006-05-17  Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/stdint_.h: Fix recognition of Cygwin.
60861
60862 2006-05-15  Bruno Haible  <bruno@clisp.org>
60863
60864         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60865         on libtool patch by Ralf Wildenhues.
60866
60867 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60870         test for C99 conformance; (bool) 0.5 is an integer constant
60871         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60872         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60873
60874 2006-05-11  Simon Josefsson  <jas@extundo.com>
60875
60876         * m4/xvasprintf.m4: Fix obvious typo.
60877
60878 2006-05-11  Jim Meyering  <jim@meyering.net>
60879
60880         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60881         James Lemley.
60882
60883 2006-05-10  Simon Josefsson  <jas@extundo.com>
60884
60885         * lib/md4.c: Typo fix, update copyright years.
60886         (K1, K2): Don't use L because it turn computations into 64-bit on
60887         64-bit platforms.
60888
60889 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60890
60891         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60892         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60893         unwanted sign propagation, e.g., on hosts with 64-bit int.
60894         There still are some problems with reeelly weird theoretical hosts
60895         (e.g., 33-bit int) but it's not worth worrying about now.
60896         * lib/sha1.c (rol): Likewise.
60897         (K1, K2, K3, K4): Remove unnecessary L suffix.
60898
60899 2006-05-10  Bruno Haible  <bruno@clisp.org>
60900
60901         * lib/des.c: Cast to avoid warnings.
60902
60903 2006-05-09  Bruno Haible  <bruno@clisp.org>
60904
60905         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60906         (Depends-on): Depend also on xsize, stdarg.
60907         (configure.ac): Add gl_XVASPRINTF.
60908
60909 2006-05-09  Bruno Haible  <bruno@clisp.org>
60910
60911         * m4/xvasprintf.m4: New file.
60912
60913 2006-05-09  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60916         (EOVERFLOW): Define fallback value.
60917         (xstrcat): New function.
60918         (xvasprintf): Recognize the special case of a string concatenation.
60919
60920 2006-05-08  Eric Blake  <ebb9@byu.net>
60921
60922         * gnulib-tool (func_version): Base copyright year on CVS date.
60923         (func_emit_copyright_notice): New function.
60924         (func_emit_lib_Makefile_am): Use it.
60925         (func_emit_tests_Makefile_am): Likewise.
60926         (func_import): Likewise.
60927
60928 2006-05-08  Bruno Haible  <bruno@clisp.org>
60929
60930         * modules/stdarg: New file.
60931         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60932
60933 2006-05-08  Bruno Haible  <bruno@clisp.org>
60934
60935         * m4/stdarg.m4: New file, from GNU gettext.
60936
60937 2006-05-08  Bruno Haible  <bruno@clisp.org>
60938
60939         * config/srclist.txt (build-aux/config.rpath): different from latest
60940         release.
60941
60942 2006-05-08  Bruno Haible  <bruno@clisp.org>
60943
60944         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60945
60946 2006-05-05  Jim Meyering  <jim@meyering.net>
60947
60948         * m4/warning.m4: New file, derived from bison's file by the same name.
60949
60950 2006-05-03  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/stdint_.h: Shorter URL.
60953         * lib/inttypes.h: Likewise.
60954
60955 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60958
60959 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60960
60961         * lib/verify.h: Document the internals better.  Most of this change
60962         was written by Bruno Haible.
60963
60964 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60965
60966         * doc/verify.texi: New file, partly based on a proposal by
60967         Bruno Haible.
60968
60969 2006-05-02  Bruno Haible  <bruno@clisp.org>
60970
60971         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60972         test from here...
60973         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60974
60975 2006-04-29  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60978         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60979
60980 2006-04-29  Bruno Haible  <bruno@clisp.org>
60981
60982         * gnulib-tool: Make --update option actually work.
60983
60984 2006-04-29  Bruno Haible  <bruno@clisp.org>
60985
60986         * doc/gcd.texi: New file.
60987         * doc/gnulib.texi: Include it.
60988
60989 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60990
60991         * lib/getdate.y (get_date): When adding relative date, start with the
60992         initial time, not with the result of the first mktime call.
60993
60994 2006-04-25  Bruno Haible  <bruno@clisp.org>
60995
60996         * gnulib-tool (func_import): Output the include directives in three
60997         blocks, sorted separately.
60998         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60999
61000 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61001
61002         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61003         to define main with arguments, for C++.  Reported by Eric Blake.
61004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61005         Prefer 'int main ()' to 'int main (void)', for C++.
61006         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61007         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61008         for 'main', for C99 and C++.
61009
61010 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61013         Don't assume that exit status -1 is valid.
61014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61015         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61016         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61017         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61018         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61019         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61020         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61021         functions can be used without declaring them, or that you can
61022         exit with status -1.
61023         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61024
61025 2006-04-24  Karl Berry  <karl@gnu.org>
61026
61027         * config/srclist.txt (longdouble.m4): sync lost.
61028
61029 2006-04-24  Eric Blake  <ebb9@byu.net>
61030
61031         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61032
61033 2006-04-24  Bruno Haible  <bruno@clisp.org>
61034
61035         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61036         poll() implementation in AIX.
61037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61038
61039 2006-04-24  Bruno Haible  <bruno@clisp.org>
61040
61041         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61042         assigned exactly once.
61043
61044 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61045             Bruno Haible  <bruno@clisp.org>
61046
61047         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61048         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61049         for AM_CPPFLAGS.
61050
61051 2006-04-23  Bruno Haible  <bruno@clisp.org>
61052
61053         * modules/copy-file: Depend on unistd.
61054         * modules/execute: Likewise.
61055         * modules/fatal-signal: Likewise.
61056         * modules/findprog: Likewise.
61057         * modules/mkdtemp : Likewise.
61058         * modules/pipe: Likewise.
61059         * modules/wait-process: Likewise.
61060
61061 2006-04-23  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61064         condition was already detected.
61065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61066
61067 2006-04-23  Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/copy-file.c: Include <unistd.h> unconditionally.
61070         * lib/execute.c: Likewise.
61071         * lib/fatal-signal.c: Likewise.
61072         * lib/findprog.c: Likewise.
61073         * lib/mkdtemp.c: Likewise.
61074         * lib/pipe.h: Likewise.
61075         * lib/pipe.c: Likewise.
61076         * lib/wait-process.h: Likewise.
61077
61078 2006-04-23  Bruno Haible  <bruno@clisp.org>
61079
61080         * gnulib-tool (func_usage): Fix --import description. Document
61081         --update.
61082         (func_import): Create temporary file in a temporary directory, if
61083         --dry-run is specified. Silence errors from 'grep' when there are no
61084         m4 files in $m4dir.
61085         (func_create_testdir): Silence errors from 'grep' when there are no
61086         m4 files in $m4dir.
61087         Reported by Karl Berry <karl@freefriends.org>.
61088
61089 2006-04-20  Bruno Haible  <bruno@clisp.org>
61090
61091         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61092         one argument, so that the code will be portable to Autoconf 2.60.
61093         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61094         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61095         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61096
61097 2006-04-19  Derek Price  <derek@ximbiot.com>
61098             Eric Blake  <ebb9@byu.net>
61099
61100         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61101         rather than "/full/path.h".  Update comment to match.  Shorten &
61102         generalize m4_translit call via AS_TR_CPP.
61103
61104 2006-04-19  Derek Price  <derek@ximbiot.com>
61105             Eric Blake  <ebb9@byu.net>
61106
61107         * lib/inttypes.h: Correct grammar in comment.
61108
61109 2006-04-18  Derek Price  <derek@ximbiot.com>
61110             Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * modules/inttypes: New file.
61113         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61114
61115 2006-04-18  Derek Price  <derek@ximbiot.com>
61116             Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61119         New files.
61120
61121 2006-04-18  Derek Price  <derek@ximbiot.com>
61122             Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         * lib/inttypes.h: New file.
61125         * lib/strtoimax.c: Assume <inttypes.h>.
61126
61127 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61128
61129         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61130         isn't mounted.  Problem reported by Kir Kolyshkin.
61131
61132 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61133
61134         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61135         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61136         Derek R. Price.
61137         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61138         implementation.
61139
61140 2006-04-12  Eric Blake  <ebb9@byu.net>
61141
61142         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61143         is now done automatically by the corresponding Autoconf macro.
61144
61145 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61146
61147         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61148         time_r.h.
61149
61150 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61151
61152         Merge regex changes from libc, removing some of our
61153         POSIX-conformance changes that were rejected and redoing them in a
61154         less-intrusive way.
61155
61156         * lib/regcomp.c (re_compile_internal, init_dfa):
61157         Length arg is now size_t, not Idx.  All uses changed.
61158         (peek_token): Forward decl now says internal_function.
61159         (__re_error_msgid, __re_error_msgid_idx):
61160         Now static rather than extern with attribute_hidden.
61161         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61162         For some reason libc prefers K&R style defns for external functions.
61163         (regerror) [!defined _LIBC]: Likewise.
61164         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61165         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61166         (build_range_exp, build_collating_symbol):
61167         Use K&R-style defn.
61168         (re_compile_fastmap): Use '\0' to memset, not 0.
61169         (utf8_sb_map): Make the calculations more obvious.
61170         (init_dfa, parse_bracket_exp, build_charclass_op):
61171         Call calloc and cast result, as glibc does.
61172         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61173         (build_range_exp, build_collating_symbol):
61174         Now internal functions.
61175
61176         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61177
61178         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61179         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61180         Don't depend on VMS; depend on __VMS instead, for POSIX
61181         namespace cleanness.
61182         (regoff_t): Define to ssize_t, not long int.
61183
61184         Remove the REG_ macros named below.  Instead, make the old names
61185         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61186         __USE_GNU_REGEX.
61187         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61188         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61189         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61190         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61191         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61192         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61193         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61194         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61195         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61196         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61197         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61198         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61199         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61200         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61201         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61202         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61203         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61204         (REG_NREGS):
61205         Remove.  All uses replaced by the old RE_* names.
61206         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61207         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61208         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61209         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61210         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61211         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61212         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61213         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61214         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61215         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61216         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61217         Don't bother having these macros be independent of each others'
61218         values, since they no longer exist in the POSIX name space.
61219
61220         Rename the following member names back to their old names,
61221         unless !__USE_GNU_REGEX.  All uses changed back.
61222         (buffer): Renamed from re_buffer.
61223         (allocated): Renamed from re_allocated.
61224         (used): Renamed from re_used.
61225         (syntax): Renamed from re_syntax.
61226         (fastmap): Renamed from re_fastmap.
61227         (translate): Renamed from re_translate.
61228         (can_be_null): Renamed from re_can_be_null.
61229         (regs_allocated): Renamed from re_regs_allocated.
61230         (fastmap_accurate): Renamed from re_fastmap_accurate.
61231         (no_sub): Renamed from re_no_sub.
61232         (not_bol): Renamed from re_not_bol.
61233         (not_eol): Renamed from re_not_eol.
61234         (newline_anchor): Renamed from re_newline_anchor.
61235         (num_regs): Renamed from rm_num_regs.
61236         (start): Renamed from rm_start.
61237         (end): Renamed from rm_end.
61238
61239         (free_state): Move up a bit.
61240
61241         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61242         #define to be empty.
61243         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61244         when that is what is intended.
61245         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61246         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61247         (MAX): New macro.
61248         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61249         All uses changed back to re_malloc, etc.  It's now the caller's
61250         responsibility to check for overflow; all callers changed.
61251         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61252         (re_x2nrealloc): Remove.
61253         (free_state): Remove decl.
61254
61255         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61256         (re_set_registers, re_exec):
61257         Use K&R-style defn.
61258
61259         2006-01-31  Roland McGrath  <roland@redhat.com>
61260
61261         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61262         Reported by Mike Frysinger <vapier@gentoo.org>.
61263
61264         2006-01-15  Andreas Jaeger  <aj@suse.de>
61265
61266         [BZ #1950]
61267         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61268         build_wcs_upper_buffer change.
61269         (build_wcs_upper_buffer): Change return type.
61270
61271         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61272
61273         * lib/regex_internal.h: Include <stdint.h> if available.
61274
61275         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61276
61277         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61278
61279         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61280
61281         * lib/regcomp.c: Adjust for changed secondary hash function.
61282
61283         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61284
61285         * lib/regex.h: Pretty printing.
61286         Clean up namespace a bit.
61287
61288         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61289
61290         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61291         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61292
61293         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61294                     Ulrich Drepper  <drepper@redhat.com>
61295
61296         [BZ #1302]
61297         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61298         changed.
61299         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61300
61301         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61302
61303         [BZ #281]
61304         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61305         * lib/regcomp.c: Remove unnecessary uses of
61306         unsigned RE_TRANSLATE_TYPE.
61307         * lib/regex_internal.h: Likewise.
61308         * lib/regex_internal.c: Likewise.
61309         * lib/regexec.c: Likewise.
61310         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61311
61312         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61313
61314         * lib/regexec.c (find_recover_state): Remove unnecessary
61315         initialization.
61316         (transit_state_bkref): Make DFA a const pointer.
61317         (get_subexp): Likewise.
61318         (check_arrival): Likewise.
61319         (update_cur_sifted_state): Likewise.
61320         (re_search_internal): Likewise.
61321         (prune_impossible_nodes): Likewise.
61322         (acquire_init_state_context): Likewise.
61323         (proceed_next_node): Likewise.
61324         (set_regs): Likewise.
61325         (free_fail_stack_return): Likewise.
61326         (check_arrival_expand_ecl): Mark DFA parameter as const.
61327         (check_arrival_expand_ecl_sub): Likewise.
61328         (check_subexp_limits): Likewise.
61329         (sub_epsilon_src_nodes):  Likewise.
61330         (add_epsilon_src_nodes):  Likewise.
61331         (merge_state_array): Likewise.
61332         (update_regs): Likewise.
61333         (build_trtable): Likewise.
61334         (sift_states_backward): Mark MCTX parameter as const.
61335         (build_sifted_states): Likewise.
61336         (update_cur_sifted_state): Likewise.
61337         (sift_states_mkref): Likewise.
61338         (check_arrival_expand_ecl): Mark eclosure as const.
61339         (check_dst_limits_calc_pos_1): Likewise.
61340         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61341         pointer.
61342
61343         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61344
61345         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61346         (transit_state_sb): Likewise.
61347         (transit_state_mb): Likewise.
61348         (sift_states_iter_mb): Likewise.
61349         (check_arrival_add_next_nodes): Likewise.
61350         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61351         [_LIBC] (re_search_2_stub): Use mempcpy.
61352
61353         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61354         mbrtowc for very simple UTF-8 case.
61355
61356         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61357         a pointer-to-const.
61358         (re_acquire_state_context): Likewise.
61359         * lib/regex_internal.h: Adjust prototypes.
61360
61361         * lib/regex.c: Prevent using C++ compilers.
61362
61363         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61364         (re_acquire_state_context): Likewise.
61365
61366 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61367
61368         * modules/regex (Depends-on): Add ssize_t.
61369
61370 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61373         translation table.
61374
61375 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61376
61377         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61378
61379 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61380             Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61383         <sys/types.h> and <inttypes.h>.
61384
61385 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61386
61387         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61388         `__error_t_defined', so argp.h will not typedef the former.
61389
61390 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61393         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61394         glibc names.  Even if glibc is changed to conform to POSIX, the
61395         traditional names will be available anyway, since regex depends on
61396         the extensions module.  Also, fix a longstanding typo in the
61397         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61398         reported by Emanuele Giaquinta.  Also, change sense of cached
61399         variable, so that the message makes sense.
61400
61401 2006-03-24  Simon Josefsson  <jas@extundo.com>
61402
61403         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61404         including some doc fixes.
61405         (base64_encode_alloc): Fix +1 bug on allocation failures.
61406
61407 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61408
61409         * lib/base64.c (base64_encode): Do not read past end of array with
61410         unsanitized input on systems with CHAR_BIT > 8.
61411
61412 2006-03-24  Eric Blake  <ebb9@byu.net>
61413
61414         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61415
61416 2006-03-22  Karl Berry  <karl@gnu.org>
61417
61418         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61419         * config/srclistvars.sh (COREUTILS): new var.
61420
61421 2006-03-17  Jim Meyering  <jim@meyering.net>
61422
61423         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61424         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61425
61426 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61427
61428         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61429         no longer needs it.  Instead, check that regoff_t is as least
61430         as wide as ptrdiff_t.
61431
61432         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61433         so that our regex.h stays compatible with the installed regex.
61434         This is helpful for installers who configure --without-included-regex.
61435         Problem reported by Emanuele Giaquinta.
61436
61437 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61440         Typedef to long int, not to off_, as POSIX will likely change
61441         in that direction.
61442
61443 2006-03-15  Eric Blake  <ebb9@byu.net>
61444
61445         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61446
61447 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61448
61449         * lib/argp-help.c (validate_uparams): Fix typo
61450         * lib/argp-parse.c (argp_default_options): Consistently begin help
61451         messages with a lowercase letter.
61452
61453 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61454
61455         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61456         overrun buffers and shouldn't be used (much as gets shouldn't be
61457         used).
61458         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61459
61460 2006-03-08  Simon Josefsson  <jas@extundo.com>
61461
61462         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61463         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61464
61465 2006-03-08  Simon Josefsson  <jas@extundo.com>
61466
61467         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61468         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61469
61470 2006-03-08  Simon Josefsson  <jas@extundo.com>
61471
61472         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61473         signal that configure disabled the device.
61474
61475 2006-03-08  Simon Josefsson  <jas@extundo.com>
61476
61477         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61478         languages.
61479
61480 2006-03-07  Simon Josefsson  <jas@extundo.com>
61481
61482         * modules/getopt (Depends-on): Add unistd.
61483
61484         * modules/unistd: New file.
61485
61486 2006-03-07  Simon Josefsson  <jas@extundo.com>
61487
61488         * modules/gc-random: New file.
61489
61490 2006-03-07  Simon Josefsson  <jas@extundo.com>
61491
61492         * m4/unistd_h.m4: New file.
61493
61494 2006-03-07  Simon Josefsson  <jas@extundo.com>
61495
61496         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61497         test to be side-effect free by storing the result in the cache
61498         variable gl_cv_lib_readline, and moving the assignment of
61499         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61500         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61501
61502 2006-03-07  Simon Josefsson  <jas@extundo.com>
61503
61504         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61505         error on missing devices (the functions will return an error).
61506
61507         * m4/gc.m4: Move random stuff to gc-random.m4
61508
61509 2006-03-07  Simon Josefsson  <jas@extundo.com>
61510
61511         * lib/unistd_.h: New file.
61512
61513 2006-03-07  Simon Josefsson  <jas@extundo.com>
61514
61515         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61516
61517 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61520         Problem reported by Juan Manuel Guerrero.
61521
61522 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61523
61524         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61525         the unistd module.
61526         * lib/getlogin_r.c: Likewise.
61527         * lib/getlogin_r.h: Likewise.
61528         * lib/glob.c: Likewise.
61529         * lib/pagealign_alloc.c: Likewise.
61530         * lib/unistd_.h: Remove; no longer needed.
61531
61532 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61533
61534         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61535         Add unistd.
61536         * modules/c-stack (Depends-on): Add unistd.
61537         * modules/getlogin_r: Likewise.
61538         * modules/glob: Likewise.
61539         * modules/pagealign_alloc: Likewise.
61540         * modules/unistd (Files): Remove lib/unistd_.h.
61541         (EXTRA_DIST): Remove.
61542         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61543         need unistd_.h.
61544         (MOSTLYCLEANFILES): Remove unistd.h-t.
61545
61546 2006-03-03  Simon Josefsson  <jas@extundo.com>
61547
61548         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61549
61550 2006-03-03  Simon Josefsson  <jas@extundo.com>
61551
61552         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61553         libidn and bison.
61554
61555 2006-03-03  Simon Josefsson  <jas@extundo.com>
61556
61557         * build-aux/maint.mk: Add indent target.
61558
61559 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61560
61561         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61562         our replacement poll.h in any case, to avoid a differing
61563         declaration from a system header.  Seen on AIX.
61564
61565 2006-03-01  Simon Josefsson  <jas@extundo.com>
61566
61567         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61568         <kasal@ucw.cz>.
61569
61570 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         * modules/gettime (Depends-on): Add extensions module.
61573         * modules/nanosleep (Depends-on): Likewise.
61574         * modules/settime (Depends-on): Likewise.
61575
61576 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61579         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61580         pedantically.
61581         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61582         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61583
61584         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61585         not "==".  Reported by Ralf Wildenhues.
61586
61587 2006-03-01  Karl Berry  <karl@gnu.org>
61588
61589         * doc/Copyright/request-*: new files, synced from gnuorg.
61590
61591 2006-03-01  Karl Berry  <karl@gnu.org>
61592
61593         * config/srclist.txt (Copyright/*): new entries.
61594
61595 2006-02-28  Simon Josefsson  <jas@extundo.com>
61596
61597         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61598
61599 2006-02-27  Simon Josefsson  <jas@extundo.com>
61600
61601         * lib/base64.h: Indent #define's.  From Jim Meyering
61602         <jim@meyering.net>.
61603
61604 2006-02-27  Jim Meyering  <jim@meyering.net>
61605
61606         Revert the change of 2006-02-24, so these files can continue
61607         to be sync'd from gettext.
61608         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61609         of `config.h'.
61610
61611 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * modules/intprops: New file.
61614         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61615         Add intprops.
61616         * modules/getloadavg (Files): Remove lib/intprops.h.
61617         (Depends-on): Add intprops.
61618         * modules/human: Likewise.
61619         * modules/inttostr: Likewise.
61620         * modules/openat: Likewise.
61621         * modules/sig2str: Likewise.
61622         * modules/userspec: Likewise.
61623         * modules/utimecmp: Likewise.
61624         * modules/xnanosleep: Likewise.
61625         * modules/xstrtol: Likewise.
61626
61627 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61628
61629         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61630         * modules/lock-tests (TESTS): Use $(EXEEXT).
61631         * modules/tls-tests: Likewise.
61632         * modules/argp-tests: Likewise.
61633         (check_PROGRAMS): New var, replacing...
61634         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61635
61636 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61637
61638         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61639         `config.h'.
61640
61641 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61642
61643         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61644
61645 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61646
61647         Sync from coreutils.
61648         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61649         gl_CHDIR_SAFER.
61650
61651 2006-02-22  Jim Meyering  <jim@meyering.net>
61652
61653         Sync from coreutils.
61654         * m4/chdir-safer.m4: New file.
61655
61656 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61657
61658         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61659         AT_FDCWD exceeds INT_MAX.
61660         * lib/openat.h (AT_FDCWD): Likewise.
61661
61662 2006-02-17  Eric Blake  <address@hidden>
61663
61664         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61665
61666 2006-02-16  Simon Josefsson  <jas@extundo.com>
61667
61668         * modules/getaddrinfo (Depends-on): Add sys_socket.
61669
61670 2006-02-15  Simon Josefsson  <jas@extundo.com>
61671
61672         * build-aux/maint.mk: Add dsyntax-check rule.
61673
61674 2006-02-15  Eric Blake  <ebb9@byu.net>
61675
61676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61677         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61678         'present but cannot compile' warnings on cygwin.
61679         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61680         use ws2tcpip.h if sys/socket.h works.
61681         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61682         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61683
61684 2006-02-14  Simon Josefsson  <jas@extundo.com>
61685
61686         * modules/maintainer-makefile (Files): Rename.
61687
61688         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61689         and (the local) Makefile.cfg to maint-cfg.mk.
61690
61691         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61692         to the latter.
61693
61694         * modules/maintainer-makefile: New module.
61695
61696         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61697         severaly stripped to make it possible to build it up from scratch
61698         with reliable tests.
61699
61700         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61701         fixes to permit overriding the default actions when configure and
61702         makefile are not available.
61703
61704 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61705
61706         Sync from coreutils.
61707         * modules/lstat (Depends-on): Don't depend on xalloc.
61708         (License): Change from GPL to LGPL, since this is now simply a
61709         replacement for a libc function.
61710
61711 2006-02-14  Jim Meyering  <jim@meyering.net>
61712
61713         Sync from coreutils.
61714
61715         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61716         failure on deficient systems, and simplify gnulib lgpl dependencies.
61717         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61718         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61719
61720         * lib/xalloc-die.c: Remove unused definition of N_.
61721
61722 2006-02-14  Jim Meyering  <jim@meyering.net>
61723
61724         Sync from coreutils.
61725         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61726         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61727         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61728         double-quote uses of that variable, to accommodate the rare case in
61729         which getmntent is available in none of the libraries checked.  This
61730         happens at least on FreeBSD 5.0.
61731
61732 2006-02-13  Simon Josefsson  <jas@extundo.com>
61733
61734         * gnulib-tool (Usage): Fix --import, from
61735         karl@freefriends.org (Karl Berry).
61736
61737 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61738
61739         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61740
61741 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61742
61743         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61744         "autoupdate" on 2005-12-12.
61745
61746 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61747
61748         * modules/closeout (Depends-on): Remove atexit.
61749
61750 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61753         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61754
61755 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61756
61757         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61758         __EXTENSIONS__ if this causes compilation to fail.  Problem
61759         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61760         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61761
61762 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61765         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61767         All uses changed.
61768
61769 2006-01-26  Simon Josefsson  <jas@extundo.com>
61770
61771         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61772         prototype is visible on mingw32.
61773
61774         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61775         for mingw32.
61776
61777         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61778         mingw32).
61779
61780 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61783         attempt to open for write; this always fails, at least on POSIX
61784         hosts.  This reinstates the 2006-01-09 change, which was
61785         inadvertently removed.
61786
61787 2006-01-26  Bruno Haible  <bruno@clisp.org>
61788
61789         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61790         Reported by Paul Eggert.
61791
61792 2006-01-26  Bruno Haible  <bruno@clisp.org>
61793             Paul Eggert  <eggert@cs.ucla.edu>
61794
61795         * lib/stdbool_.h (_Bool)
61796         [(! (defined __cplusplus || defined __BEOS__)
61797           && !defined __GNUC__
61798           && !(defined __HP_cc || defined __xlc__
61799                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61800                || defined __sgi))]:
61801         #define to signed char in these cases too; this simplifies
61802         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61803         etc., separately) and makes it more conservative.
61804
61805 2006-01-25  Simon Josefsson  <jas@extundo.com>
61806
61807         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61808         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61809         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61810
61811 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61812
61813         * lib/argp-namefrob.h: Bugfix. Remove stray #
61814
61815 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61818         so that we test the test.
61819         Check for yet another HP-UX cc bug involving *bool |= bool.
61820
61821 2006-01-25  Karl Berry  <karl@gnu.org>
61822
61823         * config/srclist.txt (vasnprintf.c): sync lost.
61824
61825 2006-01-25  Jim Meyering  <jim@meyering.net>
61826
61827         Sync from the stable (b5) branch of coreutils:
61828
61829         * lib/fts.c (fts_children): Don't let close() clobber errno from
61830         failed fchdir().
61831
61832         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61833         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61834         a dangling symlink.  That can also happen at least for ELOOP.
61835         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61836         FYI, this bug predates the inclusion of fts.c in coreutils.
61837
61838         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61839         in their own block, so pre-c99 compilers don't object.
61840
61841         Avoid the double-free (first in fts_read, second in fts_close) that
61842         would occur when an `active' directory is made inaccessible (e.g.,
61843         via chmod a-x) during a traversal.
61844         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61845         before returning.  Reproduce this failure by
61846         mkdir -p a/b; cd a; chmod a-x . b
61847         Reported by Stavros Passas.
61848
61849 2006-01-25  Jim Meyering  <jim@meyering.net>
61850
61851         * lib/fileblocks.c: Remove more useless parentheses.
61852         * lib/readutmp.h: Likewise.
61853
61854 2006-01-25  Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61857         warnings.
61858         Reported by Paul Eggert.
61859
61860 2006-01-25  Bruno Haible  <bruno@clisp.org>
61861
61862         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61863         rid of a trap command. For Solaris sh.
61864         Reported by Mark D. Baushke <mdb@gnu.org>.
61865
61866 2006-01-24  Simon Josefsson  <jas@extundo.com>
61867
61868         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61869         Bruno.
61870
61871 2006-01-24  Karl Berry  <karl@gnu.org>
61872
61873         * config/srclist.txt (argp-namefrob.h): sync lost.
61874
61875 2006-01-24  Jim Meyering  <jim@meyering.net>
61876
61877         * modules/openat (Files): Add lib/intprops.h.
61878         From Mark D. Baushke.
61879
61880 2006-01-24  Jim Meyering  <jim@meyering.net>
61881
61882         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61883         Reported by Mark D. Baushke.
61884
61885 2006-01-24  Jim Meyering  <jim@meyering.net>
61886
61887         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61888
61889 2006-01-24  Bruno Haible  <bruno@clisp.org>
61890
61891         * modules/strnlen (Maintainer): Change from glibc to all.
61892
61893 2006-01-24  Bruno Haible  <bruno@clisp.org>
61894
61895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61896         Patch by Paul Eggert.
61897
61898 2006-01-24  Bruno Haible  <bruno@clisp.org>
61899
61900         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61901         already has it.
61902         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61903         2005-11-26.
61904
61905         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61906         'signed char' to avoid problems with the built-in _Bool type.
61907         Reported by Paul Eggert on 2005-11-26.
61908
61909 2006-01-24  Bruno Haible  <bruno@clisp.org>
61910
61911         * gnulib-tool (func_import): Avoid constructing complicated sed
61912         expressions inside backquote.
61913         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61914
61915 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61916
61917         These changes imported from libc.
61918         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61919         test and two separate function calls.
61920         * lib/strndup.c (__strndup): Add libc_hidden_def.
61921
61922 2006-01-23  Simon Josefsson  <jas@extundo.com>
61923
61924         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61925         Remove the test_*_SOURCES variable: automake infers it by default.
61926         * modules/tls-tests: Likewise.
61927
61928 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61929
61930         Work around porting bugs reported by Dieter in
61931         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61932         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61933         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61934         Include "getopt.h" first, to check interface.
61935         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61936         !HAVE_DECL_GETENV.
61937         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61938         (__strndup): Revert to K&R-style function dfns, the glibc style.
61939         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61940         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61941         Include strnlen.h first, to get prototype properly.
61942         (strnlen): Renamed from __strnlen.
61943         Remove weak alias.
61944
61945 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61946
61947         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61948
61949 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61950
61951         * config/srclist.txt: Adjust to reflect glibc reorganization.
61952         This affects only comments.
61953
61954 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61955
61956          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61957          Reported by Bruce Korb <bkorb@gnu.org>.
61958
61959 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61960
61961         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61962         to pacify gcc -Wswitch-default.
61963
61964 2006-01-22  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61967         temporary buffer for sprintf, take into account the precision also
61968         for 'd', 'i', 'u', 'o', 'x', 'X'.
61969
61970 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61971
61972         * modules/argp-tests: New module
61973         * tests/test-argp.c: New file
61974         * tests/test-argp-2.sh: New file
61975
61976 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61977
61978         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61979         (__argp_base_name): Removed
61980         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61981         typo.
61982         (__argp_base_name): Provide macro definition or extern declaration
61983         depending on the configuration
61984
61985 2006-01-20  Simon Josefsson  <jas@extundo.com>
61986
61987         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61988
61989 2006-01-20  Simon Josefsson  <jas@extundo.com>
61990
61991         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61992
61993 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61994
61995         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61996         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61997         Suggested by Bruno Haible.
61998
61999 2006-01-20  Karl Berry  <karl@gnu.org>
62000
62001         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62002         until changes propagate, I guess.
62003
62004 2006-01-19  Simon Josefsson  <jas@extundo.com>
62005
62006         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62007
62008 2006-01-19  Simon Josefsson  <jas@extundo.com>
62009
62010         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62011
62012 2006-01-19  Simon Josefsson  <jas@extundo.com>
62013
62014         * gnulib-tool: Set check_PROGRAMS.
62015
62016         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62017         modules/des-tests, modules/gc-arcfour-tests,
62018         modules/gc-arctwo-tests, modules/gc-des-tests,
62019         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62020         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62021         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62022         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62023         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62024         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62025         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62026         test_*_SOURCES.
62027
62028 2006-01-18  Simon Josefsson  <jas@extundo.com>
62029
62030         * modules/socklen (Depends-on): Depend on sys_socket.
62031
62032 2006-01-18  Simon Josefsson  <jas@extundo.com>
62033
62034         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62035         modules/des-tests, modules/gc-arcfour-tests,
62036         modules/gc-arctwo-tests, modules/gc-des-tests,
62037         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62038         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62039         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62040         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62041         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62042         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62043         $(EXEEXT) to automake TESTS variable, for mingw32.
62044
62045 2006-01-17  Simon Josefsson  <jas@extundo.com>
62046
62047         * modules/socklen (Include): Need sys/socket.h.
62048
62049 2006-01-17  Bruno Haible  <bruno@clisp.org>
62050
62051         * modules/ssize_t (Include): Add <sys/types.h>.
62052
62053 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62056         it's not portable and it doesn't work with cross-compiles.
62057         Problem reported by Bruno Haible.  Fix missing-$ typo in
62058         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62059         -zignore from being used with Sun's C compiler.
62060
62061 2006-01-12  Simon Josefsson  <jas@extundo.com>
62062
62063         * lib/base64.c: Fix warning, reported by Bruno Haible
62064         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62065
62066 2006-01-12  Bruno Haible  <bruno@clisp.org>
62067
62068         * modules/ldd: New file.
62069         * build-aux/ldd.sh.in: New file.
62070         * MODULES.html.sh (Support for building libraries and executables): Add
62071         ldd.
62072
62073 2006-01-12  Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/ldd.m4: New file.
62076
62077 2006-01-12  Bruno Haible  <bruno@clisp.org>
62078
62079         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62080         endless loop while replacing $auxdir with build-aux.
62081
62082 2006-01-11  Simon Josefsson  <jas@extundo.com>
62083
62084         * lib/stdint_.h (SIZE_MAX): Add missing (.
62085
62086 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62087
62088         Sync from coreutils.
62089         * lib/md5.c: Fix commentary typos.
62090         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62091         * lib/md5.h (__attribute__): Remove; unused.
62092         * lib/sha1.c: Fix commentary to match md5 better.
62093         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62094         so that we don't need to worry about alignment.  All uses changed.
62095         This merges the 2005-10-28 md5 change into sha1.
62096
62097 2006-01-11  Jim Meyering  <jim@meyering.net>
62098
62099         Sync from coreutils.
62100         * lib/md5.c (OP): Fix spacing.
62101
62102 2006-01-11  Bruno Haible  <bruno@clisp.org>
62103
62104         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62105         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62106         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62107
62108 2006-01-11  Bruno Haible  <bruno@clisp.org>
62109
62110         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62111         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62112         the "early" section as well.
62113
62114 2006-01-11  Bruno Haible  <bruno@clisp.org>
62115
62116         Avoid "ar: no archive members specified" error on MacOS X.
62117         * gnulib-tool (func_modules_add_dummy): New function.
62118         (func_import, func_create_testdir): Invoke it.
62119
62120 2006-01-11  Bruno Haible  <bruno@clisp.org>
62121
62122         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62123         with $auxdir in AC_CONFIG_FILES statements.
62124
62125 2006-01-11  Bruno Haible  <bruno@clisp.org>
62126
62127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62128         Initialize also noinst_HEADERS to empty.
62129
62130 2006-01-11  Bruno Haible  <bruno@clisp.org>
62131
62132         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62133         variables.
62134         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62135         autoreconf.
62136
62137 2006-01-11  Bruno Haible  <bruno@clisp.org>
62138
62139         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62140         overridable by the user.
62141         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62142
62143 2006-01-10  Simon Josefsson  <jas@extundo.com>
62144
62145         * modules/sys_socket: New file.
62146
62147 2006-01-10  Simon Josefsson  <jas@extundo.com>
62148
62149         * m4/sys_socket_h.m4: New file.
62150
62151 2006-01-10  Simon Josefsson  <jas@extundo.com>
62152
62153         * lib/socket_.h: New file.
62154
62155 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         * modules/readutmp (Maintainer): Add myself.
62158
62159 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62160
62161         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62162         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62163         People who are still concerned with buggy memcmp implementations
62164         can invoke gl_FUNC_MEMCMP themselves.
62165
62166 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/regex_internal.h (BITSET_WORD_BITS):
62169         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62170         preprocessor mishandles large unsigned values as if they were signed.
62171         Problem reported by Claudio Fontana in
62172         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62173
62174 2006-01-10  Jim Meyering  <jim@meyering.net>
62175
62176         Avoid the double-free (first in fts_read, second in fts_close) that
62177         would occur when an `active' directory is made inaccessible (e.g.,
62178         via chmod a-x) during a traversal.
62179         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62180         before returning.  Reproduce this failure by
62181         mkdir -p a/b; cd a; chmod a-x . b
62182         Reported by Stavros Passas.
62183
62184         Sync from coreutils.
62185         * lib/sha1.c: Tweak grammar in a comment.
62186
62187 2006-01-10  Jim Meyering  <jim@meyering.net>
62188
62189         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62190         Patch by Joerg Sonnenberger.
62191
62192 2006-01-10  Bruno Haible  <bruno@clisp.org>
62193
62194         * modules/readutmp: Depend on module free.
62195         * modules/strtok_r: Depend on module restrict.
62196
62197 2006-01-10  Bruno Haible  <bruno@clisp.org>
62198
62199         * modules/gettext (configure.ac): Add an invocation of
62200         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62201
62202 2006-01-10  Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62205         Reported by Werner Lemberg <wl@gnu.org>.
62206
62207 2006-01-10  Bruno Haible  <bruno@clisp.org>
62208
62209         * lib/localcharset.c: Update from GNU gettext.
62210
62211 2006-01-10  Bruno Haible  <bruno@clisp.org>
62212
62213         * lib/argp.h (__const): Remove macro. Use const instead.
62214         * lib/argp-fmtstream.h (__const): Likewise.
62215         * lib/glob_.h (__const): Remove macro.
62216         * lib/glob-libc.h: Use const instead of __const.
62217
62218 2006-01-10  Bruno Haible  <bruno@clisp.org>
62219
62220         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62221         variable.
62222         Needed to avoid an automake error regarding the 'gettext' module.
62223
62224 2006-01-09  Simon Josefsson  <jas@extundo.com>
62225
62226         * modules/inet_ntop (Depends-on): Add restrict.
62227
62228 2006-01-09  Simon Josefsson  <jas@extundo.com>
62229
62230         * modules/gc-rijndael-tests (License): Put under LGPL.
62231
62232         * modules/gc-des-tests (License): Likewise.
62233
62234         * modules/gc-arcfour-tests (License): Likewise.
62235
62236         * modules/gc-arctwo-tests (License): Likewise.
62237
62238         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62239
62240         * modules/gc-hmac-sha1-tests (Files): Likewise.
62241
62242         * modules/gc-hmac-md5-tests (License): Likewise.
62243
62244         * modules/gc-sha1-tests (License): Likewise.
62245
62246         * modules/gc-md5-tests (License): Likewise.
62247
62248         * modules/gc-md4-tests (License): Likewise.
62249
62250         * modules/gc-md2-tests (License): Likewise.
62251
62252         * modules/gc-tests (License): Likewise.
62253
62254         * modules/des-tests (License): Likewise.
62255
62256         * modules/md4-tests (License): Likewise.
62257
62258         * modules/md2-tests (License): Likewise.
62259
62260 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62261
62262         Sync from coreutils:
62263
62264         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62265         * modules/lib-ignore: New file.
62266         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62267         chdir-safer.m4, lchmod.m4.
62268         * modules/openat: Add mkdirat.c, openat-priv.h.
62269
62270 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         Sync from coreutils.
62273         * m4/lib-ignore.m4: New file.
62274         * m4/lchmod.m4: New file.
62275
62276 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         Sync from coreutils.
62279         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62280         for write access: POSIX says that must fail.
62281         * lib/fts.c (diropen): Likewise.
62282         * lib/save-cwd.c (save_cwd): Likewise.
62283         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62284         well, for minor improvements on hosts that lack O_DIRECTORY.
62285         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62286         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62287         Fall back on chown if open failed with EACCES.
62288
62289         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62290         Report an error at compile-time if only a 1-second nominal clock
62291         resolution is found.
62292
62293         * lib/lchmod.h: New file.
62294         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62295         (make_dir_parents): Use lchown rather than chown, and
62296         lchmod rather than chmod.
62297
62298         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62299         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62300         "proc" reported by n0dalus.
62301
62302         * lib/mountlist.c: Include <limits.h>.
62303         (dev_from_mount_options)
62304         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62305         New function.  It no longer assumes "dev=" has the System V meaning
62306         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62307         (read_file_system_list)
62308         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62309         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62310         dev= in that case.
62311
62312         * lib/posixtm.h (PDS_PRE_2000): New macro.
62313         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62314         allow_century.  All usages changed.  Reject dates outside the range
62315         1969-1999 if PDS_PRE_2000 is used.
62316
62317 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         Sync from coreutils.
62320         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62321         (Time of day items): Mention the possibility of leap seconds.
62322         Problem reported by Dr. David Alan Gilbert.
62323
62324 2006-01-09  Jim Meyering  <jim@meyering.net>
62325
62326         Sync from coreutils.
62327
62328         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62329
62330         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62331
62332         * lib/modechange.c (mode_compile): Reject an invalid mode string
62333         that starts with an octal digit.  From Andreas Gruenbacher.
62334
62335         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62336         and dup to open_safer and dup_safer, respectively.
62337         (openat_permissive): Fix typo in comment.
62338
62339         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62340         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62341         (_): Remove; no longer needed.
62342         (openat): Renamed from rpl_openat; no need for rpl_openat
62343         since openat.h renames openat for us.
62344         Replace most of the body with a call to openat_permissive,
62345         to avoid duplicate code.
62346         Port to (probably hypothetical) environments were mode_t is
62347         wider than int.
62348         (openat_permissive): Require mode arg, so that we can check
62349         types better.  Put it just after flags.  Change cwd failure
62350         indicator from pointer-to-bool to pointer-to-errno-value.
62351         All callers changed.
62352         Invoke openat_save_fail and/or openat_restore_fail if
62353         cwd_errno is null, so that openat can call us.
62354         (openat_permissive, fdopendir, fstatat, unlinkat):
62355         Simplify errno handling to avoid some duplicate code,
62356         as it's OK to set errno on success.
62357         * lib/openat.h: Revamp code so that function macros depend on
62358         __OPENAT_PREFIX only, not also on AT_FDCWD.
62359         (openat_ro): Remove.  Caller changed to use openat_permissive.
62360         (openat_permissive): Now a macro, if not a function.
62361         (openat_restore_fail, openat_save_fail): Now always functions,
62362         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62363
62364         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62365         and openat.c.
62366         * lib/mkdirat.c: Include openat-priv.h.
62367         Remove definitions of macros defined therein.
62368         * lib/openat.c: Likewise.
62369
62370         * lib/mkdirat.c (mkdirat): New file and function.
62371         * lib/openat.h (mkdirat): Declare.
62372
62373         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62374
62375         * lib/openat.h (openat_permissive): Declare.
62376         (openat_ro): Define.
62377
62378         * lib/openat.c (EXPECTED_ERRNO): New macro.
62379         (openat_permissive): New function -- used in remove.c rewrite.
62380         (all functions): Set errno just before returning, only if there
62381         was an actual failure.
62382         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62383
62384         Emulate openat-family functions using Linux's procfs, if possible.
62385         Idea and some code based on Ulrich Drepper's glibc changes.
62386
62387         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62388         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62389         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62390         before falling back on save_cwd and restore_cwd.
62391         (fdopendir, fstatat, unlinkat): Likewise.
62392
62393         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62394         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62395
62396         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62397         as second argument to va_arg.  Otherwise, some versions of gcc
62398         warn that `if this code is reached, the program will abort'.
62399
62400 2006-01-09  Jim Meyering  <jim@meyering.net>
62401
62402         Sync from coreutils.
62403         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62404         Require openat-priv.h.
62405
62406 2006-01-09  Bruno Haible  <bruno@clisp.org>
62407
62408         * modules/strnlen (Include): Use strnlen.h.
62409
62410 2006-01-09  Bruno Haible  <bruno@clisp.org>
62411
62412         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62413
62414 2006-01-09  Bruno Haible  <bruno@clisp.org>
62415
62416         * lib/sysexit_.h (EX_OK): New macro.
62417         Suggested by Martin Lambers <marlam@marlam.de>.
62418
62419 2006-01-09  Bruno Haible  <bruno@clisp.org>
62420
62421         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62422         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62423
62424 2006-01-09  Bruno Haible  <bruno@clisp.org>
62425
62426         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62427         numbers.
62428
62429 2006-01-09  Bruno Haible  <bruno@clisp.org>
62430
62431         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62432         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62433         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62434         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62435
62436 2006-01-09  Bruno Haible  <bruno@clisp.org>
62437
62438         * build-aux/javacomp.sh.in: New file, moved from lib/.
62439         * modules/javacomp-script (Files): Update.
62440         (configure.ac): Add AC_CONFIG_FILES invocation.
62441         (EXTRA_DIST): Remove variable.
62442
62443         * build-aux/javaexec.sh.in: New file, moved from lib/.
62444         * modules/javaexec (Files): Update.
62445         (configure.ac): Add AC_CONFIG_FILES invocation.
62446         (EXTRA_DIST): Remove javaexec.sh.in.
62447
62448         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62449         * modules/csharpcomp-script (Files): Update.
62450         (configure.ac): Add AC_CONFIG_FILES invocation.
62451         (EXTRA_DIST): Remove variable.
62452
62453         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62454         * modules/csharpexec (Files): Update.
62455         (configure.ac): Add AC_CONFIG_FILES invocation.
62456         (EXTRA_DIST): Remove csharpexec.sh.in.
62457
62458 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62459
62460         Sync from coreutils.
62461
62462         Add POSIX ACL support
62463         * lib/acl.h (copy_acl, set_acl): Add declarations.
62464         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62465         systems other than Linux.
62466         (chmod_or_fchmod): New function: use fchmod when possible,
62467         and chmod otherwise.
62468         (file_has_acl): Add a POSIX ACL implementation, with a
62469         Linux-specific subcase.
62470         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62471         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62472         acls are unsupported.
62473         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62474         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62475         are unsupported.
62476
62477 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62478
62479         Sync from coreutils.
62480         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62481
62482 2006-01-07  Bruno Haible  <bruno@clisp.org>
62483
62484         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62485         gl_EARLY.
62486
62487 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62490         Problem reported for Mingw by Mark Junker.
62491
62492 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62493
62494         * README: Gnulib normally doesn't generate a tarball.
62495
62496 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62499         long int, not int, for nanosecond counts, so that people who are
62500         used to POSIX struct timespec won't be surprised.  Reported by Jim
62501         Meyering.
62502
62503 2005-12-28  Bruno Haible  <bruno@clisp.org>
62504
62505         * build-aux/config.rpath: Update from GNU gettext.
62506
62507 2005-12-16  Jim Meyering  <jim@meyering.net>
62508
62509         * modules/fprintftime: New module.
62510         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62511
62512 2005-12-16  Jim Meyering  <jim@meyering.net>
62513
62514         * m4/fprintftime.m4: New file.
62515
62516 2005-12-16  Jim Meyering  <jim@meyering.net>
62517
62518         * lib/fprintftime.c, lib/fprintftime.h: New files.
62519
62520 2005-12-15  Simon Josefsson  <jas@extundo.com>
62521
62522         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62523         new m4/socklen.m4.
62524
62525 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62526
62527         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62528         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62529
62530 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62531
62532         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62533         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62534         struct uparams is valid. Fall back to the default values if it is
62535         not.
62536
62537 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62538
62539         * modules/argp (Files): Add argp-pin.c
62540         (Depends-on): dirname
62541         (lib_SOURCES): Add argp-pin.c
62542
62543 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62544
62545         * m4/argp.m4:  Check if program_invocation_name and
62546         program_invocation_short_name are declared and define appropriate
62547         macros if they are not.
62548
62549 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62550
62551         * lib/argp-help.c (__argp_base_name): New function
62552         (__argp_short_program_name): Rewrite using __argp_base_name
62553         * lib/argp-namefrob.h: Define program_invocation_name and
62554         program_invocation_short_name if requested
62555         (__argp_base_name): Add prototype
62556         * lib/argp-parse.c (argp_def): Use gettext wrappers
62557         (argp_default_parser): Use __argp_base_name
62558         * lib/argp-pin.c: New file. Defines program_invocation_name and
62559         program_invocation_short_name on systems that lack them.
62560
62561 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62564         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62565         porting problem reported by Georg Schwarz in
62566         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62567
62568 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62569
62570         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62571         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62572         porting problem reported by Georg Schwarz in
62573         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62574
62575 2005-12-05  Bruno Haible  <bruno@clisp.org>
62576
62577         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62578         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62579         Reported by Mark Junker <mjscod@gmx.de>.
62580
62581 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62584         Use implementation from Albert Chin, with some
62585         comments/corrections by Stepan Kasal and myself.
62586
62587 2005-12-02  Bruno Haible  <bruno@clisp.org>
62588
62589         * gnulib-tool (func_import): Accept GPLed build tool modules when
62590         --lgpl is given.
62591         * modules/csharpcomp-script: New file.
62592         * modules/csharpcomp: Depend on it.
62593         * modules/javacomp-script: New file.
62594         * modules/javacomp: Depend on it.
62595         Suggested by Simon Josefsson.
62596
62597 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62598
62599         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62600         statement, to work around an HP-UX 10.20 compiler bug reported by
62601         Peter O'Gorman.
62602
62603 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * modules/savedir (Depends-on): Add openat.
62606
62607 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62608
62609         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62610         (uintmax_t) [defined uintmax_t]: Do not declare.
62611         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62612         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62613         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62614         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62615         sake of portability to weird hosts that C allows (though we don't
62616         know of any practical examples).
62617
62618         * lib/savedir.h (fdsavedir): New decl.
62619         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62620         contains most of the former guts of savedir.
62621         (savedir): Use savedirstream.
62622         Include "openat.h".
62623
62624 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62625
62626         * modules/obstack (Files): Add m4/ulonglong.m4.
62627         Problem reported by Davide Angelocola.
62628
62629 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62632         coreutils no longer futzes with rounding modes.
62633
62634 2005-11-14  Jim Meyering  <jim@meyering.net>
62635
62636         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62637         replacement of mkstemp.
62638
62639 2005-11-10  Simon Josefsson  <jas@extundo.com>
62640
62641         * lib/readline.c: Remove EOL.
62642
62643 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62644
62645         * modules/gethrxtime (Depends-on): Add gettime.
62646
62647 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62648
62649         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62650         or gettimeofday; no longer needed.
62651
62652 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62655         time business.
62656         (gethrxtime) [! (HAVE_NANOUPTIME
62657         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62658         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62659         our own approximation.
62660
62661 2005-11-08  Eric Blake  <ebb9@byu.net>
62662
62663         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62664
62665 2005-11-08  Eric Blake  <ebb9@byu.net>
62666
62667         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62668
62669 2005-11-04  Bruno Haible  <bruno@clisp.org>
62670
62671         * gnulib-tool: Implement --update mode.
62672
62673 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62674
62675         Fix porting problem reported by Theodoros V. Kalamatianos.
62676         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62677         Don't assume that futimes failing means we must fail.
62678
62679 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62682         variables to suggest the intended function of the PATH_MAX check.
62683
62684 2005-10-30  Kean Johnston  <jkj@sco.com>
62685
62686         Trivial changes to support SCO systems.
62687         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62688         as PATH_MAX.
62689         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62690         where __ptr is null when no I/O is pending.
62691
62692 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62695         leave errno alone.  Problem reported by Dmitry V. Levin.
62696
62697 2005-10-28  Simon Josefsson  <jas@extundo.com>
62698
62699         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62700         Test more.
62701
62702         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62703
62704         * modules/md2, modules/md2-tests: New files.
62705
62706 2005-10-28  Simon Josefsson  <jas@extundo.com>
62707
62708         * m4/inet_ntop.m4: More tests.
62709
62710         * m4/gc-md2.m4, md2.m4: New file.
62711
62712 2005-10-28  Simon Josefsson  <jas@extundo.com>
62713
62714         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62715         "restrict" keywords, as per POSIX.  Protect the function
62716         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62717         Don't use K&R prototypes.  Check the sprintf return values.
62718         Re-define EAFNOSUPPORT if not present.  Indent.
62719
62720         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62721         suggested by Bruno Haible <bruno@clisp.org>.
62722
62723         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62724
62725         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62726
62727         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62728         libgcrypt).
62729
62730         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62731
62732         * lib/md2.h, lib/md2.c: New files.
62733
62734 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62735
62736         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62737         errno alone.  Problem reported by Frederic Jolliton.
62738
62739 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * modules/verify (License): Change from GPL to LGPL.  This is a
62742         tiny module and there are apparently near-equivalents that are
62743         under the BSD license.
62744
62745 2005-10-24  Simon Josefsson  <jas@extundo.com>
62746
62747         * modules/sha1: Relicense to LGPL.
62748
62749 2005-10-24  Simon Josefsson  <jas@extundo.com>
62750
62751         * lib/md4.h: Shrink buffer size, now that we changed the type.
62752
62753 2005-10-23  Simon Josefsson  <jas@extundo.com>
62754
62755         * gnulib-tool (func_import): Fix --tests-base.
62756
62757 2005-10-22  Simon Josefsson  <jas@extundo.com>
62758
62759         * modules/arcfour (Depends-on): Need stdint.
62760
62761 2005-10-22  Simon Josefsson  <jas@extundo.com>
62762
62763         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62764         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62765
62766 2005-10-22  Simon Josefsson  <jas@extundo.com>
62767
62768         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62769         suggested by Bruno Haible <bruno@clisp.org>.
62770
62771 2005-10-22  Simon Josefsson  <jas@extundo.com>
62772
62773         * lib/crc.h: Include stddef.h, for size_t.
62774
62775 2005-10-22  Simon Josefsson  <jas@extundo.com>
62776
62777         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62778         arcfour_context struct (simplify test vector testing in GNU
62779         Shishi).
62780
62781 2005-10-21  Simon Josefsson  <jas@extundo.com>
62782
62783         * modules/des, modules/des-tests: New files.
62784
62785         * modules/gc-des, modules/gc-des-tests: New files.
62786
62787         * tests/test-des.c, tests/test-gc-des.c: New file.
62788
62789 2005-10-21  Simon Josefsson  <jas@extundo.com>
62790
62791         * modules/arctwo, modules/arctwo-tests: New files.
62792
62793         * tests/test-arctwo.c: New file.
62794
62795         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62796
62797         * tests/test-gc-arctwo.c: New file.
62798
62799 2005-10-21  Simon Josefsson  <jas@extundo.com>
62800
62801         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62802         Bruno Haible <bruno@clisp.org>.
62803
62804         * m4/gc-des.m4: New file.
62805
62806 2005-10-21  Simon Josefsson  <jas@extundo.com>
62807
62808         * m4/arctwo.m4: New file.
62809
62810         * m4/gc-arctwo.m4: New file.
62811
62812 2005-10-21  Simon Josefsson  <jas@extundo.com>
62813
62814         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62815         block.
62816
62817 2005-10-21  Simon Josefsson  <jas@extundo.com>
62818
62819         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62820         <bruno@clisp.org>.
62821
62822         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62823
62824         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62825         Bruno Haible <bruno@clisp.org>.
62826
62827         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62828         <bruno@clisp.org>.
62829
62830 2005-10-21  Simon Josefsson  <jas@extundo.com>
62831
62832         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62833
62834 2005-10-21  Simon Josefsson  <jas@extundo.com>
62835
62836         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62837
62838 2005-10-21  Simon Josefsson  <jas@extundo.com>
62839
62840         * lib/des.h, lib/des.c: New files.
62841
62842         * lib/gc-gnulib.c: Support DES.c
62843
62844 2005-10-21  Simon Josefsson  <jas@extundo.com>
62845
62846         * lib/arctwo.h, lib/arctwo.c: New files.
62847
62848         * lib/gc-gnulib.c: Support ARCTWO.
62849
62850 2005-10-21  Simon Josefsson  <jas@extundo.com>
62851
62852         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62853         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62854
62855 2005-10-21  Simon Josefsson  <jas@extundo.com>
62856
62857         * gnulib-tool (func_import, func_create_testdir): Define automake
62858         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62859         Makefile.am snippet),
62860         suggested by Bruno Haible <bruno@clisp.org>.
62861
62862         * modules/gc (Makefile.am): Use it.
62863
62864 2005-10-21  Bruno Haible  <bruno@clisp.org>
62865
62866         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62867         patch.
62868
62869 2005-10-19  Simon Josefsson  <jas@extundo.com>
62870
62871         * tests/test-gc-rijndael.c: New file.
62872
62873         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62874
62875 2005-10-19  Simon Josefsson  <jas@extundo.com>
62876
62877         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62878         interface too.
62879
62880 2005-10-19  Simon Josefsson  <jas@extundo.com>
62881
62882         * tests/test-gc-arcfour.c: New file.
62883
62884         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62885
62886 2005-10-19  Simon Josefsson  <jas@extundo.com>
62887
62888         * modules/gc-md4, modules/gc-md4-tests: New file.
62889
62890         * tests/test-gc-md4.c: New file.
62891
62892 2005-10-19  Simon Josefsson  <jas@extundo.com>
62893
62894         * m4/gc-md4.m4: New file.
62895
62896 2005-10-19  Simon Josefsson  <jas@extundo.com>
62897
62898         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62899         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62900         <kasal@ucw.cz>.
62901
62902 2005-10-19  Simon Josefsson  <jas@extundo.com>
62903
62904         * m4/gc-arcfour.m4: New file.
62905
62906         * m4/gc-rijndael.m4: New file.
62907
62908 2005-10-19  Simon Josefsson  <jas@extundo.com>
62909
62910         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62911
62912 2005-10-19  Simon Josefsson  <jas@extundo.com>
62913
62914         * lib/gc-gnulib.c: Support ARCFOUR.
62915
62916 2005-10-19  Simon Josefsson  <jas@extundo.com>
62917
62918         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62919         support.
62920
62921         * lib/gc.h: Add ECB enum type.
62922
62923         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62924
62925 2005-10-18  Simon Josefsson  <jas@extundo.com>
62926
62927         * tests/test-md5.c: New file.
62928
62929         * modules/md5-tests: New file.
62930
62931 2005-10-18  Simon Josefsson  <jas@extundo.com>
62932
62933         * tests/test-md4.c: New file.
62934
62935         * modules/md4, modules/md4-tests: New files.
62936
62937 2005-10-18  Simon Josefsson  <jas@extundo.com>
62938
62939         * m4/md4.m4: New file.
62940
62941 2005-10-18  Simon Josefsson  <jas@extundo.com>
62942
62943         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62944
62945 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62946
62947         * gnulib-tool (func_create_testdir): Omit the second check whether
62948         BUILT_SOURCES in nonempty.
62949
62950 2005-10-17  Simon Josefsson  <jas@extundo.com>
62951
62952         * tests/test-rijndael.c: New file.
62953
62954 2005-10-17  Simon Josefsson  <jas@extundo.com>
62955
62956         * modules/sha1: Depend on stdint instead of md5.
62957
62958         * modules/md5: Depend on stdint, remove uint32_t.
62959
62960 2005-10-17  Simon Josefsson  <jas@extundo.com>
62961
62962         * modules/gc-sha1-tests: New file.
62963
62964         * tests/test-gc-sha1.c: New file.
62965
62966 2005-10-17  Simon Josefsson  <jas@extundo.com>
62967
62968         * m4/md5.m4: Remove call to uint32_t.m4.
62969
62970 2005-10-17  Simon Josefsson  <jas@extundo.com>
62971
62972         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62973
62974         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62975         md5.h.
62976
62977         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62978
62979         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62980
62981 2005-10-17  Simon Josefsson  <jas@extundo.com>
62982
62983         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62984
62985 2005-10-17  Simon Josefsson  <jas@extundo.com>
62986
62987         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62988
62989 2005-10-17  Simon Josefsson  <jas@extundo.com>
62990
62991         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62992
62993         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62994
62995 2005-10-17  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62998         that it can also be used in a test.
62999
63000 2005-10-16  Bruno Haible  <bruno@clisp.org>
63001
63002         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63003         TESTS_ENVIRONMENT, so that individual tests can augment it.
63004
63005         * gnulib-tool (func_create_testdir): Use an intermediate target for
63006         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63007         macros, like $(ALLOCA_H), which cannot be passed through the command
63008         line.
63009
63010 2005-10-15  Simon Josefsson  <jas@extundo.com>
63011
63012         * modules/rijndael-tests: New file.
63013
63014         * modules/rijndael: New file.
63015
63016 2005-10-15  Simon Josefsson  <jas@extundo.com>
63017
63018         * m4/rijndael.m4: New file.
63019
63020 2005-10-15  Simon Josefsson  <jas@extundo.com>
63021
63022         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63023
63024         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63025
63026 2005-10-14  Simon Josefsson  <jas@extundo.com>
63027
63028         * tests/test-arcfour.c: New file.
63029
63030         * modules/arcfour, modules/arcfour-tests: New files.
63031
63032 2005-10-14  Simon Josefsson  <jas@extundo.com>
63033
63034         * m4/arcfour.m4: New file.
63035
63036 2005-10-14  Simon Josefsson  <jas@extundo.com>
63037
63038         * lib/arcfour.h, lib/arcfour.c: New files.
63039
63040 2005-10-14  Roland McGrath  <roland@redhat.com>
63041
63042         Import from libc.  [BZ #1331]
63043         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63044         macro argument.
63045         Reported by Matej Vela <vela@debian.org>.
63046
63047 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63048
63049         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63050         include <wchar.h>; no longer needed.
63051
63052 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63055
63056 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63057         and  Ulrich Drepper  <drepper@redhat.com>
63058
63059         Import from libc.
63060         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63061         instead of inline stream orientation test and two separate
63062         function calls.  Pay no attention to USE_IN_LIBIO.
63063
63064 2005-10-13  Simon Josefsson  <jas@extundo.com>
63065
63066         * modules/gc-hmac-md5-tests: New file.
63067
63068         * tests/test-gc-hmac-sha1.c: New file.
63069
63070         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63071
63072         * modules/gc-hmac-md5-tests: New file.
63073
63074         * tests/test-gc-md5.c: New file.
63075
63076         * modules/gc-md5-tests: New file.
63077
63078 2005-10-13  Simon Josefsson  <jas@extundo.com>
63079
63080         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63081         Move memory allocation outside of loop.
63082
63083 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63084
63085         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63086         intermediate directory is in a read-only file system.  Problem
63087         reported by Eric Blake.
63088
63089 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63090
63091         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63092
63093 2005-10-12  Simon Josefsson  <jas@extundo.com>
63094
63095         * tests/test-hmac-sha1.c: New file.
63096
63097         * modules/hmac-sha1-tests: New file.
63098
63099         * modules/hmac-sha1: New file.
63100
63101 2005-10-12  Simon Josefsson  <jas@extundo.com>
63102
63103         * modules/gc-sha1: New file.
63104
63105 2005-10-12  Simon Josefsson  <jas@extundo.com>
63106
63107         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63108
63109         * tests/test-gc-pbkdf2-sha1.c: New file.
63110
63111 2005-10-12  Simon Josefsson  <jas@extundo.com>
63112
63113         * modules/gc-md5, modules/gc-hmac-md5: New files.
63114
63115         * modules/gc (Files): Remove md5, memxor and hmac files.
63116
63117 2005-10-12  Simon Josefsson  <jas@extundo.com>
63118
63119         * m4/gc-pbkdf2-sha1.m4: New file.
63120
63121         * m4/gc-hmac-sha1.m4: New file.
63122
63123         * m4/gc-sha1: New file.
63124
63125         * m4/hmac-sha1.m4: New file.
63126
63127 2005-10-12  Simon Josefsson  <jas@extundo.com>
63128
63129         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63130
63131         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63132
63133 2005-10-12  Simon Josefsson  <jas@extundo.com>
63134
63135         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63136         suggested by Bruno Haible <bruno@clisp.org>.
63137
63138 2005-10-12  Simon Josefsson  <jas@extundo.com>
63139
63140         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63141
63142 2005-10-12  Simon Josefsson  <jas@extundo.com>
63143
63144         * lib/gc-pbkdf2-sha1.c: New file.
63145
63146         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63147
63148 2005-10-12  Simon Josefsson  <jas@extundo.com>
63149
63150         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63151
63152         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63153
63154 2005-10-12  Simon Josefsson  <jas@extundo.com>
63155
63156         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63157         GC_USE_HMAC_MD5, respectively.
63158
63159         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63160         (gc_md5): Fix typo.
63161
63162         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63163
63164         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63165
63166         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63167
63168 2005-10-12  Bruno Haible  <bruno@clisp.org>
63169
63170         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63171         Reported by Stepan Kasal <kasal@ucw.cz>.
63172
63173 2005-10-11  Simon Josefsson  <jas@extundo.com>
63174
63175         * tests/test-crc.c: New file.
63176
63177         * modules/crc, modules/crc-tests: New files.
63178
63179 2005-10-11  Simon Josefsson  <jas@extundo.com>
63180
63181         * m4/crc.m4: New file.
63182
63183 2005-10-11  Simon Josefsson  <jas@extundo.com>
63184
63185         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63186
63187         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63188
63189         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63190
63191 2005-10-11  Simon Josefsson  <jas@extundo.com>
63192
63193         * lib/crc.h, lib/crc.c: New files.
63194
63195         * lib/gc.h (gc_hash_buffer): Add doc.
63196
63197 2005-10-11  Bruno Haible  <bruno@clisp.org>
63198
63199         * modules/c-strcasestr: New file.
63200         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63201
63202 2005-10-11  Bruno Haible  <bruno@clisp.org>
63203
63204         * modules/c-strcase: New file.
63205         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63206
63207 2005-10-11  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/strcasecmp.c: Include limits.h.
63210         (strcasecmp): Avoid integer overflow on exotic platforms.
63211         * lib/strncasecmp.c: Include limits.h.
63212         (strncasecmp): Avoid integer overflow on exotic platforms.
63213         Reported by Paul Eggert.
63214
63215 2005-10-11  Bruno Haible  <bruno@clisp.org>
63216
63217         * lib/c-strcasestr.h: New file, from GNU gettext.
63218         * lib/c-strcasestr.c: New file, from GNU gettext.
63219
63220 2005-10-11  Bruno Haible  <bruno@clisp.org>
63221
63222         * lib/c-strcase.h: New file, from GNU gettext.
63223         * lib/c-strcasecmp.c: New file, from GNU gettext.
63224         * lib/c-strncasecmp.c: New file, from GNU gettext.
63225
63226 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         * modules/mempcpy (License): GPL -> LGPL.
63229         * modules/strchrnul (License): Likewise.
63230         * modules/sysexits (License): Likewise.
63231
63232 2005-10-08  Simon Josefsson  <jas@extundo.com>
63233
63234         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63235
63236 2005-10-07  Simon Josefsson  <jas@extundo.com>
63237
63238         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63239
63240 2005-10-06  Simon Josefsson  <jas@extundo.com>
63241
63242         * tests/test-hmac-md5.c: New file.
63243
63244         * modules/hmac-md5-tests: New file.
63245
63246         * modules/hmac-md5: New file.
63247
63248 2005-10-06  Simon Josefsson  <jas@extundo.com>
63249
63250         * m4/hmac-md5.m4: New file.
63251
63252         * m4/memxor.m4: Require gl_C_RESTRICT.
63253
63254 2005-10-06  Simon Josefsson  <jas@extundo.com>
63255
63256         * lib/memxor.c (memxor): Avoid casts and warnings.
63257
63258 2005-10-06  Simon Josefsson  <jas@extundo.com>
63259
63260         * lib/hmac-md5.c: New file.
63261
63262         * lib/hmac.h: New file.
63263
63264 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63267         promotes to int, not unsigned int, to catch the AIX 5.3
63268         compiler bug.
63269
63270 2005-10-05  Simon Josefsson  <jas@extundo.com>
63271
63272         * modules/memxor: New file.
63273
63274         * modules/iconv (Files): Move config.rpath to havelib, it is used
63275         there.
63276
63277         * modules/havelib (Files): Add config.rpath.
63278
63279 2005-10-05  Simon Josefsson  <jas@extundo.com>
63280
63281         * m4/memxor.m4: New file.
63282
63283 2005-10-05  Simon Josefsson  <jas@extundo.com>
63284
63285         * lib/memxor.c (memxor): Fix compiler error.
63286
63287         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63288         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63289
63290         * lib/memxor.h, lib/memxor.c: New files.
63291
63292         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63293         we assume all systems have it, suggested by Jim Meyering
63294         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63295         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63296         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63297         same reasons.
63298
63299 2005-10-05  Simon Josefsson  <jas@extundo.com>
63300
63301         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63302
63303 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63304
63305         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63306         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63307         needed, since the source code now assumes these .h files.
63308
63309 2005-10-05  Derek Price  <derek@ximbiot.com>
63310
63311         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63312
63313 2005-10-05  Bruno Haible  <bruno@clisp.org>
63314
63315         * modules/stdint (License): Change to LGPL.
63316
63317 2005-10-04  Simon Josefsson  <jas@extundo.com>
63318
63319         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63320         D. Baushke" <mdb@gnu.org>.
63321
63322 2005-10-04  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/verify.h (verify_true): Provide alternative definition for C++.
63325
63326 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63327
63328         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63329         (SSIZE_MAX): New macro, if not already defined.
63330         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63331         than 2 GiB.
63332
63333 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63334
63335         Sync from coreutils.
63336         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63337         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63338         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63339         ULLONG_MAX doesn't work with 2.7.2.1.
63340
63341 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63342
63343         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63344         From Ben Pfaff.
63345
63346         * modules/exclude (Depends-on): Depend on verify.
63347         * modules/strtoimax (Depends-on): Likewise.
63348         * modules/utimecmp (Depends-on): Likewise.
63349
63350 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         * lib/exclude.c: Include verify.h.
63353         (verify): Remove.  All callers changed to use verify.h's version.
63354         * lib/strtoimax.c: Likewise.
63355         * lib/utimecmp.c: Likewis.e
63356
63357         Sync from coreutils.
63358         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63359         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63360         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63361         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63362         bother returning ENOSYS if settimeofday or stime fails; just let
63363         them return whatever errno they want to return.
63364         * lib/utimens.c: Include unistd.h, for dup2.
63365         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63366         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63367
63368 2005-10-02  Jim Meyering  <jim@meyering.net>
63369
63370         Sync from coreutils.
63371         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63372         from glibc-2.2.5 that fails for read-only files.
63373
63374 2005-10-02  Jim Meyering  <jim@meyering.net>
63375
63376         Sync from coreutils.
63377         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63378         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63379         `#if HAVE_CONFIG_H'.
63380         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63381         Remove AT_FDCWD test.
63382         Do not consume the fd unless successful.
63383         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63384         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63385         block, so that we don't even try to compile it if settimeofday is
63386         available.  This works around a compilation failure on OSF1 V5.1,
63387         due to stime requiring a `long int*' while tv_sec is `int'.
63388
63389 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63390
63391         Sync from coreutils.
63392         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63393         against `yes', rather than just testing for nonempty.
63394
63395 2005-10-01  Simon Josefsson  <jas@extundo.com>
63396
63397         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63398         and Darwin.
63399
63400         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63401         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63402         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63403         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63404         Check if struct addrinfo is declared.
63405
63406 2005-10-01  Simon Josefsson  <jas@extundo.com>
63407
63408         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63409         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63410         AI_* and EAI_* definitions.  Protect function declarations.
63411
63412 2005-10-01  Jim Meyering  <jim@meyering.net>
63413
63414         Sync from coreutils.
63415
63416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63417         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63418         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63420         in the inet and nsl libraries.  Required on Solaris 5.7.
63421
63422 2005-10-01  Jim Meyering  <jim@meyering.net>
63423
63424         Sync from coreutils.
63425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63426         in the inet and nsl libraries.  Required on Solaris 5.7.
63427
63428 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63429
63430         * lib/getdelim.c (getdelim): Remove unused variables.
63431
63432 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63433
63434         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63435         so that the code works even with ancient cpp.  Portability problem
63436         with GCC 2.7.2.1 reported by Thomas M.Ott.
63437
63438 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63439
63440         * modules/regex (Depends-on): Add strcase.
63441
63442         * modules/gethostname (Licence): Change from GPL to LGPL, since
63443         gethostname.c is a trivial implementation of a standard library
63444         function.
63445         * modules/poll (License): Change from GPL to LGPL, since it's
63446         derived from LGPL code.
63447
63448 2005-09-27  Jim Meyering  <jim@meyering.net>
63449
63450         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63451         HAVE_CONFIG_H.
63452
63453         * lib/intprops.h (signed_type_or_expr__): Define.
63454         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63455         for unsigned types.
63456
63457 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63458
63459         * lib/verify.h (verify_expr): Remove, replacing with:
63460         (verify_true): New macro that returns true instead of void.
63461         (verify_type__): Remove.
63462         (verify): Use verify_true rather than verify_type__.
63463
63464 2005-09-26  Bruno Haible  <bruno@clisp.org>
63465
63466         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63467         is necessary.
63468         (lib_SOURCES): Remove mbchar.c.
63469         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63470         (Files): Add m4/mbrtowc.m4.
63471         * modules/mbiter: Likewise.
63472         * modules/mbuiter: Likewise.
63473
63474 2005-09-26  Bruno Haible  <bruno@clisp.org>
63475
63476         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63477         compile mbchar.c if they are not both present.
63478         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63479         * m4/mbiter.m4 (gl_MBITER): Likewise.
63480         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63481         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63482         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63483
63484 2005-09-25  Jim Meyering  <jim@meyering.net>
63485
63486         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63487         also uses socklen_t.
63488
63489 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63490
63491         * lib/utimens.c (ENOSYS): Define if not already defined.
63492         (futimens): Support having a null PATH if the file descriptor
63493         is nonnegative.
63494
63495         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63496         Remove.
63497         (__attribute): Define to empty unless GCC 3.1 or later.
63498         This works around a core dump on OpenBSD 3.4, which has GCC
63499         2.95.3, which dumps core when given __attribute__(()).  It also
63500         simplifies other tests, since we really don't want to bother with
63501         worrying about which ancient version of GCC supported what.
63502         Original problem reported by Yoann Vandoorselaere, with part of
63503         the fix suggested by Derek Price.
63504
63505 2005-09-24  Jim Meyering  <jim@meyering.net>
63506
63507         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63508         so we can once again use a positive bitfield width of 1 -- now we
63509         don't have to explain why we were using a bitfield width of 2.
63510
63511 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63512
63513         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63514         and similarly for the other external symbols.  Problem reported
63515         by James Gallager.
63516
63517         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63518         bug reported by Jim Meyering.
63519
63520         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63521         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63522         not needed, since socklen is a prerequisite module.
63523
63524 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63525
63526         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63527         Problem reported by Eric Blake.
63528         (getaddrinfo): Initialize se so that it's not garbage.
63529         Redo internal storage allocation so that it doesn't make unportable
63530         assumptions about alignment.
63531         Fix a memory leak.
63532
63533         * lib/utimens.c (futimens): Use futimesat if available.
63534         Prefer it to futimes since it doesn't have the futimes bug.
63535
63536         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63537         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63538         Instead, declare a function that returns a pointer to an array,
63539         and use verify_type__ to declare the size of the array.
63540         Problem and germ of a solution reported by Bruno Haible.
63541         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63542         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63543
63544 2005-09-23  Jim Meyering  <jim@meyering.net>
63545
63546         Sync from coreutils.
63547         Correct build failure (socklen_t not defined) on at least
63548         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63550
63551 2005-09-23  Jim Meyering  <jim@meyering.net>
63552
63553         * modules/getaddrinfo (Depends-on): Add socklen.
63554
63555 2005-09-23  Bruno Haible  <bruno@clisp.org>
63556
63557         * tests/test-verify.c: New file.
63558
63559 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         Sync from coreutils.
63562
63563         * modules/argmatch (Depends-on): Add verify.
63564         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63565         unistd-safer.
63566         * modules/save-cwd (Depends-on): Likewise.
63567
63568         * modules/openat (Files): Add lib/openat-die.c.
63569         (Depends-on): Remove error, exitfail.
63570         Add dirname.
63571
63572         * modules/verify: New file.
63573         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63574         with "verify" module.
63575
63576 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         Sync from coreutils.
63579
63580         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63581         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63582         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63583         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63584         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63585         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63586         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63587         Don't bother checking for string.h, stdlib.h, unistd.h.
63588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63589         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63590         module's job.
63591         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63592         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63593
63594         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63595         (gl_GETDATE): Use it.
63596
63597         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63598
63599 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63600
63601         Sync from coreutils.
63602
63603         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63604         stat-time.h.
63605         * lib/argmatch.h: Include verify.h
63606         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63607         (ARGMATCH_ASSERT): Remove; unused.
63608         * lib/canonicalize.c: Assume STDC_HEADERS.
63609         * lib/exclude.c: Include "strcase.h".
63610         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63611         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63612         and stdio-safer.h.
63613         (getusershell): Call fopen, not fopen_safer.
63614         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63615         Do not include unistd-safer.h.
63616         (save_cwd): Don't call fd_safer; no longer needed
63617         now that we include fcntl--.h.
63618
63619         * lib/getdate.y (relative_time): New type.
63620         (RELATIVE_TIME_0): New constant.
63621         (parser_control): Use relative_time instead of doing it ourselves.
63622         (%union): Add new relative_time rel member.
63623         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63624         Now typeless.
63625         (relunit, relunit_snumber): Now of type rel.
63626         (zone, rel, relunit, get_date): Adjust to above changes.
63627
63628         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63629         Do not include unistd-safer.h.
63630         (getloadavg): Don't call fd_safer; no longer needed
63631         now that we include fcntl--.h.
63632
63633         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63634         (make_dir_parents): Treat ENOSYS like EEXIST.
63635
63636         Improve quality of diagnostics on restore_cwd failure.
63637         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63638         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63639         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63640         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63641         each time through the loop.  Do not diagnose restore_cwd failure;
63642         that is the caller's job (and perhaps the caller does not care).
63643
63644         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63645         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63646         If the file already exists but is not a directory, don't bother
63647         to try to make its parents.
63648         Close potential file descriptor leak if we can't chdir("/") (!).
63649         Don't always return true if chdir($PWD) fails; return true only
63650         if the requested action was done successfully (except for the
63651         chdir($PWD)).
63652         Don't log final directory unless we actually made it.
63653         Refactor to avoid duplicate code to fix up permissions.
63654         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63655
63656         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63657         to make it a bit faster and (I hope) clearer.
63658         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63659         Fix bug in formats like %2N.
63660
63661         * lib/verify.h: New file.
63662
63663 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63664
63665         Sync from coreutils.
63666         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63667
63668 2005-09-22  Jim Meyering  <jim@meyering.net>
63669
63670         Sync from coreutils.
63671
63672         * m4/lstat.m4 (gl_FUNC_LSTAT):
63673         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63674         Remove obsolete comment.
63675         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63676         * m4/xstrtod.m4: Likewise.
63677
63678         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63679
63680 2005-09-22  Jim Meyering  <jim@meyering.net>
63681
63682         Sync from coreutils.
63683
63684         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63685
63686         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63687         the .tm_year member, since otherwise gcc-4.0 would now warn about
63688         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63689
63690         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63691         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63692
63693         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63694         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63695         when run in a time zone for which daylight savings time is in effect
63696         for the starting date.
63697
63698         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63699         stop us from restricting permissions of just-created absolute-named
63700         directories.
63701         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63702         to restore initial working directory.
63703         * lib/mkdir-p.c (make_dir_parents): New parameter:
63704         different_working_dir, to tell caller if/when we change the working
63705         directory and are unable to return to the initial one.
63706         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63707         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63708         `return false'.  This fixes a bug introduced on 2004-07-30.
63709
63710         * lib/openat.c (fdopendir): Be sure to close the supplied
63711         file descriptor before returning.  This makes our replacement
63712         implementation a little closer to Solaris's, where fdopendir
63713         ties the file descriptor to the returned DIR* pointer.
63714         * lib/openat.c (unlinkat): New function.
63715         * lib/openat.h (unlinkat): Add prototype.
63716         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63717         (openat_restore_fail): Rename from openat_restore_die.
63718         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63719
63720         Provide an alternative to exiting immediately upon save_cwd or
63721         restore_cwd failure.  Now, an application can arrange e.g.,
63722         to perform a longjump in that case.
63723         * lib/openat.c: Include dirname.h.
63724         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63725         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63726         and openat_restore_die rather than calling error directly.
63727         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63728
63729         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63730         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63731         define.
63732
63733         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63734         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63735                             int utc, int nanoseconds);
63736         Background:
63737         date should not have to allocate a megabyte of virtual memory to
63738         handle a format argument like +%1048575T.  When implemented with
63739         strftime, it must allocate such a buffer, use strftime to fill it
63740         in, print it, then free it.
63741         With fprintftime, it simply prints everything and exits.
63742         With no need for memory allocation, that's one fewer way to fail.
63743         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63744         optional field width, not before, so we accept %9:z, not %:9z.
63745         (my_strftime): Be sure to use L_('x') for literals.
63746
63747         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63748         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63749         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63750         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63751         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63752         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63753         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63754         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63755         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63756         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63757         * lib/xgethostname.c, lib/xreadlink.c:
63758         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63759
63760         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63761         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63762         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63763         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63764         and don't include <sys/file.h>).
63765
63766 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63767
63768         Sync from coreutils.
63769
63770         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63771         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63772         [!LDAV_DONE]: Avoid unused variable warning.
63773
63774 2005-09-21  Bruno Haible  <bruno@clisp.org>
63775
63776         * lib/unicodeio.h (unicode_to_mb): New declaration.
63777
63778 2005-09-20  Derek Price  <derek@ximbiot.com>
63779
63780         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63781         getaddrinfo.h.
63782
63783 2005-09-20  Bruno Haible  <bruno@clisp.org>
63784
63785         * gnulib-tool: Remove trailing slashes from the values specified for
63786         --source-base, --m4-base, --tests-base, --aux-dir.
63787         Suggested by Simon Josefsson <jas@extundo.com>.
63788
63789 2005-09-20  Bruno Haible  <bruno@clisp.org>
63790
63791         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63792         func_modules_to_filelist, func_import, func_create_testdir): Make all
63793         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63794         change when gnulib-tool is invoked in a different locale.
63795
63796 2005-09-19  Simon Josefsson  <jas@extundo.com>
63797
63798         * m4/socklen.m4: Fix typo.
63799
63800 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63801
63802         Use a consistent style for including <config.h>.
63803         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63804         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63805         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63806         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63807         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63808         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63809         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63810         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63811         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63812         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63813         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63814         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63815         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63816         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63817         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63818         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63819         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63820         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63821         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63822         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63823         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63824         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63825         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63826         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63827         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63828         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63829         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63830         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63831         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63832         lib/xstrtoumax.c, lib/yesno.c:
63833         Standardize inclusion of config.h.
63834         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63835         lib/inttostr.h:  Removed inclusion of config.h from header files.
63836         * lib/inttostr.c:  Adjusted in-tree users.
63837         * lib/timespec.h: Remove superfluous warning to include config.h.
63838         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63839         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63840         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63841         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63842         config.h with HAVE_CONFIG_H.
63843
63844 2005-09-19  Jim Meyering  <jim@meyering.net>
63845
63846         * modules/pathmax (License): Change to LGPL.
63847
63848 2005-09-19  Derek Price  <derek@ximbiot.com>
63849
63850         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63851
63852 2005-09-19  Bruno Haible  <bruno@clisp.org>
63853
63854         * gnulib-tool (import): Provide default for --tests-base.
63855
63856 2005-09-19  Bruno Haible  <bruno@clisp.org>
63857
63858         * doc/quote.texi: New file, extracted from gnulib.texi.
63859         * doc/ctime.texi: New file, extracted from gnulib.texi.
63860         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63861         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63862         * doc/gnulib.texi: Include them.
63863
63864 2005-09-18  Bruno Haible  <bruno@clisp.org>
63865
63866         Portability fix.
63867         * gnulib-tool (func_readlink): New function.
63868         (func_ln_if_changed): Use it.
63869
63870 2005-09-18  Bruno Haible  <bruno@clisp.org>
63871
63872         * gnulib-tool: Support --with-tests also with --import.
63873         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63874         (func_import): Use variables $testsbase and $inctests. Emit a
63875         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63876         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63877         SUBDIRS += $testsdir.
63878         (func_create_testdir): Update.
63879
63880 2005-09-18  Bruno Haible  <bruno@clisp.org>
63881
63882         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63883         instead of $dry_run.
63884         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63885         (func_ln_if_changed): Don't handle dry-run here.
63886         (func_import): In dry-run mode, detect more precisely which actions
63887         would be performed, and don't use "...ing" verbs.
63888
63889 2005-09-18  Bruno Haible  <bruno@clisp.org>
63890
63891         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63892         (func_import): Use join on two temporary files instead of three nested
63893         loops, in order to determine which files are new or old.
63894
63895 2005-09-18  Bruno Haible  <bruno@clisp.org>
63896
63897         * gnulib-tool (func_import): Comment out code that spits out the
63898         new files with --dry-run.
63899
63900 2005-09-18  Bruno Haible  <bruno@clisp.org>
63901
63902         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63903
63904 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63905
63906         * lib/stat-time.h: New file.
63907         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63908         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63909         in a different way.
63910         (timespec_cmp): New function.
63911         * lib/utimecmp.c: Include stat-time.h.
63912         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63913         members exist, not on the obsolescent ST_MTIM_NSEC.
63914         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63915
63916 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63919
63920 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         * MODULES.html.sh (File system functions): Add stat-time.
63923         * modules/stat-time: New file.
63924         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63925         is now done in a different way, by the stat-time module.
63926         * modules/utimecmp (Depends-on): Add stat-time.
63927
63928 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * m4/st_mtim.m4: Remove.  Superseded by...
63931         * m4/stat-time.m4: New file.
63932         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63933         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63934
63935 2005-09-15  Derek Price  <derek@ximbiot.com>
63936
63937         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63938
63939 2005-09-15  Derek Price  <derek@ximbiot.com>
63940
63941         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63942         * lib/regex_internal.c: Ditto, using this...
63943         (__GNUC_PREREQ): ...new macro.
63944         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63945         using...
63946         (__GNUC_PREREQ): ...this new macro.
63947
63948         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63949
63950 2005-09-15  Derek Price  <derek@ximbiot.com>
63951             Paul Eggert  <eggert@cs.ucla.edu>
63952
63953         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63954         changes, consolidating in...
63955         * lib/regex_internal.h: ...this file.
63956
63957 2005-09-13  Jim Meyering  <jim@meyering.net>
63958
63959         * lib/canon-host.c: Filter through gnu indent and reword comments
63960         slightly.
63961         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63962
63963 2005-09-13  Derek Price  <derek@ximbiot.com>
63964
63965         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63966         failure.
63967         Reported by Jim Meyering  <jim@meyering.net>.
63968
63969 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63970
63971         * lib/base64.c: Typo.
63972         (base64_encode): Put b64str in initialized data section.
63973
63974 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         Merge glibc and coreutils changes into gnulib, plus a few
63977         extra fixes.
63978         * lib/md5.c: Use #error rather than a string.
63979         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63980         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63981         (__attribute__): Define to empty for non recent-GCC.
63982         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63983         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63984         Renamed from their non-__ counterparts, with new macros replacing
63985         them if not _LIBC.  Add __THROW attribute.
63986         (rol): Remove.
63987         (struct md5_ctx): Align buffer if using GCC.
63988         * lib/sha1.h (struct sha1_ctx): Likewise.
63989         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63990         The old name was backwards.
63991         (NOTSWAP): Remove; not used.
63992         (rol): New macro, moved here from md5.h.
63993         (sha1_process_block): Remove a FIXME that doesn't make sense.
63994
63995 2005-09-12  Derek Price  <derek@ximbiot.com>
63996
63997         Return usable errors from canon-host.
63998         * lib/canon-host.h: New file.
63999         * lib/canon-host.c (canon_host): Wrap...
64000         (canon_host_r): ...this new function, which now relies exclusively on
64001         getaddrinfo.
64002         (ch_strerror): New function.
64003         (last_cherror): New global.
64004         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64005         interface.
64006         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64007         void *.
64008         (freeaddrinfo): Free ai->ai_canonname when set.
64009
64010 2005-09-12  Derek Price  <derek@ximbiot.com>
64011
64012         Make canon-host require getaddrinfo.
64013         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64014         AC_LIBSOURCE canon-host.h.  Call...
64015         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64016         gl_GETADDRINFO.
64017         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64018
64019 2005-09-12  Derek Price  <derek@ximbiot.com>
64020
64021         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64022         LGPL.
64023         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64024
64025 2005-09-12  Derek Price  <derek@ximbiot.com>
64026
64027         * lib/gai_strerror.c: Include config.h when available.  Include
64028         getaddrinfo.h before other headers to test interface.
64029         Reported by Larry Jones <lawrence.jones@ugs.com>.
64030
64031 2005-09-12  Derek Price  <derek@ximbiot.com>
64032             Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * modules/glob (Files): Add glob-libc.h.
64035
64036 2005-09-12  Derek Price  <derek@ximbiot.com>
64037             Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64040         glob_.h, glob-libc.h.
64041         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64042
64043 2005-09-12  Derek Price  <derek@ximbiot.com>
64044             Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64047         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64048         protecting things that should be done only in gnulib contexts.
64049         * lib/glob_.h: New file, containing only the glob things needed for
64050         gnulib.
64051         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64052         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64053         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64054         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64055         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64056         and to respect the namespace rules better.
64057
64058 2005-09-08  Simon Josefsson  <jas@extundo.com>
64059
64060         * modules/socklen: New file.
64061
64062 2005-09-08  Simon Josefsson  <jas@extundo.com>
64063
64064         * m4/socklen.m4: New file.
64065
64066 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64067
64068         * modules/utimens (Files): Add m4/utimbuf.m4, since
64069         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64070         Reported by Sergey Poznyakoff.
64071
64072 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64073
64074         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64075         definitions, since that's the preferred style in glibc.
64076         Fix a minor spacing issue, and update copyright notice to match
64077         glibc's.
64078
64079 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64080
64081         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64082
64083 2005-09-06  Simon Josefsson  <jas@extundo.com>
64084
64085         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64086         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64087
64088 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64089
64090         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64091         warning.
64092
64093 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * config/srclist.txt: Add glibc bug 1302.
64096
64097 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         Change bitset word type from unsigned int to unsigned long int,
64100         as this has better performance on typical 64-bit hosts.
64101         Port bitset code to hosts with unusual word sizes.
64102         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64103         (build_collating_symbol):
64104         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64105         argument is a bitset.  This is merely a style issue, but it makes
64106         it clearer that an entire array is expected.
64107         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64108         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64109         Port to the case where bitset_word is not the same as unsigned int.
64110         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64111         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64112         Likewise.
64113         * lib/regexec.c (check_dst_limits_calc_pos_1,
64114         check_subexp_matching_top):
64115         (build_trtable, group_nodes_into_DFAstates):
64116         Likewise.
64117         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64118         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64119         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64120         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64121         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64122         * lib/regcomp.c (optimize_subexps, lower_subexp):
64123         Work even if bitset_word has holes in its bitwise representation.
64124         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64125         * lib/regexec.c (check_dst_limits_calc_pos_1,
64126         check_subexp_matching_top):
64127         Likewise.
64128         * lib/regex_internal.c (re_string_reconstruct):
64129         Don't assume UCHAR_MAX == 255.
64130         * lib/regex_internal.h (bitset_set_all): Likewise.
64131         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64132         All uses changed.
64133         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64134         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64135         All uses changed.
64136         (BITSET_WORD_MAX): New macro.
64137         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64138         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64139         (bitset_empty, bitset_copy):
64140         Prefer sizeof (bitset) to multiplying it out ourselves.
64141         (bitset_not_merge): Remove; unused.
64142         (bitset_contain): Return bool, not unsigned int with one bit on.
64143         All callers changed.
64144         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64145         alignment than re_node_set; do this by defining a new internal
64146         type struct dests_alloc and using it to allocate memory.
64147
64148 2005-09-05  Bruno Haible  <bruno@clisp.org>
64149
64150         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64151         links.
64152
64153 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64154
64155         * modules/size_max (Makefile.am): Add size_max.h
64156
64157 2005-09-04  Derek Price  <derek@ximbiot.com>
64158
64159         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64160
64161 2005-09-03  Simon Josefsson  <jas@extundo.com>
64162
64163         * gnulib-tool: Fix typo.
64164
64165 2005-09-03  Simon Josefsson  <jas@extundo.com>
64166
64167         * config/srclist.txt: Add glibc bug 1293.
64168
64169 2005-09-03  Derek Price  <derek@ximbiot.com>
64170
64171         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64172         From Larry Jones <lawrence.jones@ugs.com>.
64173
64174 2005-09-02  Simon Josefsson  <jas@extundo.com>
64175
64176         * modules/socklen: New file.
64177
64178 2005-09-02  Simon Josefsson  <jas@extundo.com>
64179
64180         * modules/havelib: New module.
64181
64182         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64183         Use havelib.
64184
64185 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64186
64187         Check for arithmetic overflow when calculating sizes, to prevent
64188         some buffer-overflow issues.  These patches are conservative, in the
64189         sense that when I couldn't determine whether an overflow was possible,
64190         I inserted a run-time check.
64191         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64192         macros.
64193         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64194         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64195         (re_xnrealloc, re_x2nrealloc): New inline functions.
64196         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64197         parse_bracket_exp):
64198         (build_equiv_class, build_charclass): Check for arithmetic overflow
64199         in size expression calculations.
64200         * lib/regex_internal.c (re_string_realloc_buffers):
64201         (build_wcs_upper_buffer, re_node_set_add_intersect):
64202         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64203         (re_dfa_add_node, register_state): Likewise.
64204         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64205         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64206         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64207         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64208
64209 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64212         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64213
64214 2005-09-02  Bruno Haible  <bruno@clisp.org>
64215
64216         Support for lib vs. lib64 distinction on biarch platforms.
64217         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64218         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64219         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64220
64221 2005-09-02  Bruno Haible  <bruno@clisp.org>
64222
64223         * gnulib-tool (import): In the other first-use case, provide defaults
64224         as well.
64225
64226 2005-09-02  Bruno Haible  <bruno@clisp.org>
64227
64228         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64229         patches not yet found in the latest gettext release.
64230
64231 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64232
64233         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64234         to avoid a collision with bits/local_lim.h in glibc.
64235         All uses changed.  Problem reported by Dmitry V. Levin in
64236         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64237
64238         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64239         bugs in int versus size_t comparisons.
64240         (re_string_context_at): Fix bug where the code assumed that
64241         Idx is signed.
64242
64243         Use bool where appropriate.
64244         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64245         All callers changed.
64246         (calc_eclosure_iter): Likewise, for ROOT arg.
64247         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64248         (build_charclass_op): Likewise, for NON_MATCH arg.
64249         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64250         (re_string_construct_common): Likewise, for ICASE arg.
64251         * lib/regexec.c (re_search_2_stub, re_search_stub):
64252         Likewise, for RET_LEN arg.
64253         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64254         (set_regs): Likewise, for FL_BACKTRACK arg.
64255         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64256         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64257         (calc_eclosure_iter, parse_bracket_exp):
64258         Use bool for internal variables that are booleans.
64259         * lib/regexec.c (re_search_internal, check_matching,
64260         proceed_next_node):
64261         (set_regs, build_sifted_states, sift_states_bkref):
64262         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64263         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64264         (find_collation_sequence_value):
64265         Likewise.
64266         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64267         (re_node_set_compare):
64268         Return bool, not int. All callers changed.
64269         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64270         (build_trtable, check_node_accept): Likewise.
64271         * lib/regex_internal.h: Include stdbool.h.
64272
64273         Fix bugs uncovered when converting to bool.
64274         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64275         failure instead of charging ahead blindly.
64276         * lib/regex_internal.c (register_state): Likewise.
64277         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64278         for freeing internal storage.
64279         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64280         bitset pieces used as boolean, to avoid undefined behavior
64281         on hosts that do int overflow checking.
64282
64283 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64284
64285         * config/srclist.txt: Add glibc bugs 1285-1287.
64286
64287 2005-09-01  Jim Meyering  <jim@meyering.net>
64288
64289         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64290         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64291         Require gl_STAT_MACROS, too.
64292
64293 2005-09-01  Bruno Haible  <bruno@clisp.org>
64294
64295         * gnulib-tool (import): In the first-use case, provide defaults.
64296
64297 2005-09-01  Bruno Haible  <bruno@clisp.org>
64298
64299         * gnulib-tool (func_import): Remove the .tmp files.
64300
64301 2005-09-01  Bruno Haible  <bruno@clisp.org>
64302
64303         * gnulib-tool (func_import): Fix handling of symbolic links.
64304
64305 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64308         old glibc regex code mishandles strings longer than 2**31 bytes.
64309         This patch fixes this when the regex code is used in gnulib
64310         (i.e., outside glibc).
64311
64312         This patch should not affect the use of the regex code inside
64313         glibc.  No doubt this problem also needs to be handled for glibc
64314         as well, but the result will be an incompatible change to the
64315         glibc ABI, and the old ABI will have to be supported too.  That
64316         can be the the subject for another patch.
64317
64318         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64319         governing whether the rest of this patch is active.  By default,
64320         the macro is disabled and the patch has no effect.
64321         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64322         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64323         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64324         (re_match_2, re_set_registers): Use the new types.
64325         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64326         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64327         New macros.
64328         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64329         (re_string_context_at, bin_tree_t, re_dfastate_t):
64330         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64331         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64332         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64333         (re_string_char_size_at, re_string_wchar_at):
64334         (re_string_elem_size_at):
64335         Use the new types and macros to port to 64-bit hosts.
64336         Use unsigned types for internal values, so that the code
64337         mostly works even for arrays larger than SSIZE_MAX.
64338         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64339         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64340         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64341         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64342         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64343         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64344         (calc_inveclosure, parse_dup_op, build_range_exp):
64345         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64346         (fetch_number, create_token_tree, mark_opt_subexp):
64347         Likewise.
64348         * lib/regex_internal.c (re_string_construct_common,
64349         create_ci_newstate):
64350         (create_cd_newstate, re_string_allocate, re_string_construct):
64351         (re_string_realloc_buffers, build_wcs_upper_buffer):
64352         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64353         (re_string_reconstruct, re_string_peek_byte_case):
64354         (re_string_fetch_byte_case, re_string_context_at):
64355         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64356         (re_node_set_init_copy, re_node_set_add_intersect):
64357         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64358         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64359         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64360         (re_acquire_state, re_acquire_state_context, register_state):
64361         Likewise.
64362         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64363         search_cur_bkref_entry):
64364         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64365         (re_search_internal, re_search_2_stub, re_search_stub)
64366         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64367         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64368         (update_cur_sifted_state, check_dst_limits):
64369         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64370         (check_subexp_limits, sift_states_bkref, merge_state_array):
64371         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64372         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64373         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64374         (expand_bkref_cache, check_node_accept_bytes):
64375         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64376         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64377         (acquire_init_state_context, check_halt_node_context):
64378         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64379         (sift_states_backward, clean_state_log_if_needed):
64380         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64381         (find_recover_state, transit_state_sb, transit_state_mb):
64382         (transit_state_bkref, build_trtable, match_ctx_clean):
64383         Likewise.
64384         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64385         to work around an assumption that REG_MISSING is negative.
64386
64387         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64388         (seek_collating_symbol_entry) [defined _LIBC]:
64389         (lookup_collation_sequence_value) [defined _LIBC]:
64390         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64391         Use prototypes rather than old-style function definitions.
64392         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64393         (transit_state_sb) [0]:
64394         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64395
64396         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64397         rm_eo.
64398
64399         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64400         (optimize_subexps, lower_subexp):
64401         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64402         since the signed shift might overflow.  Use 1u<<31 instead.
64403         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64404         Likewise.
64405         * lib/regexec.c (check_dst_limits_calc_pos_1,
64406         check_subexp_matching_top): Likewise.
64407
64408         * lib/regcomp.c (optimize_subexps, lower_subexp):
64409         Use CHAR_BIT rather than 8, for clarity.
64410         * lib/regexec.c (check_dst_limits_calc_pos_1):
64411         (check_subexp_matching_top): Likewise.
64412         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64413         have to worry about portability issues when shifting it left.
64414         Remove no-longer-needed test for table_size > 0.
64415         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64416         in a word, as the resulting behavior is undefined.
64417         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64418         in one case, a <= should have been an <, and in another case the
64419         whole test was missing.
64420         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64421         the standard name CHAR_BIT.
64422         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64423         this is not true on one's complement and signed-magnitude hosts.
64424
64425         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64426         next_last_offset.
64427         (struct re_dfa_t): Remove unused member states_alloc.
64428         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64429
64430 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64431
64432         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64433         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64434         and large-file glibc and in 32-bit large-file Solaris.
64435
64436 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64439         lengths fit in regoff_t; this isn't true if regoff_t is the same
64440         width as size_t.
64441         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64442         (= START + RANGE) instead of RANGE.  This avoids overflow
64443         problems when regoff_t is the same width as size_t.
64444         All callers changed.
64445         (re_search_2_stub): Check for overflow when adding the
64446         sizes of the two strings.
64447         (re_search_stub): Check for overflow when adding START
64448         to RANGE; if it occurs, substitute the extreme value.
64449
64450 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64453
64454 2005-08-31  Jim Meyering  <jim@meyering.net>
64455
64456         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64457         a pointer-to-const.
64458         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64459         (register_state): Likewise.
64460         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64461         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64462         (group_nodes_into_DFAstates): Likewise.
64463
64464 2005-08-31  Jim Meyering  <jim@meyering.net>
64465
64466         * check-module: Add a FIXME comment.
64467
64468 2005-08-31  Eric Blake  <ebb9@byu.net>
64469
64470         * modules/unistd-safer (Files): Add unistd--.h.
64471         * modules/stdio-safer (Files): Add stdio--.h.
64472
64473 2005-08-31  Derek Price  <derek@ximbiot.com>
64474
64475         * lib/getdelim.c (getdelim): Return EOF on EOF.
64476         Reported by Larry Jones <lawrence.jones@ugs.com>.
64477
64478 2005-08-31  Bruno Haible  <bruno@clisp.org>
64479
64480         Avoid unnecessary diffs in the generated lib/Makefile.am.
64481         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64482         the generated files.
64483         (func_import): Don't set cmd.
64484
64485 2005-08-31  Bruno Haible  <bruno@clisp.org>
64486
64487         * lib/strstr.c: Include <stddef.h>, for NULL.
64488         * lib/strcasestr.c: Likewise.
64489         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64490
64491 2005-08-31  Bruno Haible  <bruno@clisp.org>
64492
64493         * gnulib-tool: New option --macro-prefix.
64494         (func_import): Use macro_prefix.
64495         (import): Handle option --macro-prefix.
64496
64497 2005-08-31  Bruno Haible  <bruno@clisp.org>
64498
64499         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64500         Also use new variables cached_lgpl, cached_libtool.
64501
64502 2005-08-31  Bruno Haible  <bruno@clisp.org>
64503
64504         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64505         always instantiating them.
64506
64507 2005-08-31  Bruno Haible  <bruno@clisp.org>
64508
64509         * gnulib-tool (func_import): Read the previous cached settings
64510         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64511         earlier added by gnulib but are now dropped. Warn when a gnulib file
64512         overwrites a non-gnulib file.
64513
64514 2005-08-31  Bruno Haible  <bruno@clisp.org>
64515
64516         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64517         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64518         projects that don't keep autogenerated files in CVS. Put into
64519         actioncmd only the specified modules, not the transitive closure.
64520
64521 2005-08-31  Bruno Haible  <bruno@clisp.org>
64522
64523         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64524         Create directories that shall be filled.
64525         (import): Don't look for gl_* macros in configure.ac. Recurse across
64526         all directories containing a gnulib-cache.m4 files, if meaningful.
64527
64528 2005-08-31  Bruno Haible  <bruno@clisp.org>
64529
64530         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64531         (import): Set seen_libtool when we see gl_LIBTOOL.
64532
64533 2005-08-31  Bruno Haible  <bruno@clisp.org>
64534
64535         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64536         declaration macro definitions from generated gnulib.m4.
64537
64538 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64539
64540         * lib/iconvme.h: Add prototype for iconv_alloc.
64541
64542 2005-08-29  Simon Josefsson  <jas@extundo.com>
64543
64544         * lib/iconvme.c: Fix errno.
64545
64546 2005-08-29  Bruno Haible  <bruno@clisp.org>
64547
64548         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64549         that it works when the directory contains spaces.
64550
64551 2005-08-29  Bruno Haible  <bruno@clisp.org>
64552
64553         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64554
64555 2005-08-29  Bruno Haible  <bruno@clisp.org>
64556
64557         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64558         Emit more advice.
64559
64560 2005-08-29  Bruno Haible  <bruno@clisp.org>
64561         and Stepan Kasal  <kasal@ucw.cz>
64562
64563         * check-module: If more parameters are given, check each of them
64564         separately; add more exceptions, as noted by Jim Meyering.
64565         (check_module): New procedure.
64566         (%exempt_header): Now contains all exceptions.
64567
64568 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64569
64570         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64571
64572 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64573
64574         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64575
64576 2005-08-28  Bruno Haible  <bruno@clisp.org>
64577
64578         * m4/gnulib-tool.m4: New file.
64579
64580 2005-08-27  Jim Meyering  <jim@meyering.net>
64581
64582         * modules/unistd-safer (Files): Add pipe-safer.c.
64583         * modules/fcntl-safer (Files): Add creat-safer.c.
64584
64585 2005-08-27  Jim Meyering  <jim@meyering.net>
64586
64587         * m4/stdlib-safer.m4: New file.  From coreutils.
64588         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64589         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64590         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64591         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64592         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64593
64594 2005-08-27  Jim Meyering  <jim@meyering.net>
64595
64596         * lib/fopen-safer.c: Merge minor changes from coreutils.
64597         * lib/dup-safer.c: Likewise.
64598         * lib/fd-safer.c: Likewise.
64599
64600         Merge from coreutils.
64601         * lib/stdio--.h: New file.
64602         * lib/stdlib--.h: New file.
64603         * lib/mkstemp-safer.c: New file.
64604
64605         GNU tar needs these.
64606         * lib/pipe-safer.c: New file.
64607         * lib/creat-safer.c: New file.
64608         * lib/fcntl--.h (creat): Define to creat_safer.
64609         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64610         * lib/unistd--.h (pipe): Define to pipe_safer.
64611         * lib/unistd-safer.h: Declare pipe_safer.
64612
64613 2005-08-26  Simon Josefsson  <jas@extundo.com>
64614
64615         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64616         Haible <bruno@clisp.org>.
64617
64618 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * lib/regex_internal.h: Remove all references to
64621         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64622         or better.
64623         (bitset_not, bitset_merge, bitset_not_merge):
64624         (bitset_mask, re_string_allocate, re_string_construct):
64625         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64626         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64627         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64628         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64629         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64630         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64631         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64632         (re_acquire_state_context):
64633         Remove unnecessary forward decls.
64634         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64635         Put __attribute at function definition,
64636         now that the function decl has been removed.
64637         * lib/regex_internal.c (re_string_peek_byte_case):
64638         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64639         Likewise.
64640
64641 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64642
64643         * m4/regex.m4: Add AC_PREREQ(2.50).
64644         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64645
64646 2005-08-25  Simon Josefsson  <jas@extundo.com>
64647
64648         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64649         __fsetlocking.
64650
64651 2005-08-25  Simon Josefsson  <jas@extundo.com>
64652
64653         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64654         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64655         GLIBC specific code.
64656
64657 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64658
64659         Make regex safe for g++.  This fixes one real bug (an "err"
64660         that should have been "*err").  g++ problem reported by
64661         Sam Steingold.
64662         * lib/regex_internal.h (re_calloc): New macro, consistent with
64663         re_malloc etc.  All callers of calloc changed to use re_calloc.
64664         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64665         not int.  All callers changed.
64666         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64667         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64668         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64669         (find_recover_state): Change "err" to "*err"; this fixes what
64670         appears to be a real bug.
64671         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64672         versus int.
64673
64674 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64675
64676         * modules/regex (Depends-on): Add malloc, since the code
64677         assumes that !malloc(0) means failure.
64678
64679 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64680
64681         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64682
64683         alloca modernization/simplification for regex.
64684         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64685         needs to be at the start of the file, and can be moved into
64686         regex_internal.h and simplified.
64687         * lib/regex_internal.h: Include <alloca.h>.
64688         (__libc_use_alloca) [!defined _LIBC]: New macro.
64689         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64690         now works outside glibc.
64691
64692 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64693
64694         * config/srclist.txt: Add glibc bugs 1241, 1245.
64695
64696 2005-08-25  Jim Meyering  <jim@meyering.net>
64697
64698         * lib/open-safer.c: Include <config.h>.
64699         Otherwise, we'd lose LARGEFILE support in any file using
64700         e.g. "fcntl--.h"
64701
64702 2005-08-25  Bruno Haible  <bruno@clisp.org>
64703
64704         * m4/minmax.m4: Require autoconf 2.52.
64705         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64706         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64707         alternatives of translit over the alphabet.
64708         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64709
64710 2005-08-24  Simon Josefsson  <jas@extundo.com>
64711
64712         * tests/test-getpass.c: New file.
64713
64714 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64717         for GNU regex features.
64718
64719 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64722         * lib/regex.h (regerror): Likewise.
64723
64724         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64725         requires this.  (The code never needed it.)
64726
64727         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64728         All uses of recently-renamed identifiers changed to use the new,
64729         POSIX-compliant names.  The code will build and run just fine
64730         without these changes, but it's better to eat our own dog food
64731         and use the standard-conforming names.
64732
64733         * lib/regex.h: Fix a multitude of POSIX name space violations.
64734         These changes have an effect only for programs that define
64735         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64736         do not change anything for programs compiled in the normal way.
64737         Also, there is no effect on the ABI.
64738
64739         (_REGEX_SOURCE): New macro.
64740         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64741         defined and _GNU_SOURCE is not; this fixes a name space violation.
64742
64743         Rename the following macros to obey POSIX requirements.
64744         The old names are still visible as macros if _REGEX_SOURCE is defined.
64745         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64746         RE_BACKSLASH_ESCAPE_IN_LISTS.
64747         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64748         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64749         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64750         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64751         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64752         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64753         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64754         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64755         (REG_INTERVALS): renamed from RE_INTERVALS.
64756         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64757         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64758         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64759         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64760         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64761         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64762         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64763         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64764         RE_UNMATCHED_RIGHT_PAREN_ORD.
64765         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64766         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64767         (REG_DEBUG): renamed from RE_DEBUG.
64768         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64769         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64770         unusual, since we can't clash with the POSIX REG_ICASE.
64771         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64772         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64773         (REG_NO_SUB): renamed from RE_NO_SUB.
64774         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64775         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64776         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64777         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64778         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64779         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64780         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64781         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64782         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64783         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64784         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64785         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64786         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64787         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64788         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64789         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64790         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64791         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64792         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64793         (REG_FIXED): Renamed from REGS_FIXED.
64794         (REG_NREGS): Renamed from RE_NREGS.
64795
64796         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64797         of other REG_* macros, since POSIX says the user is allowed to
64798         #undef these macros selectively.
64799
64800         (reg_errcode_t): Update comment stating what other tables need
64801         to be consistent.
64802
64803         Rename the following enum values to obey POSIX requirements.
64804         The old names are still visible as macros.
64805         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64806         is not defined, since GNU is supposed to be a superset of POSIX as
64807         much as possible, and since we want reg_errcode_t to be a signed
64808         type for implementation consistency.
64809         (_REG_NOERROR): Renamed from REG_NOERROR.
64810         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64811         (_REG_BADPAT): Renamed from REG_BADPAT.
64812         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64813         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64814         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64815         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64816         (_REG_EBRACK): Renamed from REG_EBRACK.
64817         (_REG_EPAREN): Renamed from REG_EPAREN.
64818         (_REG_EBRACE): Renamed from REG_EBRACE.
64819         (_REG_BADBR): Renamed from REG_BADBR.
64820         (_REG_ERANGE): Renamed from REG_ERANGE.
64821         (_REG_ESPACE): Renamed from REG_ESPACE.
64822         (_REG_BADRPT): Renamed from REG_BADRPT.
64823         (_REG_EEND): Renamed from REG_EEND.
64824         (_REG_ESIZE): Renamed from REG_ESIZE.
64825         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64826         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64827         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64828         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64829         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64830
64831         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64832         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64833         changed.  But support the old name if the new one is not defined
64834         and if _REGEX_SOURCE.
64835
64836         Change the following member names in struct re_pattern_buffer.
64837         The old names are still supported if !_REGEX_SOURCE.
64838         The new names are always supported, regardless of _REGEX_SOURCE.
64839         (re_buffer): Renamed from buffer.
64840         (re_allocated): Renamed from allocated.
64841         (re_used): Renamed from used.
64842         (re_syntax): Renamed from syntax.
64843         (re_fastmap): Renamed from fastmap.
64844         (re_translate): Renamed from translate.
64845         (re_can_be_null): Renamed from can_be_null.
64846         (re_regs_allocated): Renamed from regs_allocated.
64847         (re_fastmap_accurate): Renamed from fastmap_accurate.
64848         (re_no_sub): Renamed from no_sub.
64849         (re_not_bol): Renamed from not_bol.
64850         (re_not_eol): Renamed from not_eol.
64851         (re_newline_anchor): Renamed from newline_anchor.
64852
64853         Change the following member names in struct re_registers.
64854         The old names are still supported if !_REGEX_SOURCE.
64855         The new names are always supported, regardless of _REGEX_SOURCE.
64856         (rm_num_regs): Renamed from num_regs.
64857         (rm_start): Renamed from start.
64858         (rm_end): Renamed from end.
64859
64860         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64861         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64862         Prepend __ to parameter names.
64863
64864         Undo yesterday's changes.
64865
64866 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64869         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64870         lib/regex.c.
64871
64872 2005-08-24  Jim Meyering  <jim@meyering.net>
64873
64874         Sync from coreutils.
64875         * m4/fcntl-safer.m4: New file.
64876
64877         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64878         and object files for this module.
64879
64880 2005-08-24  Jim Meyering  <jim@meyering.net>
64881
64882         Sync from coreutils.
64883         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64884
64885 2005-08-24  Jim Meyering  <jim@meyering.net>
64886
64887         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64888         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64889
64890 2005-08-24  Jim Meyering  <jim@meyering.net>
64891
64892         * modules/fcntl-safer: New module.
64893         * modules/fts (Depends-on): Add fcntl-safer.
64894         * MODULES.html.sh (File descriptor based Input/Output):
64895         Add fcntl-safer.
64896
64897 2005-08-24  Bruno Haible  <bruno@clisp.org>
64898
64899         Support for unit test modules.
64900         * modules/README: Mention tests modules.
64901         * modules/TEMPLATE-TESTS: New file.
64902         * gnulib-tool: New options --extract-tests-module, --with-tests and
64903         --tests-base (unused for the moment).
64904         (testsbase, inctests): New variables.
64905         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64906         (func_verify_module): Exclude TEMPLATE-TESTS.
64907         (func_verify_nontests_module, func_verify_tests_module): New functions.
64908         (func_get_dependencies): Add implicit dependency for tests modules.
64909         (func_get_tests_module): New function.
64910         (func_modules_transitive_closure): When --with-tests was specified,
64911         include the unit tests as well, unless explicitly avoided.
64912         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64913         (func_emit_tests_Makefile_am): New function.
64914         (func_create_testdir): When --with-tests was specified, emit a
64915         tests/ directory.
64916         * MODULES.html.sh (Future developments): Update.
64917
64918 2005-08-24  Bruno Haible  <bruno@clisp.org>
64919
64920         * modules/tls-tests: New file.
64921         * tests/test-tls.c: New file, from GNU gettext.
64922
64923 2005-08-24  Bruno Haible  <bruno@clisp.org>
64924
64925         * modules/lock-tests: New file.
64926         * tests/test-lock.c: New file, from GNU gettext.
64927
64928 2005-08-24  Bruno Haible  <bruno@clisp.org>
64929
64930         * lib/lock.h: Add multiple inclusion guard.
64931         * lib/tls.h: Add multiple inclusion guard.
64932
64933 2005-08-24  Bruno Haible  <bruno@clisp.org>
64934
64935         * gnulib-tool: Add support for the --aux-dir option to
64936         --create-testdir, --create-megatestdir, --test, --megatest.
64937         (func_create_testdir, func_create_megatestdir): Optionally emit a
64938         AC_CONFIG_AUX_DIR directive.
64939         (create-testdir, create-megatestdir, test, megatest): Provide a
64940         default value for $auxdir.
64941
64942 2005-08-24  Bruno Haible  <bruno@clisp.org>
64943
64944         * gnulib-tool (import): Use compound statement instead of subshell
64945         where possible.
64946
64947 2005-08-24  Bruno Haible  <bruno@clisp.org>
64948
64949         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64950
64951 2005-08-24  Bruno Haible  <bruno@clisp.org>
64952
64953         * gnulib-tool (func_version): Update.
64954
64955 2005-08-24  Bruno Haible  <bruno@clisp.org>
64956
64957         * gnulib-tool (func_import, func_create_testdir,
64958         func_create_megatestdir): Quote all autoconf macro arguments.
64959
64960 2005-08-24  Bruno Haible  <bruno@clisp.org>
64961
64962         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64963         option --force, because --force causes the aclocal.m4 of each
64964         subdirectory to be newer than the corresponding config.h.in.
64965
64966 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64967
64968         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64969         All contents moved to gl_REGEX.
64970         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64971         assume that it does.
64972
64973 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/regex.h (REG_NOSYS)
64976         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64977         Define, since POSIX requires it as of 2001.
64978         (_REG_ENOSYS)
64979         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64980         New private symbol, used to keep the enum signed in all cases.
64981         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64982         Youngman in
64983         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64984
64985         * lib/regex_internal.c (re_string_skip_chars, register_state):
64986         (calc_state_hash):
64987         Remove forward decls; no longer needed now that we use prototypes.
64988         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64989         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64990         (clean_state_log_if_needed): Likewise.
64991
64992 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64993
64994         * config/srclist.txt: Add glibc bugs 1231-1233.
64995
64996 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         Fix problems reported by Sam Steingold in
64999         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65000         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65001         assumed that reg_errcode_t is a signed type, which is not
65002         necessarily true if _XOPEN_SOURCE is not defined.
65003         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65004         since some compilers warn about it otherwise.
65005
65006 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65007
65008         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65009         (init_word_char, create_initial_state, duplicate_node_closure):
65010         (fetch_token, peek_token_bracket, build_range_exp):
65011         (build_collating_symbol): Remove forward decls; no longer needed
65012         now that we use prototypes.
65013
65014         * lib/regcomp.c:
65015         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65016         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65017         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65018         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65019         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65020         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65021         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65022         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65023         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65024         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65025         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65026         (build_charclass, build_charclass_op, fetch_number, create_tree):
65027         (create_token_tree, mark_opt_subexp, duplicate_tree):
65028         Use prototypes rather than old-style definitions.
65029
65030         * lib/regex_internal.c:
65031         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65032         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65033         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65034         (re_string_reconstruct, re_string_peek_byte_case):
65035         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65036         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65037         (re_node_set_init_copy, re_node_set_add_intersect):
65038         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65039         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65040         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65041         (re_acquire_state, re_acquire_state_context, register_state):
65042         (create_ci_newstate, create_cd_newstate, free_state):
65043         Likewise.
65044         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65045         re_search_2):
65046         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65047         (re_search_internal, prune_impossible_nodes):
65048         (acquire_init_state_context, check_matching, static):
65049         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65050         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65051         (update_regs, sift_states_backward, build_sifted_states):
65052         (clean_state_log_if_needed, merge_state_array):
65053         (update_cur_sifted_state, add_epsilon_src_nodes):
65054         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65055         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65056         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65057         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65058         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65059         (check_arrival, check_arrival_add_next_nodes):
65060         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65061         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65062         (check_node_accept_bytes, check_node_accept, extend_buffers):
65063         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65064         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65065         (sift_ctx_init):
65066         Likewise.
65067
65068         * lib/regex_internal.h:
65069         (re_string_allocate, re_string_construct, re_string_reconstruct):
65070         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65071         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65072         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65073         (re_string_context_at, re_string_peek_byte_case):
65074         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65075         is defined, since we now use prototypes always.
65076
65077         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65078         C89 or better.  All uses removed.
65079
65080 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65081
65082         * config/srclist.txt: Add glibc bugs 1220-1227.
65083
65084 2005-08-20  Jim Meyering  <jim@meyering.net>
65085
65086         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65087         of unused local, dfa.
65088
65089 2005-08-20  Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65092
65093 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65094
65095         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65096         (re_node_set_insert_last, re_dfa_add_node):
65097         Rename local variables to avoid GCC shadowing warnings.
65098
65099 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65100
65101         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65102         [defined lint]: Suppress bogus uninitialized-variable warnings.
65103
65104         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65105         and let the caller return REG_ESPACE if out of space.  This
65106         removes an uninitialied-variable warning with GCC 4.0.1, and also
65107         avoids taking the address of a local variable.  All callers
65108         changed.
65109
65110 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65113         $LIBCSRC/posix/regexec.c.
65114         Add glibc bug 1217 for regcomp.c.
65115
65116 2005-08-19  Jim Meyering  <jim@meyering.net>
65117
65118         * lib/regexec.c (proceed_next_node): Redo local variables to
65119         avoid GCC shadowing warnings.
65120
65121 2005-08-18  Bruno Haible  <bruno@clisp.org>
65122
65123         * lib/strstr.c (strstr): Fix return value in multibyte case.
65124         * lib/strcasestr.c (strcasestr): Likewise.
65125
65126 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65127
65128         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65129
65130 2005-08-17  Jim Meyering  <jim@meyering.net>
65131
65132         Make the %s format (seconds since the epoch) work for a negative
65133         number and when used with a zero-padded field width, e.g. %015s.
65134
65135         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65136         label so that it precedes the code to set `digits'.  Otherwise,
65137         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65138         print `00-22'.  Now, it prints `-0022', as it should.
65139
65140 2005-08-17  Bruno Haible  <bruno@clisp.org>
65141
65142         * modules/strstr (Files): Add m4/mbrtowc.m4.
65143         (Depends-on): Add mbuiter.
65144
65145 2005-08-17  Bruno Haible  <bruno@clisp.org>
65146
65147         * modules/strcasestr: New file.
65148         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65149         strcasestr.
65150
65151 2005-08-17  Bruno Haible  <bruno@clisp.org>
65152
65153         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65154
65155 2005-08-17  Bruno Haible  <bruno@clisp.org>
65156
65157         * modules/mbuiter: New file.
65158         * MODULES.html.sh (Extended multibyte and wide character utilities):
65159         Add mbuiter.
65160
65161 2005-08-17  Bruno Haible  <bruno@clisp.org>
65162
65163         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65164         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65165
65166 2005-08-17  Bruno Haible  <bruno@clisp.org>
65167
65168         * m4/strcasestr.m4: New file.
65169
65170 2005-08-17  Bruno Haible  <bruno@clisp.org>
65171
65172         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65173         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65174
65175 2005-08-17  Bruno Haible  <bruno@clisp.org>
65176
65177         * lib/strcasestr.h: New file.
65178         * lib/strcasestr.c: New file.
65179
65180 2005-08-17  Bruno Haible  <bruno@clisp.org>
65181
65182         * lib/strcasecmp.c: Use mbuiter.h.
65183
65184 2005-08-17  Bruno Haible  <bruno@clisp.org>
65185
65186         * lib/mbuiter.h: New file.
65187
65188 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65191         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65192         and gl_GETOPT are both invoked via different paths (as happens
65193         with GNU tar CVS because it uses both argp and getopt), the former
65194         wins.
65195
65196 2005-08-16  Bruno Haible  <bruno@clisp.org>
65197
65198         * modules/tls: New file.
65199         * MODULES.html.sh (Multithreading): Add tls.
65200
65201 2005-08-16  Bruno Haible  <bruno@clisp.org>
65202
65203         * modules/strnlen1: New file.
65204         * MODULES.html.sh (String handling): Add strnlen1.
65205
65206 2005-08-16  Bruno Haible  <bruno@clisp.org>
65207
65208         * modules/strcase (Files): Add m4/mbrtowc.m4.
65209         (Depends-on): Add strnlen1, mbchar.
65210
65211 2005-08-16  Bruno Haible  <bruno@clisp.org>
65212
65213         * modules/mbiter: New file.
65214         * MODULES.html.sh (Extended multibyte and wide character utilities):
65215         Add mbiter.
65216
65217 2005-08-16  Bruno Haible  <bruno@clisp.org>
65218
65219         * modules/mbfile: New file.
65220         * MODULES.html.sh (Extended multibyte and wide character utilities):
65221         Add mbfile.
65222
65223 2005-08-16  Bruno Haible  <bruno@clisp.org>
65224
65225         * modules/mbchar: New file.
65226         * MODULES.html.sh (Extended multibyte and wide character utilities):
65227         New section.
65228
65229 2005-08-16  Bruno Haible  <bruno@clisp.org>
65230
65231         * m4/tls.m4: New file, from GNU gettext.
65232
65233 2005-08-16  Bruno Haible  <bruno@clisp.org>
65234
65235         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65236         always.
65237         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65238
65239 2005-08-16  Bruno Haible  <bruno@clisp.org>
65240
65241         * m4/mbiter.m4: New file.
65242
65243 2005-08-16  Bruno Haible  <bruno@clisp.org>
65244
65245         * m4/mbfile.m4: New file.
65246
65247 2005-08-16  Bruno Haible  <bruno@clisp.org>
65248
65249         * m4/mbchar.m4: New file.
65250
65251 2005-08-16  Bruno Haible  <bruno@clisp.org>
65252
65253         * lib/tls.h: New file, from GNU gettext.
65254         * lib/tls.c: New file, from GNU gettext.
65255
65256 2005-08-16  Bruno Haible  <bruno@clisp.org>
65257
65258         * lib/strnlen1.h: New file.
65259         * lib/strnlen1.c: New file.
65260
65261 2005-08-16  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65264         (mbi_init): Update.
65265         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65266         NUL byte, not after it.
65267
65268 2005-08-16  Bruno Haible  <bruno@clisp.org>
65269
65270         * lib/strcase.h (strcasecmp): Add note in comments.
65271         * lib/strncasecmp.c: Use code from strcasecmp.c.
65272         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65273         (strcasecmp): Work correctly in multibyte locales.
65274
65275 2005-08-16  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/mbiter.h: New file.
65278
65279 2005-08-16  Bruno Haible  <bruno@clisp.org>
65280
65281         * lib/mbfile.h: New file.
65282
65283 2005-08-16  Bruno Haible  <bruno@clisp.org>
65284
65285         * lib/mbchar.h: New file.
65286         * lib/mbchar.c: New file.
65287
65288 2005-08-16  Bruno Haible  <bruno@clisp.org>
65289
65290         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65291         the valid ones. Makes the comparison operations transitive:
65292         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65293         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65294
65295 2005-08-15  Simon Josefsson  <jas@extundo.com>
65296
65297         * modules/ssize_t (License): Change to 'unlimited'.
65298
65299         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65300
65301 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65302
65303         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65304         Add comments for each pending glibc patch.
65305
65306 2005-08-15  Bruno Haible  <bruno@clisp.org>
65307
65308         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65309         __cplusplus is defined.
65310
65311 2005-08-14  Jim Meyering  <jim@meyering.net>
65312
65313         Sync from coreutils.
65314
65315         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65316         Use the hash-table-based cycle-detection code not just when
65317         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65318         Reported by James Youngman in
65319         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65320         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65321         FTS_TIGHT_CYCLE_CHECK.
65322         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65323         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65324         once again.
65325         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65326         * lib/fts.c (fd_safer): Remove decl.
65327         Include fcntl--.h rather than unistd-safer.h
65328         (fts_safe_changedir): Don't call fd_safer; no longer needed
65329         now that we include fcntl--.h.
65330
65331 2005-08-12  Simon Josefsson  <jas@extundo.com>
65332
65333         * modules/getndelim2: Use ssize_t module.
65334         * modules/getnline: Likewise.
65335         * modules/safe-read: Likewise.
65336         * modules/xreadlink: Likewise.
65337
65338         * modules/ssize_t: New file.
65339
65340 2005-08-12  Simon Josefsson  <jas@extundo.com>
65341
65342         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65343
65344 2005-08-12  Simon Josefsson  <jas@extundo.com>
65345
65346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65347         ssize_t.
65348
65349 2005-08-12  Simon Josefsson  <jas@extundo.com>
65350
65351         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65352         readline, getdelim and check_version.
65353         (Support for systems lacking ISO C 99: Sizes of integer types):
65354         Add size_max.
65355
65356 2005-08-12  Bruno Haible  <bruno@clisp.org>
65357
65358         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65359
65360 2005-08-11  Simon Josefsson  <jas@extundo.com>
65361
65362         * modules/readline: New file.
65363
65364         * modules/strnlen (Files): Add strnlen.h.
65365
65366 2005-08-11  Simon Josefsson  <jas@extundo.com>
65367
65368         * m4/readline.m4: New file.
65369
65370 2005-08-11  Simon Josefsson  <jas@extundo.com>
65371
65372         * lib/readline.h, readline.c: New file.
65373
65374 2005-08-11  Simon Josefsson  <jas@extundo.com>
65375
65376         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65377         gl_AVOID.
65378
65379 2005-08-11  Bruno Haible  <bruno@clisp.org>
65380
65381         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65382
65383 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65384
65385         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65386
65387 2005-08-10  Simon Josefsson  <jas@extundo.com>
65388
65389         * tests/test-iconvme.c: New file.
65390
65391 2005-08-10  Simon Josefsson  <jas@extundo.com>
65392
65393         * m4/strnlen.m4: New file.
65394
65395         * m4/strndup.m4: Don't check for strnlen declaration, done in
65396         strnlen.m4.
65397
65398 2005-08-10  Simon Josefsson  <jas@extundo.com>
65399
65400         * lib/strndup.c: Use strnlen.h.
65401
65402         * lib/strnlen.h: New file.
65403
65404 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65405
65406         * README: Typos.
65407
65408 2005-08-02  Simon Josefsson  <jas@extundo.com>
65409
65410         * modules/readline: New file.
65411
65412 2005-08-02  Simon Josefsson  <jas@extundo.com>
65413
65414         * modules/getdelim: New file.
65415
65416         * modules/getline: Rewrite, don't use getndelim2.
65417
65418 2005-08-02  Simon Josefsson  <jas@extundo.com>
65419
65420         * m4/getline.m4: Separate out getdelim stuff into separate module.
65421
65422         * m4/getdelim.m4: New file.
65423
65424 2005-08-02  Simon Josefsson  <jas@extundo.com>
65425
65426         * lib/getline.h, getline.c: Rewrite.
65427
65428         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65429
65430 2005-07-31  Bruno Haible  <bruno@clisp.org>
65431
65432         * lib/lock.h (gl_lock_initializer): New macro.
65433         (gl_lock_define_initialized): Use it.
65434         (gl_rwlock_initializer): New macro.
65435         (gl_rwlock_define_initialized): Use it.
65436         (gl_recursive_lock_initializer): New macro.
65437         (gl_recursive_lock_define_initialized): Use it.
65438
65439 2005-07-30  Karl Berry  <karl@gnu.org>
65440
65441         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65442         Report from Ben Pfaff, regarding getopt.
65443
65444 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65445
65446         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65447         normal way.
65448         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65449         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65450         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65451         (gl_GETOPT): Use the new macros.  Most of the implementation
65452         is moved to the new macros.  This is for programs like Emacs
65453         that don't want all the functionality of gl_GETOPT.
65454
65455 2005-07-26  Bruno Haible  <bruno@clisp.org>
65456
65457         * m4/lock.m4: Update from GNU gettext.
65458
65459 2005-07-26  Bruno Haible  <bruno@clisp.org>
65460
65461         * lib/lock.h: Update from GNU gettext.
65462         * lib/lock.c: Update from GNU gettext.
65463
65464 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65467         obsolescent AC_TRY_RUN.  Include the default includes files, for
65468         'exit'.
65469
65470 2005-07-24  Bruno Haible  <bruno@clisp.org>
65471
65472         * modules/visibility: New file.
65473         * MODULES.html.sh (Misc): Add visibility.
65474
65475 2005-07-24  Bruno Haible  <bruno@clisp.org>
65476
65477         * m4/visibility.m4: New file.
65478
65479 2005-07-24  Bruno Haible  <bruno@clisp.org>
65480
65481         * doc/visibility.texi: New file.
65482
65483 2005-07-22  Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65486         $(ALLOCA_H), redundant through BUILT_SOURCES.
65487         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65488         redundant through BUILT_SOURCES.
65489         * modules/byteswap (Makefile.am): Remove explicit dependency on
65490         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65491         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65492         $(FNMATCH_H), redundant through BUILT_SOURCES.
65493         * modules/getopt (Makefile.am): Remove explicit dependency on
65494         $(GETOPT_H), redundant through BUILT_SOURCES.
65495         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65496         redundant through BUILT_SOURCES.
65497         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65498         redundant through BUILT_SOURCES.
65499         * modules/stdbool (Makefile.am): Remove explicit dependency on
65500         $(STDBOOL_H), redundant through BUILT_SOURCES.
65501         * modules/stdint (Makefile.am): Remove explicit dependency on
65502         $(STDINT_H), redundant through BUILT_SOURCES.
65503         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65504         Remove explicit dependency on $(SYSEXITS_H).
65505         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65506
65507 2005-07-18  Simon Josefsson  <jas@extundo.com>
65508
65509         * lib/check-version.c (check_version): Accept identical versions too.
65510
65511 2005-07-18  Bruno Haible  <bruno@clisp.org>
65512
65513         * modules/lock: New file.
65514         * MODULES.html.sh (Multithreading): New section.
65515
65516 2005-07-18  Bruno Haible  <bruno@clisp.org>
65517
65518         * m4/lock.m4: New file, from GNU gettext.
65519
65520 2005-07-18  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/lock.h: New file, from GNU gettext.
65523         * lib/lock.c: New file, from GNU gettext.
65524
65525 2005-07-18  Bruno Haible  <bruno@clisp.org>
65526
65527         * lib/lock.h (gl_once_t): New type.
65528         (gl_once_define, gl_once): New macros.
65529         * lib/lock.c (fresh_once): New variable.
65530         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65531         functions.
65532
65533 2005-07-16  Simon Josefsson  <jas@extundo.com>
65534
65535         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65536         workaround, suggested by Bruno.
65537
65538 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65539
65540         * modules/xalloc (Depends-on): Add xalloc-die.
65541         * modules/xvasprintf (Depends-on): Add xalloc-die.
65542
65543 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65544
65545         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65546         with a minor change.
65547
65548 2005-07-15  Bruno Haible  <bruno@clisp.org>
65549
65550         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65551         When using lib/poll.c, define poll as rpl_poll.
65552
65553 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * modules/argp (Depends-on): Remove unlocked-io.
65556
65557 2005-07-14  Derek Price  <derek@ximbiot.com>
65558
65559         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65560         for glob symlink bug.
65561
65562 2005-07-14  Bruno Haible  <bruno@clisp.org>
65563
65564         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65565         Instead, test for *_unlocked function declarations directly.
65566
65567 2005-07-11  Simon Josefsson  <jas@extundo.com>
65568
65569         * modules/size_max: New file.
65570
65571         * modules/xsize: Depend on size_max module for size_max.m4.
65572
65573 2005-07-11  Simon Josefsson  <jas@extundo.com>
65574
65575         * lib/size_max.h: New file.
65576
65577 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65580         copyright symbol and the year.
65581         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65582         (version_etc_va): Use parameterized copyright notice.
65583         Reword to conform to the current GNU coding standards.
65584
65585 2005-07-11  Karl Berry  <karl@gnu.org>
65586
65587         * doc/gnulib.texi (Quoting): new node.
65588         (Initial import): more info, from Patrice.
65589
65590 2005-07-11  Bruno Haible  <bruno@clisp.org>
65591
65592         * gnulib-tool (func_usage): Document option --avoid.
65593         (Command line options): Handle --avoid.
65594         (func_acceptable): New function.
65595         (func_modules_transitive_closure): Use it.
65596
65597 2005-07-11  Bruno Haible  <bruno@clisp.org>
65598
65599         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65600         Reported by Jim Meyering.
65601
65602 2005-07-10  Bruno Haible  <bruno@clisp.org>
65603
65604         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65605         Needed when size_t is smaller than 'unsigned int'.
65606         Reported by Paul Eggert.
65607
65608 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65609
65610         * modules/argp (Depends-on): Add unlocked-io
65611
65612 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65613
65614         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65615         block of defines.
65616
65617 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65618
65619         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65620         fix now.
65621
65622 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65623         and Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65626         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65627
65628 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * modules/regex (Files): Add lib/regex_internal.c,
65631         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65632         (Depends-on): Add extensions.
65633         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65634
65635 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65636
65637         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65638         pathconf.
65639         * m4/same.m4 (gl_SAME): Likewise.
65640         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65641
65642         * m4/regex.m4: Adjust to new libc regex implementation.
65643         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65644         all the .c and .h parts of (the new) regex.
65645         Quote the m4 stuff better.
65646         Check for RE_ICASE bug of old gnulib.
65647         Check for REG_STARTEND of recent libc.
65648         Rename local variables from jm_* to gl_*.
65649         Quote operand of "test -f".
65650         Say "recent enough" version of libc, not "version 2".
65651         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65652         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65653         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65654         Remove check for btowc, isascii.
65655         Require AM_LANGINFO_CODESET.
65656
65657 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * lib/regex.c, regex.h: Sync from libc.
65660         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65661         * lib/regexec.c:
65662         New files, synced from libc, except that regex_internal.h
65663         currently has a small porting fix.
65664
65665 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65668         regex_internal.c, regexec.c.
65669         Add regex_internal.h too, but as a comment, since the libc version
65670         is currently broken in gnulib mode.
65671
65672 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         Support programs like Emacs that use gnulib but not gettext.
65675         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65676         * modules/gettext-h: New file.
65677         * modules/gettext (Files): Remove lib/gettext.h.
65678         (Depends-on): Add gettext-h.
65679         (Makefile.am): Remove lib_SOURCES.
65680         * modules/argmatch, modules/c-stack, modules/closeout:
65681         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65682         * modules/execute, modules/file-type, modules/getaddrinfo:
65683         * modules/getopt, modules/human, modules/javacomp:
65684         * modules/javaexec, modules/mkdir-p, modules/obstack:
65685         * modules/openat, modules/pagealign_alloc, modules/pipe:
65686         * modules/quotearg, modules/regex, modules/rpmatch:
65687         * modules/unicodeio, modules/userspec, modules/version-etc:
65688         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65689         * modules/xsetenv:
65690         Depend on gettext-h, not gettext.
65691
65692 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * gnulib-tool (func_import): Add support for 'public domain' license.
65695         * modules/alloca, modules/atexit, modules/memmove:
65696         Now public domain, not GPL.
65697         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65698         * modules/realloc, modules/strerror, modules/strtod:
65699         Now LGPL, not GPL.
65700
65701 2005-07-05  Bruno Haible  <bruno@clisp.org>
65702
65703         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65704         autoconf CVS. Needed for mingw.
65705
65706 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65707
65708         Remove the dependency of the strftime module on the tzset module.
65709         * modules/strftime (Depends-on): Remove dependency on tzset.
65710
65711 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65712
65713         Remove the dependency of the strftime module on the tzset module.
65714         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65715         gl_FUNC_TZSET_CLOBBER.
65716
65717 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65718
65719         Remove the dependency of the strftime module on the tzset module.
65720         * lib/strftime.c (my_strftime)
65721         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65722         Copy the input structure, to work around some of the bug with
65723         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65724         Solaris releases, you should also use the tzset module, but we won't
65725         require it as a dependency any more since we don't want LGPLed code
65726         to depend on GPLed code.
65727
65728 2005-07-02  Jim Meyering  <jim@meyering.net>
65729
65730         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65731         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65732         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65733         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65734
65735 2005-07-02  Jim Meyering  <jim@meyering.net>
65736
65737         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65738
65739 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65740
65741         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65742         declares only 'struct timespec;' (!).
65743
65744 2005-07-01  Jim Meyering  <jim@meyering.net>
65745
65746         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65747         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65748         * lib/save-cwd.c, tempname.c:
65749         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65750         and don't include <sys/file.h>).
65751
65752 2005-06-29  Jim Meyering  <jim@meyering.net>
65753
65754         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65755         type name.  Use the variable name instead.
65756         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65757         Likewise.
65758
65759 2005-06-28  Simon Josefsson  <jas@extundo.com>
65760
65761         * modules/check-version (Files): Add check-version.m4.
65762
65763 2005-06-28  Simon Josefsson  <jas@extundo.com>
65764
65765         * m4/check-version.m4: New file, suggested by Jim Meyering
65766         <jim@meyering.net>.
65767
65768 2005-06-28  Simon Josefsson  <jas@extundo.com>
65769
65770         * lib/check-version.h, lib/check-version.c: New files.
65771
65772 2005-06-28  Simon Josefsson  <jas@extundo.com>
65773
65774         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65775         collision with global variable.  Better indentation.  Don't
65776         increment buffer pointer beyond buffer end.  Based on comments
65777         from Paul Eggert <eggert@cs.ucla.edu>.
65778
65779         * lib/base64.h: Indent.
65780
65781 2005-06-28  Simon Josefsson  <jas@extundo.com>
65782
65783         * doc/gnulib.texi (Library version handling): New section.
65784
65785 2005-06-28  Jim Meyering  <jim@meyering.net>
65786
65787         * check-module (find_included_lib_files): Hard-code another
65788         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65789         but modules/fts-lgpl (correctly) does not list those files.
65790
65791         * modules/canonicalize (Files): Add lib/pathmax.h.
65792
65793 2005-06-25  Simon Josefsson  <jas@extundo.com>
65794
65795         * modules/check-version: New file.
65796
65797 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65800         initializer of struct addrinfo, as an indication that we don't
65801         care how many members the structure has.
65802
65803 2005-06-24  Derek Price  <derek@ximbiot.com>
65804         and Bruno Haible  <bruno@clisp.org>
65805
65806         Remove stat module & update lstat.
65807         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65808         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65809         * m4/stat.m4: Remove this file.
65810
65811 2005-06-24  Derek Price  <derek@ximbiot.com>
65812         and Bruno Haible  <bruno@clisp.org>
65813
65814         Remove stat module & update lstat.
65815         * lib/stat.c: Remove this file...
65816         (slash_aware_lstat): ...moving this content and its support...
65817         * lib/lstat.c (rpl_lstat): ...into here.
65818         * lib/lstat.h: New file.
65819
65820 2005-06-24  Derek Price  <derek@ximbiot.com>
65821         and Bruno Haible  <bruno@clisp.org>
65822
65823         Remove stat module & update lstat.
65824         * config/srclist.txt (libc sources): Remove stat.
65825
65826 2005-06-24  Derek Price  <derek@ximbiot.com>
65827         and Bruno Haible  <bruno@clisp.org>
65828
65829         Remove stat module & update lstat.
65830         * MODULES.html.sh (stat): Remove.
65831         * MODULES.html: Regenerated.
65832         * modules/lstat (Description): Correct function name.
65833         (Files): Add "lstat.h".
65834         (Depends-on): Remove stat, add xalloc, stat-macros.
65835         * modules/stat: Remove this file.
65836         (Include): Add "lstat.h", remove <sys/stat.h>.
65837
65838 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65839
65840         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65841         (ranged_convert): Don't save conversion in a temporary struct.
65842         This causes a warning with GCC 4.0.0, and anyway in the typical
65843         case it's not worth the extra 100 bytes or so of code.
65844         (ranged_convert, __mktime_internal): When calling a function via a
65845         pointer P, use P () rather than (*P) (), as we now assume C89 or
65846         better.
65847
65848 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65849
65850         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65851         "who -r" failed to give output.  Problem reported by Tim Waugh.
65852
65853         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65854         (xcalloc): Use it to avoid needless tests.
65855         Problem reported by Jim Meyering.
65856
65857 2005-06-20  Derek Price  <derek@ximbiot.com>
65858
65859         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65860         unnecessary for Autoconfs > 2.59c.
65861
65862 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65863
65864         * lib/argp.h (__option_is_short): Check upper limit of
65865         __key. Isprint() requires its argument to have the value
65866         of an unsigned char or EOF.
65867
65868 2005-06-16  Jim Meyering  <jim@meyering.net>
65869
65870         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65871         when either N or S is zero.
65872
65873 2005-06-16  Derek Price  <derek@ximbiot.com>
65874
65875         * m4/bison.m4: Declare YACC & YFLAGS precious.
65876
65877 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65880         multibyte string or pattern, fall back on unibyte matching.
65881         Problem reported by James Youngman.
65882
65883 2005-06-08  Bruno Haible  <bruno@clisp.org>
65884
65885         * modules/csharpcomp: New file.
65886         * MODULES.html.sh (C#): Add csharpcomp.
65887
65888 2005-06-08  Bruno Haible  <bruno@clisp.org>
65889
65890         * m4/csharpcomp.m4: New file, from GNU gettext.
65891
65892 2005-06-08  Bruno Haible  <bruno@clisp.org>
65893
65894         * lib/csharpcomp.h: New file, from GNU gettext.
65895         * lib/csharpcomp.c: New file, from GNU gettext.
65896         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65897
65898 2005-06-08  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65901         warning on mingw.
65902
65903 2005-06-07  Derek Price  <derek@ximbiot.com>
65904
65905         Sync from CVS.
65906         * lib/glob_.h: Indent nested #ifdef.
65907
65908 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         Sync from coreutils.
65911         Use "file name" when talking about file names, instead of "filename"
65912         or "path", as per the GNU coding standards.
65913         * lib/mkdir-p.c: Renamed from makepath.c.
65914         (make_dir_parents): Renamed from make_path.  All callers changed.
65915         * lib/mkdir-p.h: Likewise.  All includers changed.
65916         * lib/filenamecat.c: Renamed from path-concat.c.
65917         (file_name_concat): Renamed from path_concat.  All callers changed.
65918         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65919         * lib/filenamecat.h: Likewise.  All includers changed.
65920         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65921         in comments or local variable names.
65922         * lib/basename.c: Likewise.
65923         * lib/canonicalize.c, canonicalize.h: Likewise.
65924         * lib/dirname.c, dirname.h: Likewise.
65925         * lib/euidaccess.c: Likewise.
65926         * lib/exclude.c: Likewise
65927         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65928         * lib/fsusage.c, fsuage.h: Likewise.
65929         * lib/fts.c, fts_.h: Likewise.
65930         * lib/getcwd.c: Likewise.
65931         * lib/getloadavg.c: Likewise.
65932         * lib/mkstemp.c: Likewise.
65933         * lib/mountlist.c, mountlist.h: Likewise.
65934         * lib/openat.c, openat.h: Likewise.
65935         * lib/readlink-stub.c: Likewise.
65936         * lib/readutmp.c, readutmp.h: Likewise.
65937         * lib/rename.c: Likewise.
65938         * lib/rmdir.c: Likewise.
65939         * lib/same.c: Likewise.
65940         * lib/savedir.c: Likewise.
65941         * lib/stripslash.c: Likewise.
65942         * lib/tempname.c: Likewise.
65943         * lib/xreadlink.c: Likewise.
65944         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65945         All uses changed.
65946         * lib/exclude.h: Likewise.
65947
65948         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65949         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65950         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65951         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65952         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65953         files have been getting away with it for years (MORE/BSD 4.3
65954         is extinct now).
65955         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65956         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65957
65958         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65959         Define to 256, not 255, as per modern POSIX.
65960
65961 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         Sync from coreutils.
65964         Use "file name" when talking about file names, instead of "filename"
65965         or "path", as per the GNU coding standards.
65966         * MODULES.html.sh: mkdir-p renamed from makepath.
65967         filenamecat renamed from path-concat.
65968         * modules/filenamecat: Renamed from modules/path-concat.
65969         (Files): filenamecat.h and filenamecat.c renamed from
65970         path-concat.h and path-concat.c.
65971         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65972         (Include): filenamecat.h, not path-concat.h.
65973         * modules/mkdir-p: Renamed from modules/makepath.
65974         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65975         makepath.c.
65976         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65977         (Include): mkdir-p.h, not makepath.h.
65978
65979 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65980
65981         Sync from coreutils.
65982         * m4/mkdir-p.m4: Renamed from makepath.m4.
65983         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65984         Rename files from makepath.c to mkdir-p.c, and from
65985         makepath.h to mkdir-p.h.
65986         * m4/filenamecat.m4: Renamed from path-concat.m4.
65987         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65988         Rename files from path-concat.c to filenamecat.c,
65989         and from path-concat.h to filenamecat.h.
65990         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65991         "file name" in local variables or comments.
65992         * m4/rename.m4: Likewise.
65993
65994 2005-06-01  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/csharpexec: New file.
65997         * MODULES.html.sh (C#): New section.
65998
65999 2005-06-01  Bruno Haible  <bruno@clisp.org>
66000
66001         * m4/csharp.m4: New file, from GNU gettext.
66002         * m4/csharpexec.m4: New file, from GNU gettext.
66003
66004 2005-06-01  Bruno Haible  <bruno@clisp.org>
66005
66006         * lib/csharpexec.h: New file, from GNU gettext.
66007         * lib/csharpexec.c: New file, from GNU gettext.
66008         * lib/csharpexec.sh.in: New file, from GNU gettext.
66009
66010 2005-05-31  Derek Price  <derek@ximbiot.com>
66011             Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         Sync from cvs.
66014         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66015
66016 2005-05-31  Derek Price  <derek@ximbiot.com>
66017             Paul Eggert  <eggert@cs.ucla.edu>
66018
66019         Sync from cvs.
66020         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66021
66022 2005-05-29  Derek Price  <derek@ximbiot.com>
66023
66024         * config/srclist.txt (glob_.h, glob.c): Add these files.
66025
66026 2005-05-29  Derek Price  <derek@ximbiot.com>
66027
66028         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66029         * modules/glob: New file.
66030         * modules/getlogin_r: Add link to POSIX spec in description.
66031
66032 2005-05-29  Derek Price  <derek@ximbiot.com>
66033             Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * m4/glob.m4: New file.
66036
66037 2005-05-29  Derek Price  <derek@ximbiot.com>
66038             Paul Eggert  <eggert@cs.ucla.edu>
66039
66040         * lib/glob_.h, lib/glob.c: New files.
66041
66042 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66043
66044         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66045         * modules/fts-lgpl (Depends-on): Remove gettext.
66046
66047 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66048
66049         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66050         and don't require gt_INTTYPES_PRI.
66051
66052 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66053
66054         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66055
66056         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66057         the configuration hassle isn't worth it.
66058         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66059         (LONGEST_MODIFIER, PRIuMAX): Remove.
66060
66061 2005-05-27  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66064
66065 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66068         _POSIX_PTHREAD_SEMANTICS for Solaris.
66069
66070 2005-05-25  Derek Price  <derek@ximbiot.com>
66071
66072         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66073
66074 2005-05-25  Derek Price  <derek@ximbiot.com>
66075             Paul Eggert  <eggert@cs.ucla.edu>
66076
66077         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66078         * lib/getlogin_r.c, getlogin_r.h: New files.
66079
66080 2005-05-25  Bruno Haible  <bruno@clisp.org>
66081             Derek Price  <derek@ximbiot.com>
66082
66083         * lib/getlogin_r.h: Simplify API documentation.
66084
66085 2005-05-23  Derek Price  <derek@ximbiot.com>
66086
66087         * modules/minmax (Files): Add m4/minmax.m4.
66088         (configure.ac): Add gl_MINMAX.
66089
66090 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66093         so that unistd-safer.h (GPL'ed code) need not be included.
66094
66095 2005-05-22  Bruno Haible  <bruno@clisp.org>
66096
66097         * m4/minmax.m4: New file.
66098         Based on a patch by Derek Price <derek@ximbiot.com>.
66099
66100 2005-05-22  Bruno Haible  <bruno@clisp.org>
66101
66102         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66103         (INT64_MIN): Fix definition.
66104         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66105
66106         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66107         NEED_SIGNED_INT_TYPES.
66108
66109         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66110         HAVE_SYSTEM_INTTYPES.
66111
66112 2005-05-22  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66115         Also include <sys/param.h> if it defines MIN, MAX.
66116         Based on a patch by Derek Price <derek@ximbiot.com>.
66117
66118 2005-05-21  Jim Meyering  <jim@meyering.net>
66119
66120         * modules/fts (Files): Add m4/inttypes-pri.m4.
66121         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66122
66123 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66124
66125         New fts module.
66126         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66127         (setup_dir, free_dir): New functions.
66128         (enter_dir, leave_dir): Define trivial
66129         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66130         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66131         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66132         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66133         Move to fts-cycle.c.
66134         (fts_open): Use setup_dir.
66135         (fts_close): Use free_dir.
66136         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66137         This adds a label and some gotos, but the alternatives were messier.
66138         Check for memory allocation failure when entering a dir.
66139         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66140         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66141         (FTS): New member fts_cycle, that is a union that contains the
66142         old active_dir_ht and cycle_state.  All uses changed to mention
66143         fts_cycle.ht and fts_cycle.state.
66144         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66145         fts.c, with the following changes:
66146         (setup_dir, free_dir): New functions.
66147         (enter_dir): Now returns bool.  Return true if successful, false
66148         if memory exhausted.  All callers changed.
66149         Do not bother partly cleaning up on
66150         memory allocation failure; that is free_dir's job.
66151         However, free ad if hash_insert fails, to avoid memory leak.
66152         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66153         fts->fts_options to see which union member to use.
66154
66155 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66158         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66159
66160 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66163
66164 2005-05-20  Jim Meyering  <jim@meyering.net>
66165
66166         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66167         Now a macro, to pacify GCC.
66168
66169 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66170
66171         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66172         of -1.
66173
66174 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66175
66176         * lib/chown.c (rpl_chown): Return -1 on failure.
66177
66178 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66179
66180         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66181         Don't check for stddef.h.
66182         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66183         don't use its results.
66184         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66185         since we include them unconditionally.  Don't require
66186         AM_STDBOOL_H, since stdbool is a prerequisite.
66187         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66188         since we assume C89 or better.
66189         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66190         as we don't use their results.
66191         Don't check for fchdir, memmove, memset, strrchr, as we use
66192         them unconditionally.
66193         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66194         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66195
66196 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66197
66198         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66199         Include <stddef.h> unconditionally, since we assume C89 now.
66200         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66201         * lib/fts.c: Include fts_.h first, to check interface.
66202         Do not include intprops.h; no longer needed.
66203         Include cycle-check.h and hash.h, since fts_.h no longer does.
66204         Remove unnecessary casts of closedir to void.
66205         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66206         decide whether to decrement nlinks.
66207         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66208         (FTS): Use struct hash_table * instead of Hash_table, so that
66209         we no longer need to include hash.h here.
66210
66211 2005-05-18  Jim Meyering  <jim@meyering.net>
66212
66213         * modules/dirfd (License): Change to LGPL.  Most of the code
66214         is already in the public domain.
66215
66216 2005-05-18  Jim Meyering  <jim@meyering.net>
66217
66218         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66219         Reported by Yoann Vandoorselaere.
66220
66221 2005-05-17  Jim Meyering  <jim@meyering.net>
66222
66223         * m4/fts.m4: New file, from coreutils.
66224
66225 2005-05-17  Jim Meyering  <jim@meyering.net>
66226
66227         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66228
66229 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66230
66231         Sync from coreutils.
66232         * m4/unlinkdir.m4: New file.
66233
66234 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         Sync from coreutils.
66237         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66238         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66239         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66240         White space changes only.
66241         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66242         special.
66243         * lib/yesno.c: Include getline.h, not ctype.h.
66244         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66245         Use getline to remove arbitrary restriction on response length.
66246
66247 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * config/srclist-update: Spell out "Street" in FSF postal
66250         mail address; this is the style the FSF seems to prefer.
66251
66252         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66253         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66254         this updates FSF postal mail address.
66255
66256         Sync from coreutils.
66257         * modules/unlinkdir: New file.
66258         * modules/yesno (Depends-on): Add getline.
66259         * MODULES.html.sh (File system functions): Add unlinkdir.
66260
66261 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66264         lib/strsep.h:
66265         Change the initial comment to refer to GPL, not LGPL.
66266         gnulib-tool will change it to LGPL as needed.
66267
66268         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66269         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66270         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66271         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66272         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66273         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66274         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66275         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66276         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66277         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66278         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66279         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66280         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66281         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66282         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66283         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66284         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66285         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66286         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66287         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66288         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66289         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66290         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66291         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66292         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66293         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66294         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66295         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66296         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66297         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66298         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66299         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66300         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66301         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66302         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66303         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66304         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66305         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66306         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66307         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66308         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66309         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66310         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66311         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66312         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66313         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66314         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66315         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66316         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66317         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66318         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66319         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66320         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66321         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66322         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66323         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66324         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66325         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66326         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66327         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66328         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66329         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66330         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66331         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66332         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66333         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66334         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66335         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66336         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66337         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66338         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66339         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66340         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66341         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66342         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66343         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66344         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66345         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66346         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66347         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66348         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66349         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66350         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66351         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66352         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66353         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66354         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66355         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66356         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66357         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66358         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66359         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66360         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66361         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66362         lib/yesno.c, lib/yesno.h:
66363         Update FSF postal mail address.
66364
66365 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66368         tests/test-memmem.c, tests/test-stpncpy.c:
66369         Update FSF postal mail address.
66370
66371 2005-05-13  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66374         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66375         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66376         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66377         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66378         Add support for 64-bit integers in the MSVC compiler.
66379
66380 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66381
66382         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66383
66384 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66385
66386         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66387
66388 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * doc/getdate.texi (General date syntax): Don't say that date
66391         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66392         Problem reported by Nic Ferrier.
66393
66394 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66395
66396         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66397         specified in ai_socktype. Fix invalid ai_protocol
66398         check. ai_protocol is usually set to 0 or depending on
66399         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66400         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66401         ai_socktype / ai_protocol in the returned addrinfo structure.
66402
66403 2005-05-10  Simon Josefsson  <jas@extundo.com>
66404
66405         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66406         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66407
66408 2005-05-10  Karl Berry  <karl@gnu.org>
66409
66410         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66411         (from http://www.gnu.org/licenses).
66412         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66413         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66414         fdl.texi suffices.
66415
66416 2005-05-10  Karl Berry  <karl@gnu.org>
66417
66418         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66419         (COPYING.DOC): remove.
66420
66421         * config/srclist-update: new FSF address.
66422
66423 2005-05-10  Derek Price  <derek@ximbiot.com>
66424
66425         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66426         possible.
66427
66428 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66429             Bruno Haible  <bruno@clisp.org>
66430
66431         * modules/inet_ntop: New file.
66432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66433         inet_ntop.
66434
66435 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66436             Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/inet_ntop.m4: New file.
66439
66440 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66441             Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/inet_ntop.h: New file.
66444         * lib/inet_ntop.c: New file, from glibc with modifications.
66445
66446 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66447
66448         * modules/time_r (License): Change to LGPL.
66449         * modules/extensions (License): Change to LGPL.  Actually,
66450         the license is more permissive than that, but currently gnulib-tool
66451         doesn't know how to handle more-permissive licenses.
66452
66453         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66454         Problem reported by Dave Love.
66455
66456 2005-05-08  Jim Meyering  <jim@meyering.net>
66457
66458         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66459         blank.
66460
66461 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * modules/argmatch (Depends-on): Add stdbool.
66464         * modules/backupfile (Depends-on): Likewise.
66465         * modules/chdir-long (Depends-on): Likewise.
66466         * modules/closeout (Depends-on): Likewise.
66467         * modules/cycle-check (Depends-on): Likewise.
66468         * modules/dirname (Depends-on): Likewise.
66469         * modules/fnmatch (Depends-on): Likewise.
66470         * modules/fsusage (Depends-on): Likewise.
66471         * modules/fwriteerror (Depends-on): Likewise.
66472         * modules/getcwd (Depends-on): Likewise.
66473         * modules/getloadavg (Depends-on): Likewise.
66474         * modules/hard-locale (Depends-on): Likewise.
66475         * modules/makepath (Depends-on): Likewise.
66476         * modules/mountlist (Depends-on): Likewise.
66477         * modules/nanosleep (Depends-on): Likewise.
66478         * modules/posixtm (Depends-on): Likewise.
66479         * modules/quotearg (Depends-on): Likewise.
66480         * modules/readtokens (Depends-on): Likewise.
66481         * modules/readtokens0 (Depends-on): Likewise.
66482         * modules/readutmp (Depends-on): Likewise.
66483         * modules/save-cwd (Depends-on): Likewise.
66484         * modules/strftime (Depends-on): Likewise.
66485         * modules/userspec (Depends-on): Likewise.
66486         * modules/utimecmp (Depends-on): Likewise.
66487         * modules/xgetcwd (Depends-on): Likewise.
66488         * modules/xnanosleep (Depends-on): Likewise.
66489         * modules/xstrtod (Depends-on): Likewise.
66490         * modules/yesno (Depends-on): Likewise.
66491
66492 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66495         needless checks.
66496
66497 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         Merge from coreutils.  Among other things,
66500         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66501         * lib/fd-safer.c: New file.
66502         * lib/fcntl-safer.h, open-safer.c: Remove.
66503         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66504         * lib/dup-safer.c: Include unistd-safer.h first.
66505         Don't include errno.h.
66506         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66507         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66508         * lib/file-type.c: Rely on file-type.h change.
66509         * lib/getloadavg.c: Include unistd-safer.h.
66510         (getloadavg): Use safer open.
66511         * lib/getusershell.c: Include "stdio-safer.h".
66512         (getusershell): Use safer fopen.
66513         * lib/long-options.c (long_options): Use NULL rather than 0.
66514         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66515         'free'.
66516         * lib/modechange.c: Likewise.
66517         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66518         (MODE_DONE): New constant.
66519         (struct mode_change): Remove 'next' member.
66520         (make_node_op_equals): New function; like the old one of the
66521         same name, except it allocates an array.
66522         (mode_compile, mode_create_from_ref): Use it.
66523         (mode_compile): Allocate result as an array, not a linked list.
66524         Parse octal string ourself, so that we catch mistakes like "+0".
66525         (mode_adjust): Arg is an array, not a linked list.
66526         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66527         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66528         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66529         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66530         Remove.  This is now stat-macros.h's job.
66531         (talloc): Remove.  All callers replaced by xalloc, so that
66532         our invokers don't have to worry about reporting memory failures.
66533         (make_node_op_equals): Remove.
66534         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66535         New constants.
66536         (struct mode_change): Moved here from modechange.h.
66537         (mode_append_entry): Remove.
66538         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66539         apps to have incorrect behavior.  Use simpler algorithm for head
66540         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66541         Detect more invalid usages rather than having somewhat-random behavior.
66542         Don't insert an "a=" action, as that leads to incorrect behavior.
66543         (mode_compile, mode_create_from_ref): Return NULL on error instead
66544         of an enum, since now there's only one way to have an error.  All
66545         callers changed.
66546         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66547         at the correct time.  Simplify calculation of "+u" and its ilk.
66548         Don't mishandle "+X".
66549         (mode_free): Remove "register" and localize decls.
66550         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66551         (struct mode_change): Move to modechange.c; callers don't
66552         need to see this stuff.
66553         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66554         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66555         (mode_change, mode_adjust): Reflect the new signatures noted above.
66556         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66557         that might redefine system include files.
66558         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66559         (my_usleep): Use NULL rather than (void *) 0.
66560         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66561         Use siginterrupt to specify that system calls should be interrupted.
66562         (rpl_nanosleep): Move initialization of suspended closer to call of
66563         my_usleep.
66564         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66565         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66566         (desirable_utmp_entry): New function.
66567         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66568         using x2nrealloc, to simplify logic.
66569         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66570         size calculation.  Do not assume utmp file is a regular file.
66571         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66572         (READ_UTMP_CHECK_PIDS): New constant.
66573         * lib/save-cwd.c: Include unistd-safer.h.
66574         (save_cwd): Use fd_safer.
66575         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66576         [!_LIBC] Include "stat-macros.h" instead.
66577         * lib/unistd-safer.h (fd_safer): New decl.
66578
66579 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         * modules/getloadavg (Depends-on): Add unistd-safer.
66582         * modules/getusershell (Depends-on): Add stdio-safer.
66583         * modules/lstat (Depends-on): Remove xalloc.
66584         * modules/mkstemp (Depends-on): Add stat-macros.
66585         * modules/modechange (Depends-on): Remove xstrtol.
66586         Add stat-macros, xalloc.
66587         * modules/save-cwd (Depends-on): Add unistd-safer.
66588         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66589         * modules/unistd-safer (Files): Add lib/fd-safer.c
66590         (Makefile.am): Remove lib_SOURCES.
66591
66592         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66593         Remove fcntl-safer; unistd-safer supersedes it.
66594
66595 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66596
66597         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66598         AC_HEADER_STAT.
66599         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66600         (gl_PREREQ_CHOWN): Remove.
66601         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66602         it.  Don't require AC_HEADER_STAT.
66603         (gl_PREREQ_LSTAT): Remove.
66604         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66605         Don't require AC_HEADER_STAT.
66606         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66607         (gl_PREREQ_RMDIR): Remove.
66608         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66609         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66610         the stat-macros module a prerequisite.
66611         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66612         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66613         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66614         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66615         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66616         variable names.
66617         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66618         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66619         variable prefixes.
66620         * m4/fcntl-safer.m4: Remove.
66621         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66622         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66623         Invoke gl_PREREQ_FD_SAFER.
66624         (gl_PREREQ_FD_SAFER): New macro.
66625         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66626         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66627         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66628         Remove duplicate call to AC_LIBOBJ(readutmp).
66629         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66630
66631         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66632         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66633
66634 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * MODULES.html.sh (Misc): Add byteswap.
66637
66638 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66639
66640         * modules/getcwd (Depends-on): Add extensions.
66641         * modules/openat (Depends-on): Likewise.
66642
66643 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66644
66645         * modules/byteswap: New file.
66646
66647 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66648
66649         * m4/byteswap.m4: New file.
66650
66651 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66652
66653         * lib/byteswap_.h: New file.
66654
66655 2005-04-25  Karl Berry  <karl@gnu.org>
66656
66657         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66658
66659 2005-04-25  Albert Chin  <china@thewrittenword.com>
66660
66661         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66662         Toolkit C bug.
66663
66664 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66665
66666         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66667         (func_ln_if_changed) Remove forcibly for no error message
66668         in case file does not exist.
66669
66670 2005-04-19  Simon Josefsson  <jas@extundo.com>
66671
66672         * gnulib-tool (Options): Make --symlink mean --symbolic.
66673
66674 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66675
66676         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66677
66678 2005-04-16  Simon Josefsson  <jas@extundo.com>
66679
66680         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66681
66682 2005-04-15  Simon Josefsson  <jas@extundo.com>
66683
66684         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66685
66686 2005-04-15  Simon Josefsson  <jas@extundo.com>
66687
66688         * gnulib-tool: Rename --symlink to --symbolic.
66689
66690 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66691
66692         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66693         symbolic links to files instead of copying/moving.  Add --aux-dir,
66694         specifying directory relative --dir where auxiliary build tools
66695         are placed.
66696
66697 2005-04-14  Bruno Haible  <bruno@clisp.org>
66698
66699         * modules/allocsa (License): Change to LGPL.
66700         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66701
66702 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66705         that "UTC +1 second" continues to work.  Problem reported
66706         by Dmitry V. Levin.
66707         (relunit_snumber): New rule.
66708         (relunit): Use it.
66709
66710 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         * lib/getdate.y (universal_time_zone_table): New constant.
66713         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66714         universal_time_zone_table.
66715         (lookup_zone): Prefer universal_time_zone_table to
66716         local_time_zone_table, so that "GMT" time stamps are allowed in
66717         London during the summer.  Problem reported by Ian Abbott.
66718
66719 2005-04-12  Jim Meyering  <jim@meyering.net>
66720
66721         * lib/human.c (humblock): Set *options even when returning due to
66722         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66723         warning from gcc-4.
66724
66725 2005-04-09  Jim Meyering  <jim@meyering.net>
66726
66727         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66728         -Wuninitialized: initialize tm0.tm_year.
66729
66730 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66733         count, since there's no maximum.  All uses changed.
66734         Add member dsts_seen.
66735         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66736         not being INT_MAX.
66737         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66738         Use pc_rels_seen to decide whther a date is absolute.
66739
66740         * lib/getdate.y (number): Don't overwrite year.
66741         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66742         check.
66743
66744 2005-04-02  Simon Josefsson  <jas@extundo.com>
66745
66746         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66747         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66748
66749 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66750
66751         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66752         where no absolute path name can be longer than PATH_MAX.
66753
66754 2005-03-27  Jim Meyering  <jim@meyering.net>
66755
66756         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66757
66758 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66761         "one's complement" -> "ones' complement" in comment, as per Knuth.
66762         "value of type" -> "type or expression" in comment.
66763         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66764
66765 2005-03-26  Jim Meyering  <jim@meyering.net>
66766
66767         Comment nits.
66768         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66769         Correct typos: s/or/of/.
66770
66771 2005-03-26  Jim Meyering  <jim@meyering.net>
66772
66773         * modules/check-include-files: Move to ../ and rename to...
66774         * check-module: ...this.
66775
66776 2005-03-25  Jim Meyering  <jim@meyering.net>
66777
66778         * modules/xvasprintf (Files): Add xalloc.h.
66779
66780 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * modules/gettext (Files): config/config.rpath ->
66783         build-aux/config.rpath
66784         * modules/iconv (Files): Likewise.
66785         Problem reported by Oskar Liljeblad.
66786
66787 2005-03-23  Jim Meyering  <jim@meyering.net>
66788
66789         * modules/check-include-files: New script to check for
66790         missing dependencies, multiple includes, etc.
66791
66792         * modules/c-strtold (Depends-on): Add xalloc.
66793         * modules/c-strtod (Depends-on): Add xalloc.
66794         * modules/hash (Depends-on): Add xalloc.
66795         (Files): Remove lib/xalloc.h.
66796
66797         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66798         * modules/userspec (Files): Add lib/inttostr.h.
66799
66800 2005-03-23  Jim Meyering  <jim@meyering.net>
66801
66802         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66803
66804 2005-03-22  Jim Meyering  <jim@meyering.net>
66805
66806         * modules/stat-macros: New module.
66807         * modules/canonicalize, modules/euidaccess, modules/file-type,
66808         * modules/filemode, modules/lchown, modules/makepath,
66809         * modules/rmdir, modules/stat: Depend on new stat-macros module
66810         rather than listing lib/stat-macros.h manually.
66811         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66812
66813 2005-03-22  Jim Meyering  <jim@meyering.net>
66814
66815         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66816
66817 2005-03-22  Bruno Haible  <bruno@clisp.org>
66818
66819         * config/srclist.txt: Replace target directory 'config' with
66820         'build-aux'.
66821         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66822         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66823         ../build-aux/.
66824
66825 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * modules/chdir-long (Depends-on): Add mempcpy.
66828
66829         * modules/acl, modules/backupfile, modules/c-strtod,
66830         modules/c-strtold, modules/canon-host, modules/canonicalize,
66831         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66832         modules/exclude, modules/exitfail, modules/file-type,
66833         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66834         modules/getdate, modules/getline, modules/getpagesize,
66835         modules/getpass, modules/getugroups, modules/group-member,
66836         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66837         modules/inttostr, modules/long-options, modules/makepath,
66838         modules/md5, modules/memcasecmp, modules/memcoll,
66839         modules/modechange, modules/mountlist, modules/path-concat,
66840         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66841         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66842         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66843         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66844         modules/strftime, modules/strndup, modules/strverscmp,
66845         modules/timespec, modules/unlocked-io, modules/userspec,
66846         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66847         modules/yesno:
66848         Remove lib_SOURCES line from Makefile.am section, as this is now
66849         done automatically by the corresponding Autoconf macro.
66850
66851 2005-03-21  Jim Meyering  <jim@meyering.net>
66852
66853         Changes imported from coreutils.
66854
66855         * lib/cycle-check.c: Don't include xalloc.h.
66856
66857         * lib/path-concat.c: Don't include assert.h.
66858         (path_concat): Remove assertion that would have triggered
66859         for ABASE starting with more than one slash.
66860         Reported by Andreas Schwab.
66861
66862         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66863         properly when ABASE is an absolute file name.
66864         Correct the description of this function.
66865         Include <assert.h>.
66866         Add an assertion and a test driver.
66867         This fixes a bug introduced on 2004-07-02.
66868         Andreas Schwab reported the resulting failure of cp --parents:
66869         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66870
66871 2005-03-21  Jim Meyering  <jim@meyering.net>
66872
66873         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66874         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66875
66876 2005-03-21  Jim Meyering  <jim@meyering.net>
66877         and  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66880         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66881         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66882         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66883         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66884         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66885         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66886         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66887         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66888         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66889         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66890         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66891         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66892         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66893         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66894         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66895         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66896         for these modules.
66897
66898 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66901         (which shouldn't happen), generate nothing instead of returning 0
66902         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66903
66904 2005-03-16  Bruno Haible  <bruno@clisp.org>
66905
66906         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66907         HAVE_LONGLONG_64BIT.
66908
66909 2005-03-16  Bruno Haible  <bruno@clisp.org>
66910
66911         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66912         HAVE_LONGLONG_64BIT.
66913
66914 2005-03-16  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66917         HAVE_LONGLONG_64BIT.
66918
66919 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66920
66921         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66922         reliably distinguish strftime failure from empty output on POSIX
66923         hosts.
66924
66925 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66928         (iconv_string): Don't guess a size-zero buffer, as that might cause
66929         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66930         result would be 'too large', where 'too large' is (heuristically)
66931         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66932         overflow concerns.  This will prevent some unwanted malloc failures
66933         when the inputs are very large.
66934
66935 2005-03-15  Karl Berry  <karl@gnu.org>
66936
66937         * config/srclist.txt (config.rpath): from gettext.
66938         * config/config.rpath: update.
66939
66940 2005-03-15  Bruno Haible  <bruno@clisp.org>
66941
66942         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66943         to 'negate'.
66944
66945         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66946         variable.
66947
66948         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66949         results.
66950
66951 2005-03-14  Simon Josefsson  <jas@extundo.com>
66952
66953         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66954         <fx@gnu.org>.
66955
66956 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66957
66958         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66959         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66960         intprops.h.
66961         * lib/strtol.c: Likewise.
66962
66963 2005-03-14  Jim Meyering  <jim@meyering.net>
66964
66965         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66966         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66967         to be nonzero so that we (and caller) can detect the difference
66968         between a valid zero-length expansion and an error return, even
66969         when the underlying strftime fails before writing anything into
66970         that location.
66971
66972 2005-03-14  Bruno Haible  <bruno@clisp.org>
66973
66974         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66975         Update from GNU gettext 0.14.3.
66976
66977 2005-03-10  Jim Meyering  <jim@meyering.net>
66978
66979         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66980
66981 2005-03-10  Jim Meyering  <jim@meyering.net>
66982
66983         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66984         so that this module works on systems without fchdir.
66985
66986 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         Factor int-properties macros into a single file, except for
66989         glibc-related files.
66990         * lib/intprops.h: New file.
66991         * lib/getloadavg.c: Include it instead of limits.h.
66992         (INT_STRLEN_BOUND): Remove.
66993         * lib/human.c: Include intprops.h.
66994         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66995         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66996         302/1000.
66997         * lib/inttostr.h: Include intprops.h instead of limits.h.
66998         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66999         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67000         for consistency with intprops.h.
67001         (time_t_is_integer, twos_complement_arithmetic): Use them.
67002         * lib/sig2str.h: Include <signal.h>, intprops.h.
67003         (INT_STRLEN_BOUND): Remove.
67004         * lib/strftime.c (TYPE_SIGNED): Remove.
67005         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67006         * lib/strtol.c: Adjust comments to match intprops.h.
67007         * lib/userspec.c: Include intprops.h.
67008         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67009         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67010         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67011         instead of rolling our own expressions.
67012         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67013
67014         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67015         instead of int.
67016         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67017         the right thing even if adding 1900 would overflow.  Similarly
67018         for tm_mon + 1 and tm_yday + 1.
67019         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67020         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67021         (DO_SIGNED_NUMBER): New macro.
67022         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67023
67024 2005-03-07  Bruno Haible  <bruno@clisp.org>
67025
67026         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67027
67028 2005-03-07  Bruno Haible  <bruno@clisp.org>
67029
67030         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67031
67032 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67033
67034         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67035         (func_import): Only replace files via --import when they have actually
67036         changed.
67037
67038 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67039
67040         * m4/mmap-anon.m4: New file.
67041         * m4/pagealign_alloc.m4: New file.
67042
67043 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67044             Bruno Haible  <bruno@clisp.org>
67045
67046         * modules/pagealign_alloc: New file.
67047         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67048
67049 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67050             Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/pagealign_alloc.h: New file.
67053         * lib/pagealign_alloc.c: New file.
67054
67055 2005-03-03  Bruno Haible  <bruno@clisp.org>
67056
67057         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67058         Use an all-permissive copyright notice, recommended by RMS.
67059
67060 2005-03-02  Bruno Haible  <bruno@clisp.org>
67061
67062         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67063         of AIX, the replacement has to be done only after <string.h> is
67064         included, therefore not in config.h. stpncpy.h does the replacement,
67065         and stpncpy.c uses it.
67066
67067 2005-03-02  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67070         stpncpy.c uses it.
67071
67072 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67073
67074         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67075         The workaround isn't strictly needed for POSIX conformance, and
67076         it's too much of a pain to configure and maintain.  We'll ask
67077         people to fix their kernels instead.
67078         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67079         (NANOSLEEP_BUG_WORKAROUND): Remove.
67080         (xnanosleep): Remove the workaround.
67081
67082 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67083
67084         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67085         Reported by Derek Price.
67086         (Include): Add "timespec.h".
67087
67088         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67089
67090 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67093         to detect nanosleep bug.
67094
67095 2005-03-01  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67098
67099 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67100
67101         * modules/gethrxtime: New file.
67102         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67103         (Depends-on): Add gethrxtime.
67104         (configure.ac): Add gl_XNANOSLEEP.
67105         (Makefile.am): Remove lib_SOURCES line.
67106
67107 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67110         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67111
67112 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67115         * lib/timespec.h (gettime): Return void, since it always
67116         succeeds now.  All uses changed.
67117         * lib/gettime.c (gettime) Likewise.
67118         [HAVE_NANOTIME]: Prefer nanotime.
67119         Assume gettimeofday succeeds, as POSIX requires.
67120         Assime time () succeeds, since other code already does.
67121         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67122         (timespec_subtract): Remove.
67123         (NANOSLEEP_BUG_WORKAROUND): New constant.
67124         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67125         things considerably.  Use it only on GNU/Linux hosts, since the
67126         workaround shouldn't be needed elsewhere.
67127
67128 2005-02-24  Bruno Haible  <bruno@clisp.org>
67129
67130         * modules/gettext (Files): Add m4/glibc2.m4.
67131
67132 2005-02-24  Bruno Haible  <bruno@clisp.org>
67133
67134         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67135         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67136         * m4/progtest.m4:
67137         Update from GNU gettext 0.14.2.
67138         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67139
67140 2005-02-24  Bruno Haible  <bruno@clisp.org>
67141
67142         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67143         * lib/config.charset: Update from GNU gettext 0.14.2.
67144
67145 2005-02-24  Bruno Haible  <bruno@clisp.org>
67146
67147         * lib/gettext.h: Update from GNU gettext 0.14.2.
67148
67149 2005-02-23  Simon Josefsson  <jas@extundo.com>
67150
67151         * m4/iconvme.m4: New file.
67152
67153 2005-02-23  Jim Meyering  <jim@meyering.net>
67154
67155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67156         change.
67157         Thanks to Bruno Haible for catching it.
67158
67159 2005-02-22  Simon Josefsson  <jas@extundo.com>
67160
67161         * modules/iconvme: New file.
67162
67163         * MODULES.html.sh: Add iconvme.
67164
67165 2005-02-22  Simon Josefsson  <jas@extundo.com>
67166
67167         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67168
67169 2005-02-22  Simon Josefsson  <jas@extundo.com>
67170
67171         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67172
67173 2005-02-22  Jim Meyering  <jim@meyering.net>
67174
67175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67176         s/ifndef/ifdef/.
67177
67178 2005-02-20  Neil Conway  <neilc@samurai.com>
67179
67180         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67181         returned by OSX/Darwin if the specified buffer is not large
67182         enough for the hostname.
67183
67184 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67185
67186         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67187         pass it to _help, otherwise the latter coredumps trying to
67188         dereference state.root_argp.
67189
67190 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67191
67192         * modules/chdir-long (Depends-on): Add memrchr.
67193         * modules/memrchr (Files): Add lib/memrchr.h.
67194         (Include): "memrchr.h".
67195
67196 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67199
67200 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67201
67202         * lib/memrchr.h: New file.
67203         * lib/chdir-long.c: Include it.
67204         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67205         Don't bother including stddef.h.
67206
67207 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67210         inclusion.
67211         Include <sys/types.h>, for dev_t.
67212         (ME_DUMMY, ME_REMOTE): Move from here....
67213         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67214         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67215         Dmitry V. Levin.
67216         Include mountlist.h first, to test the interface.
67217
67218 2005-01-29  Bruno Haible  <bruno@clisp.org>
67219
67220         * lib/progname.c (program_name): Initialize.
67221         Needed when linking statically on MacOS X.
67222
67223 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67224
67225         Sync from coreutils.
67226         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67227         (Depends-on): Add c-strtod.
67228         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67229
67230 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         Sync from coreutils.
67233         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67234
67235         Remove files that are specific to coreutils.
67236         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67237
67238 2005-01-28  Bruno Haible  <bruno@clisp.org>
67239
67240         * modules/javacomp: New file.
67241         * MODULES.html.sh (Java): Add javacomp.
67242
67243 2005-01-28  Bruno Haible  <bruno@clisp.org>
67244
67245         * m4/javacomp.m4: New file, from GNU gettext.
67246
67247 2005-01-28  Bruno Haible  <bruno@clisp.org>
67248
67249         * lib/javacomp.sh.in: New file, from GNU gettext.
67250         * lib/javacomp.h: New file, from GNU gettext.
67251         * lib/javacomp.c: New file, from GNU gettext.
67252
67253 2005-01-26  Simon Josefsson  <jas@extundo.com>
67254
67255         * lib/gai_strerror.c: Use GPL in header.
67256
67257 2005-01-26  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/javaexec: New file.
67260         * MODULES.html.sh (Java): Add javaexec.
67261
67262 2005-01-26  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/javaexec.m4: New file, from GNU gettext.
67265
67266 2005-01-26  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/javaexec.sh.in: New file, from GNU gettext.
67269         * lib/javaexec.h: New file, from GNU gettext.
67270         * lib/javaexec.c: New file, from GNU gettext.
67271
67272 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67273
67274         * modules/lchown (Depends-on): Remove lchown.h
67275
67276 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67277
67278         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67279         must be defined if the header file was not found, in order
67280         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67281
67282 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67283
67284         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67285         initializers for struct pentry_state.
67286         (__argp_error): Check return value of __asprintf
67287         (__argp_failure): Translate error message
67288
67289         * lib/argp-parse.c: Removed braces around the expansion of N_()
67290
67291 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67292
67293         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67294         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67295         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67296         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67297         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67298         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67299         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67300         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67301         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67302         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67303         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67304         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67305         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67306         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67307         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67308         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67309         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67310         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67311         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67312         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67313         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67314         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67315         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67316         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67317         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67318         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67319         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67320         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67321         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67322         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67323         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67324         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67325         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67326         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67327         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67328         Use an all-permissive copyright notice, recommended by RMS.
67329
67330 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67331
67332         * modules/chdir-long (Depends-on): Remove mempcpy.
67333
67334 2005-01-21  Jim Meyering  <jim@meyering.net>
67335
67336         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67337         same value as for Solaris 9.
67338
67339         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67340         component length.  This included changing the parameter to be
67341         of type `char *' rather than `char const *'.
67342         * lib/chdir-long.h (chdir_long): Update prototype.
67343
67344         * lib/openat.c (fdopendir, fstatat): New functions.
67345         * lib/openat.h: Include headers required for use of DIR and struct
67346         stat.
67347         [AT_SYMLINK_NOFOLLOW]: Define.
67348         (fdopendir, fstatat): Add prototypes.
67349
67350 2005-01-21  Bruno Haible  <bruno@clisp.org>
67351
67352         * modules/classpath: New file.
67353         * MODULES.html.sh (Java): Add classpath.
67354
67355 2005-01-21  Bruno Haible  <bruno@clisp.org>
67356
67357         * lib/classpath.h: New file, from GNU gettext.
67358         * lib/classpath.c: New file, from GNU gettext.
67359
67360 2005-01-20  Simon Josefsson  <jas@extundo.com>
67361
67362         * modules/version-etc-fsf: New file.
67363
67364 2005-01-20  Simon Josefsson  <jas@extundo.com>
67365
67366         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67367         * lib/version-etc.c: Remove version_etc_copyright.
67368         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67369         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67370
67371 2005-01-20  Simon Josefsson  <jas@extundo.com>
67372
67373         * lib/base64.h (isbase64): Add.
67374
67375         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67376         using a unsigned prototype, don't inline.
67377         (base64_decode): Use it.
67378
67379 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67380
67381         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67382         it.
67383
67384 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * lib/save-cwd.c (save_cwd): Remove code to support the case
67387         where fchdir is missing or flaky.
67388
67389 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67390
67391         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67392
67393 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67394
67395         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67396         AC_LIBSOURCES now does this.
67397         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67398         with new ullong_max module.
67399
67400 2005-01-19  Bruno Haible  <bruno@clisp.org>
67401
67402         * modules/sh-quote: New file.
67403         * MODULES.html.sh (Executing programs): Add sh-quote.
67404
67405 2005-01-19  Bruno Haible  <bruno@clisp.org>
67406
67407         * lib/sh-quote.h: New file, from GNU gettext.
67408         * lib/sh-quote.c: New file, from GNU gettext.
67409
67410 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         Merge from coreutils.
67413         * m4/ullong_max.m4: New file.
67414         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67415         (gl_MACROS): Assume localeconv exists.
67416
67417 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         Merge changes from coreutils, as described below in several
67420         changelogs dated today.
67421
67422         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67423         (O_DIRECTORY): Remove; not needed here, since "." must be
67424         a directory.  All uses removed.
67425         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67426         universal on Suns, and we also need to test for IRIX.
67427         Revamp code to use 'if' rather than '#if'.
67428         Avoid unnecessary comparison of cwd->desc to 0.
67429
67430         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67431         for known valid error numbers rather than observed invalid ones.
67432
67433 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * modules/ullong_max: New file.
67436
67437         * modules/chdir-long, modules/openat: New files.
67438         * modules/save-cwd (Depends-on): Depend on chdir-long.
67439         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67440
67441 2005-01-18  Jim Meyering  <jim@meyering.net>
67442
67443         Merge from coreutils.
67444         * m4/chdir-long.m4, m4/openat.m4: New files.
67445         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67446         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67447         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67448         is sane and DOES follow symlinks.  Besides, testing 20 different
67449         systems found no broken chown implementations.
67450         Prompted by a change in rsync's copy of this macro.
67451         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67452
67453         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67454
67455         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67456         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67457         NULL-means-set-to-current-time semantics.
67458         Remove temporary file immediately, rather than waiting
67459         for configure's at-exit trap code to do it.
67460
67461 2005-01-18  Jim Meyering  <jim@meyering.net>
67462
67463         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67464
67465         * lib/utimens.c (futimens): Account for the fact that futimes
67466         can also fail with errno == ENOSYS or errno == ENOENT.
67467         Patch from Dmitry V. Levin.
67468
67469         Change the name of the robust chdir function from chdir to chdir_long.
67470         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67471         (restore_cwd): Use chdir_long, not chdir.
67472         * lib/chdir-long.c: Renamed from chdir.c.
67473         * lib/chdir-long.h: Renamed from chdir.h.
67474         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67475         Hurd.
67476
67477 2005-01-18  Bruno Haible  <bruno@clisp.org>
67478
67479         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67480         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67481         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67482         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67483         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67484         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67485         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67486         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67487         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67488         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67489         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67490         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67491         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67492         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67493         Use an all-permissive copyright notice, recommended by RMS.
67494
67495 2005-01-18  Bob Proulx  <bob@proulx.com>
67496
67497         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67498         simplify offsetof() macro construct to avoid compile failure with
67499         native HP-UX 11.0 ANSI C compiler.
67500
67501 2005-01-17  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67504         redundant because stpncpy.m4 takes care of it.
67505
67506 2005-01-17  Bruno Haible  <bruno@clisp.org>
67507
67508         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67509
67510 2005-01-17  Bruno Haible  <bruno@clisp.org>
67511
67512         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67513         used.
67514
67515 2005-01-17  Bruno Haible  <bruno@clisp.org>
67516
67517         * lib/fwriteerror.h (fwriteerror): Change specification to include
67518         fclose.
67519         * lib/fwriteerror.c: Include <stdbool.h>.
67520         (fwriteerror): At the end, close the file stream. Record whether
67521         stdout was already closed.
67522
67523 2005-01-17  Bruno Haible  <bruno@clisp.org>
67524
67525         * lib/execute.c (environ): Declare if needed.
67526         * lib/pipe.c (environ): Likewise.
67527         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67528
67529 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67530
67531         * modules/argp: Depend on vsnprintf
67532
67533 2005-01-10  Jim Meyering  <jim@meyering.net>
67534
67535         * modules/closeout (Depends-on): Add atexit.
67536
67537 2005-01-06  Bruno Haible  <bruno@clisp.org>
67538
67539         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67540
67541 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67544         definitions to be after all include files, to avoid collisions.
67545         Problem reported by Bob Proulx.
67546
67547 2005-01-04  Jim Meyering  <jim@meyering.net>
67548
67549         Changes imported from coreutils.
67550         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67551         as the mkstemp template, use a temporary directory and an
67552         8.3-friendly template to avoid trouble on systems like DJGPP.
67553         Reported by Juan M. Guerrero via Stepan Kasal.
67554         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67555         close. Remove the temporary directory right away, rather than waiting
67556         for configure's at-exit trap code to do it.
67557         Suggestion from Stepan Kasal.
67558
67559 2005-01-01  Simon Josefsson  <jas@extundo.com>
67560
67561         * gnulib-tool: Print #include directives when --import'ing.
67562
67563 2004-12-28  Simon Josefsson  <jas@extundo.com>
67564
67565         * tests/test-base64.c: Include required header files.  Remove
67566         unused variables.
67567
67568 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67569
67570         * modules/error (Depends-on): Remove gettext.
67571
67572 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67573
67574         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67575         not needed.  This removes a dependency on the gettext module.
67576         [defined _LIBC]: Do not include <libintl.h>; not needed.
67577
67578 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67581         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67582
67583 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67586         HAVE_DECL_STRTOLD.
67587
67588 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * modules/getdate (Depends-on): Remove alloca-opt.
67591
67592 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67593
67594         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67595
67596 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         * lib/argp-parse.c: Include <stddef.h>.
67599         (alignof, alignto): New macros.
67600         (parser_init): Don't assume that void * is aligned sufficiently
67601         for struct option.
67602
67603         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67604         need to extend the stack.
67605         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67606         large.
67607
67608 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67609
67610         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67611
67612 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67615         (2004-10-24) change.  Apparently this was a false alarm.
67616
67617         * modules/getdate: Depend on alloca-opt, not alloca.
67618
67619 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67620
67621         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67622         Remove now-obsolete comment about AIX.
67623         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67624         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67625         (YYMAXDEPTH): New macro.
67626
67627 2004-12-18  Simon Josefsson  <jas@extundo.com>
67628
67629         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67630
67631 2004-12-18  Bruno Haible  <bruno@clisp.org>
67632
67633         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67634
67635 2004-12-18  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/fatal-signal.c (fatal_signals): Make non-const.
67638         (init_fatal_signals): New function.
67639         (uninstall_handlers, install_handlers): Ignore signals that were set to
67640         SIG_IGN.
67641         (at_fatal_signal): Call init_fatal_signals.
67642         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67643         SIG_IGN.
67644         Reported by Paul Eggert.
67645
67646 2004-12-18  Bruno Haible  <bruno@clisp.org>
67647
67648         * doc/alloca.texi: New file.
67649         * doc/alloca-opt.texi: New file.
67650
67651 2004-12-17  Jim Meyering  <jim@meyering.net>
67652
67653         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67654         Otherwise, install-sh could exit with improper exit status when
67655         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67656
67657 2004-12-16  Simon Josefsson  <jas@extundo.com>
67658
67659         * tests/test-base64.c: Add license.
67660
67661 2004-12-15  Stepan Kasal  <address@hidden>
67662
67663         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67664
67665 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67666
67667         * modules/getcwd (Files): Add m4/d-ino.m4.
67668         Suggested by Mark D. Baushke.
67669
67670 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         * lib/getdate.y (textint): New member "negative".
67673         (time_zone_hhmm): New function.
67674         Expect 14 shift-reduce conflicts, not 13.
67675         (o_colon_minutes): New rule.
67676         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67677         (yylex): Set the "negative" member of signed numbers.
67678
67679 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67680
67681         * doc/getdate.texi (Time of day items, Time zone items):
67682         Describe new formats +00:00, UTC+00:00.
67683
67684 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67687         spurious "-l"s.  Problem reported by Stepan Kasal.
67688
67689 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67692         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67693
67694 2004-12-04  Simon Josefsson  <jas@extundo.com>
67695
67696         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67697         Vandoorselaere <yoann@prelude-ids.org>.
67698
67699 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         Changes imported from coreutils.
67702         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67703         exist.
67704         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67705
67706 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67707
67708         Changes imported from coreutils.
67709         * lib/hard-locale.c: Assume <locale.h> exists.
67710         Include "strdup.h".
67711         (GLIBC_VERSION): New macro.
67712         (hard_locale): Assume setlocale exists.
67713         Rewrite to avoid #ifdef.
67714         Use strdup rather than malloc + strcpy.
67715         * lib/human.c: Assume <locale.h> exists.
67716         (human_readable): Assume localeconv exists.
67717
67718 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         * modules/hard-locale (Depends-on): Add strdup.
67721
67722 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67723
67724         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67725         convert T2, not T.  (Imported from libc.)
67726
67727 2004-11-30  Simon Josefsson  <jas@extundo.com>
67728
67729         * modules/restrict (License): Change to LGPL.
67730
67731 2004-11-30  Simon Josefsson  <jas@extundo.com>
67732
67733         * m4/restrict.m4: Add copyright and copying conditions.
67734
67735 2004-11-30  Simon Josefsson  <jas@extundo.com>
67736
67737         * m4/base64.m4: New file.
67738
67739 2004-11-30  Simon Josefsson  <jas@extundo.com>
67740
67741         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67742         base64.
67743
67744         * tests/test-base64.c: New file.
67745
67746         * modules/base64: New file.
67747
67748 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67749
67750         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67751         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67752
67753         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67754
67755 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67756
67757         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67758         (__getcwd.c): Don't restore errno; glibc doesn't.
67759         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67760         first, falling back to our code only if its results look suspicious.
67761         Ensure that the resulting buffer is only as large as necessary.
67762
67763         * lib/readutmp.c: Include readutmp.h first.
67764         Include <errno.h>, since readutmp.h no longer does that.
67765         * lib/readutmp.h: Don't include <errno.h>,
67766         <sys/param.h>, <time.h>; not needed to establish interface.
67767         (errno): Remove decl.
67768         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67769         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67770         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67771
67772 2004-11-28  Simon Josefsson  <jas@extundo.com>
67773
67774         * lib/base64.h, base64.c: New file.
67775
67776 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67779
67780 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67783         (Depends-on): Remove pathmax, same.  Add mempcpy.
67784         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67785         (Makefile.am): Append getcwd.h to lib_SOURCES.
67786         (Include): Add getcwd.h.
67787         (Maintainer): Change from Jim Meyering to "all, glibc",
67788         since getdate now uses intended-for-glibc code.
67789         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67790         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67791
67792 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67795         HP's ANSI C compiler.
67796         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67797         Declaring int functions causes warnings on some modern systems and
67798         shouldn't be needed to compile on ancient ones.
67799         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67800         defined.
67801
67802         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67803         with the following changes.
67804         (__set_errno): Parenthesize properly.
67805         Include <stdbool.h>.
67806         (MIN, MAX, MATCHING_INO): New macros.
67807         (__getcwd): Define with prototype, not K&R form.
67808         Use heuristics to allocate default buffer on stack if possible.
67809         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67810         behavior, and to avoid the PATH_MAX limit when computing
67811         ../../../../...
67812         Use MATCHING_INO to compare inode number to file.
67813         Check for arithmetic overflow in size calculations.
67814         Fix bug in reallocation of dot array that caused getcwd to fail
67815         on directories nested deeper than 75.
67816         Be more careful about saving errno on error.
67817         Do not use realloc; use only free+malloc, as this is a bit
67818         more flexible and avoids a needless copy operation.
67819         Do not inspect st_dev and st_ino for symbolic links; POSIX
67820         doesn't specify the latter.
67821         Check for closedir errors.
67822         Avoid needless casts.
67823         Use "#ifdef weak_alias" around weak_alias, to be like other
67824         glibc code.
67825         The following changes to getcwd.c have effect only when used in
67826         gnulib; they have no effect inside glibc proper.
67827         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67828         as alloca isn't used.
67829         (alloca, __alloca): Likewise.
67830         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67831         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67832         unconditionally, as gnulib assumes C89 or better.
67833         Do not include <sys/param.h>.
67834         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67835         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67836         better.
67837         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67838         Include <dirent.h> in a way that is compatible with modern Autoconf.
67839         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67840         New macros, if not already defined.
67841         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67842         Use "_LIBC", not "defined _LIBC", for consistency.
67843         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67844         a mempcpy module.
67845         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67846         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67847         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67848         credit only to Jim Meyering and adjust the copyright dates.
67849         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67850         <stdlib.h>, <unistd.h>, "pathmax.h".
67851         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67852         (INITIAL_BUFFER_SIZE): Remove.
67853         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67854
67855 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67858         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67859         Use the _ONCE methods, for efficiency.
67860         Check for fcntl.h.  In test program, include <errno.h>
67861         and <fcntl.h> if available.  Remove old K&R cruft from
67862         test program.  Check for common errors in GNU/Linux,
67863         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67864         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67865         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67866         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67867         name accordingly.
67868         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67869         accommodate new getcwd.c.
67870         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67871         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67872         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67873         that's all we need now.
67874
67875 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67876
67877         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67878         argp-parse.c depends on getopt internals, that means we should
67879         always use our getopt, to be on the safe side.
67880         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67881         order not to spoil the result of an eventual previous invocation
67882         of gl_GETOPT_SUBSTITUTE.
67883
67884 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67885
67886         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67887         redefinition warnings. To avoid them, include the defines
67888         in `#if !defined __need_getopt ... #endif'. The only place
67889         where __getopt_argv_const is used is in definitions
67890         of getopt_long and getopt_long_only below, which are as well
67891         protected by `#ifndef __need_getopt'.
67892         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67893         __need_getopt after including <stdio.h> and <unistd.h> These
67894         headers might have defined it.
67895
67896 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67899
67900 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67903         (futimens): New function, which uses futimes if available.
67904         (futimens, utimens): Support timespec==NULL, with same semantics
67905         as utime and utimens.
67906         * lib/utimens.h (futimens): New decl.
67907
67908 2004-11-23  Jim Meyering  <jim@meyering.net>
67909
67910         * lib/getopt_.h: Remove trailing blanks.
67911
67912 2004-11-23  Jim Meyering  <jim@meyering.net>
67913
67914         * lib/__fpending.c: Add comment.
67915
67916 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * modules/canonicalize (Depends-on): Add xreadlink.
67919         Problem reported by James Youngman.
67920
67921 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67924         New macros.
67925         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67926         optopt): Use them instead of invoking ## directly; otherwise, the
67927         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67928
67929 2004-11-19  Bruno Haible  <bruno@clisp.org>
67930
67931         * lib/strtok_r.c: Move comments from here...
67932         * lib/strtok_r.h: ... to here.
67933
67934 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67937         implementations that mishandle size_t overflow.
67938
67939 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67942         might fail.  Problem reported by Yoann Vandoorselaere.
67943         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67944         implementations that mishandle size_t overflow.
67945
67946 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * modules/canon-host (Depends-on): Add strdup.
67949
67950 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67951
67952         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67953
67954 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         * lib/canon-host.c: Include "strdup.h".
67957         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67958         Use strdup instead of malloc/strcpy to duplicate strings.
67959
67960         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67961         (human_space_before_unit): New constant.
67962         * lib/human.c (human_readable): Support it.
67963
67964         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67965         (xgetcwd): Set errno correctly when failing.
67966         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67967         the failure is actually due to a PATH_MAX problem.
67968
67969         Further getopt changes to make it more likely that glibc will
67970         buy the changes back.
67971         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67972         (getopt): Use it, so to preserve glibc semantic
67973         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67974         when compiling for libc.
67975         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67976         (getopt_long, getopt_long_only): Use it.
67977
67978         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67979         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67980         (getopt): Argv is now char * const *, as per standard.
67981         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67982         not char *__getopt_argv_const *.
67983         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67984         _getopt_long_only_r): Likewise.
67985         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67986         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67987         _getopt_long_r, _getopt_long_only_r): Likewise.
67988         * lib/getopt_.h (__getopt_argv_const): Remove.
67989         (getopt): Argv is now char * const *, as per standard.
67990
67991         * lib/getdate.y (tORDINAL): New token.
67992         (day, relunit): Allow it for relative times.
67993         (relative_time_table): Use tORDINAL for ordinals.
67994
67995 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67996
67997         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67998         Document that "second" isn't allowed as an ordinal number.
67999
68000 2004-11-16  Jim Meyering  <jim@meyering.net>
68001
68002         * modules/closeout (Depends-on): Add fpending.
68003
68004 2004-11-15  Jim Meyering  <jim@meyering.net>
68005
68006         * lib/closeout.c: Include "__fpending.h" once again.
68007         Include <stdbool.h>.
68008         (close_stdout): Don't fail just because stdout was closed initially,
68009         since some programs don't write to stdout in the normal course of
68010         operation (other than --version and --help), and we don't want this
68011         function to make e.g. `touch file >&-' fail.
68012         But do fail if it was closed and someone has tried to write to it.
68013         E.g., `printf foo >&-' must fail.
68014
68015 2004-11-13  Jim Meyering  <jim@meyering.net>
68016
68017         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68018
68019 2004-11-12  Simon Josefsson  <jas@extundo.com>
68020
68021         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68022         small doc fix is still pending.
68023
68024 2004-11-11  Simon Josefsson  <jas@extundo.com>
68025
68026         * modules/strtok_r: New file.
68027
68028         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68029         strtok_r.
68030
68031 2004-11-11  Simon Josefsson  <jas@extundo.com>
68032
68033         * m4/strtok_r.m4: New file.
68034
68035         * m4/getopt.m4: Replace opterr.
68036
68037 2004-11-11  Simon Josefsson  <jas@extundo.com>
68038
68039         * lib/strtok_r.h, strtok_r.c: New file.
68040
68041 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68042
68043         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68044         of replacing opterr, getopt, etc.  This should handle the
68045         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68046
68047 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68050         we can stop lying to compilers about the constness of argv when we
68051         are compiled outside glibc.
68052         (getopt, getopt_long, getopt_long_only): Use it.
68053         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68054         _getopt_internal, getopt): Likewise.
68055         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68056         _getopt_long_only_r): Likewise.
68057         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68058         _getopt_long_r, _getopt_long_only_r): Likewise.
68059
68060         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68061         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68062         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68063         the other external symbols.
68064         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68065         declaration, since the above renaming now works around collisions.
68066
68067 2004-11-11  Jim Meyering  <jim@meyering.net>
68068
68069         * lib/linebreak.c: Remove trailing blanks.
68070         * lib/alloca_.h: Likewise.
68071         * lib/acosl.c: Likewise.
68072         * lib/euidaccess.c: Likewise.
68073         * lib/allocsa.h: Likewise.
68074
68075 2004-11-10  Simon Josefsson  <jas@extundo.com>
68076
68077         * m4/getaddrinfo.m4: New file.
68078
68079 2004-11-10  Simon Josefsson  <jas@extundo.com>
68080
68081         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68082
68083 2004-11-10  Simon Josefsson  <jas@extundo.com>
68084
68085         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68086         getaddrinfo.
68087
68088         * modules/getaddrinfo: New file.
68089
68090 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68093
68094 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68095
68096         * lib/mktime.c (SHR): New macro, which is a portable
68097         substitute for >> that should work even on Crays.
68098         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68099         Problem reported by Mark D. Baushke in
68100         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68101         * lib/getdate.y (SHR): Likewise.
68102         (tm_diff): Use it.
68103         * lib/strftime.c (SHR): Likewise.
68104         (tm_diff): Use it.
68105         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68106         quote_these_too, so that right shifts are well defined.  All uses
68107         changed.
68108
68109 2004-11-10  Jim Meyering  <jim@meyering.net>
68110
68111         Ensure that no close failure goes unreported.
68112         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68113         return early when it seems there's nothing to flush.
68114         Don't include __fpending.h.
68115
68116 2004-11-10  Jim Meyering  <jim@meyering.net>
68117
68118         * modules/closeout (Depends-on): Remove fpending.
68119
68120 2004-11-10  Jim Meyering  <jim@meyering.net>
68121
68122         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68123
68124 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68125
68126         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68127         gl_FUNC_STRFTIME.
68128         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68129         and AC_REQUIRE when possible, to avoid duplicate checks.
68130         Check for <wchar.h>.
68131
68132 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68133
68134         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68135
68136 2004-11-09  Bruno Haible  <bruno@clisp.org>
68137
68138         * m4/sockpfaf.m4: New file.
68139
68140 2004-11-05  Bruno Haible  <bruno@clisp.org>
68141
68142         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68143         Reported by Mark D. Baushke <mdb@cvshome.org>.
68144
68145 2004-11-04  Bruno Haible  <bruno@clisp.org>
68146
68147         2004-09-11  Bruno Haible  <bruno@clisp.org>
68148                 * allocsa.valgrind: New file.
68149         2004-02-06  Bruno Haible  <bruno@clisp.org>
68150                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68151                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68152                 Reported by Christopher Seip <chris.seip@hp.com>.
68153
68154 2004-11-04  Bruno Haible  <bruno@clisp.org>
68155
68156         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68157         (Makefile.am): Distribute it.
68158
68159 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68162         with errno == ERANGE if the buffer is too small.
68163         Problem reported by Mark D. Baushke.
68164
68165 2004-11-03  Albert Chin  <china@thewrittenword.com>
68166             Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68169         equivalent, substitute $ac_type for equivalent type rather than
68170         blindly using uint32_t *always* which won't work if uint32_t is not
68171         available.  Define _UINT32_T to work around typedef of uint32_t if
68172         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68173         2.5.1.
68174
68175 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * m4/jm-macros.m4: Sync from coreutils.
68178         (gl_MACROS): Check for mbrlen, for pathchk.
68179         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68180
68181 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68182
68183         * lib/xreadlink.c (MAXSIZE): New macro.
68184         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68185         size does not exceed MAXSIZE.  Avoid cast.
68186         As suggested by Mark D. Baushke in
68187         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68188         if readlink fails with buffer size just under MAXSIZE, try again
68189         with MAXSIZE.
68190
68191 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68194
68195 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68196         and  Paul Eggert  <eggert@cs.ucla.edu>
68197
68198         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68199         (get_date): Overparenthesize to avoid GCC warning.
68200
68201 2004-11-02  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68204         returns void.
68205
68206 2004-11-02  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68209         function returns void.
68210
68211 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68214         fflush_unlocked, flockfile, funlockfile, funlockfile,
68215         fputs_unlocked, putc_unlocked.
68216
68217 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68218
68219         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68220         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68221         already declared.
68222
68223 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68224
68225         * modules/getdate (Files): Add doc/getdate.texi.
68226         (Depends-on): Add setenv, xalloc.
68227
68228 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68229
68230         * lib/getdate.y: Add support for TZ="foo" within a date string.
68231         Fix some bugs near time_t boundaries.  Reject dates with
68232         out-of-range components, e.g., "Sept 31".
68233         Include <stdlib.h>, "setenv.h", "xalloc.h".
68234         (ISDIGIT_LOCALE): Remove; unused.
68235         Note that the TZ and time functions used here are not reentrant.
68236         (mktime_ok, get_tz): New functions.
68237         (TZBUFSIZE): New constant.
68238         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68239         This requires that we sometimes generate our own TZ="XXX..." setting.
68240
68241 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * doc/getdate.texi: New file, from coreutils with modifications for
68244         the new TZ parsing.
68245
68246 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68247
68248         * lib/mktime.c (not_equal_tm): Remove redundant check.
68249
68250 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         * modules/regex (lib_SOURCES): Add regex.c.
68253         Reported by James Youngman in
68254         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68255
68256 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         * lib/getdate.y: Use Bison 1.875 features, and some minor
68259         code cleanups.  This change does not affect semantics.
68260         Don't include <stdlib.h>; no longer needed.
68261         Don't include unlocked-io.h; only the "#if TEST" code uses
68262         stdio, and performance isn't crucial there.
68263         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68264         Bison 1.875 features as described below.
68265         All uses of "PC." replaced by "pc->".
68266         (YYSTYPE): Add a forward declaration.
68267         (yylex, yyerror): Use full prototypes in forward decls.
68268         Use "%pure-parser" rather than obsolescent "%pure_parser".
68269         Use %parse-param and %lex-param instead of obsolescent
68270         YYPARSE_PARAM and YYLEX_PARAM.
68271         (meridian_table, month_and_day_table, time_units_table,
68272         relative_time_table, time_zone_table, military_table,
68273         lookup_zone, lookup_word, get_date):
68274         Use NULL instead of 0 where appropriate.
68275         (to_hour): Avoid abort (), to avoid a dependency on
68276         stdlib.h.
68277         (yyerror, yylex): Now accepts parser_control * arg.
68278         (main) [TEST]: Use '\0' rather than 0 for char.
68279
68280 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68281
68282         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68283
68284 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68285
68286         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68287         It's now the caller's responsibility to handle the case where
68288         !HAVE_GETPAGESIZE && !defined getpagesize.
68289
68290         * lib/mktime.c (leapyear): Arg is long int, not int.
68291
68292 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68295
68296 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68299         missing.  Problem reported by James Youngman.
68300
68301 2004-10-16  Simon Josefsson  <jas@extundo.com>
68302
68303         * gnulib-tool: Fix comments.  Fix parse problem.
68304         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68305
68306 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68309         implementation of getopt_long.  Problem reported by Alexander Taler in:
68310         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68311
68312 2004-10-15  Bruno Haible  <bruno@clisp.org>
68313
68314         * gnulib-tool: Untabify. Initialize supplied_libname.
68315         (func_usage): More homogenous output.
68316         (func_modules_transitive_closure, func_modules_to_filelist,
68317         func_emit_lib_Makefile_am): New functions.
68318         (func_import): New function, extracted from big case statement. Use
68319         func_get_license, func_modules_transitive_closure,
68320         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68321         opt_lgpl. Don't use test -a, as it's not portable.
68322         (func_create_testdir): Use func_modules_transitive_closure,
68323         func_modules_to_filelist, func_emit_lib_Makefile_am.
68324
68325 2004-10-15  Bruno Haible  <bruno@clisp.org>
68326
68327         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68328
68329 2004-10-15  Bruno Haible  <bruno@clisp.org>
68330
68331         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68332         the portions belonging to each module.
68333         Suggested by Derek Robert Price <derek@ximbiot.com>.
68334
68335 2004-10-12  Simon Josefsson  <jas@extundo.com>
68336
68337         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68338         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68339         to real functions.
68340
68341 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68342
68343         * modules/vsnprintf: New file.
68344
68345 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68346
68347         * m4/vsnprintf.m4: New file.
68348
68349 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68350
68351         * lib/vsnprintf.h: New file.
68352         * lib/vsnprintf.c: New file.
68353
68354 2004-10-11  Bruno Haible  <bruno@clisp.org>
68355
68356         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68357         vsnprintf.
68358
68359 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68362
68363 2004-10-07  Bruno Haible  <bruno@clisp.org>
68364
68365         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68366         fits into the provided buffer.
68367
68368 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * lib/diacrit.c, diacrit.h: Add GPL notice.
68371
68372         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68373         notice.
68374         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68375         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68376         This avoids a potential constant-folding bug.
68377
68378 2004-10-05  Bruno Haible  <bruno@clisp.org>
68379
68380         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68381         for the declaration of strsep.
68382
68383 2004-10-05  Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68386
68387 2004-10-04  Simon Josefsson  <jas@extundo.com>
68388
68389         * modules/memmem: New file.
68390         * tests/test-memmem.c: New file.
68391         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68392
68393 2004-10-04  Simon Josefsson  <jas@extundo.com>
68394
68395         * m4/memmem.m4: New file.
68396
68397 2004-10-04  Simon Josefsson  <jas@extundo.com>
68398
68399         * lib/memmem.h: New file.
68400         * lib/memmem.c: New file, taken from glibc.
68401
68402 2004-10-04  Simon Josefsson  <jas@extundo.com>
68403
68404         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68405         '#ifdef USE_UNLOCKED_IO'.
68406
68407 2004-10-04  Simon Josefsson  <jas@extundo.com>
68408
68409         * config/srclist.txt: Add memmem from glibc.
68410
68411 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68414
68415         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68416         modules/exclude, modules/getdate, modules/getline,
68417         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68418         modules/getusershell, modules/linebuffer, modules/md5,
68419         modules/mountlist, modules/posixtm, modules/readtokens,
68420         modules/readutmp, modules/regex, modules/sha1,
68421         modules/version-etc, modules/yesno:
68422         Remove dependency on unlocked-io.
68423
68424 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68425
68426         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68427
68428         * m4/unlocked-io.m4: Add copyright notice.
68429         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68430
68431 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68434         * lib/xmalloc.c (xmemdup): Likewise.
68435         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68436         XFREE): Remove these long-obsolescent macros.
68437         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68438         * lib/xstrdup.c: Remove.
68439
68440         * lib/regex.c (re_comp): Cast gettext return value to char *,
68441         Problem reported by Martin Neitzel via Mark D. Baushke.
68442
68443 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68446         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68447         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68448         regex.c, sha1.c, version-etc.c, yesno.c:
68449         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68450         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68451         the includer's responsibility.
68452
68453         Sync from coreutils.
68454
68455         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68456         points to the start of a string, as the C Standard says the
68457         resulting behavior is undefined.
68458
68459         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68460         simple -> simple_backups, numbered_existing ->
68461         numbered_existing_backups, numbered -> numbered_backups
68462         to avoid shadowing problems.  All uses changed.
68463         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68464         * lib/backupfile.c (check_extension, numbered_backup):
68465         Rename locals to avoid shadowing 'basename'.
68466         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68467         once.
68468
68469         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68470         * lib/.cvsignore: Add getopt.h.
68471
68472 2004-10-04  Bruno Haible  <bruno@clisp.org>
68473
68474         * modules/README: New file.
68475         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68476         not a module.
68477
68478 2004-10-02  Jim Meyering  <jim@meyering.net>
68479
68480         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68481
68482 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68483
68484         * modules/strsep: New file.
68485
68486 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68487
68488         * m4/strsep.m4: New file.
68489
68490 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68491
68492         * lib/strsep.h: New file.
68493         * lib/strsep.c: New file.
68494
68495 2004-10-01  Simon Josefsson  <jas@extundo.com>
68496
68497         * lib/snprintf.c (snprintf): Handle size==0.
68498
68499 2004-10-01  Simon Josefsson  <jas@extundo.com>
68500             Bruno Haible  <bruno@clisp.org>
68501
68502         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68503         (snprintf): Declare 'args'.
68504
68505 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68506
68507         * lib/snprintf.c: Remove comments as to why each header is needed.
68508
68509 2004-10-01  Bruno Haible  <bruno@clisp.org>
68510
68511         * MODULES.html.sh: Add strsep.
68512
68513 2004-09-30  Simon Josefsson  <jas@extundo.com>
68514
68515         * modules/snprintf: New file.
68516
68517 2004-09-30  Simon Josefsson  <jas@extundo.com>
68518
68519         * m4/snprintf.m4: New file.
68520
68521 2004-09-30  Simon Josefsson  <jas@extundo.com>
68522
68523         * lib/snprintf.h, lib/snprintf.c: New files.
68524
68525 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68526
68527         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68528         (hol_entry_help): Never translate an empty string.
68529         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68530         * lib/argp.h (OPTION_NO_TRANS): New option.
68531
68532 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * modules/argp (Maintainer): Replace Simon Josefsson
68535         by Sergey Poznyakoff.
68536
68537 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68540         changes merged back into glibc.
68541
68542 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68543
68544         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68545
68546 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68547
68548         * lib/xvasprintf.c: Include xalloc.h.
68549         (xvasprintf): Use xalloc_die, not xmalloc_die.
68550
68551 2004-09-29  Bruno Haible  <bruno@clisp.org>
68552
68553         * modules/alloca-opt: New file, derived from modules/alloca.
68554         * modules/allocsa: Depend on alloca-opt instead of alloca.
68555         * modules/setenv: Likewise.
68556         * modules/vasnprintf: Likewise.
68557         * MODULES.html.sh: Add alloca-opt.
68558
68559 2004-09-28  Simon Josefsson  <jas@extundo.com>
68560
68561         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68562         LGPL, and to replace license template from GPL to LGPL.
68563
68564 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * modules/dummy: Change license to LGPL.
68567
68568 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68571
68572 2004-09-24  Simon Josefsson  <jas@extundo.com>
68573
68574         * modules/minmax (License): Change from GPL to LGPL.
68575
68576 2004-09-23  Simon Josefsson  <jas@extundo.com>
68577
68578         * gnulib-tool (--import): Typo.
68579
68580 2004-09-23  Simon Josefsson  <jas@extundo.com>
68581
68582         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68583
68584 2004-09-22  Bruno Haible  <bruno@clisp.org>
68585
68586         * modules/*: Add 'License' field.
68587         * gnulib-tool: Accept --extract-license option.
68588         (func_get_license): New function.
68589
68590 2004-09-21  Bruno Haible  <bruno@clisp.org>
68591
68592         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68593         Reported by Simon Josefsson.
68594
68595 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68598         gl_AC_TYPE_LONG_LONG.
68599
68600 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68601
68602         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68603
68604 2004-09-18  Simon Josefsson  <jas@extundo.com>
68605         and  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68608         calls with autoreconf.  Define GL_LIB.
68609
68610 2004-09-14  Karl Berry  <karl@gnu.org>
68611
68612         * config/srclist.txt: unsync setenv.c, sigh.
68613
68614 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68617         Problem reported by Bruno Haible in:
68618         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68619
68620 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * config/srclist.txt: Comment out argp-pvh.c.
68623
68624 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68625
68626         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68627         in case some system header has #define'd it.  Problem reported by
68628         Soeren D. Schulze in
68629         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68630
68631 2004-09-09  Karl Berry  <karl@gnu.org>
68632
68633         * regex.[ch]: delete from the root.  These were supposed to be
68634                 synced with emacs cvs, but this has not happened for about
68635                 a year, and anyway nothing else uses emacs regex.[ch].
68636                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68637                 lib/regex[.ch] is untouched.
68638
68639 2004-09-09  Bruno Haible  <bruno@clisp.org>
68640
68641         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68642
68643 2004-09-09  Bruno Haible  <bruno@clisp.org>
68644
68645         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68646         modifications.
68647         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68648
68649 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68650
68651         * modules/xvasprintf: New file.
68652         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68653
68654 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68655
68656         * lib/xvasprintf.h: New file.
68657         * lib/xvasprintf.c: New file.
68658         * lib/xasprintf.c: New file.
68659
68660 2004-09-08  Bruno Haible  <bruno@clisp.org>
68661
68662         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68663
68664 2004-09-08  Bruno Haible  <bruno@clisp.org>
68665
68666         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68667         length is > INT_MAX.
68668         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68669         more.
68670
68671 2004-09-08  Bruno Haible  <bruno@clisp.org>
68672
68673         * lib/stdint_.h: New file, taken from GNU clisp.
68674
68675 2004-09-08  Bruno Haible  <bruno@clisp.org>
68676             Oskar Liljeblad  <oskar@osk.mine.nu>
68677
68678         * modules/stdint: New file.
68679         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68680
68681 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68682
68683         Import from coreutils.
68684         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68685         strings on unbounded length.  alloca's performance benefits aren't
68686         that important here.
68687         (V_STRDUP): Remove.
68688         (parse_with_separator): New function, with most of the internals
68689         of the old parse_user_spec.  Allow user to omit both user and group,
68690         for compatibility with FreeBSD.
68691         Clone only the user name, not the entire spec.
68692         Do not set *uid, *gid unless entirely successful.
68693         Avoid memory leak in some failing cases.
68694         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68695         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68696         (parse_user_spec): Rewrite to use parse_with_separator.
68697
68698 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68699
68700         * modules/userspec: Don't depend on alloca.
68701
68702 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68703
68704         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68705
68706 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68707
68708         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68709         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68710         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68711
68712 2004-08-16  Simon Josefsson  <jas@extundo.com>
68713
68714         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68715         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68716         Add --dry-run for --import.
68717         Let user provided command line parameters override configure.ac
68718         settings.
68719
68720 2004-08-12  Simon Josefsson  <jas@extundo.com>
68721
68722         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68723         as discussed with Paul Eggert in threads rooted at
68724         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68725         and
68726         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68727         Before, the test was empty, and relied on ELIDE_CODE in source
68728         code.)
68729         (gl_PREREQ_GETOPT): New macro.
68730         (gl_GETOPT): Use them.
68731
68732 2004-08-12  Simon Josefsson  <jas@extundo.com>
68733
68734         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68735         * lib/getopt_.h: Renamed from getopt.h.
68736
68737 2004-08-12  Simon Josefsson  <jas@extundo.com>
68738
68739         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68740         Change default library name from libfoo to libgnu.
68741         Now, if you have a configure.ac that says:
68742                 gl_SOURCE_BASE(gl)
68743                 gl_M4_BASE(gl/m4)
68744                 gl_MODULES(error getopt etcetera)
68745                 gl_INIT
68746         you can import all you need by running:
68747                 ../gnulib/gnulib-tool --import
68748
68749         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68750         (Makefile.am): Rewrite, use logic from argz.
68751         (Include): Use <getopt.h> instead of "getopt.h".
68752
68753 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * modules/argp (Files): Add m4/unlocked-io.m4.
68756         (Depends-on): Add extensions.
68757
68758 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68759
68760         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68761         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68762         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68763         Check for program_invocation_name, program_invocation_short_name,
68764         flockfile, funlockfile, features.h, _getopt_long_only_r.
68765
68766 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68767
68768         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68769         its complicated substitute.
68770         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68771         and program_invocation_name.
68772         (__argp_basename) [!_LIBC]: Remove; the only use was
68773         replaced by its body.
68774         (__argp_short_program_name): Change condition from
68775         !defined __argp_short_program_name to
68776         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68777         to match argp-namefrob.h.
68778         (__argp_failure): Don't assume strerror_r returns char *.
68779         * lib/argp-parse.c (N_): Define unconditionally.
68780         (argp_default_options): Fill out initializers with 0 to avoid
68781         gcc warnings.
68782
68783 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68786         getopt1.c.
68787
68788 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68789
68790         Merge from coreutils.
68791
68792         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68793
68794         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68795         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68796
68797 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         Merge from coreutils.
68800
68801         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68802         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68803         for Reliant Unix 5.43.
68804
68805         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68806         (union fooround): Use uintmax_t, not long int.
68807         The rest is a merge from libc:
68808         [defined _LIBC]: Include <shlib-compat.h>.
68809         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68810
68811         * lib/settime.c (settime): Recode to avoid warning with
68812         Sun Forte C 6U2.
68813
68814         * lib/strverscmp.c: Convert to UTF-8.
68815
68816 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68817
68818         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68819         m4/uintmax_t.m4.
68820
68821 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68822
68823         * modules/xalloc-die: New file.
68824         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68825
68826         * modules/md5 (Files): Add m4/uint32_t.m4.
68827         * modules/sha1: Renamed from modules/sha.
68828         (Files):
68829         Rename lib/sha.h to lib/sha1.h.
68830         Rename lib/sha.c to lib/sha1.c.
68831         Rename m4/sha.m4 to m4/sha1.m4.
68832         (lib_SOURCES): Likewise.
68833         (configure.ac): Rename gl_SHA to gl_SHA1.
68834         (Include): sha.h -> sha1.h.
68835
68836 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68839         * m4/sha1.m4: Renamed from sha.m4.
68840         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68841
68842 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * lib/obstack.h (obstack_empty_p):
68845         Don't assume that chunk->contents is suitably aligned.
68846         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68847         Likewise. Problem reported by Benno in
68848         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68849
68850         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68851         readable.  This could be improved further but it'd take some work.
68852
68853 2004-08-08  Simon Josefsson  <jas@extundo.com>
68854
68855         * modules/xgethostname (Depends-on): Remove exit and error (not
68856         used).
68857
68858         * modules/getpass-gnu: Add getpass.h.
68859         (Depends-on): Add stdbool.
68860         * modules/getpass: Add getpass.h.
68861
68862 2004-08-08  Simon Josefsson  <jas@extundo.com>
68863
68864         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68865         Check getpass declaration.
68866
68867 2004-08-08  Simon Josefsson  <jas@extundo.com>
68868
68869         * lib/xgethostname.c: Don't include error.h (not used).
68870
68871         * lib/getpass.h: Add.
68872         * lib/getpass.c: Include getpass.h first.
68873
68874 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * lib/xalloc-die.c: New file.
68877         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68878         All uses removed.
68879         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68880         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68881         xalloc-die.c.
68882         (_, N_, xalloc_die): Move to xalloc-die.c.
68883         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68884         so that we needn't mess with xalloc_msg_memory_exhausted.
68885
68886         * lib/sha1.h: Renamed from sha.h.
68887         (SHA1_H): Renamed from _SHA_H.
68888         (sha1_ctx): Renamed from sha_ctx.
68889         (sha1_init_ctx): Renamed from sha_init_ctx.
68890         (sha1_process_block): Renamed from sha_process_block.
68891         (sha1_process_bytes): Renamed from sha_process_bytes.
68892         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68893         (sha1_read_ctx): Renamed from sha_read_ctx.
68894         (sha1_stream): Renamed from sha_stream.
68895         (sha1_buffer): Renamed from sha_buffer.
68896         * lib/sha1.c: Likewise; renamed from sha.c.
68897         Do not include <sys/types.h>.
68898         Include <stddef.h> rather than <stdlib.h>.
68899
68900 2004-08-08  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68903         FILESYSTEM_PREFIX_LEN.
68904         * lib/progreloc.c: Likewise.
68905         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68906
68907 2004-08-06  Simon Josefsson  <jas@extundo.com>
68908
68909         * modules/progname (Depends-on): Don't depend on stdbool.
68910
68911 2004-08-06  Simon Josefsson  <jas@extundo.com>
68912
68913         * modules/getsubopt: New file.
68914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68915         getsubopt.
68916
68917 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         More merge from coreutils.
68920
68921         * m4/utimens.m4, m4/utimecmp.m4: New files.
68922         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68923         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68924         prereq.m4, sha.m4: Import changes from coreutils.
68925
68926 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68927
68928         More merge from coreutils.
68929         * modules/raise, modules/readtokens0, modules/utimens:
68930         * modules/utimecmp, module/xnanosleep: New files.
68931         * modules/strftime: Add lib/strftime.h.
68932         Change include from <time.h> to "strftime.h".
68933         * modules/yesno: Add lib/yesno.h.
68934         * modules/backupfile: Remove lib/addext.c.
68935         * modules/euidaccess: Add stat-macros.h.
68936         * modules/canonicalize, modules/euidaccess,
68937         modules/filemode, modules/lchown, modules/makepath,
68938         modules/rmdir, modules/stat: Likewise.
68939
68940 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         Merge from tar.
68943         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68944         SIZE_MAX is a valid preprocessor constant.
68945         (__argp_basename): Change from "#ifndef _LIBC"
68946         to "#ifndef __argp_short_program_name", so that
68947         we don't compile these functions for tar.
68948
68949         More merges from coreutils.
68950         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68951         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68952         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68953         * lib/addext.c: Remove; no longer needed.
68954         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68955         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68956         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68957         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68958         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68959         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68960         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68961         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68962         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68963         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68964         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68965         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68966         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68967         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68968         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68969         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68970         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68971         Import changes from coreutils.
68972
68973 2004-08-05  Simon Josefsson  <jas@extundo.com>
68974
68975         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68976
68977 2004-08-05  Simon Josefsson  <jas@extundo.com>
68978
68979         * m4/getsubopt.m4: New file.
68980
68981 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68982
68983         Merge from coreutils.
68984
68985         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68986         * m4/getcwd-path-max.m4: New files.
68987
68988         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68989         FILESYSTEM_PREFIX_LEN ->
68990         FILE_SYSTEM_PREFIX_LEN.
68991         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68992         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68993         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68994         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68995
68996         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68997         prerequisite modules now handle the DOS stuff.
68998         Don't check for unistd.h.
68999
69000 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69001
69002         Merge from coreutils.
69003
69004         * lib/.gdb-history: Remove; this doesn't belong here.
69005
69006         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69007         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69008         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69009         * lib/getcwd.c: New files.
69010
69011         * lib/dirname.h: Include <stdbool.h>.
69012         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69013         for consistency with POSIX terminology.  All uses changed.
69014         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69015         (strip_trailing_slashes): Use bool for booleans.
69016         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69017
69018         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69019         sometimes returns a positive errno value even when it succeeds.
69020         (print_errno_message) [!LIBC]: Fall back on strerror if
69021         __strerror_r fails.
69022
69023         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69024         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69025         (longest_relative_suffix): New function.
69026         (path_concat): Use it.  Assume first argument is not NULL.
69027         Port to DOS.  Omit redundant separators.
69028         Report an error instead of returning NULL.
69029         Use mempcpy instead of memcpy.
69030         (xpath_concat): Remove: not declared or used.
69031
69032         * lib/same.h: Include <stdbool.h>
69033         (same_name): Return bool, not int.
69034         * lib/same.c (same_name): Likewise.
69035         (errno): Don't declare; we assume C89 or better now.
69036
69037         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69038         if not already defined.
69039
69040         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69041         * lib/dup-safer.c (errno): Likewise.
69042
69043 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         Merge from coreutils.
69046         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69047         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69048         * modules/path-concat: Don't depend on strdup.
69049
69050 2004-08-03  Simon Josefsson  <jas@extundo.com>
69051
69052         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69053         * lib/progname.h: Don't include stdbool.h.
69054
69055 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69058         * MODULES.html.sh (func_all_modules): Remove fatal.
69059
69060 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69063
69064 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69067         working.
69068
69069 2004-08-02  Simon Josefsson  <jas@extundo.com>
69070
69071         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69072         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69073         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69074
69075 2004-08-01  Simon Josefsson  <jas@extundo.com>
69076
69077         * lib/xgetdomainname.c: Include stdlib.h, for free().
69078
69079 2004-07-19  Bruno Haible  <bruno@clisp.org>
69080
69081         * MODULES.html.sh (func_all_modules): Add dummy.
69082
69083 2004-07-16  Simon Josefsson  <jas@extundo.com>
69084
69085         * modules/dummy: New file.
69086
69087 2004-07-16  Simon Josefsson  <jas@extundo.com>
69088
69089         * lib/dummy.c: New file.
69090
69091 2004-07-16  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/backupfile.h: Add extern "C" for C++.
69094         * lib/closeout.h: Likewise.
69095         * lib/copy-file.h: Likewise.
69096         * lib/findprog.h: Likewise.
69097         * lib/full-write.h: Likewise.
69098         * lib/pathname.h: Likewise.
69099         * lib/progname.h: Likewise.
69100         * lib/stpcpy.h: Likewise.
69101         * lib/stpncpy.h: Likewise.
69102         * lib/strcase.h: Likewise.
69103         * lib/strstr.h: Likewise.
69104         * lib/xalloc.h: Likewise.
69105
69106         * lib/mbswidth.h: Add extern "C" for C++.
69107         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69108
69109 2004-07-13  Robert Millan  <robertmh@gnu.org>
69110
69111         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69112
69113 2004-07-09  Simon Josefsson  <jas@extundo.com>
69114
69115         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69116         failed without this.)
69117
69118 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69119
69120         * modules/chown (Files): Add lib/fchown-stub.c, since
69121         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69122
69123 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69124
69125         * lib/fchown-stub.c: New file.
69126
69127 2004-06-24  Jim Meyering  <jim@meyering.net>
69128
69129         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69130
69131 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69132
69133         * modules/argz: Omit "#include".
69134
69135         * MODULES.html.sh (func_all_modules): Add calloc, to match
69136         2004-06-01 addition of calloc module.
69137
69138 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * m4/argz.m4: New file, which is autoupdated from libtool.
69141
69142 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69145         libtool.
69146
69147 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69148
69149         * config/srclist-update: Don't insist on "USA." before the
69150         close-comment, as libtool omits the period and puts the */ on a
69151         separate line.
69152         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69153         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69154
69155 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69156
69157         * modules/argz: New file.
69158         * MODULES.html.sh (func_all_modules): Add argz.
69159
69160 2004-06-12  Jim Meyering  <jim@meyering.net>
69161         and  Paul Eggert  <eggert@cs.ucla.edu>
69162
69163         * modules/hash (Files): Add lib/xalloc.h.
69164         * modules/pipe (Depends-on): Add wait-process.
69165         * modules/stat (Depends-on): Add xalloc.
69166         * modules/userspec (Files): Add lib/userspec.h.
69167         * modules/xstrto
69168
69169         Upgrade from gettext-0.13.
69170         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69171         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69172         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69173
69174 2004-06-10  Jim Meyering  <jim@meyering.net>
69175
69176         * lib/calloc.c: New file.
69177
69178 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * lib/getdate.y (yylex): Allow space between sign and number.
69181         Problem reported by Dan Jacobson.
69182
69183 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         Merge from coreutils CVS.
69186
69187         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69188         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69189         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69190         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69191         xstrtol.m4: Fix copyright date and/or serial number.
69192
69193         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69194         See if we need an fchown replacement.
69195         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69196         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69197         and use the replacement function if we detect either defect.
69198
69199         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69200         gl_UTIMECMP.
69201
69202 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69203         and  Jim Meyering  <jim@meyering.net>
69204
69205         Merge from coreutils CVS.
69206
69207         * lib/stat-macros.h: New file, with contents from file-type.h
69208         and coreutils' system.h.
69209         * lib/file-type.c: Include "stat-macros.h".
69210         * lib/file-type.h (file_type): Move all macro definitions to new file,
69211         stat-macros.h.
69212
69213         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69214         Wrap old code with this conditional.
69215         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69216         function that does not dereference symlinks.
69217         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69218
69219         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69220         dependency problems.
69221         (xreadlink): Accept new arg SIZE, for efficiency.
69222         All decls and uses changed.
69223         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69224
69225         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69226         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69227
69228         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69229         sysexits.h.
69230
69231 2004-06-01  Jim Meyering  <jim@meyering.net>
69232
69233         * m4/calloc.m4: New file.
69234
69235 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69238         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69239         Also, fix a typo in a diagnostic.
69240
69241 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69244         or AC_FUNC_REALLOC.
69245
69246 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69249         macros to be defined.
69250         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69251         the allocator returns NULL because the requested size is zero.
69252
69253 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69254
69255         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69256         var.  Add comment explaining why libc still defines it.  This
69257         merges the following patch from glibc:
69258         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69259
69260 2004-05-20  Andreas Schwab  <schwab@suse.de>
69261
69262         * m4/free.m4: Replace free if it not known to work, not the other
69263         way round.
69264
69265 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69266
69267         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69268         present in glibc since revision 1.1 of this file.
69269         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69270         obstack_alignment_mask, obstack_alloc, obstack_base,
69271         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69272         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69273         obstack_grow0, obstack_init, obstack_int_grow,
69274         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69275         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69276         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69277         nonexistent functions.
69278
69279 2004-05-18  Karl Berry  <karl@gnu.org>
69280
69281         * config/srclist.txt: break link for vasnprintf.c.
69282
69283 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         Port obstack to the AS/400, where pointers are 16 bytes wide and
69286         you cannot cast an integer to a valid pointer.  This patch is
69287         currently waiting to be integrated into glibc; see
69288         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69289
69290         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69291         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69292         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69293         (struct obstack): temp member is now a union of a pointer and
69294         an integer, instead of an integer.  All integer uses changed.
69295         This does not affect the physical layout of struct obstack,
69296         except on hosts (like the AS/400) where the size or alignment of
69297         void * is greater than that of ptrdiff_t.
69298         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69299         __STDC__)]: Store temporary in pointer member of union, not
69300         integer member.
69301         * lib/obstack.c: Include <stddef.h>, for offsetof.
69302         (struct fooalign): Remove; it doesn't need a name.
69303         (union fooround): Change double to long double, and add void *.
69304         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69305         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69306         not a macro.  Hence the values are always int; so remove all
69307         casts-to-int in uses.
69308
69309 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69312         we can get this patch merged into glibc.
69313
69314 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69315             Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * m4/argp: Depend on alloca.
69318
69319 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69320             Paul Eggert  <eggert@cs.ucla.edu>
69321
69322         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69323         freecoding.
69324
69325 2004-05-17  Bruno Haible  <bruno@clisp.org>
69326
69327         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69328         precision that consists of a '.' followed by an empty digit string.
69329         Patch by Tor Lillqvist <tml@iki.fi>.
69330
69331 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69334         for backward compatibility with older code.  We need our own
69335         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69336         it under some other name, and our alloca.h will define it.
69337
69338 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69339             Derek Price  <derek@ximbiot.com>
69340
69341         * lib/alloca.c: Include <alloca.h>, to get our interface.
69342         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69343         include <alloca.h> first.  Use C89 prototype for alloca; this
69344         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69345         Use #elif for simplicity, since we can assume C89 now.
69346         Don't try to source the system alloca.h since it will not be found
69347         and to prevent recursively including its replacement.
69348         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69349         * lib/regex.c: Likewise.
69350
69351 2004-05-16  Derek Price  <derek@ximbiot.com>
69352             Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         getline cleanup.  This changes the getndelim2 API: both order of
69355         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69356         no delimiter).
69357
69358         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69359         interface does that.
69360         (getline): Always use getdelim, so that we don't have two
69361         copies of this code.
69362         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69363         if available.
69364         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69365         (GETNDELIM2_MAXIMUM): New macro.
69366         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69367         instead of the old practice of delim2==0.  All callers changed.
69368         Return -1 on overflow, instead of returning junk.
69369         Do not set *linesize unless allocation succeeds.
69370         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69371         that we include sys/types.h.
69372         * lib/getnline.h: Likewise.
69373         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69374         (getndelim2): Reorder arguments.
69375         * lib/getnline.c (getnline, getndelim):
69376         Don't discard the NMAX argument.
69377         (getnline): Invoke getndelim, to avoid code duplication.
69378         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69379         of (size_t) -1 by callers of the getnline family.
69380
69381 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69384         Check for gettimeofday.
69385         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69386         Check for settimeofday, stime.
69387
69388 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * lib/nanosleep.c (suspended): Change its type from int to
69391         sig_atomic_t volatile.
69392         (first_call): Make it private to rpl_nanosleep, and have it
69393         be zero initially as that's a bit faster.
69394         (my_usleep): Round up fractional times instead of truncating them,
69395         as this is the usual meaning for 'sleep'.
69396
69397         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69398         doesn't work.
69399         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69400         (ENOSYS): Define if not defined.
69401         (settime): Fall back on stime if it exists and settimeofday fails.
69402         But don't bother with fallbacks if a method fails with errno == EPERM.
69403
69404 2004-05-11  Jim Meyering  <jim@meyering.net>
69405
69406         Prior to this change, the save_cwd caller required read access to the
69407         current directory on most systems (ones with the fchdir function).
69408
69409         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69410         fails, try write-only, and finally, resort to using xgetcwd.
69411
69412 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * lib/obstack.c, obstack.h: Import changes from libc.
69415
69416 2004-04-28  Bruno Haible  <bruno@clisp.org>
69417
69418         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69419         also implicitly appends .exe to executables.
69420         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69421         accepts Windows pathnames.
69422         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69423         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69424         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69425         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69426         Reported by Derek Robert Price <derek@ximbiot.com>.
69427
69428 2004-04-21  Karl Berry  <karl@gnu.org>
69429
69430         * config/srclist.txt (localcharset.c): break sync.
69431
69432 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69433
69434         * m4/host-os.m4: Add a copyright notice.
69435
69436 2004-04-20  Jim Meyering  <jim@meyering.net>
69437
69438         Change UTILS_ to gl_ in AC_DEFINE'd names.
69439         Change utils_- and jm_-prefixed variables, too.
69440         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69441         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69443
69444         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69445         Don't emit trailing blanks.
69446         Also rename jm_-prefixed variables to have gl_ prefix.
69447
69448         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69449         Also rename jm_-prefixed variables to have gl_ prefix.
69450
69451         * m4/jm-macros.m4: Reflect the renamings.
69452         * m4/prereq.m4: Likewise.
69453
69454 2004-04-20  Jim Meyering  <jim@meyering.net>
69455
69456         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69457         memory.
69458
69459 2004-04-20  Jim Meyering  <jim@meyering.net>
69460             Bruno Haible  <bruno@clisp.org>
69461
69462         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69463         memory when realloc fails.
69464
69465 2004-04-19  Jim Meyering  <jim@meyering.net>
69466
69467         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69468         now that readutmp.c may call `free (0)'.
69469
69470 2004-04-19  Bruno Haible  <bruno@clisp.org>
69471
69472         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69473         * m4/inttypes_h.m4: Likewise.
69474         * m4/stdint_h.m4: Likewise.
69475         * m4/intmax_t.m4: Likewise.
69476         * m4/uintmax_t.m4: Likewise.
69477
69478 2004-04-18  Jim Meyering  <jim@meyering.net>
69479
69480         * m4/prereq.m4: Don't forbid jm_ prefix.
69481
69482         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69483         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69484         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69485         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69486         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69487         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69488         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69489         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69490         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69491         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69492         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69493         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69494         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69495         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69496         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69497         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69498         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69499         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69500         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69501
69502 2004-04-18  Jim Meyering  <jim@meyering.net>
69503
69504         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69505         failure, don't leak memory and do call END_UTMP_ENT.
69506
69507 2004-04-16  Jim Meyering  <jim@meyering.net>
69508
69509         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69510         coreutils' stat program.
69511         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69512
69513 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69514
69515         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69516         C89.
69517         (CHAR_BIT): Remove, since we assume C89.
69518         Include <stdint.h> if available, as per current Autoconf CVS advice.
69519
69520 2004-03-31  Jim Meyering  <jim@meyering.net>
69521
69522         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69523         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69524         * m4/xalloc.m4: Likewise.
69525
69526 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69527
69528         Merge from coreutils.
69529
69530         * m4/inttostr.m4: New file.
69531         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69532         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69533         Require gl_CLOCK_TIME.
69534         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69535
69536 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69537
69538         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69539         not bool, to be more consistent with Unix conventions.
69540         Suggested by Bruno Haible.
69541
69542         Merge from coreutils.
69543
69544         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69545         * lib/umaxtostr.c: New files.
69546
69547         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69548         the usual <time.h> dance.
69549         (get_date): Change signature to support fractional time stamps.
69550         All callers changed.
69551         * lib/getdate.y: Include "getdate.h" first, as we can now
69552         assume C89 and don't need to worry about 'const'.
69553         Similarly, include "unlocked-io.h" near start, not in middle.
69554         Include <limits.h>.
69555         (textint.value): Use long int rather than int.
69556         (textint.digits): Use size_t rather than int.
69557         (BILLION, LOG10_BILLION): New constants.
69558         (parser_control): New member rel_ns.  Members day_ordinal,
69559         time_zone, month, day, hour, minutes, rel_year, rel_month,
69560         rel_day, rel_hour, rel_minutes, rel_seconds
69561         are now long int, not int.  Member seconds is now struct timespec,
69562         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69563         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69564         not int.
69565         (%union.intval): Now long int, not int.
69566         New member timespec.
69567         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69568         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69569         (spec): Now is a timespec or an item list.
69570         (timespec, items): New nonterminals.
69571         (time, rel, relunit, number, get_date):
69572         Add support for fractional seconds.
69573         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69574         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69575         (to_hour): First arg is now long int, not int.
69576         (to_year): Returns long int, not int.
69577         Don't treat year -70 like 70.
69578         (tm_diff): Returns long int, not int.
69579         (lookup_word): Use bool instead of int when appropriate.
69580         (yylex): Use size_t for count, not int.
69581         Detect overflow when parsing large integer constants.
69582         Add support for fractions.
69583         (get_date): Make pointers 'const' if possible.
69584         Use more-portable code to detect integer overflow.
69585         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69586         Don't use ctime; it's not reliable if the year has >4 digits.
69587
69588         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69589         This is for compatibility with BSD.
69590
69591         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69592         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69593         From coreutils' system.h.
69594
69595         * lib/userspec.c: Don't include "posixver.h".
69596         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69597         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69598         compatible extension.  Simplify code by removing a boolean int
69599         that was always nonzero if a string was nonnull.
69600
69601 2004-03-30  Jim Meyering  <jim@meyering.net>
69602
69603         Merge from coreutils.
69604
69605         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69606         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69607         on some systems one must include <grp.h> before it.
69608         Reported by Christian Krackowizer.
69609
69610 2004-03-30  Jim Meyering  <jim@meyering.net>
69611
69612         Merge from coreutils.
69613
69614         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69615
69616         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69617         an empty input stream.
69618
69619         * lib/readtokens.c: Include <stdbool.h>.
69620         (readtoken): Use `size_t' rather than int/long.
69621         All callers adjusted.
69622         Use `bool' rather than `int' where appropriate.
69623         Use memset rather than an explicit loop.
69624         Use x2nrealloc rather than xrealloc.
69625         Allow the use of `\0' as a delimiter.
69626         (readtokens): Likewise.
69627         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69628
69629 2004-03-30  Jim Meyering  <jim@meyering.net>
69630
69631         * m4/realloc.m4: Remove file, since now it does no more than
69632         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69633         the `configure.ac' section of module/realloc.
69634         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69635
69636 2004-03-30  Bruno Haible  <bruno@clisp.org>
69637
69638         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69639         nonnull.
69640
69641 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69642
69643         Merge changes to getloadavg.c from coreutils and Emacs.
69644
69645         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69646         Define to an expression, not to the empty string.
69647         Include cloexec.h and xalloc.h.
69648         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69649         Use set_cloexec_flag rather than rolling our own.
69650         * lib/cloexec.c, lib/cloexec.h: New files.
69651
69652 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69653
69654         * m4/cloexec.m4: New file.
69655
69656 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69657
69658         * lib/getopt.h: Sync with libc CVS.
69659
69660 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69661             Bruno Haible  <bruno@clisp.org>
69662
69663         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69664         mbswidth.
69665
69666 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69667             Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/mbswidth.h: Include <wchar.h> only if
69670         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69671         <wchar.h>.
69672         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69673
69674 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69675
69676         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69677         Sync with libc CVS.
69678         * lib/getopt_int.h: New file, also synced from libc.
69679
69680 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69681
69682         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69683         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69684         Bring back getopt.c, getopt.h, getopt1.c.
69685
69686 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69687
69688         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69689         All uses changed.  Check for sa_sigaction member; this fixes
69690         a bug first reported by Jason Andrade in
69691         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69692
69693 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69694
69695         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69696         '#if' expressions.  Unlike the code it replaces, it does not
69697         depend on (defined _SC_PAGESIZE).  However, it does depend on
69698         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69699         first reported by Jason Andrade in
69700         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69701
69702 2004-02-25  Simon Josefsson  <jas@extundo.com>
69703
69704         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69705
69706 2004-02-25  Simon Josefsson  <jas@extundo.com>
69707
69708         * lib/strdup.h: New file.
69709         * lib/strdup.c: Include it.
69710         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69711         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69712
69713 2004-02-23  Karl Berry  <karl@gnu.org>
69714
69715         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69716         (from fencepost.gnu.org:/gd/gnuorg).
69717
69718 2004-02-23  Karl Berry  <karl@gnu.org>
69719
69720         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69721         * config/srclist.txt: add maintain/standards documents.
69722
69723 2004-02-18  Bruno Haible  <bruno@clisp.org>
69724
69725         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69726         Reported by Derek Robert Price <derek@ximbiot.com>.
69727
69728 2004-02-16  Karl Berry  <karl@gnu.org>
69729
69730         * config/mkinstalldirs, install-sh: update from automake.
69731
69732 2004-02-06  Karl Berry  <karl@gnu.org>
69733
69734         * m4/po.m4: update from gettext 0.14.1.
69735
69736 2004-02-06  Karl Berry  <karl@gnu.org>
69737
69738         * lib/config.charset: update from gettext 0.14.1.
69739
69740 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69741
69742         Add comments and code, prompted by suggestions from Bruno Haible
69743         for sh-quote.
69744         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69745         describing the enum quoting_style values.
69746         * lib/quotearg.c (quotearg_alloc): New function.
69747         (quotearg_buffer_restyled): Treat lone { and } as special.
69748         Treat = as special.  Work around bug with older shells
69749         that "see" a '\' that is really the 2nd byte of a multibyte char.
69750         Quote empty string with shell_quoting_style.
69751
69752 2004-02-03  Bruno Haible  <bruno@clisp.org>
69753
69754         * m4/pipe.m4: New file, from GNU gettext.
69755
69756 2004-02-03  Bruno Haible  <bruno@clisp.org>
69757
69758         * lib/pipe.h: New file, from GNU gettext.
69759         * lib/pipe.c: New file, from GNU gettext.
69760
69761 2004-01-27  Bruno Haible  <bruno@clisp.org>
69762
69763         * m4/execute.m4: New file, from GNU gettext.
69764
69765 2004-01-27  Bruno Haible  <bruno@clisp.org>
69766
69767         * lib/execute.h: New file, from GNU gettext.
69768         * lib/execute.c: New file, from GNU gettext.
69769         * lib/w32spawn.h: New file, from GNU gettext.
69770
69771 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69772
69773         Merge from diffutils.
69774
69775         * lib/file-type.c (file_type): Add typed memory objects.
69776         * lib/file-type.h (S_TYPEISTMO): New macro.
69777
69778         * lib/c-stack.h (c_stack_action): Remove argv argument.
69779         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69780         (die): Don't calculate message unless segv_action returns.
69781         (get_stack_location, min_address_from_argv, max_address_from_argv,
69782         volatile stack_base, volatile_stack_size): Remove.
69783         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69784         that every segmentation violation is a stack overflow.  (Ouch!)
69785         See Debian bug 136249 (still outstanding) for more info about why
69786         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69787
69788 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69789
69790         Exit-status fix from coreutils.
69791
69792         Use exit_failure consistently in place of EXIT_FAILURE,
69793         so that program exit statuses are consistent on failure.
69794
69795         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69796         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69797         * lib/argmatch.h: Comment fix to match the above.
69798         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69799         Now a macro referring to exit_failure, instead of a separate
69800         variable.  Include "exitfail.h" to get it.
69801         * lib/xstrtol.h: Include "exitfail.h".
69802         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69803
69804         * lib/long-options.c (parse_long_options): Use prototype
69805         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69806         for clarity.
69807
69808 2004-01-21  Jim Meyering  <jim@meyering.net>
69809
69810         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69811         so as not to conflict with a different-sized __mktime_internal
69812         function in GNU libc.
69813         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69814         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69815
69816 2004-01-20  Karl Berry  <karl@gnu.org>
69817
69818         * config/config.guess: update from config.
69819
69820         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69821
69822 2004-01-20  Bruno Haible  <bruno@clisp.org>
69823
69824         Safer stack allocation.
69825         * lib/setenv.c: Include allocsa.h.
69826         (alloca): Remove fallback definition.
69827         (freea): Remove macro.
69828         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69829         instead of freea.
69830
69831 2004-01-20  Bruno Haible  <bruno@clisp.org>
69832
69833         * m4/eealloc.m4: New file, from GNU gettext.
69834
69835 2004-01-20  Bruno Haible  <bruno@clisp.org>
69836
69837         * m4/allocsa.m4: New file, from GNU gettext.
69838
69839 2004-01-20  Bruno Haible  <bruno@clisp.org>
69840
69841         * lib/xallocsa.h: New file, from GNU gettext.
69842         * lib/xallocsa.c: New file, from GNU gettext.
69843
69844 2004-01-20  Bruno Haible  <bruno@clisp.org>
69845
69846         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69847
69848 2004-01-20  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69851         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69852         specially.
69853
69854 2004-01-20  Bruno Haible  <bruno@clisp.org>
69855
69856         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69857         patch.
69858
69859 2004-01-20  Bruno Haible  <bruno@clisp.org>
69860
69861         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69862
69863 2004-01-20  Bruno Haible  <bruno@clisp.org>
69864
69865         * lib/eealloc.h: New file.
69866
69867 2004-01-20  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/binary-io.h: Avoid warnings on Cygwin.
69870
69871 2004-01-20  Bruno Haible  <bruno@clisp.org>
69872
69873         * lib/allocsa.h: New file, from GNU gettext.
69874         * lib/allocsa.c: New file, from GNU gettext.
69875
69876 2004-01-18  Karl Berry  <karl@gnu.org>
69877
69878         * doc/gpl.texi, doc/lgpl.texi: new files.
69879
69880 2004-01-18  Karl Berry  <karl@gnu.org>
69881
69882         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69883         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69884
69885 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69886
69887         Merge from coreutils.
69888
69889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69890         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69891         (gl_DEFAULT_POSIX2_VERSION): Move
69892         the documentation from 'configure' into 'config.hin',
69893         so that 'configure --help' isn't burdened by it and
69894         we don't have to worry about its formatting there.
69895         Reword the documentation so that it's more succinct
69896         and can be run together into a single paragraph.
69897         * m4/same.m4 (gl_SAME): Check for pathconf.
69898
69899 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69900
69901         Merge from coreutils.
69902
69903         * lib/posixver.c: Include posixver.h.
69904
69905         * lib/same.c: Include <stdbool.h>, <limits.h>.
69906         (_POSIX_NAME_MAX): Define if not defined.
69907         (MIN): New macro.
69908         (same_name): If file names are silently truncated, report
69909         that the file names are the same if they are the same after
69910         the silent truncation.
69911
69912         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69913         conversion function.
69914         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69915         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69916         longer needed.
69917
69918 2004-01-15  Jim Meyering  <jim@meyering.net>
69919
69920         Merge from coreutils.
69921
69922         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69923         if no library is required.
69924         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69925         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69926         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69927         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69928         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69929         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69930         value, $ac_cv_search_crypt, if it's "none required".
69931         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69932         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69933         not gl_FUNC_GETLOADAVG.
69934         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69935         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69936
69937 2004-01-15  Jim Meyering  <jim@meyering.net>
69938
69939         Merge from coreutils.
69940
69941         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69942         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69943         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69944
69945         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69946         optional configure-time default.
69947
69948         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69949
69950         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69951
69952 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69953
69954         Merge from coreutils.
69955
69956         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69957         value, $ac_cv_search_nanosleep, if it's "none required".
69958
69959 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69960
69961         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69962         with like-named macro in fnmatch.c.
69963         (EXT): Use an internal constant instead.
69964
69965         Merge fnmatch patches from glibc.
69966         * lib/fnmatch.c (mbsinit): Remove define.
69967         Add libc_hidden_ver (__fnmatch, fnmatch).
69968         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69969         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69970
69971 2004-01-14  Karl Berry  <karl@gnu.org>
69972
69973         * config/install-sh: update from automake.
69974
69975 2004-01-13  Karl Berry  <karl@gnu.org>
69976
69977         * config/install-sh: update from automake.
69978
69979 2004-01-09  Karl Berry  <karl@gnu.org>
69980
69981         * config/install-sh: update from automake.
69982
69983 2004-01-05  Karl Berry  <karl@gnu.org>
69984
69985         * config/config.{sub,guess}: update from config.
69986
69987 2003-12-31  Karl Berry  <karl@gnu.org>
69988
69989         * config/depcomp: update from automake.
69990
69991 2003-12-14  Karl Berry  <karl@gnu.org>
69992
69993         * lib/config.charset: update from gettext-runtime.
69994
69995 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69996
69997         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69998         Bug reported by Alfred M. Szmidt.
69999
70000 2003-12-03  Bruno Haible  <bruno@clisp.org>
70001
70002         * m4/gettext.m4: Upgrade from gettext-0.13.
70003         * m4/po.m4: Upgrade from gettext-0.13.
70004         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70005         * m4/intmax.m4: New file, from gettext-0.13.
70006         * m4/printf-posix.m4: New file, from gettext-0.13.
70007
70008 2003-11-29  Karl Berry  <karl@gnu.org>
70009
70010         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70011
70012 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70013             Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/printf-parse.h: Don't include sys/types.h.
70016         (ARG_NONE): New macro.
70017         (char_directive): Change type of *arg_index fields to size_t.
70018         * lib/printf-parse.c: Don't include sys/types.h.
70019         (SSIZE_MAX): Remove macro.
70020         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70021         Remove unnecessary overflow check.
70022         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70023         fields.
70024
70025 2003-11-25  Bruno Haible  <bruno@clisp.org>
70026
70027         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70028
70029 2003-11-25  Bruno Haible  <bruno@clisp.org>
70030
70031         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70032         gt_TYPE_SSIZE_T.
70033
70034 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70035
70036         * modules/alloca: Remove dependency on xalloc.
70037
70038 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70039
70040         * lib/alloca.c: Remove dependency on xalloc module.
70041         (xalloc_die): Remove.
70042         (memory_full) [!defined emacs]: New macro.
70043         [!defined emacs]: Don't include xalloc.h.
70044         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70045         address arithmetic overflows.  Change datatypes a bit to avoid
70046         unnecessary casts.
70047
70048 2003-11-22  Jim Meyering  <jim@meyering.net>
70049
70050         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70051         s/size/size_t/.
70052
70053 2003-11-21  Karl Berry  <karl@gnu.org>
70054
70055         * config/config.{sub,guess}: update from config.
70056
70057 2003-11-18  Karl Berry  <karl@gnu.org>
70058
70059         * config/config.{sub,guess}: update from config.
70060
70061         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70062
70063 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70064
70065         * README: Mention that S+T cannot overflow if S is the size of
70066         an existing object and T is sufficiently small.
70067
70068 2003-11-17  Jim Meyering  <jim@meyering.net>
70069
70070         On systems without utime and without a utimes function capable of
70071         dealing with a NULL struct utimbuf* argument, this utime replacement
70072         could -- in unusual circumstances -- leak a file descriptor.
70073         * lib/utime.c: Include <unistd.h> and <errno.h>.
70074         (utime_null): Be sure to close `fd' and to preserve errno.
70075         Reported by Geoff Collyer via Arnold Robbins.
70076
70077 2003-11-17  Bruno Haible  <bruno@clisp.org>
70078
70079         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70080         (Depends-on): Add xsize.
70081
70082 2003-11-17  Bruno Haible  <bruno@clisp.org>
70083
70084         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70085
70086 2003-11-17  Bruno Haible  <bruno@clisp.org>
70087
70088         * lib/vasnprintf.c (alloca): Remove fallback definition.
70089         (freea): Remove definition.
70090         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70091         Reported by Paul Eggert.
70092
70093 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70094             Bruno Haible  <bruno@clisp.org>
70095
70096         Protect against address arithmetic overflow.
70097         * lib/printf-args.h: Include stddef.h.
70098         (arguments): Change type of field 'count' to size_t.
70099         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70100         'unsigned int' where appropriate.
70101         * lib/printf-parse.h: Include sys/types.h.
70102         (char_directive): Change type of *arg_index fields to ssize_t.
70103         (char_directives): Change type of fields 'count', max_*_length to
70104         size_t.
70105         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70106         (SSIZE_MAX): Define fallback value.
70107         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70108         instead of 'int' where appropriate. Check a_allocated, d_allocated
70109         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70110         * lib/vasnprintf.c: Include xsize.h.
70111         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70112         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70113         overflow. Avoid wraparound when converting a width or precision from
70114         decimal to binary.
70115
70116 2003-11-16  Bruno Haible  <bruno@clisp.org>
70117
70118         Update from GNU gettext.
70119         * lib/printf-parse.c: Generalize to it can be compiled for wide
70120         strings.
70121         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70122         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70123         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70124         SNPRINTF): New macros.
70125         Don't include <alloca.h> if the file is used inside libintl.
70126         (local_wcslen): New function, for Solaris 2.5.1.
70127         (VASNPRINTF): Use it instead of wcslen.
70128
70129 2003-11-16  Bruno Haible  <bruno@clisp.org>
70130
70131         * lib/xsize.h (xmax): New function.
70132         (xsum, xsum3, xsum4): Declare as "pure" functions.
70133
70134 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70135
70136         * modules/xalloc (Files): Undo latest change, since xalloc.h
70137         no longer needs SIZE_MAX or PTRDIFF_MAX.
70138
70139 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70140
70141         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70142         gl_PTRDIFF_MAX.
70143
70144 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70145
70146         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70147         "return", to pacify some unknown compiler.  Problem reported
70148         by Joerg Schilling.
70149
70150 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70151
70152         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70153         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70154         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70155         heuristic is just as accurate as far as we know, and it removes a
70156         dependency on size_max.m4 and ptrdiff_max.m4.
70157
70158 2003-11-11  Bruno Haible  <bruno@clisp.org>
70159
70160         * modules/xsize (Files): Add m4/size_max.m4.
70161         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70162
70163 2003-11-11  Bruno Haible  <bruno@clisp.org>
70164
70165         * m4/size_max.m4: New file.
70166         * m4/ptrdiff_max.m4: New file.
70167         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70169         (gl_XALLOC): Invoke it.
70170
70171 2003-11-11  Bruno Haible  <bruno@clisp.org>
70172
70173         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70174         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70175         defined.
70176
70177 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70178
70179         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70180         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70181         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70182         From Bruno Haible.
70183         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70184         not (size_t) -1, since it's defined here.
70185
70186 2003-11-09  Karl Berry  <karl@gnu.org>
70187
70188         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70189
70190 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70191
70192         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70193         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70194         Reject sizes of exactly SIZE_MAX bytes.
70195         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70196         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70197
70198 2003-11-05  Bruno Haible  <bruno@clisp.org>
70199
70200         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70201         SIZE_MAX defined in <limits.h> on Solaris.
70202
70203 2003-11-04  Jim Meyering  <jim@meyering.net>
70204
70205         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70206         variable names, rather than @VAR@.
70207         * modules/poll: Likewise.
70208
70209 2003-11-04  Bruno Haible  <bruno@clisp.org>
70210
70211         * modules/xsize: New file.
70212         * modules/linebreak: Depend on xsize.
70213         * MODULES.html.sh (func_all_modules): Add xsize.
70214
70215 2003-11-04  Bruno Haible  <bruno@clisp.org>
70216
70217         * m4/xsize.m4: New file.
70218
70219 2003-11-04  Bruno Haible  <bruno@clisp.org>
70220
70221         * lib/xsize.h: New file.
70222         * lib/linebreak.c: Include xsize.h.
70223         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70224         argument for overflow.
70225         Suggested by Paul Eggert.
70226
70227 2003-11-03  Karl Berry  <karl@gnu.org>
70228
70229         * config/config.{guess,sub}: update from config.
70230
70231 2003-11-03  Jim Meyering  <jim@meyering.net>
70232
70233         * modules/userspec (lib_SOURCES): Add userspec.h.
70234         (Include): Add "userspec.h".
70235         Improve description.
70236
70237 2003-11-03  Jim Meyering  <jim@meyering.net>
70238
70239         * lib/userspec.c: Include "userspec.h".
70240         * lib/userspec.h: New file.
70241
70242 2003-11-03  Bruno Haible  <bruno@clisp.org>
70243
70244         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70245
70246 2003-11-03  Bruno Haible  <bruno@clisp.org>
70247
70248         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70249         available, to avoid (extremely rare) race condition.
70250         Suggested by Paul Eggert.
70251
70252 2003-11-02  Karl Berry  <karl@gnu.org>
70253
70254         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70255
70256 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70257
70258         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70259         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70260         (read_filesystem_list): Set and use me_type_malloced.
70261         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70262         whatever the type happens to be), for brevity and consistency.
70263         Check for size calculation overflow on Alphas running OSF/1.
70264
70265 2003-10-31  Jim Meyering  <jim@meyering.net>
70266
70267         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70268
70269         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70270
70271 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70272             Bruno Haible  <bruno@clisp.org>
70273
70274         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70275         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70276
70277 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70280         netbsd*-gnu*.  Suggested by Robert Millan.
70281
70282 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70283
70284         * modules/group-member: Depend on stdbool.
70285
70286 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70287
70288         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70289
70290 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70291
70292         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70293         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70294         after the 'gnu' in these cases.  This fixes some bugs in the
70295         previous change, and is based on suggestions by Robert Millan.
70296
70297 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70298
70299         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70300         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70301         no longer needed.
70302         * lib/quotearg.c (quotearg_n_options): Use it.
70303         * lib/group-member.c: Include <stdbool.h>.
70304         (free_group_info): Arg is now const *; don't free arg.
70305         (get_group_info): Now returns bool and accepts struct group_info *,
70306         rather than returning a malloc'ed struct group_info *.
70307         All uses changed.  Check for overflow in internal size calculation.
70308
70309         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70310         rather than xmalloc/xrealloc.
70311         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70312         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70313         conformance bug: the old code used a pointer after freeing the
70314         storage that it addressed.
70315         * lib/hash.c (hash_initialize): Simplify the code by using
70316         xalloc_oversized rather than doing it by hand.
70317         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70318         the buffer preserved.  Use free and xmalloc instead.
70319         * lib/quotearg.c (quotearg_n_options): Likewise.
70320         Use a simpler test for size overflow.  Don't use xalloc_oversized
70321         because unsigned int might be wider than size_t (!); this suggests
70322         that we should switch from unsigned int to size_t for slot numbers.
70323
70324 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70325
70326         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70327         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70328         NetBSD kernels.  Requested by Richard Stallman.
70329
70330 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70331
70332         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70333         to allocate the returned structure.  Do not allocate a subarray,
70334         as x2nrealloc will do that.
70335         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70336         instead of xnrealloc.
70337         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70338
70339 2003-10-27  Bruno Haible  <bruno@clisp.org>
70340
70341         * lib/stdbool_.h: Better support for BeOS.
70342
70343 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70344
70345         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70346         now uses inline.
70347
70348 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70349
70350         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70351         callers that want to do their own size-overflow checking.  Include
70352         <stdbool.h>, since xalloc_oversized returns bool.
70353         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70354         to use xalloc_oversized.
70355
70356         Add two functions x2realloc, x2nrealloc, for programs that grow
70357         arrays dynamically by doubling their sizes.
70358         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70359         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70360         New functions.
70361
70362         Port to C99 semantics for 'inline' of external functions.
70363         Bug reported by Bruno Haible.
70364         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70365         with the old contents of xnmalloc.
70366         (xnmalloc, xmalloc): Use it.
70367         (xnrealloc_inline): New static inline function,
70368         with the old contents of xnrealloc.
70369         (xnrealloc, xrealloc): Use it.
70370
70371         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70372         that.
70373
70374 2003-10-26  Karl Berry  <karl@gnu.org>
70375
70376         * config/srclist.txt (COPYING.DOC): no longer available from
70377         /gd/gnuorg; don't know where the ultimate source is.
70378
70379 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70380
70381         Fix several address-calculation bugs in the hash modules,
70382         plus some minor code cleanup.
70383
70384         * lib/hash.h: Include <stdbool.h>, for bool.
70385         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70386         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70387         hash_get_n_entries, hash_get_max_bucket_length,
70388         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70389         hash_rehash): Use size_t rather than unsigned.
70390         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70391         hash_get_n_buckets_used, hash_get_n_entries,
70392         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70393         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70394         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70395         Likewise.
70396         (SIZE_MAX): Define if not defined.
70397         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70398         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70399         hash_print):
70400         Use const * when possible.
70401         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70402         (check_tuning): Fix bug: if tuning parameters were very close to
70403         0 or 1, rounding errors could have caused subscript violations.
70404         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70405         (hash_initialize): Add 'fail:' label
70406         to free table and return NULL, and use it to simplify code.
70407         Use calloc rather than clearing the storage ourself.
70408         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70409         buffer size calculations.
70410         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70411         Include <stddef.h>, for size_t.
70412         * lib/hash-pjw.c (hash_pjw): Likewise.
70413         Switch to method described by Bruno Haible.
70414         Include <limits.h>, for CHAR_BIT.
70415         (SIZE_BITS): New macro.
70416
70417 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70418
70419         * m4/getline.m4 (AM_FUNC_GETLINE):
70420         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70421         hosts.  Problem reported by Derek Robert Price in
70422         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70423         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70424         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70425
70426 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70427
70428         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70429         ceiling the allocation at NMAX bytes rather than silently
70430         discarding input bytes before NMAX is reached.  This makes
70431         a difference only if NMAX exceeds SIZE_MAX / 2.
70432
70433         * lib/obstack.c: Merge from glibc.
70434         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70435         Add libc_hidden_def (_obstack_newchunk).
70436         (_obstack_free) [! defined _LIBC]: Remove.
70437         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70438         a clone of the function body.
70439         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70440         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70441
70442         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70443         glibc.
70444         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70445         arg to memcpy.
70446
70447         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70448         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70449         Don't use lvalue casts, as GCC plans to remove support for them
70450         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70451         was also present in the non-GCC version, indicating that this
70452         code had always been buggy and had never been widely used.
70453         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70454         Use the fast variant of each macro, rather than copying the
70455         definiens of the fast variant; that way, we'll be more likely to
70456         catch future bugs in the fast variants.
70457
70458 2003-10-20  Bruno Haible  <bruno@clisp.org>
70459
70460         * modules/wait-process: New file.
70461         * MODULES.html.sh (func_all_modules): Add wait-process.
70462
70463 2003-10-20  Bruno Haible  <bruno@clisp.org>
70464
70465         * m4/wait-process.m4: New file.
70466
70467 2003-10-20  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/wait-process.h: New file, from GNU gettext.
70470         * lib/wait-process.c: New file, from GNU gettext.
70471
70472 2003-10-19  Jim Meyering  <jim@meyering.net>
70473
70474         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70475         HPUX 10.20.
70476
70477 2003-10-18  Karl Berry  <karl@gnu.org>
70478
70479         * config/config.guess: update from config.
70480
70481 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70482
70483         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70484         (getgroups): First arg is int, not size_t.
70485         Don't let 'free' mangle errno.
70486
70487 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70488
70489         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70490
70491 2003-10-16  Karl Berry  <karl@gnu.org>
70492
70493         * config/config.{guess,sub}: update from config.
70494
70495 2003-10-16  Jim Meyering  <jim@meyering.net>
70496
70497         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70498         memcpy.
70499
70500 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70501
70502         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70503         (SIZE_MAX): Remove.
70504         (new_exclude, add_exclude_file): Initial size no longer needs to
70505         be a power of 2.
70506         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70507         our own address arithmetic overflow checking.
70508
70509         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70510         (fnmatch): Do not alloca more than 2000 wide characters;
70511         instead, use malloc for large buffers.
70512         Check for address arithmetic overflow, and return -1
70513         with errno set to ENOMEM in that case.
70514         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70515         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70516         instead, return -1.  Check for address arithmetic overflow.
70517
70518 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70519
70520         Handle invalid suffixes and overflow independently, so that
70521         callers can treat them independently as needed.  Fix some bugs in
70522         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70523         suffix for a human-readable blocksize.  The major caller-visible
70524         change is the addition of a new
70525         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70526         that both overflow and suffix chars were found.
70527
70528         * lib/human.c (humblock): Don't check separately for invalid suffix
70529         char; that is xstrtoumax's job (now that its bug is fixed).
70530         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70531         INTMAX_MAX]: New macros.
70532         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70533         TYPE_MAXIMUM): New macros.
70534         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70535         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70536         if overflow occurs, as it's what __strtol does and it's more useful
70537         in practice.
70538         (__xstrtol): If __strtol reports some error other than ERANGE,
70539         reflect it to the caller as LONGINT_INVALID.  If it reports
70540         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70541         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70542         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70543         value.
70544         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70545         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70546         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70547         [defined UINTMAX_MAX]: New macros.
70548
70549 2003-10-14  Bruno Haible  <bruno@clisp.org>
70550
70551         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70552
70553 2003-10-14  Bruno Haible  <bruno@clisp.org>
70554
70555         * m4/sig_atomic_t: New file, from GNU gettext.
70556         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70557
70558 2003-10-14  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70561         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70562         Also use volatile where needed.
70563
70564 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70565
70566         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70567         Change maintainer from Bruno Haible to 'all'.
70568
70569 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70570
70571         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70572
70573 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70574
70575         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70576         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70577         and define in terms of the other primitives.
70578         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70579         (SIZE_MAX): Define if not already defined.
70580         (array_size_overflow): New function.
70581         (xalloc_die): Abort instead of exiting if 'error' returns.
70582         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70583         (xmalloc, xrealloc): Use them.
70584         (xcalloc): Check for address arithmetic overflow.
70585         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70586         a bit faster than strcpy.
70587
70588 2003-10-10  Simon Josefsson  <jas@extundo.com>
70589
70590         * modules/argp (Depends-on): Add restrict and strcase.
70591
70592 2003-10-10  Simon Josefsson  <jas@extundo.com>
70593
70594         * m4/argp.m4: Add AC_C_INLINE.
70595
70596 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70597
70598         Merge getpass from libc, plus a few fixes.
70599
70600         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70601         Include <stdbool.h>.
70602         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70603         __fsetlocking to empty.
70604         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70605         do include <bits/libc-lock.h>.
70606         Do not include <fcntl.h>; not needed.
70607         [_LIBC]: Include <wchar.h>.
70608         (NOTCANCEL_MODE): New macro.
70609         (flockfile, funlockfile) [_LIBC]: New macros.
70610         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70611         [!_LIBC]: New macros.
70612         (call_fclose): New function.
70613         (getpass): Use it.  Save tty stream separately; this simplifies the
70614         code and makes it more reliable if stdin happens to equal stdout.
70615         Invoke __fsetlocking on tty.
70616         Handle thread cancellation if needed.
70617         Namespace cleanup (use __tcgetattr, __getline).
70618         Use bool for Booleans.
70619         [USE_IN_LIBIO]: Handle wide streams.
70620         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70621         stream might go where.
70622
70623         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70624         doesn't have to include <stdio.h> before us.
70625         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70626         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70627         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70628         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70629         if not declared, so that we can use getpass.c code from libc without
70630         rewriting it.
70631         (flockfile, ftrylockfile, funlockfile): New macros.
70632
70633 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70634
70635         * modules/getpass: Depend on stdbool.
70636
70637 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70638
70639         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70640
70641 2003-10-07  Karl Berry  <karl@gnu.org>
70642
70643         * config/config.{guess,sub}: update from config.
70644
70645 2003-10-06  Jim Meyering  <jim@meyering.net>
70646             Bruno Haible  <bruno@clisp.org>
70647
70648         This lets translators provide better translations for the
70649         "Written by ..." part of --version output.
70650         * lib/version-etc.h: Include stdarg.h.
70651         (version_etc_copyright): Declare as readonly.
70652         (version_etc): Make this function variadic with a NULL-terminated list
70653         of author name strings.
70654         (version_etc_va): New declaration.
70655         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70656         (version_etc_copyright): Declare as readonly.
70657         (version_etc_va): New function. Provide a different translatable string
70658         for each possible number of authors < 10. Abbreviate when there are 10
70659         authors or more.
70660         (version_etc): Make this function variadic. Call version_etc_va.
70661         Suggestion from Gary V. Vaughan.
70662
70663         * lib/long-options.h (parse_long_options): Change prototype: the
70664         authors string is moved to the end and becomes variadic.
70665         * lib/long-options.c: Include stdarg.h.
70666         (parse_long_options): Make this function variadic, too.
70667         Call version_etc_va, not version_etc.
70668
70669 2003-10-06  Bruno Haible  <bruno@clisp.org>
70670
70671         * modules/version-etc-2: Remove file.
70672         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70673
70674 2003-10-06  Bruno Haible  <bruno@clisp.org>
70675
70676         * modules/fatal-signal: New file.
70677         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70678
70679 2003-10-06  Bruno Haible  <bruno@clisp.org>
70680
70681         * m4/fatal-signal.m4: New file.
70682         * m4/signalblocking.m4: New file, from GNU gettext.
70683
70684 2003-10-06  Bruno Haible  <bruno@clisp.org>
70685
70686         * lib/version-etc-2.h: Remove file.
70687         * lib/version-etc-2.c: Remove file.
70688
70689 2003-10-06  Bruno Haible  <bruno@clisp.org>
70690
70691         * lib/fatal-signal.h: New file, from GNU gettext.
70692         * lib/fatal-signal.c: New file, from GNU gettext.
70693
70694 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70695
70696         * README: Rework advice for preventing empty .o files.
70697         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70698         not <sys/types.h>.
70699
70700 2003-10-04  Karl Berry  <karl@gnu.org>
70701
70702         * lib/argp*: update from libc.
70703
70704 2003-10-04  Karl Berry  <karl@gnu.org>
70705
70706         * config/config.{guess,sub}: update from config.
70707
70708 2003-10-02  Bruno Haible  <bruno@clisp.org>
70709
70710         * modules/lchown (Include): Add lchown.h.
70711         * modules/time_r (Include): Use "..." syntax.
70712         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70713
70714 2003-10-01  Simon Josefsson  <jas@extundo.com>
70715
70716         * MODULES.html.sh (func_all_modules): Move gethostname from section
70717         'based on' to section 'lacking' POSIX:2001.
70718
70719 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70720
70721         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70722         to output mode on the same stream.
70723
70724 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70725
70726         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70727         Fix arg typo in previous patch.
70728
70729 2003-09-28  Jim Meyering  <jim@meyering.net>
70730
70731         * lib/error.c: Correct cpp indentation.
70732
70733 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70734
70735         * modules/free: New file.
70736
70737 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70738
70739         * m4/free.m4: New file.
70740
70741 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70742
70743         * lib/minmax.h (MIN, MAX)
70744         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70745         Omit the special code that used __typeof__, since we worry that
70746         it could be more trouble than it's worth.  See:
70747         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70748         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70749
70750         * lib/free.c: New file.
70751
70752 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70753
70754         Trivial fixes to Makefile.am parts of module listings.
70755         * modules/strstr: Append strstr.h to lib_SOURCES.
70756         * modules/strcase: Likewise, for strcase.h.
70757
70758 2003-09-27  Karl Berry  <karl@gnu.org>
70759
70760         * config/mkinstalldirs: update from automake.
70761
70762 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70763
70764         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70765         (error_tail): Do not loop, reallocating temporary buffer, since
70766         the output cannot contain more wide characters than the input
70767         contains bytes, the size must be big enough already.  This avoids
70768         one potential size overflow calculation.  Check for size overflow
70769         when calculating temporary buffer size.  Free temporary buffer
70770         when done, if it was allocated with malloc; this plugs a memory
70771         leak.  Remove casts from void * to pointers, that are no longer
70772         needed now that we're assuming C89 or better.
70773
70774         Merge error changes from glibc.
70775
70776         * lib/error.c, error.h: Update copyright notice header to match glibc.
70777         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70778         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70779         Disable cancellation while printing error.
70780         * lib/error.h: Prepend __ to parameter names.
70781
70782 2003-09-26  Jim Meyering  <jim@meyering.net>
70783
70784         * lib/error.c (error_tail): Move some declarations
70785         into inner scope where the local variables are used.
70786
70787 2003-09-26  Bruno Haible  <bruno@clisp.org>
70788
70789         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70790         stpncpy().
70791         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70792
70793 2003-09-26  Bruno Haible  <bruno@clisp.org>
70794
70795         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70796         (stpncpy): Define as alias for gnu_stpncpy.
70797         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70798
70799 2003-09-25  Simon Josefsson  <jas@extundo.com>
70800
70801         * lib/xgetdomainname.h: New file.
70802         * lib/xgetdomainname.c: New file.
70803
70804 2003-09-25  Simon Josefsson  <jas@extundo.com>
70805             Bruno Haible  <bruno@clisp.org>
70806
70807         * modules/getdomainname: New file.
70808         * modules/xgetdomainname: New file.
70809         * MODULES.html.sh (func_all_modules): Add getdomainname,
70810         xgetdomainname.
70811
70812 2003-09-25  Simon Josefsson  <jas@extundo.com>
70813             Bruno Haible  <bruno@clisp.org>
70814
70815         * m4/getdomainname.m4: New file.
70816
70817 2003-09-25  Simon Josefsson  <jas@extundo.com>
70818             Bruno Haible  <bruno@clisp.org>
70819
70820         * lib/getdomainname.h: New file.
70821         * lib/getdomainname.c: New file.
70822
70823 2003-09-25  Karl Berry  <karl@gnu.org>
70824
70825         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70826
70827 2003-09-25  Karl Berry  <karl@gnu.org>
70828
70829         * config/install-sh: update from automake.
70830
70831 2003-09-25  Bruno Haible  <bruno@clisp.org>
70832
70833         * modules/version-etc-2: New file, from modules/version-etc with
70834         modifications.
70835         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70836
70837 2003-09-25  Bruno Haible  <bruno@clisp.org>
70838
70839         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70840         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70841
70842 2003-09-24  Simon Josefsson  <jas@extundo.com>
70843
70844         * modules/xgethostname: Add xgethostname.h.
70845
70846 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70847
70848         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70849         the buffer associated with the argument.  Bug reported by
70850         Simon Josefsson.
70851
70852 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70853
70854         * README: Document assumptions that 'int' is at least 32 bits
70855         wide, that integer arithmetic is 2's complement without overflow,
70856         that there are no holes in integer values, that adding sizes of
70857         two nonoverlapping objects can't overflow, and that all-bits-zero
70858         yields scalar zero.  Fix spelling and capitalization typos.
70859
70860 2003-09-19  Karl Berry  <karl@gnu.org>
70861
70862         * lib/argp.h: update from libc.
70863
70864 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70865
70866         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70867         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70868         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70869
70870 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70871
70872         * gnulib-tool: Use "test -h", not "test -L", for portability
70873         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70874         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70875         (sed_extract_prog): Issue s commands one-by-one, rather than
70876         using \| in one s command.
70877
70878 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70879
70880         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70881         input error, instead of returning NULL the next time we are called
70882         (and therefore losing track of errno).
70883
70884 2003-09-16  Bruno Haible  <bruno@clisp.org>
70885
70886         * gnulib-tool (func_create_testdir): Warn about duplicated
70887         dependencies.
70888
70889 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70890
70891         * modules/argmatch, modules/fatal, modules/obstack,
70892         modules/xalloc, modules/xgethostname: Sort dependencies by
70893         importance, not alphabetically.
70894
70895 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70896
70897         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70898         fails, so that the caller gets the proper errno.
70899
70900         * lib/readutmp.c (read_utmp): Likewise.
70901         Check for fstat error.  Close stream and free storage
70902         when failing.
70903
70904 2003-09-14  Karl Berry  <karl@gnu.org>
70905
70906         * config/srclist.txt (strdup.c): disable for c89 changes.
70907
70908 2003-09-14  Jim Meyering  <jim@meyering.net>
70909
70910         * lib/getloadavg.c: Correct cpp indentation.
70911         * lib/strdup.c: Likewise.
70912         * lib/vasnprintf.c: Likewise.
70913
70914 2003-09-14  Bruno Haible  <bruno@clisp.org>
70915
70916         * modules/fwriteerror: New file.
70917         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70918
70919 2003-09-14  Bruno Haible  <bruno@clisp.org>
70920
70921         * lib/fwriteerror.h: New file.
70922         * lib/fwriteerror.c: New file.
70923
70924 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70925
70926         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70927         modules/xgethostname, modules/xalloc: Depend on exit.
70928
70929 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70930
70931         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70932
70933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70934         and AC_MINIX, too, so that their extensions are available.
70935
70936         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70937         This macro has been superseded by gl_BACKUPFILE.
70938
70939         More patches to assume C89 or better.
70940
70941         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70942
70943         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70944         unconditionally.
70945         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70946         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70947         Include <string.h>, <stdlib.h> unconditionally.
70948         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70949         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70950         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70951         headers or for string.h.
70952         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70953         or strtoul.
70954
70955         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70956         headers.
70957         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70958         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70959         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70960         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70961         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70962         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70963         memcpy, memset.
70964         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70965         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70966         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70967         strtol.
70968         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70969         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70970         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70971         strtoul.
70972
70973 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70974
70975         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70976         * lib/obstack.c [!defined _LIBC]: Likewise.
70977         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70978         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70979         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70980
70981         More changes to assume C89 or better.
70982
70983         * lib/error.c (error_tail): Assume vprintf.
70984
70985         * lib/argmatch.c (getenv): Remove decl.
70986         * lib/progreloc.c (get_full_program_name): Define via prototype.
70987         * lib/setenv.c (clearenv): Likewise.
70988         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70989         needed.
70990         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70991         (malloc, memcpy): Remove decls.
70992         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70993         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70994         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70995         (memcpy): Remove macro.
70996         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70997         (__P): Remove.  All uses removed.
70998         (PTR): Remove.  All uses changed to void *.
70999         (CHAR_BIT, NULL): Remove.
71000         (spaces, zeros, memset_space, memset_zero)
71001         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71002         Remove.
71003         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71004         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71005         Define with prototype.
71006         Remove now-unnecessary prototype decl.
71007         (extra_args_spec): Assume ANSI C.  All uses changed.
71008         (extra_args_spec_iso): Remove.
71009         (my_strftime, emacs_strftimeu): Define via prototype.
71010         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71011         unconditionally.
71012         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71013         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71014         (strtoul, strtol): Remove decls.
71015         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71016         LONG_MAX): Remove.
71017         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71018         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71019         (LOCALE_PARAM_PROTO): New macro.
71020         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71021         (INTERNAL (strtol), strtol): Define with a prototype.
71022         (PARAMS): Remove.  All uses removed.
71023         * lib/tempname.c: Include <string.h> unconditionally.
71024         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71025         * lib/xgethostname.c (main): Define with a prototype.
71026         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71027         Include <stdlib.h> unconditionally.
71028         (calloc, malloc, realloc, free): Remove decls.
71029         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71030         Include <stdlib.h> unconditionally.  Sort include file names.
71031         (strtod): Remove.
71032         (xstrtod): Define with a prototype.
71033         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71034         (strtol, strtoul): Remove decls.
71035
71036 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71037
71038         More patches to assume C89 or better.
71039         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71040         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71041         string.h, memchr, STDC_HEADERS.
71042
71043 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71044
71045         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71046         Include <stdlib.h>, <string.h> unconditionally.
71047         Remove now-unnecessary cast to char *.
71048         * lib/strnlen.c: Include <string.h> unconditionally.
71049         * lib/yesno.c (yesno): Define with a prototype.
71050
71051 2003-09-11  Bruno Haible  <bruno@clisp.org>
71052
71053         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71054
71055 2003-09-10  Jim Meyering  <jim@meyering.net>
71056
71057         * lib/error.c: Correct indentation of cpp directives.
71058
71059 2003-09-10  Bruno Haible  <bruno@clisp.org>
71060
71061         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71062         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71063         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71064         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71065         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71066         <stdlib.h> and <string.h> checks.
71067         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71068         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71069
71070 2003-09-10  Bruno Haible  <bruno@clisp.org>
71071
71072         * lib/strcspn.c: Include <string.h> unconditionally.
71073         * lib/strpbrk.c: Include <string.h> unconditionally.
71074         * lib/strstr.c: Include <string.h> unconditionally.
71075         * lib/unicodeio.c: Include <string.h> unconditionally.
71076         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71077         * lib/unsetenv.c: Likewise.
71078         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71079         * lib/yesno.c: Include <stdlib.h> unconditionally.
71080         (rpmatch): Add prototype.
71081
71082 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71083
71084         More patches to assume C89 or better.
71085         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71086         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71087         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71088         or for string.h.
71089         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71090         stdlib.h.
71091         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71092         C headers.
71093         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71094         string.h.
71095         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71096         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71097         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71098         or for string.h.
71099         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71100         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71101         C headers.
71102         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71103         memcpy.
71104         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71105         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71106         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71107         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71108         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71109         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71110         string.h, free.
71111         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71112         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71113         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71114         C headers, or for string.h.
71115         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71116         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71117         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71118         headers, memory.h, stdlib.h, string.h, strings.h.
71119         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71120         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71121         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71122         strchr.
71123         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71124         headers, memory.h, string.h.
71125         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71126         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71127         free.
71128         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71129         headers.
71130         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71131         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71132         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71133         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71134         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71135
71136 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71137
71138         More K&R removal.
71139
71140         * lib/acosl.c (main): Use a prototype.
71141         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71142         tanl.c: Likewise.
71143
71144         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71145
71146         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71147         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71148         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71149         with a prototype.
71150         * lib/getopt.c (const): Remove macro.
71151         Include <string.h> unconditionally.
71152         (my_index): Remove; all uses changed to strchr.
71153         (strlen): Remove decl.
71154         (exchange): Remove forward decl; no longer needed.
71155         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71156         Define with prototype.
71157         * lib/getopt1.c (const): Remove macro.
71158         (getopt_long, getopt_long_only, main): Define with prototype.
71159
71160         * lib/getugroups.c: Include <string.h> unconditionally.
71161
71162         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71163         (getusershell, setusershell, endusershell, readname, main):
71164         Define with prototypes.
71165
71166         * lib/group-member.c: Include group-member.h first.
71167         Include <stdlib.h> unconditionally.
71168
71169         * lib/hard-locale.c: Include hard-locale.h first.
71170         Include <stdlib.h>, <string.h> unconditionally.
71171
71172         * lib/hash.c (free, malloc): Remove decls.
71173         Include <stdlib.h> unconditionally.
71174
71175         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71176         (getenv): Do not declare.
71177
71178         * lib/idcache.c: Include <string.h> unconditionally.
71179
71180         * lib/long-options.c: Include long-options.h first, to test interface.
71181         Include <stdlib.h> unconditionally.
71182
71183         * lib/makepath.c: Include makepath.h first, to test interface.
71184         Include <stdlib.h> and <string.h> unconditionally.
71185
71186         * lib/linebuffer.c: Include <stdlib.h>.
71187         (free): Remove decl.
71188
71189         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71190         stddef.h. rpl_malloc returns void *, not char *.
71191         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71192         prototype.
71193
71194         * lib/md5.h: Include <limits.h> unconditionally.
71195         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71196         (__P): Remove; all uses removed.
71197         * lib/md5.c: Include "md5.h" first.
71198         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71199         md5_buffer, md5_process_bytes, md5_process_block):
71200         Define with prototypes.
71201         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71202         * lib/sha.c: Include "sha.h" first.
71203         Include <stdlib.h>, <string.h> unconditionally.
71204
71205         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71206         * lib/memcmp.c (__ptr_t): Likewise.
71207         * lib/memrchr.c (__ptr_t): Likewise.
71208         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71209         Include <string.h> unconditionally.
71210         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71211         * lib/memchr.c: Include <stdlib.h> unconditionally.
71212         * lib/memchr.c (LONG_MAX): Remove.
71213         * lib/memrchr.c (LONG_MAX): Likewise.
71214         * lib/memchr.c (__memchr): Define via a prototype.
71215         * lib/memrchr.c (__memrchr): Likewise.
71216         * lib/memcmp.c (__P): Remove, and remove all uses.
71217         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71218         Remove forward decls; no longer needed.
71219         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71220         Use types required by C89 in prototype.
71221
71222         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71223         * lib/savedir.c: Likewise.
71224         * lib/mkdir.c (free): Remove decl.
71225         * lib/rmdir.c (rmdir): Define with a prototype.
71226         * lib/savedir.c: Include savedir.h first, to test interface.
71227
71228         * lib/mktime.c (STDC_HEADERS): Remove.
71229         Include <stdlib.h>, <string.h> unconditionally.
71230
71231         * lib/modechange.c: Include <stdlib.h> unconditionally.
71232         (malloc): Remove decl.
71233
71234         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71235         (free): Remove decl.
71236
71237         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71238         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71239         (This type really should be intptr_t, but that's a C99ism.)
71240         (_obstack_memcpy): Remove: all uses changed to memcpy.
71241         Include <string.h> unconditionally.
71242         (struct obstack): Assume __STDC__ for types of members
71243         chunkfun, freefun, extra_arg.
71244         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71245         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71246         obstack_begin, obstack_specify_allocation,
71247         obstack_specify_allocation_with_arg, obstack_chunkfun,
71248         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71249         Remove unprototyped decls and the macros that use them.
71250         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71251         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71252         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71253         (defined __STDC__ && __STDC__)]:
71254         Remove nonprototyped code.
71255         Include <stdlib.h> unconditionally.
71256         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71257         _obstack_allocated_p, _obstack_free, obstack_free,
71258         _obstack_memory_used, print_and_abort):
71259         Define using prototypes.
71260         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71261         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71262         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71263         obstack_next_free, obstack_object_size, obstack_room) [0]:
71264         Remove unused, unprototyped code.
71265
71266         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71267
71268         * lib/physmem.c (physmem_total, physmem_available, main): Define
71269         with prototypes.
71270
71271         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71272         (main): Define with a prototype.
71273
71274         * lib/posixver.c (getenv): Remove decl.
71275
71276         * lib/putenv.c (malloc): Returns void *, not char *.
71277         Include <string.h> unconditionally.
71278         (strchr, memcpy, NULL): Do not define.
71279
71280         * lib/readtokens.c: Include readtokens.h first, to test interface.
71281         Include <stdlib.h>, <string.h> unconditionally.
71282         (init_tokenbuffer): Define with a prototype.
71283
71284         * lib/regex.c (PARAMS): Remove.  All uses removed.
71285         All uses of _RE_ARGS removed, too.
71286         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71287         unconditionally.
71288         (bzero): Assume memset exists.
71289         (memcmp, memcpy, NULL): Remove.
71290         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71291         char, or assignments to local vars of type signed char.
71292         (init_syntax_once, PREFIX(extract_number_and_incr),
71293         PREFIX(print_partial_compiled_pattern),
71294         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71295         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71296         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71297         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71298         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71299         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71300         wcs_compile_range, byte_compile_range, truncate_wchar,
71301         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71302         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71303         count_mbs_length, wcs_re_match_2_internal,
71304         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71305         PREFIX(alt_match_null_string_p),
71306         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71307         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71308         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71309         now-unnecessary declaration, if any.
71310         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71311         regcomp, regexec):
71312         Remove now-unnecessary casts among pointer types.
71313         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71314
71315         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71316         (free): Remove decl.
71317
71318         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71319
71320         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71321         (free): Remove decl.
71322
71323         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71324         * lib/xgetcwd.c: Likewise.
71325
71326         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71327         (free): Remove decl.
71328
71329         * lib/strchrnul.c (strchrnul): Define with a prototype.
71330         Fix bug: c_in was not converted to char before searching.
71331
71332         The following changes are not K&R related:
71333
71334         * lib/group-member.h: Include <sys/types.h>, so that this file is
71335         self-contained.
71336         * lib/makepath.h: Likewise.
71337
71338         * lib/getusershell.c (readname, default_index, line_size, readname):
71339         Use size_t, not int, for sizes.
71340         (readname): If the size overflows, report an error instead of
71341         looping forever.
71342
71343 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71344
71345         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71346         libc.
71347
71348 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71349
71350         * README: New section: portability guidelines.
71351
71352 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71353
71354         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71355         C89 spec.
71356
71357 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71358
71359         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71360
71361 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71362
71363         Assume C89 or better; remove K&R cruft.
71364         A few of these changes were first proposed by Derek Robert Price
71365         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71366
71367         * lib/addext.c: Include <string.h> unconditionally.
71368         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71369         Don't declare getenv or malloc.
71370
71371         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71372         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71373         (NULL): Remove.
71374         (find_stack_direction, alloca): Use prototypes.
71375
71376         * lib/atexit.c (atexit): Define using a prototype.
71377
71378         * lib/basename.c, dirname.c, stripslash.c:
71379         Include <string.h> unconditionally.
71380
71381         * lib/bcopy.c: Include <stddef.h>.
71382         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71383
71384         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71385
71386         * lib/error.h (error, error_at_line, error_print_progname)
71387         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71388         * lib/error.c: Include error.h first, to check interface.
71389         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71390         (VA_START): Remove; all uses changeed to va_start.
71391         (exit, strerror): Remove decls.
71392         (error_print_progname): Prototype uncondionally.
71393         Don't include <errno.h>; no longer needed.
71394         (private_strerror): Remove.
71395         (error_tail): Always define.
71396         (error, error_at_line): Assume C89 or better; always use prototypes.
71397         * lib/fatal.c: Include "fatal.h" first, to test interface.
71398         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71399         (VA_START): Remove; all uses changed to va_start.
71400         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71401         this case.
71402         (exit): Remove decl.
71403         (fatal): Prototype unconditionally.  Assume va_start works.
71404         Abort at end, to pacify gcc.
71405
71406         * lib/euidaccess.c (main): Define with a prototype.
71407
71408         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71409
71410         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71411
71412         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71413         prototypes.
71414         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71415         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71416         (getenv): Remove decl.
71417         (fnmatch): Define using a prototype.
71418         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71419         (FCT): Define using a prototype.
71420
71421         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71422
71423         * lib/gethostname.c: Include <stddef.h>.
71424         (gethostname): Define with prototype.  Length is size_t, not int.
71425
71426 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71427
71428         Assume C89 or better; remove K&R cruft.
71429         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71430         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71431         string.h, getenv, malloc.
71432         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71433         headers.
71434         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71435         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71436         do not check for strerror.
71437         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71438         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71439         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71440         do not check for doprnt or vprintf.
71441         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71442         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71443
71444 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71445
71446         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71447         getversion.c should have been removed then, but was accidentally
71448         preserved.
71449
71450         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71451         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71452
71453 2003-09-08  Karl Berry  <karl@gnu.org>
71454
71455         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71456                 config, forget about prep.
71457
71458         * config/depcomp, missing: update from automake.
71459
71460 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71461
71462         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71463         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71464
71465 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71466
71467         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71468         copy_tm_result.  Bug reported by Simon Josefsson in
71469         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71470
71471 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71472
71473         * m4/time_r.m4: New file.
71474         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71475         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71476         is. Check for timegm declaration.
71477         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71478         Do not check for gmtime_r.
71479         Replace mktime if __mktime_internal does not exist and if mktime
71480         hasn't been replaced already.
71481
71482 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71483
71484         * lib/time_r.c, lib/time_r.h: New files.
71485
71486         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71487         __localtime_r.
71488         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71489         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71490
71491         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71492         __gmtime_r.
71493         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71494         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71495         Include <time_r.h>.
71496
71497         * lib/timegm.c: Switch to glibc implementation, with the following
71498         changes:
71499         [defined HAVE_CONFIG_H]: Include <config.h>.
71500         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71501         (__mktime_internal) [!defined _LIBC]: New decl.
71502         (__gmtime_r) [!defined _LIBC]: New macro and function.
71503         (timegm): Use a prototype, since gnulib assumes C89.
71504         Do not bother declaring tmp to be const, as it's not really usefu.
71505         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71506         (timegm): Declare only if HAVE_DECL_TIMEGM.
71507
71508 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71509
71510         * MODULES.html.sh (func_all_modules): Add time_r.
71511         * modules/time_r: New file.
71512         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71513         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71514
71515 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71516
71517         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71518         Bug reported by Lute Kamstra in
71519         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71520
71521         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71522         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71523         course with correspondingly smaller numbers for tomorrow and
71524         yesterday.  From Tadayoshi Funaba.  Originally installed into
71525         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71526         coreutils merge?).
71527
71528 2003-08-31  Simon Josefsson  <jas@extundo.com>
71529
71530         * modules/timegm: New file.
71531         * MODULES.html.sh (func_all_modules): Add timegm.
71532
71533 2003-08-31  Simon Josefsson  <jas@extundo.com>
71534
71535         * m4/timegm.m4: New file.
71536
71537 2003-08-31  Simon Josefsson  <jas@extundo.com>
71538
71539         * lib/timegm.h: New file.
71540         * lib/timegm.c: New file.  Based on
71541         wget-1.8.2/src/http.c:mktime_from_utc.
71542
71543 2003-08-31  Karl Berry  <karl@gnu.org>
71544
71545         * lib/argp.h: update from libc.
71546
71547 2003-08-28  Bruno Haible  <bruno@clisp.org>
71548
71549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71550         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71551         followed by '#define fnmatch fnmatch_posix' gives an error.
71552
71553 2003-08-28  Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71556         warning on QNX, which defines O_BINARY to 000000.
71557
71558 2003-08-27  Jim Meyering  <jim@meyering.net>
71559
71560         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71561         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71562         would fail after 32.  Reported by Danny Levinson.  Details here:
71563         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71564
71565 2003-08-24  Bruno Haible  <bruno@clisp.org>
71566
71567         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71568         MSVC7 <stdio.h> is included later.
71569
71570 2003-08-22  Simon Josefsson  <jas@extundo.com>
71571
71572         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71573
71574 2003-08-20  Karl Berry  <karl@gnu.org>
71575
71576         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71577
71578 2003-08-20  Bruno Haible  <bruno@clisp.org>
71579
71580         * modules/progname: New file.
71581         * MODULES.html.sh (func_all_modules): Add progname.
71582
71583 2003-08-20  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/progname.h: New file, from GNU gettext.
71586         * lib/progname.c: New file, from GNU gettext.
71587         * lib/progreloc.c: New file, from GNU gettext.
71588
71589 2003-08-19  Jim Meyering  <jim@meyering.net>
71590
71591         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71592         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71593
71594 2003-08-19  Bruno Haible  <bruno@clisp.org>
71595
71596         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71597         more.
71598
71599 2003-08-19  Bruno Haible  <bruno@clisp.org>
71600
71601         * lib/xstrdup.c: Assume <string.h> exists.
71602
71603 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71604
71605         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71606         in makefile rules.
71607
71608 2003-08-18  Jim Meyering  <jim@meyering.net>
71609
71610         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71611         * m4/lib-ld.m4: Likewise.
71612
71613 2003-08-18  Jim Meyering  <jim@meyering.net>
71614
71615         * lib/setenv.h: Indent nested cpp directive.
71616         * lib/vasnprintf.c: Remove trailing blanks.
71617
71618 2003-08-17  Simon Josefsson  <jas@extundo.com>
71619
71620         * modules/xstrndup: New file.
71621         * MODULES.html.sh (func_all_modules): Add xstrndup.
71622
71623 2003-08-17  Simon Josefsson  <jas@extundo.com>
71624
71625         * modules/argp: Fix autoconf macro name. Add more dependencies.
71626
71627 2003-08-17  Simon Josefsson  <jas@extundo.com>
71628
71629         * m4/xstrndup.m4: New file.
71630
71631 2003-08-17  Simon Josefsson  <jas@extundo.com>
71632
71633         * m4/argp.m4: New file.
71634
71635 2003-08-17  Simon Josefsson  <jas@extundo.com>
71636             Bruno Haible  <bruno@clisp.org>
71637
71638         * lib/xstrndup.h: New file.
71639         * lib/xstrndup.c: New file.
71640
71641 2003-08-17  Bruno Haible  <bruno@clisp.org>
71642
71643         * modules/strndup (Files, Include): Add lib/strndup.h.
71644
71645 2003-08-17  Bruno Haible  <bruno@clisp.org>
71646
71647         * modules/euidaccess (Files): Add lib/euidaccess.h.
71648
71649 2003-08-17  Bruno Haible  <bruno@clisp.org>
71650
71651         * lib/strndup.h: New file.
71652
71653 2003-08-17  Bruno Haible  <bruno@clisp.org>
71654
71655         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71656         like AC_GNU_SOURCE.
71657         * modules/extensions (configure.ac): Comment out the invocation of
71658         gl_USE_SYSTEM_EXTENSIONS.
71659
71660 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71661
71662         Merges from coreutils, etc.
71663         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71664         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71665         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71666         fixing a typo.
71667         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71668         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71669
71670 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71671
71672         Document merge from coreutils.
71673         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71674         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71675         * modules/utime: Add m4/utimes-null.m4.
71676
71677 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71678
71679         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71680         space, undoing this 2003-08-12 change:
71681         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71682
71683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71684
71685         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71686         strtoul.c from libc, undoing this 2003-08-12 change:
71687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71688
71689 2003-08-16  Jim Meyering  <jim@meyering.net>
71690
71691         Merges from coreutils.
71692         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71693         prefix.  Adjust cache variables similarly.  Create 500 rather than
71694         just 300 files, to exercise bug on Darwin6.5, too.
71695         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71696         $missing_dir.
71697         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71698         AM_SYS_POSIX_TERMIOS.
71699         Reported by mkc@mathdogs.com.
71700         Also change use of $am_cv_sys_posix_termios
71701         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71702         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71703         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71704         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71705         in /proc/mounts until it finds one with matching device number.  This
71706         is unnecessary when the FILE argument *is* a mount point.  No stat call
71707         is necessary in that case.  So, disable the statvfs-testing code on
71708         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71709         as RedHat bug# 84846.
71710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71711         to 1MB, so as not to render systems with no stack size limit (e.g.,
71712         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71713         Include <unistd.h>.  On some systems,
71714         it is required for the definition of _SC_PAGESIZE.
71715
71716 2003-08-16  Jim Meyering  <jim@meyering.net>
71717
71718         Merge from coreutils.
71719         * lib/xstrtoimax.c: #else #if -> #elif.
71720         * lib/xstrtoumax.c: Likewise.
71721
71722 2003-08-16  Jim Meyering  <jim@meyering.net>
71723
71724         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71725         * m4/utimes.m4: Removed.
71726         * m4/utimes-null.m4: Renamed from utimes.m4.
71727
71728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71729         to 1MB, so as not to render systems with no stack size limit (e.g.,
71730         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71731         Include <unistd.h>.  On some systems,
71732         it is required for the definition of _SC_PAGESIZE.
71733
71734 2003-08-16  Jim Meyering  <jim@meyering.net>
71735         and Paul Eggert  <eggert@cs.ucla.edu>
71736
71737         Merges from coreutils, etc.
71738
71739         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71740         using the latest version from cvs.  This avoids problems with #line
71741         directives using a vendor (Sun) compiler.
71742         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71743         Don't set GETGROUPS_LIB here; now it's
71744         done via getgroups.m4's wrapper function.
71745         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71746         rather than just in sh-util/configure.in, so that the
71747         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71748         same.
71749         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71750         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71751         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71752         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71753         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71754         Remove code that is now done by the newly-required macros.
71755         Append $(EXEEXT) to DF_PROG.
71756         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71757         Do not invoke or require the following here,
71758         since prereq.m4 or some gnulib .m4 now does this for us:
71759         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71760         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71761         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71762         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71763         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71764         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71765         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71766         AC_FUNC_OBSTACK.
71767         Do not replace the following functions, as this is now the job
71768         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71769         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71770         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71771         atexit getpass, strdup, getpagesize.
71772         Replace 'raise'.
71773         Do not check for the following functions, as this is now the job
71774         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71775         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71776         setregid.
71777         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71778         Check for sys/sysctl.h.
71779         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71780         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71781         of checking for ssize_t ourselves.
71782
71783         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71784         Require every macro that gnulib/modules/* suggests for us.
71785         (jm_PREREQ_ADDEXT): New macro.
71786         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71787         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71788
71789         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71790         (gl_PHYSMEM): Use it.
71791         Also check for `table' function.
71792         Check for new headers and functions.
71793         Add check for sys/sysmp.h.
71794         With suggestions from Kaveh Ghazi.
71795         Ignore headers that are present but cannot be compiled.  This
71796         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71797         C 5.4.
71798
71799 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71800
71801         Document merge from coreutils.
71802         * modules/userspec: Depend on posixver.
71803         * modules/strftime: Depend on tzset.
71804
71805 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71806
71807         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71808         rather than tab, after '#' in shell-script copyright notices.
71809         Suggested by Bruno Haible.
71810
71811 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71812
71813         * config/srclist-update: Use three spaces, rather than tab, after '#'
71814         in shell-script copyright notices.  Suggested by Bruno Haible.
71815         Remove unnecessary parenthesization in regular expression.
71816
71817 2003-08-15  Jim Meyering  <jim@meyering.net>
71818
71819         Merge from coreutils.
71820         * lib/xgethostname.c: Include <stdlib.h>.
71821         (xghostname): Don't exit for anything other than memory-related
71822         failure; just return NULL.
71823         * lib/userspec.c: Include "posixver.h".
71824         (parse_user_spec): Accept `.' as a separator only
71825         in pre-POSIX-200112 mode.
71826         * lib/strtoimax.c: Use #elif rather than #else #if.
71827         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71828         Remove function, now that we can rely on a working tzset function.
71829         [!_LIBC]: Ensure that the required autoconf test has been run.
71830         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71831         Use underlying_strftime for %r.
71832         * lib/sha.c: Merge in some clean-up and optimization changes from
71833         glibc.
71834         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71835         Ensure that it is a multiple of 64.
71836         Rearrange loop exit tests so as to avoid performing an
71837         additional fread after encountering an error or EOF.
71838         * lib/realloc.c: Update copyright date.
71839
71840 2003-08-15  Jim Meyering  <jim@meyering.net>
71841         and Paul Eggert  <eggert@twinsun.com>
71842
71843         Merge from coreutils.
71844         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71845         member but strut utmpx does not.  Needed for AIX 4.3.3.
71846         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71847
71848 2003-08-15  Jim Meyering  <jim@meyering.net>
71849         and Paul Eggert  <eggert@cs.ucla.edu>
71850
71851         Merges from coreutils, etc.
71852         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71853         Require gl_FUNC_TZSET_CLOBBER.
71854         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71855         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71856         members.
71857
71858 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71859
71860         Help the merge from coreutils.
71861         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71862         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71863         * m4/tzset.m4: Use it too.
71864
71865 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71866
71867         * modules/tzset: New file.
71868
71869 2003-08-14  Jim Meyering  <jim@meyering.net>
71870
71871         Merges from coreutils.
71872         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71873         variable names, rather than @FNMATCH_H@.
71874         * modules/alloca: Likewise for $(ALLOCA_H).
71875
71876         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71877         the three copies of the literal target, `fnmatch.h'.
71878         * modules/alloca (alloca.h): Likewise.
71879
71880 2003-08-14  Jim Meyering  <jim@meyering.net>
71881
71882         Merge from coreutils.
71883         * m4/tzset.m4: New file.
71884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71885         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71886         otherwise, AIX 5.1 systems would end up using the latter.
71887         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71888         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71889         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71890         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71891
71892 2003-08-14  Jim Meyering  <jim@meyering.net>
71893
71894         Merge from coreutils.
71895         * lib/obstack.h: Whitespace changes.
71896         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71897         and xcalloc return values.
71898         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71899         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71900         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71901         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71902         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71903         error from mntctl.
71904         Use mntctl's return value to drive the entry-processing loop, since
71905         we can't rely on the value of the vmt_length member in the last
71906         entry.  On some systems doing so could result in exhausting
71907         virtual memory.  Based in part on a patch from Mike Jetzer.
71908
71909 2003-08-14  Jim Meyering  <jim@meyering.net>
71910         and Paul Eggert  <eggert@twinsun.com>
71911
71912         Merges from coreutils, plus other fixes.
71913         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71914         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71915         for credits and details.  Thanks to Kaveh Ghazi for helping
71916         to keep these files in sync.
71917         (ARRAY_SIZE): Define it.
71918         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71919         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71920         (memcasecmp): Don't assume size_t fits in unsigned int.
71921         Remove casts and duplicate code.
71922         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71923         (memcpy): Remove definition.
71924         Merge in some clean-up and optimization changes from glibc.
71925         [BLOCKSIZE]: Move definition to top of file.
71926         Ensure that it is a multiple of 64.
71927         Rearrange loop exit tests so as to avoid performing an
71928         additional fread after encountering an error or EOF.
71929         * lib/md5.h (md5_uintptr): Define.
71930         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71931         return to the initial working directory.  Preserve errno
71932         for caller.
71933         * lib/idcache.c: Include "xalloc.h".
71934         (xmalloc, xrealloc): Remove decls.
71935         (getuser): Remove casts no longer required in C89.
71936         * lib/human.c: Include stdio.h, for sprintf.
71937         * lib/group-member.c: Include "xalloc.h".
71938         (xmalloc, xrealloc): Remove decls.
71939         (get_group_info): Remove casts no longer required in C89.
71940         * lib/getusershell.c (readname): Remove casts no longer required in
71941         C89.
71942         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71943         * lib/getline.c: Whitespace fix, from coreutils.
71944
71945 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71946
71947         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71948         Check for isascii.
71949
71950         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71951         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71952         Undo previous (whitespace-only) change.
71953
71954 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71955
71956         * lib/exclude.c: Include <ctype.h>
71957         (IN_CTYPE_DOMAIN): New macro.
71958         (is_space): New fn.
71959         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71960         and empty lines.
71961
71962         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71963         Undo previous (whitespace-only) change.
71964
71965 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71966
71967         * config/srclist-update: Change update back to the old behavior,
71968         leaving whitespace alone.  Use one 'sed' command rather than a
71969         pipeline.
71970         (fixlicense): Now a variable, not a function.
71971         (remove_trailing_blanks): Remove.
71972         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71973         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71974         Undo previous (whitespace-only) change.
71975
71976 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71977
71978         Merge from coreutils.
71979         * modules/euidaccess: Add lib_SOURCES, include for new
71980         file euidaccess.h
71981
71982 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71983
71984         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71985         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71986         Normalize leading white space and remove trailing white space.
71987
71988         Merge from coreutils
71989         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71990
71991         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71992         0.12.1.  These files are now being upgraded automatically by
71993         ../config/srclist-update.
71994
71995 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71996
71997         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71998         Normalize leading white space and remove trailing white space.
71999         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72000         notice, as per ../config/srclist-update.
72001
72002         Merge from coreutils.
72003         * lib/euidaccess.h: New file.
72004         * lib/euidaccess.c: Include it.
72005         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72006         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72007         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72008
72009 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72010
72011         * config/srclist-update: Add copyright notice.
72012         (remove_id_lines, remove_trailing_blanks): New constants.
72013         (fixfile): Use them to normalize spacing a bit in copied files.
72014         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72015         Normalize leading white space and remove trailing white space.
72016
72017         * config/texinfo.tex: Sync with texinfo.
72018
72019         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72020         strtoul.c from libc, to merge coreutils whitespace changes.
72021
72022         * config/srclist.txt: Get the following m4 files from gettext:
72023         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72024         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72025         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72026         wint_t.m4.
72027
72028 2003-08-12  Karl Berry  <karl@gnu.org>
72029
72030         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72031         been made.
72032
72033 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72034
72035         * modules/gnu-source, m4/gnu-source.m4:
72036         Remove; we're assuming Autoconf 2.54 or later now.
72037         Suggested by Bruno Haible.
72038         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72039
72040 2003-08-11  Bruno Haible  <bruno@clisp.org>
72041
72042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72043
72044 2003-08-11  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72047         (vasnprintf): Use it instead of wcslen.
72048
72049 2003-08-11  Bruno Haible  <bruno@clisp.org>
72050
72051         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72052         value to ensure that _Bool promotes to int. Use #define for _Bool when
72053         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72054
72055 2003-08-10  Karl Berry  <karl@gnu.org>
72056
72057         * lib/regex.h: update from libc (whitespace fix).
72058
72059 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72060
72061         Merge some files from coreutils.  These changes were
72062         originally made by Jim Meyering.
72063         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72064         many older Unixes require this.
72065         * lib/alloca.c (alloca): Remove cast to argument of free;
72066         no longer needed in C89.
72067         * lib/alloca_.h, regex.h: Fix white space to match
72068         what GNU indent does.
72069
72070 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72071
72072         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72073         apparently Emacs's Unicode mode got confused before my 2003-08-05
72074         checkin.
72075
72076 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72077
72078         * m4/extensions.m4: New file.
72079         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72080         Require gl_USE_SYSTEM_EXTENSIONS.
72081         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72082         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72083
72084 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72085
72086         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72087         * modules/extensions, modules/gnu-source: New files.
72088         * modules/timespec, modules/unlocked-io: Depend on extensions.
72089
72090 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72091
72092         * modules/restrict: New file.
72093         * MODULES.html.sh (func_all_modules): Add restrict.
72094         * modules/regex: Depend on restrict.
72095
72096 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72097
72098         * m4/restrict.m4: New file.
72099         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72100
72101 2003-08-07  Bruno Haible  <bruno@clisp.org>
72102
72103         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72104         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72105
72106 2003-08-07  Bruno Haible  <bruno@clisp.org>
72107
72108         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72109         makes the module 'getndelim2' compatible with the module 'getline'.
72110
72111 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72112
72113         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72114         byte with "\201" to avoid glitches when editing that source file
72115         with multi-gnome-terminal.
72116
72117 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72118
72119         * lib/bumpalloc.h: Remove.
72120
72121 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72122
72123         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72124         * modules/bumpalloc: Remove.
72125
72126 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72127
72128         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72129         GNU coding style.
72130
72131         Merge from coreutils.
72132         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72133         1. From glibc.
72134         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72135         from Karl Berry, implemented by Jim Meyering.
72136         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72137         from Dmitry V. Levin.
72138         Remove anachronistic cast of xrealloc.
72139         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72140         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72141         type. Otherwise, it wouldn't compile with at least /bin/cc on
72142         ymp-cray-unicos9.0.2.X.
72143         Combine two mostly-identical uses of alloca into one.
72144         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72145
72146 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72147
72148         [From Emacs.]
72149
72150         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72151         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72152         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72153         obsolete NLIST_NAME_UNION.
72154         [__GNU__]: Undef BSD and FSCALE.
72155         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72156
72157 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72158
72159         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72160         an enum type, so that it's guaranteed to promote to int.  See:
72161         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72162
72163 2003-08-03  Karl Berry  <karl@gnu.org>
72164
72165         * config/depcomp: update from automake.
72166
72167 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72168
72169         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72170         (strerror): Don't assume that a printable int fits in 14 bytes.
72171
72172 2003-07-31  Bruno Haible  <bruno@clisp.org>
72173
72174         * modules/getpass-gnu: New file.
72175         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72176
72177 2003-07-31  Bruno Haible  <bruno@clisp.org>
72178
72179         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72180
72181 2003-07-24  Karl Berry  <karl@gnu.org>
72182
72183         * config/missing: update from automake.
72184
72185 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72186             Bruno Haible  <bruno@clisp.org>
72187
72188         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72189         * lib/getline.c (getline, getdelim): Likewise.
72190         Remove _GNU_SOURCE define; now it's defined in config.h through
72191         m4/getline.m4.
72192
72193 2003-07-23  Karl Berry  <karl@gnu.org>
72194
72195         * config/config.sub: update from prep.
72196
72197 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72198
72199         * modules/xalloc (Depends-on): Add exitfail.
72200         * modules/xmemcoll: Likewise.
72201
72202 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72203
72204         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72205         over-parenthesization in macros.
72206
72207         Sync with coreutils.
72208
72209         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72210         required by C99.
72211
72212         Use `exit_failure' for xalloc and xmemcoll instead of their own
72213         private exit-failure variables.
72214         * lib/xalloc.h (xalloc_exit_failure): Remove.
72215         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72216         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72217         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72218         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72219         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72220
72221 2003-07-20  Jim Meyering  <jim@meyering.net>
72222
72223         * modules/closeout (Depends-on): Add exitfail.
72224         Suggestion from Bruno Haible.
72225
72226 2003-07-19  Karl Berry  <karl@gnu.org>
72227
72228         * config/config.sub: update from prep.
72229
72230 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72231
72232         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72233         Remove.
72234         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72235         to test that it can stand by itself.  Include "exitfail.h".
72236         Clients should set exit_failure instead.
72237         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72238
72239 2003-07-18  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/getndelim2: New file.
72242         * modules/getline: Share files with module getndelim2.
72243         * modules/getnline: Depend on getndelim2 instead of sharing files with
72244         it. Add getnline.c to lib_SOURCES.
72245         * MODULES.html.sh (func_all_modules): Add getndelim2.
72246
72247 2003-07-18  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/getndelim2.m4: New file.
72250         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72251         invoke gl_PREREQ_GETNDELIM2.
72252         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72253         gl_PREREQ_GETNDELIM2.
72254         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72255         gl_GETNDELIM2.
72256
72257 2003-07-18  Bruno Haible  <bruno@clisp.org>
72258
72259         * lib/getndelim2.h: New file.
72260         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72261         getndelim2.h.
72262         (getndelim2): Make non-static. Change return type to ssize_t.
72263         * lib/getline.h: Change argument names.
72264         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72265         * lib/getnline.c: Include getndelim2.h.
72266
72267 2003-07-18  Andreas Schwab  <schwab@suse.de>
72268
72269         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72270
72271 2003-07-17  Karl Berry  <karl@gnu.org>
72272
72273         * config/config.sub: update from prep.
72274
72275 2003-07-17  Bruno Haible  <bruno@clisp.org>
72276
72277         * modules/getnline: New file.
72278         * modules/getline: Add lib/getndelim2.c to source file list.
72279         * MODULES.html.sh (func_all_modules): Add getnline.
72280
72281 2003-07-17  Bruno Haible  <bruno@clisp.org>
72282
72283         * m4/getnline.m4: New file.
72284
72285 2003-07-17  Bruno Haible  <bruno@clisp.org>
72286
72287         * m4/Makefile.am.in: Remove file.
72288         * m4/Makefile.am: Remove file.
72289         * m4/Makefile.in: Remove file.
72290
72291 2003-07-17  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/getnline.h: New file.
72294         * lib/getnline.c: New file.
72295         * lib/getndelim2.c: New file, extracted from getline.c.
72296         (getndelim2): Renamed from getdelim2, with added nmax argument.
72297         * lib/getline.c: Include getndelim2.c.
72298         (getdelim2): Moved out to getndelim2.c.
72299         (getline, getdelim): Update.
72300
72301 2003-07-17  Bruno Haible  <bruno@clisp.org>
72302
72303         * lib/Makefile.am: Remove file.
72304         * lib/Makefile.in: Remove file.
72305
72306 2003-07-17  Bruno Haible  <bruno@clisp.org>
72307
72308         * configure.in: Remove file.
72309         * Makefile.in: Remove file.
72310
72311 2003-07-17  Bruno Haible  <bruno@clisp.org>
72312
72313         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72314
72315 2003-07-16  Karl Berry  <karl@gnu.org>
72316
72317         * config/srclist-update: was running fixlicense twice, which caused
72318                 texinfo.tex to be nullified for some reason.  Simplify,
72319                 $gplsrc is no longer needed as far as I can see?
72320
72321 2003-07-16  Jim Meyering  <jim@meyering.net>
72322
72323         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72324
72325 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72326
72327         * config/srclist.txt: Get the following files from gettext-runtime/intl
72328         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72329         ref-del.sin.  From Bruno Haible.
72330         * config/srclist-update (fixfile): Change grep pattern again, since the
72331         previous fix didn't work (there was another trailing $).  Use
72332         '[$]' to escape the $s.
72333
72334 2003-07-15  Karl Berry  <karl@gnu.org>
72335
72336         * lib/vasnprintf.c: update from gettext.
72337
72338 2003-07-15  Karl Berry  <karl@gnu.org>
72339
72340         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72341         gets expanded when surrounded by '$'.
72342
72343 2003-07-15  Jim Meyering  <jim@meyering.net>
72344
72345         * modules/save-cwd: Don't depend on error.  From Derek Price.
72346
72347 2003-07-15  Jim Meyering  <jim@meyering.net>
72348
72349         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72350
72351 2003-07-14  Simon Josefsson  <jas@extundo.com>
72352
72353         * modules/mempcpy: New file.
72354         * MODULES.html.sh (func_all_modules): Add mempcpy.
72355
72356 2003-07-14  Simon Josefsson  <jas@extundo.com>
72357
72358         * m4/mempcpy.m4: New file.
72359
72360 2003-07-14  Simon Josefsson  <jas@extundo.com>
72361
72362         * lib/mempcpy.h: New file.
72363         * lib/mempcpy.c: New file.
72364
72365 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72366
72367         * modules/getdate, modules/posixtm: Depend on mktime.
72368
72369 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72370
72371         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72372         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72373         unicodeio.c, unicodeio.h, unlocked-io.h:
72374         Switch from LGPL to GPL.
72375
72376 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72377
72378         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72379         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72380         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72381         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72382         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72383         updated automatically by ../config/srclist-update.  This changes
72384         their license from LPGL to GPL.
72385
72386 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72387
72388         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72389         assumed to refer to the root of the most recent stable gettext version.
72390         * config/srclistvars.sh: Add defaults for eggert.
72391         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72392         Match "This program" as well as "The program".  This is needed
72393         for gettext.
72394
72395 2003-07-14  Jim Meyering  <jim@meyering.net>
72396
72397         Don't emit diagnostics.  Let callers do that.
72398         * lib/save-cwd.c: Don't include "error.h".
72399         (save_cwd): Don't call error.  Ensure that errno is valid
72400         when returning nonzero.
72401
72402         * lib/save-cwd.h (restore_cwd): Update prototype.
72403         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72404         Simplify.  Don't call error upon failure.  Let callers do that.
72405         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72406         when auditing is enabled.  But don't bother updating the #if.
72407
72408 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72409
72410         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72411         it breaks C++ compilation.
72412         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72413
72414 2003-07-10  Simon Josefsson  <jas@extundo.com>
72415
72416         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72417
72418 2003-07-10  Jim Meyering  <jim@meyering.net>
72419
72420         * m4/clock_time.m4: Remove trailing blank.
72421         * m4/intmax_t.m4: Likewise.
72422
72423 2003-07-10  Jim Meyering  <jim@meyering.net>
72424
72425         * lib/vasnprintf.c: Remove trailing blanks.
72426         Make cpp indentation consistent.
72427
72428 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72429
72430         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72431         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72432         Switch from LGPL to GPL.
72433
72434 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72435
72436         * config/srclist.txt: Sort sublists.  Add
72437         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72438         that differ from gnulib for one reason or another; we'd like this list
72439         to be smaller but for now let's document what we have.
72440
72441 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72442
72443         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72444         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72445         and sweeter "eval x=$x".
72446         * config/srclist.txt: Get lib/argp* from glibc.
72447
72448 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72449
72450         * lib/mktime.c: Fix some boundary cases and remove need for floating
72451         point.
72452
72453         Issue a compile-time diagnostic if time_t is floating point, or if
72454         two's complement arithmetic is not in effect, or if arithmetic
72455         right shift does not propagate the sign.  These assumptions were
72456         all in the original code but they weren't checked.
72457
72458         (TIME_T_MIDPOINT, verify): New macros.
72459         (__isleap): Remove; it has integer overflow problems.
72460         (leapyear): New function, without those problems.
72461         (ydhms_tm_diff): Remove; splitting into two parts.
72462         (ydhms_diff): New function, containing the arithmetic part of
72463         the old ydhms_tm_diff function.  Issue a compile-time
72464         diagnostic if we are not using C99 integer division.
72465         Avoid casts when possible.
72466         (guess_time_tm): New function, containing the checking part of
72467         the old ydhms_tm_diff function.  Return the new value, rather than
72468         the difference between it and the old.  Accept a new argument T
72469         so that *T specifies the old value.  Check for overflow in the result.
72470
72471         (__mktime_internal): Use a time_t offset, not a long int offset.
72472         This undoes the 2003-06-04 change, which is no longer needed now
72473         that we have better overflow checking.
72474         (localtime_offset): Likewise.
72475
72476         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72477         and long are 64-bit but int is only 32-bit.
72478         (ydhms_diff): Use long int to store year1 and yday1.
72479         Issue a compile-time diagnostic if long int is not wide enough.
72480
72481         (__mktime_internal): Use long int to store adjusted year and yday.
72482         Use plain C rather than preprocessor commands, if that doesn't
72483         affect efficiency.
72484         Check for overflow (and try to repair) after each probe
72485         rather than checking only at the very end.  This avoids some bugs
72486         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72487         does not equal GMT offset at maximum time).
72488         Use integer to check for overflow rather than floating point; this
72489         is more portable to non-IEEE hosts, and is a tad faster.
72490         When we detect that we are oscillating between two values,
72491         don't check whether tm_isdst has the requested value, since
72492         we already know the answer.  When tm_isdst has the wrong value,
72493         use a different heuristic to find the right one, based on the
72494         extreme values actually observed in practice in tz2003a,
72495         rather than the (overly optimistic) "previous 3 calendar quarters".
72496
72497         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72498         "T const" to accommodate glibc style.
72499         (check_result): Use less-confusing report format.  "long" -> "long int.
72500         (main): Likewise.
72501         Don't loop if the iteration overflows time_t.
72502         Allow a negative step in the iteration.
72503
72504 2003-07-06  Karl Berry  <karl@gnu.org>
72505
72506         * config/depcomp: update from automake.
72507         * config/config.sub: update from prep.
72508
72509 2003-07-03  Karl Berry  <karl@gnu.org>
72510
72511         * config/config.guess: update from prep.
72512
72513 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72514
72515         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72516         xreadlink.c now includes it unconditionally.
72517
72518 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72519
72520         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72521         having it depend on HAVE_SYS_TYPES_H.
72522
72523 2003-07-01  Bruno Haible  <bruno@clisp.org>
72524
72525         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72526         <sys/types.h> should be sufficient.
72527         Reported by Paul Eggert.
72528
72529 2003-06-26  Karl Berry  <karl@gnu.org>
72530
72531         * config/depcomp: update from automake.
72532
72533 2003-06-26  Bruno Haible  <bruno@clisp.org>
72534
72535         * modules/human: Depend on module stdbool.
72536
72537 2003-06-25  Bruno Haible  <bruno@clisp.org>
72538
72539         * modules/readlink: New file.
72540         * modules/xreadlink: Depend on it.
72541         * MODULES.html.sh (func_all_modules): Add readlink.
72542
72543 2003-06-25  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/readlink.m4: New file.
72546
72547 2003-06-25  Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/readlink.c: New file.
72550
72551 2003-06-22  Karl Berry  <karl@gnu.org>
72552
72553         * config/srclist.txt: update mkinstalldirs from automake.
72554         * config/mkinstalldirs: update.
72555
72556 2003-06-22  Bruno Haible  <bruno@clisp.org>
72557
72558         Portability to mingw32.
72559         * m4/ssize_t.m4: New file, from GNU gettext.
72560         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72561         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72562
72563 2003-06-22  Bruno Haible  <bruno@clisp.org>
72564
72565         * modules/safe-read: Add m4/ssize_t.m4.
72566         * modules/xreadlink: Add m4/ssize_t.m4.
72567
72568 2003-06-20  Bruno Haible  <bruno@clisp.org>
72569
72570         Assume C89, so PARAMS isn't needed.
72571         * lib/unicodeio.h (PARAMS): Remove.
72572         * lib/unicodeio.c: Don't use PARAMS.
72573
72574 2003-06-18  Karl Berry  <karl@gnu.org>
72575
72576         * config/config.{guess,sub}: update from prep.
72577
72578 2003-06-18  Jim Meyering  <jim@meyering.net>
72579
72580         Merge changes from coreutils.
72581         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72582         Remove explicit declarations of xmalloc and realloc.
72583         Include xalloc.h.
72584         (read_utmp): Remove anachronistic cast of xmalloc.
72585
72586 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72587
72588         Assume C89, so PARAMS isn't needed.
72589         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72590         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72591         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72592         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72593         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72594         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72595         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72596         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72597         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72598         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72599         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72600         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72601         no longer needed. Anyway, config.h should always be included before any
72602         other file.
72603
72604 2003-06-11  Simon Josefsson  <jas@extundo.com>
72605
72606         * modules/sysexits: New file.
72607         * MODULES.html.sh (func_all_modules): Add sysexits.
72608
72609 2003-06-11  Simon Josefsson  <jas@extundo.com>
72610
72611         * lib/sysexit_.h: New file.
72612
72613 2003-06-11  Derek Price  <derek@ximbiot.com>
72614
72615         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72616         necessary.
72617
72618 2003-06-11  Bruno Haible  <bruno@clisp.org>
72619
72620         * m4/sysexits.m4: New file.
72621
72622 2003-06-10  Simon Josefsson  <jas@extundo.com>
72623
72624         * lib/argp.h: New file, from glibc.
72625         * lib/argp-ba.c: New file, from glibc.
72626         * lib/argp-eexst.c: New file, from glibc.
72627         * lib/argp-fmtstream.c: New file, from glibc.
72628         * lib/argp-fmtstream.h: New file, from glibc.
72629         * lib/argp-fs-xinl.c: New file, from glibc.
72630         * lib/argp-help.c: New file, from glibc.
72631         * lib/argp-namefrob.h: New file, from glibc.
72632         * lib/argp-parse.c: New file, from glibc.
72633         * lib/argp-pv.c: New file, from glibc.
72634         * lib/argp-pvh.c: New file, from glibc.
72635         * lib/argp-xinl.c: New file, from glibc.
72636
72637 2003-06-10  Simon Josefsson  <jas@extundo.com>
72638
72639         * modules/strchrnul: New file.
72640
72641 2003-06-10  Simon Josefsson  <jas@extundo.com>
72642
72643         * modules/argp: New file.
72644
72645 2003-06-10  Simon Josefsson  <jas@extundo.com>
72646
72647         * m4/strchrnul.m4: New file.
72648
72649 2003-06-10  Simon Josefsson  <jas@extundo.com>
72650
72651         * lib/strchrnul.h: New file.
72652         * lib/strchrnul.c: New file.
72653
72654 2003-06-10  Bruno Haible  <bruno@clisp.org>
72655
72656         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72657
72658 2003-06-07  Karl Berry  <karl@gnu.org>
72659
72660         * config/config.{guess,sub}: update from prep.
72661
72662 2003-06-07  Jim Meyering  <jim@meyering.net>
72663
72664         * modules/strtod: Use $(...) notation, not @...@ for
72665         AC_REPLACE'd variables.
72666         * modules/localcharset: Likewise.
72667
72668 2003-06-07  Jim Meyering  <jim@meyering.net>
72669
72670         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72671         in place of my name in the copyright comment.
72672         Remove definition and uses of __P.
72673
72674         From coreutils.
72675         * lib/stat.c: Don't declare xmalloc explicitly.
72676         Instead, include "xalloc.h".
72677         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72678         xrealloc, and xcalloc return values.
72679         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72680         Improve comment.
72681         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72682
72683 2003-06-07  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72686         avoid AC_CONFIG_LINKS.
72687         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72688         fnmatch.h, to avoid AC_CONFIG_LINKS.
72689         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72690
72691 2003-06-07  Bruno Haible  <bruno@clisp.org>
72692
72693         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72694         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72695         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72696         directory.
72697         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72698         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72699         directory.
72700
72701 2003-06-06  Jim Meyering  <jim@meyering.net>
72702
72703         Merge from coreutils.
72704         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72705         Consolidate declarations and initializations of *_base* locals.
72706
72707         Merge from coreutils.
72708         This avoids a core dump on systems without GNU putenv,
72709         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72710         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72711         (unsetenv): New static function, from GNU libc.
72712         (rpl_putenv): Use it.
72713
72714         * lib/modechange.c: Remove trailing blanks.
72715
72716         Merge from coreutils.
72717         * lib/fsusage.c: Remove declaration of statfs.
72718         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72719
72720         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72721
72722 2003-06-06  Jim Meyering  <jim@meyering.net>
72723
72724         * lib/stdbool_.h: Renamed from stdbool.h.in.
72725
72726 2003-06-06  Jim Meyering  <jim@meyering.net>
72727             Bruno Haible  <bruno@clisp.org>
72728
72729         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72730         Adjust Makefile.am snippet not to redirect directly to target.
72731         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72732
72733 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72734
72735         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72736         mismatch, look in future quarters as well as past.  This fixes a
72737         bug when processing fall-backwards gaps immediately after a long
72738         period of daylight-saving time.
72739
72740         * lib/mktime.c: Assume freestanding C89 or better.
72741         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72742         (__P): Remove; not used.
72743         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72744         (mktime, not_equal_tm, print_tm, check_result,
72745         main): Use prototypes.  Use const * where appropriate.
72746         (main): Fix typo in testing code that uncovered by above changes.
72747         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72748
72749 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72750
72751         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72752         locale.h, localeconv.  This merges changes from coreutils.
72753
72754         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72755         It can be removed after the next Autoconf is released.
72756         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72757         needed.
72758
72759 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72760
72761         * lib/mktime.c: Fix Debian bug 177940
72762         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72763         (localtime_offset): Now long int, not time_t, because we want it
72764         to be guaranteed to be signed.  All uses changed.
72765         (__mktime_internal): If overflow would occur when adding offset,
72766         don't add it.
72767
72768         Merge 'human' changes from coreutils.  Rewrite to support
72769         locale-specific notations like thousands separators.
72770         * lib/human.c: Simplify authorship notice.
72771         Include human.h immediately after config.h.
72772         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72773         <limits.h>: Do not include, since human.h does.
72774         (SIZE_MAX, UINTMAX_MAX): New macros.
72775         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72776         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72777         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72778         (power_letter): Renamed from suffixes.
72779         (generate_suffix_backwards): Remove.
72780         (adjust_value): Now takes int style (because of human.h changes)
72781         and long double value (for greater precision on some platforms).
72782         (group_number): New function.
72783         (human_readable): Use it.  Use integer options, not enum.
72784         Put the options before the sizes in the arg list.
72785         Support all the new options.
72786         The old human_readable function has been removed;
72787         use inttostr.h instead.
72788         (human_readable, default_block_size, humblock):
72789         Use uintmax_t, not int, for block sizes.
72790         (human_readable_inexact, block_size_types): Remove.
72791         (block_size_opts): New constant.
72792         (human_options): Renamed from human_block_size, with new signature
72793         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72794         * lib/human.h: Add copyright and authorship notice.
72795         Include <limits.h> and <stdbool.h> unconditionally.
72796         (PARAMS): Remove.  All uses removed.
72797         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72798         (enum human_inexact_style): Remove tag; now a nameless enum.
72799         (human_floor, human_ceiling, human_round_to_even): Now have
72800         values 2, 0, 1 rather than -1, 1, 0.
72801         (human_group_digits, human_suppress_point_zero, human_autoscale,
72802         human_base_1024, human_SI, human_B): New constants.
72803         (human_readable_inexact, human_block_size): Remove.
72804         (human_readable): Size args are now uintmax_t, not int.
72805         (human_options): New decl.
72806
72807         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72808         unnecessary now that we assume C89 or better.  This change
72809         imported from coreutils.
72810
72811         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72812         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72813         in the 2003-05-30 sync from glibc.
72814
72815         .h files should stand alone, but we shouldn't include <sys/types.h>
72816         if we can get away with just <stddef.h>.
72817
72818         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72819         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72820         rather than <sys/types.h>, as we merely need size_t.
72821         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72822         to get size_t.
72823         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72824         Include <stdio.h>, to get FILE.
72825         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72826         memcasecmp.h has included <stddef.h> and all we need is size_t.
72827         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72828         our interface, instead of including <sys/types.h>
72829
72830 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72831
72832         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72833         now, as glibc mktime is buggy on non-glibc systems.
72834
72835 2003-06-03  Karl Berry  <karl@gnu.org>
72836
72837         * config/config.sub: update from prep.
72838
72839 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72840
72841         [from coreutils]
72842         Fix some minor time-related bugs with POSIX time arguments.
72843         Some valid time stamps were being rejected (notably -1, and
72844         time stamps before 1900 on 64-bit hosts).  And some invalid
72845         time stamps were being accepted, e.g. September 31.
72846
72847         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72848         that we can return (time_t) -1 successfully.
72849         * lib/posixtm.c: Likewise.
72850         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72851         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72852         (t): Remove static var.
72853         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72854         of static var.  All uses changed.
72855         (year): Do not reject years before 1900; they can occur with
72856         64-bit time_t.
72857         (posix_time_parse): Do not check for out-of-range components;
72858         that is now the caller's responsibility, since our checks were
72859         only approximations.
72860         (posixtime): Use mktime to check for out-of-range components,
72861         since it knows them exactly.
72862         If mktime returns (time_t) -1, check whether an error actually occurred
72863         by invoking localtime on -1.
72864         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72865         posixtime failures better.
72866         Improve the test data (in comments only).
72867
72868 2003-06-02  Karl Berry  <karl@gnu.org>
72869
72870         * config/mkinstalldirs (version): new variable.
72871         (--version): new option.
72872         (usage): improve message.
72873
72874 2003-05-30  Karl Berry  <karl@gnu.org>
72875
72876         * lib/mktime.c: update from libc.
72877
72878 2003-05-30  Bruno Haible  <bruno@clisp.org>
72879
72880         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72881         * config/config.rpath: Upgrade to gettext-0.12.1.
72882
72883 2003-05-30  Bruno Haible  <bruno@clisp.org>
72884
72885         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72886         * m4/nls.m4: New file, from gettext-0.12.1.
72887         * m4/po.m4: New file, from gettext-0.12.1.
72888         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72889
72890 2003-05-30  Bruno Haible  <bruno@clisp.org>
72891
72892         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72893         * lib/localcharset.h: Likewise.
72894         * lib/localcharset.c: Likewise.
72895
72896 2003-05-29  Karl Berry  <karl@gnu.org>
72897
72898         * config/config.rpath: update from gettext.
72899
72900 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72901
72902         Assume the headers required for C89 freestanding compilers.
72903         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72904         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72905         * m4/human.m4 (gl_HUMAN): Likewise.
72906         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72907         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72908         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72909         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72910         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72911         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72912
72913 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72914
72915         Assume the headers required for C89 freestanding compilers.
72916         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72917         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72918         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72919         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72920         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72921         define, since <limits.h> is guaranteed to do that.
72922         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72923         * lib/exclude.c: Include <stdbool.h> unconditionally.
72924         * lib/tempname.c: Include <stddef.h> unconditionally.
72925         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72926         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72927         <stddef.h> does that.
72928         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72929         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72930         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72931         needed.
72932         * lib/xstrtol.c: Likewise.
72933         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72934         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72935
72936         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72937         warnings on some platforms.
72938
72939         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72940         arbitrarily.
72941
72942 2003-05-26  Jim Meyering  <jim@meyering.net>
72943
72944         Merge in a change from coreutils:
72945         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72946         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72947         that condition, rather than `-1' which is slightly misleading.
72948         Change the name of the cache variable to have the gl_ prefix.
72949         Prompted by a patch from Richard Dawe for DJGPP.
72950
72951 2003-05-24  Karl Berry  <karl@gnu.org>
72952
72953         * config/config.guess: update from prep.
72954
72955 2003-05-22  Karl Berry  <karl@gnu.org>
72956
72957         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72958
72959 2003-05-20  Karl Berry  <karl@gnu.org>
72960
72961         * config/config.guess: update from prep.
72962
72963 2003-05-18  Karl Berry  <karl@gnu.org>
72964
72965         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72966         might actually be set by the user.
72967
72968         * config/depcomp, install-sh, mdate-sh: update from automake.
72969
72970 2003-05-17  Bruno Haible  <bruno@clisp.org>
72971
72972         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72973         invalid expansion for AC_EGREP_CPP.
72974         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72975         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72976         Suggested by Akim Demaille <akim@epita.fr> in
72977         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72978
72979 2003-05-12  Jim Meyering  <jim@meyering.net>
72980
72981         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72982         the space-padded-by-default conversion specifiers, %e, %k, %l.
72983
72984 2003-05-12  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72987         the string is longer than 4 KB.
72988
72989 2003-05-11  Karl Berry  <karl@gnu.org>
72990
72991         * config/config.{guess,sub}: update from prep.
72992
72993 2003-05-09  Bruno Haible  <bruno@clisp.org>
72994
72995         * modules/error: Add m4/strerror_r.m4 to file list.
72996
72997 2003-05-03  Bruno Haible  <bruno@clisp.org>
72998
72999         Upgrade to Unicode-4.0.
73000         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73001         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73002         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73003         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73004         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73005         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73006         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73007         Change width of U+E0100..U+E01EF from 1 to 0.
73008
73009 2003-04-25  Jim Meyering  <jim@meyering.net>
73010
73011         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73012         of type size_t, not int.
73013
73014 2003-04-25  Bruno Haible  <bruno@clisp.org>
73015
73016         * lib/copy-file.c: Include <stddef.h>, for size_t.
73017
73018 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73019
73020         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73021         code which expansion is under static control.  Patch imported from
73022         Akim Demaille's patch to Bison; see
73023         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73024
73025 2003-04-14  Bruno Haible  <bruno@clisp.org>
73026
73027         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73028
73029 2003-04-11  Jim Meyering  <jim@meyering.net>
73030
73031         Merge changes from Coreutils.
73032
73033         2003-03-22  Jim Meyering  <jim@meyering.net>
73034
73035         * lib/strftime.c (widen): Cast alloca return value to proper type.
73036
73037         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73038
73039         From GNU libc.
73040         * lib/strftime.c (my_strftime): Handle very large width
73041         specifications for numeric values correctly.  Improve checks for
73042         overflow.
73043
73044         2003-01-19  Jim Meyering  <jim@meyering.net>
73045
73046         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73047         definitions.
73048         (nl_get_alt_digit) [! defined my_strftime]: Define.
73049         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73050         _nl_get_alt_digit and _nl_get_walt_digit.
73051
73052         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73053         libc. These changes have no effect outside of _LIBC.
73054
73055 2003-04-10  Bruno Haible  <bruno@clisp.org>
73056
73057         * modules/findprog: New file.
73058         * MODULES.html.sh (func_all_modules): Add it.
73059
73060 2003-04-10  Bruno Haible  <bruno@clisp.org>
73061
73062         * m4/findprog.m4: New file.
73063         * m4/eaccess.m4: New file.
73064
73065 2003-04-10  Bruno Haible  <bruno@clisp.org>
73066
73067         * lib/findprog.h: New file, from GNU gettext.
73068         * lib/findprog.c: New file, from GNU gettext.
73069
73070 2003-04-05  Jim Meyering  <jim@meyering.net>
73071
73072         Merge changes from Coreutils.
73073
73074         * lib/exclude.h (PARAMS): Remove definition and uses.
73075         * lib/exclude.c: Remove uses of `PARAMS'.
73076
73077         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73078         Add test-cases for DOS filenames. Declare program_name.
73079         (main): Set up program_name.  Patch by Rich Dawe.
73080
73081         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73082         error from mntctl.
73083         Use mntctl's return value to drive the entry-processing loop, since
73084         we can't rely on the value of the vmt_length member in the last
73085         entry.  On some systems doing so could result in exhausting
73086         virtual memory.  Based in part on a patch from Mike Jetzer.
73087
73088 2003-04-04  Bruno Haible  <bruno@clisp.org>
73089
73090         * modules/linebreak: New file.
73091         * MODULES.html.sh (func_all_modules): Add it.
73092
73093 2003-04-04  Bruno Haible  <bruno@clisp.org>
73094
73095         * m4/linebreak.m4: New file.
73096
73097 2003-04-04  Bruno Haible  <bruno@clisp.org>
73098
73099         * lib/linebreak.h: New file, from GNU gettext.
73100         * lib/linebreak.c: New file, from GNU gettext with slight
73101         modifications.
73102         * lib/lbrkprop.h: New file, from GNU gettext.
73103
73104 2003-04-03  Bruno Haible  <bruno@clisp.org>
73105
73106         * modules/utf8-ucs4: New file.
73107         * modules/utf16-ucs4: New file.
73108         * modules/ucs4-utf8: New file.
73109         * modules/ucs4-utf16: New file.
73110         * MODULES.html.sh (func_all_modules): Add them.
73111
73112 2003-04-03  Bruno Haible  <bruno@clisp.org>
73113
73114         * m4/utf-ucs4.m4: New file.
73115         * m4/ucs4-utf.m4: New file.
73116
73117 2003-04-03  Bruno Haible  <bruno@clisp.org>
73118
73119         * lib/utf8-ucs4.h: New file, from GNU gettext.
73120         * lib/utf16-ucs4.h: New file, from GNU gettext.
73121         * lib/ucs4-utf8.h: New file, from GNU gettext.
73122         * lib/ucs4-utf16.h: New file, from GNU gettext.
73123
73124 2003-04-02  Bruno Haible  <bruno@clisp.org>
73125
73126         * modules/binary-io: New file.
73127         * MODULES.html.sh (func_all_modules): Add it.
73128
73129 2003-04-02  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/binary-io.h: New file, from GNU gettext.
73132
73133 2003-04-01  Bruno Haible  <bruno@clisp.org>
73134
73135         * modules/pathname: New file.
73136         * MODULES.html.sh (func_all_modules): Add it.
73137
73138 2003-04-01  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/pathname.h: New file, from GNU gettext.
73141         * lib/concatpath.c: New file, from GNU gettext.
73142
73143 2003-03-30  Bruno Haible  <bruno@clisp.org>
73144
73145         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73146
73147 2003-03-30  Bruno Haible  <bruno@clisp.org>
73148
73149         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73150         function chown() doesn't exist.
73151
73152 2003-03-28  Bruno Haible  <bruno@clisp.org>
73153
73154         * modules/copy-file: New file.
73155         * MODULES.html.sh (func_all_modules): Add it.
73156
73157 2003-03-28  Bruno Haible  <bruno@clisp.org>
73158
73159         * m4/copy-file.m4: New file.
73160
73161 2003-03-28  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/copy-file.h: New file, from GNU gettext.
73164         * lib/copy-file.c: New file, from GNU gettext.
73165
73166 2003-03-18  Jim Meyering  <jim@meyering.net>
73167
73168         * lib/quote.c (quote_n): Fix typo in comment.
73169
73170 2003-03-18  Bruno Haible  <bruno@clisp.org>
73171
73172         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73173         checking.
73174         * m4/onceonly_2_57.m4: Likewise.
73175
73176 2003-03-17  Bruno Haible  <bruno@clisp.org>
73177
73178         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73179         (m4_quote): Remove macro.
73180         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73181
73182 2003-03-14  Jim Meyering  <jim@meyering.net>
73183
73184         Merge changes from Coreutils.
73185         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73186         to be const, in order to avoid warnings.
73187         (obstack_room): Likewise.
73188         (obstack_empty_p): Likewise.
73189
73190 2003-03-14  Bruno Haible  <bruno@clisp.org>
73191
73192         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73193         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73194
73195 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73196
73197         Merge changes from Bison.
73198         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73199         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73200         when compiling Bison 1.875's `bitset bset = obstack_alloc
73201         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73202         * lib/hash.c: Include <stdbool.h> unconditionally.
73203
73204 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73205
73206         * m4/onceonly.m4 (m4_quote): New macro.
73207         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73208         Quote AC_FOREACH variable-expansions properly.
73209
73210 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73211
73212         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73213
73214 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73215
73216         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73217         Reported by Bruce Becker; see:
73218         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73219
73220 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73221             Bruno Haible  <bruno@clisp.org>
73222
73223         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73224         Reported by John Hughes, see
73225         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73226
73227 2003-02-20  Bruno Haible  <bruno@clisp.org>
73228
73229         * MODULES.html.sh (func_all_modules): Add poll.
73230
73231 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73232
73233         * modules/poll: New file.
73234
73235 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73236
73237         * lib/poll_.h: New file.
73238         * lib/poll.c: New file.
73239
73240 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73241
73242         * m4/poll.m4: New file.
73243
73244 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73245
73246         * modules/mathl: New file.
73247
73248 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73249
73250         * lib/mathl.h: New file.
73251         * lib/acosl.c: New file.
73252         * lib/asinl.c: New file.
73253         * lib/atanl.c: New file.
73254         * lib/ceill.c: New file.
73255         * lib/cosl.c: New file.
73256         * lib/expl.c: New file.
73257         * lib/floorl.c: New file.
73258         * lib/frexpl.c: New file.
73259         * lib/ldexpl.c: New file.
73260         * lib/logl.c: New file.
73261         * lib/sincosl.c: New file.
73262         * lib/sinl.c: New file.
73263         * lib/sqrtl.c: New file.
73264         * lib/tanl.c: New file.
73265         * lib/trigl.c: New file.
73266         * lib/trigl.h: New file.
73267
73268 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73269
73270         * m4/mathl.m4: New file.
73271
73272 2003-02-18  Bruno Haible  <bruno@clisp.org>
73273
73274         * MODULES.html.sh (func_all_modules): Add mathl.
73275
73276 2003-02-17  Bruno Haible  <bruno@clisp.org>
73277
73278         * modules/mkdtemp: New module.
73279         * MODULES.html.sh (func_all_modules): Add it.
73280
73281 2003-02-17  Bruno Haible  <bruno@clisp.org>
73282
73283         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73284
73285 2003-02-17  Bruno Haible  <bruno@clisp.org>
73286
73287         * lib/mkdtemp.h: New file, from GNU gettext.
73288         * lib/mkdtemp.c: New file, from GNU gettext.
73289
73290 2003-02-02  Jim Meyering  <jim@meyering.net>
73291
73292         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73293         e.g. glibc-2.2.93.
73294
73295 2003-01-31  Bruno Haible  <bruno@clisp.org>
73296
73297         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73298         'rpl_rename'.
73299         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73300         'rpl_strnlen'.
73301         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73302         'rpl_strtod'.
73303         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73304         'rpl_utime'.
73305
73306 2003-01-31  Bruno Haible  <bruno@clisp.org>
73307
73308         * lib/rename.c: #undef rename before defining rpl_rename.
73309         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73310
73311 2003-01-30  Bruno Haible  <bruno@clisp.org>
73312
73313         * modules/vasnprintf, modules/vasprintf: New modules.
73314         * MODULES.html.sh (func_all_modules): Add them.
73315
73316 2003-01-30  Bruno Haible  <bruno@clisp.org>
73317
73318         * m4/signed.m4: New file, from GNU gettext.
73319         * m4/longdouble.m4: New file, from GNU gettext.
73320         * m4/wchar_t.m4: New file, from GNU gettext.
73321         * m4/wint_t.m4: New file, from GNU gettext.
73322         * m4/vasnprintf.m4: New file.
73323         * m4/vasprintf.m4: New file.
73324
73325 2003-01-30  Bruno Haible  <bruno@clisp.org>
73326
73327         * lib/printf-args.h: New file, from GNU gettext.
73328         * lib/printf-args.c: New file, from GNU gettext.
73329         * lib/printf-parse.h: New file, from GNU gettext.
73330         * lib/printf-parse.c: New file, from GNU gettext.
73331         * lib/vasnprintf.h: New file, from GNU gettext.
73332         * lib/vasnprintf.c: New file, from GNU gettext.
73333         * lib/asnprintf.c: New file, from GNU gettext.
73334         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73335         * lib/vasprintf.c: New file, from GNU gettext.
73336         * lib/asprintf.c: New file, from GNU gettext.
73337
73338 2003-01-29  Bruno Haible  <bruno@clisp.org>
73339
73340         * modules/stpncpy: New module.
73341         * MODULES.html.sh (func_all_modules): Add it.
73342
73343 2003-01-29  Bruno Haible  <bruno@clisp.org>
73344
73345         * m4/stpncpy.m4: New file.
73346
73347 2003-01-29  Bruno Haible  <bruno@clisp.org>
73348
73349         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73350         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73351
73352 2003-01-28  Bruno Haible  <bruno@clisp.org>
73353
73354         * modules/c-ctype: New module.
73355         * MODULES.html.sh (func_all_modules): Add it.
73356
73357 2003-01-28  Bruno Haible  <bruno@clisp.org>
73358
73359         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73360         Paul Eggert.
73361         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73362         Paul Eggert.
73363
73364 2003-01-27  Bruno Haible  <bruno@clisp.org>
73365
73366         * modules/xsetenv: New module.
73367         * MODULES.html.sh (func_all_modules): Add it.
73368
73369 2003-01-27  Bruno Haible  <bruno@clisp.org>
73370
73371         * lib/xsetenv.h: New file, from GNU gettext.
73372         * lib/xsetenv.c: New file, from GNU gettext.
73373
73374 2003-01-23  Jim Meyering  <jim@meyering.net>
73375
73376         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73377         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73378
73379 2003-01-23  Bruno Haible  <bruno@clisp.org>
73380
73381         * modules/minmax: New module.
73382         * MODULES.html.sh (func_all_modules): Add it.
73383
73384 2003-01-23  Bruno Haible  <bruno@clisp.org>
73385
73386         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73387         Eggert.
73388
73389 2003-01-22  Bruno Haible  <bruno@clisp.org>
73390
73391         * modules/exit: New module.
73392         * MODULES.html.sh (func_all_modules): Add it.
73393
73394 2003-01-22  Bruno Haible  <bruno@clisp.org>
73395
73396         * lib/exit.h: New file, from GNU gettext.
73397
73398 2003-01-19  Bruno Haible  <bruno@clisp.org>
73399
73400         * gnulib-tool: Recognize option --extract-maintainer.
73401         (func_get_maintainer): New function.
73402         * modules/*: Add Maintainer entry.
73403
73404 2003-01-16  Jim Meyering  <jim@meyering.net>
73405
73406         * m4/regex.m4: The `regex' struct is both input and output.
73407         Initialize it before each use.  Patch by Tim Waugh.
73408
73409 2003-01-16  Bruno Haible  <bruno@clisp.org>
73410
73411         * MODULES.html.sh: Add a table of contents. Add the module name as
73412         leftmost column. Add hyperlinks.
73413
73414 2003-01-15  Bruno Haible  <bruno@clisp.org>
73415
73416         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73417
73418 2003-01-15  Bruno Haible  <bruno@clisp.org>
73419
73420         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73421         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73422         suffix.
73423
73424 2003-01-15  Bruno Haible  <bruno@clisp.org>
73425
73426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73427
73428 2003-01-15  Bruno Haible  <bruno@clisp.org>
73429
73430         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73431         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73432
73433 2003-01-14  Jim Meyering  <jim@meyering.net>
73434
73435         * lib/same.c (same_name): Tweak a comment.
73436
73437 2003-01-14  Bruno Haible  <bruno@clisp.org>
73438
73439         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73440         when a string comparison is sufficient.
73441
73442 2003-01-14  Bruno Haible  <bruno@clisp.org>
73443
73444         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73445         'unsigned int'.
73446
73447 2003-01-14  Bruno Haible  <bruno@clisp.org>
73448
73449         * lib/hash-pjw.c: Add comment about low quality of this function.
73450
73451 2003-01-13  Bruno Haible  <bruno@clisp.org>
73452
73453         * modules/stpcpy: Distribute lib/stpcpy.h.
73454         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73455
73456 2003-01-13  Bruno Haible  <bruno@clisp.org>
73457
73458         * modules/*: Add a description.
73459         * modules/strpbrk: Fix Makefile.am snippet.
73460         * modules/strtoimax: Fix dependencies.
73461         * modules/strtoumax: Likewise.
73462
73463 2003-01-13  Bruno Haible  <bruno@clisp.org>
73464
73465         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73466         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73467         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73468
73469 2003-01-13  Bruno Haible  <bruno@clisp.org>
73470
73471         * gnulib-tool (func_create_testdir): Store config/* files in the main
73472         directory.
73473         * config.rpath: Move to ...
73474         * config/config.rpath: ... here.
73475         * modules/gettext: Contains config/config.rpath, not config.rpath.
73476         * modules/iconv: Likewise.
73477
73478 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73479
73480         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73481         to avoid collisions with libcurses and libreadline.
73482
73483         * m4/getstr.m4: Remove.
73484         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73485
73486 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73487
73488         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73489         to avoid collisions with libcurses and libreadline.
73490
73491         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73492         * lib/getstr.h, getstr.c: Remove.
73493         * lib/getline.c: Include "getline.h", to check interface.
73494         Move body of old getstr.c here: this defines MIN_CHUNK and
73495         declares getdelim2, which is renamed from getstr.
73496         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73497
73498         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73499         All uses changed.
73500         * lib/linebuffer.h: Likewise.
73501         (readline): Remove backward-compatibility macro.
73502
73503 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73504
73505         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73506         to avoid collisions with libcurses and libreadline.
73507         * getstr: Remove.
73508         * MODULES.html.sh: Remove getstr.
73509         * modules/getline: Depend on unlocked-io, not getstr.
73510
73511 2003-01-12  Jim Meyering  <jim@meyering.net>
73512
73513         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73514
73515 2003-01-10  Bruno Haible  <bruno@clisp.org>
73516
73517         * modules/alloca: Change Makefile.am requirements. Simplify Include
73518         requirements. Add lib/alloca_.h to file list.
73519
73520 2003-01-10  Bruno Haible  <bruno@clisp.org>
73521
73522         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73523
73524 2003-01-10  Bruno Haible  <bruno@clisp.org>
73525
73526         * lib/alloca_.h: New file.
73527         * lib/getdate.y: Unconditionally include alloca.h.
73528         * lib/makepath.c: Likewise.
73529         * lib/setenv.c: Likewise.
73530         * lib/userspec.c: Likewise.
73531
73532 2003-01-09  Karl Berry  <karl@gnu.org>
73533
73534         * MODULES.html.sh: include `dirname $0` in PATH, to find
73535         gnulib-tool.
73536
73537 2003-01-09  Bruno Haible  <bruno@clisp.org>
73538
73539         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73540         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73541
73542 2003-01-09  Bruno Haible  <bruno@clisp.org>
73543
73544         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73545
73546 2003-01-09  Bruno Haible  <bruno@clisp.org>
73547
73548         * lib/stdbool.h.in: New file.
73549
73550 2003-01-09  Bruno Haible  <bruno@clisp.org>
73551
73552         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73553         * MODULES.html.sh: Likewise.
73554
73555 2003-01-08  Jim Meyering  <jim@meyering.net>
73556
73557         * lib/full-write.c: Undefine and define-away `const' after inclusion
73558         of errno.h, not before.  Suggestion from Bruno Haible.
73559
73560 2003-01-08  Bruno Haible  <bruno@clisp.org>
73561
73562         * modules/full-read: Depend on full-write.
73563
73564 2003-01-08  Bruno Haible  <bruno@clisp.org>
73565
73566         * lib/safe-read.c: Include specification header first, to ensure its
73567         selfcontainedness.
73568         * lib/full-write.c: Likewise.
73569
73570 2003-01-07  Jim Meyering  <jim@meyering.net>
73571
73572         * lib/full-write.c: Rework so that it may serve to define full_read,
73573         too.
73574         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73575
73576 2003-01-07  Bruno Haible  <bruno@clisp.org>
73577
73578         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73579         <inttypes.h>.
73580         * lib/xstrtol.h: Likewise.
73581         * lib/xstrtoimax.c: Likewise.
73582         * lib/xstrtoumax.c: Likewise.
73583         * lib/human.h: Likewise.
73584
73585         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73586         on systems that have <inttypes.h> but not <stdint.h>.
73587
73588 2003-01-07  Bruno Haible  <bruno@clisp.org>
73589
73590         * MODULES.html.sh: Add copyright notice.
73591         (missed_files): Omit CVS directory entries.
73592         (func_module): Make it work with sed-3.02.
73593         * MODULES.txt: Remove file.
73594
73595 2003-01-06  Jim Meyering  <jim@meyering.net>
73596
73597         * lib/version-etc.c: Update year in translatable copyright string.
73598
73599 2003-01-03  Karl Berry  <karl@gnu.org>
73600
73601         * config/config.{guess,sub}: update from prep.
73602
73603 2003-01-02  Karl Berry  <karl@gnu.org>
73604
73605         * doc/COPYING.DOC: belatedly updated to 1.2.
73606
73607 2003-01-01  Karl Berry  <karl@gnu.org>
73608
73609         * gnulib-tool (func_verify_module): report module name $module in
73610         error message, not $1.
73611         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73612         be created, only if it doesn't exist.
73613         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73614
73615 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73616
73617         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73618
73619 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73620
73621         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73622         memcmp if strcoll doesn't work.
73623
73624 2002-12-31  Bruno Haible  <bruno@clisp.org>
73625
73626         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73627         nonempty.
73628
73629 2002-12-31  Bruno Haible  <bruno@clisp.org>
73630
73631         * lib/memcoll.c (STRCOLL): New macro.
73632         (memcoll): Use it.
73633
73634 2002-12-31  Bruno Haible  <bruno@clisp.org>
73635
73636         * lib/localcharset.h: New file.
73637         * lib/localcharset.c: Include it.
73638         * lib/unicodeio.c: Likewise.
73639
73640 2002-12-31  Bruno Haible  <bruno@clisp.org>
73641
73642         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73643         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73644
73645 2002-12-31  Bruno Haible  <bruno@clisp.org>
73646
73647         * lib/getline.h: Include <stddef.h>, for size_t.
73648
73649         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73650         * lib/unicodeio.c: Don't include <stddef.h>.
73651
73652 2002-12-31  Bruno Haible  <bruno@clisp.org>
73653
73654         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73655         HAVE_TM_ZONE.
73656
73657 2002-12-24  Karl Berry  <karl@gnu.org>
73658
73659         * config/config.guess: update from prep.
73660
73661 2002-12-24  Bruno Haible  <bruno@clisp.org>
73662
73663         General infrasructure.
73664         * m4/README: Rewritten.
73665         * m4/onceonly.m4: New file.
73666         * m4/onceonly_2_57.m4: New file.
73667
73668         Module atexit.
73669         * m4/atexit.m4: New file.
73670
73671         Module strtod.
73672         * m4/strtod.m4: New file.
73673
73674         Module strtol.
73675         * m4/strtol.m4: New file.
73676
73677         Module strtoul.
73678         * m4/strtoul.m4: New file.
73679
73680         Module memchr.
73681         * m4/memchr.m4: New file.
73682
73683         Module memcmp.
73684         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73685         (jm_FUNC_MEMCMP): Invoke it.
73686
73687         Module memcpy.
73688         * m4/memcpy.m4: New file.
73689
73690         Module memmove.
73691         * m4/memmove.m4: New file.
73692
73693         Module memset.
73694         * m4/memset.m4: New file.
73695
73696         Module strcspn.
73697         * m4/strcspn.m4: New file.
73698
73699         Module strpbrk.
73700         * m4/strpbrk.m4: New file.
73701
73702         Module strstr.
73703         * m4/strstr.m4: New file.
73704
73705         Module strerror.
73706         * m4/strerror.m4: New file.
73707
73708         Module mktime.
73709         * m4/mktime.m4: Renamed from jm-mktime.m4.
73710         (gl_PREREQ_MKTIME): New macro.
73711         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73712
73713         Module malloc.
73714         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73715         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73716         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73717
73718         Module realloc.
73719         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73720         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73721         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73722
73723         Module strftime.
73724         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73725         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73726         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73727         gl_TM_GMTOFF.
73728         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73729
73730         Module xalloc.
73731         * m4/xalloc.m4: New file.
73732
73733         Module alloca.
73734         * m4/alloca.m4: New file.
73735
73736         Module putenv.
73737         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73738         (jm_FUNC_PUTENV): Invoke it.
73739
73740         Module setenv.
73741         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73742         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73743         when invoked twice.
73744         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73745         gt_FUNC_SETENV.
73746
73747         Module memrchr.
73748         * m4/memrchr.m4: New file.
73749
73750         Module stpcpy.
73751         * m4/stpcpy.m4: New file.
73752
73753         Module strcase.
73754         * m4/strcase.m4: New file.
73755
73756         Module strdup.
73757         * m4/strdup.m4: New file.
73758
73759         Module strnlen.
73760         * m4/strnlen.m4: New file.
73761
73762         Module strndup.
73763         * m4/strndup.m4: New file.
73764
73765         Module xstrtod.
73766         * m4/xstrtod.m4: New file.
73767
73768         Module xstrtol.
73769         * m4/xstrtol.m4: New file.
73770
73771         Module getdate.
73772         * m4/getdate.m4: New file.
73773
73774         Module unlocked-io.
73775         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73776         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73777         * m4/jm-glibc-io.m4n: Remove file.
73778
73779         Module long-options.
73780         * m4/long-options.m4: New file.
73781
73782         Module md5.
73783         * m4/md5.m4: New file.
73784
73785         Module sha.
73786         * m4/sha.m4: New file.
73787
73788         Module getstr.
73789         * m4/getstr.m4: New file.
73790
73791         Module getline.
73792         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73793         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73794         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73795         simply getline. Infoke gl_PREREQ_GETLINE.
73796
73797         Module obstack.
73798         * m4/obstack.m4: New file.
73799
73800         Module hash.
73801         * m4/hash.m4: New file.
73802
73803         Module readtokens.
73804         * m4/readtokens.m4: New file.
73805
73806         Module strverscmp.
73807         * m4/strverscmp.m4: New file.
73808
73809         Module stdbool.
73810         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73811         OSF/1.
73812
73813         Module strtoll.
73814         * m4/strtoll.m4: New file.
73815
73816         Module strtoull.
73817         * m4/strtoull.m4: New file.
73818
73819         Module strtoimax.
73820         * m4/strtoimax.m4: New file.
73821
73822         Module strtoumax.
73823         * m4/strtoumax.m4: New file.
73824
73825         Module xstrtoimax.
73826         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73827         jm_AC_PREREQ_XSTRTOIMAX.
73828         Moved the strtol prerequisites to strtol.m4.
73829         Moved the strtoll prerequisites to strtoll.m4.
73830         Moved the strtoimax prerequisites to strtoimax.m4.
73831
73832         Module xstrtoumax.
73833         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73834         jm_AC_PREREQ_XSTRTOUMAX.
73835         Moved the strtoul prerequisites to strtoul.m4.
73836         Moved the strtoull prerequisites to strtoull.m4.
73837         Moved the strtoumax prerequisites to strtoumax.m4.
73838
73839         Module chown.
73840         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73841         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73842
73843         Module dup2.
73844         * m4/dup2.m4: New file.
73845
73846         Module ftruncate.
73847         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73848         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73849
73850         Module getgroups.
73851         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73852         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73853
73854         Module gettimeofday.
73855         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73856         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73857         gl_PREREQ_GETTIMEOFDAY.
73858
73859         Module mkdir.
73860         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73861         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73862
73863         Module mkstemp.
73864         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73865         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73866         jm_AC_TYPE_UINTMAX_T.
73867         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73868
73869         Module stat.
73870         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73871         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73872
73873         Module lstat.
73874         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73875         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73876
73877         Module timespec.
73878         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73879         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73880         * m4/st_mtim.m4: Indentation.
73881
73882         Module nanosleep.
73883         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73884         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73885         gl_PREREQ_NANOSLEEP.
73886
73887         Module regex.
73888         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73889         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73890         (gl_REGEX): New macro.
73891
73892         Module rename.
73893         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73894         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73895
73896         Module rmdir.
73897         * m4/rmdir.m4: New file.
73898
73899         Module utime.
73900         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73901         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73902         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73903
73904         Module dirname.
73905         * m4/dirname.m4: New file.
73906
73907         Module getopt.
73908         * m4/getopt.m4: New file.
73909
73910         Module unistd-safer.
73911         * m4/unistd-safer.m4: New file.
73912
73913         Module fnmatch.
73914         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73915         declaration.
73916         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73917         (gl_FUNC_FNMATCH_POSIX): New macro.
73918         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73919         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73920         simply fnmatch.
73921
73922         Module exclude.
73923         * m4/exclude.m4: New file.
73924
73925         Module human.
73926         * m4/human.m4: New file.
73927
73928         Module acl.
73929         * m4/acl.m4: Nop.
73930
73931         Module backupfile.
73932         * m4/backupfile.m4: New file.
73933         * m4/d-ino.m4: Indentation.
73934
73935         Module fsusage.
73936         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73937         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73938         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73939
73940         Module dirfd.
73941         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73942         requirements.
73943
73944         Module euidaccess.
73945         * m4/euidaccess.m4: New file.
73946
73947         Module file-type.
73948         * m4/file-type.m4: New file.
73949
73950         Module fileblocks.
73951         * m4/fileblocks.m4: New file.
73952
73953         Module filemode.
73954         * m4/filemode.m4: New file.
73955
73956         Module isdir.
73957         * m4/isdir.m4: New file.
73958
73959         Module lchown.
73960         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73961         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73962
73963         Module makepath.
73964         * m4/makepath.m4: New file.
73965
73966         Module modechange.
73967         * m4/modechange.m4: New file.
73968
73969         Module mountlist.
73970         * m4/mountlist.m4: New file.
73971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73972         Indentation.
73973
73974         Module path-concat.
73975         * m4/path-concat.m4: New file.
73976
73977         Module pathmax.
73978         * m4/pathmax.m4: New file.
73979
73980         Module same.
73981         * m4/same.m4: New file.
73982
73983         Module save-cwd.
73984         * m4/save-cwd.m4: New file.
73985
73986         Module savedir.
73987         * m4/savedir.m4: New file.
73988
73989         Module xgetcwd.
73990         * m4/xgetcwd.m4: New file.
73991         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73992
73993         Module xreadlink.
73994         * m4/xreadlink.m4: New file.
73995
73996         Module safe-read.
73997         * m4/safe-read.m4: New file.
73998
73999         Module safe-write.
74000         * m4/safe-write.m4: New file.
74001
74002         Module closeout.
74003         * m4/closeout.m4: New file.
74004
74005         Module stdio-safer.
74006         * m4/stdio-safer.m4: New file.
74007
74008         Module getpass.
74009         * m4/getpass.m4: New file.
74010
74011         Module getugroups.
74012         * m4/getugroups.m4: New file.
74013
74014         Module group-member.
74015         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74016         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74017
74018         Module idcache.
74019         * m4/idcache.m4: New file.
74020
74021         Module userspec.
74022         * m4/userspec.m4: New file.
74023
74024         Module gettime.
74025         * m4/clock_time.m4: New file.
74026         * m4/gettime.m4: New file.
74027
74028         Module settime.
74029         * m4/settime.m4: New file.
74030
74031         Module posixtm.
74032         * m4/posixtm.m4: New file.
74033
74034         Module gethostname.
74035         * m4/gethostname.m4: New file.
74036
74037         Module canon-host.
74038         * m4/canon-host.m4: New file.
74039
74040         Module gettext.
74041         * m4/codeset.m4: New file, from gettext-0.11.5.
74042         * m4/gettext.m4: New file, from gettext-0.11.5.
74043         * m4/glibc21.m4: New file, from gettext-0.11.5.
74044         * m4/iconv.m4: New file, from gettext-0.11.5.
74045         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74046         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74047         * m4/inttypes.m4: New file, from gettext-0.11.5.
74048         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74049         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74050         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74051         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74052         * m4/lib-link.m4: New file, from gettext-0.11.5.
74053         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74054         * m4/progtest.m4: New file, from gettext-0.11.5.
74055         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74056         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74057         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74058
74059         Module localcharset.
74060         * m4/localcharset.m4: New file.
74061
74062         Module hard-locale.
74063         * m4/hard-locale.m4: New file.
74064
74065         Module mbswidth.
74066         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74067         onceonly macros.
74068         * m4/mbrtowc.m4: Add comment.
74069
74070         Module memcasecmp.
74071         * m4/memcasecmp.m4: New file.
74072
74073         Module memcoll.
74074         * m4/memcoll.m4: New file.
74075
74076         Module unicodeio.
74077         * m4/unicodeio.m4: New file.
74078
74079         Module rpmatch.
74080         * m4/rpmatch.m4: New file.
74081
74082         Module yesno.
74083         * m4/yesno.m4: New file.
74084
74085         Module exitfail.
74086         * m4/exitfail.m4: New file.
74087
74088         Module c-stack.
74089         * m4/c-stack.m4 (gl_C_STACK): New macro.
74090         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74091
74092         Module error.
74093         * m4/error.m4 (gl_ERROR): New macro.
74094         (jm_PREREQ_ERROR): Use onceonly macros.
74095
74096         Module fatal.
74097         * m4/fatal.m4: New file.
74098
74099         Module getloadavg.
74100         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74101         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74102
74103         Module getpagesize.
74104         * m4/getpagesize.m4: New file.
74105
74106         Module getusershell.
74107         * m4/getusershell.m4: New file.
74108
74109         Module physmem.
74110         * m4/physmem.m4: New file.
74111
74112         Module posixver.
74113         * m4/posixver.m4: New file.
74114
74115         Module quotearg.
74116         * m4/quotearg.m4: New file.
74117
74118         Module quote.
74119         * m4/quote.m4: New file.
74120
74121         Module readutmp.
74122         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74123
74124         Module sig2str.
74125         * m4/sig2str.m4: New file.
74126
74127         Other.
74128         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74129         ulonglong.m4.
74130         * m4/intmax_t.m4: New file.
74131         * m4/d-type.m4: Indentation.
74132         * m4/jm-macros.m4: Update.
74133         * m4/prereq.m4 (jm_PREREQ): Update.
74134         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74135         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74136         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74137         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74138         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74139         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74140         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74141         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74142         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74143         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74144         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74145         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74146         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74147         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74148         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74149         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74150         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74151         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74152         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74153
74154 2002-12-24  Bruno Haible  <bruno@clisp.org>
74155
74156         * MODULES.txt: Update according to m4/ changes.
74157
74158         Module gettext.
74159         * config.rpath: New file, from gettext-0.11.5.
74160
74161         * modules/*: New module descriptions.
74162         * gnulib-tool: New file.
74163         * MODULES.html.sh: New file.
74164
74165 2002-12-21  Karl Berry  <karl@gnu.org>
74166
74167         * doc/fdl.texi: update to version 1.2.
74168
74169 2002-12-19  Karl Berry  <karl@gnu.org>
74170
74171         * config/config.guess: update from prep.
74172
74173 2002-12-18  Bruno Haible  <bruno@clisp.org>
74174
74175         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74176         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74177
74178 2002-12-17  Bruno Haible  <bruno@clisp.org>
74179
74180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74181         stdlib.h, string.h.
74182
74183 2002-12-17  Bruno Haible  <bruno@clisp.org>
74184
74185         * lib/canon-host.c (strdup): Remove unused declaration.
74186
74187         * lib/fsusage.c: Include full_read.h.
74188         (get_fs_usage): Use full_read instead of safe_read.
74189
74190         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74191
74192 2002-12-12  Karl Berry  <karl@gnu.org>
74193
74194         * config/config.guess: update from prep.
74195
74196 2002-12-11  Bruno Haible  <bruno@clisp.org>
74197
74198         * m4/setenv.m4: New file, from gettext-0.11.5.
74199
74200 2002-12-11  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74203         not unsetenv().
74204         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74205         modifications:
74206
74207         2002-12-11  Bruno Haible  <bruno@clisp.org>
74208
74209                 * setenv.c (alloca): Fall back to malloc.
74210                 (freea): New macro.
74211                 (setenv): Use freea() to free memory allocated with alloca().
74212
74213         2002-11-13  Bruno Haible  <bruno@clisp.org>
74214
74215                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74216                 function declarations.
74217                 * unsetenv.c (unsetenv): Likewise.
74218
74219         2002-03-04  Bruno Haible  <bruno@clisp.org>
74220
74221                 Portability to AIX 4.3.3.
74222                 * unsetenv.c: New file, extracted from setenv.c.
74223                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74224
74225         2001-12-20  Bruno Haible  <bruno@clisp.org>
74226
74227                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74228                 use malloc instead. For SunOS 4.
74229
74230         2001-12-11  Bruno Haible  <bruno@clisp.org>
74231
74232                 * setenv.c: Declare alloca.
74233                 (compar_fn_t): New typedef.
74234                 (KNOWN_VALUE, STORE_VALUE): Use it.
74235
74236         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74237         setenv.h.
74238
74239 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74240
74241         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74242         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74243         Choose values that are less likely to collide with system fnmatch
74244         options.
74245         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74246         defined (e.g., a pure POSIX system).
74247         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74248         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74249
74250 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74251
74252         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74253         a pain in practice to deal with generated m4 files.  This change
74254         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74255
74256         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74257         and jm-glibc-io.m4, as they are no longer a special case.
74258         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74259         kludge and the auto-generation stuff.  Check only whether the
74260         functions are declared, not whether they exist, since older hosts
74261         that don't declare the functions can't use the optimization anyway.
74262
74263 2002-12-06  Jim Meyering  <jim@meyering.net>
74264
74265         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74266
74267         Merge in changes from libc's misc/error.c, in preparation
74268         for the merge of gnulib's changes back into libc.
74269
74270         * lib/error.c (_): Define only if not already defined.
74271         Move definition to follow all #include directives.
74272         Include unlocked-io.h only if !_LIBC.
74273         [_LIBC]: Include <libio/libioP.h>.
74274         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74275         (fflush): Tweak definition to use INTUSE.
74276         (putc): Define.
74277
74278 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74279
74280         * lib/alloca.c [defined emacs]: Include "lisp.h".
74281         (xalloc_die) [defined emacs]: New macro.
74282         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74283         [! defined emacs]: Include <xalloc.h>.
74284         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74285         (pointer): Typedef to POINTER_TYPE *.
74286         (malloc): Remove decl; we now always use xmalloc.
74287         (alloca): Use old-style definition, since Emacs needs this.
74288         Check for arithmetic overflow when computing combined size.
74289
74290 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74291
74292         Do not generate unlocked-io.h automatically, since it's easier to
74293         maintain it by hand.
74294
74295         * lib/unlocked-io.h: New file, from GNU diffutils,
74296         but with proper copyright notice and attribution.
74297         * lib/gen-uio: Remove.
74298         * lib/Makefile.am: Add copyright notice.
74299         (libfetish_a_SOURCES): Add unlocked-io.h.
74300         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74301         (DISTCLEANFILES, io_functions): Remove macros.
74302         (EXTRA_DIST): Remove gen_uio.
74303         (unlocked-io.h): Remove rule.
74304
74305 2002-12-04  Jim Meyering  <jim@meyering.net>
74306
74307         Reflect the fact that stat.c and lstat.c are no longer generated.
74308         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74309         (DISTCLEANFILES): Likewise.
74310         (EXTRA_DIST): Likewise.
74311         (all_local): Don't depend on stat.c or lstat.c.
74312         (stat.c, lstat.c): Remove rules.
74313         (EXTRA_DIST): Remove xstat.in.
74314
74315         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74316         * lib/stat.c: New file.  Contents mostly from xstat.in.
74317         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74318         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74319
74320         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74321         too.
74322         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74323
74324 2002-12-03  Jim Meyering  <jim@meyering.net>
74325
74326         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74327         but not semantics, to minimize the differences between these two files.
74328         (safe_read): Change comment to mention SAFE_READ_ERROR.
74329
74330         * lib/safe-read.c (IS_EINTR): Define.
74331         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74332
74333 2002-12-02  Jim Meyering  <jim@meyering.net>
74334
74335         * lib/safe-read.c (EINTR): Define.
74336         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74337         (INT_MAX): Provide fallback.
74338         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74339
74340         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74341
74342 2002-12-02  Bruno Haible  <bruno@clisp.org>
74343
74344         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74345         Define, taken from safe-read.c.
74346         (INT_MAX): Provide fallback.
74347         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74348         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74349
74350         * lib/safe-read.c (EINTR): Remove definition.
74351         (safe_read): Don't use EINTR if it is absent.
74352
74353 2002-12-01  Jim Meyering  <jim@meyering.net>
74354
74355         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74356         zero.
74357         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74358
74359 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74360
74361         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74362         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74363         with `if (! (value < limit)) abort ();', for readability.
74364
74365 2002-11-26  Karl Berry  <karl@gnu.org>
74366
74367         * lib/strdup.c: copy from libc again, with jim's ok.
74368         * lib/.cppi-disable: re-add strdup.c
74369
74370 2002-11-25  Karl Berry  <karl@gnu.org>
74371
74372         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74373         instead of "strtol.c".
74374
74375 2002-11-25  Karl Berry  <karl@gnu.org>
74376
74377         * config/install-sh: update from automake for variable quoting, $0 in
74378         error msgs, etc.
74379
74380         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74381         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74382         entry.
74383
74384 2002-11-25  Jim Meyering  <jim@meyering.net>
74385
74386         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74387
74388 2002-11-24  Karl Berry  <karl@gnu.org>
74389
74390         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74391         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74392
74393 2002-11-24  Jim Meyering  <jim@meyering.net>
74394
74395         Update from coreutils:
74396
74397         * lib/mktime.c: Merge in changes from libc.
74398
74399         Avoid a link-time failure on some Linux systems.
74400         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74401         (otherwise).
74402         (__mon_yday): Declare with the STATIC attribute.
74403         (__mktime_internal): Likewise.
74404         Based on a report from Greg Schafer.
74405
74406 2002-11-23  Jim Meyering  <jim@meyering.net>
74407
74408         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74409         Use `unsigned', not `int', as type of index.
74410
74411         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74412
74413         * lib/fsusage.c: Remove unneeded parentheses around operands of
74414         `defined'.
74415
74416 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74417
74418         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74419         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74420         so that we can be included first.
74421         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74422         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74423         No need to include stddef.h or sys/types.h any more.
74424         Surround local include files with "", not "<>".
74425         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74426         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74427         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74428         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74429         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74430         (ISPRINT): Remove; no longer needed now that we assume C89.
74431
74432         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74433         Preserve errno.
74434
74435         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74436         quotearg_char): Use SIZE_MAX rather than
74437         (size_t) -1 when we are talking about "infinity".
74438
74439         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74440
74441 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74442
74443         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74444         hint that one should use `if (! x) abort ();' rather than `assert
74445         (x);', and anyway it's one less thing to worry about configuring.
74446         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74447         hash_rehash, hash_insert): Use abort rather than assert.
74448
74449 2002-11-22  Bruno Haible  <bruno@clisp.org>
74450
74451         * lib/safe-read.h: Assume C89. Add comments.
74452         (safe_read): Change return type to size_t.
74453         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74454         byte counts > SSIZE_MAX correctly.
74455         * lib/safe-write.h: New file.
74456         * lib/safe-write.c: New file.
74457         * lib/full-read.h: New file.
74458         * lib/full-read.c: New file.
74459         * lib/full-write.h: Assume C89. Add comments.
74460         * lib/full-write.c: Include safe-write.h.
74461         (full_write): Rewritten to use safe_write.
74462         Suggested by Jim Meyering and Paul Eggert.
74463
74464 2002-11-21  Jim Meyering  <jim@meyering.net>
74465
74466         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74467
74468         Merge in changes from the coreutils.
74469
74470         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74471         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74472         <stdint.h>.
74473         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74474         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74475         int.  Work more efficiently if X is the same width as uintmax_t.
74476         Do not compare X to -1, to avoid bogus compiler warning.
74477         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74478         Don't assume that f_frsize and f_bsize are the same type.
74479
74480         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74481         warning on FreeBSD.
74482
74483         * lib/makepath.c (make_path): Restore umask *before* creating the final
74484         component.
74485         (make_path): Minor reformatting.
74486
74487         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74488         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74489         HAVE_MALLOC/HAVE_REALLOC.
74490
74491         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74492         dummy ones.  At least on GNU/Linux systems, `auto' means something
74493         else.
74494         From Michael Stone.
74495
74496 2002-11-21  Bruno Haible  <bruno@clisp.org>
74497
74498         Remove case insensitive option matching.
74499         * lib/argmatch.h (argcasematch): Remove declaration.
74500         (ARGCASEMATCH): Remove macro.
74501         (__xargmatch_internal): Remove case_sensitive argument.
74502         (XARGMATCH): Update.
74503         (XARGCASEMATCH): Remove macro.
74504         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74505         case_sensitive argument.
74506         (argcasematch): Remove function.
74507         (__xargmatch_internal): Remove case_sensitive argument.
74508         (main): Use XARGMATCH instead of XARGCASEMATCH.
74509
74510         * lib/xmalloc.c: Change compile-time error message. Add comment about
74511         required autoconf version.
74512
74513 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74514
74515         Merge argmatch cleanups from Bison.  Assume C89.
74516
74517         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74518         Include stdlib.h, for EXIT_FAILURE.
74519         Always include <string.h>, since we assume C89.
74520         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74521         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74522         Include <stddef.h> instead, since it's all we need for size_t.
74523         (PARAMS): Remove.  All uses removed.
74524         (ARRAY_CARDINALITY): Do not bother to #undef.
74525         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74526         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74527         Remove unnecessary parentheses.
74528         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74529         Insert necessary parentheses.
74530         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74531         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74532
74533 2002-11-19  Bruno Haible  <bruno@clisp.org>
74534
74535         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74536         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74537
74538         * lib/mbswidth.h (PARAMS): Remove macro.
74539         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74540         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74541
74542         * lib/gcd.h (PARAMS): Remove macro.
74543         (gcd): Use ANSI C function declarations.
74544         * lib/gcd.c (gcd): Likewise.
74545
74546 2002-11-15  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/strcspn.c: Include <stddef.h>.
74549         (strcspn): Use ANSI C function declaration. Change return type to
74550         size_t. Use NULL.
74551         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74552         (strpbrk): Use NULL.
74553         * lib/strpbrk.h (PARAMS): Remove macro.
74554         (strpbrk): Use ANSI C function declaration.
74555         * lib/strstr.c: Don't include <sys/types.h>.
74556         * lib/strstr.h (PARAMS): Remove macro.
74557         (strstr): Use ANSI C function declarations.
74558
74559 2002-11-14  Karl Berry  <karl@gnu.org>
74560
74561         * config/mkinstalldirs: `do' on separate line, instead of
74562         `for var; do'.
74563
74564 2002-11-06  Bruno Haible  <bruno@clisp.org>
74565
74566         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74567         * lib/gcd.c (gcd): Likewise.
74568
74569 2002-11-05  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/gcd.h: New file, from gettext-0.11.5.
74572         * lib/gcd.c: New file, from gettext-0.11.5.
74573
74574 2002-11-05  Bruno Haible  <bruno@clisp.org>
74575
74576         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74577         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74578         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74579         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74580
74581         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74582         <libintl.h>.
74583         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74584         <libintl.h>.
74585
74586         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74587         * lib/human.c: Include gettext.h instead of <libintl.h>.
74588         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74589         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74590         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74591         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74592         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74593         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74594         (textdomain): Remove definition.
74595         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74596
74597         * lib/long-options.c: Remove include of <libintl.h> and definition of
74598         _.
74599         * lib/same.c: Remove include of <libintl.h> and definition of _.
74600
74601 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74602
74603         * lib/config.charset: A few additions for Solaris.
74604
74605 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74606
74607         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74608         * lib/localcharset.c (locale_charset): Declare as extern "C".
74609
74610 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74611
74612         * lib/config.charset: msdos in uk_UA uses CP1125.
74613
74614 2002-11-04  Bruno Haible  <bruno@clisp.org>
74615
74616         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74617         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74618         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74619         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74620         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74621
74622 2002-11-04  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/localcharset.c (locale_charset): Don't return an empty string.
74625
74626 2002-11-04  Bruno Haible  <bruno@clisp.org>
74627
74628         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74629         aliases.
74630
74631 2002-11-04  Bruno Haible  <bruno@clisp.org>
74632
74633         * lib/config.charset: Update for newest glibc. Add canonical names
74634         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74635
74636 2002-11-04  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/config.charset: Add support for NetBSD.
74639
74640 2002-11-04  Bruno Haible  <bruno@clisp.org>
74641
74642         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74643
74644 2002-11-01  Bruno Haible  <bruno@clisp.org>
74645
74646         * configure.in: Add AC_CONFIG_AUX_DIR call.
74647         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74648         test/Makefile.
74649         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74650
74651 2002-09-28  Karl Berry  <karl@gnu.org>
74652
74653         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74654         installed automake until the next release, since changes have been
74655         made.
74656
74657 2002-09-25  Karl Berry  <karl@gnu.org>
74658
74659         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74660         * lib/getopt*: copy from libc/posix.
74661         * lib/gettext.h: copy from gettext.
74662         * lib/.cppi-disable: add strdup.c, gettext.h.
74663
74664 2002-09-25  Karl Berry  <karl@gnu.org>
74665
74666         * config/srclist.txt: enable gettext.h check.
74667         * config/config.{guess,sub}: update from prep.
74668         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74669                 from automake 1.6.3.
74670         See srclist*.
74671
74672 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74673
74674         * regex.c (PATFETCH): Remove the translating fetch.
74675         (PATFETCH_RAW): Rename to PATFETCH.
74676         (set_image_of_range): New fun.
74677         (SET_RANGE_TABLE_WORK_AREA): Use it.
74678         (regex_compile): Don't translate the pattern chars so eagerly.
74679         Only do it when inserting an `exactn' bytecode or when handling
74680         a char-range.
74681         (mutually_exclusive_p): Avoid empty statement.
74682
74683 2002-07-06  Jim Meyering  <meyering@lucent.com>
74684
74685         * m4/README: Don't mention Makefile.am.in.
74686         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74687
74688 2002-07-01  Jim Meyering  <meyering@lucent.com>
74689
74690         * lib/c-stack.c: Include sys/time.h.
74691         From Volker Borchert.
74692
74693 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74694
74695         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74696
74697 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74698
74699         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74700         New macro.  Use it uniformly instead of
74701         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74702         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74703         reported by Vin Shelton.
74704
74705 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74706
74707         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74708         Do not assume SA_SIGINFO behavior.
74709         Bug reported by Jim Meyering on NetBSD 1.5.2.
74710
74711 2002-06-22  Jim Meyering  <meyering@lucent.com>
74712
74713         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74714         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74715
74716         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74717         now that configure.ac uses AC_GNU_SOURCE.
74718         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74719         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74720
74721         Update to latest tools.  Suggestions from Paul Eggert.
74722         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74723         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74724         * m4/fnmatch.m4: Likewise.
74725         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74726         to AC_HEADER_STDBOOL
74727
74728 2002-06-22  Jim Meyering  <meyering@lucent.com>
74729
74730         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74731         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74732
74733 2002-06-22  Jim Meyering  <meyering@lucent.com>
74734
74735         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74736
74737         * lib/exitfail.c, exitfail.h: Likewise.
74738         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74739
74740         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74741         of fnmatch.h.
74742         (EXTRA_DIST): Add fnmatch_loop.c.
74743         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74744
74745         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74746         * lib/fnmatch.c: Update from diffutils-2.8.2.
74747         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74748         * lib/fnmatch.h: Remove file.
74749
74750 2002-06-21  Jim Meyering  <meyering@lucent.com>
74751
74752         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74753         * m4/mbrtowc.m4: Likewise.
74754
74755         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74756         * m4/mbswidth.m4: Reflect name change:
74757         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74758         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74759
74760         * m4/lib-link.m4: Update from gettext-0.11.2.
74761         * m4/gettext.m4: Likewise.
74762
74763         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74764         From Alfred M. Szmidt.
74765
74766 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74767
74768         * lib/file-type.h: Report an error if neither S_ISREG nor
74769         S_IFREG is defined, instead of using a test specific to glibc
74770         2.2.  This should be safe, since POSIX requires S_ISREG and
74771         Unix Version 7 had S_IFREG.  We don't need to check for
74772         <sys/types.h> since we don't use any symbols that it defines.
74773
74774 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74775
74776         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74777         $@-t, so that each temporary file name is unique and valid in the first
74778         8 characters, for operation under DOS.
74779
74780 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74781
74782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74783
74784 2002-06-15  Jim Meyering  <meyering@lucent.com>
74785
74786         Work even with DJGPP 2.03, which lacks support for symlinks.
74787         From Richard Dawe.
74788         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74789         is defined.
74790         * lib/lchown.c (S_ISLNK): Likewise.
74791
74792 2002-06-15  Jim Meyering  <meyering@lucent.com>
74793
74794         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74795         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74796         have been included before this file.
74797
74798 2002-06-14  Jim Meyering  <meyering@lucent.com>
74799
74800         * lib/file-type.h: Use the version from diffutils-2.8.2.
74801         * lib/file-type.c: Likewise.
74802
74803 2002-06-07  Jim Meyering  <meyering@lucent.com>
74804
74805         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74806         They're needed at least for NetBSD 1.5.2.
74807         ($statxfs_includes): Include those same headers.
74808         ($statxfs_includes): Include sys/vfs.h if available.
74809         ($statxfs_includes): Likewise for sys/statvfs.h.
74810         Check for the following members in both structs statfs and statvfs:
74811         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74812
74813 2002-06-01  Jim Meyering  <meyering@lucent.com>
74814
74815         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74816         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74817
74818 2002-05-28  Jim Meyering  <meyering@lucent.com>
74819
74820         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74821         Reported by Volker Borchert.
74822
74823 2002-05-27  Jim Meyering  <meyering@lucent.com>
74824
74825         Fix a problem seen only on nonconforming systems whereby ls.c's
74826         use of localtime, and then of gettimeofday would cause trouble:
74827         the localtime call used to initialize rpl_gettimeofday's save
74828         mechanism would clobber ls's current local time information so
74829         that in any long listing the first file would always be listed
74830         with date 1970-01-01.  Analysis by Volker Borchert.
74831
74832         * lib/gettimeofday.c (localtime): Undefine.
74833         (rpl_localtime): New function.
74834
74835 2002-05-27  Jim Meyering  <meyering@lucent.com>
74836
74837         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74838         localtime.
74839
74840         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74841         use the replacement function; it wouldn't resolve at link time.
74842         Reported by Volker Borchert.
74843
74844 2002-05-22  Jim Meyering  <meyering@lucent.com>
74845
74846         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74847         file-type.h.
74848         * lib/file-type.h: New file.
74849         * lib/file-type.c (file_type): New file/function.  Extracted from
74850         diffutils.
74851
74852 2002-04-30  Jim Meyering  <meyering@lucent.com>
74853
74854         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74855
74856 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74857
74858         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74859
74860 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74861
74862         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74863         Do not check for alloca.h (no longer used) or stdbool.h (was never
74864         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74865
74866 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74867
74868         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74869
74870 2002-04-29  Jim Meyering  <meyering@lucent.com>
74871
74872         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74873         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74874         Use AC_FUNC_STRNLEN here instead.
74875
74876         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74877         With autoconf-2.53a, it's part of AC_PROG_CC.
74878
74879 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74880
74881         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74883
74884 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74885
74886         * lib/sig2str.h, lib/sig2str.c: New files.
74887         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74888
74889 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74890
74891         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74892         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74893         of 127, since 64 is the largest conceivable number for ancient
74894         nonstandard hosts.
74895         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74896
74897 2002-04-28  Jim Meyering  <meyering@lucent.com>
74898
74899         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74900
74901 2002-04-24  Jim Meyering  <meyering@lucent.com>
74902
74903         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74904         (jm_PREREQ): Use it.
74905
74906         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74907         mach/mach.h fcntl.h.
74908         Check for this function: setlocale.
74909
74910 2002-04-24  Jim Meyering  <meyering@lucent.com>
74911
74912         * lib/gettext.h: New file, from Gettext.
74913         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74914         (libfetish_a_SOURCES): Add gettext.h.
74915
74916 2002-04-16  Jim Meyering  <meyering@lucent.com>
74917
74918         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74919         ut_pid, ut_id, ut_exit.
74920
74921 2002-04-16  Jim Meyering  <meyering@lucent.com>
74922
74923         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74924         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74925         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74926
74927 2002-04-12  Jim Meyering  <meyering@lucent.com>
74928
74929         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74930         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74931         existence of the getmntinfo function.  Needed for Darwin 5.3.
74932
74933         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74934         This is necessary at least on Darwin 5.3.
74935
74936         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74937         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74938         strnlen.o in the library, and that makes some versions of ranlib
74939         object.
74940
74941 2002-04-12  Jim Meyering  <meyering@lucent.com>
74942
74943         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74944
74945 2002-04-09  Jim Meyering  <meyering@lucent.com>
74946
74947         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74948         to be more precise.  Rather than saying we're checking whether the
74949         function `works', say what we're testing.
74950         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74951         Reported by Bruno Haible.
74952
74953 2002-03-10  Jim Meyering  <meyering@lucent.com>
74954
74955         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74956         Suggestion from Santiago Vila.
74957
74958 2002-03-08  Jim Meyering  <meyering@lucent.com>
74959
74960         * lib/rename.c: Mention that this wrapper is needed also on
74961         mips-dec-ultrix4.4 systems.
74962
74963 2002-03-02  Jim Meyering  <meyering@lucent.com>
74964
74965         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74966         not HAVE_CLOCK_SETTIME.
74967
74968 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74969
74970         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74971         Check for clock_settime.
74972
74973 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74974
74975         * lib/nanosleep.h: Rename to....
74976         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74977
74978         * lib/gettime.c: New file.
74979         * lib/settime.c: New file.
74980         * lib/stime.c: Remove.
74981
74982         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74983         timespec.h.  Remove nanosleep.h.
74984
74985 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74986
74987         * m4/acl.m4: New file.
74988         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74989         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74990
74991 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74992
74993         * lib/acl.c, lib/acl.h: New files.
74994         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74995
74996 2002-02-24  Jim Meyering  <meyering@lucent.com>
74997
74998         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74999         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75000         cause trouble.  Reported by Nelson Beebe.
75001
75002 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75003
75004         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75005         compilers that don't know that xalloc_die never returns.
75006
75007 2002-02-20  Jim Meyering  <meyering@lucent.com>
75008
75009         * lib/getdate.c: Regenerate using bison-1.33.
75010
75011 2002-02-17  Jim Meyering  <meyering@lucent.com>
75012
75013         * config/config.guess (main): Don't use `head -1'; it's no longer
75014         portable. Use `sed 1q' instead.
75015
75016 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75017
75018         * m4/codeset.m4: Upgrade to gettext-0.11.
75019         * m4/gettext.m4: Upgrade to gettext-0.11.
75020         * m4/glibc21.m4: Upgrade to gettext-0.11.
75021         * m4/iconv.m4: Upgrade to gettext-0.11.
75022         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75023         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75024         * m4/lib-ld.m4: New file, from gettext-0.11.
75025         * m4/lib-link.m4: New file, from gettext-0.11.
75026         * m4/lib-prefix.m4: New file, from gettext-0.11.
75027         * m4/progtest.m4: Upgrade to gettext-0.11.
75028
75029 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75030
75031         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75032         (jm_PREREQ): Use it.
75033
75034 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75035
75036         * lib/posixver.c, lib/posixver.h: New files.
75037         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75038
75039 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75040             Bruno Haible  <bruno@clisp.org>
75041
75042         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75043         (fwrite_success_callback): New declaration.
75044         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75045         print_unicode_char. Call failure callback instead of error.
75046         (fwrite_success_callback): New function.
75047         (exit_failure_callback): New function.
75048         (fallback_failure_callback): New function.
75049         (print_unicode_char): Call unicode_to_mb.
75050
75051 2002-01-26  Jim Meyering  <meyering@lucent.com>
75052
75053         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75054         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75055
75056 2002-01-26  Jim Meyering  <meyering@lucent.com>
75057
75058         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75059
75060 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75061
75062         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75063
75064 2002-01-22  Jim Meyering  <meyering@lucent.com>
75065
75066         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75067         Otherwise, some versions of automake would omit the rule that makes
75068         Makefile from Makefile.in.
75069
75070 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75071
75072         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75073         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75074         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75075         (memcoll): Set errno to zero if there is no error.
75076
75077         * lib/quotearg.c (quotearg_buffer_restyled):
75078         Fix bug with quoting buffers containing NUL when backslashing escapes.
75079         This bug was exposed by the other changes in this patch.
75080         (quotearg_n_options): New arg ARGSIZE.
75081         All callers changed.
75082         (quoting_options_from_style): New function.
75083         (quotearg_n_style): Use it.
75084         (quotearg_n_style_mem): New function.
75085
75086         * lib/quotearg.h (quotearg_n_style_mem): New function.
75087
75088 2002-01-19  Jim Meyering  <meyering@lucent.com>
75089
75090         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75091         Remove useless quotes: DF_PROG="df".
75092         * m4/strnlen.m4: New file.
75093
75094 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75095
75096         * lib/backupfile.c (ISDIGIT): Comment fix.
75097         * lib/getdate.y (ISDIGIT): Likewise.
75098         * lib/posixtm.c (ISDIGIT, year): Likewise.
75099         * lib/strverscmp.c (ISDIGIT): Likewise.
75100         * lib/userspec.c (ISDIGIT): Likewise.
75101
75102 2002-01-16  Jim Meyering  <meyering@lucent.com>
75103
75104         * lib/getdate.y: Add three semicolons, each just before a closing
75105         brace. Bison (as of version 1.31) no longer papers over that mistake.
75106
75107 2002-01-05  Jim Meyering  <meyering@lucent.com>
75108
75109         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75110
75111 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75112
75113         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75114         not silently exit merely because the output buffer happens to
75115         have nothing pending.
75116
75117 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75118
75119         See the big note in ../ChangeLog.
75120         * lib/human.c (suffixes): Prefer K to k for 1024.
75121         (generate_suffix_backwards): New function.
75122         (human_readable_inexact): Use it.
75123         * lib/xstrtol.c (__xstrtol): If there is no number but there
75124         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75125         Accept 'K' as well as 'k'.
75126
75127 2001-12-15  Jim Meyering  <meyering@lucent.com>
75128
75129         * lib/regex.h (__restrict_arr): Update from libc.
75130
75131         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75132         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75133         (STREQ): Define.
75134
75135 2001-12-14  Jim Meyering  <meyering@lucent.com>
75136
75137         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75138         Suggestion from Bruno Haible.
75139
75140 2001-12-10  Jim Meyering  <meyering@lucent.com>
75141
75142         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75143         xrealloc, Instead, include "xalloc.h".
75144         (initbuffer): Don't cast xmalloc return value to char*.
75145         (readline): Reword comment.
75146         Don't cast xrealloc return value to char*
75147         Return NULL, not 0.
75148
75149 2001-12-09  Jim Meyering  <meyering@lucent.com>
75150
75151         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75152         about `signed and unsigned type in conditional expression'.
75153         * lib/posixtm.c (posix_time_parse): Likewise.
75154
75155         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75156
75157         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75158         to avoid a pedantic warning.
75159
75160         * lib/getstr.c: Don't include assert.h.
75161         (getstr): Remove warning-evoking assertions.
75162         Return -1 if offset parameter is out of bounds.
75163         Change the type of a local from int to size_t.
75164
75165         * lib/strftime.c (my_strftime_localtime_r): Include this function
75166         definition in the `#if ! HAVE_TM_GMTOFF' block.
75167
75168         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75169         Include xalloc.h instead.
75170
75171 2001-12-02  Jim Meyering  <meyering@lucent.com>
75172
75173         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75174         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75175         included.
75176
75177         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75178         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75179
75180 2001-11-30  Akim Demaille  <akim@epita.fr>
75181
75182         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75183         before being defined.
75184
75185 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75186
75187         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75188         First arg is int, not unsigned.
75189         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75190         (SIZE_MAX, UINT_MAX): New macros.
75191         (quotearg_n_options): Abort if N is negative.
75192         Avoid overflow check on hosts where size_t is 64 bits and int
75193         is 32 bits, as overflow is impossible there.
75194         Fix off-by-one typo that caused unnecessary reallocation.
75195
75196 2001-11-27  Jim Meyering  <meyering@lucent.com>
75197
75198         * lib/tempname.c: Merge with version from libc.
75199         * lib/regex.c: Likewise.
75200
75201         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75202         systems for which STDC_HEADERS is 0, it was not included, resulting in
75203         a warning about an integer-to-pointer conversion problem with getenv.
75204         Reported by Volker Borchert.
75205
75206 2001-11-26  Jim Meyering  <meyering@lucent.com>
75207
75208         * lib/gtod.h: Remove file.
75209         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75210         * lib/gettimeofday.c: Don't include gtod.h.
75211         (GTOD_init): Remove function.
75212         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75213         Suggestion from Volker Borchert.
75214
75215 2001-11-23  Jim Meyering  <meyering@lucent.com>
75216
75217         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75218         it.
75219         * lib/hash.c (struct hash_table): Define it here instead.
75220
75221 2001-11-22  Jim Meyering  <meyering@lucent.com>
75222
75223         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75224
75225 2001-11-20  Jim Meyering  <meyering@lucent.com>
75226
75227         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75228         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75229
75230 2001-11-19  Jim Meyering  <meyering@lucent.com>
75231
75232         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75233         directory.  Use "conftestXXXXXX" as the template.
75234         Suggestion from Paul Eggert.
75235
75236         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75237         immediately, so the test doesn't mistakenly hit the max-open-files
75238         limit.
75239
75240 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75241
75242         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75243         (TEMPORARIES): New macro.
75244         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75245         removes an artificial limitation (e.g. HP-UX 10.20, where
75246         TMP_MAX is 17576).
75247
75248 2001-11-18  Jim Meyering  <meyering@lucent.com>
75249
75250         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75251
75252 2001-11-18  Jim Meyering  <meyering@lucent.com>
75253
75254         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75255         on SunOS 4.
75256
75257         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75258         files will be created before anything else.
75259
75260 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75261
75262         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75263         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75264
75265 2001-11-17  Jim Meyering  <meyering@lucent.com>
75266
75267         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75268         Prompted by a report from Bob Proulx.
75269
75270         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75271         Instead, require UTILS_FUNC_MKSTEMP.
75272
75273 2001-11-17  Jim Meyering  <meyering@lucent.com>
75274
75275         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75276         Now, that's done as part of AC_FUNC_STRTOD.
75277
75278 2001-11-17  Jim Meyering  <meyering@lucent.com>
75279
75280         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75281         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75282         rather than group writable.  Patch by Juan F. Codagnone.
75283
75284         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75285         xrealloc, Instead, include "xalloc.h".
75286
75287         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75288         Remove explicit declarations of xmalloc, xrealloc,
75289         and xstrdup.  Instead, include "xalloc.h".
75290
75291         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75292         unlocked-io.h.
75293         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75294         Likewise.
75295         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75296
75297         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75298         Reported by Padraig Brady.
75299
75300         * lib/mkstemp.c: #undef mkstemp.
75301         Include config.h.
75302         (rpl_mkstemp): Rename from mkstemp.
75303         Protoize.
75304
75305 2001-11-16  Jim Meyering  <meyering@lucent.com>
75306
75307         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75308         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75309         determine the amount of total physical memory, use pstat_getstatic.
75310         HPUX-11 doesn't define _SC_PHYS_PAGES.
75311         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75312         If sysconf couldn't be used to determine the amount of available
75313         physical memory, use both pstat_getstatic and pstat_getdynamic.
75314         Based on a patch from Bob Proulx.
75315
75316 2001-11-10  Jim Meyering  <meyering@lucent.com>
75317
75318         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75319         (jm_PREREQ): Use it.
75320
75321 2001-11-09  Jim Meyering  <meyering@lucent.com>
75322
75323         * m4/jm-macros.m4: Require autoconf-2.52f.
75324         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75325         Use these AC_-prefixed names, not the AM_-prefixed ones.
75326
75327         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75328
75329 2001-11-05  Jim Meyering  <meyering@lucent.com>
75330
75331         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75332
75333 2001-11-04  Jim Meyering  <meyering@lucent.com>
75334
75335         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75336         $DEFS.
75337
75338 2001-11-03  Jim Meyering  <meyering@lucent.com>
75339
75340         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75341         of AC_DEFUN.
75342
75343         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75344         know the name of the variable in the macro definition.
75345
75346 2001-11-03  Jim Meyering  <meyering@lucent.com>
75347
75348         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75349         in argmatch_to_argument call.
75350
75351         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75352         argument.
75353
75354         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75355         e.g., a fault due to an attempt to free a NULL pointer.
75356
75357 2001-11-01  Jim Meyering  <meyering@lucent.com>
75358
75359         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75360         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75361
75362 2001-11-01  Jim Meyering  <meyering@lucent.com>
75363
75364         * lib/dirfd.c, lib/dirfd.h: New files.
75365         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75366
75367         * lib/hash.c (hash_print) [TESTING]: Clean up.
75368
75369 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75370
75371         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75372         to avoid a warning if -Wall.
75373
75374 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75375
75376         * README: New file
75377         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75378         (per RMS's instructions, this is now the canonical source)
75379         * lgpl/, gpl/: New directories.
75380
75381 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75382
75383         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75384
75385 2001-10-21  Jim Meyering  <meyering@lucent.com>
75386
75387         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75388         this code would end up calling gettext even in packages built
75389         with --disable-nls.
75390         * lib/getopt.c (_): Likewise.
75391         * lib/regex.c (_): Likewise.
75392
75393 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75394
75395         * m4/error.m4 (jm_PREREQ_ERROR):
75396         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75397         AC_FUNC_STRERROR_R does that.
75398         Check for strerror declaration.
75399
75400         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75401         are supposed to have them these days.
75402         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75403         Merge changes from latest Autoconf CVS.
75404         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75405         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75406         POSIX decided to standardize on the int flavor of strerror_r.
75407
75408 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75409
75410         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75411         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75412         Use strerror_r that is only a macro, even if it is not a function.
75413         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75414         (private_strerror): Use prototypes, not old-style function definition.
75415         (print_errno_message): New function.
75416         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75417         char*-flavored one.
75418         (error_tail, error, error_at_line): Use it.
75419
75420 2001-10-11  Jim Meyering  <meyering@lucent.com>
75421
75422         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75423         and quote_n (1, ... to avoid clobbering a buffer.
75424
75425 2001-10-05  Jim Meyering  <meyering@lucent.com>
75426
75427         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75428         hash-pjw.h.
75429         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75430         * lib/hash-pjw.h: New file.
75431
75432 2001-09-30  Jim Meyering  <meyering@lucent.com>
75433
75434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75435         `struct fsstat' has the `f_fstypename' member.
75436         Use that to define FS_TYPE, which is now used to make
75437         the getfsstat link test tighter.
75438
75439 2001-09-30  Jim Meyering  <meyering@lucent.com>
75440
75441         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75442         Include <sys/ucred.h>, for Apple Darwin.
75443         Include sys/mount.h and sys/fs_types.h only if available.
75444         (FS_TYPE): Define.
75445         (read_filesystem_list): Use FS_TYPE.
75446
75447 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75448
75449         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75450         a boolean context.
75451
75452 2001-09-29  Jim Meyering  <meyering@lucent.com>
75453
75454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75455         [one-argument getmntent function]): Include stdio.h before mntent.h.
75456         SunOS 4.1.x needs it for the declaration of `FILE'.
75457         Patch by Volker Borchert.
75458
75459         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75460         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75461         sys/fs_types.h, and make the link-test for getfsstat guard #include
75462         directives with appropriate #if HAVE_*_H tests so that we can
75463         detect getfsstat on Apple Darwin1.3.7 systems.
75464         Reported by Nelson Beebe.
75465         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75466
75467 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75468
75469         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75470         #defines strtoimax.  Also treat the other strto* functions
75471         like strtoimax.
75472
75473         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75474         Check for strtoul and strtoumax,
75475         as those declarations are made even in the signed case.
75476         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75477         Likewise, for strtol and strtoimax.
75478
75479 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75480
75481         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75482         #defines strtoimax.  Also treat the other strto* functions
75483         like strtoimax.
75484
75485         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75486         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75487         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75488
75489 2001-09-26  Jim Meyering  <meyering@lucent.com>
75490
75491         Most macros in unlocked-io.h had the wrong number of arguments.
75492         * lib/gen-uio: New script.
75493         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75494         * lib/unlocked-io.hin: Remove file.
75495         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75496         rather than trying to embed it here.
75497         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75498         Reported by Padraig Brady.
75499
75500 2001-09-25  Volker Borchert  <bt@teknon.de>
75501
75502         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75503         `result'.
75504
75505 2001-09-24  Jim Meyering  <meyering@lucent.com>
75506
75507         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75508
75509 2001-09-23  Jim Meyering  <meyering@lucent.com>
75510
75511         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75512         instead of the mere test for existence of mntent.h.  The latter
75513         would get a false-positive on AIX 3.4 systems.
75514         In the outer getmntent if-block, don't die if neither of the getmntent
75515         tests succeeds.  Instead, just fall through and continue with the
75516         remaining tests.
75517
75518 2001-09-23  Jim Meyering  <meyering@lucent.com>
75519
75520         * lib/mountlist.c: Remove useless parentheses in #if directives.
75521         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75522         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75523
75524 2001-09-22  Jim Meyering  <meyering@lucent.com>
75525
75526         * m4/gettext.m4: New file.  From gettext.
75527         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75528         * m4/progtest.m4: Likewise
75529         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75530         * m4/glibc21.m4: Likewise.
75531
75532         * m4/libintl.m4: Remove.  No longer used.
75533
75534 2001-09-22  Jim Meyering  <meyering@lucent.com>
75535
75536         * lib/localcharset.c: Update from latest gettext.
75537         * lib/config.charset: Likewise.
75538
75539 2001-09-20  Jim Meyering  <meyering@lucent.com>
75540
75541         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75542         strtoimax.
75543         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75544         strtoumax.
75545
75546 2001-09-20  Jim Meyering  <meyering@lucent.com>
75547
75548         * lib/xstrtol.c (strtoimax): Guard declaration with
75549         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75550         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75551         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75552         (strtoumax): Likewise, for completeness (it wasn't necessary).
75553
75554 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75555
75556         * lib/strtoimax.c (HAVE_LONG_LONG):
75557         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75558         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75559         to work around bug in IBM C compiler.
75560
75561 2001-09-17  Jim Meyering  <meyering@lucent.com>
75562
75563         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75564         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75565         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75566         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75567         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75568         whenever the right hand side need not be expanded by the shell.
75569
75570 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75571
75572         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75573         library.  It's not correct, as some older glibcs are buggy.
75574         fnmatch wasn't fixed until glibc 2.2.
75575
75576         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75577         special shell magic here.
75578
75579 2001-09-16  Jim Meyering  <meyering@lucent.com>
75580
75581         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75582         * m4/jm-macros.m4: Require it.
75583
75584 2001-09-16  Jim Meyering  <meyering@lucent.com>
75585
75586         * lib/mkdir.c: New file.
75587
75588 2001-09-15  Jim Meyering  <meyering@lucent.com>
75589
75590         * m4/jm-macros.m4: Check for help2man.
75591
75592 2001-09-11  Jim Meyering  <meyering@lucent.com>
75593
75594         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75595         The body, by Paul Eggert, was moved here from configure.in.
75596         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75597
75598 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75599
75600         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75601         (jm_PREREQ): Use it.
75602
75603 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75604
75605         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75606         Use ssize_t, not int, to store result of readlink.
75607         Check for ssize_t overflow as well as size_t overflow,
75608         as POSIX says the result of readlink is implementation-defined
75609         when ssize_t overflows.
75610         Remove unnecessary cast to char*.
75611         Use free+malloc instead of realloc, as the storage doesn't need
75612         to be preserved and it's clearer and can be more efficient that way.
75613         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75614         * lib/xreadlink.h (xreadlink): Update prototype.
75615
75616 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75617
75618         * lib/xgetcwd.c: Revert some of the previous change; intead,
75619         fix the HAVE_GETCWD_NULL code to behave more like the
75620         !HAVE_GETCWD_NULL code used to.
75621
75622         Include "xalloc.h".
75623         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75624         invoke xalloc_die.
75625
75626 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75627
75628         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75629         sys/param.h, as pathmax.h includes them.
75630
75631 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75632
75633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75634         (jm_PREREQ_XGETCWD): New macro.
75635
75636         * m4/getcwd.m4: New file.
75637
75638 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75639
75640         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75641         like the HAVE_GETCWD_NULL code.
75642         Include pathmax.h if not HAVE_GETCWD.
75643         Do not include xalloc.h.
75644         (INITIAL_BUFFER_SIZE): New symbol.
75645         Do not use xmalloc / xrealloc, since the caller is responsible for
75646         handling errors.  Preserve errno around `free' during failure.
75647         Do not overrun buffer when using getwd.
75648
75649 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75650
75651         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75652         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75653         getcwd (NULL, 0).
75654
75655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75656
75657         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75658         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75659         spotted by Jim Meyering.
75660
75661 2001-09-03  Jim Meyering  <meyering@lucent.com>
75662
75663         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75664         failure.
75665
75666 2001-09-02  Jim Meyering  <meyering@lucent.com>
75667
75668         * lib/error.c: Update from GNU libc.
75669
75670 2001-09-01  Jim Meyering  <meyering@lucent.com>
75671
75672         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75673         Used by df.
75674
75675 2001-09-01  Jim Meyering  <meyering@lucent.com>
75676
75677         * lib/xreadlink.c: New file.
75678         * lib/xreadlink.h: New file.
75679         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75680         xreadlink.h.
75681
75682         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75683         doesn't conflict with sparc Solaris 7's definition in
75684         /usr/include/sys/int_types.h.
75685
75686         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75687         files.
75688         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75689         and strncasecmp as r-values.  Unixware didn't have declarations.
75690
75691 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75692
75693         * lib/xstrtol.h: Add copyright notice.
75694         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75695         LONGINT_INVALID_SUFFIX_CHAR.
75696
75697 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75698
75699         * lib/xstrtol.c (strtoimax): New decl.
75700
75701 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75702
75703         * lib/xgetcwd.c: Don't include pathmax.h.
75704         Include stdlib.h and unistd.h if available.
75705         Include xalloc.h.
75706         (xmalloc, xstrdup, free): Remove decls.
75707         (xgetcwd): Don't assume sizes fit in unsigned.
75708         Check for overflow when computing sizes.
75709         Simplify reallocation code.
75710
75711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75712
75713         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75714         a directory's st_size can have an arbitrary value, so the old
75715         usage could waste an arbitrary amount of memory.  All uses
75716         changed.
75717         * lib/savedir.h: Update prototype.
75718
75719 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75720
75721         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75722
75723         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75724         old strtoimax.c.
75725
75726         Also, make the following further changes to make this file's
75727         configuration more similar to that of strtol.c:
75728         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75729         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75730         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75731         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75732         changed to signed values.
75733
75734         And make the following changes as well:
75735         Fix copyright notice, as 1999 was missing.
75736         (verify): New macro.
75737         (strtoimax): Check sizes at compile-time, not run-time.
75738         Prefer strtol to strtoll if both work.
75739         (main): Remove; it was not that useful and was a pain to maintain.
75740
75741         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75742
75743 2001-08-31  Jim Meyering  <meyering@lucent.com>
75744
75745         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75746         Use an initial, malloc'd, buffer of length 128 rather than
75747         a statically allocated one of length 1024.
75748
75749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75750
75751         Simplify code, partly by assuming autoconf 2.52 semantics.
75752
75753         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75754
75755         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75756         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75757         All uses removed.
75758         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75759         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75760         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75761         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75762         jm_AC_HEADER_INTTYPES_H.
75763         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75764
75765         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75766
75767         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75768         Quote first arg of AC_DEFUN.
75769         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75770         since they are needed to parse the include file even if we need
75771         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75772         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75773         but with opposite signedness.
75774
75775 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75776
75777         Merge 'exclude' changes from tar 1.13.22.
75778         This fixes one or two unlikely storage allocation overflow bugs,
75779         but doesn't change user-visible behavior otherwise.
75780
75781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75782
75783         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75784         (jm_PREREQ_EXCLUDE): New macro.
75785
75786 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75787
75788         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75789         tm to be declared.
75790
75791 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75792
75793         * lib/hash.c: Remove '2001' from copyright notice.
75794
75795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75796
75797         * lib/full-write.h: New file.
75798         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75799         * lib/full-write.c: Correct credits, as cccp.c no longer
75800         exists and anyway it was so heavily changed from the old cccp
75801         code as to be unrecognizable.  Include full-write.h.
75802         (full_write) Return size_t, with short writes meaning failure.
75803         All callers changed.  This fixes a bug with large buffers
75804         on 64-bit hosts.
75805         * lib/utime.c: Include full-write.h.
75806
75807 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75808
75809         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75810         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75811         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75812         Include if available.
75813         (<xalloc.h>): Include
75814         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75815         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75816         collide with FNM macros.
75817         (struct patopts): New struct.
75818         (struct exclude): Use it, as exclude patterns now come with options.
75819         (new_exclude): Support above changes.
75820         (new_exclude, add_exclude_file):
75821         Initial size must now be a power of two to simplify overflow checking.
75822         (free_exclude, fnmatch_no_wildcards): New function.
75823         (excluded_filename): No longer requires options arg, as the options
75824         are determined by add_exclude.  Now returns bool, not int.
75825         (excluded_filename, add_exclude):
75826         Add support for the fancy new exclusion options.
75827         (add_exclude, add_exclude_file): Now takes int options arg.
75828         Check for arithmetic overflow when computing sizes.
75829         (add_exclude_file): xrealloc might modify errno, so don't
75830         realloc until after errno might be used.
75831
75832         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75833         New macros.
75834         (free_exclude): New decl.
75835         (add_exclude, add_exclude_file): Now takes int options arg.
75836         (excluded_filename): No longer requires options arg, as the options
75837         are determined by add_exclude.  Now returns bool, not int.
75838
75839 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75840
75841         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75842
75843 2001-08-27  Jim Meyering  <meyering@lucent.com>
75844
75845         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75846
75847         * lib/version-etc.c (N_): Remove definition.
75848         Revert most of last change.
75849         Instead, simply don't mark the `Copyright...' string for translation.
75850         Based on advice from Paul Eggert.
75851
75852         * lib/strtoxmax.c: Tweak comment.
75853
75854 2001-08-26  Jim Meyering  <meyering@lucent.com>
75855
75856         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75857
75858         * m4/xstrtoimax.m4: New file.
75859         * m4/xstrtoumax.m4: Add comments explaining why we
75860         AC_REPLACE_FUNCS(strtol).
75861
75862 2001-08-26  Jim Meyering  <meyering@lucent.com>
75863
75864         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75865         of copyright with `%s' so translators don't get an untranslated
75866         message in 2002.
75867         (COPYRIGHT_YEAR): Define.
75868         (version_etc): Use fprintf rather than fputs.
75869         Suggestion from Ulrich Drepper.
75870
75871         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75872
75873         * lib/strtoll.c: New file, from GNU libc.
75874         * lib/xstrtoimax.c: New file.
75875
75876         * lib/xstrtol.h: Add xstrtoimax.
75877         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75878         * lib/strtoimax.c: New file.  Likewise, but first define
75879         STRTOUXMAX_SIGNED.
75880
75881         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75882         ...
75883         * lib/strtoxmax.c: ... then renamed to this.
75884
75885 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75886
75887         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75888         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75889         (jm_AC_TYPE_INTMAX_T): New macro.
75890         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75891
75892         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75893
75894         * m4/longlong.m4: Renamed from ulonglong.m4.
75895         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75896         * m4/uintmax_t.m4: Removed.
75897
75898 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75899
75900         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75901         Port to Solaris 8, where 'sed' requires a space after the 'r'
75902         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75903         Redirect output to $tmp just once.
75904
75905 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75906
75907         * lib/addext.c (<errno.h>): Include.
75908         (errno): Declare if not defined.
75909         (addext): Work correctly when pathconf returns -1 and leaves
75910         errno alone because there is no limit.  Also, work even if
75911         pathconf returns a value greater than SIZE_MAX.
75912
75913 2001-08-12  Jim Meyering  <meyering@lucent.com>
75914
75915         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75916         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75917         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75918         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75919         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75920         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75921         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75922         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75923         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75924         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75925         utime.m4, utimes.m4, xstrtoumax.m4:
75926         Quote the first argument in each use of AC_DEFUN.
75927
75928 2001-08-12  Jim Meyering  <meyering@lucent.com>
75929
75930         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75931         Simply `return getcwd (NULL, 0);'.
75932         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75933         Use 1300 as initial value for length, not PATH_MAX.
75934
75935         * lib/pathmax.h: Clean up cpp syntax.
75936
75937 2001-08-12  Jim Meyering  <meyering@lucent.com>
75938
75939         * lib/gettimeofday.c: New file.
75940         * lib/gtod.h: New file.
75941         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75942
75943 2001-08-05  Jim Meyering  <meyering@lucent.com>
75944
75945         * m4/jm-macros.m4: Require autoconf-2.52.
75946
75947 2001-08-04  Jim Meyering  <meyering@lucent.com>
75948
75949         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75950         stmt, to get in sync with glibc.
75951
75952 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75953
75954         The following changes are from gettext 0.10.39 as maintained by
75955         Bruno Haible.
75956
75957         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75958         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75959         with inverted sense.  All uses changed.
75960
75961         * lib/mbswidth.c: Don't include <limits.h>.
75962         Include <stdlib.h> and <string.h> unconditionally.
75963         (iswcntrl, mbsinit, ISCNTRL): New macros.
75964         (mbsnwidth): Use K&R style function declarations.
75965         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75966         can optimize it when MB_CUR_MAX == 1.
75967         The width of control characters is zero, not 1.
75968
75969 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75970
75971         The following changes are from gettext 0.10.39 as maintained by
75972         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75973
75974         * m4/codeset.m4: Upgrade to serial AM1.
75975         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75976         all uses changed.  Quote first arg of AC_DEFUN.
75977         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75978
75979         * m4/iconv.m4: Upgrade to serial AM2.
75980         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75981         Add --with-libconv-prefix.
75982         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75983         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75984         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75985         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75986         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75987
75988         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75989         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75990         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75991         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75992         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75993         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75994         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75995         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75996         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75997
75998         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75999         string.h any more.
76000
76001         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76002         not the default value.
76003
76004         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76005         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76006         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76007         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76008         Also check for iswcntrl, used for wcwidth fallback.
76009         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76010         to Autoconf 2.13.
76011
76012 2001-08-03  Jim Meyering  <meyering@lucent.com>
76013
76014         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76015         as it was in the original.  Reported by Paul Eggert.
76016
76017 2001-07-16  Jim Meyering  <meyering@lucent.com>
76018
76019         * m4/gettimeofday.m4: New file.
76020         Prompted by a report from Bernhard Baehr.
76021
76022 2001-07-15  Jim Meyering  <meyering@lucent.com>
76023
76024         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76025         stuff. Now it's in ../Makefile.cfg.
76026
76027 2001-07-15  Jim Meyering  <meyering@lucent.com>
76028
76029         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76030         (BUILT_SOURCES): Add unlocked-io.h.
76031         (io_functions): Define.
76032         (unlocked-io.h): New rule.
76033         (DISTCLEANFILES): Add unlocked-io.h.
76034         (all-local): Depend on unlocked-io.h, to ensure it is created.
76035
76036         * lib/unlocked-io.hin: New file
76037
76038         * lib/regex.c: Update from glibc.
76039
76040 2001-07-05  Jim Meyering  <meyering@lucent.com>
76041
76042         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76043         recommendation.
76044         (libfetish_a_SOURCES): Put all .h files here instead.
76045         Remove a thus-exposed (better checks in automake) duplicate and
76046         two unnecessary .h files.
76047
76048 2001-07-04  Jim Meyering  <meyering@lucent.com>
76049
76050         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76051         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76052         distcheck failure.
76053
76054 2001-07-02  Jim Meyering  <meyering@lucent.com>
76055
76056         The following changes were prompted by suggestions from Bruno Haible.
76057
76058         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76059         is now generated.
76060         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76061         definition of EXTRA_DIST.
76062         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76063         ensure that the generated file is created/updated whenever the list
76064         of $(unlocked_functions) is changed.
76065         (jm-glibc-io.m4): New rule.
76066         (unlocked-io.h): New rule -- currently unused.
76067
76068 2001-06-24  Jim Meyering  <meyering@lucent.com>
76069
76070         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76071         unmatched right bracket, rather than kludging it with an extra,
76072         falsely-matching quote in a comment.  Patch by Akim Demaille.
76073
76074 2001-06-11  Jim Meyering  <meyering@lucent.com>
76075
76076         * lib/regex.c: Update from GNU libc.
76077
76078 2001-05-27  Jim Meyering  <meyering@lucent.com>
76079
76080         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76081         Check for ut_type in struct utmp.
76082
76083 2001-05-27  Jim Meyering  <meyering@lucent.com>
76084
76085         * lib/readutmp.h (UT_TYPE): Define.
76086
76087 2001-05-24  Jim Meyering  <meyering@lucent.com>
76088
76089         * lib/argmatch.c: Include "quote.h".
76090         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76091         quote function.  Reported by Göran Uddeborg.
76092
76093 2001-05-22  Jim Meyering  <meyering@lucent.com>
76094
76095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76096         now that we use the package-supplied version unconditionally.
76097         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76098
76099 2001-05-21  Jim Meyering  <meyering@lucent.com>
76100
76101         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76102         shell syntax errors.
76103
76104 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76105
76106         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76107
76108 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76109
76110         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76111         Don't bother to check library strftime, since
76112         we'll be using our own my_strftime function anyway.
76113         Define my_strftime instead of strftime.
76114
76115 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76116
76117         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76118         which is not yet declared.
76119
76120 2001-05-15  Jim Meyering  <meyering@lucent.com>
76121
76122         * m4/regex.m4: Use proper quoting so brackets appear in the test
76123         program.
76124         Reported by, and with help from, Bruno Haible.
76125
76126 2001-05-13  Jim Meyering  <meyering@lucent.com>
76127
76128         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76129         undefined.
76130
76131 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76132
76133         dirname code cleanup.  base_name now behaves more compatibly
76134         with POSIX basename when given file names that have trailing
76135         slashes, and similarly for dir_name.  Add new primitives
76136         base_len and dir_len.  Put the directory-name-related decls
76137         into dirname.h.
76138
76139         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76140         * lib/backupfile.c (base_name): Likewise.
76141         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76142         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76143         * lib/makepath.c (strip_trailing_slashes): Likewise.
76144         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76145         ISSLASH): Likewise.
76146         * lib/rename.c (strip_trailing_slashes): Likewise.
76147         * lib/same.c (base_name): Likewise.
76148         * lib/stripslash.c (ISSLASH): Likewise.
76149
76150         * lib/addext.c: Include <dirname.h> after size_t is defined.
76151         * lib/backupfile.c: Likewise.
76152
76153         * lib/addext.c (addext): Use base_len to trim redundant
76154         trailing slashes instead of doing it ourselves.
76155         But do not trim the last slash if it is not redundant.
76156
76157         * lib/backupfile.c (find_backup_file_name,
76158         max_backup_version): Use base_len instead of rolling it ourselves.
76159         Handle the case of "" and (on DOS) "C:" correctly.
76160
76161         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76162         needed. Include <string.h>, <dirname.h>.
76163         (base_name): Allow file names ending in slashes, other than names
76164         that are all slashes.  In this case, return the basename followed
76165         by the slashes.  This is more general, and can be used in places
76166         where the original base_name purposely had an assertion failure.
76167         (base_len): New function.
76168
76169         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76170         Do not include <assert.h>; no longer needed.
76171         Include xalloc.h.
76172         (memrchr): Remove decl.
76173         (dir_name_r): Remove.
76174         (dir_len): Renamed from dirlen.  All callers changed.
76175         Rewrite in terms of base_name, for simplicity and consistency.
76176         (dir_name): Never return NULL.  All callers changed.
76177         Do not include <stdlib.h> in test program; no longer needed.
76178         return 0; is fine for test program.
76179
76180         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76181         New macros.
76182         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76183
76184         * lib/path-concat.c (path_concat): Use base_len to compute
76185         base length, not strlen; this means we cannot rely on memcpy
76186         to null-terminate.
76187
76188         * lib/same.c (STREQ): Remove.
76189         (same_name): Handle the case where the basename ends in trailing '/'.
76190
76191         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76192         a slash was stripped.  Do not strip the last slash after a
76193         file system prefix.
76194
76195 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76196
76197         * lib/Makefile.am (libfetish_a_SOURCES):
76198         Add strftime.c, since we now compile it on all hosts.
76199
76200         * lib/strftime.c (my_strftime):
76201         Define to nstrftime if emacs, but only if my_strftime is not defined.
76202         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76203         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76204         Add one more extra argument: a nanoseconds value.
76205         All uses changed.
76206         (ns): New macro.
76207         (my_strftime function): Add %N format.
76208         (emacs_strftimeu): Renamed from emacs_strftime,
76209         with extra ut argument.
76210
76211 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76212
76213         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76214
76215 2001-04-21  Jim Meyering  <meyering@lucent.com>
76216
76217         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76218         doesn't interfere.
76219
76220 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76221
76222         * m4/ftruncate.m4: Check for chsize.
76223         Link with ftruncate.o unconditionally if ftruncate is missing.
76224         This was required when cross-compiling to i586-mingw32msvc.
76225
76226 2001-04-08  Jim Meyering  <meyering@lucent.com>
76227
76228         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76229         recomputed; that's necessary when the offset spans a DST transition.
76230         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76231
76232 2001-04-02  Jim Meyering  <meyering@lucent.com>
76233
76234         * lib/regex.h, regex.c: Update from GNU libc.
76235
76236 2001-03-24  Jim Meyering  <meyering@lucent.com>
76237
76238         * m4/jm-macros.m4: Require autoconf-2.49d.
76239
76240 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76241
76242         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76243
76244 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76245
76246         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76247
76248 2001-03-17  Jim Meyering  <meyering@lucent.com>
76249
76250         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76251         now that the version in autoconf is equivalent.
76252         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76253
76254         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76255         Suggestion from Akim Demaille.
76256
76257         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76258         (jm_PREREQ_TEMPNAME): New function.
76259
76260 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76261
76262         * lib/tempname.c (uint64_t): Define to uintmax_t if
76263         not defined, and if UINT64_MAX is not defined.
76264         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76265         Reported by John David Anglin.
76266
76267 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76268
76269         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76270         resolve alias if codeset is empty.
76271         * lib/config.charset (BeOS): Use wildcard syntax.
76272
76273 2001-03-13  Jim Meyering  <meyering@lucent.com>
76274
76275         * lib/path-concat.c (path_concat)
76276         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76277         concatenating e.g., `C:' and `foo'.
76278         From Bruno Haible.
76279
76280 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76281
76282         * lib/localcharset.c (locale_charset): Don't use
76283         setlocale(LC_CTYPE,NULL). Don't return NULL.
76284         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76285
76286 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76287
76288         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76289         support for DOS/DJGPP.
76290
76291 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76292
76293         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76294         lacks mkstemp.  Compile our own tempname.c if we compile our own
76295         mkstemp.c, as mkstemp relies on tempname.
76296
76297 2001-03-01  Jim Meyering  <meyering@lucent.com>
76298
76299         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76300         AH_VERBATIM really does output its argument verbatim.
76301
76302 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76303
76304         * lib/Makefile.am (libfetish_a_SOURCES):
76305         Add dup-safer.c, fopen-safer.c.
76306         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76307
76308         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76309         * lib/unistd-safer.h: New files.
76310
76311 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76312
76313         The mkstemp replacement is taken from glibc 2.2.2, with some
76314         portability fixes for use outside glibc, as follows:
76315
76316         * lib/tempname.c (struct_stat64): New macro.
76317         (direxists, __gen_tempname): Use it.
76318         This avoids a portability problem with Solaris 8.
76319
76320         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76321         (<stddef.h>, <stdint.h>, <string.h>):
76322         Include only if STDC_HEADERS || _LIBC.
76323         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76324         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76325         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76326         (__set_errno): Define this macro if <errno.h> doesn't.
76327         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76328         Define these macros if <stdio.h> doesn't.
76329         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76330         Define these macros if <sys/stat.h>
76331         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76332         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76333         __xstat64): Define if not _LIBC.
76334         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76335         (__gen_tempname): Invoke gettimeofday only if
76336         HAVE_GETTIMEOFDAY || _LIBC;
76337         otherwise, fall back on plain "time".
76338         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76339
76340         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76341
76342         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76343
76344 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76345
76346         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76347
76348 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76349
76350         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76351         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76352         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76353         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76354
76355 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76356
76357         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76358         Remove workaround macros for hosts that have mbrtowc but not
76359         mbstate_t, as we now insist on proper declarations for both
76360         before using mbrtowc.
76361
76362 2001-02-17  Jim Meyering  <meyering@lucent.com>
76363
76364         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76365         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76366         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76367         UnixWare 7.1.1.
76368
76369         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76370         rather than AC_CACHE_VAL.
76371
76372 2001-02-17  Jim Meyering  <meyering@lucent.com>
76373
76374         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76375         around included file name.
76376
76377         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76378
76379         * lib/strftime.c: Update from GNU libc (the only changes were to
76380         comments).
76381
76382 2001-02-17  Jim Meyering  <meyering@lucent.com>
76383
76384         * lib/regex.c: Update from libc.
76385
76386 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76387
76388         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76389         clash.
76390
76391 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76392
76393         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76394         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76395         Reported by Mark Hounschell via Paul Eggert.
76396
76397 2001-02-07  Jim Meyering  <meyering@lucent.com>
76398
76399         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76400
76401 2001-02-05  Jim Meyering  <meyering@lucent.com>
76402
76403         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76404         it includes the patch required for `large file' support with at least
76405         HP-UX's 10.20 /bin/cc.
76406
76407 2001-02-03  Jim Meyering  <meyering@lucent.com>
76408
76409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76410         AS_IF, now that it works once again (mysteriously).
76411         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76412
76413 2001-01-30  Jim Meyering  <meyering@lucent.com>
76414
76415         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76416         * m4/chown.m4: Rename conftestchown to conftest.chown.
76417         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76418         s/conftestdir2/conftest.d2/.
76419         * m4/utimes.m4: s/conftestdata/conftest.data/
76420         Inspired by Pavel Roskin's change in autoconf.
76421
76422 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76423
76424         * lib/config.charset: Update for FreeBSD 4.2.
76425
76426 2001-01-27  Jim Meyering  <meyering@lucent.com>
76427
76428         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76429         a use of AS_IF.
76430         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76431
76432 2001-01-26  Jim Meyering  <meyering@lucent.com>
76433
76434         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76435         quotearg.c includes it.
76436
76437 2001-01-26  Jim Meyering  <meyering@lucent.com>
76438
76439         * lib/quotearg.c: Include stddef.h.
76440         * lib/quote.c: Include stddef.h.
76441         Reported by Axel Kittenberger.
76442
76443         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76444         line in double quotes so that it evokes a better diagnostic.
76445         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76446         Reported by Axel Kittenberger.
76447
76448 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76449
76450         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76451         as if it was a `charset'.
76452
76453 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76454
76455         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76456         has const.
76457
76458 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76459
76460         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76461         to avoid a warning.  Add back 'const' to inptr.
76462
76463 2001-01-20  Jim Meyering  <meyering@lucent.com>
76464
76465         Be sure that headers are checked before used in code compiled
76466         for the type checks.
76467         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76468         In place of that, invoke jm_CHECK_ALL_TYPES.
76469         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76470         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76471         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76472         The check for ssize_t was mistakenly run before the test for unistd.h.
76473
76474         The configure-time check for stdbool.h was missing.
76475         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76476         (jm_PREREQ_HASH): New function.
76477
76478 2001-01-17  Jim Meyering  <meyering@lucent.com>
76479
76480         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76481         for autoconf-2.49c.
76482         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76483
76484 2001-01-16  Jim Meyering  <meyering@lucent.com>
76485
76486         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76487         From Bruno Haible.
76488
76489 2001-01-14  Jim Meyering  <meyering@lucent.com>
76490
76491         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76492         foo and bar.  Create conftestdir/ in the script, not in the C code.
76493         Remove directories in the script, not in the C code.
76494         Remove conftestdir{,2} before trying to create the directory.
76495         Make the entire configure script fail if the mkdir fails.
76496
76497 2001-01-14  Jim Meyering  <meyering@lucent.com>
76498
76499         * lib/rename.c: New file.  From Volker Borchert.
76500         Include stdlib.h, string.h or strings.h, and xalloc.h.
76501         Use strip_trailing_slashes rather than open-coding it.
76502
76503 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76504
76505         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76506
76507 2001-01-03  Jim Meyering  <meyering@lucent.com>
76508
76509         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76510         of local `inptr' to avoid warning with some system declarations of
76511         iconv.
76512
76513 2001-01-02  Volker Borchert  <bt@teknon.de>
76514
76515         * m4/rename.m4: New file.
76516         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76517
76518 2001-01-01  Jim Meyering  <meyering@lucent.com>
76519
76520         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76521         even on systems with utmpx.h.  It's necessary for the declaration of
76522         utmp's ut_user member.  Reported by Andreas Jaeger.
76523
76524         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76525         available. They are required for the declarations of getgrgid and
76526         getpwuid resp.
76527         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76528         Reported by Andreas Jaeger.
76529
76530 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76531
76532         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76533         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76534         so `make install' also works in VPATH builds.
76535
76536 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76537
76538         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76539         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76540         can be used in subdirectories.
76541
76542 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76543
76544         * lib/modechange.c: Do not assume that mode_t uses the
76545         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76546         the other-execute bit of FOO even if S_IXOTH != 1.
76547
76548         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76549         WOTH, XOTH, ALLM): New macros.
76550         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76551          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76552         Use them.
76553         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76554         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76555         (mode_compile):
76556         No need to use uintmax_t; unsigned long is long enough.
76557         Don't bother to get suffix since we don't use it.
76558
76559 2000-12-26  Jim Meyering  <meyering@lucent.com>
76560
76561         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76562         better with autoheader.
76563
76564 2000-12-24  Jim Meyering  <meyering@lucent.com>
76565
76566         * lib/hash.c (is_prime): Return explicit boolean values.
76567         (hash_get_first): Return NULL to appease Irix5.6's 89.
76568         Reported by Nelson Beebe.
76569
76570 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76571
76572         * lib/localcharset.c (locale_charset): Add support for Win32.
76573
76574 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76575
76576         * lib/physmem.h, lib/physmem.c: New files.
76577
76578         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76579         (noinst_HEADERS): Add physmem.h.
76580
76581         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76582         't' for compatibility with Solaris 8 sort.
76583
76584 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76585
76586         * lib/config.charset: Add support for BeOS.
76587
76588 2000-12-17  Jim Meyering  <meyering@lucent.com>
76589
76590         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76591         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76592
76593 2000-12-16  Jim Meyering  <meyering@lucent.com>
76594
76595         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76596         N and M) would have treated it like `chown N:N FILE'.
76597
76598         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76599
76600 2000-12-16  Jim Meyering  <meyering@lucent.com>
76601
76602         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76603         SHELLS_FILE to a file name that's useful on djgpp systems.
76604         Include stdlib.h.
76605         (ADDITIONAL_DEFAULT_SHELLS): Define.
76606         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76607         Based mostly on a patch from Prashant TR.
76608
76609 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76610
76611         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76612         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76613         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76614
76615 2000-12-08  Andreas Schwab  <schwab@suse.de>
76616
76617         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76618         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76619
76620 2000-12-07  Jim Meyering  <meyering@lucent.com>
76621
76622         * lib/stripslash.c (ISSLASH): Define.
76623         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76624         `/'.
76625         From Prashant TR.
76626
76627         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76628         (dir_name_r): Declare this function as static.
76629         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76630         manifest itself on a name containing a mix of slashes and
76631         backslashes.
76632         Make this function work with names starting with a DOS-style
76633         drive letter and colon prefix.
76634         (dir_name): Append `.' if necessary.
76635         Based mostly on patches from Prashant TR and Eli Zaretskii.
76636
76637         * lib/dirname.h (dir_name_r): Remove prototype.
76638
76639 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76640
76641         * m4/off_t-format.m4: Remove this file.
76642         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76643
76644 2000-12-06  Jim Meyering  <meyering@lucent.com>
76645
76646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76647         replacement strtoull, we may well need the replacement strtoul, too.
76648         Check for declarations of strtoul and strtoull.
76649         Check for strtol.  Mainly as a cue to cause automake to include
76650         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76651         Check for limits.h -- strtol.c needs it.
76652
76653 2000-12-05  Jim Meyering  <meyering@lucent.com>
76654
76655         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76656
76657 2000-12-04  Jim Meyering  <meyering@lucent.com>
76658
76659         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76660         Also include memory.h, stdlib.h, unistd.h if appropriate.
76661         Reported by Andreas Jaeger (conflicting declaration of malloc).
76662
76663 2000-12-02  Jim Meyering  <meyering@lucent.com>
76664
76665         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76666         * m4/jm-macros.m4 (jm_MACROS): require it.
76667
76668 2000-12-02  Jim Meyering  <meyering@lucent.com>
76669
76670         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76671
76672 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76673
76674         * lib/memrchr.c: Include <config.h> before any system include file.
76675
76676 2000-11-30  Jim Meyering  <meyering@lucent.com>
76677
76678         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76679
76680 2000-11-30  Jim Meyering  <meyering@lucent.com>
76681
76682         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76683
76684 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76685
76686         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76687
76688 2000-11-26  Jim Meyering  <meyering@lucent.com>
76689
76690         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76691
76692 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76693
76694         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76695         size of (size_t) -1; it's not portable.
76696
76697 2000-11-17  Jim Meyering  <meyering@lucent.com>
76698
76699         * lib/strstr.c: Update from GNU libc.
76700
76701 2000-11-17  Akim Demaille  <akim@epita.fr>
76702
76703         * lib/obstack.h: Formatting changes.
76704         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76705         prevent type checking.
76706         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76707         cast the value to (void *): assigning a `foo *' to a `void *'
76708         variable is valid.
76709         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76710
76711 2000-11-16  Jim Meyering  <meyering@lucent.com>
76712
76713         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76714
76715 2000-11-11  Jim Meyering  <meyering@lucent.com>
76716
76717         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76718
76719 2000-11-10  Jim Meyering  <meyering@lucent.com>
76720
76721         * lib/obstack.h: Update from GNU libc.
76722         * lib/obstack.c: Likewise.
76723
76724 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76725
76726         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76727
76728 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76729
76730         * lib/getusershell.c (setusershell): Use rewind rather than
76731         fseek/fseeko, to avoid configuration hassles with fseeko.
76732         Don't bother opening SHELLS_FILE if shellstream is NULL;
76733         it's not necessary.
76734
76735 2000-11-05  Jim Meyering  <meyering@lucent.com>
76736
76737         * lib/makepath.h (make_dir): Declare.
76738         * lib/makepath.c (make_dir): Remove `static' attribute.
76739         Tweak a comment.
76740
76741 2000-11-04  Jim Meyering  <meyering@lucent.com>
76742
76743         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76744
76745 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76746
76747         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76748         last one in a bucket, advance to the next bucket.
76749
76750 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76751
76752         * lib/fnmatch.c: Do not comment out all the code if we are using
76753         the GNU C library, because in some cases we are replacing buggy
76754         code in the GNU C library itself.
76755
76756 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76757
76758         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76759         (regex_compile): Catch bogus \(\1\).
76760
76761 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76762
76763         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76764         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76765         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76766
76767 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76768
76769         * lib/error.h, getline.h, modechange.h:
76770         Remove "2000" from Copyright line, as the file hasn't been
76771         changed this year other than in the copyright notice.
76772
76773         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76774         was changed this year.
76775
76776 2000-10-29  Jim Meyering  <meyering@lucent.com>
76777
76778         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76779         renaming.
76780         * m4/ls-mntd-fs.m4: Likewise
76781
76782 2000-10-29  Jim Meyering  <meyering@lucent.com>
76783
76784         * lib/xstat.in: Fix grammar in comment.
76785
76786 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76787
76788         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76789         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76790         doesn't define __restrict_arr.
76791
76792 2000-10-28  Jim Meyering  <meyering@lucent.com>
76793
76794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76795         (jm_PREREQ_MEMCHR): New function.
76796
76797 2000-10-28  Jim Meyering  <meyering@lucent.com>
76798
76799         * lib/memchr.c: Update from libc.
76800         Adjust for portability:
76801         [HAVE_STDLIB_H]: Include stdlib.h.
76802         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76803         Undef __memchr, too.
76804         [!weak_alias]: Define __memchr to memchr.
76805
76806         * lib/regex.c: Update from libc.
76807         * lib/regex.h: Likewise.
76808         * lib/getopt1.c: Likewise.
76809         * lib/memcmp.c: Likewise.
76810
76811         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76812         Avoid using fseek, when possible -- it's broken by design.
76813         Patch by Ulrich Drepper.
76814
76815 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76816
76817         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76818         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76819         Giving in to popular pressure to shut up the compiler with casts.
76820
76821 2000-10-26  Jim Meyering  <meyering@lucent.com>
76822
76823         * lib/strftime.c: Update from libc.
76824
76825 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76826
76827         * regex.c: More `unsigned char' -> `re_char' changes.
76828         Also change several `int' into `re_wchar_t'.
76829         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76830         (PUSH_FAILURE_POINTER): Don't cast any more.
76831         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76832         We want GCC to complain, since this piece of code makes
76833         re_match non-reentrant, which *should* be fixed.
76834         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76835         (EXTEND_BUFFER): Use RETALLOC.
76836         (SET_LIST_BIT): Don't cast.
76837         (re_wchar_t): New type.
76838         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76839         that those two functions will always properly return.
76840         (IMMEDIATE_QUIT_CHECK): Cast to void.
76841         (analyse_first): Use recursion rather than an explicit stack.
76842         (re_compile_fastmap): Can't fail anymore.
76843         (re_search_2): Don't check re_compile_fastmap for failure.
76844         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76845         Now also sets the new value (passed in a new argument).
76846         (re_match_2_internal): Use it.
76847         Also, use a new var `reg' of type size_t when looping through regs
76848         rather than reuse the inappropriate `mcnt'.
76849
76850 2000-10-25  Jim Meyering  <meyering@lucent.com>
76851
76852         * lib/obstack.c: Update from libc.
76853
76854 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76855
76856         * regex.c (regex_compile): Change the way of handling a range from
76857         a char less than 256 to a char not less than 256.
76858
76859 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76860
76861         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76862         NT-Emacs only.
76863         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76864         so that re_search functions only quit when callers expect them to.
76865
76866 2000-10-23  Jim Meyering  <meyering@lucent.com>
76867
76868         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76869         wrong.  That set_locale call must not have any side effects.
76870         From Paul Eggert.
76871
76872 2000-10-22  Jim Meyering  <meyering@lucent.com>
76873
76874         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76875         [CYCLIC]: Remove now-unused definition.
76876
76877         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76878         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76879         Suggestion from Ulrich Drepper.
76880
76881 2000-10-21  Jim Meyering  <meyering@lucent.com>
76882
76883         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76884         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76885         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76886
76887 2000-10-21  Jim Meyering  <meyering@lucent.com>
76888
76889         * lib/dirname.c (memrchr): Declare if necessary.
76890         (dir_name): Remove the restriction that there be no
76891         trailing slashes.  Now, this code skips past them, effectively
76892         ignoring them.
76893         [TEST_DIRNAME] (main): New unit tests.
76894
76895         * lib/memrchr.c: New file from GNU libc.
76896         Undef __memrchr, too.
76897         [!weak_alias]: Define __memrchr to memrchr.
76898         Guard weak_alias use with `#ifdef weak_alias'.
76899
76900 2000-10-21  Jim Meyering  <meyering@lucent.com>
76901
76902         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76903         (dir_name): Use dir_name_r.
76904         * lib/dirname.h (dir_name_r): Declare it.
76905
76906 2000-10-17  Jim Meyering  <meyering@lucent.com>
76907
76908         * lib/quote.h (PARAMS): Define and use.
76909         Reported by Akim Demaille.
76910
76911         * lib/getopt.c: Update from libc.
76912
76913 2000-10-16  Jim Meyering  <meyering@lucent.com>
76914
76915         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76916         setlocale.
76917         From Jan Fedak.
76918
76919 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76920
76921         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76922
76923 2000-09-25  Jim Meyering  <meyering@lucent.com>
76924
76925         * lib/md5.h (rol): Define (from GnuPG).
76926
76927         * lib/sha.c: Give credit (GnuPG) where due.
76928         (M): Use rol rather than open-coding it.
76929         Add a FIXME comment.
76930
76931 2000-09-21  Jim Meyering  <meyering@lucent.com>
76932
76933         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76934         Reported by Michael Stone.
76935
76936 2000-09-20  Jim Meyering  <meyering@lucent.com>
76937
76938         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76939         (noinst_HEADERS): Add sha.h.
76940         Based on code from Scott G. Miller and from GnuPG.
76941
76942 2000-09-18  Jim Meyering  <meyering@lucent.com>
76943
76944         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76945         LIBS. Otherwise, everyone ends up linking with -lelf for some
76946         configurations.
76947         Reported by Mike Stone.
76948
76949 2000-09-15  Jim Meyering  <meyering@lucent.com>
76950
76951         * lib/regex.c: Update from libc.
76952
76953 2000-09-10  Jim Meyering  <meyering@lucent.com>
76954
76955         * lib/getopt.c (_getopt_internal): Update from glibc.
76956
76957 2000-09-09  Jim Meyering  <meyering@lucent.com>
76958
76959         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76960         think it should be used as a general replacement for isascii.
76961         * lib/fnmatch.c: Likewise.
76962         * lib/mbswidth.c: Likewise
76963         * lib/regex.c: Likewise.
76964
76965         Don't use atoi.
76966         * lib/userspec.c: Include sys/param.h and limits.h.
76967         Include xstrtol.h.
76968         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76969         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76970         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76971         UID, GID.  Check range.
76972
76973 2000-09-06  Jim Meyering  <meyering@lucent.com>
76974
76975         * lib/getopt.c (_getopt_internal): Update from glibc.
76976
76977 2000-08-30  Jim Meyering  <meyering@lucent.com>
76978
76979         * lib/strftime.c: Merge in changes from GNU libc.
76980
76981 2000-08-26  Jim Meyering  <meyering@lucent.com>
76982
76983         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76984         * m4/fpending.m4: New file.
76985
76986 2000-08-26  Jim Meyering  <meyering@lucent.com>
76987
76988         * lib/closeout.c: Include "__fpending.h".
76989         (close_stdout_status): Return right away if there's nothing to flush.
76990
76991         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76992         * lib/__fpending.c: New file.
76993         * lib/__fpending.h: New file.
76994
76995 2000-08-20  Jim Meyering  <meyering@lucent.com>
76996
76997         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76998         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76999         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77000
77001 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77002
77003         Improve fileutils installation on systems where running
77004         programs (like install) can't be unlinked.
77005         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77006         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77007
77008 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77009
77010         Standardize on "memory exhausted" instead of "Memory exhausted"
77011         or "virtual memory exhausted".
77012         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77013         "virtual memory exhausted".
77014         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77015         our own message.
77016         * lib/userspec.c (parse_user_spec): Likewise.
77017         * lib/bumpalloc.h: comment fix
77018         * lib/same.c, userspec.c: Include xalloc.h.
77019
77020         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77021         not char *const and pointing to a constant array.
77022         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77023         (xrealloc): Comment fix.
77024
77025         * lib/userspec.c (parse_user_spec):
77026         Don't translate a message until just before returning,
77027         to avoid unnecessary translation.
77028
77029 2000-08-07  Jim Meyering  <meyering@lucent.com>
77030
77031         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77032         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77033         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77034         getgroups.c, gethostname.c, getopt.h, group-member.c,
77035         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77036         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77037         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77038         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77039         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77040         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77041         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77042         yesno.c: Back out Copyright date changes for each file with no change
77043         this year.  This eases coordination with other programs using the same
77044         source code modules.  From Paul Eggert.
77045
77046 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77047
77048         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77049         not char, for compatibility with glibc 2.1.3 strftime.c.
77050
77051 2000-08-03  Greg McGary  <greg@mcgary.org>
77052
77053         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77054         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77055         (EXTEND_BUFFER): Use them.
77056
77057 2000-08-01  Jim Meyering  <meyering@lucent.com>
77058
77059         * lib/dirname.c (ISSLASH): Define.
77060         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77061         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77062         both `\' and `/' may be use as path separators.
77063         Based on a patch from Prashant TR.
77064
77065 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77066
77067         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77068         slot vector a constant, since it might get modified.
77069
77070 2000-07-31  Jim Meyering  <meyering@lucent.com>
77071
77072         * lib/xmalloc.c: Use `virtual memory exhausted', not
77073         `Memory exhausted'.
77074         * lib/obstack.c (print_and_abort): Likewise.
77075
77076 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77077
77078         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77079         buffer, so that the caller can always quote one small
77080         component of a "memory exhausted" message in slot 0.
77081         From a suggestion by Jim Meyering.
77082
77083 2000-07-30  Jim Meyering  <meyering@lucent.com>
77084
77085         * lib/makepath.c (make_path): Quote the other instance, too.
77086
77087         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77088         (STATIC_BUF_SIZE): Define.
77089         (quotearg_n_options): Use only statically allocated storage when
77090         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77091         than STATIC_BUF_SIZE.
77092
77093 2000-07-29  Jim Meyering  <meyering@lucent.com>
77094
77095         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77096         * lib/dirname.c (dir_name): Likewise.
77097
77098         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77099         `/'.
77100
77101         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77102         (dir_name): Assert that there are no trailing slashes.
77103
77104 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77105
77106         * lib/mbswidth.h (mbswidth): Add a flags argument.
77107         (mbswidth): New declaration.
77108         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77109         * lib/mbswidth.c (mbswidth): Add a flags argument.
77110         (mbsnwidth): New function.
77111
77112 2000-07-24  Jim Meyering  <meyering@lucent.com>
77113
77114         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77115
77116 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77117
77118         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77119
77120 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77121
77122         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77123         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77124         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77125         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77126         invoke multibyte primitives.
77127
77128 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77129
77130         * lib/quotearg.c:
77131         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77132         so that mbstate_t is always defined.
77133
77134         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77135         be 1 in at least one GCC installation, and this configuration
77136         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77137         performance on hosts that have mbrtowc but have only unibyte
77138         locales, but I assume these hosts are rare.
77139
77140 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77141
77142         * lib/mbswidth.c (_XOPEN_SOURCE):
77143         Don't define; this causes problems on Solaris 7.
77144         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77145
77146 2000-07-23  Jim Meyering  <meyering@lucent.com>
77147
77148         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77149         too: getgrgid, getpwuid, getuid.
77150
77151 2000-07-23  Jim Meyering  <meyering@lucent.com>
77152
77153         * lib/basename.c (base_name): Add an assertion.
77154
77155 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77156
77157         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77158         shadow its mbsinit function.
77159
77160 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77161
77162         * lib/mbswidth.h: New file.
77163         * lib/mbswidth.c: New file.
77164         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77165         (noinst_HEADERS): Add mbswidth.h.
77166
77167 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77168
77169         * lib/config.charset: Add support for FreeBSD. Improve support for
77170         HP-UX and IRIX 6.
77171
77172 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77173
77174         * m4/mbswidth.m4: New file.
77175         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77176
77177 2000-07-15  Jim Meyering  <meyering@lucent.com>
77178
77179         * lib/makepath.c: Include quote.h.
77180         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77181         corresponding argument in a `quote (...)' call.
77182         Give better diagnostics.
77183
77184         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77185         (noinst_HEADERS): Add quote.h.
77186
77187         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77188         from tar's src/misc.c.
77189         * lib/quote.h: New file.  Prototypes for same.
77190
77191 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77192
77193         From a suggestion by Bruno Haible.
77194         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77195         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77196         to decide whether to define the BeOS workaround macro;
77197         this adjusts to the change to AC_MBSTATE_T.
77198
77199 2000-07-14  Jim Meyering  <meyering@lucent.com>
77200
77201         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77202         jm_AC_TYPE_UINTMAX_T.
77203
77204 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77205
77206         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77207
77208         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77209         quotearg_buffer_restyled): Add support for
77210         clocale_quoting_style.  Undo previous change to
77211         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77212         and "{RIGHT QUOTATION MARK}" msgids.
77213
77214 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77215
77216         From a suggestion by Bruno Haible.
77217         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77218         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77219         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77220         and mbstate_t, to a single-part test that simply defines mbstate_t.
77221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77222         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77223
77224 2000-07-10  Jim Meyering  <meyering@lucent.com>
77225
77226         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77227
77228         * m4/gnu-source.m4: Output to confdefs.h directly.
77229         Suggestion from Akim Demaille.
77230
77231 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77232
77233         The old behavior of quoting `like this' doesn't look good with
77234         newer, ISO-style fonts.  See:
77235         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77236
77237         Instead, quote "like this" by default.  Let the translator
77238         tailor the locale-specific quoting behavior by providing
77239         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77240
77241         * lib/quotearg.c (N_): New macro.
77242         (gettext_default): New function.
77243         (quotearg_buffer_restyled): Use
77244         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77245         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77246
77247 2000-07-09  Jim Meyering  <meyering@lucent.com>
77248
77249         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77250         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77251
77252         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77254
77255 2000-07-09  Jim Meyering  <meyering@lucent.com>
77256
77257         * lib/Most files: Update copyright dates to include 2000.
77258
77259 2000-07-08  Jim Meyering  <meyering@lucent.com>
77260
77261         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77262         if not defined.
77263         (xgethostname): Remove now-unnecessary #ifdef.
77264         Move declaration of `err' into loop where it's used.
77265
77266 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77267         and Bruno Haible  <haible@clisp.cons.org>
77268
77269         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77270         only if the test for an object-type mbstate_t fails.  This
77271         prevents us from mistakenly reporting that mbstate_t is a
77272         system object type after we "#define mbstate_t int" to work
77273         around its lack.
77274
77275 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77276         and Bruno Haible  <haible@clisp.cons.org>
77277
77278         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77279
77280 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77281
77282         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77283         to strerror_r.
77284         Include <ctype.h> for use of isalpha.
77285
77286 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77287
77288         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77289         by allocating a larger buffer. Test the gethostname return value for
77290         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77291         returns an error and ENAMETOOLONG isn't defined.
77292
77293 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77294
77295         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77296         dimension.
77297
77298 2000-07-04  Jim Meyering  <meyering@lucent.com>
77299
77300         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77301         of the deprecated AC_CHECKING.
77302
77303 2000-07-04  Jim Meyering  <meyering@lucent.com>
77304
77305         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77306         Reported by Bruno Haible.
77307
77308 2000-07-04  Jim Meyering  <meyering@lucent.com>
77309
77310         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77311         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77312         lacks mbrtowc.
77313
77314 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77315
77316         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77317         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77318
77319 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77320         and Bruno Haible  <haible@clisp.cons.org>
77321
77322         * lib/quotearg.c (mbrtowc):
77323         Assign to *pwc, and return 1 only if result is nonzero.
77324         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77325
77326 2000-07-03  Jim Meyering  <meyering@lucent.com>
77327
77328         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77329
77330 2000-07-03  Jim Meyering  <meyering@lucent.com>
77331
77332         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77333         This is necessary to get a definition of e.g., UTMP_FILE on
77334         HP-UX 10.20.
77335         From Bob Proulx.
77336
77337 2000-07-02  Jim Meyering  <meyering@lucent.com>
77338
77339         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77340
77341         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77342         AC_LIBOBJ(function_name).
77343         * m4/chown.m4: Likewise.
77344         * m4/fnmatch.m4: Likewise.
77345         * m4/ftruncate.m4: Likewise.
77346         * m4/getgroups.m4: Likewise.
77347         * m4/getline.m4: Likewise.
77348         * m4/group-member.m4: Likewise.
77349         * m4/jm-macros.m4: Likewise.
77350         * m4/lstat.m4: Likewise.
77351         * m4/malloc.m4: Likewise.
77352         * m4/memcmp.m4: Likewise.
77353         * m4/nanosleep.m4: Likewise.
77354         * m4/putenv.m4: Likewise.
77355         * m4/realloc.m4: Likewise.
77356         * m4/regex.m4: Likewise.
77357         * m4/stat.m4: Likewise.
77358         * m4/strftime.m4: Likewise.
77359
77360 2000-07-02  Jim Meyering  <meyering@lucent.com>
77361
77362         * lib/quotearg.c (mbstate_t): Don't define here.
77363
77364 2000-07-02  Jim Meyering  <meyering@lucent.com>
77365
77366         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77367
77368 2000-07-01  Jim Meyering  <meyering@lucent.com>
77369
77370         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77371
77372 2000-07-01  Jim Meyering  <meyering@lucent.com>
77373
77374         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77375         problem.
77376
77377 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77378
77379         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77380         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77381
77382 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77383
77384         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77385         per change in ../m4/ls-mntd-fs.m4.
77386         (read_filesystem_list): Ignore symbolic links.
77387
77388 2000-06-29  Jim Meyering  <meyering@lucent.com>
77389
77390         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77391         for declaration of strcmp.
77392
77393         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77394
77395         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77396         Avoid warning by casting result to `char *' to remove `const'.
77397
77398 2000-06-28  Jim Meyering  <meyering@lucent.com>
77399
77400         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77401         included by quotearg.c, for which we perform this test.  From
77402         Bruno Haible.
77403
77404 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77405
77406         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77407         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77408         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77409
77410 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77411
77412         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77413
77414 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77415
77416         savedir now sets errno on failure and invokes xmalloc to get memory.
77417         Fix a couple of other minor bugs while we're at it.
77418
77419         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77420         (NAMLEN): Remove macro.
77421         (malloc, realloc): Remove decls.
77422         (stpcpy): Likewise.
77423         ("xalloc.h"): Include.
77424         (NAME_SIZE_DEFAULT): New macro.
77425         (savedir): Use xmalloc / xrealloc to allocate memory.
77426         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77427         Skip "" directory entries.
77428         Use strlen to calculate directory entry length, since the old method
77429         is rarely used these days and isn't worth supporting.
77430         Don't use a pointer after freeing it.
77431         Check for integer overflow when calculating allocation size.
77432         Use memcpy to copy entries, instead of stpcpy.
77433         Set errno properly when returning NULL.
77434         Check for readdir error.
77435
77436 2000-06-26  Jim Meyering  <meyering@lucent.com>
77437
77438         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77439
77440 2000-06-25  Jim Meyering  <meyering@lucent.com>
77441
77442         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77443         Linux header bug when _XOPEN_SOURCE is defined to 500.
77444
77445 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77446
77447         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77448         deficiency.
77449
77450 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77451
77452         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77453         Include xalloc.h.
77454         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77455
77456 2000-06-24  Jim Meyering  <meyering@lucent.com>
77457
77458         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77459         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77460         for which strerror does return char*, but which lacks a conveniently
77461         accessible declaration of the function.  If the compile-test says
77462         strerror_r doesn't work, then resort to a `run'-test that works on
77463         BeOS and segfaults on DEC Unix.
77464
77465 2000-06-24  Jim Meyering  <meyering@lucent.com>
77466
77467         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77468
77469 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77470
77471         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77472         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77473
77474 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77475
77476         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77477         (mbrtowc, mbstate_t): Define substitutes if
77478         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77479         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77480         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77481
77482 2000-06-23  Jim Meyering  <meyering@lucent.com>
77483
77484         * m4/afs.m4: Add missing AC_MSG_RESULT.
77485         Reported by Bruno Haible.
77486
77487         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77488         Suggestion from Bruno Haible.
77489
77490 2000-06-23  Jim Meyering  <meyering@lucent.com>
77491
77492         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77493
77494 2000-06-21  Jim Meyering  <meyering@lucent.com>
77495
77496         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77497
77498 2000-06-21  Jim Meyering  <meyering@lucent.com>
77499
77500         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77501         (noinst_HEADERS): Add getstr.h.
77502
77503         * lib/getline.c (getstr): Move into a separate file.
77504         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77505         the following changes: new parameter, delim2; both delim[12]
77506         parameters have type `int', not `char'.  The latter would lose
77507         with 8-bit delimiters.
77508         * lib/getstr.h: New file.
77509
77510 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77511
77512         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77513         than 1024, return a memory chunk of least possible size, instead
77514         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77515         Use free/xmalloc instead of xrealloc to avoid copying for very long
77516         paths.
77517
77518 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77519
77520         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77521         the empty string.
77522
77523 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77524
77525         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77526         address, not strdup.  Include <stdlib.h> and don't declare free().
77527
77528 2000-06-19  Jim Meyering  <meyering@lucent.com>
77529
77530         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77531
77532 2000-06-18  Jim Meyering  <meyering@lucent.com>
77533
77534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77535
77536         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77537         `checking whether...' message to be consistent with that of the
77538         lstat test.
77539
77540 2000-06-18  Jim Meyering  <meyering@lucent.com>
77541
77542         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77543         Besides, these days every porting target provides a mkdir function.
77544
77545         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77546         needed. (this snippet comes from src/system.h).
77547
77548 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77549
77550         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77551
77552 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77553
77554         * lib/human.c (adjust_value): New function.
77555         (human_readable_inexact): Apply rounding style even when
77556         printing approximate values.
77557
77558 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77559
77560         * lib/human.c (human_readable_inexact): Allow an input block
77561         size that is not a multiple of the output block size, and vice versa.
77562         Reported by Piergiorgio Sartor.
77563
77564 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77565
77566         * lib/getdate.y (get_date): Apply relative times after time
77567         zone indicator, not before.  Reported by Todd A. Jacobs.
77568
77569 2000-06-13  Jim Meyering  <meyering@lucent.com>
77570
77571         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77572
77573         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77574
77575 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77576
77577         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77578
77579 2000-06-12  Jim Meyering  <meyering@lucent.com>
77580
77581         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77582         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77583         optional argument.
77584         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77585         the optional argument, `lib'.
77586
77587 2000-06-08  Jim Meyering  <meyering@lucent.com>
77588
77589         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77590
77591 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77592
77593         Rewrite largefile configuration so that we don't need to run
77594         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77595         AC_CANONICAL_HOST in configure.in -- jmm]
77596
77597         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77598         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77599         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77600         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77601         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77602         All uses changed.
77603         Instead of inspecting the output of getconf, try to compile the
77604         test program without and with the macro definition.
77605         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77606         for getconf.  Instead, check for the needed flags by compiling
77607         test programs.
77608
77609 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77610
77611         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77612
77613 2000-06-04  Jim Meyering  <meyering@lucent.com>
77614
77615         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77616         SunOS 4.1.4 for which gid_t is an unsigned type.
77617
77618 2000-06-03  Jim Meyering  <meyering@lucent.com>
77619
77620         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77621         now that autoconf requires that.
77622
77623         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77624         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77625         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77626
77627 2000-06-03  Jim Meyering  <meyering@lucent.com>
77628
77629         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77630
77631 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77632
77633         * m4/glibc21.m4: New file.
77634         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77635
77636 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77637
77638         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77639         newer, don't install charset.alias.
77640         * lib/config.charset: Change the Linux/glibc rules so they become empty
77641         on glibc-2.1 or newer.
77642
77643 2000-06-02  Jim Meyering  <meyering@lucent.com>
77644
77645         * lib/mountlist.c: Back out last change.  Instead, do this...
77646         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77647         me_dummy member using the same `ignore'-testing code.
77648         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77649         fs_type strings.
77650         From Mark D. Roth.
77651
77652 2000-05-29  Jim Meyering  <meyering@lucent.com>
77653
77654         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77655         mounts with the `ignore' attribute.  Based on a patch from
77656         Mark D. Roth.
77657
77658 2000-05-28  Jim Meyering  <meyering@lucent.com>
77659
77660         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77661         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77662         * m4/stat.m4: Likewise.
77663         * m4/lstat.m4: Likewise.
77664         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77665
77666         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77667         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77668
77669 2000-05-26  Jim Meyering  <meyering@lucent.com>
77670
77671         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77672
77673 2000-05-24  Jim Meyering  <meyering@lucent.com>
77674
77675         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77676         autoconf requires that.
77677         * m4/lib-check.m4: Likewise.
77678         * m4/jm-macros.m4: Likewise.
77679         * m4/strftime.m4: Likewise.
77680
77681         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77682         AC_CHECK_DECLS, now that autoconf requires that.
77683
77684 2000-05-22  Jim Meyering  <meyering@lucent.com>
77685
77686         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77687         * m4/lstat.m4: Likewise.
77688
77689 2000-05-22  Jim Meyering  <meyering@lucent.com>
77690
77691         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77692
77693 2000-05-20  Jim Meyering  <meyering@lucent.com>
77694
77695         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77696         (jm_PREREQ): Use it.
77697
77698 2000-05-18  Jim Meyering  <meyering@lucent.com>
77699
77700         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77701         back, too, since it may have been modified by allocate_entry.
77702         (hash_delete): Rewrite to use neither the assignment operator
77703         nor the comma operator in an if-expression.
77704
77705 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77706
77707         * lib/closeout.c:
77708         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77709         Remove; no longer needed.
77710         "quotearg.h": Add include.
77711         (file_name): Do not bother to explicitly initialize to NULL; it's less
77712         efficient on some hosts.
77713         (close_stdout_status): Remove test as to whether stdout was already
77714         closed; it breaks for the case "echo x | sort >&-".
77715         Quote file name colons.
77716         Do not assume that _("write error") lacks format strings.
77717
77718 2000-05-15  Jim Meyering  <meyering@lucent.com>
77719
77720         * lib/version-etc.c (version_etc_copyright): Update the copyright
77721         string used in all --version output.
77722
77723 2000-05-14  Jim Meyering  <meyering@lucent.com>
77724
77725         * lib/closeout.c (close_stdout_set_file_name): New function.
77726         (close_stdout_status): Use new file-scoped global.
77727         Return right away if fstat says the stdout file descriptor is invalid.
77728         * lib/closeout.h (close_stdout_set_file_name): Declare.
77729
77730 2000-05-10  Jim Meyering  <meyering@lucent.com>
77731
77732         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77733         (close_stdout_set_status): New function.
77734         * lib/closeout.h (close_stdout_set_status): Declare.
77735
77736 2000-05-09  Jim Meyering  <meyering@lucent.com>
77737
77738         * m4/gettext.m4: Rename this...
77739         * m4/libintl.m4: ...to this.
77740
77741 2000-05-08  Jim Meyering  <meyering@lucent.com>
77742
77743         * lib/long-options.c: Don't include closeout.h.
77744         (parse_long_options): Don't call close_stdout for --version.
77745
77746 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77747
77748         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77749         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77750         2.1.3 bug.  This avoids a clash when files like regex.c define
77751         _GNU_SOURCE.
77752
77753 2000-05-06  Jim Meyering  <meyering@lucent.com>
77754
77755         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77756         (AC_REPLACE_FUNCS): Add strnlen.
77757
77758         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77759         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77760
77761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77762         AC_SEARCH_LIBS call for nanosleep.
77763         (LIB_NANOSLEEP): Set and AC_SUBST.
77764
77765 2000-05-06  Jim Meyering  <meyering@lucent.com>
77766
77767         * lib/strnlen.c: Undefine __strnlen and strnlen.
77768         [!weak_alias]: Define __strnlen to strnlen.
77769
77770         * lib/atexit.c: New file, from libiberty.
77771
77772 2000-05-06  Jim Meyering  <meyering@lucent.com>
77773
77774         * lib/closeout.c (close_stdout_status): Also check for errors on the
77775         stderr stream.
77776
77777 2000-05-05  Jim Meyering  <meyering@lucent.com>
77778
77779         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77780         AC_SEARCH_LIBS call for clock_gettime.
77781         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77782
77783         * m4/search-libs.m4: Update from autoconf.
77784
77785         su doesn't work on Solaris 2.6.
77786         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77787         <shadow.h>.  Reported by Dragos Harabor.
77788
77789 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77790
77791         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77792         memcpy instead of xmalloc, xrealloc, path_concat.
77793         (locale_charset): Treat empty environment variables as absent.
77794         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77795
77796 2000-05-04  Jim Meyering  <meyering@lucent.com>
77797
77798         * lib/getopt.c: Update from glibc.
77799         * lib/obstack.c: Likewise.
77800         * lib/obstack.h: Likewise.
77801         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77802         file
77803
77804         * lib/regex.h: Likewise.
77805         * lib/strndup.c: Likewise.
77806         * lib/strnlen.c: New file, from glibc.
77807
77808 2000-05-03  Jim Meyering  <meyering@lucent.com>
77809
77810         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77811
77812 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77813
77814         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77815         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77816         compile-time test, rather than inspecting host and OS, to
77817         decide whether to define _LARGEFILE_SOURCE.
77818
77819 2000-05-01  Jim Meyering  <meyering@lucent.com>
77820
77821         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77822
77823         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77824         Based on a patch from Bruno Haible.
77825
77826 2000-05-01  Jim Meyering  <meyering@lucent.com>
77827
77828         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77829
77830 2000-04-29  Jim Meyering  <meyering@lucent.com>
77831
77832         * lib/path-concat.c: Declare strdup only if it's not defined.
77833         * lib/canon-host.c: Likewise.
77834
77835 2000-04-28  Jim Meyering  <meyering@lucent.com>
77836
77837         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77838         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77839         is included first, then limits.h is included by locale.h by libintl.h.
77840         From John David Anglin.
77841
77842 2000-04-25  Jim Meyering  <meyering@lucent.com>
77843
77844         * lib/makepath.c (S_IRWXUGO): Define.
77845         (make_path): Always perform explicit chmod if MODE specifies any
77846         of the `special' permission bits.  Prompted by a bug report against
77847         install from Mate Wierdl and Joost van Baal.
77848
77849 2000-04-18  Jim Meyering  <meyering@lucent.com>
77850
77851         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77852         (jm_PREREQ): Use it.
77853
77854 2000-04-18  Jim Meyering  <meyering@lucent.com>
77855
77856         * lib/README: New file.
77857
77858         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77859         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77860
77861 2000-04-17  Jim Meyering  <meyering@lucent.com>
77862
77863         Get it right :-)
77864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77865         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77866         Suggestion from Akim Demaille.
77867
77868 2000-04-17  Jim Meyering  <meyering@lucent.com>
77869
77870         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77871         the definition of it to rpl_strftime also defined-away the system's
77872         declaration.
77873
77874 2000-04-15  Jim Meyering  <meyering@lucent.com>
77875
77876         Use `C' to denote so-called `contiguous' files, the same way
77877         that tar does.
77878         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77879         (ftypelet): Use S_ISCTG.
77880         From Michael Deutschmann.
77881
77882 2000-04-14  Jim Meyering  <meyering@lucent.com>
77883
77884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77885         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77886         clobbered.
77887
77888 2000-04-14  Jim Meyering  <meyering@lucent.com>
77889
77890         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77891
77892 2000-04-13  Jim Meyering  <meyering@lucent.com>
77893
77894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77895         AH_VERBATIM to insert required #ifndef into config.h.in.
77896         Suggestion from Akim Demaille.
77897
77898 2000-04-12  Jim Meyering  <meyering@lucent.com>
77899
77900         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77901         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77902         Christian Krackowizer.
77903
77904         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77905         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77906         (AC_SYS_LARGEFILE): Require.
77907         (AM_C_PROTOTYPES): Require.
77908
77909 2000-04-08  Jim Meyering  <meyering@lucent.com>
77910
77911         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77912         names don't conflict.  Reported by Eli Zaretskii.
77913
77914 2000-04-07  Jim Meyering  <meyering@lucent.com>
77915
77916         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77917         sys/types.h, to work around system header problems on AIX 3.2.5.
77918         From Bruno Haible.
77919
77920 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77921
77922         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77923         bug.  Deal with the different error behavior of Irix iconv.
77924
77925 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77926
77927         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77928         IRIX if the installer said otherwise.
77929
77930 2000-04-05  Jim Meyering  <meyering@lucent.com>
77931
77932         Portability tweaks required for ultrix4.3.
77933         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77934         (jm_CHECK_DECLS): Add getutent to the list of functions.
77935         (_jm_DECL_HEADERS): Add utmpx.h.
77936         From John David Anglin.
77937
77938         * m4/strftime.m4: Back out the 2000-04-02 change.
77939         Instead of that change, simply undefine putenv in the test program.
77940
77941 2000-04-05  Jim Meyering  <meyering@lucent.com>
77942
77943         Portability tweaks required for ultrix4.3.
77944         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77945         getutent.
77946         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77947         * lib/canon-host.c: Declare strdup.
77948         * lib/path-concat.c: Likewise.
77949         From John David Anglin.
77950
77951 2000-04-04  Jim Meyering  <meyering@lucent.com>
77952
77953         Be more DOS 8.3-friendly.
77954         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77955         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77956         * lib/Makefile.am: Reflect renaming.
77957         Reported by Eli Zaretskii.
77958
77959         Use a temporary file name that won't clash with `charset.alias'
77960         in the DOS 8.3 name space.
77961         * lib/Makefile.am (charset_tmp): Define.
77962         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77963         (uninstall-local): Likewise.
77964         Reported by Eli Zaretskii.
77965
77966 2000-04-03  Jim Meyering  <meyering@lucent.com>
77967
77968         * m4/gettext.m4: Fix typo in comment.
77969
77970         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77971         textutils/configure.in).  Suggestion from Paul Eggert.
77972         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77973
77974 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77975
77976         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77977         variable in the shell rather than using putenv, which isn't
77978         portable.  This avoids the configure-time inter-test dependency
77979         on the potentially-renamed putenv function.
77980
77981 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77982
77983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77984         before checking struct stat.st_blksize, so that
77985         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77986
77987 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77988
77989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77990         since strftime.c uses HAVE_STRFTIME to decide whether to use
77991         the underlying strftime.
77992
77993 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77994
77995         * lib/time/strftime.c (my_strftime): Make sure we call the system
77996         strftime, not ourselves, when invoking the underlying strftime.
77997
77998 2000-03-24  Jim Meyering  <meyering@lucent.com>
77999
78000         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78001         (charset_alias): Define.
78002         (install-exec-local): Factor out common code.
78003         (uninstall-local): Split lines longer than 80.
78004         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78005         (SUFFIXES): Define.
78006         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78007         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78008
78009 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78010
78011         * lib/config.charset: Output a line containing "Packages using this
78012         file".
78013         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78014         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78015         ref-del.sed): New rules.
78016
78017 2000-03-17  Jim Meyering  <meyering@lucent.com>
78018
78019         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78020         Otherwise, include <strings.h>
78021
78022 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78023
78024         * lib/unicodeio.c (utf8_wctomb): New function.
78025         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78026         format instead of in UCS-4 with platform dependent endianness.
78027
78028 2000-03-10  Jim Meyering  <meyering@lucent.com>
78029
78030         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78031         From Marco Franzen.
78032
78033 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78034
78035         * lib/savedir.c (savedir): Work even if directory size is
78036         negative; this can happen with some screwy NFS configurations.
78037
78038 2000-03-06  Jim Meyering  <meyering@lucent.com>
78039
78040         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78041         if it's NULL (because we ran out of memory).  From Bruno Haible.
78042
78043 2000-03-05  Jim Meyering  <meyering@lucent.com>
78044
78045         * lib/localcharset.c ("path-concat.h"): Include.
78046         (get_charset_aliases): Use path_concat instead of ANSI string
78047         concatenation.
78048
78049         * lib/unicodeio.h (PARAMS): Define.
78050         Use it to guard prototype.
78051
78052 2000-03-04  Jim Meyering  <meyering@lucent.com>
78053
78054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78055         for lib/localcharset.c.
78056
78057 2000-03-04  Jim Meyering  <meyering@lucent.com>
78058
78059         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78060         installing into it.
78061         (uninstall-local): Uncomment this rule so `make distcheck' works
78062         once again.
78063
78064         * lib/unicodeio.c (<errno.h>): Include it.
78065         (errno): Declare if not defined.
78066
78067         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78068
78069         * lib/config.charset: New version, incorporating remarks from a linux
78070         i18n mailing list.  From Bruno Haible.
78071
78072 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78073
78074         * m4/codeset.m4: New file.
78075         * m4/iconv.m4: New file.
78076         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78077
78078 2000-03-03  Jim Meyering  <meyering@lucent.com>
78079
78080         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78081
78082 2000-03-02  Jim Meyering  <meyering@lucent.com>
78083
78084         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78085         the messages come out on separate lines.
78086
78087         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78088         rather than jm_CHECK_DECLARATIONS.
78089         * m4/decl.m4: Remove now-unused file.
78090
78091         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78092         geteuid.
78093
78094 2000-03-02  Jim Meyering  <meyering@lucent.com>
78095
78096         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78097
78098 2000-03-01  Jim Meyering  <meyering@lucent.com>
78099
78100         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78101         * lib/unicodeio.c: Likewise.
78102
78103 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78104
78105         * lib/config.charset: New file.
78106         * lib/localcharset.c: New file.
78107         * lib/unicodeio.h, lib/unicodeio.c: New files.
78108         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78109         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78110         (noinst_HEADERS): Add unicodeio.h.
78111         (all-local, install-exec-local, charset.alias): New targets.
78112
78113 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78114
78115         * lib/quotearg.c (ALERT_CHAR): New macro.
78116         (quotearg_buffer_restyled): Use it.
78117
78118 2000-02-27  Jim Meyering  <meyering@lucent.com>
78119
78120         * m4/check-decl.m4: Add getenv to the list.
78121
78122 2000-02-27  Jim Meyering  <meyering@lucent.com>
78123
78124         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78125         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78126
78127         * lib/backupfile.c: Guard inclusion of stdlib.h with
78128         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78129         Declare malloc if needed.
78130
78131         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78132         `#ifndef HAVE_DECL..'
78133         now that autoconf always defines the HAVE_DECL_ symbols.
78134         * lib/human.c: Likewise.
78135         * lib/same.c: Likewise.
78136         * lib/strtoumax.c: Likewise.
78137
78138         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78139         declaration check was not run.
78140         * lib/hash.c: Likewise.
78141         * lib/human.c: Likewise.
78142         * lib/same.c: Likewise.
78143         * lib/strtoumax.c: Likewise.
78144
78145         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78146         `.', then first look up the entire `.'-containing string as a login
78147         name.
78148
78149 2000-02-23  Jim Meyering  <meyering@lucent.com>
78150
78151         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78152         in place of my hack.
78153
78154 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78155
78156         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78157         (textint): New typedef.
78158         (parser_control): Member year changed from int to textint.
78159         All uses changed.
78160         (YYSTYPE): Removed; replaced by %union with int and textint members.
78161         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78162         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78163         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78164         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78165         (date, number, to_year): Use width of number in digits, not its value,
78166         to determine whether it's a 2-digit year, or a 2-digit time.
78167         (yylex): Store number of digits of numeric tokens.
78168         Reported by John Kendall.
78169
78170         (parser_control): Changed from struct parser_control to typedef (for
78171         consistency).  All uses changed.
78172
78173         (tID): Removed; not used.
78174         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78175
78176 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78177
78178         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78179         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78180
78181 2000-02-12  Jim Meyering  <meyering@lucent.com>
78182
78183         * lib/userspec.c (ISDIGIT): Define it.
78184         (isdigit): Remove definition.
78185         (is_number): Use ISDIGIT, not isdigit.
78186         <libintl.h>: Include.
78187         (_ and N_): Define.
78188         (parse_user_spec): Mark translatable strings.
78189
78190 2000-02-10  Jim Meyering  <meyering@lucent.com>
78191
78192         With these changes, nanosleep.[ch] are finally enough like the other
78193         lib/* replacement files to compile on a few more losing systems.
78194
78195         * lib/nanosleep.h: Don't include config.h.
78196         Remove prototype from declaration of nanosleep.
78197         (PARAMS): Remove now-unneeded definition.
78198         * lib/nanosleep.c: #undef nanosleep.
78199         (rpl_nanosleep): Rename from nanosleep.
78200
78201 2000-02-10  Jim Meyering  <meyering@lucent.com>
78202
78203         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78204         gnu_nanosleep to rpl_nanosleep.
78205
78206 2000-02-09  Jim Meyering  <meyering@lucent.com>
78207
78208         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78209         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78210
78211 2000-02-08  Akim Demaille  <akim@epita.fr>
78212
78213         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78214         `[' and `]' and remove uses of `changequote'.
78215         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78216         (AC_SYS_LARGEFILE): Likewise.
78217         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78218         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78219         of changequote.
78220         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78221         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78222         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78223         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78224
78225 2000-02-05  Jim Meyering  <meyering@lucent.com>
78226
78227         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78228         Remove explicit use of AC_HEADER_TIME.  It is required by
78229         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78230         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78231         in autoconf whereby the expansion of the latter ended up preceding
78232         the expansion of its prerequisite, AC_HEADER_TIME.
78233         Reported by Volker Borchert.
78234
78235 2000-02-03  Jim Meyering  <meyering@lucent.com>
78236
78237         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78238
78239 2000-02-03  Jim Meyering  <meyering@lucent.com>
78240
78241         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78242         rather than with `#if HAVE_UTMPNAME'.
78243
78244 2000-02-02  Jim Meyering  <meyering@lucent.com>
78245
78246         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78247         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78248         Reported by Eli Zaretskii.
78249
78250 2000-02-01  Jim Meyering  <meyering@lucent.com>
78251
78252         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78253
78254 2000-01-31  Jim Meyering  <meyering@lucent.com>
78255
78256         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78257         functions.  Add the time.h and sys/time.h headers along with the
78258         AC_REQUIRE'ment of AC_HEADER_TIME.
78259
78260 2000-01-31  Jim Meyering  <meyering@lucent.com>
78261
78262         * lib/nanosleep.h (nanosleep): Guard declaration with
78263         `#if ! HAVE_DECL_NANOSLEEP'.
78264         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78265         the declaration in that vendor's sys/timers.h.
78266         Reported by Christian Krackowizer.
78267
78268         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78269         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78270         (ISPRINT): Likewise.
78271         Reported by Tom Tromey.
78272
78273 2000-01-30  Jim Meyering  <meyering@lucent.com>
78274
78275         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78276
78277         * m4/prereq.m4 (utmp_includes): Define.
78278         Check for ut_user and ut_name members in both struct utmpx
78279         and struct utmp.
78280
78281 2000-01-30  Jim Meyering  <meyering@lucent.com>
78282
78283         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78284         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78285         header files where only utmpx.ut_user is declared.
78286
78287         * lib/readutmp.h (UT_USER): Define.
78288
78289 2000-01-29  Jim Meyering  <meyering@lucent.com>
78290
78291         * m4/lib-check.m4: New file containing library-related checks from
78292         fileutils and sh-utils (textutils had none).
78293
78294 2000-01-28  Jim Meyering  <meyering@lucent.com>
78295
78296         * m4/perl.m4: Change format of warning message to look more like that
78297         from the missing script.  Suggestion from François Pinard.
78298
78299 2000-01-25  Jim Meyering  <meyering@lucent.com>
78300
78301         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78302         well as time.h in the compile check.
78303         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78304         Fix typo in cross-compiling case: s/yes/no/.
78305
78306 2000-01-23  Jim Meyering  <meyering@lucent.com>
78307
78308         * m4/jm-macros.m4: Move df-related tests here from
78309         fileutils/configure.in
78310
78311         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78312         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78313
78314         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78315         s/space/ac_fsusage_space/.
78316         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78317
78318         * m4/ftruncate.m4: New file (derived from part of
78319         fileutils/configure.in).
78320         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78321         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78322
78323         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78324         AC_SUBST these here, rather than just in sh-util/configure.in, so
78325         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78326         all the same.
78327         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78328         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78329         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78330         (AC_SUBST(POW_LIBM)): Likewise.
78331         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78332
78333 2000-01-23  Jim Meyering  <meyering@lucent.com>
78334
78335         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78336         obstack.c.
78337
78338 2000-01-22  Jim Meyering  <meyering@lucent.com>
78339
78340         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78341
78342         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78343
78344         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78345         configure.in
78346         (AC_CHECK_HEADERS): Likewise for sh-utils.
78347         (AC_CHECK_HEADERS): Likewise for textutils.
78348         Merge the three lists of headers.
78349
78350         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78351         from fileutils' configure.in.
78352
78353         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78354         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78355         check-decl.m4.
78356
78357         * m4/check-decl.m4: Use #if rather than #ifdef.
78358         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78359         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78360         (_jm_DECL_HEADERS): Define new function.
78361         (jm_CHECK_DECLARATIONS): Require it.
78362
78363 2000-01-22  Jim Meyering  <meyering@lucent.com>
78364
78365         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78366         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78367         Required for some AIX systems.  Reported by Christian Krackowizer.
78368         [TESTING] (main): New function.
78369
78370         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78371         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78372         letters.
78373
78374         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78375         iswprint.
78376
78377         * lib/strverscmp.c (ISDIGIT): Define.
78378         (strverscmp): Use ISDIGIT, not isdigit.
78379
78380 2000-01-19  Jim Meyering  <meyering@lucent.com>
78381
78382         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78383         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78384         defines `struct timespec' in <sys/time.h>
78385
78386         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78387         Thanks to Akim for explaining.
78388
78389 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78390
78391         * lib/nanosleep.c (nanosleep):
78392         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78393         POSIX.1 doesn't require SA_INTERRUPT and some systems
78394         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78395         it's been part of POSIX.1 since day 1 (in 1988).
78396
78397 2000-01-17  Jim Meyering  <meyering@lucent.com>
78398
78399         * lib/interlock: Remove unused file.  Reported by François Pinard.
78400
78401 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78402
78403         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78404         alert, backslash, formfeed, and vertical tab unnecessarily in
78405         shell quoting style.
78406
78407 2000-01-16  Jim Meyering  <meyering@lucent.com>
78408
78409         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78410         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78411         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78412         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78413
78414 2000-01-16  Jim Meyering  <meyering@lucent.com>
78415
78416         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78417         because the latter didn't work.
78418
78419 2000-01-15  Jim Meyering  <meyering@lucent.com>
78420
78421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78422         (AC_REPLACE_FUNCS): Add memcpy and memset.
78423         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78424         Add strpbrk.
78425         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78426
78427 2000-01-12  Jim Meyering  <meyering@lucent.com>
78428
78429         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78430         (jm_PREREQ): Use it.
78431         (jm_PREREQ_READUTMP): New macro.
78432         (jm_PREREQ): Use it.
78433
78434 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78435
78436         Quote multibyte characters correctly.
78437         * m4/c-bs-a.m4: New file.
78438         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78439         (jm_PREREQ): Use it.
78440
78441 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78442
78443         * m4/uintmax_t.m4: Port to autoconf 2.13.
78444
78445 2000-01-08  Jim Meyering  <meyering@ascend.com>
78446
78447         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78448         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78449
78450 2000-01-04  Jim Meyering  <meyering@ascend.com>
78451
78452         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78453         jm_STRUCT_DIRENT_D_TYPE.
78454         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78455         jm_STRUCT_DIRENT_D_INO.
78456         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78457         jm_STRUCT_UTIMBUF.
78458         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78459         renamings.
78460         * m4/utime.m4: Likewise.
78461
78462         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78463         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78464
78465 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78466
78467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78468         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78469
78470 2000-01-02  Jim Meyering  <meyering@ascend.com>
78471
78472         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78473         remember if this is necessary.
78474
78475 1999-12-26  Jim Meyering  <meyering@ascend.com>
78476
78477         * m4/jm-macros.m4: Use it here.
78478         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78479
78480 1999-12-23  Jim Meyering  <meyering@ascend.com>
78481
78482         * m4/jm-macros.m4: Check for clock_gettime (moved from
78483         fileutils/configure.in)
78484         Check for gettimeofday.
78485
78486 1999-12-20  Jim Meyering  <meyering@ascend.com>
78487
78488         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78489         autoconf-2.14a-1999-12-20.
78490
78491 1999-12-19  Jim Meyering  <meyering@ascend.com>
78492
78493         * m4/lstat-slash.m4: New file.
78494         * m4/jm-macros.m4: Use the new macro:
78495         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78496
78497 1999-12-07  Jim Meyering  <meyering@ascend.com>
78498
78499         * m4/perl.m4: Require that File::Compare be available, too.
78500         Too many systems seem to lack it.
78501
78502         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78503         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78504
78505 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78506
78507         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78508         problem with the QNX 4.25 shell, which doesn't propagate exit
78509         status of failed commands inside shell assignments.
78510
78511 1999-11-17  Jim Meyering  <meyering@ascend.com>
78512
78513         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78514
78515 1999-11-07  Jim Meyering  <meyering@ascend.com>
78516
78517         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78518
78519 1999-11-06  Jim Meyering  <meyering@ascend.com>
78520
78521         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78522         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78523
78524 1999-11-05  Jim Meyering  <meyering@ascend.com>
78525
78526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78527         configure.in of textutils, fileutils, and sh-utils into this one
78528         (shared between those packages) file.
78529         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78530         AC_STRUCT_ST_BLKSIZE.
78531
78532 1999-11-03  Jim Meyering  <meyering@ascend.com>
78533
78534         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78535         of AC_CHECK_TYPE checks includes unistd.h.
78536         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78537         Suggestion from Akim Demaille.
78538
78539 1999-10-30  Jim Meyering  <meyering@ascend.com>
78540
78541         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78542         m4-quoted string.
78543         * m4/ls-mntd-fs.m4: Likewise.
78544         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78545         * m4/jm-winsz1.m4: Likewise.
78546
78547         * m4/const.m4: Remove file, since the fix made it into the experimental
78548         version of autoconf.
78549         * m4/mktime.m4: Likewise.
78550
78551         * m4/check-type.m4: Remove file, now that the latest version of
78552         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78553
78554         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78555         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78556         AC_CHECK_TYPE.
78557
78558 1999-10-04  Jim Meyering  <meyering@ascend.com>
78559
78560         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78561
78562 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78563
78564         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78565         2.95.1 bug with HP-UX 10.20.
78566
78567 1999-09-17  Jim Meyering  <meyering@ascend.com>
78568
78569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78570         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78571         due to missing strdup (against sh-utils-2.0).
78572
78573 1999-08-29  Jim Meyering  <meyering@ascend.com>
78574
78575         * m4/jm-macros.m4: Require jm_BISON.
78576         * m4/bison.m4: New file.
78577
78578 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78579
78580         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78581         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78582
78583 1999-08-05  Jim Meyering  <meyering@ascend.com>
78584
78585         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78586         to avoid conflicts with `conftest' on 8+3 filesystems.
78587         Suggestion from Eli Zaretskii.
78588
78589 1999-08-04  Jim Meyering  <meyering@ascend.com>
78590
78591         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78592         fileutils and sh-utils (textutils's getline test was inadequate).
78593         (AM_FUNC_GETLINE): Run this test.
78594         (AC_CHECK_FUNCS): Check for getdelim.
78595         Reported by Bob Proulx.
78596
78597 1999-08-02  Jim Meyering  <meyering@ascend.com>
78598
78599         * m4/jm-macros.m4: Add a comment.
78600
78601 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78602
78603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78604         <inttypes.h> defines strtoumax as a macro (and not as a
78605         function).
78606
78607 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78608
78609         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78610         that we can shift, multiply and divide unsigned long long
78611         values; Ultrix cc can't do it.
78612
78613 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78614
78615         * m4/mktime.m4: New file, which is a preview of what should appear
78616         in the next public autoconf release.
78617
78618 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78619
78620         * m4/lfs.m4: Remove this file.
78621         * m4/largefile.m4: New file.  It contains the old contents of
78622         lfs.m4, except that all names with prefix AC_LFS have been
78623         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78624         compatible with future autoconf versions.  Also, some minor m4
78625         quoting problems have been fixed.
78626
78627 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78628
78629         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78630         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78631         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78632         and simplify the shell code.
78633
78634 1999-08-01  Jim Meyering  <meyering@ascend.com>
78635
78636         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78637         m4.
78638
78639 1999-07-20  Jim Meyering  <meyering@ascend.com>
78640
78641         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78642
78643 1999-07-15  Jim Meyering  <meyering@ascend.com>
78644
78645         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78646
78647 1999-05-22  Jim Meyering  <meyering@ascend.com>
78648
78649         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78650
78651 1999-05-20  Jim Meyering  <meyering@ascend.com>
78652
78653         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78654         Add a colon after each `then' in case $4 is empty.
78655
78656 1999-05-16  Jim Meyering  <meyering@ascend.com>
78657
78658         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78659
78660 1999-05-10  Jim Meyering  <meyering@ascend.com>
78661
78662         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78663
78664         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78665         AC_FUNC_MKTIME.
78666
78667 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78668
78669         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78670
78671 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78672
78673         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78674         not CPPFLAGS, so that linking works correctly in IRIX.
78675
78676 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78677
78678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78679
78680 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78681
78682         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78683         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78685         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78686         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78687
78688         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78689
78690 1999-04-20  Jim Meyering  <meyering@ascend.com>
78691
78692         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78693         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78694         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78695
78696 1999-04-18  Jim Meyering  <meyering@ascend.com>
78697
78698         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78699         * m4/jm-macros.m4: Use it.
78700
78701 1999-04-06  Jim Meyering  <meyering@ascend.com>
78702
78703         * m4/strftime.m4: Remove test for %f.
78704
78705 1999-03-29  Jim Meyering  <meyering@ascend.com>
78706
78707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78708         superset of the AC_TYPE_* checks in the textutils, fileutils,
78709         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78710         AC_TYPE_PID_T.
78711
78712 1999-03-28  Jim Meyering  <meyering@ascend.com>
78713
78714         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78715         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78716         replaced e.g., in the *.sh files of the sh-utils.
78717
78718 1999-03-20  Jim Meyering  <meyering@ascend.com>
78719
78720         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78721         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78722         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78723
78724 1999-03-19  Jim Meyering  <meyering@ascend.com>
78725
78726         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78727
78728 1999-03-12  Jim Meyering  <meyering@ascend.com>
78729
78730         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78731
78732 1999-03-07  Jim Meyering  <meyering@ascend.com>
78733
78734         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78735         declared.
78736
78737 1999-02-17  Jim Meyering  <meyering@ascend.com>
78738
78739         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78740         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78741
78742 1999-02-07  Jim Meyering  <meyering@ascend.com>
78743
78744         * m4/group-member.m4: New file -- extracted from sh-utils'
78745         configure.in.
78746
78747         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78748         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78749
78750 1999-02-06  Jim Meyering  <meyering@ascend.com>
78751
78752         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78753         * m4/fnmatch.m4: Likewise.
78754         * m4/getgroups.m4: Likewise.
78755         * m4/lstat.m4: Likewise.
78756         * m4/malloc.m4: Likewise.
78757         * m4/putenv.m4: Likewise.
78758         * m4/realloc.m4: Likewise.
78759         * m4/regex.m4: Likewise.
78760         * m4/stat.m4: Likewise.
78761         * m4/strftime.m4: Likewise.
78762         Suggestion from Alain Magloire.
78763
78764         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78765         * m4/fnmatch.m4: Likewise.
78766         * m4/getgroups.m4: Likewise.
78767         * m4/getline.m4: Likewise.
78768         * m4/lstat.m4: Likewise.
78769         * m4/malloc.m4: Likewise.
78770         * m4/memcmp.m4: Likewise.
78771         * m4/putenv.m4: Likewise.
78772         * m4/realloc.m4: Likewise.
78773         * m4/regex.m4: Likewise.
78774         * m4/stat.m4: Likewise.
78775         * m4/strftime.m4: Likewise.
78776         Suggestion from Alain Magloire.
78777
78778         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78779         an argument.
78780
78781         * m4/regex.m4: Add a run-time Test for proper operation of
78782         re_compile_pattern.
78783
78784 1999-01-31  Jim Meyering  <meyering@ascend.com>
78785
78786         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78787
78788 1999-01-30  Jim Meyering  <meyering@ascend.com>
78789
78790         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78791
78792         * m4/jm-mktime.m4: Make this a wrapper around the official
78793         AM_FUNC_MKTIME rather than my private copy, now that the official one
78794         is up to date.
78795         * m4/mktime.m4: Remove file.
78796
78797         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78798         * m4/uptime.m4: Likewise.
78799         * m4/uintmax_t.m4: Likewise.
78800
78801 1999-01-28  Jim Meyering  <meyering@ascend.com>
78802
78803         * m4/jm-macros.m4: Use jm_AFS.
78804         * m4/afs.m4: New file (from fileutils' configure.in).
78805
78806         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78807         * m4/chown.m4: Likewise.
78808         * m4/d-ino.m4: Likewise.
78809         * m4/d-type.m4: Likewise.
78810         * m4/fnmatch.m4: Likewise.
78811         * m4/getgroups.m4: Likewise.
78812         * m4/gettext.m4: Likewise.
78813         * m4/jm-mktime.m4: Likewise.
78814         * m4/jm-winsz2.m4: Likewise.
78815         * m4/lcmessage.m4: Likewise.
78816         * m4/ls-mntd-fs.m4: Likewise.
78817         * m4/malloc.m4: Likewise.
78818         * m4/memcmp.m4: Likewise.
78819         * m4/putenv.m4: Likewise.
78820         * m4/realloc.m4: Likewise.
78821         * m4/st_mtim.m4: Likewise.
78822         * m4/strftime.m4: Likewise.
78823
78824 1999-01-16  Jim Meyering  <meyering@ascend.com>
78825
78826         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78827         (ARGMATCH_DIE_DECL): Define.
78828
78829 1999-01-12  Jim Meyering  <meyering@ascend.com>
78830
78831         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78832         Reported by Lars Hecking.
78833
78834 1999-01-10  Jim Meyering  <meyering@ascend.com>
78835
78836         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78837         gross kludge.
78838         * m4/inttypes_h.m4: Likewise.
78839         * m4/lstat.m4: Likewise.
78840         * m4/malloc.m4: Likewise.
78841         * m4/readdir.m4: Likewise.
78842         * m4/realloc.m4: Likewise.
78843         * m4/st_dm_mode.m4: Likewise.
78844         * m4/stat.m4: Likewise.
78845         * m4/utimbuf.m4: Likewise.
78846         * m4/utimes.m4: Likewise.
78847
78848         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78849         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78850         comments in config.h.in are meaningful.
78851
78852         * m4/jm-macros.m4: Require autoconf-2.13 here.
78853
78854         * m4/regex.m4: By default, don't use the included regex.c on systems
78855         with glibc 2.  Suggestion from Uli Drepper.
78856
78857 1999-01-02  Jim Meyering  <meyering@ascend.com>
78858
78859         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78860
78861 1998-12-18  Jim Meyering  <meyering@ascend.com>
78862
78863         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78864         Based on a suggestion from Lars Hecking.
78865
78866 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78867
78868         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78869
78870 1998-11-16  Jim Meyering  <meyering@ascend.com>
78871
78872         * m4/lfs.m4: Double-quote the `uname...` expression.
78873
78874 1998-11-14  Jim Meyering  <meyering@ascend.com>
78875
78876         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78877         * m4/stat.m4: Likewise.
78878
78879 1998-11-03  Jim Meyering  <meyering@ascend.com>
78880
78881         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78882         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78883
78884 1998-10-18  Jim Meyering  <meyering@ascend.com>
78885
78886         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78887
78888 1998-10-17  Jim Meyering  <meyering@ascend.com>
78889
78890         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78891         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78892         calls for those previously hard-coded headers.  Instead, take a new
78893         parameter.
78894         (jm_CHECK_DECLARATIONS): Reflect interface change.
78895         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78896         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78897
78898         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78899
78900 1998-10-14  Jim Meyering  <meyering@ascend.com>
78901
78902         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78903         instead of "TZ=America/Vancouver".  From Paul Eggert.
78904
78905 1998-10-11  Jim Meyering  <meyering@ascend.com>
78906
78907         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78908         This adds a test for a recently added compatibility fix for mktime.c.
78909         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78910
78911 1998-09-27  Jim Meyering  <meyering@ascend.com>
78912
78913         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78914
78915         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78916         ../configure.in, including a change from Gordon Matzigkeit to allow
78917         cross-compiling for the Hurd.
78918
78919         * m4/glibc.m4: New file/macro to test for the GNU C Library
78920         versions 1 and 2.  From Gordon Matzigkeit.
78921         Indent.
78922
78923 1998-09-21  Jim Meyering  <meyering@ascend.com>
78924
78925         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78926
78927 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78928
78929         Port nanosecond-resolution times to UnixWare 2.1.2 and
78930         pedantic Solaris 2.6.
78931
78932         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78933         AC_STRUCT_ST_MTIM.
78934         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78935         Generate name of ns member, instead of just 1 or undef.
78936         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78937
78938 1998-08-15  Jim Meyering  <meyering@ascend.com>
78939
78940         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78941         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78942         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78943         instead of jm_TYPE_SSIZE_T.
78944
78945 1998-08-12  Jim Meyering  <meyering@ascend.com>
78946
78947         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78948
78949 1998-08-02  Jim Meyering  <meyering@ascend.com>
78950
78951         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78952         in acconfig.h manually.
78953
78954 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78955
78956         * m4/st_mtim.m4: New file.
78957
78958 1998-07-28  Jim Meyering  <meyering@ascend.com>
78959
78960         * m4/utimes.m4: Undef stat.
78961
78962 1998-07-25  Jim Meyering  <meyering@ascend.com>
78963
78964         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78965         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78966
78967 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78968
78969         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78970         uid and gid actually remain unchanged.
78971
78972 1998-07-07  Jim Meyering  <meyering@ascend.com>
78973
78974         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78975
78976 1998-07-04  Jim Meyering  <meyering@ascend.com>
78977
78978         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78979         to prove that this macro can be used in packages without regex.c.
78980
78981 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78982
78983         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78984         is to be used.
78985
78986 1998-07-03  Jim Meyering  <meyering@ascend.com>
78987
78988         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78989
78990         * m4/gettext.m4: New file -- from gettext-0.10.35.
78991         * m4/lcmessage.m4: Likewise.
78992         * m4/progtest.m4: Likewise.
78993
78994         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78995         * m4/jm-macros.m4: Require the new macro.
78996
78997 1998-06-29  Jim Meyering  <meyering@ascend.com>
78998
78999         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79000         for the definition of NGROUPS (used in a system header included
79001         by sys/mount.h).
79002
79003 1998-06-28  Jim Meyering  <meyering@ascend.com>
79004
79005         * m4/ls-mntd-fs.m4: New file.
79006         * m4/fstypename.m4: New file.
79007
79008         * m4/jm-macros.m4: Require the new macro.
79009         * m4/jm-glibc-io.m4: New file.
79010
79011 1998-05-19  Jim Meyering  <meyering@ascend.com>
79012
79013         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79014         * m4/lchown.m4: New file.
79015
79016         * m4/Makefile.am.in: New file.
79017         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79018
79019 1998-05-14  Jim Meyering  <meyering@ascend.com>
79020
79021         * m4/Makefile.am (EXTRA_DIST): Add them.
79022         * m4/jm-macros.m4: New file.
79023         * m4/utimbuf.m4: New file.
79024
79025 1998-05-12  Jim Meyering  <meyering@ascend.com>
79026
79027         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79028
79029 1998-05-11  Jim Meyering  <meyering@ascend.com>
79030
79031         * m4/isc-posix.m4: New file.
79032
79033 1998-05-10  Jim Meyering  <meyering@ascend.com>
79034
79035         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79036
79037 1998-05-09  Jim Meyering  <meyering@ascend.com>
79038
79039         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79040         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79041         with automake.
79042
79043         * m4/ssize_t.m4: New file.
79044         * m4/mktime.m4: Remove file -- the new automake has this now.
79045
79046 1998-04-26  Jim Meyering  <meyering@ascend.com>
79047
79048         * m4/assert.m4: New file.
79049         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79050
79051 1998-04-05  Jim Meyering  <meyering@ascend.com>
79052
79053         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79054         (jm_PREREQ): Use it here.
79055
79056 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79057
79058         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79059         in acconfig.h.
79060
79061 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79062
79063         * m4/prereq.m4: New file.
79064         * m4/error.m4: New file.
79065         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79066
79067 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79068
79069         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79070         cache-check for the same variable -- that defeated the purpose of
79071         the test; the test program was never run.  This was a problem only
79072         on systems with losing getline functions -- HP-UX 10.20 is one.
79073         Reported by Bjorn Helgaas.
79074
79075 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79076
79077         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79078
79079 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79080
79081         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79082
79083         * m4/const.m4: New file.  Use an initializer in this declaration
79084         typedef int charset[2]; const charset x;
79085         Reported by Bob Glickstein.
79086
79087 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79088
79089         * m4/chown.m4: Fix reversed types on -1 args to chown.
79090         From Kaveh Ghazi.
79091
79092 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79093
79094         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79095         Add lseek and memchr.
79096
79097         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79098         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79099         have a 20-character limit on names.
79100
79101 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79102
79103         * m4/inttypes_h.m4: New file.
79104         * m4/uintmax_t.m4: New file.
79105         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79106
79107
79108         -----
79109
79110         Local Variables:
79111         coding: utf-8
79112         End:
79113
79114         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79115
79116         Copying and distribution of this file, with or without
79117         modification, are permitted provided the copyright notice
79118         and this notice are preserved.