fflush, fpurge: Relicense under LGPLv2+.
[gnulib.git] / ChangeLog
1 2011-05-06  Bruno Haible  <bruno@clisp.org>
2
3         fflush, fpurge: Relicense under LGPLv2+.
4         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
5         * modules/fpurge (License): Likewise.
6         With permission from Eric Blake and Jim Meyering.
7         Suggested by Eric Blake.
8
9 2011-05-06  Karl Berry  <karl@gnu.org>
10
11         * MODULES.html.sh (func_all_modules): remove exit.
12
13 2011-05-06  Jim Meyering  <meyering@redhat.com>
14
15         maint.mk: use info-gnu@ as the default only for a stable release
16         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20
21 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22
23         assert-h: new module, which supports C1X-style static_assert
24         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
25         * lib/verify.h: Revamp so that this can be copied into assert.h,
26         while retaining the ability to use it standalone as before.
27         Rename private identifiers so as not to encroach on the
28         standard C namespace, since this is now used by assert.h.
29         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
30         the old verify_true.
31         (_GL_VERIFY_TRUE): New macro, with much of the contents of
32         the old verify_true.  Use _GL_VERIFY_TYPE.
33         (_GL_VERIFY): New macro, with much of the contents of the old verify.
34         (static_assert): New macro, if _GL_STATIC_ASSERT_H
35         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
36         defined when this file is copied into the replacement assert.h.
37         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
38         and _Static_assert is not built in.
39         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
40         defined, and use the new macros mentioned above.
41         * doc/posix-headers/assert.texi: Document this.
42
43 2011-05-05  Bruno Haible  <bruno@clisp.org>
44
45         fclose, fflush: Respect rules for use of AC_LIBOBJ.
46         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
47         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
48         gl_REPLACE_FCLOSE here.
49         * modules/fflush (Depends-on): Remove fclose.
50         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51         combination with module 'fclose'.
52
53 2011-05-05  Bruno Haible  <bruno@clisp.org>
54
55         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
57         gl_FUNC_FFLUSH.
58         (gl_FUNC_FFLUSH): Use it.
59         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
60         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
61         gl_REPLACE_FSEEKO here.
62
63 2011-05-05  Bruno Haible  <bruno@clisp.org>
64
65         tzset: Relicense under LGPL.
66         * modules/tzset (License): Change to LGPL.
67         No agreement needed; it's a no-op.
68
69         strtoimax, strtoumax: Relicense under LGPL.
70         * modules/strtoimax (License): Change to LGPL.
71         * modules/strtoumax (License): Likewise.
72         With permission from Jim Meyering, Paul Eggert:
73         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
74         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
75
76         getgroups: Relicense under LGPL.
77         * modules/getgroups (License): Change to LGPL.
78         With permission from Jim Meyering, Paul Eggert, Eric Blake:
79         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
80         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
81         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
82
83         nanosleep: Relicense under LGPL.
84         * modules/nanosleep (License): Change to LGPL.
85         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
86         Haible:
87         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
88         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
89         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
90         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
91
92         futimens: Relicense under LGPL.
93         * modules/futimens (License): Change to LGPL.
94         With permission from Eric Blake:
95         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
96
97         fflush: Relicense under LGPL.
98         * modules/fflush (License): Change to LGPL.
99         With permission from Eric Blake, Bruno Haible, Jim Meyering:
100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
103
104         tmpfile: Relicense under LGPL.
105         * modules/tmpfile (License): Change to LGPL.
106         With permission from Ben Pfaff:
107         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
108
109         isfinite: Relicense under LGPL.
110         * modules/isfinite (License): Change to LGPL.
111         With permission from Ben Pfaff, Bruno Haible:
112         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
114
115         acosl..tanl: Relicense under LGPL.
116         * modules/acosl (License): Change to LGPL.
117         * modules/asinl (License): Likewise.
118         * modules/atanl (License): Likewise.
119         * modules/cosl (License): Likewise.
120         * modules/expl (License): Likewise.
121         * modules/logl (License): Likewise.
122         * modules/sinl (License): Likewise.
123         * modules/sqrtl (License): Likewise.
124         * modules/tanl (License): Likewise.
125         Source code originally from glibc and Paolo Bonzini. Agreements:
126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
128
129 2011-05-05  Bruno Haible  <bruno@clisp.org>
130
131         signal: Define sighandler_t.
132         * lib/signal.in.h (sighandler_t): New type.
133         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
134         whether sighandler_t is defined.
135         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
136         * modules/signal (Depends-on): Add extensions.
137         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
138         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
139         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
140
141 2011-05-05  Eric Blake  <eblake@redhat.com>
142
143         maint: remove useless REPLACE_*_H macros
144         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
145         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
146         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
147         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
148         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
149         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
150         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
151         * m4/btowc.m4: Update callers.
152         * m4/dirfd.m4: Likewise.
153         * m4/duplocale.m4: Likewise.
154         * m4/fchdir.m4: Likewise.
155         * m4/fdopendir.m4: Likewise.
156         * m4/inet_ntop.m4: Likewise.
157         * m4/inet_pton.m4: Likewise.
158         * m4/ioctl.m4: Likewise.
159         * m4/mbrlen.m4: Likewise.
160         * m4/mbrtowc.m4: Likewise.
161         * m4/mbsinit.m4: Likewise.
162         * m4/mbsnrtowcs.m4: Likewise.
163         * m4/mbsrtowcs.m4: Likewise.
164         * m4/poll.m4: Likewise.
165         * m4/setlocale.m4: Likewise.
166         * m4/wcrtomb.m4: Likewise.
167         * m4/wcsnrtombs.m4: Likewise.
168         * m4/wcsrtombs.m4: Likewise.
169         * m4/wctob.m4: Likewise.
170         * m4/wcwidth.m4: Likewise.
171         * modules/posix_spawn: Likewise.
172         * modules/posix_spawn_file_actions_addclose: Likewise.
173         * modules/posix_spawn_file_actions_adddup2: Likewise.
174         * modules/posix_spawn_file_actions_addopen: Likewise.
175         * modules/posix_spawn_file_actions_destroy: Likewise.
176         * modules/posix_spawn_file_actions_init: Likewise.
177         * modules/posix_spawnattr_destroy: Likewise.
178         * modules/posix_spawnattr_getflags: Likewise.
179         * modules/posix_spawnattr_getpgroup: Likewise.
180         * modules/posix_spawnattr_getschedparam: Likewise.
181         * modules/posix_spawnattr_getschedpolicy: Likewise.
182         * modules/posix_spawnattr_getsigdefault: Likewise.
183         * modules/posix_spawnattr_getsigmask: Likewise.
184         * modules/posix_spawnattr_init: Likewise.
185         * modules/posix_spawnattr_setflags: Likewise.
186         * modules/posix_spawnattr_setpgroup: Likewise.
187         * modules/posix_spawnattr_setschedparam: Likewise.
188         * modules/posix_spawnattr_setschedpolicy: Likewise.
189         * modules/posix_spawnattr_setsigdefault: Likewise.
190         * modules/posix_spawnattr_setsigmask: Likewise.
191         * modules/posix_spawnp: Likewise.
192
193 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
194
195         Add option to do-release-commit-and-tag to specify branch.
196         * build-aux/do-release-commit-and-tag: Add --branch.
197
198 2011-05-03  Bruno Haible  <bruno@clisp.org>
199
200         Avoid unnecessary compilation units, through conditional dependencies.
201         * modules/accept (Depends-on): Add conditions to the dependencies.
202         * modules/acosl (Depends-on): Likewise.
203         * modules/argz (Depends-on): Likewise.
204         * modules/asinl (Depends-on): Likewise.
205         * modules/atanl (Depends-on): Likewise.
206         * modules/atoll (Depends-on): Likewise.
207         * modules/bind (Depends-on): Likewise.
208         * modules/btowc (Depends-on): Likewise.
209         * modules/canonicalize-lgpl (Depends-on): Likewise.
210         * modules/ceil (Depends-on): Likewise.
211         * modules/ceilf (Depends-on): Likewise.
212         * modules/ceill (Depends-on): Likewise.
213         * modules/chdir-long (Depends-on): Likewise.
214         * modules/chown (Depends-on): Likewise.
215         * modules/close (Depends-on): Likewise.
216         * modules/connect (Depends-on): Likewise.
217         * modules/cosl (Depends-on): Likewise.
218         * modules/dirfd (Depends-on): Likewise.
219         * modules/dprintf (Depends-on): Likewise.
220         * modules/dprintf-posix (Depends-on): Likewise.
221         * modules/error (Depends-on): Likewise.
222         * modules/euidaccess (Depends-on): Likewise.
223         * modules/expl (Depends-on): Likewise.
224         * modules/faccessat (Depends-on): Likewise.
225         * modules/fchdir (Depends-on): Likewise.
226         * modules/fclose (Depends-on): Likewise.
227         * modules/fcntl (Depends-on): Likewise.
228         * modules/fdopendir (Depends-on): Likewise.
229         * modules/fflush (Depends-on): Likewise.
230         * modules/floor (Depends-on): Likewise.
231         * modules/floorf (Depends-on): Likewise.
232         * modules/floorl (Depends-on): Likewise.
233         * modules/fnmatch (Depends-on): Likewise.
234         * modules/fopen (Depends-on): Likewise.
235         * modules/fprintf-posix (Depends-on): Likewise.
236         * modules/frexp (Depends-on): Likewise.
237         * modules/frexp-nolibm (Depends-on): Likewise.
238         * modules/frexpl (Depends-on): Likewise.
239         * modules/frexpl-nolibm (Depends-on): Likewise.
240         * modules/fseek (Depends-on): Likewise.
241         * modules/fsusage (Depends-on): Likewise.
242         * modules/ftell (Depends-on): Likewise.
243         * modules/ftello (Depends-on): Likewise.
244         * modules/futimens (Depends-on): Likewise.
245         * modules/getcwd (Depends-on): Likewise.
246         * modules/getcwd-lgpl (Depends-on): Likewise.
247         * modules/getdelim (Depends-on): Likewise.
248         * modules/getdomainname (Depends-on): Likewise.
249         * modules/getgroups (Depends-on): Likewise.
250         * modules/gethostname (Depends-on): Likewise.
251         * modules/getline (Depends-on): Likewise.
252         * modules/getlogin_r (Depends-on): Likewise.
253         * modules/getopt-posix (Depends-on): Likewise.
254         * modules/getpeername (Depends-on): Likewise.
255         * modules/getsockname (Depends-on): Likewise.
256         * modules/getsockopt (Depends-on): Likewise.
257         * modules/getsubopt (Depends-on): Likewise.
258         * modules/getusershell (Depends-on): Likewise.
259         * modules/glob (Depends-on): Likewise.
260         * modules/grantpt (Depends-on): Likewise.
261         * modules/iconv_open (Depends-on): Likewise.
262         * modules/iconv_open-utf (Depends-on): Likewise.
263         * modules/inet_ntop (Depends-on): Likewise.
264         * modules/inet_pton (Depends-on): Likewise.
265         * modules/ioctl (Depends-on): Likewise.
266         * modules/isapipe (Depends-on): Likewise.
267         * modules/isfinite (Depends-on): Likewise.
268         * modules/isinf (Depends-on): Likewise.
269         * modules/lchown (Depends-on): Likewise.
270         * modules/ldexpl (Depends-on): Likewise.
271         * modules/link (Depends-on): Likewise.
272         * modules/linkat (Depends-on): Likewise.
273         * modules/listen (Depends-on): Likewise.
274         * modules/logl (Depends-on): Likewise.
275         * modules/lstat (Depends-on): Likewise.
276         * modules/mbrlen (Depends-on): Likewise.
277         * modules/mbrtowc (Depends-on): Likewise.
278         * modules/mbsinit (Depends-on): Likewise.
279         * modules/mbsnrtowcs (Depends-on): Likewise.
280         * modules/mbsrtowcs (Depends-on): Likewise.
281         * modules/mbtowc (Depends-on): Likewise.
282         * modules/memcmp (Depends-on): Likewise.
283         * modules/mkdir (Depends-on): Likewise.
284         * modules/mkdtemp (Depends-on): Likewise.
285         * modules/mkfifo (Depends-on): Likewise.
286         * modules/mkfifoat (Depends-on): Likewise.
287         * modules/mknod (Depends-on): Likewise.
288         * modules/mkostemp (Depends-on): Likewise.
289         * modules/mkostemps (Depends-on): Likewise.
290         * modules/mkstemp (Depends-on): Likewise.
291         * modules/mkstemps (Depends-on): Likewise.
292         * modules/mktime (Depends-on): Likewise.
293         * modules/nanosleep (Depends-on): Likewise.
294         * modules/open (Depends-on): Likewise.
295         * modules/openat (Depends-on): Likewise.
296         * modules/perror (Depends-on): Likewise.
297         * modules/poll (Depends-on): Likewise.
298         * modules/popen (Depends-on): Likewise.
299         * modules/posix_spawn (Depends-on): Likewise.
300         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
301         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
302         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
303         * modules/posix_spawnp (Depends-on): Likewise.
304         * modules/pread (Depends-on): Likewise.
305         * modules/printf-posix (Depends-on): Likewise.
306         * modules/ptsname (Depends-on): Likewise.
307         * modules/putenv (Depends-on): Likewise.
308         * modules/pwrite (Depends-on): Likewise.
309         * modules/readline (Depends-on): Likewise.
310         * modules/readlink (Depends-on): Likewise.
311         * modules/readlinkat (Depends-on): Likewise.
312         * modules/recv (Depends-on): Likewise.
313         * modules/recvfrom (Depends-on): Likewise.
314         * modules/regex (Depends-on): Likewise.
315         * modules/remove (Depends-on): Likewise.
316         * modules/rename (Depends-on): Likewise.
317         * modules/renameat (Depends-on): Likewise.
318         * modules/rmdir (Depends-on): Likewise.
319         * modules/round (Depends-on): Likewise.
320         * modules/roundf (Depends-on): Likewise.
321         * modules/roundl (Depends-on): Likewise.
322         * modules/rpmatch (Depends-on): Likewise.
323         * modules/select (Depends-on): Likewise.
324         * modules/send (Depends-on): Likewise.
325         * modules/sendto (Depends-on): Likewise.
326         * modules/setenv (Depends-on): Likewise.
327         * modules/setlocale (Depends-on): Likewise.
328         * modules/setsockopt (Depends-on): Likewise.
329         * modules/shutdown (Depends-on): Likewise.
330         * modules/sigaction (Depends-on): Likewise.
331         * modules/signbit (Depends-on): Likewise.
332         * modules/sigprocmask (Depends-on): Likewise.
333         * modules/sinl (Depends-on): Likewise.
334         * modules/sleep (Depends-on): Likewise.
335         * modules/snprintf (Depends-on): Likewise.
336         * modules/snprintf-posix (Depends-on): Likewise.
337         * modules/socket (Depends-on): Likewise.
338         * modules/sprintf-posix (Depends-on): Likewise.
339         * modules/sqrtl (Depends-on): Likewise.
340         * modules/stat (Depends-on): Likewise.
341         * modules/strchrnul (Depends-on): Likewise.
342         * modules/strdup-posix (Depends-on): Likewise.
343         * modules/strerror (Depends-on): Likewise.
344         * modules/strerror_r-posix (Depends-on): Likewise.
345         * modules/strndup (Depends-on): Likewise.
346         * modules/strnlen (Depends-on): Likewise.
347         * modules/strptime (Depends-on): Likewise.
348         * modules/strsep (Depends-on): Likewise.
349         * modules/strsignal (Depends-on): Likewise.
350         * modules/strstr-simple (Depends-on): Likewise.
351         * modules/strtod (Depends-on): Likewise.
352         * modules/strtoimax (Depends-on): Likewise.
353         * modules/strtok_r (Depends-on): Likewise.
354         * modules/strtoumax (Depends-on): Likewise.
355         * modules/symlink (Depends-on): Likewise.
356         * modules/symlinkat (Depends-on): Likewise.
357         * modules/tanl (Depends-on): Likewise.
358         * modules/tcgetsid (Depends-on): Likewise.
359         * modules/tmpfile (Depends-on): Likewise.
360         * modules/trunc (Depends-on): Likewise.
361         * modules/truncf (Depends-on): Likewise.
362         * modules/truncl (Depends-on): Likewise.
363         * modules/uname (Depends-on): Likewise.
364         * modules/unlink (Depends-on): Likewise.
365         * modules/unlockpt (Depends-on): Likewise.
366         * modules/unsetenv (Depends-on): Likewise.
367         * modules/usleep (Depends-on): Likewise.
368         * modules/utimensat (Depends-on): Likewise.
369         * modules/vasprintf (Depends-on): Likewise.
370         * modules/vdprintf (Depends-on): Likewise.
371         * modules/vdprintf-posix (Depends-on): Likewise.
372         * modules/vfprintf-posix (Depends-on): Likewise.
373         * modules/vprintf-posix (Depends-on): Likewise.
374         * modules/vsnprintf (Depends-on): Likewise.
375         * modules/vsnprintf-posix (Depends-on): Likewise.
376         * modules/vsprintf-posix (Depends-on): Likewise.
377         * modules/wcrtomb (Depends-on): Likewise.
378         * modules/wcscasecmp (Depends-on): Likewise.
379         * modules/wcscspn (Depends-on): Likewise.
380         * modules/wcsdup (Depends-on): Likewise.
381         * modules/wcsncasecmp (Depends-on): Likewise.
382         * modules/wcsnrtombs (Depends-on): Likewise.
383         * modules/wcspbrk (Depends-on): Likewise.
384         * modules/wcsrtombs (Depends-on): Likewise.
385         * modules/wcsspn (Depends-on): Likewise.
386         * modules/wcsstr (Depends-on): Likewise.
387         * modules/wcstok (Depends-on): Likewise.
388         * modules/wcswidth (Depends-on): Likewise.
389         * modules/wctob (Depends-on): Likewise.
390         * modules/wctomb (Depends-on): Likewise.
391         * modules/wctype (Depends-on): Likewise.
392         * modules/wcwidth (Depends-on): Likewise.
393         * modules/write (Depends-on): Likewise.
394
395 2011-05-03  Bruno Haible  <bruno@clisp.org>
396
397         Support for conditional dependencies.
398         * doc/gnulib.texi (Module description): Document the syntax of
399         conditional dependencies.
400         * gnulib-tool: New option --conditional-dependencies.
401         (func_usage): Document it.
402         (cond_dependencies): New variable.
403         (func_get_automake_snippet_conditional,
404         func_get_automake_snippet_unconditional): New functions, extracted from
405         func_get_automake_snippet.
406         (func_get_automake_snippet): Use them.
407         (sed_first_32_chars): New variable.
408         (func_module_shellfunc_name): New function.
409         (func_module_shellvar_name): New function.
410         (func_module_conditional_name): New function.
411         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
412         func_cond_module_condition): New functions.
413         (func_modules_transitive_closure): Add support for conditional
414         dependencies.
415         (func_emit_lib_Makefile_am): For a conditional module, enclose the
416         conditional automake snippet in an automake conditional.
417         (func_emit_autoconf_snippets): Emit shell functions that contain the
418         code for conditional modules.
419         (func_import, func_create_testdir): Update specification.
420
421 2011-05-03  Eric Blake  <eblake@redhat.com>
422
423         test-getaddrinfo: report error information
424         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
425
426 2011-05-03  Jim Meyering  <meyering@redhat.com>
427
428         bootstrap: avoid build failure when $GZIP is set
429         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
430         program name.  If defined at all, it is supposed to list gzip options.
431         Reported by Alan Curry in http://debbugs.gnu.org/8609
432
433 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
434
435         readme-release: new module with release instructions
436         * modules/readme-release: New module.
437         * top/README-release: New file, from coreutils, grep, diffutils.
438         * MODULES.html.sh (Support for maintaining and releasing): Add it.
439
440 2011-05-02  Eric Blake  <eblake@redhat.com>
441
442         fflush: also replace fclose when fixing fflush
443         * modules/fflush (Depends-on): Add fclose.
444         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
445         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
446         memstreams with no backing fd.
447         * doc/posix-functions/fclose.texi (fclose): Document the use of
448         fflush module to fix the bug.
449         * tests/test-fclose.c (main): Relax test when fclose is used in
450         isolation.
451
452         fclose: add some tests
453         * modules/fclose-tests: New test module.
454         * tests/test-fclose.c: New file.
455         * doc/posix-functions/fclose.texi (fclose): Document the bug.
456
457         fclose: reduced dependencies
458         * modules/fclose (Depends-on): Switch from fflush/fseeko to
459         simpler lseek.
460         * lib/fclose.c (rpl_fclose): Likewise.
461         Reported by Simon Josefsson.
462
463         exit: drop remaining clients
464         * modules/argmatch (Depends-on): Replace exit with stdlib.
465         * modules/copy-file (Depends-on): Likewise.
466         * modules/execute (Depends-on): Likewise.
467         * modules/exitfail (Depends-on): Likewise.
468         * modules/obstack (Depends-on): Likewise.
469         * modules/pagealign_alloc (Depends-on): Likewise.
470         * modules/pipe-filter-gi (Depends-on): Likewise.
471         * modules/pipe-filter-ii (Depends-on): Likewise.
472         * modules/savewd (Depends-on): Likewise.
473         * modules/spawn-pipe (Depends-on): Likewise.
474         * modules/wait-process (Depends-on): Likewise.
475         * modules/xsetenv (Depends-on): Likewise.
476         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
477         * modules/git-merge-changelog (Depends-on): Likewise.
478         * modules/long-options (Depends-on): Likewise.
479         * modules/pt_chown (Depends-on): Likewise.
480         * modules/sysexits (Depends-on): Likewise.
481
482         freading: relax license from LGPLv3+ to LGPLv2+
483         * modules/freading (License): Relax LGPL version.
484
485 2011-05-02  Bruno Haible  <bruno@clisp.org>
486
487         fchdir: Remove unused dependencies.
488         * modules/fchdir (Depends-on): Remove include_next.
489
490 2011-05-02  Bruno Haible  <bruno@clisp.org>
491
492         gnulib-tool: Refactor.
493         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
494         from func_emit_autoconf_snippets.
495         (func_emit_autoconf_snippets): Use it.
496
497 2011-05-02  Simon Josefsson  <simon@josefsson.org>
498
499         * NEWS: Document removal of 'exit'.
500         * modules/exit: Remove file.
501
502 2011-05-01  Bruno Haible  <bruno@clisp.org>
503
504         Update DEPENDENCIES.
505         * DEPENDENCIES (gettext): Recommend the newest release.
506         Reported by Simon Josefsson.
507
508 2011-05-01  Bruno Haible  <bruno@clisp.org>
509
510         gnulib-tool: Reduce code duplication.
511         * gnulib-tool (func_emit_autoconf_snippets): New function.
512         (func_import, func_create_testdir): Use it.
513
514 2011-04-30  Eric Blake  <eblake@redhat.com>
515
516         fclose: don't fail on non-seekable input stream
517         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
518         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
519         since fflush is allowed to fail in that case.
520
521 2011-04-30  Bruno Haible  <bruno@clisp.org>
522
523         dup3: cleanup
524         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
525
526 2011-04-30  Bruno Haible  <bruno@clisp.org>
527
528         netdb: Make it work in C++ mode.
529         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
530         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
531         module.
532         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
533         gl_MODULE_INDICATOR_FOR_TESTS.
534         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
535         * modules/netdb-c++-tests: New file.
536         * tests/test-netdb-c++.cc: New file.
537
538 2011-04-30  Bruno Haible  <bruno@clisp.org>
539
540         New modules 'vfscanf', 'vscanf'.
541         * modules/vfscanf: New file.
542         * modules/vscanf: New file.
543         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
544         here.
545         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
546         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
547
548 2011-04-30  Bruno Haible  <bruno@clisp.org>
549
550         passfd: Add comments.
551         * lib/passfd.c: Add comments about platforms.
552
553 2011-04-30  Bruno Haible  <bruno@clisp.org>
554
555         sys_uio: Make <sys/uio.h> self-contained.
556         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
557         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
558
559 2011-04-30  Bruno Haible  <bruno@clisp.org>
560
561         sys_socket: Ensure 'struct iovec' definition.
562         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
563         <sys/socket.h>.
564         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
565
566 2011-04-30  Bruno Haible  <bruno@clisp.org>
567
568         sys_uio: Protect definition of 'struct iovec'.
569         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
570         it as a C struct.
571
572 2011-04-30  Bruno Haible  <bruno@clisp.org>
573
574         manywarnings: fix indentation
575         * m4/manywarnings.m4: Indent by 2 spaces consistently.
576
577 2011-04-30  Pádraig Brady <P@draigBrady.com>
578
579         manywarnings: add -Wno-missing-field-initializers if needed.
580         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
581         option if it's needed to allow initialization with { 0, }
582
583 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
584
585         announce-gen: cosmetic improvement
586         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
587
588 2011-04-29  Jim Meyering  <meyering@redhat.com>
589
590         vc-list-files: indent with spaces, not TABs
591         * build-aux/vc-list-files: Convert leading TABs to spaces,
592         to match the style of most other files in gnulib.
593
594         announce-gen: indent with spaces, not TABs
595         * build-aux/announce-gen: Convert all TABs to spaces, to match
596         the style of most other files in gnulib.
597
598 2011-04-29  Eric Blake  <eblake@redhat.com>
599
600         quotearg: avoid uninitialized variable use
601         * lib/quotearg.c (quoting_options_from_style): Initialize
602         remaining fields, and ensure that custom styles are only used via
603         quoting_options rather than quoting_style.
604
605 2011-04-29  Jim Meyering  <meyering@redhat.com>
606
607         maint.mk: remove unused VC-tag variable
608         * top/maint.mk (VC-tag): Remove unused variable.
609
610 2011-04-29  Bruno Haible  <bruno@clisp.org>
611
612         netdb: fix gai_strerror replacements
613         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
614         * modules/netdb: Substitute it.
615
616 2011-04-29  Jim Meyering  <meyering@redhat.com>
617
618         test-getcwd.c: avoid new set-but-not-used warning
619         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
620         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
621         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
622         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
623
624         test-hash.c: avoid a new shadowing warning
625         * tests/test-hash.c (main): Don't shadow "dup".
626
627 2011-04-28  Eric Blake  <eblake@redhat.com>
628
629         getaddrinfo: fix gai_strerror signature
630         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
631         and work around mingw with UNICODE defined.
632         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
633         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
634         * modules/netdb (Makefile.am): Substitute it.
635         * lib/netdb.in.h (gai_strerror): Declare replacement.
636         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
637         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
638         the fix.
639
640         getsockopt: avoid compiler warning
641         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
642         Reported by Matthias Bolte.
643
644         tests: drop unused link dependency
645         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
646         * modules/dirent-safer-tests (Makefile.am): Likewise.
647         * modules/fdopendir-tests (Makefile.am): Likewise.
648         * modules/mkfifoat-tests (Makefile.am): Likewise.
649         * modules/openat-safer-tests (Makefile.am): Likewise.
650         * modules/openat-tests (Makefile.am): Likewise.
651         * modules/readlinkat-tests (Makefile.am): Likewise.
652         * modules/symlinkat-tests (Makefile.am): Likewise.
653         * modules/linkat-tests (Makefile.am): Likewise.
654         (Depends-on): Switch to filenamecat-lgpl.
655         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
656         LIBINTL.
657         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
658         * tests/test-linkat.c (main): Don't require xalloc.
659
660         hash, mgetgroups: drop xalloc dependency
661         * lib/hash.c (includes): Adjust includes.
662         * lib/mgetgroups.c (includes): Likewise.
663         (xgetgroups): Move...
664         * lib/xgetgroups.c: ...to new file.
665         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
666         * modules/xgetgroups: New file, split from...
667         * modules/mgetgroups: ...here.
668         (Depends-on): Add xalloc-oversized.
669         * modules/hash (Depends-on): Likewise.
670         * modules/hash-tests (Depends-on): Drop xalloc.
671         (test_hash_LDADD): Drop unused library.
672         * tests/test-hash.c (main): Break xalloc dependency.
673         (includes): Drop unused include.
674
675         xalloc-oversized: new module
676         * modules/xalloc-oversized: New module.
677         * modules/xalloc (Depends-on): Add it.
678         * lib/xalloc.h (xalloc_oversized): Move...
679         * lib/xalloc-oversized.h: ...into new file.
680
681         utimecmp: drop dependency on xmalloc
682         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
683         due to memory pressure.
684         * modules/utimecmp (Depends-on): Drop xalloc.
685
686 2011-04-27  Eric Blake  <eblake@redhat.com>
687
688         getcwd: fix mingw bugs
689         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
690         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
691         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
692
693 2011-04-27  Bruno Haible  <bruno@clisp.org>
694
695         mkstemps: Ensure declaration on MacOS X 10.5.
696         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
697         * doc/glibc-functions/mkstemps.texi: Document header file problem on
698         MacOS X.
699
700 2011-04-27  Bruno Haible  <bruno@clisp.org>
701
702         mkstemp: More documentation.
703         * doc/posix-functions/mkstemp.texi: Document header file problem on
704         MacOS X.
705
706 2011-04-27  Bruno Haible  <bruno@clisp.org>
707
708         mkstemp: Tweak configure message when cross-compiling.
709         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
710         result as a guess.
711
712 2011-04-27  Bruno Haible  <bruno@clisp.org>
713
714         clean-temp: Clarify what it does.
715         * lib/clean-temp.h: Add more comments.
716         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
717         module.
718         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
719         * doc/glibc-functions/mkstemps.texi: Likewise.
720         * doc/glibc-functions/mkostemps.texi: Likewise.
721
722 2011-04-27  Eric Blake  <eblake@redhat.com>
723
724         fchdir: avoid extra chdir and fix test
725         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
726         getcwd-lgpl.
727         * lib/fchdir.c (get_name): Any absolute name will do; it does not
728         have to be canonical.
729         (canonicalize_file_name): Drop unused macro.
730         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
731
732         filenamecat-lgpl: fix licence
733         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
734         when it was first created.
735
736         linkat, renameat: add missing dependency
737         * modules/linkat (Depends-on): Require getcwd-lgpl.
738         * modules/renameat (Depends-on): Likewise.
739
740         tests: reduce dependencies
741         * tests/test-linkat.c (main): Use lighter-weight getcwd.
742         * tests/test-renameat.c (main): Likewise.
743         * modules/linkat-tests (Depends-on): Relax dependency.
744         * modules/renameat-tests (Depends-on): Likewise.
745         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
746         dependency explicit.
747
748         save-cwd: reduce default dependency
749         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
750         * lib/save-cwd.c: Update comments.
751         * NEWS: Document the semantic change.
752
753         getcwd: enhance tests
754         * tests/test-getcwd-lgpl.c: New file, taken from...
755         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
756         repeat long path stress tests from m4 probe.
757         * modules/getcwd-lgpl-tests: New module.
758         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
759         * m4/getcwd-abort-bug.m4: Update comment.
760         * m4/getcwd-path-max.m4: Likewise.
761
762         getcwd-lgpl: new module
763         * modules/getcwd-lgpl: New module.
764         * lib/getcwd-lgpl.c: New file.
765         * doc/posix-functions/getcwd.texi (getcwd): Document it.
766         * MODULES.html.sh (lacking POSIX:2008): Likewise.
767         * modules/getcwd (configure.ac): Set C witness.
768         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
769
770         getcwd: tweak comments
771         * m4/getcwd-abort-bug.m4: Fix comments.
772         * m4/getcwd-path-max.m4: Likewise.
773         * m4/getcwd.m4: Likewise.
774
775 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
776         and Eric Blake  <eblake@redhat.com>
777
778         mkstemp: replace if system version uses wrong permissions
779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
780         read/write mode bits set in file created by mkstemp.
781         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
782
783 2011-04-27  Eric Blake  <eblake@redhat.com>
784
785         passfd: avoid compiler warning
786         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
787         Reported by Laine Stump.
788
789 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
790
791         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
792         required by the NetBSD (and perhaps other 4.4BSD derived) join.
793
794 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
795         and Eric Blake  <eblake@redhat.com>
796
797         mkstemp: mention clean-temp module
798         * lib/mkstemp.c: Add comment.
799         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
800
801 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
802
803         inttypes: also provide default values for 32-bit tests
804         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
805         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
806
807 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
808
809         strtoumax: remove dependency on strtoimax
810         This is like the strtoull change of yesterday.
811         * modules/strtoumax (Files): Add lib/strtoimax.c.
812         (Depends-on): Remove strtoimax and add verify.
813
814         inttypes-incomplete: new module
815         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
816         all but the PRI* and SCN* parts of gl_INTTYPES_H.
817         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
818         of gl_INTTYPES_H.
819         (gl_INTTYPES_H): Rewrite in terms of these new macros.
820         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
821         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
822         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
823         * modules/strtoumax, modules/xstrtol (Depends-on):
824         Depend on inttypes-incomplete, not inttypes.
825         * modules/inttypes-incomplete: New module, containing the contents
826         of the old modules/inttypes module, except that the Files: section
827         omits m4/inttypes-pri.m4, and the configure.ac section invokes
828         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
829         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
830         (Depends-on): Depend only on inttypes-incomplete.
831         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
832
833         inttypes: omit now-redundant strtoimax and strtoumax work
834         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
835         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
836
837         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
838         This supports apps that need pointers to strtoimax and strtoumax,
839         and ports to HP-UX 11.00 64.bit, which has macros that expand to
840         nonexistent functions.  See
841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
842         et seq.
843         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
844         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
845         a macro.
846         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
847
848 2011-04-25  Simon Josefsson  <simon@josefsson.org>
849
850         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
851
852 2011-04-25  Bruno Haible  <bruno@clisp.org>
853
854         strtol, strtoul: Mark modules as obsolete.
855         * modules/strtol (Status, Notice): New sections.
856         * modules/strtoul (Status, Notice): New sections.
857
858 2011-04-25  Bruno Haible  <bruno@clisp.org>
859
860         strtod: Remove check for strtod, unless supporting old platforms.
861         * modules/strtod-obsolete: New file.
862         * m4/strtod-obsolete.m4: New file.
863         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
864         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
865         * modules/strtod (Depends-on): Add strtod-obsolete.
866         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
867
868 2011-04-25  Bruno Haible  <bruno@clisp.org>
869
870         strcase: Make module obsolete.
871         * modules/strcase (Status, Notice): New sections.
872
873 2011-04-25  Bruno Haible  <bruno@clisp.org>
874
875         dup2: Remove check for dup2, unless supporting old obsolete platforms.
876         * modules/dup2-obsolete: New file.
877         * m4/dup2-obsolete.m4: New file.
878         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
879         gl_FUNC_DUP2_OBSOLETE is not also defined.
880         * modules/dup2 (Depends-on): Add dup2-obsolete.
881         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
882
883 2011-04-25  Bruno Haible  <bruno@clisp.org>
884
885         strnlen: Avoid memchr related link error on old obsolete platforms.
886         * modules/memchr-obsolete: New file.
887         * m4/memchr-obsolete.m4: New file.
888         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
889         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
890         * modules/memchr (Depends-on): Add memchr-obsolete.
891         * modules/strnlen (Depends-on): Likewise.
892         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
893
894 2011-04-25  Jim Meyering  <meyering@redhat.com>
895
896         maint.mk: makefile_at_at_check extend and clean up
897         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
898         in addition to */Makefile.am.
899         Exempt legitimate uses of @VAR@ notation, e.g.,
900         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
901         Remove obsolete coreutils-specific comment.
902         Prompted by discussion here:
903         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
904
905 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
906
907         strtoul: remove dependency on strtol
908         This is so that 'configure' need not check for strtol merely because
909         the application needs strtoul.
910         * modules/strtoul (Files): Add lib/strtol.c.
911         (Depends-on): Remove strtol.
912
913         strtoull: remove dependency on strtoul
914         This is like the strtoll change.
915         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
916         (Depends-on): Remove strtoul.
917
918         strtoll: remove dependency on strtol
919         This is so that 'configure' need not check for strtol merely because
920         the application needs strtoll.
921         * modules/strtoll (Files): Add lib/strtol.c.
922         (Depends-on): Remove strtol.
923
924 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
925
926         inttypes: Move some configure check to module 'imaxdiv'.
927         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
928         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
929         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
930
931 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
932
933         inttypes: Move some configure check to module 'imaxabs'.
934         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
935         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
936         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
937
938 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
939
940         inttypes: Remove configure tests that are not needed since 2009-12-31.
941         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
942         gl_cv_header_working_inttypes_h.
943
944 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
945
946         * modules/strnlen (Depends-on): Remove memchr.
947         The strnlen implementation doesn't need the memchr module's fixes; see
948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
949
950         strtol: remove dependency on wchar
951         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
952         * modules/strtol (Depends-on): Remove wchar.
953
954 2011-04-21  Eric Blake  <eblake@redhat.com>
955
956         passfd: fix test regression on Linux
957         * modules/passfd-tests (configure.ac): Correct socketpair check.
958
959         passfd: speed up configure and drop unused code
960         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
961         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
962         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
963         Instead of probing at configure for unix_scm_rights_bsd44_way,
964         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
965         check to a struct member probe.
966         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
967         (sendfd, recvfd): Update preprocessor checks.
968         * modules/passfd (Files): Reflect rename, and drop unused file.
969         (Depends-on): Drop unused dependency.
970
971         passfd: allow compilation on mingw
972         * modules/sys_socket (Depends-on): Add sys_uio.
973         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
974         iovec and a minimal struct msghdr.
975         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
976         * tests/test-sys_socket.c (main): Enhance test.
977         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
978         guaranteed to provide what we need.
979         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
980         * modules/passfd-tests (Depends-on): Add sys_wait.
981         * tests/test-passfd.c (main): Skip test on mingw, for now.
982         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
983         partial 'struct msghdr' implementation.
984
985         sys_uio: new module
986         * modules/sys_uio: New module.
987         * modules/sys_uio-tests: Likewise.
988         * lib/sys_uio.in.h: New file.
989         * m4/sys_uio_h.m4: Likewise.
990         * tests/test-sys_uio.c: Likewise.
991         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
992         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
993
994 2011-04-20  Jim Meyering  <meyering@redhat.com>
995
996         useless-if-before-free: avoid false-positive
997         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
998         disjunct so that it too requires a terminating ";".  Without that,
999         this script would identify as useless one statement from gcc that
1000         was not:
1001           if (aligned_ptr)
1002             free (((void **) aligned_ptr) [-1]);
1003
1004 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1005
1006         doc: update users.txt.
1007         * users.txt: Add barcode.
1008
1009 2011-04-19  Bruno Haible  <bruno@clisp.org>
1010
1011         ioctl: Remove link dependency on native Windows.
1012         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1013         (gl_close_fn, gl_ioctl_fn): New types.
1014         (struct fd_hook): Renamed from struct close_hook. Change type of
1015         private_close_fn field. Add private_ioctl_fn field.
1016         (close_hook_fn): Add parameter for primary close method.
1017         (execute_close_hooks, execute_all_close_hooks): Likewise.
1018         (ioctl_hook_fn): New type.
1019         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1020         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1021         argument.
1022         (unregister_fd_hook): Renamed from unregister_close_hook.
1023         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1024         Don't include <unistd.h>.
1025         (close): Remove undef.
1026         (anchor): Update.
1027         (execute_close_hooks): Add argument for primary close method.
1028         (execute_all_close_hooks): Likewise.
1029         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1030         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1031         argument. Allow each argument to be NULL.
1032         (unregister_fd_hook): Renamed from unregister_close_hook.
1033         * lib/close.c (rpl_close): Pass 'close' function pointer to
1034         execute_all_close_hooks.
1035         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1036         (primary_ioctl): New function.
1037         (ioctl): Don't call ioctlsocket here. Instead, call
1038         execute_all_ioctl_hooks.
1039         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1040         close method.
1041         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1042         (fd_sockets_hook): Renamed from close_sockets_hook.
1043         (gl_sockets_startup, gl_sockets_cleanup): Update.
1044         * modules/fd-hook: Renamed from modules/close-hook. Update.
1045         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1046         * modules/sockets (Depends-on): Likewise.
1047         * modules/ioctl (Depends-on): Add fd-hook.
1048         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1049         GNULIB_SOCKET.
1050
1051 2011-04-19  Bruno Haible  <bruno@clisp.org>
1052
1053         Move the support of O_NONBLOCK in open() to the 'open' module.
1054         * modules/nonblocking (Depends-on): Remove 'open'.
1055         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1056         gl_cv_have_open_O_NONBLOCK.
1057         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1058         O_NONBLOCK support.
1059         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1060
1061 2011-04-17  Bruno Haible  <bruno@clisp.org>
1062
1063         pipe2: Simplify code.
1064         * lib/pipe2.c (pipe2): Reduce code duplication.
1065
1066 2011-04-17  Bruno Haible  <bruno@clisp.org>
1067
1068         nonblocking: Add comment.
1069         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1070
1071 2011-04-17  Bruno Haible  <bruno@clisp.org>
1072
1073         nonblocking: Add tests for sockets.
1074         * tests/test-nonblocking-socket.sh: New file.
1075         * tests/test-nonblocking-socket-main.c: New file.
1076         * tests/test-nonblocking-socket-child.c: New file.
1077         * tests/test-nonblocking-socket.h: New file.
1078         * tests/socket-server.h: New file.
1079         * tests/socket-client.h: New file.
1080         * modules/nonblocking-socket-tests: New file.
1081         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1082
1083 2011-04-17  Bruno Haible  <bruno@clisp.org>
1084
1085         nonblocking: Add tests for pipes.
1086         * tests/test-nonblocking-pipe.sh: New file.
1087         * tests/test-nonblocking-pipe-main.c: New file.
1088         * tests/test-nonblocking-pipe-child.c: New file.
1089         * tests/test-nonblocking-pipe.h: New file.
1090         * tests/test-nonblocking-writer.h: New file.
1091         * tests/test-nonblocking-reader.h: New file.
1092         * tests/test-nonblocking-misc.h: New file.
1093         * modules/nonblocking-pipe-tests: New file.
1094         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1095
1096 2011-04-16  Bruno Haible  <bruno@clisp.org>
1097
1098         gettext: Clarify the needed programmer actions.
1099         * modules/gettext (Notice): New field.
1100         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1101
1102 2011-04-16  Bruno Haible  <bruno@clisp.org>
1103
1104         strchrnul: Tweak last commit.
1105         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1106         bug.
1107         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1108         as in _GL_FUNCDECL_SYS.
1109         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1110         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1111
1112 2011-04-15  Eric Blake  <eblake@redhat.com>
1113
1114         strchrnul: work around cygwin bug
1115         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1116         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1118         * modules/string (Makefile.am): Substitute it.
1119         * lib/string.in.h (strchrnul): Use it.
1120
1121 2011-04-15  Bruno Haible  <bruno@clisp.org>
1122
1123         Don't require lib/stdio-write.c when only module 'stdio' is used.
1124         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1125         invocation.
1126         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1127
1128 2011-04-14  Bruno Haible  <bruno@clisp.org>
1129
1130         Support non-blocking pipe I/O in read() on native Windows.
1131         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1132         (read): New declaration.
1133         * lib/read.c: New file.
1134         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1135         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1136         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1137         vscanf): New declarations.
1138         * lib/stdio-read.c: New file.
1139         * m4/read.m4: New file.
1140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1141         REPLACE_READ.
1142         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1143         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1144         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1145         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1146         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1147         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1148         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1149         * modules/read: New file.
1150         * modules/nonblocking (Files): Add lib/stdio-read.c.
1151         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1152         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1153         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1154         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1155         * modules/pread (Depends-on): Add read.
1156         * modules/safe-read (Depends-on): Likewise.
1157         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1158         gets, scanf, vfscanf, vscanf): Verify signatures.
1159         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1160         problem with non-blocking pipes.
1161         * doc/posix-functions/fgetc.texi: Likewise.
1162         * doc/posix-functions/fgets.texi: Likewise.
1163         * doc/posix-functions/fread.texi: Likewise.
1164         * doc/posix-functions/fscanf.texi: Likewise.
1165         * doc/posix-functions/getc.texi: Likewise.
1166         * doc/posix-functions/getchar.texi: Likewise.
1167         * doc/posix-functions/gets.texi: Likewise.
1168         * doc/posix-functions/scanf.texi: Likewise.
1169         * doc/posix-functions/vfscanf.texi: Likewise.
1170         * doc/posix-functions/vscanf.texi: Likewise.
1171
1172 2011-04-14  Bruno Haible  <bruno@clisp.org>
1173
1174         Support non-blocking pipe I/O in write() on native Windows.
1175         * lib/write.c (rpl_write): Split a write request that failed merely
1176         because the byte count was larger than the pipe buffer's size.
1177         * doc/posix-functions/write.texi: Mention the problem with large byte
1178         counts.
1179
1180 2011-04-14  Bruno Haible  <bruno@clisp.org>
1181
1182         wchar: Ensure that wchar_t gets defined on uClibc.
1183         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1184         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1185
1186 2011-04-13  Bruno Haible  <bruno@clisp.org>
1187
1188         safe-write, full-read: Avoid unnecessary compilation units.
1189         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1190         (Depends-on): Remove safe-read. Add ssize_t.
1191         * modules/full-read (Files): Add lib/full-write.c.
1192         (Depends-on): Add full-write.
1193
1194 2011-04-13  Bruno Haible  <bruno@clisp.org>
1195
1196         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1197         * modules/pwrite (Depends-on): Add 'write'.
1198
1199 2011-04-13  Bruno Haible  <bruno@clisp.org>
1200
1201         Support non-blocking pipe I/O in write() on native Windows.
1202         * lib/unistd.in.h (write): Enable replacement also if
1203         GNULIB_UNISTD_H_NONBLOCKING is 1.
1204         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1205         (rpl_write): When failing to write on a non-blocking pipe, change
1206         errno from ENOSPC to EAGAIN.
1207         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1208         putchar, puts, vfprintf, vprintf): Enable replacement also if
1209         GNULIB_STDIO_H_NONBLOCKING is 1.
1210         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1211         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1212         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1213         CALL_WITH_SIGPIPE_EMULATION.
1214         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1215         * m4/nonblocking.m4: New file.
1216         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1217         for non-blocking I/O support.
1218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1219         GNULIB_UNISTD_H_NONBLOCKING.
1220         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1221         required for non-blocking I/O support.
1222         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1223         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1224         lib/stdio-write.c, m4/asm-underscore.m4.
1225         (Depends-on): Add stdio, unistd.
1226         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1227         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1228         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1229         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1230         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1231         problem with non-blocking pipes.
1232         * doc/posix-functions/fputc.texi: Likewise.
1233         * doc/posix-functions/fputs.texi: Likewise.
1234         * doc/posix-functions/fwrite.texi: Likewise.
1235         * doc/posix-functions/printf.texi: Likewise.
1236         * doc/posix-functions/putc.texi: Likewise.
1237         * doc/posix-functions/putchar.texi: Likewise.
1238         * doc/posix-functions/puts.texi: Likewise.
1239         * doc/posix-functions/vfprintf.texi: Likewise.
1240         * doc/posix-functions/vprintf.texi: Likewise.
1241         * doc/posix-functions/write.texi: Likewise.
1242
1243 2011-04-10  Jim Meyering  <meyering@redhat.com>
1244
1245         maint.mk: prohibit doubled words
1246         Detect them also when they're separated by a newline.
1247         There are 3 ways to customize it:
1248           - disable the test on a per file basis, as usual with rules using
1249             $(VC_LIST_EXCEPT)
1250           - replace the default doubled-word-selecting regexp (affects all files)
1251           - ignore a particular file-vs-doubled-word match
1252         I nearly used that last one to ignore the "is is" match in
1253         coreutils' NEWS file, since the text was "ls -is is ..."
1254         To do that, I would have added this line to cfg.mk:
1255           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1256         but it would have ignored any "is is" match in NEWS.
1257         Low probability, but still...
1258         Instead, I changed the text, slightly:
1259           -  ls -is is now consistent with ls -lis in ignoring values returned
1260           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1261         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1262         (prohibit_doubled_word_): Define.
1263         (sc_prohibit_doubled_word): New rule.
1264         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1265
1266 2011-04-10  Jim Meyering  <meyering@redhat.com>
1267
1268         maint: fix doubled-word typo in comment
1269         * m4/gethostname.m4: s/is is/it is/
1270         * m4/getdomainname.m4: Likewise.
1271
1272 2011-04-10  Jim Meyering  <meyering@redhat.com>
1273
1274         maint: remove doubled word: s/it it/it/
1275         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1276
1277 2011-04-10  Jim Meyering  <meyering@redhat.com>
1278
1279         maint.mk: remove useless semicolon and backslash
1280         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1281         semicolon and backslash.
1282
1283 2011-04-10  Bruno Haible  <bruno@clisp.org>
1284
1285         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1286         * modules/stdint-tests (Depends-on): Add wchar.
1287
1288 2011-04-10  Jim Meyering  <meyering@redhat.com>
1289
1290         maint: remove doubled words in comments, e.g., s/a a/a/
1291         * lib/strptime.c (day_of_the_week): s/the the/the/
1292         * tests/test-chown.h (test_chown): s/a a/a/
1293
1294         test-chown.h: correct a cast
1295         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1296         when the destination is a stat.st_gid.
1297
1298 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1299
1300         getaddrinfo: Fix test for sa_len member.
1301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1302         include <sys/types.h> before <sys/socket.h>.
1303
1304 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1305
1306         maint: change "can not" to "cannot"
1307         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1308         boundaries.
1309
1310 2011-04-09  Jim Meyering  <meyering@redhat.com>
1311
1312         maint: change "a a" to "a"
1313         * tests/test-lchown.h (test_lchown): s/a a/a/
1314
1315         maint.mk: prohibit \<the the\>
1316         * top/maint.mk (sc_prohibit_the_the): New rule.
1317
1318         maint: fix "the the" in comment
1319         * lib/count-one-bits.h: s/the the/the/
1320
1321         maint: change "can not" to "cannot"
1322         But do not change the occurrences in maintain.texi or in
1323         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1324         * doc/gnulib-tool.texi: s/can not/cannot/
1325         * doc/posix-functions/accept.texi (accept): Likewise.
1326         * doc/posix-functions/socket.texi (socket): Likewise.
1327         * lib/mbrtowc.c: Likewise.
1328
1329         maint.mk: prohibit use of "can not"
1330         * top/maint.mk (sc_prohibit_can_not): New rule.
1331         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1332
1333 2011-04-09  Bruno Haible  <bruno@clisp.org>
1334
1335         careadlinkat: Guard against misuse of careadlinkatcwd.
1336         * lib/careadlinkat.c: Include <stdlib.h>.
1337         (careadlinkatcwd): Check that the fd argument is as expected.
1338
1339 2011-04-09  Bruno Haible  <bruno@clisp.org>
1340
1341         careadlinkat: Use common coding style.
1342         * lib/careadlinkat.c: Move gnulib includes after system includes.
1343
1344 2011-04-09  Bruno Haible  <bruno@clisp.org>
1345
1346         careadlinkat: Clarify specification.
1347         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1348         (careadlinkatcwd): Add comment.
1349         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1350
1351 2011-04-09  Bruno Haible  <bruno@clisp.org>
1352
1353         areadlinkat: Avoid link error on many platforms.
1354         * modules/areadlinkat (Depends-on): Add areadlink.
1355
1356 2011-04-09  Bruno Haible  <bruno@clisp.org>
1357
1358         allocator, careadlinkat: Fix double-inclusion guard.
1359         * lib/allocator.h: Fix double-inclusion guard.
1360         * lib/careadlinkat.h: Likewise.
1361
1362 2011-04-09  Bruno Haible  <bruno@clisp.org>
1363
1364         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1365         * lib/relocwrapper.c: Update dependencies hierarchy.
1366         * build-aux/install-reloc: Update list of files to be compiled.
1367         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1368         lib/allocator.[hc].
1369
1370 2011-04-08  Eric Blake  <eblake@redhat.com>
1371
1372         strftime: silence gnulib-tool warning
1373         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1374
1375 2011-04-08  Bruno Haible  <bruno@clisp.org>
1376
1377         verify: Fix syntax error with GCC 4.6 in C++ mode.
1378         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1379         (HAVE_STATIC_ASSERT): New macro.
1380         (verify_true, verify): Use 'static_assert' if it is supported and
1381         '_Static_assert' is not supported.
1382
1383 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1384
1385         allocator: New module.
1386         * modules/allocator, lib/allocator.c: New files.
1387         * lib/allocator.h (stdlib_allocator): New decl.
1388         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1389         Remove.  Do not include <stdlib.h>.
1390         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1391         * modules/careadlinkat (Files): Remove lib/allocator.h.
1392         (Depends-on): Add allocator.
1393
1394         stdlib: let modules use system malloc, realloc
1395         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1396         if !_GL_USE_STDLIB_ALLOC.
1397         (malloc, realloc): Limit this change to a smaller scope.
1398
1399         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1400         (malloc, realloc): Don't #undef; no longer needed.
1401         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1402         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1403         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1404         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1405         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1406         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1407         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1408         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1409
1410         careadlinkat: rename members to avoid problem
1411         * lib/allocator.h (struct allocator): Rename members from
1412         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1413         and realloc are #define'd.  Reported by Eric Blake in
1414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1415         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1416
1417 2011-04-08  Eric Blake  <eblake@redhat.com>
1418
1419         nonblocking: reduce dependency
1420         * tests/test-nonblocking.c: Only test sockets when in use.
1421         * modules/nonblocking-tests (Depends-on): Drop socket.
1422         (Makefile.am): Link even if sockets are not present.
1423         * modules/pipe2-tests (Makefile.am): Likewise.
1424         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1425
1426         pipe2: fix O_NONBLOCK support on mingw
1427         * modules/pipe2 (Depends-on): Add nonblocking.
1428         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1429         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1430         * tests/test-nonblocking.c (main): Likewise.
1431         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1432
1433         fcntl-h: fix O_ACCMODE on cygwin
1434         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1435         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1436
1437         pipe-filter: drop O_NONBLOCK workarounds
1438         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1439         * modules/pipe-filter-ii (Depends-on): Likewise.
1440         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1441
1442         nonblocking: provide O_NONBLOCK for mingw
1443         * modules/nonblocking (Depends-on): Add open.
1444         (configure.ac): Set new witness macro.
1445         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1446         * modules/fcntl-h (Makefile.am): Substitute it.
1447         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1448         nonblocking module is in use.
1449         * lib/nonblocking.c: Adjust portability test.
1450         * lib/open.c (open): Don't let native open see gnulib flag.
1451         * tests/test-fcntl-h.c (main): Enhance test.
1452         * tests/test-open.h (test_open): Likewise.
1453         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1454
1455         careadlinkat: fix compilation error on mingw
1456         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1457         within struct allocator.
1458
1459 2011-04-06  Eric Blake  <eblake@redhat.com>
1460
1461         binary-io: relicense under LGPLv2+
1462         * modules/binary-io (License): Relax to LGPLv2+.
1463         Requested for libvirt, and required by pipe2.
1464
1465 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         verify: use _Static_assert if available
1468         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1469         (verify_true, verify): Use it if available.  This generates better
1470         diagnostics with GCC 4.6.0 and later.
1471
1472 2011-04-05  Bruno Haible  <bruno@clisp.org>
1473
1474         Remove leftover generated .h files after config.status changed.
1475
1476         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1477         GL_GENERATE_ALLOCA_H.
1478         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1479         GL_GENERATE_ALLOCA_H evaluates to false.
1480
1481         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1482         GL_GENERATE_ARGZ_H.
1483         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1484         evaluates to false.
1485
1486         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1487         GL_GENERATE_BYTESWAP_H.
1488         * modules/byteswap (Makefile.am): Remove byteswap.h if
1489         GL_GENERATE_BYTESWAP_H evaluates to false.
1490
1491         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1492         GL_GENERATE_ERRNO_H.
1493         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1494         evaluates to false.
1495
1496         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1497         GL_GENERATE_FLOAT_H.
1498         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1499         evaluates to false.
1500
1501         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1502         GL_GENERATE_FNMATCH_H.
1503         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1504         GL_GENERATE_FNMATCH_H evaluates to false.
1505
1506         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1507         GL_GENERATE_GLOB_H.
1508         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1509         evaluates to false.
1510
1511         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1512         automake conditional GL_GENERATE_ICONV_H.
1513         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1514         evaluates to false.
1515
1516         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1517         GL_GENERATE_NETINET_IN_H.
1518         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1519         GL_GENERATE_NETINET_IN_H evaluates to false.
1520
1521         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1522         conditional GL_GENERATE_PTHREAD_H.
1523         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1524         * modules/pthread (Makefile.am): Remove pthread.h if
1525         GL_GENERATE_PTHREAD_H evaluates to false.
1526
1527         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1528         GL_GENERATE_SCHED_H.
1529         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1530         evaluates to false.
1531
1532         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1533         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1534         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1535         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1536
1537         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1538         GL_GENERATE_STDARG_H.
1539         * modules/stdarg (Makefile.am): Remove stdarg.h if
1540         GL_GENERATE_STDARG_H evaluates to false.
1541
1542         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1543         GL_GENERATE_STDBOOL_H.
1544         * modules/stdbool (Makefile.am): Remove stdbool.h if
1545         GL_GENERATE_STDBOOL_H evaluates to false.
1546
1547         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1548         conditional GL_GENERATE_STDDEF_H.
1549         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1550         * modules/stddef (Makefile.am): Remove stddef.h if
1551         GL_GENERATE_STDDEF_H evaluates to false.
1552
1553         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1554         GL_GENERATE_STDINT_H.
1555         * modules/stdint (Makefile.am): Remove stdint.h if
1556         GL_GENERATE_STDINT_H evaluates to false.
1557
1558         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1559         GL_GENERATE_SYSEXITS_H.
1560         * modules/sysexits (Makefile.am): Remove sysexits.h if
1561         GL_GENERATE_SYSEXITS_H evaluates to false.
1562
1563         Reported by Karl Berry and Ralf Wildenhues.
1564
1565 2011-04-05  Bruno Haible  <bruno@clisp.org>
1566
1567         Ensure to rebuild generated .h files when config.status has changed.
1568         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1569         config.status.
1570         * modules/ctype (Makefile.am): Likewise.
1571         * modules/dirent (Makefile.am): Likewise.
1572         * modules/errno (Makefile.am): Likewise.
1573         * modules/fcntl-h (Makefile.am): Likewise.
1574         * modules/float (Makefile.am): Likewise.
1575         * modules/getopt-posix (Makefile.am): Likewise.
1576         * modules/glob (Makefile.am): Likewise.
1577         * modules/iconv-h (Makefile.am): Likewise.
1578         * modules/inttypes (Makefile.am): Likewise.
1579         * modules/langinfo (Makefile.am): Likewise.
1580         * modules/locale (Makefile.am): Likewise.
1581         * modules/math (Makefile.am): Likewise.
1582         * modules/netdb (Makefile.am): Likewise.
1583         * modules/netinet_in (Makefile.am): Likewise.
1584         * modules/poll-h (Makefile.am): Likewise.
1585         * modules/pthread (Makefile.am): Likewise.
1586         * modules/pty (Makefile.am): Likewise.
1587         * modules/sched (Makefile.am): Likewise.
1588         * modules/search (Makefile.am): Likewise.
1589         * modules/selinux-h (Makefile.am): Likewise.
1590         * modules/signal (Makefile.am): Likewise.
1591         * modules/spawn (Makefile.am): Likewise.
1592         * modules/stdarg (Makefile.am): Likewise.
1593         * modules/stdbool (Makefile.am): Likewise.
1594         * modules/stddef (Makefile.am): Likewise.
1595         * modules/stdint (Makefile.am): Likewise.
1596         * modules/stdio (Makefile.am): Likewise.
1597         * modules/stdlib (Makefile.am): Likewise.
1598         * modules/string (Makefile.am): Likewise.
1599         * modules/strings (Makefile.am): Likewise.
1600         * modules/sys_file (Makefile.am): Likewise.
1601         * modules/sys_ioctl (Makefile.am): Likewise.
1602         * modules/sys_select (Makefile.am): Likewise.
1603         * modules/sys_socket (Makefile.am): Likewise.
1604         * modules/sys_stat (Makefile.am): Likewise.
1605         * modules/sys_time (Makefile.am): Likewise.
1606         * modules/sys_times (Makefile.am): Likewise.
1607         * modules/sys_utsname (Makefile.am): Likewise.
1608         * modules/sys_wait (Makefile.am): Likewise.
1609         * modules/sysexits (Makefile.am): Likewise.
1610         * modules/termios (Makefile.am): Likewise.
1611         * modules/time (Makefile.am): Likewise.
1612         * modules/unistd (Makefile.am): Likewise.
1613         * modules/wchar (Makefile.am): Likewise.
1614         * modules/wctype-h (Makefile.am): Likewise.
1615         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1616
1617 2011-04-05  Bruno Haible  <bruno@clisp.org>
1618
1619         pipe2: Relicense under LGPLv2+.
1620         * modules/pipe2 (License): Change to LGPLv2+.
1621         Requested by Eric Blake, for libvirt.
1622
1623 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1624
1625         bootstrap: compute gnulib_extra_files after updating build_aux
1626         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1627         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1628
1629 2011-04-05  Eric Blake  <eblake@redhat.com>
1630
1631         bootstrap: preserve git whitelist item sorting
1632         * build-aux/bootstrap (sort_patterns): New function.
1633         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1634
1635 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1636
1637         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1638         sc_space_tab check.
1639
1640 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         areadlink, areadlinkat: rewrite in terms of careadlinkat
1643         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1644         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1645         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1646         (malloc, realloc): Remove #undefs.
1647         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1648         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1649         readlink, ssize_t, stdint, unistd.
1650         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1651         areadlink, stdint.
1652
1653         careadlinkat: new module
1654         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1655         * modules/careadlinkat: New files, written by me with
1656         a review and feedback from Ben Pfaff in
1657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1658
1659 2011-04-01  Bruno Haible  <bruno@clisp.org>
1660
1661         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1662         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1663         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1664         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1665         Reported by Bruce Korb <bruce.korb@gmail.com>.
1666
1667 2011-04-01  Bruno Haible  <bruno@clisp.org>
1668
1669         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1670         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1671         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1672         * modules/wcpcpy (Depends-on): Add extensions.
1673         * modules/wcpncpy (Depends-on): Likewise.
1674         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1675         systems.
1676         * doc/posix-functions/wcpncpy.texi: Likewise.
1677         * doc/posix-functions/wcwidth.texi: Likewise.
1678
1679 2011-03-31  Eric Blake  <eblake@redhat.com>
1680
1681         nonblocking: fix mingw test failures
1682         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1683         non-blocking flag on regular file.
1684         (get_nonblocking_flag): Set errno on invalid fd.
1685         * tests/test-nonblocking.c (main): Avoid test failure on
1686         directories if fchdir is not active.
1687         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1688
1689 2011-03-31  Bruno Haible  <bruno@clisp.org>
1690
1691         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1692         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1693         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1694         Reported by Simon Josefsson <simon@josefsson.org>.
1695
1696 2011-03-31  Bruno Haible  <bruno@clisp.org>
1697         and Eric Blake  <eblake@redhat.com>
1698
1699         nonblocking: new module
1700         * modules/nonblocking: New module.
1701         * modules/nonblocking-tests: Likewise.
1702         * lib/nonblocking.h: New file.
1703         * lib/nonblocking.c: Likewise.
1704         * tests/test-nonblocking.c: New test.
1705         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1706
1707 2011-03-30  Bruno Haible  <bruno@clisp.org>
1708
1709         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1710         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1711         instead of 'printf' format for GCC >= 4.4.
1712         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1713         (fprintf, printf, vfprintf, vprintf): Declare with
1714         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1715         the system's vfprintf() function.
1716         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1717
1718 2011-03-30  Eric Blake  <eblake@redhat.com>
1719
1720         passfd: fix scoping bug
1721         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1722         before sendmsg/recvmsg.
1723
1724         passfd: standardize coding conventions
1725         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1726         can be learned at compile time.
1727         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1728         ifdefs.
1729         (sendfd, recvfd): Follow gnulib code conventions.
1730
1731         passfd: fix incorrect sendmsg arguments
1732         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1733         incorrect msg_controllen value.
1734         * modules/passfd-tests (Depends-on): Check for alarm.
1735         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1736         Reported by Bastien ROUCARIES.
1737
1738 2011-03-30  Bruno Haible  <bruno@clisp.org>
1739
1740         c-strcasestr: Relicense under LGPLv2+.
1741         * modules/c-strcasestr (License): Change to LGPLv2+.
1742         Requested by Eric Blake, for libvirt.
1743
1744 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1745
1746         * users.txt: Add libidn2.  Fix libtasn1 link.
1747
1748 2011-03-30  Jim Meyering  <meyering@redhat.com>
1749
1750         tests: readlink* ("",... fails with EINVAL on newer kernels
1751         readlink and readlinkat have typically failed with ENOENT for
1752         the invalid, empty file name,  "".  However, with the advent
1753         of linux-2.6.39, they fail with EINVAL.
1754         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1755         when operating on the empty file name.
1756         * tests/test-readlink.h (test_readlink): Likewise.
1757
1758 2011-03-29  Bruno Haible  <bruno@clisp.org>
1759
1760         Relicense some modules under LGPLv2+, for libidn2.
1761         * modules/array-mergesort (License): Change to LGPLv2+.
1762         * modules/c-strcaseeq (License): Likewise.
1763         * modules/striconveh (License): Likewise.
1764         * modules/striconveha (License): Likewise.
1765         * modules/uniconv/base (License): Likewise.
1766         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1767         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1768         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1769         * modules/unictype/base (License): Likewise.
1770         * modules/unictype/bidiclass-of (License): Likewise.
1771         * modules/unictype/category-M (License): Likewise.
1772         * modules/unictype/category-none (License): Likewise.
1773         * modules/unictype/category-of (License): Likewise.
1774         * modules/unictype/category-test (License): Likewise.
1775         * modules/unictype/category-test-withtable (License): Likewise.
1776         * modules/unictype/combining-class (License): Likewise.
1777         * modules/unictype/joiningtype-of (License): Likewise.
1778         * modules/unictype/scripts (License): Likewise.
1779         * modules/uninorm/base (License): Likewise.
1780         * modules/uninorm/canonical-decomposition (License): Likewise.
1781         * modules/uninorm/composition (License): Likewise.
1782         * modules/uninorm/decompose-internal (License): Likewise.
1783         * modules/uninorm/decomposition-table (License): Likewise.
1784         * modules/uninorm/nfc (License): Likewise.
1785         * modules/uninorm/nfd (License): Likewise.
1786         * modules/uninorm/u32-normalize (License): Likewise.
1787         * modules/unistr/base (License): Likewise.
1788         * modules/unistr/u32-cpy (License): Likewise.
1789         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1790         * modules/unistr/u32-to-u8 (License): Likewise.
1791         * modules/unistr/u32-uctomb (License): Likewise.
1792         * modules/unistr/u8-check (License): Likewise.
1793         * modules/unistr/u8-mblen (License): Likewise.
1794         * modules/unistr/u8-mbtouc (License): Likewise.
1795         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1796         * modules/unistr/u8-mbtoucr (License): Likewise.
1797         * modules/unistr/u8-prev (License): Likewise.
1798         * modules/unistr/u8-strlen (License): Likewise.
1799         * modules/unistr/u8-to-u32 (License): Likewise.
1800         * modules/unistr/u8-uctomb (License): Likewise.
1801         * modules/unitypes (License): Likewise.
1802         Requested by Simon Josefsson.
1803
1804 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1805
1806         lib-symbol-visibility: Add a notice.
1807         * modules/lib-symbol-visibility (Notice): New field.
1808
1809 2011-03-29  Bruno Haible  <bruno@clisp.org>
1810
1811         getaddrinfo: Doc fix.
1812         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1813         section "fixed in Gnulib".
1814
1815 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1816
1817         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1818         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1819
1820 2011-03-26  Bruno Haible  <bruno@clisp.org>
1821
1822         unictype/property-byname: Reduce the number of load-time relocations.
1823         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1824         (UC_PROPERTY_INDEX_*): New enumeration values.
1825         (uc_property_byname): Convert an index from the lookup table to an
1826         uc_property_t.
1827         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1828         values.
1829
1830 2011-03-26  Bruno Haible  <bruno@clisp.org>
1831
1832         unictype/property-byname: Allow omitted word separators and aliases.
1833         * lib/unictype/pr_byname.gperf: Add property names without word
1834         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1835         for 'space'.
1836
1837 2011-03-26  Bruno Haible  <bruno@clisp.org>
1838
1839         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1840         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1841         also hyphens to space.
1842         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1843         without spaces.
1844         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1845
1846 2011-03-26  Bruno Haible  <bruno@clisp.org>
1847
1848         unictype/joiningtype-byname: Recognize long names as well.
1849         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1850         a long name.
1851         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1852         unictype/joiningtype_byname.h.
1853         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1854         * lib/unictype/joiningtype_byname.gperf: New file.
1855         * modules/unictype/joiningtype-byname (Files): Add
1856         lib/unictype/joiningtype_byname.gperf.
1857         (Depends-on): Add gperf.
1858         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1859         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1860         long names.
1861
1862         Tests for module 'unictype/joiningtype-longname'.
1863         * modules/unictype/joiningtype-longname-tests: New file.
1864         * tests/unictype/test-joiningtype_longname.c: New file.
1865
1866         New module 'unictype/joiningtype-longname'.
1867         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1868         * lib/unictype/joiningtype_longname.c: New file.
1869         * modules/unictype/joiningtype-longname: New file.
1870         * modules/unictype/joiningtype-all (Depends-on): Add
1871         unictype/joiningtype-longname.
1872
1873 2011-03-26  Bruno Haible  <bruno@clisp.org>
1874
1875         unictype/bidiclass-byname: Recognize long names as well.
1876         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1877         name.
1878         * lib/unictype/bidi_byname.c: Include <string.h>,
1879         unictype/bidi_byname.h.
1880         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1881         * lib/unictype/bidi_byname.gperf: New file.
1882         * modules/unictype/bidiclass-byname (Files): Add
1883         lib/unictype/bidi_byname.gperf.
1884         (Depends-on): Add gperf.
1885         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1886         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1887         long names.
1888
1889         Tests for module 'unictype/bidiclass-longname'.
1890         * modules/unictype/bidiclass-longname-tests: New file.
1891         * tests/unictype/test-bidi_longname.c: New file.
1892
1893         New module 'unictype/bidiclass-longname'.
1894         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1895         * lib/unictype/bidi_longname.c: New file.
1896         * modules/unictype/bidiclass-longname: New file.
1897         * modules/unictype/bidiclass-all (Depends-on): Add
1898         unictype/bidiclass-longname.
1899
1900 2011-03-26  Bruno Haible  <bruno@clisp.org>
1901
1902         unictype/bidi*: Rename modules.
1903         * modules/unictype/bidiclass-all: Renamed from
1904         modules/unictype/bidicategory-all.
1905         * modules/unictype/bidiclass-name: Renamed from
1906         modules/unictype/bidiclass-name.
1907         (Description): Update.
1908         * modules/unictype/bidiclass-name-tests: Renamed from
1909         modules/unictype/bidicategory-name-tests.
1910         * modules/unictype/bidiclass-byname: Renamed from
1911         modules/unictype/bidicategory-byname.
1912         (Description): Update.
1913         * modules/unictype/bidiclass-byname-tests: Renamed from
1914         modules/unictype/bidicategory-byname-tests.
1915         * modules/unictype/bidiclass-of: Renamed from
1916         modules/unictype/bidicategory-of.
1917         (Description): Update.
1918         * modules/unictype/bidiclass-of-tests: Renamed from
1919         modules/unictype/bidicategory-of-tests.
1920         * modules/unictype/bidiclass-test: Renamed from
1921         modules/unictype/bidicategory-test.
1922         (Description): Update.
1923         * modules/unictype/bidiclass-test-tests: Renamed from
1924         modules/unictype/bidicategory-test-tests.
1925         * modules/unictype/bidicategory-all: New file, a simple redirection.
1926         * modules/unictype/bidicategory-name: Likewise.
1927         * modules/unictype/bidicategory-byname: Likewise.
1928         * modules/unictype/bidicategory-of: Likewise.
1929         * modules/unictype/bidicategory-test: Likewise.
1930         * modules/unictype/property-bidi-* (Dependencies): Update.
1931         * lib/unictype/bidi_*.c: Update comment.
1932
1933 2011-03-26  Bruno Haible  <bruno@clisp.org>
1934
1935         unictype/bidi*: Rename functions, part 2.
1936         * modules/unictype/bidicategory-name (configure.ac): Update required
1937         libunistring version.
1938         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1939
1940 2011-03-25  Bruno Haible  <bruno@clisp.org>
1941
1942         New module 'unictype/combining-class-all'.
1943         * modules/unictype/combining-class-all: New file.
1944
1945         Tests for module 'unictype/combining-class-byname'.
1946         * modules/unictype/combining-class-byname-tests: New file.
1947         * tests/unictype/test-combiningclass_byname.c: New file.
1948
1949         New module 'unictype/combining-class-byname'.
1950         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1951         * lib/unictype/combiningclass_byname.c: New file.
1952         * lib/unictype/combiningclass_byname.gperf: New file.
1953         * modules/unictype/combining-class-byname: New file.
1954
1955         Tests for module 'unictype/combining-class-longname'.
1956         * modules/unictype/combining-class-longname-tests: New file.
1957         * tests/unictype/test-combiningclass_longname.c: New file.
1958
1959         New module 'unictype/combining-class-longname'.
1960         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1961         * lib/unictype/combiningclass_longname.c: New file.
1962         * modules/unictype/combining-class-longname: New file.
1963
1964         Tests for module 'unictype/combining-class-name'.
1965         * modules/unictype/combining-class-name-tests: New file.
1966         * tests/unictype/test-combiningclass_name.c: New file.
1967
1968         New module 'unictype/combining-class-name'.
1969         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1970         * lib/unictype/combiningclass_name.c: New file.
1971         * modules/unictype/combining-class-name: New file.
1972
1973 2011-03-25  Bruno Haible  <bruno@clisp.org>
1974
1975         unictype/combining-class: Rename source files.
1976         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1977         of unictype/combining.h.
1978         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1979         Update.
1980         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1981         * modules/unictype/combining-class (Description): Fix.
1982         (Files, Makefile.am): Update.
1983         * tests/unictype/test-combiningclass.c: Renamed from
1984         tests/unictype/test-combining.c.
1985         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1986
1987 2011-03-25  Bruno Haible  <bruno@clisp.org>
1988
1989         unictype: Update list of canonical combining classes.
1990         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1991
1992 2011-03-25  Bruno Haible  <bruno@clisp.org>
1993
1994         unictype/category-byname: Recognize long names as well.
1995         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1996         a long name.
1997         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1998         unictype/categ_byname.h.
1999         (UC_CATEGORY_INDEX_*): New enumeration values.
2000         (uc_general_category_byname): Use uc_general_category_lookup and
2001         convert from index to value.
2002         * lib/unictype/categ_byname.gperf: New file.
2003         * modules/unictype/category-byname (Files): Add
2004         lib/unictype/categ_byname.gperf.
2005         (Depends-on): Add gperf.
2006         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2007         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2008         long names.
2009
2010         Tests for module 'unictype/category-longname'.
2011         * modules/unictype/category-longname-tests: New file.
2012         * tests/unictype/test-categ_longname.c: New file.
2013
2014         New module 'unictype/category-longname'.
2015         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2016         * lib/unictype/categ_longname.c: New file.
2017         * modules/unictype/category-longname: New file.
2018         * modules/unictype/category-all (Depends-on): Add it.
2019
2020 2011-03-25  Bruno Haible  <bruno@clisp.org>
2021
2022         Tests for module 'unictype/category-LC'.
2023         * modules/unictype/category-LC-tests: New file.
2024         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2025
2026         New module 'unictype/category-LC'.
2027         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2028         (UC_CATEGORY_LC): New declaration.
2029         (UC_CASED_LETTER): New macro.
2030         * lib/gen-uni-tables.c (is_category_LC): New function.
2031         (output_categories): Also handle category LC.
2032         (UC_CATEGORY_MASK_LC): New enumeration value.
2033         (general_category_byname): Also handle category LC.
2034         * lib/unictype/categ_LC.c: New file.
2035         * lib/unictype/categ_LC.h: New file, automatically generated.
2036         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2037         category LC.
2038         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2039         * modules/unictype/category-LC: New file.
2040         * modules/unictype/category-byname (Depends-on): Add
2041         unictype/category-LC.
2042         * modules/unictype/category-all (Depends-on): Likewise.
2043
2044 2011-03-25  Eric Blake  <eblake@redhat.com>
2045
2046         xmalloc: revert yesterday's regression
2047         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2048         realloc's underlying behavior (allowing allocation of zero-size
2049         objects, especially if malloc-gnu is also in use).
2050
2051 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2052
2053         maint.mk: add missing version to VC-tag
2054         * top/maint.mk: git tag was missing actual tag name; add it.
2055
2056         valgrind: do leak checking, and exit with code 1 on error (not 0)
2057         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2058         to VALGRIND.
2059
2060 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2061
2062         posix-modules: say what it does.
2063         * posix-modules: Add a line to the --help output saying what it does.
2064
2065 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2066
2067         xmalloc: Do not leak if underlying realloc is C99 compatible.
2068         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2069         This avoids a leak on C99-based systems.  See
2070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2071
2072 2011-03-24  Eric Blake  <eblake@redhat.com>
2073
2074         realloc: document portability problem
2075         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2076         passing 0 size to realloc.
2077
2078 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2079
2080         doc: update users.txt
2081         * users.txt: Add cvsps, tmpwatch
2082
2083 2011-03-23  Matt Rice  <ratmice@gmail.com>
2084
2085         doc: update users.txt
2086         * users.txt: Add gdb.
2087
2088 2011-03-23  Jim Meyering  <meyering@redhat.com>
2089
2090         doc: update users.txt
2091         Looking through matches up to the following URL (there are still
2092         several more pages), I found several projects that use gnulib:
2093         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2094         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2095         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2096
2097 2011-03-22  Bruno Haible  <bruno@clisp.org>
2098
2099         unictype/bidi*: Rename functions.
2100         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2101         uc_bidi_class, uc_is_bidi_class): New declarations.
2102         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2103         uc_bidi_category_byname.
2104         (uc_bidi_category_byname): New function.
2105         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2106         u_bidi_category_name.
2107         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2108         (uc_bidi_category_name): New function.
2109         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2110         uc_bidi_category.
2111         (uc_bidi_category): New function.
2112         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2113         uc_is_bidi_category. Invoke uc_bidi_class.
2114         (uc_is_bidi_category): New function.
2115         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2116         instead of uc_bidi_category_byname.
2117         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2118         instead of uc_bidi_category_name.
2119         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2120         uc_bidi_category.
2121         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2122         instead of uc_is_bidi_category.
2123
2124 2011-03-21  Bruno Haible  <bruno@clisp.org>
2125
2126         New module 'unictype/joininggroup-all'.
2127         * modules/unictype/joininggroup-all: New file.
2128
2129         Tests for module 'unictype/joininggroup-of'.
2130         * modules/unictype/joininggroup-of-tests: New file.
2131         * tests/unictype/test-joininggroup_of.c: New file.
2132         * tests/unictype/test-joininggroup_of.h: New file, automatically
2133         generated by gen-uni-tables.
2134
2135         New module 'unictype/joininggroup-of'.
2136         * modules/unictype/joininggroup-of: New file.
2137         * lib/unictype/joininggroup_of.c: New file.
2138         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2139         gen-uni-tables.
2140
2141         Tests for module 'unictype/joininggroup-byname'.
2142         * modules/unictype/joininggroup-byname-tests: New file.
2143         * tests/unictype/test-joininggroup_byname.c: New file.
2144
2145         New module 'unictype/joininggroup-byname'.
2146         * modules/unictype/joininggroup-byname: New file.
2147         * lib/unictype/joininggroup_byname.c: New file.
2148         * lib/unictype/joininggroup_byname.gperf: New file.
2149
2150         Tests for module 'unictype/joininggroup-name'.
2151         * modules/unictype/joininggroup-name-tests: New file.
2152         * tests/unictype/test-joininggroup_name.c: New file.
2153
2154         New module 'unictype/joininggroup-name'.
2155         * modules/unictype/joininggroup-name: New file.
2156         * lib/unictype/joininggroup_name.c: New file.
2157         * lib/unictype/joininggroup_name.h: New file.
2158
2159         New module 'unictype/joiningtype-all'.
2160         * modules/unictype/joiningtype-all: New file.
2161
2162         Tests for module 'unictype/joiningtype-of'.
2163         * modules/unictype/joiningtype-of-tests: New file.
2164         * tests/unictype/test-joiningtype_of.c: New file.
2165         * tests/unictype/test-joiningtype_of.h: New file, automatically
2166         generated by gen-uni-tables.
2167
2168         New module 'unictype/joiningtype-of'.
2169         * modules/unictype/joiningtype-of: New file.
2170         * lib/unictype/joiningtype_of.c: New file.
2171         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2172         gen-uni-tables.
2173
2174         Tests for module 'unictype/joiningtype-byname'.
2175         * modules/unictype/joiningtype-byname-tests: New file.
2176         * tests/unictype/test-joiningtype_byname.c: New file.
2177
2178         New module 'unictype/joiningtype-byname'.
2179         * modules/unictype/joiningtype-byname: New file.
2180         * lib/unictype/joiningtype_byname.c: New file.
2181
2182         Tests for module 'unictype/joiningtype-name'.
2183         * modules/unictype/joiningtype-name-tests: New file.
2184         * tests/unictype/test-joiningtype_name.c: New file.
2185
2186         New module 'unictype/joiningtype-name'.
2187         * modules/unictype/joiningtype-name: New file.
2188         * lib/unictype/joiningtype_name.c: New file.
2189
2190         unictype: Add support for Arabic shaping properties.
2191         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2192         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2193         declarations.
2194         (UC_JOINING_GROUP_*): New enumeration values.
2195         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2196         declarations.
2197         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2198         (unicode_joining_type): New variable.
2199         (UC_JOINING_GROUP_*): New enumeration values.
2200         (unicode_joining_group): New variable.
2201         (fill_arabicshaping, joining_type_as_c_identifier,
2202         output_joining_type_test, output_joining_type,
2203         joining_group_as_c_identifier, output_joining_group_test,
2204         output_joining_group): New functions.
2205         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2206         fill_arabicshaping and output_joining_type_test, output_joining_type,
2207         output_joining_group_test, output_joining_group.
2208         Reported by Simon Josefsson.
2209
2210 2011-03-21  Jim Meyering  <meyering@redhat.com>
2211
2212         strftime: fix a bug in yesterday's change
2213         * lib/strftime.c (add): Accommodate width's initial value of -1.
2214         Otherwise, nstrftime would copy uninitialized data into
2215         the result buffer.
2216
2217 2011-03-21  Jim Meyering  <meyering@redhat.com>
2218
2219         tests: add strftime-tests module
2220         * tests/test-strftime.c: New file.
2221         * modules/strftime-tests: New module.
2222
2223 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2224
2225         strftime: don't assume a byte count fits in 'int'
2226         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2227         found this problem by static analysis, using gcc -Wstrict-overflow
2228         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2229         on an integer overflow having undefined behavior, but it turns out
2230         that the argument is a size, which might not fit in 'int' anyway,
2231
2232 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2233
2234         stdio: don't require ignore_value around fwrite
2235
2236         This patch works around libc bug 11959
2237         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2238         Without this patch, applications must often write
2239         ignore_value (fwrite (...)) even though the ignore_value is
2240         not helpful here.  It's common to write many objects, using
2241         fwrite/printf/etc., and then use ferror to detect output error.
2242
2243         I considered making this patch optional, but decided against it,
2244         because libc is obviously being inconsistent here: there is no
2245         reason libc should insist that user code must inspect fwrite
2246         return's value without also insisting that it inspect printf's,
2247         putchar's, etc.  If user code wants to have a strict style where
2248         all these functions' values are checked (so that ferror need not
2249         be checked), we could add support for that style in a new gnulib
2250         module, but in the meantime it's better to be consistent and to
2251         support common usage.
2252
2253         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2254         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2255         that we are compiling in checking mode, and if not C++, and
2256         if not already wrapping fwrite for some other reason.
2257         (fwrite): #define to rpl_fwrite if the latter is defined.
2258
2259 2011-03-20  Bruno Haible  <bruno@clisp.org>
2260
2261         verror: Fix compilation error introduced on 2011-02-13.
2262         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2263         instead of __attribute__.
2264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2265
2266 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2267             Bruno Haible  <bruno@clisp.org>
2268
2269         socklen: do not depend on sys_socket
2270         While trying to modify Emacs to use gnulib's socklen module,
2271         I discovered a circular dependency: socklen depends on sys_socket
2272         and vice versa.  Emacs can use socklen, but it does not need
2273         sys_socket because it has its own substitute for sys/socket.h.
2274         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2275         gl_TYPE_SOCKLEN_T.
2276         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2277         gl_PREREQ_SYS_H_SOCKET.
2278         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2279         gl_PREREQ_SYS_H_SOCKET.
2280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2281         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2282         * modules/socklen (Depends-on): Do not depend on sys_socket.
2283         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2284
2285 2011-03-20  Jim Meyering  <meyering@redhat.com>
2286
2287         maint.mk: sort file names *after* new transformation
2288         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2289         prefix would have led to an unwarranted failure in GNU parted.
2290         Sort after that transformation.
2291
2292 2011-03-19  Jim Meyering  <meyering@redhat.com>
2293
2294         maint.mk: fix po-file syntax-check rule
2295         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2296         Patch by Bruno Haible.
2297
2298 2011-03-19  Bruno Haible  <bruno@clisp.org>
2299
2300         socklen: Update comment.
2301         * m4/socklen.m4: Update comment about platforms.
2302
2303 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2304             Bruno Haible  <bruno@clisp.org>
2305
2306         inet_ntop, inet_pton: Simplify.
2307         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2308         documented to provide socklen_t and we already depend on sys_socket.
2309         * modules/inet_pton (Depends-on): Likewise.
2310         * lib/arpa_inet.in.h: Adjust comment.
2311
2312 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2313             Bruno Haible  <bruno@clisp.org>
2314
2315         netdb: Simplify.
2316         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2317         documented to provide socklen_t and we already depend on sys_socket.
2318         * lib/netdb.in.h: Adjust comment.
2319
2320 2011-03-19  Bruno Haible  <bruno@clisp.org>
2321
2322         sys_socket, netdb: Document problem with socklen_t.
2323         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2324         platforms.
2325         * doc/posix-headers/netdb.texi: Likewise.
2326
2327 2011-03-18  Eric Blake  <eblake@redhat.com>
2328
2329         maint.mk: let po check work in VPATH build
2330         * top/maint.mk (po_file): Allow cfg.mk override.
2331         (sc_po_check): Allow VPATH use.
2332         Reported by Jiri Denemark.
2333
2334 2011-03-16  Jim Meyering  <meyering@redhat.com>
2335
2336         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2337         Before, you would have had to create one .x-sc_ file per rule in order
2338         to exempt offending files.  Now, you may instead use a Make variable --
2339         usually defined in cfg.mk -- whose name identifies the affected rule.
2340         * top/maint.mk (_sc_excl): Define.
2341         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2342         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2343
2344 2011-03-13  Bruno Haible  <bruno@clisp.org>
2345
2346         ignore-value tests: Avoid warnings.
2347         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2348         empty for gcc < 3.4.
2349
2350 2011-03-13  Bruno Haible  <bruno@clisp.org>
2351
2352         passfd: Fix link error on Solaris.
2353         * modules/passfd (Description): Correct.
2354         (Depends-on): Add socketlib.
2355         (Link): New section.
2356         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2357
2358 2011-03-13  Bruno Haible  <bruno@clisp.org>
2359
2360         passfd: Fix link error on AIX 5.2.
2361         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2362
2363 2011-03-13  Bruno Haible  <bruno@clisp.org>
2364
2365         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2366         * lib/sys_socket.in.h: Include <stddef.h>.
2367         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2368         CMSG_FIRSTHDR. Remove unused variable.
2369
2370 2011-03-13  Bruno Haible  <bruno@clisp.org>
2371
2372         passfd: Fix compilation error on OpenBSD.
2373         * lib/passfd.c: Include <sys/uio.h>.
2374
2375 2011-03-13  Bruno Haible  <bruno@clisp.org>
2376
2377         passfd test: Fix warnings.
2378         * tests/test-passfd.c: Include <sys/wait.h>.
2379         (main): Fix typo.
2380
2381 2011-03-13  Bruno Haible  <bruno@clisp.org>
2382
2383         passfd module, part 4, tweaks.
2384         * tests/test-passfd.c: Reorder includes.
2385         (main): Fix perror and printf calls.
2386
2387 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2388
2389         passfd module, part 4.
2390         * modules/passfd-tests: New file.
2391         * tests/test-passfd.c: New file.
2392
2393 2011-03-13  Jim Meyering  <meyering@redhat.com>
2394
2395         Makefile: rely on GNU make; derive syntax-check rule names
2396         Rather than requiring that each sc_ rule be listed as a dependent
2397         of "check", use features of GNU make to derive the list.
2398         * Makefile (syntax-check-rules): Define.
2399         (check): Depend on the new variable, not the hard-coded list.
2400
2401 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2402             Bruno Haible  <bruno@clisp.org>
2403
2404         passfd module, part 3.
2405         * lib/passfd.h (recvfd): Add a flags argument.
2406         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2407         (recvfd): Add a flags argument.
2408         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2409         exists.
2410         * modules/passfd (Depends-on): Add cloexec.
2411         Suggested by Eric Blake.
2412
2413 2011-03-13  Bruno Haible  <bruno@clisp.org>
2414
2415         passfd module, part 2, tweaks.
2416         * modules/passfd (Files): Reorder.
2417         (Depends-on): Remove errno.
2418         (Include): Remove <sys/socket.h>, <sys/un.h>.
2419         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2420         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2421         specification header. Include <sys/socket.h> always. Don't include
2422         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2423         (sendfd): Clarify that it sets errno when it fails.
2424         (recvfd): Fix specification.
2425
2426 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2427
2428         passfd module, part 2.
2429         * modules/passfd: New file.
2430         * lib/passfd.h: New file.
2431         * lib/passfd.c: New file.
2432
2433 2011-03-12  Bruno Haible  <bruno@clisp.org>
2434
2435         wcswidth, mbswidth: Avoid integer overflow.
2436         * lib/wcswidth.c: Include <limits.h>.
2437         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2438         * lib/mbswidth.c: Include <limits.h>.
2439         (mbsnwidth): Avoid 'int' overflow.
2440         Reported by Jim Meyering.
2441
2442 2011-03-12  Bruno Haible  <bruno@clisp.org>
2443
2444         futimens, utimensat: Avoid endless recursion on Solaris 10.
2445         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2446         Solaris.
2447         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2448         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2449
2450 2011-03-11  Jim Meyering  <meyering@redhat.com>
2451
2452         maint.mk: relax a regexp to accommodate other formatting styles
2453         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2454         between "ngettext" and the following "(".
2455
2456 2011-03-11  Pádraig Brady <P@draigBrady.com>
2457
2458         maint.mk: suppress a false positive warning
2459         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2460         diagnostics are marked with ngettext.
2461
2462 2011-03-10  Eric Blake  <eblake@redhat.com>
2463
2464         wchar: add explicit dependencies, for Tru64
2465         * modules/mbmemcasecoll (Depends-on): Add wchar.
2466         * modules/mbtowc (Depends-on): Likewise.
2467         * modules/vasnprintf (Depends-on): Likewise.
2468         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2469         * modules/wctomb (Depends-on): Likewise.
2470         Reported by Peter O'Gorman.
2471
2472 2011-03-08  Bruno Haible  <bruno@clisp.org>
2473
2474         passfd module, part 1, tweaks.
2475         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2476         Improve indentation. Improve AC_MSG_CHECKING messages.
2477         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2478         gl_SOCKET_FAMILIES.
2479
2480 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2481
2482         passfd module, part 1.
2483         * m4/afunix.m4: New file.
2484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2485         sockets.
2486
2487 2011-03-08  Bruno Haible  <bruno@clisp.org>
2488
2489         regex-quote: New API.
2490         * lib/regex-quote.h: Include <stdbool.h>.
2491         (struct regex_quote_spec): New type.
2492         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2493         New declarations.
2494         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2495         'const struct regex_quote_spec *' argument.
2496         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2497         (pcre_special): New constant.
2498         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2499         New functions.
2500         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2501         'const struct regex_quote_spec *' argument.
2502         * modules/regex-quote (Depends-on): Add stdbool.
2503         * tests/test-regex-quote.c (check): Update for new API. Add test for
2504         anchored results.
2505         * NEWS: Mention the API change.
2506         Reported by Reuben Thomas and Eric Blake.
2507
2508 2011-03-06  Bruno Haible  <bruno@clisp.org>
2509
2510         regex-quote: Fix creation of POSIX extended regular expressions.
2511         * lib/regex-quote.c (ere_special): Add grouping and alternation
2512         operators.
2513
2514 2011-03-05  Bruno Haible  <bruno@clisp.org>
2515
2516         doc: Improve doc regarding autopoint vs. gnulib.
2517         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2518         disable autopoint while running autoreconf.
2519         Suggested by Ralf Wildenhues.
2520
2521 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2522
2523         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2524         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2525
2526 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2527
2528         parse-duration: remove xalloc.h dependency
2529         * lib/parse-duration.c (parse_period): handle NULL return from
2530         strdup instead of calling xstrdup().
2531         * modules/parse-duration: remove "xalloc" dependency
2532
2533 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2534
2535         bootstrap: honor m4_base when running aclocal
2536         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2537
2538 2011-03-02  Jim Meyering  <meyering@redhat.com>
2539
2540         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2541         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2542         on request from Matt Booth.
2543
2544 2011-03-01  Eric Blake  <eblake@redhat.com>
2545
2546         test-link: work on Hurd
2547         * tests/test-link.h (test_link): Hurd rejects linking directories
2548         with EISDIR instead of the POSIX-mandated EPERM.
2549
2550 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2551
2552         stdio: simplify by moving files to printf-posix, sigpipe
2553         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2554         since this symbol is needed only if printf is replaced.
2555         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2556         Require gl_ASM_SYMBOL_PREFIX.
2557         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2558         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2559         (Depends-on): Add 'raise'.
2560         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2561         * modules/stdio (Files): Remove lib/stdio-write.c,
2562         m4/asm-underscore.m4.
2563         (Depends-on): Remove 'raise'.
2564
2565         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2566         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2567         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2568         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2569
2570 2011-02-28  Bruno Haible  <bruno@clisp.org>
2571
2572         localcharset: Assume ANSI C behaviour of free().
2573         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2574         calling free().
2575         Suggested by Simon Josefsson <simon@josefsson.org>.
2576
2577 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2578             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2579             Bruno Haible  <bruno@clisp.org>  (tiny change)
2580
2581         On Cygwin, use /proc file system instead of win32 API.
2582         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2583         Win32 file names.
2584         (DllMain): Simplify by removing Cygwin specific code.
2585         (find_shared_library_fullname): Use Linux specific implementation also
2586         for Cygwin.
2587         (get_shared_library_fullname): Update accordingly.
2588         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2589         Win32 file names.
2590         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2591         Cygwin specific code.
2592
2593 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2594             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2595
2596         Fix OpenMP flag detection for various Fortran compilers.
2597         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2598         OpenMP-conditional compilation construct, to force compile
2599         failure with missing OpenMP flag.
2600         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2601
2602 2011-02-25  Eric Blake  <eblake@redhat.com>
2603
2604         strstr: expand test coverage
2605         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2606         compilation.
2607         * tests/test-memmem.c (main): Duplicate tests.
2608         * tests/test-strcasestr.c (main): Likewise.
2609         * tests/test-c-strcasestr.c (main): Likewise.
2610
2611 2011-02-25  Jim Meyering  <meyering@redhat.com>
2612
2613         maint.mk: detect missing-NL-at-EOF, too
2614         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2615         it also detects when a file lacks a newline at EOF.
2616         (require_exactly_one_NL_at_EOF_): Renamed from
2617         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2618         since people may well have .x-sc_... file names tied to the
2619         existing name.  Suggested by Eric Blake.
2620
2621 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2622
2623         dirname: move m4/dos.m4 functionality into lib/dosname.h
2624
2625         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2626         extracts symbols from it, puts them into config.h; but it's much
2627         easier to use the symbols directly.  filename.h already does this,
2628         but it disagrees with dos.m4 in some respects.  This patch
2629         introduces a different include file dosname.h that packages up
2630         dos.m4, and then later we can work on merging filename.h and
2631         dosname.h.  Applications that need only the easy-to-configure
2632         symbols should consider including dosname.h rather than dirname.h.
2633         * NEWS: Mention incompatible changes.
2634         * m4/dos.m4: Remove.
2635         * lib/dosname.h, modules/dosname: New files.
2636         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2637         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2638         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2639         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2640         Include dosname.h, not dirname.h.
2641         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2642         Include dosname.h, for definitions of symbols like ISSLASH
2643         that used to be in config.h.
2644         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2645         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2646         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2647         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2648         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2649         * modules/rmdir (Files): Likewise.
2650         * modules/stat (Files): Likewise.
2651         * modules/unlink (Files): Likewise.
2652         * modules/dirname-lgpl (Depends-on): Add dosname.
2653         * modules/lstat (Depends-on): Likewise.
2654         * modules/openat (Depends-on): Likewise.
2655         * modules/rmdir (Depends-on): Likewise.
2656         * modules/savewd (Depends-on): Likewise.
2657         * modules/stat (Depends-on): Likewise.
2658         * modules/unlink (Depends-on): Likewise.
2659         * modules/openat (Depends-on): Remove dirname-lgpl.
2660         * modules/savewd (Depends-on): Likewise.
2661         * tests/test-dirname.c: Do not use removed symbols like
2662         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2663         the remaining symbols, e.g., ISSLASH ('\\').
2664
2665 2011-02-25  Eric Blake  <eblake@redhat.com>
2666
2667         strstr: revert patches that introduced bug and pessimization
2668         * lib/str-two-way.h: Add another reference.
2669         (two_way_short_needle, two_way_long_needle): Revert changes from
2670         2011-02-24; they pessimize search speed.
2671         (critical_factorization): Partially revert changes from
2672         2010-06-22; they violate the requirement that the left half of the
2673         needle be smaller than the period of the needle.
2674
2675 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2676
2677         filenamecat: remove unnecessary dependency on dirname-lgpl
2678         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2679         is no direct dependency, just an indirect one via filenamecat-lgpl.
2680
2681         remove: remove unnecessary use of m4/dos.m4
2682         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2683         * modules/remove (FILES): Remove m4/dos.m4.
2684
2685         * lib/openat-proc.c: Don't include dirname.h; not needed.
2686
2687         backupfile: remove unnecessary use of m4/dos.m4
2688         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2689         of its symbols are used by the backupfile code.  backupfile.c does
2690         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2691         for the rare case of programs that want all their backup file
2692         names to live within 8+3 limits, and dos.m4 doesn't address that.
2693         * modules/backupfile (Files): Remove m4/dos.m4.
2694
2695 2011-02-24  Jim Meyering  <meyering@redhat.com>
2696
2697         strstr: fix a bug whereby strstr would mistakenly return NULL
2698         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2699         in period calculation.
2700         (two_way_long_needle): Likewise.
2701         The original problem was reported by Mike Stump in
2702         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2703         Ralf Wildenhues provided the short needle and haystack.
2704         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2705         Add a more involved test to trigger the bug in two_way_long_needle.
2706
2707 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2708
2709         gnulib-tool: remove use of bold display in help screen
2710         * gnulib-tool (func_usage): Do not use bold display anymore in the
2711         help screen.  That was just meant to be a temporary emphasis for a
2712         backward-incompatible change.
2713
2714 2011-02-23  Bruno Haible  <bruno@clisp.org>
2715
2716         Fix misindentation of preprocessor directives.
2717         * lib/argp-namefrob.h: Reindent preprocessor directives.
2718         * lib/getopt_int.h (struct _getopt_data): Likewise.
2719         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2720         * lib/vasnprintf.c (decode_long_double): Likewise.
2721         * tests/test-argmatch.c: Insert blank lines, for clarity.
2722         * tests/test-exclude.c: Likewise.
2723
2724 2011-02-22  Bruno Haible  <bruno@clisp.org>
2725
2726         ioctl: Fix for MacOS X in 64-bit mode.
2727         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2728         value.
2729         Suggested by Eric Blake.
2730         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2731
2732 2011-02-22  Jim Meyering  <meyering@redhat.com>
2733
2734         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2735         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2736         in lib/.
2737
2738 2011-02-22  Eric Blake  <eblake@redhat.com>
2739
2740         maint: avoid any CDPATH issue
2741         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2742
2743         maint: adjust cpp indentation for my modules, as well
2744         * Makefile (sc_cpp_indent_check): Add my name.
2745         * lib/fbufmode.c: Filter through cppi.
2746         * lib/fpurge.c: Likewise.
2747         * lib/freadable.c: Likewise.
2748         * lib/freading.c: Likewise.
2749         * lib/fwritable.c: Likewise.
2750         * lib/fwriting.c: Likewise.
2751         * lib/sigaction.c: Likewise.
2752
2753 2011-02-22  Jim Meyering  <meyering@redhat.com>
2754
2755         maint: adjust cpp indentation to reflect nesting depth
2756         I.e., in a block of code that begins with an unnested "#if",
2757         put one space between the "#" in column 1 and following token.
2758         For example,
2759         -#include <sys/vfs.h>
2760         +# include <sys/vfs.h>
2761         Do this only in .c files that are part of a module I maintain.
2762         * lib/linkat.c: Filter through cppi.
2763         * lib/nanosleep.c: Likewise.
2764         * lib/openat.c: Likewise.
2765         * lib/openat-die.c: Likewise.
2766         * lib/dup3.c: Likewise.
2767         * lib/fchownat.c: Likewise.
2768         * lib/flock.c: Likewise.
2769         * lib/fsync.c: Likewise.
2770         * lib/fts.c: Likewise.
2771         * lib/getpass.c: Likewise.
2772         * lib/gettimeofday.c: Likewise.
2773         * lib/userspec.c: Likewise.
2774         * Makefile (sc_cpp_indent_check): New rule, to check this.
2775
2776 2011-02-22  Bruno Haible  <bruno@clisp.org>
2777
2778         New module 'wctomb'.
2779         * lib/stdlib.in.h (wctomb): New declaration.
2780         * lib/wctomb.c: New file.
2781         * lib/wctomb-impl.h: New file.
2782         * m4/wctomb.m4: New file.
2783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2784         REPLACE_WCTOMB.
2785         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2786         REPLACE_WCTOMB.
2787         * modules/wctomb: New file.
2788         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2789         * doc/posix-functions/wctomb.texi: Mention the new module.
2790         * modules/wctob (Depends-on): Add wctomb.
2791
2792 2011-02-22  Bruno Haible  <bruno@clisp.org>
2793
2794         New module 'mbtowc'.
2795         * lib/stdlib.in.h (mbtowc): New declaration.
2796         * lib/mbtowc.c: New file.
2797         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2798         * m4/mbtowc.m4: New file.
2799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2800         REPLACE_MBTOWC.
2801         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2802         REPLACE_MBTOWC.
2803         * modules/mbtowc: New file.
2804         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2805         * doc/posix-functions/mbtowc.texi: Mention the new module.
2806         * modules/btowc (Depends-on): Add mbtowc.
2807
2808 2011-02-22  Bruno Haible  <bruno@clisp.org>
2809
2810         wcrtomb: Add more tests for native Windows platforms.
2811         * tests/test-wcrtomb-w32-1.sh: New file.
2812         * tests/test-wcrtomb-w32-2.sh: New file.
2813         * tests/test-wcrtomb-w32-3.sh: New file.
2814         * tests/test-wcrtomb-w32-4.sh: New file.
2815         * tests/test-wcrtomb-w32-5.sh: New file.
2816         * tests/test-wcrtomb-w32.c: New file.
2817         * modules/wcrtomb-tests (Files): Add them.
2818         (Makefile.am): Arrange to run these tests.
2819         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2820         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2821
2822 2011-02-20  Bruno Haible  <bruno@clisp.org>
2823
2824         wcrtomb: Enhance test.
2825         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2826
2827 2011-02-20  Bruno Haible  <bruno@clisp.org>
2828
2829         mbrtowc: Tiny optimization.
2830         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2831
2832 2011-02-20  Jim Meyering  <meyering@redhat.com>
2833
2834         test-exclude.c: remove unmatched #endif
2835         * tests/test-exclude.c: Remove stray #endif, left over from
2836         the change of a week ago.
2837
2838 2011-02-19  Jim Meyering  <meyering@redhat.com>
2839
2840         git-version-gen: skip "-dirty" check when appropriate
2841         * build-aux/git-version-gen: Don't run any git commands when the
2842         version string comes from .tarball-version.  Prior to this, we
2843         would run git update-index --refresh even from a just-unpacked
2844         tarball directory, and that could affect a .git/ directory in a
2845         parent of the build directory.  Reported by Mike Frysinger.
2846
2847 2011-02-19  Bruno Haible  <bruno@clisp.org>
2848
2849         unictype/property-byname: Reduce the size of the 'data' segment.
2850         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2851
2852 2011-02-19  Bruno Haible  <bruno@clisp.org>
2853
2854         unictype/scripts: Reduce the size of the 'data' segment.
2855         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2856         '%pic'.
2857         * lib/unictype/scripts_byname.gperf: Regenerated.
2858
2859 2011-02-19  Bruno Haible  <bruno@clisp.org>
2860
2861         stdint: Update documentation.
2862         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2863
2864 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2865
2866         stdint: omit redundant check for wchar.h
2867         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2868         always tests whether wchar.h exists, so remove the now-redundant test.
2869
2870 2011-02-18  Bruno Haible  <bruno@clisp.org>
2871
2872         stdint: Cut dependency to module 'wchar'.
2873         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2874         include the necessary prerequisites.
2875         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2876         * modules/stdint (Depends-on): Remove wchar.
2877         (Makefile.am): Substitute HAVE_WCHAR_H.
2878         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2879
2880 2011-02-18  Eric Blake  <eblake@redhat.com>
2881
2882         longlong: skip, rather than fail, on cross-compilation
2883         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2884         when cross-compiling; regression from 2011-02-16.
2885
2886 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2887
2888         * NEWS: Mention 2011-02-08 change to stdlib.
2889
2890 2011-02-17  Bruno Haible  <bruno@clisp.org>
2891
2892         getloadavg: Add comments about platforms.
2893         * m4/getloadavg.m4: Add comment.
2894         * lib/getloadavg.c: Likewise.
2895
2896 2011-02-17  Bruno Haible  <bruno@clisp.org>
2897
2898         getloadavg: Fix link error on Solaris 2.6.
2899         * modules/getloadavg (Link): New section.
2900         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2901         linking test-getloadavg.
2902         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2903         getloadavg.
2904
2905 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2906
2907         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2908         It was 'int', but this doesn't match the IRIX 6.5 manual.
2909         Suggested by Bruno Haible in
2910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2911
2912 2011-02-17  Bruno Haible  <bruno@clisp.org>
2913
2914         havelib: Fix comments.
2915         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2916         change.
2917
2918 2011-02-17  Bruno Haible  <bruno@clisp.org>
2919
2920         havelib: Update config.rpath.
2921         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2922
2923 2011-02-17  Bruno Haible  <bruno@clisp.org>
2924
2925         getloadavg test: Add some plausibility checks.
2926         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2927         is improbable.
2928
2929 2011-02-16  Eric Blake  <eblake@redhat.com>
2930
2931         maintainer-makefile: make syntax-check a no-op from tarballs
2932         * top/maint.mk (no-vc-detected): New rule.
2933         (local-checks-available): Use it to avoid hanging if someone tries
2934         'make syntax-check' from a tarball.  Also append to any non-syntax
2935         checks already defined in cfg.mk.
2936
2937 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2938
2939         longlong: tune, particularly for common case of c99
2940
2941         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2942         or running anything if c99, or if unsigned long long int does not
2943         work.  In either case, we know the answer without further tests.
2944         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2945         it at most once, and use its results for both long long int and
2946         unsigned long long int.  This is more likely to be efficient in
2947         the common case where the program wants to check for both long
2948         long int and unsigned long long int.
2949         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2950         since the answer is already known.
2951
2952 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2953
2954         getloadavg: set errno
2955         * lib/getloadavg.c: Set errno when returning -1.  If no other
2956         error number looks appropriate, set it to ENOSYS if the getloadavg
2957         looks like it can't possibly ever work, ENOTSUP otherwise.
2958         Suggested by Bruno Haible in
2959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2960
2961         getloadavg: trim unused parts and speed up 'configure'
2962         * NEWS: Document this.
2963         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2964         always compiled if getloadavg is absent.
2965         Move test code to ...
2966         * tests/test-getloadavg.c: New file, containing previous
2967         contents of test from lib/getloadavg.c.  It also contains
2968         suggestions by Bruno Haible in
2969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2970         * modules/getloadavg-tests: New file.
2971         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2972         Do tests in the same order as they're needed for getloadavg.c.
2973         Omit setgid-related tests that generate symbols KMEM_GROUP,
2974         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2975         Do only the tests that are needed to see whether the system has
2976         getloadavg, moving the other tests into ...
2977         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2978         NLIST_NAME_UNION; nobody should be using it.  Do not define
2979         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2980         relevant, as the user of this module shouldn't care how getloadavg
2981         is implemented.
2982
2983         getloadavg: omit unused var
2984         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2985
2986 2011-02-15  Jim Meyering  <meyering@redhat.com>
2987
2988         doc: update users.txt
2989         * users.txt: Update iwhd's URL.
2990
2991 2011-02-13  Bruno Haible  <bruno@clisp.org>
2992
2993         Consistent macro naming for macros that use GCC __attribute__.
2994         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2995         _ATTRIBUTE_NONNULL_.
2996         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2997         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2998         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2999         ATTRIBUTE_DEPRECATED.
3000         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3001         ATTRIBUTE_NORETURN.
3002         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3003         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3004         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3005         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3006         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3007         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3008         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3009         ATTRIBUTE_SENTINEL.
3010         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3011         ATTRIBUTE_RETURN_CHECK.
3012         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3013         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3014         ATTRIBUTE_NORETURN.
3015         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3016         Reported by Paul Eggert.
3017
3018 2011-02-13  Bruno Haible  <bruno@clisp.org>
3019
3020         Don't interfere with a program's definition of __attribute__.
3021         * lib/argp.h (__attribute__): Remove definition.
3022         (_GL_ATTRIBUTE_FORMAT): New macro.
3023         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3024         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3025         (_GL_ATTRIBUTE_FORMAT): New macro.
3026         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3027         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3028         GCC 3 or newer.
3029         * lib/error.h (__attribute__): Remove definition.
3030         (_GL_ATTRIBUTE_FORMAT): New macro.
3031         (error, error_at_line): Use it.
3032         * lib/hash.h (__attribute__): Remove definition.
3033         (ATTRIBUTE_WUR): Update definition. Define always.
3034         * lib/openat.h (__attribute__): Remove definition.
3035         (ATTRIBUTE_NORETURN): Update definition. Define always.
3036         * lib/sigpipe-die.h (__attribute__): Remove definition.
3037         (ATTRIBUTE_NORETURN): Update definition. Define always.
3038         * lib/vasnprintf.h (__attribute__): Remove definition.
3039         (_GL_ATTRIBUTE_FORMAT): New macro.
3040         (asnprintf, vasnprintf): Use it.
3041         * lib/xalloc.h (__attribute__): Remove definition.
3042         (ATTRIBUTE_NORETURN): Update definition. Define always.
3043         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3044         * lib/xmemdup0.h (__attribute__): Remove definition.
3045         (ATTRIBUTE_NORETURN): Update definition. Define always.
3046         * lib/xprintf.h (__attribute__): Remove definition.
3047         (_GL_ATTRIBUTE_FORMAT): New macro.
3048         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3049         * lib/xstrtol.h (__attribute__): Remove definition.
3050         (ATTRIBUTE_NORETURN): Update definition. Define always.
3051         * lib/xvasprintf.h (__attribute__): Remove definition.
3052         (_GL_ATTRIBUTE_FORMAT): New macro.
3053         (xasprintf, xvasprintf): Use it.
3054         * tests/test-argmatch.c (__attribute__): Remove definition.
3055         (ATTRIBUTE_NORETURN): Update definition. Define always.
3056         * tests/test-exclude.c (__attribute__): Remove definition.
3057         (ATTRIBUTE_NORETURN): Update definition. Define always.
3058         Reported by Paul Eggert.
3059
3060 2011-02-13  Bruno Haible  <bruno@clisp.org>
3061
3062         mbrtowc: Add more tests for native Windows platforms.
3063         * tests/test-mbrtowc-w32-1.sh: New file.
3064         * tests/test-mbrtowc-w32-2.sh: New file.
3065         * tests/test-mbrtowc-w32-3.sh: New file.
3066         * tests/test-mbrtowc-w32-4.sh: New file.
3067         * tests/test-mbrtowc-w32-5.sh: New file.
3068         * tests/test-mbrtowc-w32.c: New file.
3069         * modules/mbrtowc-tests (Files): Add them.
3070         (Makefile.am): Arrange to run these tests.
3071         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3072         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3073
3074 2011-02-13  Bruno Haible  <bruno@clisp.org>
3075
3076         mbrtowc: Work around native Windows bug.
3077         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3078         guess when no suitable locale for testing was found.
3079         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3080
3081 2011-02-13  Bruno Haible  <bruno@clisp.org>
3082
3083         mbsinit: Work around mingw bug.
3084         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3085         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3086         Windows.
3087         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3088
3089 2011-02-13  Bruno Haible  <bruno@clisp.org>
3090
3091         mbsinit: Don't crash for a NULL argument.
3092         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3093         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3094
3095 2011-02-13  Bruno Haible  <bruno@clisp.org>
3096
3097         Don't interfere with a program's definition of __attribute__.
3098         * lib/stdio.in.h (__attribute__): Remove definition.
3099         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3100         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3101         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3102         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3103         * lib/string.in.h (__attribute__): Remove definition.
3104         Reported by Paul Eggert.
3105
3106 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3107
3108         stdlib: don't get in the way of non-GCC __attribute__
3109         See thread starting at
3110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3111         Revert previous stdlib change, installing the following instead:
3112         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3113         to get in the way of a non-GCC compiler that supports __attribute__.
3114         (_GL_ATTRIBUTE_RETURN): New macro.
3115         (_Exit): Use it instead of __attribute__.
3116
3117 2011-02-12  Bruno Haible  <bruno@clisp.org>
3118
3119         quotearg test: Avoid test failure on mingw.
3120         * tests/test-quotearg.sh: Convert the locale identifier from native
3121         Windows syntax to Unix syntax.
3122
3123 2011-02-12  Bruno Haible  <bruno@clisp.org>
3124
3125         setlocale: Prefer gnulib's override over libintl's override.
3126         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3127         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3128         GNULIB_defined_setlocale is set.
3129
3130 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         stdlib: support non-GCC __attribute__
3133
3134         Fix a serious and tricky problem encountered when attempting to
3135         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3136         5.5, but it crashed due to memory corruption on Solaris 10 with
3137         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3138         bits that are otherwise zero.  This tagging is optional inside
3139         Emacs but is preferred and is used when __attribute__ ((__aligned
3140         (8))) works, as it does with both recent-enough GCC and with Sun C
3141         5.11.  However, Sun C 5.11 is not GCC and does not #define
3142         __GNUC__ and __GNUC_MINOR__.
3143
3144         When I added the getloadavg module to Emacs, it brought in
3145         stdlib.in.h, which contained this fragment:
3146
3147            #ifndef __attribute__
3148            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3149            #  define __attribute__(Spec)   /* empty */
3150            # endif
3151            #endif
3152
3153         When files that include <stdlib.h> were compiled with Sun C 5.11,
3154         the above code disabled __attribute__ ((__aligned (8))), which
3155         caused variables to not be properly aligned, which eventually led
3156         to the pointer corruption mentioned above.  (This was a bit hard
3157         to diagnose, unfortunately.)
3158
3159         Several "#define __attribute__(X) /* empty */" code snippets need
3160         to be eradicated from Gnulib to work with non-GCC compilers that
3161         support __attribute__.  The Autoconf way to do this is to test for
3162         each kind of attribute that we want support for, and selectively
3163         enable that in source code.
3164
3165         Fix this problem just for stdlib.h, by adding a test for the
3166         __noreturn__ attribute, and change stdlib.in.h to use that test
3167         when needed.  This technique can be easily generalized to the
3168         other *.in.h files and attributes, and a similar technique can be
3169         used for *.h and *.c files.  This patch is enough to solve the
3170         problem for Emacs + getloadavg, and I thought I'd publish it for
3171         feedback before undertaking further, similar fixes in other
3172         modules.
3173
3174         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3175         because it's not needed for stdlib.h.  It merely substitutes the
3176         value directly into stdlib.h.  We may well need to #define it, or
3177         similar symbols, for other modules, but it's nice to also have an
3178         option to not #define it for applications like Emacs that do not
3179         need it.
3180
3181         * lib/stdlib.in.h (__attribute__): Do not #define.
3182         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3183         be defined only if the _Exit module is also used.
3184         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3186         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3187         platforms.
3188         * modules/_Exit (Files): Add m4/attribute.m4.
3189         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3190         * m4/attribute.m4: New file.
3191
3192 2011-02-12  Bruno Haible  <bruno@clisp.org>
3193
3194         wcsrtombs: Work around bug on native Windows.
3195         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3196         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3197         instead of len.
3198         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3199
3200 2011-02-12  Bruno Haible  <bruno@clisp.org>
3201
3202         mbsrtowcs: Work around bug on native Windows.
3203         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3204         against mingw bug.
3205         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3206
3207 2011-02-12  Bruno Haible  <bruno@clisp.org>
3208
3209         Avoid setlocale bugs in tests.
3210         * modules/btowc (Dependencies): Add setlocale.
3211         * modules/c-strcase (Dependencies): Likewise.
3212         * modules/mbmemcasecmp (Dependencies): Likewise.
3213         * modules/mbmemcasecoll (Dependencies): Likewise.
3214         * modules/mbrtowc (Dependencies): Likewise.
3215         * modules/mbscasecmp (Dependencies): Likewise.
3216         * modules/mbscasestr (Dependencies): Likewise.
3217         * modules/mbschr (Dependencies): Likewise.
3218         * modules/mbscspn (Dependencies): Likewise.
3219         * modules/mbsinit (Dependencies): Likewise.
3220         * modules/mbsncasecmp (Dependencies): Likewise.
3221         * modules/mbsnrtowcs (Dependencies): Likewise.
3222         * modules/mbspbrk (Dependencies): Likewise.
3223         * modules/mbspcasecmp (Dependencies): Likewise.
3224         * modules/mbsrchr (Dependencies): Likewise.
3225         * modules/mbsrtowcs (Dependencies): Likewise.
3226         * modules/mbsspn (Dependencies): Likewise.
3227         * modules/mbsstr (Dependencies): Likewise.
3228         * modules/nl_langinfo (Dependencies): Likewise.
3229         * modules/quotearg (Dependencies): Likewise.
3230         * modules/unicase/locale-language (Dependencies): Likewise.
3231         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3232         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3233         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3234         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3235         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3236         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3237         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3238         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3239         * modules/vasnprintf-posix (Dependencies): Likewise.
3240         * modules/wcrtomb (Dependencies): Likewise.
3241         * modules/wcsnrtombs (Dependencies): Likewise.
3242         * modules/wcsrtombs (Dependencies): Likewise.
3243
3244 2011-02-12  Bruno Haible  <bruno@clisp.org>
3245
3246         setlocale: Workaround native Windows bug.
3247         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3248         succeeds but sets LC_CTYPE to "C", report a failure.
3249         * tests/test-setlocale2.sh: New file.
3250         * tests/test-setlocale2.c: New file.
3251         * modules/setlocale-tests (Files): Add the new files.
3252         (Makefile.am): Enable test-setlocale2.sh test.
3253         * doc/posix-functions/setlocale.texi: Mention workaround.
3254
3255 2011-02-11  Bruno Haible  <bruno@clisp.org>
3256
3257         Tests for module 'setlocale'.
3258         * modules/setlocale-tests: New file.
3259         * tests/test-setlocale1.sh: New file.
3260         * tests/test-setlocale1.c: New file.
3261
3262         New module 'setlocale'.
3263         * lib/locale.in.h (setlocale): New declaration.
3264         * lib/setlocale.c: New file, based on
3265         gettext/gettext-runtime/intl/setlocale.c.
3266         * m4/setlocale.m4: New file.
3267         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3268         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3269         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3270         REPLACE_SETLOCALE.
3271         * modules/setlocale: New file.
3272         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3273         * doc/posix-functions/setlocale.texi: Mention the new module.
3274
3275 2011-02-11  Bruno Haible  <bruno@clisp.org>
3276
3277         Prepare for locale dependent tests on mingw.
3278         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3279         because it has the wrong locale encoding.
3280         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3281         French_France.1252 instead of "fr".
3282         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3283         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3284         because it has the wrong locale encoding.
3285         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3286         native Windows, try Turkish_Turkey.65001.
3287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3288         Chinese_China.54936.
3289
3290         Prepare for locale dependent tests on mingw.
3291         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3292         differently.
3293         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3294         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3295         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3296         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3297
3298 2011-02-11  Eric Blake  <eblake@redhat.com>
3299
3300         strptime: avoid compiler warnings
3301         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3302         compiler warnings about dead code.
3303         Reported by Daniel P. Berrange.
3304
3305 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3306
3307         doc: update users.txt
3308         * users.txt: Add rcs.
3309
3310 2011-02-10  John W. Eaton  <jwe@gnu.org>
3311
3312         doc: update users.txt
3313         * users.txt: Add octave.
3314
3315 2011-02-10  Jim Meyering  <meyering@redhat.com>
3316
3317         doc: update users.txt
3318         * users.txt: Add iwhd.
3319
3320 2011-02-09  Bruno Haible  <bruno@clisp.org>
3321
3322         gnulib-tool: Make copyright notice adjustment more robust.
3323         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3324         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3325         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3326         License".
3327         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3328
3329 2011-02-06  Bruno Haible  <bruno@clisp.org>
3330
3331         New module 'towctrans'.
3332         * modules/towctrans: New file.
3333         * lib/wctype.in.h (towctrans): New declaration.
3334         * lib/towctrans.c: New file.
3335         * lib/towctrans-impl.h: New file.
3336         * m4/towctrans.m4: New file.
3337         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3338         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3339         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3340         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3341         * doc/posix-functions/towctrans.texi: Mention the new module.
3342
3343 2011-02-06  Bruno Haible  <bruno@clisp.org>
3344
3345         New module 'wctrans'.
3346         * modules/wctrans: New file.
3347         * lib/wctype.in.h (wctrans): New declaration.
3348         * lib/wctrans.c: New file.
3349         * lib/wctrans-impl.h: New file.
3350         * m4/wctrans.m4: New file.
3351         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3352         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3353         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3354         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3355         * doc/posix-functions/wctrans.texi: Mention the new module.
3356
3357 2011-02-06  Bruno Haible  <bruno@clisp.org>
3358
3359         New module 'iswctype'.
3360         * modules/iswctype: New file.
3361         * lib/wctype.in.h (iswctype): New declaration.
3362         * lib/iswctype.c: New file.
3363         * lib/iswctype-impl.h: New file.
3364         * m4/iswctype.m4: New file.
3365         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3366         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3367         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3368         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3369         * doc/posix-functions/iswctype.texi: Mention the new module and the
3370         HP-UX 11.00 problem.
3371
3372 2011-02-06  Bruno Haible  <bruno@clisp.org>
3373
3374         New module 'wctype'.
3375         * modules/wctype: Change to represent the wctype() substitute.
3376         * lib/wctype.in.h (wctype): New declaration.
3377         * lib/wctype.c: New file.
3378         * lib/wctype-impl.h: New file.
3379         * m4/wctype.m4: New file.
3380         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3381         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3382         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3383         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3384         * doc/posix-functions/wctype.texi: Mention the new module and the
3385         HP-UX 11.00 problem.
3386
3387 2011-02-06  Bruno Haible  <bruno@clisp.org>
3388
3389         wctype-h: Ensure wctype_t and wctrans_t are defined.
3390         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3391         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3392         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3393         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3394         HAVE_WCTRANS_T.
3395         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3396
3397 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3398
3399         flock: fix license typo
3400
3401         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3402         omitted.
3403
3404 2011-02-08  Bruno Haible  <bruno@clisp.org>
3405
3406         Split large sed scripts, for HP-UX sed.
3407         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3408         to avoid HP-UX limit of 99 commands, in the near future.
3409         * modules/stdlib (Makefile.am): Likewise.
3410         * modules/unistd (Makefile.am): Likewise.
3411         * modules/wchar (Makefile.am): Likewise.
3412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3413         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3415
3416 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3417             Bruno Haible  <bruno@clisp.org>
3418
3419         stdlib: improve random_r modularization
3420         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3421         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3422         you also need the random_r module to get this material right.
3423         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3424         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3425         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3426
3427 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3428
3429         stdlib: don't depend on stdint
3430         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3431         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3432         be independent of whether stdint.h is needed.
3433         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3434         here, instead of ...
3435         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3436         struct random_data should be using the random_r module, not just
3437         the stdlib module (which wouldn't make sense: what package needs
3438         just struct random_data without also needing random_r?).
3439         * modules/stdlib (Depends-on): Remove stdint.
3440
3441         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3442         See the thread rooted at
3443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3444         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3445         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3446         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3447         __VMS)); previously it was always included (via fcntl--.h).
3448         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3449         hand; this is good enough for load averages.  Also, do not use
3450         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3451         flags directly if available and don't bother otherwise.  (Packages
3452         that need the extra reliability should use the modules that define
3453         these flags on older platforms that lack them.)
3454         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3455         fcntl-safer.
3456
3457 2011-02-08  Jim Meyering  <meyering@redhat.com>
3458
3459         di-set.h, ino-map.h: add multiple-inclusion guard
3460         Technically, the guard is required only for ino-map.h, due to its
3461         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3462         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3463         * lib/ino-map.h: Likewise.
3464
3465 2011-02-06  Bruno Haible  <bruno@clisp.org>
3466
3467         iswblank: Ensure declaration on glibc systems.
3468         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3469         * modules/iswblank (Dependencies): Add 'extensions'.
3470         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3471
3472 2011-02-06  Bruno Haible  <bruno@clisp.org>
3473
3474         New module 'iswblank'.
3475         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3476         * modules/iswblank: New file.
3477         * modules/wctype-h (Files): Remove lib/iswblank.c.
3478         (Makefile.am): Substitute GNULIB_ISWBLANK.
3479         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3480         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3481         (gl_WCTYPE_H_DEFAULTS): New macro.
3482         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3483         * modules/iswblank-tests: New file.
3484         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3485         * tests/test-wctype-h.c (main): Remove iswblank tests.
3486         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3487         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3488         of 'wctype-h'.
3489         * NEWS: Mention the change.
3490         * modules/mbchar (Depends-on): Add iswblank.
3491
3492 2011-02-08  Bruno Haible  <bruno@clisp.org>
3493
3494         di-set tests: Refactor.
3495         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3496         unnecessary includes.
3497         (ASSERT): Remove macro.
3498         (main): Make C90 compliant by avoiding variable declaration after
3499         statement.
3500         * modules/di-set-tests (Files): Add tests/macros.h.
3501
3502 2011-02-08  Bruno Haible  <bruno@clisp.org>
3503
3504         ino-map tests: Refactor.
3505         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3506         unnecessary includes.
3507         (ASSERT): Remove macro.
3508         (main): Make C90 compliant by avoiding variable declaration after
3509         statement.
3510         * modules/ino-map-tests (Files): Add tests/macros.h.
3511
3512 2011-02-08  Jim Meyering  <meyering@redhat.com>
3513
3514         di-set: add "const" to a cast
3515         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3516         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3517
3518 2011-02-06  Bruno Haible  <bruno@clisp.org>
3519
3520         Rename module 'wctype' to 'wctype-h'.
3521         * modules/wctype-h: Renamed from modules/wctype.
3522         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3523         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3524         (Files, Depends-on, Makefile.am): Update.
3525         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3526         (Files, Makefile.am): Update.
3527         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3528         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3529         * doc/posix-headers/wctype.texi: Update.
3530         * doc/posix-functions/iswalnum.texi: Update.
3531         * doc/posix-functions/iswalpha.texi: Update.
3532         * doc/posix-functions/iswblank.texi: Update.
3533         * doc/posix-functions/iswcntrl.texi: Update.
3534         * doc/posix-functions/iswdigit.texi: Update.
3535         * doc/posix-functions/iswgraph.texi: Update.
3536         * doc/posix-functions/iswlower.texi: Update.
3537         * doc/posix-functions/iswprint.texi: Update.
3538         * doc/posix-functions/iswpunct.texi: Update.
3539         * doc/posix-functions/iswspace.texi: Update.
3540         * doc/posix-functions/iswupper.texi: Update.
3541         * doc/posix-functions/iswxdigit.texi: Update.
3542         * doc/posix-functions/towlower.texi: Update.
3543         * doc/posix-functions/towupper.texi: Update.
3544         * NEWS: Mention the change.
3545         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3546         * modules/mbchar (Dependencies): Likewise.
3547         * modules/mbswidth (Dependencies): Likewise.
3548         * modules/quotearg (Dependencies): Likewise.
3549         * modules/regex (Dependencies): Likewise.
3550         * modules/wcscasecmp (Dependencies): Likewise.
3551         * modules/wcsncasecmp (Dependencies): Likewise.
3552         * modules/wcwidth (Dependencies): Likewise.
3553
3554 2011-02-06  Bruno Haible  <bruno@clisp.org>
3555
3556         New module 'wcswidth'.
3557         * modules/wcswidth: New file.
3558         * lib/wchar.in.h (wcswidth): New declaration.
3559         * lib/wcswidth.c: New file.
3560         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3561         * m4/wcswidth.m4: New file.
3562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3564         REPLACE_WCSWIDTH.
3565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3566         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3567         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3568         * doc/posix-functions/wcswidth.texi: Mention the new module.
3569
3570 2011-02-06  Bruno Haible  <bruno@clisp.org>
3571
3572         New module 'wcstok'.
3573         * modules/wcstok: New file.
3574         * lib/wchar.in.h (wcstok): New declaration.
3575         * lib/wcstok.c: New file.
3576         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3577         * m4/wcstok.m4: New file.
3578         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3579         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3580         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3581         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3582         * doc/posix-functions/wcstok.texi: Mention the new module.
3583
3584 2011-02-06  Bruno Haible  <bruno@clisp.org>
3585
3586         New module 'wcsstr'.
3587         * modules/wcsstr: New file.
3588         * lib/wchar.in.h (wcsstr): New declaration.
3589         * lib/wcsstr.c: New file.
3590         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3591         * m4/wcsstr.m4: New file.
3592         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3593         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3594         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3595         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3596         * doc/posix-functions/wcsstr.texi: Mention the new module.
3597
3598 2011-02-06  Bruno Haible  <bruno@clisp.org>
3599
3600         New module 'wcspbrk'.
3601         * modules/wcspbrk: New file.
3602         * lib/wchar.in.h (wcspbrk): New declaration.
3603         * lib/wcspbrk.c: New file.
3604         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3605         * m4/wcspbrk.m4: New file.
3606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3609         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3610         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3611
3612 2011-02-06  Bruno Haible  <bruno@clisp.org>
3613
3614         New module 'wcsspn'.
3615         * modules/wcsspn: New file.
3616         * lib/wchar.in.h (wcsspn): New declaration.
3617         * lib/wcsspn.c: New file.
3618         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3619         * m4/wcsspn.m4: New file.
3620         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3621         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3622         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3623         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3624         * doc/posix-functions/wcsspn.texi: Mention the new module.
3625
3626 2011-02-06  Bruno Haible  <bruno@clisp.org>
3627
3628         New module 'wcscspn'.
3629         * modules/wcscspn: New file.
3630         * lib/wchar.in.h (wcscspn): New declaration.
3631         * lib/wcscspn.c: New file.
3632         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3633         * m4/wcscspn.m4: New file.
3634         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3635         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3637         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3638         * doc/posix-functions/wcscspn.texi: Mention the new module.
3639
3640 2011-02-06  Bruno Haible  <bruno@clisp.org>
3641
3642         New module 'wcsrchr'.
3643         * modules/wcsrchr: New file.
3644         * lib/wchar.in.h (wcsrchr): New declaration.
3645         * lib/wcsrchr.c: New file.
3646         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3647         * m4/wcsrchr.m4: New file.
3648         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3649         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3651         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3652         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3653
3654 2011-02-06  Bruno Haible  <bruno@clisp.org>
3655
3656         New module 'wcschr'.
3657         * modules/wcschr: New file.
3658         * lib/wchar.in.h (wcschr): New declaration.
3659         * lib/wcschr.c: New file.
3660         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3661         * m4/wcschr.m4: New file.
3662         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3663         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3664         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3665         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3666         * doc/posix-functions/wcschr.texi: Mention the new module.
3667
3668 2011-02-06  Bruno Haible  <bruno@clisp.org>
3669
3670         New module 'wcsdup'.
3671         * modules/wcsdup: New file.
3672         * lib/wchar.in.h (wcsdup): New declaration.
3673         * lib/wcsdup.c: New file.
3674         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3675         * m4/wcsdup.m4: New file.
3676         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3677         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3678         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3679         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3680         * doc/posix-functions/wcsdup.texi: Mention the new module.
3681
3682 2011-02-06  Bruno Haible  <bruno@clisp.org>
3683
3684         New module 'wcsxfrm'.
3685         * modules/wcsxfrm: New file.
3686         * lib/wchar.in.h (wcsxfrm): New declaration.
3687         * lib/wcsxfrm.c: New file.
3688         * lib/wcsxfrm-impl.h: New file.
3689         * m4/wcsxfrm.m4: New file.
3690         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3691         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3692         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3693         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3694         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3695
3696 2011-02-06  Bruno Haible  <bruno@clisp.org>
3697
3698         New module 'wcscoll'.
3699         * modules/wcscoll: New file.
3700         * lib/wchar.in.h (wcscoll): New declaration.
3701         * lib/wcscoll.c: New file.
3702         * lib/wcscoll-impl.h: New file.
3703         * m4/wcscoll.m4: New file.
3704         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3705         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3707         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3708         * doc/posix-functions/wcscoll.texi: Mention the new module.
3709
3710 2011-02-06  Bruno Haible  <bruno@clisp.org>
3711
3712         New module 'wcsncasecmp'.
3713         * modules/wcsncasecmp: New file.
3714         * lib/wchar.in.h (wcsncasecmp): New declaration.
3715         * lib/wcsncasecmp.c: New file.
3716         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3717         * m4/wcsncasecmp.m4: New file.
3718         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3719         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3721         HAVE_WCSNCASECMP.
3722         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3723         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3724
3725 2011-02-06  Bruno Haible  <bruno@clisp.org>
3726
3727         New module 'wcscasecmp'.
3728         * modules/wcscasecmp: New file.
3729         * lib/wchar.in.h (wcscasecmp): New declaration.
3730         * lib/wcscasecmp.c: New file.
3731         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3732         * m4/wcscasecmp.m4: New file.
3733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3736         HAVE_WCSCASECMP.
3737         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3738         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3739
3740 2011-02-05  Bruno Haible  <bruno@clisp.org>
3741
3742         New module 'wcsncmp'.
3743         * modules/wcsncmp: New file.
3744         * lib/wchar.in.h (wcsncmp): New declaration.
3745         * lib/wcsncmp.c: New file.
3746         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3747         * m4/wcsncmp.m4: New file.
3748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3751         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3752         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3753
3754 2011-02-05  Bruno Haible  <bruno@clisp.org>
3755
3756         New module 'wcscmp'.
3757         * modules/wcscmp: New file.
3758         * lib/wchar.in.h (wcscmp): New declaration.
3759         * lib/wcscmp.c: New file.
3760         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3761         * m4/wcscmp.m4: New file.
3762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3765         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3766         * doc/posix-functions/wcscmp.texi: Mention the new module.
3767
3768 2011-02-05  Bruno Haible  <bruno@clisp.org>
3769
3770         New module 'wcsncat'.
3771         * modules/wcsncat: New file.
3772         * lib/wchar.in.h (wcsncat): New declaration.
3773         * lib/wcsncat.c: New file.
3774         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3775         * m4/wcsncat.m4: New file.
3776         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3777         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3778         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3779         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3780         * doc/posix-functions/wcsncat.texi: Mention the new module.
3781
3782 2011-02-05  Bruno Haible  <bruno@clisp.org>
3783
3784         New module 'wcscat'.
3785         * modules/wcscat: New file.
3786         * lib/wchar.in.h (wcscat): New declaration.
3787         * lib/wcscat.c: New file.
3788         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3789         * m4/wcscat.m4: New file.
3790         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3791         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3792         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3793         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3794         * doc/posix-functions/wcscat.texi: Mention the new module.
3795
3796 2011-02-05  Bruno Haible  <bruno@clisp.org>
3797
3798         New module 'wcpncpy'.
3799         * modules/wcpncpy: New file.
3800         * lib/wchar.in.h (wcpncpy): New declaration.
3801         * lib/wcpncpy.c: New file.
3802         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3803         * m4/wcpncpy.m4: New file.
3804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3806         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3807         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3808         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3809
3810 2011-02-05  Bruno Haible  <bruno@clisp.org>
3811
3812         New module 'wcsncpy'.
3813         * modules/wcsncpy: New file.
3814         * lib/wchar.in.h (wcsncpy): New declaration.
3815         * lib/wcsncpy.c: New file.
3816         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3817         * m4/wcsncpy.m4: New file.
3818         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3819         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3820         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3821         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3822         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3823
3824 2011-02-05  Bruno Haible  <bruno@clisp.org>
3825
3826         New module 'wcpcpy'.
3827         * modules/wcpcpy: New file.
3828         * lib/wchar.in.h (wcpcpy): New declaration.
3829         * lib/wcpcpy.c: New file.
3830         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3831         * m4/wcpcpy.m4: New file.
3832         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3833         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3834         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3835         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3836         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3837
3838 2011-02-05  Bruno Haible  <bruno@clisp.org>
3839
3840         New module 'wcscpy'.
3841         * modules/wcscpy: New file.
3842         * lib/wchar.in.h (wcscpy): New declaration.
3843         * lib/wcscpy.c: New file.
3844         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3845         * m4/wcscpy.m4: New file.
3846         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3847         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3848         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3849         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3850         * doc/posix-functions/wcscpy.texi: Mention the new module.
3851
3852 2011-02-05  Bruno Haible  <bruno@clisp.org>
3853
3854         New module 'wcsnlen'.
3855         * modules/wcsnlen: New file.
3856         * lib/wchar.in.h (wcsnlen): New declaration.
3857         * lib/wcsnlen.c: New file.
3858         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3859         * m4/wcsnlen.m4: New file.
3860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3863         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3864         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3865
3866 2011-02-05  Bruno Haible  <bruno@clisp.org>
3867
3868         New module 'wcslen'.
3869         * modules/wcslen: New file.
3870         * lib/wchar.in.h (wcslen): New declaration.
3871         * lib/wcslen.c: New file.
3872         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3873         * m4/wcslen.m4: New file.
3874         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3875         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3876         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3877         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3878         * doc/posix-functions/wcslen.texi: Mention the new module.
3879
3880 2011-02-05  Bruno Haible  <bruno@clisp.org>
3881
3882         New module 'wmemset'.
3883         * modules/wmemset: New file.
3884         * lib/wchar.in.h (wmemset): New declaration.
3885         * lib/wmemset.c: New file.
3886         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3887         * m4/wmemset.m4: New file.
3888         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3889         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3890         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3891         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3892         * doc/posix-functions/wmemset.texi: Mention the new module.
3893
3894 2011-02-05  Bruno Haible  <bruno@clisp.org>
3895
3896         New module 'wmemmove'.
3897         * modules/wmemmove: New file.
3898         * lib/wchar.in.h (wmemmove): New declaration.
3899         * lib/wmemmove.c: New file.
3900         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3901         * m4/wmemmove.m4: New file.
3902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3904         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3905         HAVE_WMEMMOVE.
3906         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3907         * doc/posix-functions/wmemmove.texi: Mention the new module.
3908
3909 2011-02-05  Bruno Haible  <bruno@clisp.org>
3910
3911         New module 'wmemcpy'.
3912         * modules/wmemcpy: New file.
3913         * lib/wchar.in.h (wmemcpy): New declaration.
3914         * lib/wmemcpy.c: New file.
3915         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3916         * m4/wmemcpy.m4: New file.
3917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3919         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3920         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3921         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3922
3923 2011-02-05  Bruno Haible  <bruno@clisp.org>
3924
3925         New module 'wmemcmp'.
3926         * modules/wmemcmp: New file.
3927         * lib/wchar.in.h (wmemcmp): New declaration.
3928         * lib/wmemcmp.c: New file.
3929         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3930         * m4/wmemcmp.m4: New file.
3931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3933         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3934         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3935         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3936
3937 2011-02-07  Jim Meyering  <meyering@redhat.com>
3938
3939         di-set, ino-map: new modules, from coreutils
3940         * lib/di-set.c: New file.
3941         * lib/di-set.h: Likewise.
3942         * lib/ino-map.c: Likewise.
3943         * lib/ino-map.h: Likewise.
3944         * modules/di-set: Likewise.
3945         * modules/di-set-tests: Likewise.
3946         * modules/ino-map: Likewise.
3947         * modules/ino-map-tests: Likewise.
3948         * tests/test-di-set.c: Likewise.
3949         * tests/test-ino-map.c: Likewise.
3950
3951 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3952
3953         getloadavg: merge minor changes from Emacs
3954
3955         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3956         (getloadavg): Use memset, not bzero.
3957
3958         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3959         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3960         clash (bug#86).
3961
3962 2010-11-14  Bruno Haible  <bruno@clisp.org>
3963
3964         Allow multiple gnulib generated replacements to coexist.
3965         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3966         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3967         * lib/langinfo.in.h (nl_item): Likewise.
3968         * lib/math.in.h (_NaN, NAN): Likewise.
3969         * lib/netdb.in.h (struct addrinfo): Likewise.
3970         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3971         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3972         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3973         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3974         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3975         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3976         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3977         pthread_mutexattr_init, pthread_mutexattr_settype,
3978         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3979         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3980         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3981         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3982         * lib/sched.in.h (struct sched_param): Likewise.
3983         * lib/se-selinux.in.h (security_class_t, security_context_t,
3984         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3985         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3986         lsetfilecon, fsetfilecon, security_check_context,
3987         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3988         Likewise.
3989         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3990         Likewise.
3991         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3992         _gl_function_taking_int_returning_void_t, union sigval,
3993         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3994         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3995         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3996         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3997         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3998         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3999         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4000         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4001         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4002         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4003         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4004         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4005         socklen_t, rpl_fd_isset): Likewise.
4006         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4007         * lib/sys_time.in.h (struct timeval): Likewise.
4008         * lib/sys_times.in.h (struct tms): Likewise.
4009         * lib/sys_utsname.in.h (struct utsname):
4010         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4011         * lib/unistd.in.h (getpagesize): Likewise.
4012         * lib/wchar.in.h (mbstate_t): Likewise.
4013         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4014         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4015         towlower, towupper): Likewise.
4016         Reported by Sam Steingold <sds@gnu.org>.
4017
4018 2011-02-05  Eric Blake  <eblake@redhat.com>
4019
4020         unsetenv: work around Haiku issues
4021         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4022         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4023
4024 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4025
4026         libposix: avoid calling error() within libposix
4027         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4028         is defined.
4029
4030 2011-02-05  Eric Blake  <eblake@redhat.com>
4031
4032         strerror_r-posix: port to cygwin
4033         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4034         implementation.
4035         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4036         * tests/test-strerror_r.c (main): Fix test.
4037         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4038         issue.
4039
4040 2011-02-05  Bruno Haible  <bruno@clisp.org>
4041
4042         New module 'wmemchr'.
4043         * modules/wmemchr: New file.
4044         * lib/wchar.in.h (wmemchr): New declaration.
4045         * lib/wmemchr.c: New file.
4046         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4047         * m4/wmemchr.m4: New file.
4048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4050         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4051         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4052         * doc/posix-functions/wmemchr.texi: Mention the new module.
4053
4054 2011-02-04  Eric Blake  <eblake@redhat.com>
4055
4056         fdopendir: detect FreeBSD bug
4057         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4058         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4059
4060 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4061
4062         stdbool: do not define HAVE_STDBOOL_H
4063         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4064         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4065         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4066         imported from the latest Autoconf git.  It was motivated by Emacs,
4067         which uses gnulib but does not need HAVE_STDBOOL_H.
4068
4069 2011-02-04  Bruno Haible  <bruno@clisp.org>
4070
4071         wcsnrtombs: Prepare for new module wwcsnrtombs.
4072         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4073         * lib/wcsnrtombs.c: Include it.
4074         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4075
4076         wcsrtombs: Prepare for new module wwcsrtombs.
4077         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4078         * lib/wcsrtombs.c: Include it.
4079         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4080
4081         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4082         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4083         * lib/mbsnrtowcs.c: Include it.
4084         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4085
4086         mbsrtowcs: Prepare for new module mbsrtowwcs.
4087         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4088         * lib/mbsrtowcs.c: Include it.
4089         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4090
4091 2011-02-04  Bruno Haible  <bruno@clisp.org>
4092
4093         vasnprintf: Reduce use of malloc for small format strings.
4094         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4095         (arguments): Add room for the first 7 arguments.
4096         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4097         (char_directives, u8_directives, u16_directives, u32_directives): Add
4098         room for the first 7 directives.
4099         * lib/printf-parse.c: Include <string.h>.
4100         (PRINTF_PARSE): Change memory handling code so that it uses the first
4101         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4102         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4103         Reported by Pádraig Brady <P@draigbrady.com>.
4104
4105 2011-01-31  Eric Blake  <eblake@redhat.com>
4106
4107         dup2: work around Haiku bug
4108         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4109         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4110         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4111         * tests/test-dup2.c (main): Enhance test.
4112
4113 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4114
4115         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4116         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4117         declared by eglibc 2.11.2.
4118         * lib/stdio.in.h: Likewise.
4119
4120 2011-01-31  Eric Blake  <eblake@redhat.com>
4121
4122         ignore-value: add missing test dependency
4123         * tests/test-ignore-value.c: Revert previous change; stdio.h
4124         provides off_t.
4125         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4126
4127 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4128
4129         mktime: clarify long_int width checking
4130         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4131         the top level, to make it clearer that the assumption about
4132         long_int width is being checked.  See
4133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4134
4135 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4136
4137         ignore-value: Fix self-test.
4138         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4139
4140 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4141
4142         TYPE_MAXIMUM: avoid theoretically undefined behavior
4143         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4144         negative number, which the C Standard says has undefined behavior.
4145         In practice this is not a problem, but might as well do it by the book.
4146         Reported by Rich Felker and Eric Blake; see
4147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4148         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4149         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4151         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4152         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4153         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4154
4155         mktime: #undef mktime before #defining it
4156         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4157
4158         mktime: systematically normalize tm_isdst comparisons
4159         * lib/mktime.c (isdst_differ): New function.
4160         (__mktime_internal): Use it systematically for all isdst comparisons.
4161         This completes the fix for libc BZ #6723, and removes the need for
4162         normalizing tm_isdst.  See
4163         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4164         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4165
4166         mktime: fix some integer overflow issues and sidestep the rest
4167
4168         This was prompted by a bug report by Benjamin Lindner for MinGW
4169         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4170         His bug is due to signed integer overflow (0 - INT_MIN), and I
4171         I scanned through mktime.c looking for other integer overflow
4172         problems, fixing all the bugs I found.
4173
4174         Although the C Standard says the resulting code is still not safe
4175         in the presence of integer overflow, in practice it should be good
4176         enough for all real-world two's-complement implementations, except
4177         for debugging environments that deliberately trap on integer
4178         overflow (e.g., gcc -ftrapv).
4179
4180         * lib/mktime.c (WRAPV): New macro.
4181         (SHR): Also check that long_int and time_t shift right in the
4182         usual way, before using the fast-but-unportable method.
4183         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4184         used.  The code already assumed two's complement, so there's
4185         no need to test for alternatives.  All uses removed.
4186         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4187         the C standard.  Problem reported by Rich Felker in
4188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4189         (twos_complement_arithmetic): Also check long_int and time_t.
4190         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4191         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4192         (__mktime_internal): Avoid integer overflow with unary subtraction
4193         in two instances where -1 - X is an adequate replacement for -X,
4194         since the calculations are approximate.
4195
4196 2011-01-29  Eric Blake  <eblake@redhat.com>
4197
4198         mktime: avoid infinite loop
4199         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4200         type; behavior is still undefined but portable to all known targets.
4201         Reported by Rich Felker.
4202
4203 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4204
4205         rename, unlink, same-inode: Relicense.
4206         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4207         * modules/unlink (License): Likewise.
4208         * modules/same-inode (License): Likewise.
4209
4210 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4211
4212         mktime: avoid problems on NetBSD 5 / i386
4213         * lib/mktime.c (long_int): New type.  This works around a problem
4214         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4215         but time_t is 64 bits, and where I expect the existing code is
4216         wrong in some cases.
4217         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4218         (ydhms_diff): Bring back the compile-time check for wide-enough
4219         year and yday.
4220
4221         mktime: fix misspelling in comment
4222         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4223         This merges all recent glibc changes of importance.
4224
4225 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4226
4227         move-if-change: cope with concurrent mv of identical file.
4228         * build-aux/move-if-change (CMPPROG): Accept environment
4229         variable as an override for `cmp'.
4230         (usage): Document CMPPROG.
4231         Adjust comparison to drop stdout.  Cope with failure of mv if
4232         the target file exists and is identical to the source, for
4233         parallel builds.
4234         Report from H.J. Lu against binutils in PR binutils/12283.
4235
4236 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4237
4238         * users.txt: Mention sharutils.
4239
4240 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4241
4242         * users.txt: Mention OATH Toolkit.
4243
4244 2011-01-27  Bruno Haible  <bruno@clisp.org>
4245
4246         Prepare for supporting FreeBSD 10.
4247         * build-aux/config.libpath: Remove handling of freebsd1*.
4248
4249 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4250
4251         Prepare for supporting FreeBSD 10.
4252         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4253         match FreeBSD 10.0.
4254
4255 2011-01-27  Bruno Haible  <bruno@clisp.org>
4256
4257         vma-iter, get-rusage-as: Add OpenBSD support.
4258         * modules/vma-iter (configure.ac): Test for mquery.
4259         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4260         * lib/vma-iter.c: Include <sys/mman.h>.
4261         (vma_iterate): Add an implementation based on mquery().
4262         * lib/resource-ext.h (get_rusage_as): Update comments.
4263         * lib/get-rusage-as.c: Likewise.
4264         * lib/get-rusage-data.c: Likewise.
4265
4266 2011-01-26  Karl Berry  <karl@gnu.org>
4267
4268         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4269         variables to make it easier to override the makeinfo program used.
4270
4271 2011-01-26  Eric Blake  <eblake@redhat.com>
4272
4273         fcntl: work around Haiku F_DUPFD bugs
4274         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4275         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4276         cloexec bit on duplication.
4277         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4278
4279 2011-01-26  Bruno Haible  <bruno@clisp.org>
4280
4281         Enable memory leak tests on AIX.
4282         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4283         * tests/test-fprintf-posix3.c (main): Likewise.
4284
4285 2011-01-26  Bruno Haible  <bruno@clisp.org>
4286
4287         Tests for module 'get-rusage-data'.
4288         * modules/get-rusage-data-tests: New file.
4289         * tests/test-get-rusage-data.c: New file.
4290
4291         New module 'get-rusage-data'.
4292         * lib/resource-ext.h (get_rusage_data): New declaration.
4293         * lib/get-rusage-data.c: New file.
4294         * modules/get-rusage-data: New file.
4295
4296 2011-01-25  Bruno Haible  <bruno@clisp.org>
4297
4298         get-rusage-as: Allow for easier testing.
4299         * lib/resource-ext.h (get_rusage_as): Add comment.
4300         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4301         (main): New function for interactive testing.
4302
4303 2011-01-25  Bruno Haible  <bruno@clisp.org>
4304
4305         vma-iter: Treat Haiku like BeOS.
4306         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4307         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4308
4309 2011-01-25  Eric Blake  <eblake@redhat.com>
4310
4311         c-stack: fix regression on cygwin when libsigsegv is present
4312         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4313
4314 2011-01-24  Bruno Haible  <bruno@clisp.org>
4315
4316         vma-iter: Avoid empty intervals.
4317         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4318         on an empty interval.
4319
4320 2011-01-24  Jim Meyering  <meyering@redhat.com>
4321
4322         u64: remove unnecessary #include
4323         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4324
4325 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4326
4327         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4328         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4329
4330 2011-01-23  Bruno Haible  <bruno@clisp.org>
4331
4332         New module 'vma-iter'.
4333         * lib/vma-iter.h: New file.
4334         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4335         * modules/vma-iter: New file.
4336         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4337         for get_rusage_as_via_iterator.
4338         (vma_iterate_callback): New function.
4339         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4340         * modules/get-rusage-as (Depends-on): Add vma-iter.
4341
4342 2011-01-23  Bruno Haible  <bruno@clisp.org>
4343
4344         uninorm: Tweak includes.
4345         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4346         Reported by Jim Meyering.
4347
4348 2011-01-23  Bruno Haible  <bruno@clisp.org>
4349
4350         get-rusage-as: Improve on NetBSD.
4351         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4352         /proc, like on FreeBSD.
4353
4354 2011-01-23  Jim Meyering  <meyering@redhat.com>
4355
4356         xreadlink.h: remove unnecessary #include
4357         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4358
4359         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4360         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4361
4362 2011-01-23  Bruno Haible  <bruno@clisp.org>
4363
4364         get-rusage-as: Fix bug.
4365         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4366         original limit when aborting the first loop.
4367
4368 2011-01-23  Bruno Haible  <bruno@clisp.org>
4369
4370         wctype: Ensure valid C syntax.
4371         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4372         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4373
4374 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4375
4376         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4378         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4379         as they are needed only for configure's test case.
4380         This removes two unnecessary symbols from config.h.
4381
4382         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4383         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4385         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4386         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4387         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4388         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4389         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4390         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4391         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4392         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4395         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4396         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4397         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4398         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4399         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4400
4401 2011-01-21  Eric Blake  <eblake@redhat.com>
4402
4403         maintainer-makefile: work with older git for submodule check
4404         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4405         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4406         Reported by Matthias Bolte.
4407
4408         bootstrap: minor portability fixes
4409         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4410         (usage): Omit leading capital and trailing . on help phrases, per
4411         GNU Coding Standards.
4412         (check_versions, top level): Prefix messages with script name.
4413
4414 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4415
4416         bootstrap: support --no-git option
4417         * build-aux/bootstrap: Add --no-git option, to be used when
4418         --gnulib-srcdir points to the exact desired checkout.
4419
4420 2011-01-21  Eric Blake  <eblake@redhat.com>
4421
4422         strerror_r-posix: work with glibc 2.13
4423         * lib/strerror_r.c (strerror_r): Fix return type.
4424
4425 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4426             Bruno Haible  <bruno@clisp.org>
4427
4428         uN_strstr: New unit tests.
4429         * modules/unistr/u8-strstr-tests: New file.
4430         * modules/unistr/u16-strstr-tests: New file.
4431         * modules/unistr/u32-strstr-tests: New file.
4432         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4433         * tests/unistr/test-u8-strstr.c: New file.
4434         * tests/unistr/test-u16-strstr.c: New file.
4435         * tests/unistr/test-u32-strstr.c: New file.
4436
4437 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4438             Bruno Haible  <bruno@clisp.org>
4439
4440         Make uN_strstr functions O(n) worst-case.
4441         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4442         16-bit and 32-bit unit cases, use the unibyte algorithm from
4443         lib/mbsstr.c.
4444         * lib/unistr/u8-strstr.c: Include <string.h>.
4445         (UNIT_IS_UINT8_T): New macro.
4446         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4447         (U_STRLEN, U_STRNLEN): New macros.
4448         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4449         (U_STRLEN, U_STRNLEN): New macros.
4450         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4451         (configure.ac): Update required libunistring version.
4452         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4453         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4454         malloca.
4455         (configure.ac): Update required libunistring version.
4456         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4457         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4458         malloca.
4459         (configure.ac): Update required libunistring version.
4460
4461 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4462             Bruno Haible  <bruno@clisp.org>
4463
4464         Prepare for faster uN_strstr functions.
4465         * lib/str-kmp.h: Support definable UNITs.
4466         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4467         needle_len argument.
4468         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4469         * lib/mbscasestr.c (mbscasestr): Likewise.
4470
4471 2011-01-21  Pádraig Brady <P@draigBrady.com>
4472
4473         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4474         * tests/test-malloca.c (main): Unset the environment variable
4475         to greatly speed up the test.
4476         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4477         * modules/malloca-tests: Depend on unsetenv.
4478
4479 2011-01-21  Pádraig Brady <P@draigBrady.com>
4480
4481         ignore-value: remove stdint dependency
4482         * lib/ignore-value.h: Remove <stdint.h>
4483         * modules/ignore-value: Remove stdint dependency.
4484
4485 2011-01-21  Jim Meyering  <meyering@redhat.com>
4486
4487         maint.mk: adjust variable name to be consistent with other gl_ vars
4488         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4489         to be lower case.
4490
4491 2011-01-20  Jim Meyering  <meyering@redhat.com>
4492
4493         maint.mk: make "check" depend on public-submodule-commit by default
4494         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4495
4496 2011-01-20  Bruno Haible  <bruno@clisp.org>
4497
4498         mbfile, mbiter: Complete change from 2008-12-21.
4499         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4500         * m4/mbiter.m4 (gl_MBITER): Likewise.
4501
4502 2011-01-20  Jim Meyering  <meyering@redhat.com>
4503
4504         init.sh: insert space between each function name and "()"
4505         * tests/init.sh: Make it a little easier to see that a function's
4506         name is "warn_", and not "warn" when looking at the first part of
4507         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4508
4509 2011-01-20  Jim Meyering  <meyering@redhat.com>
4510
4511         mountlist: clean up code formatting
4512         * lib/mountlist.c (read_file_system_list): Split a long line,
4513         correct bracing style, use NULL in place of "(struct statfs *)0",
4514         don't parenthesize return value, add spaces around "=" and after
4515         ";-in-for-stmt".
4516
4517 2011-01-14  Markus Duft <mduft@gentoo.org>
4518
4519         mountlist: add support for Interix
4520         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4521         Apply statvfs to all entries of /dev/fs.
4522         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4523         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4524
4525 2011-01-20  Jim Meyering  <meyering@redhat.com>
4526
4527         maint.mk: improve the public-submodule-commit rule
4528         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4529         to suppress printing of its commands... unless V=1.
4530         Add git submodule's --quiet option to suppress printing of e.g.,
4531         "Entering gnulib" output.
4532         "cd" into $(srcdir) before running git submodule.
4533
4534 2011-01-20  Bruno Haible  <bruno@clisp.org>
4535
4536         include_next: Fix bug introduced on 2011-01-18.
4537         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4538         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4539         ac_cv_header_... variable if the second argument is not 'check'.
4540         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4541         gl_NEXT_HEADERS_INTERNAL.
4542
4543 2011-01-20  Bruno Haible  <bruno@clisp.org>
4544
4545         Allow the user to avoid the GNULIB_TEST_* macros.
4546         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4547         Suggested by Paul Eggert.
4548
4549 2011-01-14  Jim Meyering  <meyering@redhat.com>
4550
4551         bootstrap: avoid failure when there is no .gitmodules file
4552         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4553         has been assigned to, even when its value is the empty string.
4554         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4555         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4556         Reported by John W. Eaton <jwe@gnu.org>.
4557
4558 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4559
4560         assume <ctype.h>, ..., <time.h> exist
4561         For years gnulib has been assuming the existence of the headers
4562         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4563         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4564         them, since they don't appear to be needed.
4565         * README (Portability guidelines): Document this.
4566         * lib/flock.c: Assume <fcntl.h> exists.
4567         * lib/regex_internal.h: Assume <locale.h> exists.
4568         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4569         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4570         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4571         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4572         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4573         * m4/regex.m4 (gl_REGEX): Likewise.
4574         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4575         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4576         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4577         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4578         * tests/test-argp.c: Likewise.
4579         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4580
4581         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4582         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4583         AA_APPLE_UNIVERSAL_BUILD.  See
4584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4585         * NEWS: Document this.
4586
4587 2011-01-19  Eric Blake  <eblake@redhat.com>
4588
4589         c-stack: assume stack overflow if SA_SIGINFO unsupported
4590         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4591         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4592         sigaction will work.
4593         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4594         behavior match Linux.
4595         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4596
4597         stdbool-tests: accomodate Haiku
4598         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4599
4600         binary-io: fix O_TEXT on Haiku
4601         * modules/binary-io (Depends-on): Add fcntl-h.
4602         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4603         than blindly undefining O_TEXT.
4604         Reported by Scott McCreary.
4605
4606 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4607
4608         include_next: do not check for standard headers like stddef.h
4609
4610         I found this problem when modifying Emacs to use gnulib.
4611         I noticed that it added HAVE_STDDEF_H to config.h, even though
4612         gnulib always assumes <stddef.h> exists as per README and this
4613         symbol is unnecessary.
4614         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4615         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4616         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4617         faster for headers like stddef.h that are known to exist.
4618         (gl_CHECK_NEXT_HEADERS): Use it.
4619         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4620         rather than gl_CHECK_NEXT_HEADERS.
4621         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4622         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4623
4624 2011-01-18  Eric Blake  <eblake@redhat.com>
4625
4626         ansi-c++-opt: skip C++ dependency style if C++ is unused
4627         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4628         tests when we know C++ compilation is not desired.
4629         Reported by Scott McCreary.
4630
4631 2011-01-18  Bruno Haible  <bruno@clisp.org>
4632
4633         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4634         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4635         (main): Perform test also when getrlimit and setrlimit don't exist or
4636         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4637         limiting the address space size using setrlimit, compare the address
4638         space size before and after the the test.
4639         * tests/test-dprintf-posix2.c: Likewise.
4640         * tests/test-fprintf-posix3.sh: Update skip messages.
4641         * tests/test-dprintf-posix2.sh: Likewise.
4642         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4643         * modules/dprintf-posix-tests (Depends-on): Likewise.
4644         Reported by Bruce Korb <bkorb@gnu.org> and
4645         Gary V. Vaughan <gary@gnu.org>.
4646
4647 2011-01-18  Bruno Haible  <bruno@clisp.org>
4648
4649         get-rusage-as: Improvement for Cygwin.
4650         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4651         areas that are merely reserved.
4652
4653 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         strftime: remove dependencies on multibyte modules
4656
4657         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4658         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4659         only if __osf__ is defined, and I suspect OSF doesn't need these
4660         other modules.  If my guess is wrong, we'll need to come up with a
4661         variant of strftime that doesn't need the multibyte modules.
4662
4663         I discovered this problem when attempting modify Emacs to use the
4664         strftime module.  With the previous gnulib, this caused Emacs to
4665         need 31 new files, ranging from lib/config.charset to
4666         m4/wint_t.m4.  This was overkill and I expect would be offputting
4667         to the Emacs maintainers.  After this change, only 6 new files are
4668         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4669         stdbool.m4, and tm_gmtoff.m4.
4670
4671         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4672         Suggested by Bruno Haible in
4673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4674         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4675         and do not check for wchar.h.
4676         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4677         (Depends-on): Remove mbrlen, mbsinit, wchar.
4678
4679 2011-01-18  Bruno Haible  <bruno@clisp.org>
4680
4681         Tests for module 'get-rusage-as'.
4682         * modules/get-rusage-as-tests: New file.
4683         * tests/test-get-rusage-as.c: New file.
4684
4685         New module 'get-rusage-as'.
4686         * modules/get-rusage-as: New file.
4687         * lib/resource-ext.h: New file.
4688         * lib/get-rusage-as.c: New file.
4689
4690 2011-01-17  Eric Blake  <eblake@redhat.com>
4691
4692         sigaction: relax license from LGPLv3+ to LGPLv2+
4693         * modules/sigaction (License): Relax to LGPLv2+.
4694
4695 2011-01-14  Bruno Haible  <bruno@clisp.org>
4696
4697         filemode: Make function declarations usable in C++ mode.
4698         * lib/filemode.h: Enclose function declarations in extern "C" block.
4699         Reported by John W. Eaton <jwe@gnu.org>.
4700
4701 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4702
4703         save-cwd: no longer include "xgetcwd.h"
4704         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4705         This avoids a compilation failure in projects that use save-cwd
4706         without also using the xgetcwd module.
4707
4708 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4709
4710         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4711         This is so that a program like Emacs, which needs only dtoastr,
4712         does not have to bother with distributing and compiling ftoastr
4713         and ldtoastr.
4714         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4715         * modules/dtoastr, modules/ldtoastr: New files.
4716         * modules/ftoastr: Now works just for 'float'.
4717         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4718         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4719         dtoastr.c, ldtoastr.c.
4720
4721 2011-01-11  Jim Meyering  <meyering@redhat.com>
4722
4723         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4724         There is no need to work around the lack of the fchdir function,
4725         since gnulib can now provide a replacement when required.
4726         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4727         * modules/save-cwd (Depends-on): Add fchdir.
4728
4729 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4730
4731         openat, save-cwd: avoid xmalloc
4732
4733         This removes a direct (but undocumented) dependency of openat on
4734         xalloc, along with an indirect dependency via save-cwd.  It also
4735         removes a dependency of save-cwd on xgetcwd, and thereby
4736         indirectly on xalloc.  This change causes the openat substitute
4737         to fall back on save_cwd when memory is tight, and for save_cwd to
4738         fail instead of dying when memory is tight, but that's good enough.
4739         Problem and initial idea for fix reported by Bastien Roucaries in
4740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4741
4742         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4743         xalloc.h (for xmalloc).
4744         (openat_proc_name): Use malloc, not xmalloc.
4745         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4746         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4747
4748         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4749         This avoids heap allocation for file names whose lengths are in
4750         the range 512..1023, with the upper bound increasing to at most
4751         4031 depending on the platform's PATH_MAX.  (We do not want
4752         pathmax.h here as it might supply a non-constant PATH_MAX.)
4753         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4754         Perhaps they should be moved to malloca.h?
4755         (OPENAT_BUFFER_SIZE): Use them.
4756
4757 2011-01-10  Bruno Haible  <bruno@clisp.org>
4758
4759         doc: Update users.txt.
4760         * users.txt: Add recutils.
4761
4762 2011-01-09  Karl Berry  <karl@gnu.org>
4763
4764         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4765
4766         * doc/configmake.texi: New file.
4767         * doc/gnulib.texi: Include it.
4768         * modules/configmake: Move documentation from here.
4769
4770 2011-01-09  Bruno Haible  <bruno@clisp.org>
4771
4772         Update to Unicode 6.0.0.
4773         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4774         (get_lbp): Update for Unicode 6.0.0.
4775         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4776         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4777         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4778         U+11001, U+11038..U+11046. Remove U+06DE.
4779         (uc_width): Fix bounds of planes.
4780         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4781         lib/uniwidth/width.c.
4782         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4783         trailing whitespace removed.
4784         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4785         without comments, but with the original copyright notice.
4786         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4787         * lib/unicase/ignorable.h: Likewise.
4788         * lib/unicase/tocasefold.h: Likewise.
4789         * lib/unicase/tolower.h: Likewise.
4790         * lib/unicase/totitle.h: Likewise.
4791         * lib/unicase/toupper.h: Likewise.
4792         * lib/unictype/bidi_of.h: Likewise.
4793         * lib/unictype/blocks.h: Likewise.
4794         * lib/unictype/categ_C.h: Likewise.
4795         * lib/unictype/categ_Cn.h: Likewise.
4796         * lib/unictype/categ_L.h: Likewise.
4797         * lib/unictype/categ_Ll.h: Likewise.
4798         * lib/unictype/categ_Lm.h: Likewise.
4799         * lib/unictype/categ_Lo.h: Likewise.
4800         * lib/unictype/categ_Lu.h: Likewise.
4801         * lib/unictype/categ_M.h: Likewise.
4802         * lib/unictype/categ_Mc.h: Likewise.
4803         * lib/unictype/categ_Me.h: Likewise.
4804         * lib/unictype/categ_Mn.h: Likewise.
4805         * lib/unictype/categ_N.h: Likewise.
4806         * lib/unictype/categ_Nd.h: Likewise.
4807         * lib/unictype/categ_No.h: Likewise.
4808         * lib/unictype/categ_P.h: Likewise.
4809         * lib/unictype/categ_Po.h: Likewise.
4810         * lib/unictype/categ_S.h: Likewise.
4811         * lib/unictype/categ_Sc.h: Likewise.
4812         * lib/unictype/categ_Sk.h: Likewise.
4813         * lib/unictype/categ_Sm.h: Likewise.
4814         * lib/unictype/categ_So.h: Likewise.
4815         * lib/unictype/categ_of.h: Likewise.
4816         * lib/unictype/combining.h: Likewise.
4817         * lib/unictype/ctype_alnum.h: Likewise.
4818         * lib/unictype/ctype_alpha.h: Likewise.
4819         * lib/unictype/ctype_graph.h: Likewise.
4820         * lib/unictype/ctype_lower.h: Likewise.
4821         * lib/unictype/ctype_print.h: Likewise.
4822         * lib/unictype/ctype_punct.h: Likewise.
4823         * lib/unictype/ctype_upper.h: Likewise.
4824         * lib/unictype/decdigit.h: Likewise.
4825         * lib/unictype/digit.h: Likewise.
4826         * lib/unictype/numeric.h: Likewise.
4827         * lib/unictype/pr_alphabetic.h: Likewise.
4828         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4829         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4830         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4831         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4832         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4833         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4834         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4835         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4836         * lib/unictype/pr_case_ignorable.h: Likewise.
4837         * lib/unictype/pr_cased.h: Likewise.
4838         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4839         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4840         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4841         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4842         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4843         * lib/unictype/pr_combining.h: Likewise.
4844         * lib/unictype/pr_composite.h: Likewise.
4845         * lib/unictype/pr_currency_symbol.h: Likewise.
4846         * lib/unictype/pr_decimal_digit.h: Likewise.
4847         * lib/unictype/pr_deprecated.h: Likewise.
4848         * lib/unictype/pr_format_control.h: Likewise.
4849         * lib/unictype/pr_grapheme_base.h: Likewise.
4850         * lib/unictype/pr_grapheme_extend.h: Likewise.
4851         * lib/unictype/pr_grapheme_link.h: Likewise.
4852         * lib/unictype/pr_id_continue.h: Likewise.
4853         * lib/unictype/pr_id_start.h: Likewise.
4854         * lib/unictype/pr_ideographic.h: Likewise.
4855         * lib/unictype/pr_lowercase.h: Likewise.
4856         * lib/unictype/pr_math.h: Likewise.
4857         * lib/unictype/pr_numeric.h: Likewise.
4858         * lib/unictype/pr_other_alphabetic.h: Likewise.
4859         * lib/unictype/pr_other_id_continue.h: Likewise.
4860         * lib/unictype/pr_other_math.h: Likewise.
4861         * lib/unictype/pr_punctuation.h: Likewise.
4862         * lib/unictype/pr_sentence_terminal.h: Likewise.
4863         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4864         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4865         * lib/unictype/pr_unified_ideograph.h: Likewise.
4866         * lib/unictype/pr_uppercase.h: Likewise.
4867         * lib/unictype/pr_xid_continue.h: Likewise.
4868         * lib/unictype/pr_xid_start.h: Likewise.
4869         * lib/unictype/scripts.h: Likewise.
4870         * lib/unictype/scripts_byname.gperf: Likewise.
4871         * lib/unictype/sy_java_ident.h: Likewise.
4872         * lib/unigbrk/gbrkprop.h: Likewise.
4873         * lib/unilbrk/lbrkprop1.h: Likewise.
4874         * lib/unilbrk/lbrkprop2.h: Likewise.
4875         * lib/uninorm/decomposition-table2.h: Likewise.
4876         * lib/uniwbrk/wbrkprop.h: Likewise.
4877         * tests/unicase/test-cased.c: Likewise.
4878         * tests/unicase/test-ignorable.c: Likewise.
4879         * tests/unicase/test-uc_tolower.c: Likewise.
4880         * tests/unicase/test-uc_totitle.c: Likewise.
4881         * tests/unicase/test-uc_toupper.c: Likewise.
4882         * tests/unictype/test-categ_C.c: Likewise.
4883         * tests/unictype/test-categ_Cn.c: Likewise.
4884         * tests/unictype/test-categ_L.c: Likewise.
4885         * tests/unictype/test-categ_Ll.c: Likewise.
4886         * tests/unictype/test-categ_Lm.c: Likewise.
4887         * tests/unictype/test-categ_Lo.c: Likewise.
4888         * tests/unictype/test-categ_Lu.c: Likewise.
4889         * tests/unictype/test-categ_M.c: Likewise.
4890         * tests/unictype/test-categ_Mc.c: Likewise.
4891         * tests/unictype/test-categ_Me.c: Likewise.
4892         * tests/unictype/test-categ_Mn.c: Likewise.
4893         * tests/unictype/test-categ_N.c: Likewise.
4894         * tests/unictype/test-categ_Nd.c: Likewise.
4895         * tests/unictype/test-categ_No.c: Likewise.
4896         * tests/unictype/test-categ_P.c: Likewise.
4897         * tests/unictype/test-categ_Po.c: Likewise.
4898         * tests/unictype/test-categ_S.c: Likewise.
4899         * tests/unictype/test-categ_Sc.c: Likewise.
4900         * tests/unictype/test-categ_Sk.c: Likewise.
4901         * tests/unictype/test-categ_Sm.c: Likewise.
4902         * tests/unictype/test-categ_So.c: Likewise.
4903         * tests/unictype/test-ctype_alnum.c: Likewise.
4904         * tests/unictype/test-ctype_alpha.c: Likewise.
4905         * tests/unictype/test-ctype_graph.c: Likewise.
4906         * tests/unictype/test-ctype_lower.c: Likewise.
4907         * tests/unictype/test-ctype_print.c: Likewise.
4908         * tests/unictype/test-ctype_punct.c: Likewise.
4909         * tests/unictype/test-ctype_upper.c: Likewise.
4910         * tests/unictype/test-decdigit.h: Likewise.
4911         * tests/unictype/test-digit.h: Likewise.
4912         * tests/unictype/test-numeric.h: Likewise.
4913         * tests/unictype/test-pr_alphabetic.c: Likewise.
4914         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4915         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4916         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4917         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4918         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4919         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4920         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4921         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4922         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4923         * tests/unictype/test-pr_cased.c: Likewise.
4924         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4925         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4926         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4927         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4928         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4929         * tests/unictype/test-pr_combining.c: Likewise.
4930         * tests/unictype/test-pr_composite.c: Likewise.
4931         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4932         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4933         * tests/unictype/test-pr_deprecated.c: Likewise.
4934         * tests/unictype/test-pr_format_control.c: Likewise.
4935         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4936         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4937         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4938         * tests/unictype/test-pr_id_continue.c: Likewise.
4939         * tests/unictype/test-pr_id_start.c: Likewise.
4940         * tests/unictype/test-pr_ideographic.c: Likewise.
4941         * tests/unictype/test-pr_lowercase.c: Likewise.
4942         * tests/unictype/test-pr_math.c: Likewise.
4943         * tests/unictype/test-pr_numeric.c: Likewise.
4944         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4945         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4946         * tests/unictype/test-pr_other_math.c: Likewise.
4947         * tests/unictype/test-pr_punctuation.c: Likewise.
4948         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4949         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4950         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4951         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4952         * tests/unictype/test-pr_uppercase.c: Likewise.
4953         * tests/unictype/test-pr_xid_continue.c: Likewise.
4954         * tests/unictype/test-pr_xid_start.c: Likewise.
4955         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4956         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4957         changes.
4958         * lib/unictype/categ_Cc.h: Likewise.
4959         * lib/unictype/categ_Cf.h: Likewise.
4960         * lib/unictype/categ_Co.h: Likewise.
4961         * lib/unictype/categ_Cs.h: Likewise.
4962         * lib/unictype/categ_Lt.h: Likewise.
4963         * lib/unictype/categ_Nl.h: Likewise.
4964         * lib/unictype/categ_Pc.h: Likewise.
4965         * lib/unictype/categ_Pd.h: Likewise.
4966         * lib/unictype/categ_Pe.h: Likewise.
4967         * lib/unictype/categ_Pf.h: Likewise.
4968         * lib/unictype/categ_Pi.h: Likewise.
4969         * lib/unictype/categ_Ps.h: Likewise.
4970         * lib/unictype/categ_Z.h: Likewise.
4971         * lib/unictype/categ_Zl.h: Likewise.
4972         * lib/unictype/categ_Zp.h: Likewise.
4973         * lib/unictype/categ_Zs.h: Likewise.
4974         * lib/unictype/ctype_blank.h: Likewise.
4975         * lib/unictype/ctype_cntrl.h: Likewise.
4976         * lib/unictype/ctype_digit.h: Likewise.
4977         * lib/unictype/ctype_space.h: Likewise.
4978         * lib/unictype/ctype_xdigit.h: Likewise.
4979         * lib/unictype/mirror.h: Likewise.
4980         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4981         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4982         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4983         * lib/unictype/pr_bidi_control.h: Likewise.
4984         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4985         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4986         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4987         * lib/unictype/pr_bidi_pdf.h: Likewise.
4988         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4989         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4990         * lib/unictype/pr_dash.h: Likewise.
4991         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4992         * lib/unictype/pr_diacritic.h: Likewise.
4993         * lib/unictype/pr_extender.h: Likewise.
4994         * lib/unictype/pr_hex_digit.h: Likewise.
4995         * lib/unictype/pr_hyphen.h: Likewise.
4996         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4997         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4998         * lib/unictype/pr_ignorable_control.h: Likewise.
4999         * lib/unictype/pr_iso_control.h: Likewise.
5000         * lib/unictype/pr_join_control.h: Likewise.
5001         * lib/unictype/pr_left_of_pair.h: Likewise.
5002         * lib/unictype/pr_line_separator.h: Likewise.
5003         * lib/unictype/pr_logical_order_exception.h: Likewise.
5004         * lib/unictype/pr_non_break.h: Likewise.
5005         * lib/unictype/pr_not_a_character.h: Likewise.
5006         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5007         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5008         * lib/unictype/pr_other_id_start.h: Likewise.
5009         * lib/unictype/pr_other_lowercase.h: Likewise.
5010         * lib/unictype/pr_other_uppercase.h: Likewise.
5011         * lib/unictype/pr_paired_punctuation.h: Likewise.
5012         * lib/unictype/pr_paragraph_separator.h: Likewise.
5013         * lib/unictype/pr_pattern_syntax.h: Likewise.
5014         * lib/unictype/pr_pattern_white_space.h: Likewise.
5015         * lib/unictype/pr_private_use.h: Likewise.
5016         * lib/unictype/pr_quotation_mark.h: Likewise.
5017         * lib/unictype/pr_radical.h: Likewise.
5018         * lib/unictype/pr_soft_dotted.h: Likewise.
5019         * lib/unictype/pr_space.h: Likewise.
5020         * lib/unictype/pr_titlecase.h: Likewise.
5021         * lib/unictype/pr_variation_selector.h: Likewise.
5022         * lib/unictype/pr_white_space.h: Likewise.
5023         * lib/unictype/pr_zero_width.h: Likewise.
5024         * lib/unictype/sy_c_ident.h: Likewise.
5025         * lib/unictype/sy_c_whitespace.h: Likewise.
5026         * lib/unictype/sy_java_whitespace.h: Likewise.
5027         * lib/uninorm/composition-table.gperf: Likewise.
5028         * lib/uninorm/decomposition-table1.h: Likewise.
5029         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5030         LB8.
5031         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5032         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5033         * modules/unictype/*: Bump version number of expected libunistring
5034         version.
5035
5036 2011-01-09  Bruno Haible  <bruno@clisp.org>
5037
5038         Update to Unicode 5.2.0.
5039         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5040         trailing whitespace removed.
5041
5042 2011-01-09  Bruno Haible  <bruno@clisp.org>
5043
5044         New Unicode character properties, from Unicode 5.2.0.
5045         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5046         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5047         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5048         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5049         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5050         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5051         uc_is_property_cased, uc_is_property_case_ignorable,
5052         uc_is_property_changes_when_lowercased,
5053         uc_is_property_changes_when_uppercased,
5054         uc_is_property_changes_when_titlecased,
5055         uc_is_property_changes_when_casefolded,
5056         uc_is_property_changes_when_casemapped): New declarations.
5057         * lib/unictype/pr_byname.gperf: Add the new properties.
5058         * modules/unictype/property-byname (Depends-on): Depend on the new
5059         properties modules.
5060         * modules/unictype/property-all (Depends-on): Likewise.
5061         * MODULES.html.sh (Unicode string functions): Add
5062         unictype/property-case-ignorable, unictype/property-cased,
5063         unictype/property-changes-when-casefolded,
5064         unictype/property-changes-when-casemapped,
5065         unictype/property-changes-when-lowercased,
5066         unictype/property-changes-when-titlecased,
5067         unictype/property-changes-when-uppercased.
5068
5069         New module 'unictype/property-changes-when-casemapped'.
5070         * modules/unictype/property-changes-when-casemapped: New file.
5071         * lib/unictype/pr_changes_when_casemapped.c: New file.
5072         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5073         generated by gen-uni-tables.
5074         * modules/unictype/property-changes-when-casemapped-tests: New file.
5075         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5076         automatically generated by gen-uni-tables.
5077
5078         New module 'unictype/property-changes-when-casefolded'.
5079         * modules/unictype/property-changes-when-casefolded: New file.
5080         * lib/unictype/pr_changes_when_casefolded.c: New file.
5081         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5082         generated by gen-uni-tables.
5083         * modules/unictype/property-changes-when-casefolded-tests: New file.
5084         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5085         automatically generated by gen-uni-tables.
5086
5087         New module 'unictype/property-changes-when-titlecased'.
5088         * modules/unictype/property-changes-when-titlecased: New file.
5089         * lib/unictype/pr_changes_when_titlecased.c: New file.
5090         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5091         generated by gen-uni-tables.
5092         * modules/unictype/property-changes-when-titlecased-tests: New file.
5093         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5094         automatically generated by gen-uni-tables.
5095
5096         New module 'unictype/property-changes-when-uppercased'.
5097         * modules/unictype/property-changes-when-uppercased: New file.
5098         * lib/unictype/pr_changes_when_uppercased.c: New file.
5099         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5100         generated by gen-uni-tables.
5101         * modules/unictype/property-changes-when-uppercased-tests: New file.
5102         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5103         automatically generated by gen-uni-tables.
5104
5105         New module 'unictype/property-changes-when-lowercased'.
5106         * modules/unictype/property-changes-when-lowercased: New file.
5107         * lib/unictype/pr_changes_when_lowercased.c: New file.
5108         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5109         generated by gen-uni-tables.
5110         * modules/unictype/property-changes-when-lowercased-tests: New file.
5111         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5112         automatically generated by gen-uni-tables.
5113
5114         New module 'unictype/property-case-ignorable'.
5115         * modules/unictype/property-case-ignorable: New file.
5116         * lib/unictype/pr_case_ignorable.c: New file.
5117         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5118         by gen-uni-tables.
5119         * modules/unictype/property-case-ignorable-tests: New file.
5120         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5121         generated by gen-uni-tables.
5122
5123         New module 'unictype/property-cased'.
5124         * modules/unictype/property-cased: New file.
5125         * lib/unictype/pr_cased.c: New file.
5126         * lib/unictype/pr_cased.h: New file, automatically generated by
5127         gen-uni-tables.
5128         * modules/unictype/property-cased-tests: New file.
5129         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5130         gen-uni-tables.
5131
5132 2011-01-09  Bruno Haible  <bruno@clisp.org>
5133
5134         Update to Unicode 5.2.0.
5135         * lib/gen-uni-tables.c (output_predicate, output_category,
5136         output_combclass, output_bidi_category, output_decimal_digit_test,
5137         output_decimal_digit, output_digit_test, output_digit,
5138         output_numeric_test, output_numeric, output_mirror, output_scripts,
5139         output_scripts_byname, output_blocks, output_ident_category): Fix
5140         comment header.
5141         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5142         get_wbp.
5143         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5144         items.
5145         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5146         Changes_When_Lowercased, Changes_When_Uppercased,
5147         Changes_When_Titlecased, Changes_When_Casefolded,
5148         Changes_When_Casemapped.
5149         (is_property_alphabetic, is_property_default_ignorable_code_point):
5150         Update for Unicode 5.2.0.
5151         (is_property_cased, is_property_case_ignorable,
5152         is_property_changes_when_lowercased,
5153         is_property_changes_when_uppercased,
5154         is_property_changes_when_titlecased,
5155         is_property_changes_when_casefolded,
5156         is_property_changes_when_casemapped): New functions.
5157         (output_properties): Output also the properties cased, case_ignorable,
5158         changes_when_lowercased, changes_when_uppercased,
5159         changes_when_titlecased, changes_when_casefolded,
5160         changes_when_casemapped.
5161         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5162         Unicode TR#11 revision 17 -> 19.
5163         (LBP_CP): New enumeration value.
5164         (LBP_*): Adjust values accordingly.
5165         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5166         TR#14 revision 22 -> 24.
5167         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5168         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5169         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5170         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5171         is_WBP_MIDLETTER.
5172         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5173         the code1 and code2 of each composition rule.
5174         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5175         * lib/unicase/ignorable.h: Likewise.
5176         * lib/unicase/tocasefold.h: Likewise.
5177         * lib/unicase/tolower.h: Likewise.
5178         * lib/unicase/totitle.h: Likewise.
5179         * lib/unicase/toupper.h: Likewise.
5180         * lib/unictype/bidi_of.h: Likewise.
5181         * lib/unictype/blocks.h: Likewise.
5182         * lib/unictype/categ_C.h: Likewise.
5183         * lib/unictype/categ_Cf.h: Likewise.
5184         * lib/unictype/categ_Cn.h: Likewise.
5185         * lib/unictype/categ_L.h: Likewise.
5186         * lib/unictype/categ_Ll.h: Likewise.
5187         * lib/unictype/categ_Lm.h: Likewise.
5188         * lib/unictype/categ_Lo.h: Likewise.
5189         * lib/unictype/categ_Lu.h: Likewise.
5190         * lib/unictype/categ_M.h: Likewise.
5191         * lib/unictype/categ_Mc.h: Likewise.
5192         * lib/unictype/categ_Mn.h: Likewise.
5193         * lib/unictype/categ_N.h: Likewise.
5194         * lib/unictype/categ_Nd.h: Likewise.
5195         * lib/unictype/categ_Nl.h: Likewise.
5196         * lib/unictype/categ_No.h: Likewise.
5197         * lib/unictype/categ_P.h: Likewise.
5198         * lib/unictype/categ_Pd.h: Likewise.
5199         * lib/unictype/categ_Po.h: Likewise.
5200         * lib/unictype/categ_S.h: Likewise.
5201         * lib/unictype/categ_Sc.h: Likewise.
5202         * lib/unictype/categ_So.h: Likewise.
5203         * lib/unictype/categ_of.h: Likewise.
5204         * lib/unictype/combining.h: Likewise.
5205         * lib/unictype/ctype_alnum.h: Likewise.
5206         * lib/unictype/ctype_alpha.h: Likewise.
5207         * lib/unictype/ctype_graph.h: Likewise.
5208         * lib/unictype/ctype_lower.h: Likewise.
5209         * lib/unictype/ctype_print.h: Likewise.
5210         * lib/unictype/ctype_punct.h: Likewise.
5211         * lib/unictype/ctype_upper.h: Likewise.
5212         * lib/unictype/decdigit.h: Likewise.
5213         * lib/unictype/digit.h: Likewise.
5214         * lib/unictype/numeric.h: Likewise.
5215         * lib/unictype/pr_alphabetic.h: Likewise.
5216         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5217         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5218         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5219         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5220         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5221         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5222         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5223         * lib/unictype/pr_combining.h: Likewise.
5224         * lib/unictype/pr_composite.h: Likewise.
5225         * lib/unictype/pr_currency_symbol.h: Likewise.
5226         * lib/unictype/pr_dash.h: Likewise.
5227         * lib/unictype/pr_decimal_digit.h: Likewise.
5228         * lib/unictype/pr_deprecated.h: Likewise.
5229         * lib/unictype/pr_diacritic.h: Likewise.
5230         * lib/unictype/pr_extender.h: Likewise.
5231         * lib/unictype/pr_grapheme_base.h: Likewise.
5232         * lib/unictype/pr_grapheme_extend.h: Likewise.
5233         * lib/unictype/pr_grapheme_link.h: Likewise.
5234         * lib/unictype/pr_id_continue.h: Likewise.
5235         * lib/unictype/pr_id_start.h: Likewise.
5236         * lib/unictype/pr_ideographic.h: Likewise.
5237         * lib/unictype/pr_ignorable_control.h: Likewise.
5238         * lib/unictype/pr_logical_order_exception.h: Likewise.
5239         * lib/unictype/pr_lowercase.h: Likewise.
5240         * lib/unictype/pr_numeric.h: Likewise.
5241         * lib/unictype/pr_other_alphabetic.h: Likewise.
5242         * lib/unictype/pr_punctuation.h: Likewise.
5243         * lib/unictype/pr_sentence_terminal.h: Likewise.
5244         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5245         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5246         * lib/unictype/pr_unified_ideograph.h: Likewise.
5247         * lib/unictype/pr_uppercase.h: Likewise.
5248         * lib/unictype/pr_xid_continue.h: Likewise.
5249         * lib/unictype/pr_xid_start.h: Likewise.
5250         * lib/unictype/pr_zero_width.h: Likewise.
5251         * lib/unictype/scripts.h: Likewise.
5252         * lib/unictype/scripts_byname.gperf: Likewise.
5253         * lib/unictype/sy_java_ident.h: Likewise.
5254         * lib/unigbrk/gbrkprop.h: Likewise.
5255         * lib/unilbrk/lbrkprop1.h: Likewise.
5256         * lib/unilbrk/lbrkprop2.h: Likewise.
5257         * lib/unilbrk/lbrktables.h: Likewise.
5258         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5259         LBP_CP. Implement rule LB30.
5260         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5261         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5262         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5263         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5264         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5265         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5266         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5267         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5268         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5269         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5270         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5271         bits instead of 16 bits in the code1 and code2 of each composition
5272         rule.
5273         (uc_composition): Update for Unicode 5.2.0.
5274         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5275         * lib/uninorm/decomposition-table2.h: Likewise.
5276         * lib/uniwbrk/wbrkprop.h: Likewise.
5277         * tests/unicase/test-cased.c: Likewise.
5278         * tests/unicase/test-ignorable.c: Likewise.
5279         * tests/unicase/test-uc_tolower.c: Likewise.
5280         * tests/unicase/test-uc_totitle.c: Likewise.
5281         * tests/unicase/test-uc_toupper.c: Likewise.
5282         * tests/unictype/test-categ_C.c: Likewise.
5283         * tests/unictype/test-categ_Cf.c: Likewise.
5284         * tests/unictype/test-categ_Cn.c: Likewise.
5285         * tests/unictype/test-categ_L.c: Likewise.
5286         * tests/unictype/test-categ_Ll.c: Likewise.
5287         * tests/unictype/test-categ_Lm.c: Likewise.
5288         * tests/unictype/test-categ_Lo.c: Likewise.
5289         * tests/unictype/test-categ_Lu.c: Likewise.
5290         * tests/unictype/test-categ_M.c: Likewise.
5291         * tests/unictype/test-categ_Mc.c: Likewise.
5292         * tests/unictype/test-categ_Mn.c: Likewise.
5293         * tests/unictype/test-categ_N.c: Likewise.
5294         * tests/unictype/test-categ_Nd.c: Likewise.
5295         * tests/unictype/test-categ_Nl.c: Likewise.
5296         * tests/unictype/test-categ_No.c: Likewise.
5297         * tests/unictype/test-categ_P.c: Likewise.
5298         * tests/unictype/test-categ_Pd.c: Likewise.
5299         * tests/unictype/test-categ_Po.c: Likewise.
5300         * tests/unictype/test-categ_S.c: Likewise.
5301         * tests/unictype/test-categ_Sc.c: Likewise.
5302         * tests/unictype/test-categ_So.c: Likewise.
5303         * tests/unictype/test-ctype_alnum.c: Likewise.
5304         * tests/unictype/test-ctype_alpha.c: Likewise.
5305         * tests/unictype/test-ctype_graph.c: Likewise.
5306         * tests/unictype/test-ctype_lower.c: Likewise.
5307         * tests/unictype/test-ctype_print.c: Likewise.
5308         * tests/unictype/test-ctype_punct.c: Likewise.
5309         * tests/unictype/test-ctype_upper.c: Likewise.
5310         * tests/unictype/test-decdigit.h: Likewise.
5311         * tests/unictype/test-digit.h: Likewise.
5312         * tests/unictype/test-numeric.h: Likewise.
5313         * tests/unictype/test-pr_alphabetic.c: Likewise.
5314         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5315         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5316         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5317         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5318         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5319         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5320         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5321         * tests/unictype/test-pr_combining.c: Likewise.
5322         * tests/unictype/test-pr_composite.c: Likewise.
5323         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5324         * tests/unictype/test-pr_dash.c: Likewise.
5325         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5326         * tests/unictype/test-pr_deprecated.c: Likewise.
5327         * tests/unictype/test-pr_diacritic.c: Likewise.
5328         * tests/unictype/test-pr_extender.c: Likewise.
5329         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5330         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5331         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5332         * tests/unictype/test-pr_id_continue.c: Likewise.
5333         * tests/unictype/test-pr_id_start.c: Likewise.
5334         * tests/unictype/test-pr_ideographic.c: Likewise.
5335         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5336         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5337         * tests/unictype/test-pr_lowercase.c: Likewise.
5338         * tests/unictype/test-pr_numeric.c: Likewise.
5339         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5340         * tests/unictype/test-pr_punctuation.c: Likewise.
5341         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5342         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5343         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5344         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5345         * tests/unictype/test-pr_uppercase.c: Likewise.
5346         * tests/unictype/test-pr_xid_continue.c: Likewise.
5347         * tests/unictype/test-pr_xid_start.c: Likewise.
5348         * tests/unictype/test-pr_zero_width.c: Likewise.
5349         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5350         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5351         changed behaviour: line breaking is now disallowed between a letter
5352         or '=' and '('.
5353         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5354         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5355         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5356         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5357         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5358         lib/uniwidth/width.c.
5359         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5360         without comments, but with the original copyright notice.
5361         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5362         changes.
5363         * lib/unictype/categ_Cc.h: Likewise.
5364         * lib/unictype/categ_Co.h: Likewise.
5365         * lib/unictype/categ_Cs.h: Likewise.
5366         * lib/unictype/categ_Lt.h: Likewise.
5367         * lib/unictype/categ_Me.h: Likewise.
5368         * lib/unictype/categ_Pc.h: Likewise.
5369         * lib/unictype/categ_Pe.h: Likewise.
5370         * lib/unictype/categ_Pf.h: Likewise.
5371         * lib/unictype/categ_Pi.h: Likewise.
5372         * lib/unictype/categ_Ps.h: Likewise.
5373         * lib/unictype/categ_Sk.h: Likewise.
5374         * lib/unictype/categ_Sm.h: Likewise.
5375         * lib/unictype/categ_Z.h: Likewise.
5376         * lib/unictype/categ_Zl.h: Likewise.
5377         * lib/unictype/categ_Zp.h: Likewise.
5378         * lib/unictype/categ_Zs.h: Likewise.
5379         * lib/unictype/ctype_blank.h: Likewise.
5380         * lib/unictype/ctype_cntrl.h: Likewise.
5381         * lib/unictype/ctype_digit.h: Likewise.
5382         * lib/unictype/ctype_space.h: Likewise.
5383         * lib/unictype/ctype_xdigit.h: Likewise.
5384         * lib/unictype/mirror.h: Likewise.
5385         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5386         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5387         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5388         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5389         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5390         * lib/unictype/pr_bidi_control.h: Likewise.
5391         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5392         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5393         * lib/unictype/pr_bidi_pdf.h: Likewise.
5394         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5395         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5396         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5397         * lib/unictype/pr_format_control.h: Likewise.
5398         * lib/unictype/pr_hex_digit.h: Likewise.
5399         * lib/unictype/pr_hyphen.h: Likewise.
5400         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5401         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5402         * lib/unictype/pr_iso_control.h: Likewise.
5403         * lib/unictype/pr_join_control.h: Likewise.
5404         * lib/unictype/pr_left_of_pair.h: Likewise.
5405         * lib/unictype/pr_line_separator.h: Likewise.
5406         * lib/unictype/pr_math.h: Likewise.
5407         * lib/unictype/pr_non_break.h: Likewise.
5408         * lib/unictype/pr_not_a_character.h: Likewise.
5409         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5410         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5411         * lib/unictype/pr_other_id_continue.h: Likewise.
5412         * lib/unictype/pr_other_id_start.h: Likewise.
5413         * lib/unictype/pr_other_lowercase.h: Likewise.
5414         * lib/unictype/pr_other_math.h: Likewise.
5415         * lib/unictype/pr_other_uppercase.h: Likewise.
5416         * lib/unictype/pr_paired_punctuation.h: Likewise.
5417         * lib/unictype/pr_paragraph_separator.h: Likewise.
5418         * lib/unictype/pr_pattern_syntax.h: Likewise.
5419         * lib/unictype/pr_pattern_white_space.h: Likewise.
5420         * lib/unictype/pr_private_use.h: Likewise.
5421         * lib/unictype/pr_quotation_mark.h: Likewise.
5422         * lib/unictype/pr_radical.h: Likewise.
5423         * lib/unictype/pr_soft_dotted.h: Likewise.
5424         * lib/unictype/pr_space.h: Likewise.
5425         * lib/unictype/pr_titlecase.h: Likewise.
5426         * lib/unictype/pr_variation_selector.h: Likewise.
5427         * lib/unictype/pr_white_space.h: Likewise.
5428         * lib/unictype/sy_c_ident.h: Likewise.
5429         * lib/unictype/sy_c_whitespace.h: Likewise.
5430         * lib/unictype/sy_java_whitespace.h: Likewise.
5431         * modules/uni*/*: Bump version number of expected libunistring version.
5432         Reported by Simon Josefsson.
5433
5434 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5435
5436         useless-if-before-free: fix typo in --help and make the internal,
5437         automatic version date update process work once again.
5438         --help output contained a NUL character instead of the
5439         backslash-zero that was intended.  Also, the "must lie within
5440         the first 8 lines" line is on line 9, and hence not getting
5441         automatically updated.
5442         * build-aux/useless-if-before-free: Fix the former by adding a
5443         backslash, and the latter by condensing the three lines of what-it-does
5444         to a single line, leaving one line of slack for the future.
5445
5446 2011-01-09  Bruno Haible  <bruno@clisp.org>
5447
5448         uniwidth/width: Fix width of U+1D173..U+1D17A.
5449         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5450         symbolic_width, output_width_property_test): New functions.
5451         (main): Invoke output_nonspacing_property, output_width_property_test.
5452         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5453         U+1D173..U+1D17A.
5454         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5455         1.
5456         * modules/uniwidth/*: Bump version number of expected libunistring
5457         version.
5458         * modules/unilbrk/*: Likewise.
5459
5460 2011-01-08  Bruno Haible  <bruno@clisp.org>
5461
5462         uninorm tests: Preserve copyright of Unicode data file.
5463         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5464         Mention modifications.
5465
5466 2011-01-08  Bruno Haible  <bruno@clisp.org>
5467
5468         gen-uni-tables: Prepare for Unicode 5.2.0.
5469         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5470         (debug_output_lbp, output_lbp): Update.
5471
5472 2011-01-08  Bruno Haible  <bruno@clisp.org>
5473
5474         unilbrk: Clarify gen-uni-tables.c code.
5475         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5476         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5477         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5478
5479 2011-01-07  Bruno Haible  <bruno@clisp.org>
5480
5481         strtod: Restore errno when successfully parsing Infinity or NaN.
5482         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5483         restore the original errno.
5484
5485 2011-01-07  Bruno Haible  <bruno@clisp.org>
5486
5487         remove test: Avoid failure on HP-UX 11.
5488         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5489
5490 2011-01-07  Bruno Haible  <bruno@clisp.org>
5491
5492         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5493         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5494         error code.
5495
5496 2011-01-07  Pádraig Brady <P@draigBrady.com>
5497
5498         ignore-value: fixup comments, and add Eric Blake
5499         as an author since he rewrote the macros.
5500         * lib/ignore-value.h (ignore_value):  State that
5501         we now support aggregates.  Also specify exactly
5502         when the GCC warn_unused_result feature was added.
5503
5504 2011-01-06  Eric Blake  <eblake@redhat.com>
5505
5506         ignore-value: support aggregate types
5507         * lib/ignore-value.h (ignore_value): Provide separate gcc
5508         definition.
5509         * modules/ignore-value-tests: New test module.
5510         * tests/test-ignore-value.c: New test.
5511
5512         maint.mk: improve sc_prohibit_strcmp regex
5513         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5514         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5515         definition of STRNEQ.
5516
5517         signal: work around Haiku issue with SIGBUS
5518         * lib/siglist.h: Add comment.
5519         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5520         strsignal's favoring of SIGSEGV.
5521         * tests/test-signal.c (main): Avoid test failure.
5522         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5523         Reported by Scott McCreary.
5524
5525         maint.mk: add pre-release check to ensure submodule commits are public
5526         * top/maint.mk (public-submodule-commit): New rule.
5527         (submodule-checks): New variable.
5528         (alpha beta stable): Depend on the variable.
5529
5530 2011-01-05  Pádraig Brady <P@draigBrady.com>
5531         and Jim Meyering  <meyering@redhat.com>
5532
5533         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5534         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5535         (ATTRIBUTE_DEPRECATED): Define.
5536         (_ignore_case): New function.
5537         (ignore_value): New macro, to replace the old function.
5538         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5539         * modules/ignore-value (Depends-on): Add stdint.
5540
5541 2011-01-04  Eric Blake  <eblake@redhat.com>
5542
5543         doc: regenerate INSTALL
5544         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5545         @firstparagraphindent support, now that autoconf dropped it.
5546         (INSTALL_PRELUDE): Reinstate old macro.
5547         * doc/install.texi: Resync from autoconf.
5548         * doc/INSTALL: Reflect recent autoconf update.
5549         * doc/INSTALL.ISO: Likewise.
5550         * doc/INSTALL.UTF-8: Likewise.
5551         Reported by Karl Berry.
5552
5553 2011-01-04  Bruce Korb  <address@hidden>
5554
5555         git-version-gen: avoid a sub-shell
5556         * build-aux/git-version-gen: Redirect stderr in `...` via
5557         "exec 2>...", rather than via an added sub-shell.
5558
5559 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5560
5561         git-version-gen: use (...) rather than sh -c '...'
5562         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5563         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5564
5565 2011-01-03  Jim Meyering  <meyering@redhat.com>
5566
5567         git-version-gen: convert leading TABs to spaces
5568         * build-aux/git-version-gen: Expand leading TABs.
5569
5570         git-version-gen: handle failed "git rev-list"
5571         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5572         from git and proceeding as if it had succeeded but printed no SHA1
5573         checksums, suppress the diagnostic and handle the failure.
5574         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5575
5576         git-version-gen: include command name in one more diagnostic
5577         * build-aux/git-version-gen: When the required .tarball-version file
5578         was missing or unreadable, you might see the diagnostic from "cat",
5579         but no trace of the name of the invoking script.  Now, you still see
5580         the diagnostic from cat, but also get one from "git-version-gen: ".
5581         Inspired by a patch from Bruce Korb.
5582
5583         update-copyright: adjust test to match changed code
5584         * tests/test-update-copyright.sh: Change test's expected output
5585         to match new actual output.
5586
5587 2011-01-02  Bruno Haible  <bruno@clisp.org>
5588
5589         getlogin_r: Avoid test failure on HP-UX 11.
5590         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5591         ERANGE when the second argument is zero.
5592         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5593         portability problem.
5594
5595 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5596
5597         * build-aux/update-copyright: doc Simon's changes
5598
5599 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5600
5601         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5602         environment variable.
5603
5604 2011-01-02  Bruno Haible  <bruno@clisp.org>
5605
5606         unigbrk: Avoid gcc warnings.
5607         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5608         unused variable.
5609         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5610         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5611         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5612         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5613         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5614         Change type of first argument to 'const char *'.
5615         (main): Remove unused variable.
5616         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5617         type of first argument to 'const char *'.
5618         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5619         Likewise.
5620         (main): Change type of variable 's'.
5621         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5622         to 'int'.
5623
5624 2011-01-02  Bruno Haible  <bruno@clisp.org>
5625
5626         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5627         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5628         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5629         bug.
5630         * lib/pwrite.c: Undo 2010-12-31 patch.
5631         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5632
5633 2011-01-02  Bruno Haible  <bruno@clisp.org>
5634
5635         pread: Fix test whether it works.
5636         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5637
5638 2011-01-02  Bruno Haible  <bruno@clisp.org>
5639
5640         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5641         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5642         ends in "6". Don't require a specific month name. Try also the locale
5643         names found on HP-UX 11 and Solaris 7.
5644
5645 2011-01-02  Bruno Haible  <bruno@clisp.org>
5646
5647         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5648         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5649         C linkage.
5650         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5651
5652 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5653
5654         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5655         for consistency, since the "cluster" term is not used elsewhere.
5656         * lib/unigbrk.in.h: Update name.
5657         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5658         * lib/unigbrk/u16-grapheme-next.c: Update name.
5659         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5660         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5661         * lib/unigbrk/u32-grapheme-next.c: Update name.
5662         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5663         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5664         * lib/unigbrk/u8-grapheme-next.c: Update name.
5665         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5666         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5667         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5668         Suggested by Bruno Haible.
5669
5670 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5671
5672         Remove module 'u8-grapheme-len' as too redundant with
5673         'u8-grapheme-next'.
5674         * modules/unigbrk/u8-grapheme-len: Delete file.
5675         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5676         * lib/unigbrk.in.h: Remove prototype for deleted function.
5677         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5678         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5679
5680         Remove module 'u16-grapheme-len' as too redundant with
5681         'u16-grapheme-next'.
5682         * modules/unigbrk/u16-grapheme-len: Delete file.
5683         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5684         * lib/unigbrk.in.h: Remove prototype for deleted function.
5685         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5686         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5687
5688         Remove module 'u32-grapheme-len' as too redundant with
5689         'u32-grapheme-next'.
5690         * modules/unigbrk/u32-grapheme-len: Delete file.
5691         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5692         * lib/unigbrk.in.h: Remove prototype for deleted function.
5693         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5694         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5695
5696         Suggested by Bruno Haible.
5697
5698 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5699
5700         * unigbrk.in.h: Fix typo: "ben" => "been".
5701         Reported by Bruno Haible.
5702
5703 2011-01-01  Jim Meyering  <meyering@redhat.com>
5704
5705         maint: update almost all copyright ranges to include 2011
5706         Run the new "make update-copyright" rule.
5707
5708 2011-01-01  Jim Meyering  <meyering@redhat.com>
5709
5710         maint: update-copyright: exempt doc/INSTALL*
5711         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5712         since they are generated.  Suggested by Bruno Haible.
5713
5714 2011-01-01  Jim Meyering  <meyering@redhat.com>
5715
5716         maint: refine the update-copyright rule
5717         * Makefile (update-copyright): Also exclude any file that includes
5718         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5719         code that merely generates the comment.
5720
5721 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5722
5723         New module 'u8-grapheme-len'.
5724         * modules/unigbrk/u8-grapheme-len: New file.
5725         * modules/unigbrk/u8-grapheme-len-tests: New file.
5726         * lib/unigbrk.in.h: Add prototype for new function.
5727         * lib/unigbrk/u8-grapheme-len.c: New file.
5728         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5729
5730         New module 'u16-grapheme-len'.
5731         * modules/unigbrk/u16-grapheme-len: New file.
5732         * modules/unigbrk/u16-grapheme-len-tests: New file.
5733         * lib/unigbrk.in.h: Add prototype for new function.
5734         * lib/unigbrk/u16-grapheme-len.c: New file.
5735         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5736
5737         New module 'u32-grapheme-len'.
5738         * modules/unigbrk/u32-grapheme-len: New file.
5739         * modules/unigbrk/u32-grapheme-len-tests: New file.
5740         * lib/unigbrk.in.h: Add prototype for new function.
5741         * lib/unigbrk/u32-grapheme-len.c: New file.
5742         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5743
5744         New module 'u8-grapheme-next'.
5745         * modules/unigbrk/u8-grapheme-next: New file.
5746         * modules/unigbrk/u8-grapheme-next-tests: New file.
5747         * lib/unigbrk.in.h: Add prototype for new function.
5748         * lib/unigbrk/u8-grapheme-next.c: New file.
5749         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5750
5751         New module 'u16-grapheme-next'.
5752         * modules/unigbrk/u16-grapheme-next: New file.
5753         * modules/unigbrk/u16-grapheme-next-tests: New file.
5754         * lib/unigbrk.in.h: Add prototype for new function.
5755         * lib/unigbrk/u16-grapheme-next.c: New file.
5756         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5757
5758         New module 'u32-grapheme-next'.
5759         * modules/unigbrk/u32-grapheme-next: New file.
5760         * modules/unigbrk/u32-grapheme-next-tests: New file.
5761         * lib/unigbrk.in.h: Add prototype for new function.
5762         * lib/unigbrk/u32-grapheme-next.c: New file.
5763         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5764
5765         New module 'u8-grapheme-prev'.
5766         * modules/unigbrk/u8-grapheme-prev: New file.
5767         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5768         * lib/unigbrk.in.h: Add prototype for new function.
5769         * lib/unigbrk/u8-grapheme-prev.c: New file.
5770         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5771
5772         New module 'u16-grapheme-prev'.
5773         * modules/unigbrk/u16-grapheme-prev: New file.
5774         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5775         * lib/unigbrk.in.h: Add prototype for new function.
5776         * lib/unigbrk/u16-grapheme-prev.c: New file.
5777         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5778
5779         New module 'u32-grapheme-prev'.
5780         * modules/unigbrk/u32-grapheme-prev: New file.
5781         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5782         * lib/unigbrk.in.h: Add prototype for new function.
5783         * lib/unigbrk/u32-grapheme-prev.c: New file.
5784         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5785
5786         New module 'u8-grapheme-breaks'.
5787         * modules/unigbrk/u8-grapheme-breaks: New file.
5788         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5789         * lib/unigbrk.in.h: Add prototype for new function.
5790         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5791         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5792
5793         New module 'u16-grapheme-breaks'.
5794         * modules/unigbrk/u16-grapheme-breaks: New file.
5795         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5796         * lib/unigbrk.in.h: Add prototype for new function.
5797         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5798         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5799
5800         New module 'u32-grapheme-breaks'.
5801         * modules/unigbrk/u32-grapheme-breaks: New file.
5802         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5803         * lib/unigbrk.in.h: Add prototype for new function.
5804         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5805         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5806
5807         New module 'ulc-grapheme-breaks'.
5808         * modules/unigbrk/ulc-grapheme-breaks: New file.
5809         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5810         * m4/locale-ar.m4: New file.
5811         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5812         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5813         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5814
5815 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5816
5817         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5818         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5819         modified how this file was generated before I initially submitted
5820         the module, but failed to regenerate it.  This meant that several
5821         of the level2 entries were wrong.
5822         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5823         Remove the division-by-2 that is folded into the table now that
5824         gbrkprop.h has been regenerated properly.  Now -1 entries are
5825         handled correctly.
5826
5827         New module 'unigbrk/uc-gbrk-prop-tests'.
5828         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5829         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5830         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5831         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5832
5833 2011-01-01  Bruno Haible  <bruno@clisp.org>
5834
5835         Avoid use of hexadecimal escapes.
5836         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5837         instead of hexadecimal escapes.
5838
5839 2011-01-01  Jim Meyering  <meyering@redhat.com>
5840
5841         maint: new rule to update copyright year ranges
5842         * Makefile (update-copyright): New rule.
5843
5844         maint: indent with TABs in Makefile
5845         * Makefile: Expand leading sequences of spaces to TABs
5846
5847         version-etc: update the copyright year it reports
5848         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5849
5850 2010-12-31  Bruno Haible  <bruno@clisp.org>
5851
5852         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5853         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5854         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5855         zero.
5856
5857 2010-12-31  Bruno Haible  <bruno@clisp.org>
5858
5859         pwrite: Work around HP-UX 11.11 bug.
5860         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5861         works and set REPLACE_PWRITE if not.
5862         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5863         function.
5864         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5865
5866 2010-12-31  Bruno Haible  <bruno@clisp.org>
5867
5868         pread: Work around HP-UX 11 bugs.
5869         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5870         and set REPLACE_PREAD if not.
5871         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5872
5873 2010-12-31  Eric Blake  <eblake@redhat.com>
5874
5875         nl_langinfo: fix YESEXPR on Irix 6.5
5876         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5877         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5878         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5879         it.
5880
5881 2010-12-31  Bruno Haible  <bruno@clisp.org>
5882
5883         iconv: Document HP-UX 11 bug.
5884         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5885
5886 2010-12-31  Bruno Haible  <bruno@clisp.org>
5887
5888         ldexpl: Fix link error on HP-UX 11.
5889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5890         LDEXPL_LIBM, using $ISNANL_LIBM.
5891
5892 2010-12-31  Eric Blake  <eblake@redhat.com>
5893
5894         ftello: avoid compilation failure with SunStudio c89
5895         * lib/ftello.c (ftello): Use lseek, not llseek.
5896
5897         tests: avoid failing coreutils tests on cygwin
5898         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5899         (create_exe_shims_): Return 0 when skipping.
5900
5901 2010-12-31  Bruno Haible  <bruno@clisp.org>
5902
5903         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5904         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5905
5906 2010-12-31  Bruno Haible  <bruno@clisp.org>
5907
5908         waitpid: Fix link error in C++ mode.
5909         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5910
5911 2010-12-31  Bruno Haible  <bruno@clisp.org>
5912
5913         isnan: Use GCC built-ins when possible.
5914         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5915         __builtin_isnan.
5916         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5917         (isnan): Define using GCC built-ins for GCC >= 4.0.
5918
5919 2010-12-31  Bruno Haible  <bruno@clisp.org>
5920
5921         isnand: Fix mistake.
5922         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5923         __builtin_isnand.
5924
5925 2010-12-31  Bruno Haible  <bruno@clisp.org>
5926
5927         open: Avoid C++ error on HP-UX 11.
5928         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5929
5930 2010-12-31  Bruno Haible  <bruno@clisp.org>
5931
5932         time_r: Add missing declarations on HP-UX 11.
5933         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5934         instead of HAVE_LOCALTIME_R.
5935         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5936         HAVE_LOCALTIME_R always.
5937         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5938         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5939         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5940         HAVE_LOCALTIME_R.
5941         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5942         * doc/posix-functions/localtime_r.texi: Likewise.
5943
5944 2010-12-29  Eric Blake  <eblake@redhat.com>
5945
5946         mountlist: tweak previous commit
5947         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5948         Reported by Paul Eggert.
5949
5950         mountlist: fix local drive detection on cygwin
5951         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5952         that works for cygwin.
5953
5954 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5955
5956         ftoastr, snprintf: ftoastr + snprintf module
5957         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5958         since the snprintf module now should be good enough here.
5959         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5960         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5961         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5962         GNULIB_SNPRINTF only for the test directory, and the latter
5963         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5964         seems to suffice by itself.
5965
5966 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         alloca: one step towards thread-safety
5969         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5970         need for a static variable.  All callers changed.  This does not
5971         make the alloca replacement thread-safe, but it's one step.
5972
5973         tests: minor indenting change
5974         * tests/init.sh: Sync from coreutils housekeeping patch
5975         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5976         to keep lines within 80 columns.
5977
5978 2010-12-28  Jim Meyering  <meyering@redhat.com>
5979
5980         regex: don't infloop on persistent failing calloc
5981         * lib/regexec.c (build_trtable): Return failure indication upon
5982         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5983         In glibc, this was fixed for version 2.13:
5984         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5985
5986 2010-12-28  Bruno Haible  <bruno@clisp.org>
5987             Paul Eggert <eggert@cs.ucla.edu>
5988
5989         linkat: Make implementation robust against system behaviour variations.
5990         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5991         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5992         way, and to -2 if it needs a generic runtime test.
5993         * lib/linkat.c (solaris_optimized_link_immediate,
5994         solaris_optimized_link_follow): New functions.
5995         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5996         (check_same_link): Use it.
5997
5998 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5999
6000         New module 'unigbrk/base'.
6001         * modules/unigbrk/base: New file.
6002         * lib/unigbrk.in.h: New file.
6003
6004         New module 'unigbrk/uc-gbrk-prop'.
6005         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6006         * modules/unigbrk/uc-gbrk-prop: New file.
6007         * lib/unigbrk/gbrkprop.h: New file.
6008         * lib/unigbrk/uc-gbrk-prop.c: New file.
6009
6010         New module 'unigbrk/uc-is-grapheme-break'.
6011         * modules/unigbrk/uc-is-grapheme-break: New file.
6012         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6013         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6014         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6015         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6016         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6017
6018         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6019
6020 2010-12-27  Bruno Haible  <bruno@clisp.org>
6021
6022         linkat test: Avoid failure on Solaris 11 2010-11.
6023         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6024
6025 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         utimens: work around glibc rounding bug on more platforms
6028         * lib/utimens.c (fdutimens): Work around rounding bug even if
6029         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6031
6032 2010-12-27  Bruno Haible  <bruno@clisp.org>
6033
6034         select tests: Improve comments.
6035         * tests/test-select.c (do_select): Add comments.
6036
6037 2010-12-27  Bruno Haible  <bruno@clisp.org>
6038
6039         select tests: Safer way of handling timeout.
6040         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6041         at every invocation.
6042
6043 2010-12-27  Bruno Haible  <bruno@clisp.org>
6044
6045         select tests: Use 'bool' where appropriate.
6046         * tests/test-select.c (connect_to_socket): Change argument type to
6047         'bool'.
6048
6049 2010-12-27  Bruno Haible  <bruno@clisp.org>
6050
6051         select tests: Use existing modules.
6052         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6053         (configure.ac): Don't test for unistd.h.
6054         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6055         declared in <unistd.h>.
6056
6057 2010-12-27  Bruno Haible  <bruno@clisp.org>
6058
6059         mbrtowc: Work around a Solaris 7 bug.
6060         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6061         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6062         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6063         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6064         MBRTOWC_NULL_ARG1_BUG.
6065         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6066         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6067         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6068         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6069
6070 2010-12-27  Jim Meyering  <meyering@redhat.com>
6071
6072         read-file.c: tweak syntax
6073         * lib/read-file.c (fread_file): Remove space after "*" in function
6074         definitions.
6075
6076 2010-12-27  Bruno Haible  <bruno@clisp.org>
6077
6078         times test: Avoid gcc warnings on OSF/1.
6079         * tests/test-times.c (main): Cast printf arguments from clock_t to
6080         'long int'.
6081
6082 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6083
6084         utimens: work around glibc rounding bug on older Linux kernels
6085         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6086         on Linux with a glibc whose utimes might not work, then work
6087         around a longstanding glibc bug involving rounding rather than
6088         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6090
6091 2010-12-26  Bruno Haible  <bruno@clisp.org>
6092
6093         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6094         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6095         _GL_CXXALIAS_SYS.
6096         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6097
6098 2010-12-26  Bruno Haible  <bruno@clisp.org>
6099
6100         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6101         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6102         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6103         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6104         looking for the declaration.
6105         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6106         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6107         problem.
6108         * doc/posix-functions/inet_pton.texi: Likewise.
6109
6110 2010-12-26  Bruno Haible  <bruno@clisp.org>
6111
6112         arpa_inet: Use the common idioms with C++ support.
6113         * lib/arpa_inet.in.h: Include c++defs.h.
6114         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6115         support.
6116         * modules/arpa_inet (Depends-on): Add c++defs.
6117         (Makefile.am): Substitute the contents of c++defs.h.
6118         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6119         * modules/arpa_inet-c++-tests: New file.
6120         * tests/test-arpa_inet-c++.cc: New file.
6121
6122 2010-12-25  Bruno Haible  <bruno@clisp.org>
6123
6124         Fix more C++ link errors on Solaris 8.
6125         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6126         $(LIB_EACCESS).
6127         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6128         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6129         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6130         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6131         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6132
6133 2010-12-25  Bruno Haible  <bruno@clisp.org>
6134
6135         printf-posix: Fix link error when a non-GCC compiler is used.
6136         * lib/stdio.in.h (printf): When not using GCC, override printf
6137         correctly.
6138         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6139
6140 2010-12-25  Bruno Haible  <bruno@clisp.org>
6141
6142         strerror_r-posix: Update doc.
6143         * doc/posix-functions/strerror_r.texi: Update doc about the return
6144         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6145
6146 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6147
6148         utimens: simplify the logic of the previous change
6149         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6150         This should not affect whether the test succeeds or fails.
6151
6152         utimens: configure better on hosts with NFS clock skew
6153         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6154         uses the clock of the local host.  It might use the clock of the
6155         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6157
6158 2010-12-25  Bruno Haible  <bruno@clisp.org>
6159
6160         ptsname test: Avoid failure on Solaris.
6161         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6162         open a pseudo-terminal; don't use BSD-style ptys.
6163         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6164
6165 2010-12-25  Bruno Haible  <bruno@clisp.org>
6166
6167         ptsname: Avoid ERANGE failure on some systems.
6168         * lib/ptsname.c (buffer): Increase size.
6169
6170 2010-12-25  Bruno Haible  <bruno@clisp.org>
6171
6172         rename, renameat: Avoid test failures at NFS mounted locations.
6173         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6174         so that subsequent mkdir calls succeed.
6175
6176 2010-12-25  Bruno Haible  <bruno@clisp.org>
6177
6178         iswblank: Fix C++ link error on Solaris 8.
6179         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6180         _GL_FUNCDECL_SYS.
6181
6182 2010-12-25  Bruno Haible  <bruno@clisp.org>
6183
6184         unistd: Fix C++ link error on Solaris 8.
6185         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6186
6187 2010-12-25  Bruno Haible  <bruno@clisp.org>
6188
6189         readlink doc: Mention an old glibc bug.
6190         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6191
6192 2010-12-25  Bruno Haible  <bruno@clisp.org>
6193
6194         fcntl-h: Fix for use of C++ on glibc systems.
6195         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6196         also on glibc systems in C++ mode.
6197         Reported by Gary V. Vaughan <gary@gnu.org>.
6198
6199 2010-12-25  Bruno Haible  <bruno@clisp.org>
6200
6201         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6202         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6203
6204 2010-12-25  Bruno Haible  <bruno@clisp.org>
6205
6206         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6207         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6208         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6209         test whether truncl works according to ISO C 99 with IEC 60559.
6210         * m4/truncl-ieee.m4: New file.
6211         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6212         m4/signbit.m4.
6213         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6214
6215 2010-12-25  Bruno Haible  <bruno@clisp.org>
6216
6217         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6218         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6219         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6220         test whether ceill works according to ISO C 99 with IEC 60559.
6221         * m4/ceill-ieee.m4: New file.
6222         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6223         m4/signbit.m4.
6224         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6225
6226 2010-12-25  Bruno Haible  <bruno@clisp.org>
6227
6228         Ensure all prerequisites of <wchar.h> are included.
6229         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6230         before <wchar.h>.
6231         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6232         gl_MBRLEN_NUL_RETVAL): Likewise.
6233         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6234         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6235         AC_FUNC_MBRTOWC): Likewise.
6236         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6237         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6238         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6239         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6240         Likewise.
6241         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6242         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6243         (gl_WCHAR_H): Improve comments.
6244         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6245
6246 2010-12-25  Bruno Haible  <bruno@clisp.org>
6247
6248         strtok_r: Fix C syntax error in autoconf macro.
6249         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6250         characters in test program.
6251
6252 2010-12-24  Bruno Haible  <bruno@clisp.org>
6253
6254         ceil, trunc, round: Fix gcc warnings.
6255         * lib/ceil.c (MIN): Undefine before redefining.
6256         * lib/trunc.c (MIN): Likewise.
6257         * lib/round.c (MIN): Likewise.
6258         Include <math.h> first.
6259
6260 2010-12-24  Bruno Haible  <bruno@clisp.org>
6261
6262         select tests: Avoid failures on OSF/1 5.1.
6263         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6264         failure of closing the last socket; it may fail with ECONNRESET.
6265
6266 2010-12-24  Eric Blake  <eblake@redhat.com>
6267
6268         stdint: avoid HP-UX 10.20 preprocessor bug
6269         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6270         than #if.
6271         * tests/test-floor2.c (main): Likewise.
6272         Reported by Peter O'Gorman.
6273
6274         pipe: make obsoletion transition easier
6275         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6276         * modules/pipe (Files): Include revived file.
6277         (Include): Drop reference, to mirror getdate's behavior.
6278
6279 2010-12-24  Bruno Haible  <bruno@clisp.org>
6280
6281         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6282         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6283         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6284         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6285
6286 2010-12-24  Bruno Haible  <bruno@clisp.org>
6287
6288         gethostname: Ensure declaration on NonStop Kernel.
6289         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6291
6292 2010-12-24  Bruno Haible  <bruno@clisp.org>
6293
6294         sys_select: Ensure all necessary types on NonStop Kernel.
6295         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6296         include <sys/time.h>.
6297         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6298         NonStop Kernel.
6299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6300
6301 2010-12-24  Bruno Haible  <bruno@clisp.org>
6302
6303         sys_select: Remove unneeded include.
6304         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6305         have <sys/select.h>.
6306
6307 2010-12-24  Bruno Haible  <bruno@clisp.org>
6308
6309         gethostname: Provide a fallback for HOST_NAME_MAX.
6310         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6311         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6312         instead.
6313         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6314
6315 2010-12-24  Bruno Haible  <bruno@clisp.org>
6316
6317         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6318         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6319         (SA_RESTART): Likewise.
6320         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6321
6322 2010-12-24  Bruno Haible  <bruno@clisp.org>
6323
6324         signal: Define NSIG.
6325         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6326         * tests/test-signal.c (nsig): New variable.
6327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6328
6329 2010-12-24  Bruno Haible  <bruno@clisp.org>
6330
6331         rename, renameat: Avoid test failures on OSF/1 5.1.
6332         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6333         alternative error codes.
6334         * tests/test-renameat.c (main): Likewise.
6335
6336 2010-12-24  Bruno Haible  <bruno@clisp.org>
6337
6338         *printf: Detect large precisions bug on Solaris 10/SPARC.
6339         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6340         by Paul Eggert.
6341         * tests/test-snprintf-posix.h (test_function): Add this test code here
6342         too.
6343         * tests/test-sprintf-posix.h (test_function): Likewise.
6344         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6345         * tests/test-vasprintf-posix.c (test_function): Likewise.
6346         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6347         around by gnulib.
6348         * doc/posix-functions/printf.texi: Likewise.
6349         * doc/posix-functions/snprintf.texi: Likewise.
6350         * doc/posix-functions/sprintf.texi: Likewise.
6351         * doc/posix-functions/vfprintf.texi: Likewise.
6352         * doc/posix-functions/vprintf.texi: Likewise.
6353         * doc/posix-functions/vsnprintf.texi: Likewise.
6354         * doc/posix-functions/vsprintf.texi: Likewise.
6355         * doc/posix-functions/dprintf.texi: Undo last commit.
6356         * doc/posix-functions/vdprintf.texi: Likewise.
6357
6358 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6359
6360         tests: port test-fdutimensat.c to Solaris 8
6361         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6362         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6363         On Solaris 8, it fails with errno == ENOSYS, because there is no
6364         futimens (so it can't use the fd), and there is no lutimens (so it
6365         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6366
6367         vsnprintf: make more consistent with snprintf; doc fixes
6368
6369         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6370         the byte count return problem was promoted from the snprintf-posix
6371         to the snprintf module.
6372         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6373         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6374         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6375         * tests/test-snprintf.c (main): Check the byte count returned.
6376         * tests/test-vsnprintf.c (main): Likewise.
6377
6378 2010-12-23  Eric Blake  <eblake@redhat.com>
6379
6380         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6381         * modules/sigpipe (License): Relax license.
6382
6383 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         doc: document Solaris printf bug with large float precisions
6386         * doc/posix-functions/dprintf.texi (dprintf):
6387         * doc/posix-functions/fprintf.texi (fprintf):
6388         * doc/posix-functions/printf.texi (printf):
6389         * doc/posix-functions/snprintf.texi (snprintf):
6390         * doc/posix-functions/sprintf.texi (sprintf):
6391         * doc/posix-functions/vdprintf.texi (vdprintf):
6392         * doc/posix-functions/vfprintf.texi (vfprintf):
6393         * doc/posix-functions/vprintf.texi (vprintf):
6394         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6395         * doc/posix-functions/vsprintf.texi (vsprintf):
6396         Mention that these functions mishandle large floating point
6397         precisions on Solaris 10.  The same bug is also present in Solaris
6398         8, and I assume earlier.  This causes "cd gnulib-tests; make
6399         check" to fail on Solaris 8 (and I assume, later) when building
6400         the latest coreutils, in test-vasprintf-posix's call to
6401         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6402         the wide flavors (e.g., wprintf) so this patch just updates the
6403         documentation for the narrow ones.
6404
6405         test-posixtm.c: add two tests
6406         * tests/test-posixtm.c: Add two tests, to highlight the
6407         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6408         around this bug; this is merely to document it.
6409
6410 2010-12-22  Bruno Haible  <bruno@clisp.org>
6411
6412         getlogin_r: Work around portability problem on OSF/1.
6413         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6414         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6415         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6416         test for a truncated result.
6417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6418         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6419         * modules/getlogin_r (Depends-on): Add memchr.
6420         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6421
6422 2010-12-22  Bruno Haible  <bruno@clisp.org>
6423
6424         ptsname: Avoid test failure on OSF/1 5.1.
6425         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6426         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6427         (same_slave): New function.
6428         (main): Use it to compare ptsname's result with the expected file name.
6429
6430 2010-12-22  Bruno Haible  <bruno@clisp.org>
6431
6432         Port extended stdio modules to HP NonStop Kernel.
6433         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6434         macros.
6435         * lib/fbufmode.c: Update comments.
6436         * lib/fflush.c: Likewise.
6437         * lib/fpurge.c: Likewise.
6438         * lib/freadable.c: Likewise.
6439         * lib/freadahead.c: Likewise.
6440         * lib/freading.c: Likewise.
6441         * lib/freadptr.c: Likewise.
6442         * lib/freadseek.c: Likewise.
6443         * lib/fseeko.c: Likewise.
6444         * lib/fseterr.c: Likewise.
6445         * lib/fwritable.c: Likewise.
6446         * lib/fwriting.c: Likewise.
6447         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6448
6449 2010-12-22  Bruno Haible  <bruno@clisp.org>
6450
6451         ttyname_r: Work around bug on OSF/1 5.1.
6452         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6453         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6454         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6455         present.
6456         * lib/ttyname_r.c (ttyname_r): Update comments.
6457
6458 2010-12-22  Bruno Haible  <bruno@clisp.org>
6459
6460         round: Implement result sign according to IEEE 754.
6461         * lib/round.c (MIN, MINUS_ZERO): New macros.
6462         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6463         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6464         * tests/test-round-ieee.c (main): Likewise.
6465         * tests/test-roundl-ieee.c (main): Likewise.
6466
6467         trunc: Implement result sign according to IEEE 754.
6468         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6469         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6470         * tests/test-trunc2.c: Include minus-zero.h.
6471         (MINUS_ZERO): New macro.
6472         (trunc_reference): Keep in sync with lib/trunc.c.
6473         * tests/test-truncf2.c: Include minus-zero.h.
6474         (MINUS_ZERO): New macro.
6475         (truncf_reference): Keep in sync with lib/trunc.c.
6476         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6477         * tests/test-trunc-ieee.c (main): Likewise.
6478         * tests/test-truncl-ieee.c (main): Likewise.
6479
6480         ceil: Implement result sign according to IEEE 754.
6481         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6482         (FUNC): Return -0.0 for -1 < x < 0.
6483         * tests/test-ceil2.c: Include minus-zero.h.
6484         (MINUS_ZERO): New macro.
6485         (ceil_reference): Keep in sync with lib/ceil.c.
6486         * tests/test-ceilf2.c: Include minus-zero.h.
6487         (MINUS_ZERO): New macro.
6488         (ceilf_reference): Keep in sync with lib/ceil.c.
6489         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6490         * tests/test-ceil-ieee.c (main): Likewise.
6491         * tests/test-ceill-ieee.c (main): Likewise.
6492
6493         floor: Implement result sign according to IEEE 754.
6494         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6495         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6496         * tests/test-floorf2.c (floorf_reference): Likewise.
6497         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6498         * tests/test-floor-ieee.c (main): Likewise.
6499         * tests/test-floorl-ieee.c (main): Likewise.
6500
6501 2010-12-22  Bruno Haible  <bruno@clisp.org>
6502
6503         getaddrinfo: Update doc.
6504         * doc/posix-functions/gai_strerror.texi: Return type is also different
6505         on AIX and HP-UX.
6506
6507 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6508
6509         getaddrinfo, inet_ntop: Update doc for Solaris.
6510         * doc/posix-functions/gai_strerror.texi: Return type is also an
6511         issue on Solaris 9 and earlier.
6512         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6513         on Solaris 10 and earlier.
6514
6515 2010-12-21  Bruno Haible  <bruno@clisp.org>
6516
6517         New module 'roundl-ieee'.
6518         * modules/roundl-ieee: New file.
6519         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6520         test whether roundl works according to ISO C 99 with IEC 60559.
6521         * m4/roundl-ieee.m4: New file.
6522         * modules/roundl-ieee-tests: New file.
6523         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6524         * tests/test-roundl.c (main): Remove signbit tests.
6525         * modules/roundl-tests (Depends-on): Remove signbit.
6526         * doc/posix-functions/roundl.texi: Mention the new module.
6527
6528 2010-12-21  Bruno Haible  <bruno@clisp.org>
6529
6530         New module 'truncl-ieee'.
6531         * modules/truncl-ieee: New file.
6532         * modules/truncl-ieee-tests: New file.
6533         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6534         * tests/test-truncl.c (main): Remove signbit tests.
6535         * modules/truncl-tests (Depends-on): Remove signbit.
6536         * doc/posix-functions/truncl.texi: Mention the new module.
6537
6538 2010-12-21  Bruno Haible  <bruno@clisp.org>
6539
6540         New module 'ceill-ieee'.
6541         * modules/ceill-ieee: New file.
6542         * modules/ceill-ieee-tests: New file.
6543         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6544         * tests/test-ceill.c (main): Remove signbit tests.
6545         * modules/ceill-tests (Depends-on): Remove signbit.
6546         * doc/posix-functions/ceill.texi: Mention the new module.
6547
6548 2010-12-21  Bruno Haible  <bruno@clisp.org>
6549
6550         New module 'floorl-ieee'.
6551         * modules/floorl-ieee: New file.
6552         * modules/floorl-ieee-tests: New file.
6553         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6554         * tests/test-floorl.c (main): Remove signbit tests.
6555         * modules/floorl-tests (Depends-on): Remove signbit.
6556         * doc/posix-functions/floorl.texi: Mention the new module.
6557
6558 2010-12-21  Bruno Haible  <bruno@clisp.org>
6559
6560         New module 'round-ieee'.
6561         * modules/round-ieee: New file.
6562         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6563         whether round works according to ISO C 99 with IEC 60559.
6564         * m4/round-ieee.m4: New file.
6565         * modules/round-ieee-tests: New file.
6566         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6567         * tests/test-round1.c (main): Remove signbit tests.
6568         * modules/round-tests (Depends-on): Remove 'signbit'.
6569         * doc/posix-functions/round.texi: Mention the new module.
6570
6571 2010-12-21  Bruno Haible  <bruno@clisp.org>
6572
6573         New module 'trunc-ieee'.
6574         * modules/trunc-ieee: New file.
6575         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6576         whether trunc works according to ISO C 99 with IEC 60559.
6577         * m4/trunc-ieee.m4: New file.
6578         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6580         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6581         * modules/trunc-ieee-tests: New file.
6582         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6583         * tests/test-trunc1.c (main): Remove signbit tests.
6584         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6585         * doc/posix-functions/trunc.texi: Mention the new module.
6586
6587 2010-12-21  Bruno Haible  <bruno@clisp.org>
6588
6589         New module 'ceil-ieee'.
6590         * modules/ceil-ieee: New file.
6591         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6592         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6593         ISO C 99 with IEC 60559.
6594         * m4/ceil-ieee.m4: New file.
6595         * modules/ceil (Files): Add lib/ceil.c.
6596         (Depends-on): Add 'float'.
6597         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6598         * lib/math.in.h (ceil): New declaration.
6599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6600         REPLACE_CEIL.
6601         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6602         * modules/ceil-ieee-tests: New file.
6603         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6604         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6605         * doc/posix-functions/ceil.texi: Mention the new module.
6606
6607 2010-12-21  Bruno Haible  <bruno@clisp.org>
6608
6609         New module 'floor-ieee'.
6610         * modules/floor-ieee: New file.
6611         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6612         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6613         ISO C 99 with IEC 60559.
6614         * m4/floor-ieee.m4: New file.
6615         * modules/floor (Files): Add lib/floor.c.
6616         (Depends-on): Add 'float'.
6617         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6618         * lib/math.in.h (floor): New declaration.
6619         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6620         REPLACE_FLOOR.
6621         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6622         * modules/floor-ieee-tests: New file.
6623         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6624         * tests/test-math-c++.cc: Check the signature of 'floor'.
6625         * doc/posix-functions/floor.texi: Mention the new module.
6626
6627 2010-12-21  Bruno Haible  <bruno@clisp.org>
6628
6629         New module 'roundf-ieee'.
6630         * modules/roundf-ieee: New file.
6631         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6632         test whether roundf works according to ISO C 99 with IEC 60559.
6633         * m4/roundf-ieee.m4: New file.
6634         * modules/roundf-ieee-tests: New file.
6635         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6636         * tests/test-roundf1.c (main): Remove signbit tests.
6637         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6638         * doc/posix-functions/roundf.texi: Mention the new module.
6639
6640 2010-12-21  Bruno Haible  <bruno@clisp.org>
6641
6642         New module 'truncf-ieee'.
6643         * modules/truncf-ieee: New file.
6644         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6645         test whether truncf works according to ISO C 99 with IEC 60559.
6646         * m4/truncf-ieee.m4: New file.
6647         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6649         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6650         * modules/truncf-ieee-tests: New file.
6651         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6652         * tests/test-truncf1.c (main): Remove signbit tests.
6653         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6654         * doc/posix-functions/truncf.texi: Mention the new module.
6655
6656 2010-12-21  Bruno Haible  <bruno@clisp.org>
6657
6658         New module 'ceilf-ieee'.
6659         * modules/ceilf-ieee: New file.
6660         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6661         test whether ceilf works according to ISO C 99 with IEC 60559.
6662         * m4/ceilf-ieee.m4: New file.
6663         * modules/ceilf-ieee-tests: New file.
6664         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6665         * tests/test-ceilf1.c (main): Remove signbit tests.
6666         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6667         * doc/posix-functions/ceilf.texi: Mention the new module.
6668
6669 2010-12-21  Bruno Haible  <bruno@clisp.org>
6670
6671         New module 'floorf-ieee'.
6672         * modules/floorf-ieee: New file.
6673         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6674         test whether floorf works according to ISO C 99 with IEC 60559.
6675         * m4/floorf-ieee.m4: New file.
6676         * modules/floorf-ieee-tests: New file.
6677         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6678         * tests/test-floorf1.c (main): Remove signbit tests.
6679         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6680         * doc/posix-functions/floorf.texi: Mention the new module.
6681
6682 2010-12-21  Bruno Haible  <bruno@clisp.org>
6683
6684         Support for minus zero in autoconf macros.
6685         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6686         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6687         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6688         * tests/minus-zero.h: Update comments.
6689
6690 2010-12-21  Bruno Haible  <bruno@clisp.org>
6691
6692         Tests for module 'ceil'.
6693         * modules/ceil-tests: New file.
6694         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6695         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6696
6697 2010-12-21  Bruno Haible  <bruno@clisp.org>
6698
6699         Tests for module 'floor'.
6700         * modules/floor-tests: New file.
6701         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6702         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6703
6704 2010-12-21  Bruno Haible  <bruno@clisp.org>
6705
6706         math: Fix indentation.
6707         * lib/math.in.h (floorf): Fix indentation.
6708
6709 2010-12-21  Bruno Haible  <bruno@clisp.org>
6710
6711         Fix cross-compilation guesses on Solaris.
6712         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6713         not match "solaris2.10".
6714         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6715         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6716         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6717
6718 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6719
6720         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6721         This fixes a problem observed with the latest coreutils snapshot
6722         that caused a test to fail on Solaris 8.  src/csplit.c's call
6723         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6724         earlier, instead of returning the number of bytes that would have
6725         been generated; this causes csplit to incorrectly report memory
6726         exhaustion.
6727         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6728         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6729         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6730         comments to match.
6731         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6732         Fix typo in matching older versions of Solaris: "solaris2.10"
6733         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6734         only for guessing while cross-compiling.
6735         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6736
6737 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6738
6739         ftoastr: fix comment again
6740         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6741         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6742         Also, simplify example a bit by using flags = 0.
6743
6744 2010-12-20  Bruno Haible  <bruno@clisp.org>
6745
6746         round*, trunc*: Update documentation regarding glibc.
6747         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6748         * doc/posix-functions/round.texi: Likewise.
6749         * doc/posix-functions/roundl.texi: Likewise.
6750         * doc/posix-functions/truncf.texi: Likewise.
6751         * doc/posix-functions/trunc.texi: Likewise.
6752         * doc/posix-functions/truncl.texi: Likewise.
6753
6754 2010-12-20  Bruno Haible  <bruno@clisp.org>
6755
6756         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6757         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6758         * doc/posix-functions/round.texi: Likewise.
6759         * doc/posix-functions/roundl.texi: Likewise.
6760
6761 2010-12-20  Bruno Haible  <bruno@clisp.org>
6762
6763         ttyname_r: Add missing declaration on HP-UX 11.
6764         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6765         HAVE_TTYNAME_R.
6766         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6767         declared. Set HAVE_TTYNAME_R always.
6768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6769         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6770         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6771         HAVE_TTYNAME_R.
6772         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6773
6774 2010-12-20  Bruno Haible  <bruno@clisp.org>
6775
6776         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6777         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6778         * doc/posix-functions/getlogin_r.texi: Likewise.
6779         * tests/test-getlogin.c: Include <errno.h>.
6780         (main): Avoid test failure on HP-UX 11.11.
6781         * tests/test-getlogin_r.c (main): Likewise.
6782
6783 2010-12-20  Bruno Haible  <bruno@clisp.org>
6784
6785         getlogin_r: Add missing declaration on HP-UX 11.
6786         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6787         declared also when it exists as a function.
6788         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6789
6790 2010-12-20  Bruno Haible  <bruno@clisp.org>
6791
6792         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6793         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6794         through wcrtomb.
6795
6796 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6797
6798         ftoastr: fix comment
6799         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6800         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6801
6802 2010-12-19  Bruno Haible  <bruno@clisp.org>
6803
6804         isnan: Ensure it is a macro.
6805         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6806         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6807         Solaris.
6808
6809 2010-12-19  Bruno Haible  <bruno@clisp.org>
6810
6811         ldexpl test: Fix link error on OSF/1 5.1.
6812         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6813
6814 2010-12-19  Bruno Haible  <bruno@clisp.org>
6815
6816         wctype: Make it work in C++ mode on OSF/1 5.1.
6817         * lib/wctype.in.h (iswblank): Declare but not define here.
6818         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6819         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6820         * modules/wctype (Files): Add lib/iswblank.c.
6821
6822 2010-12-19  Bruno Haible  <bruno@clisp.org>
6823
6824         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6825         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6826         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6827
6828 2010-12-19  Bruno Haible  <bruno@clisp.org>
6829
6830         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6831         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6832         _POSIX_PII_SOCKET.
6833         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6834         * doc/posix-functions/recvfrom.texi: Likewise.
6835         * doc/posix-functions/send.texi: Likewise.
6836         * doc/posix-functions/sendto.texi: Likewise.
6837
6838 2010-12-19  Bruno Haible  <bruno@clisp.org>
6839
6840         tcgetsid: Add missing declaration on OSF/1 5.1.
6841         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6842         HAVE_TCGETSID.
6843         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6844         Don't set HAVE_TCGETSID.
6845         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6846         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6847         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6848         HAVE_TCGETSID.
6849         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6850
6851 2010-12-19  Bruno Haible  <bruno@clisp.org>
6852
6853         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6854         * lib/stdio.in.h: During the include_next statement, let recursive
6855         includes of this file include only the system header file.
6856
6857 2010-12-19  Bruno Haible  <bruno@clisp.org>
6858
6859         iconv_open: Fix regression from 2010-12-04.
6860         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6861         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6862
6863 2010-12-19  Bruno Haible  <bruno@clisp.org>
6864
6865         stdbool test: Avoid a gcc warning.
6866         * tests/test-stdbool.c (main): Fail if e1 is false.
6867         Reported by Jim Meyering.
6868
6869 2010-12-19  Jim Meyering  <meyering@redhat.com>
6870
6871         setenv: restore to working order
6872         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6873         mistakenly removed.
6874         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6875         HAVE_SETENV.
6876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6877         HAVE_SETENV.
6878
6879 2010-12-19  Bruno Haible  <bruno@clisp.org>
6880
6881         Document some different function declarations on OSF/1 5.1.
6882         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6883         * doc/posix-functions/inet_ntop.texi: Likewise.
6884         * doc/posix-functions/gethostname.texi: Likewise.
6885         * lib/unistd.in.h (gethostname): Update comment.
6886
6887 2010-12-19  Bruno Haible  <bruno@clisp.org>
6888
6889         doc: Mention vasprintf-posix module.
6890         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6891         the 'vasprintf-posix' module.
6892         * doc/glibc-functions/vasprintf.texi: Likewise.
6893
6894 2010-12-19  Bruno Haible  <bruno@clisp.org>
6895
6896         unsetenv: Add missing declaration on OSF/1 5.1.
6897         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6898         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6899         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6901         not HAVE_UNSETENV.
6902         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6903         HAVE_UNSETENV.
6904         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6905
6906 2010-12-19  Bruno Haible  <bruno@clisp.org>
6907
6908         setenv: Add missing declaration on OSF/1 5.1.
6909         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6910         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6911         declared. Don't set HAVE_SETENV.
6912         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6913         not HAVE_SETENV.
6914         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6915         HAVE_SETENV.
6916         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6917
6918 2010-12-19  Bruno Haible  <bruno@clisp.org>
6919
6920         nl_langinfo tests: Avoid gcc warning.
6921         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6922
6923 2010-12-19  Bruno Haible  <bruno@clisp.org>
6924
6925         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6926         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6927         _GL_CXXALIAS_SYS.
6928
6929 2010-12-19  Bruno Haible  <bruno@clisp.org>
6930
6931         stdbool: Relax test.
6932         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6933         address to 'bool' work in static initializer, for compilers other than
6934         GCC.
6935
6936 2010-12-19  Bruno Haible  <bruno@clisp.org>
6937
6938         ftello: Add missing declaration on OSF/1 5.1.
6939         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6940         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6942         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6943         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6944
6945 2010-12-19  Bruno Haible  <bruno@clisp.org>
6946
6947         fseeko: Add missing declaration on OSF/1 5.1.
6948         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6949         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6951         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6952         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6953
6954 2010-12-19  Bruno Haible  <bruno@clisp.org>
6955
6956         fchdir: Add missing declaration on OSF/1 5.1.
6957         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6960         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6961         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6962
6963 2010-12-19  Bruno Haible  <bruno@clisp.org>
6964
6965         relocatable-prog-wrapper: Separate from relocatable-prog.
6966         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6967         uninstall-relocwrapper rule here.
6968         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6969         Reported by Ian Beckwith <ianb@erislabs.net>.
6970
6971 2010-12-19  Bruno Haible  <bruno@clisp.org>
6972
6973         unistr/u8-mbsnlen: Add missing dependency.
6974         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6975         Reported by Ian Beckwith <ianb@erislabs.net>.
6976
6977 2010-12-19  Bruno Haible  <bruno@clisp.org>
6978
6979         iconv: Make it possible again to use this module without 'iconv-h'.
6980         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6981         if it is not defined.
6982         Reported by Ian Beckwith <ianb@erislabs.net>.
6983
6984 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6985
6986         acl: port to Solaris 8 when copying from tmpfs to ufs
6987         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6988         error number.  Problem observed on Solaris 8 with latest
6989         coreutils, with "mv A B", where A is on a tmpfs file system and B
6990         is on a ufs file system.  This caused coreutils' mv/part-symlink
6991         test to fail.
6992
6993         tests: set fail=0 at start
6994         * tests/init.sh (setup_): Move fail=0 initialization here ...
6995         (mktempd_): ... from here, so that tests can rely on fail being
6996         set to 0 initially.  This fixes a problem in coreutils; see:
6997         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6998
6999 2010-12-18  Bruno Haible  <bruno@clisp.org>
7000
7001         memmem-simple: Stylistic changes.
7002         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7003         Fix preprocessor directive indentation.
7004
7005 2010-12-15  Pádraig Brady <P@draigBrady.com>
7006
7007         memmem, memmem-simple: reorganize and expand empty needle check
7008         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7009         functional checks to memmem-simple so that one has a fully functional
7010         memmem by using just this module.
7011         Restrict the performance only check to the memmem module.
7012         Also expand the empty needle check to ensure the correct
7013         pointer is returned, not just a non NULL pointer.
7014         * doc/glibc-functions/memmem.texi: Rearrange the portability
7015         documentation to correlate with the rearranged checks.
7016         Clarify exactly how the memmem and memmem-simple modules
7017         relate to each other.
7018
7019 2010-12-15  Pádraig Brady <P@draigBrady.com>
7020             Bruno Haible  <bruno@clisp.org>
7021
7022         Improve cross-compilation guesses for uClibc.
7023         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7024         that uClibc does not have the glibc bug.
7025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7027
7028 2010-12-14  Eric Blake  <eblake@redhat.com>
7029
7030         configmake: provide fallbacks for oldest supported autotools
7031         * m4/configmake.m4: New file.
7032         * modules/configmake (Files): Ship it.
7033         (configure.ac): Use it to guarantee fallbacks.
7034
7035 2010-12-13  Pádraig Brady <P@draigBrady.com>
7036
7037         read-file: Improve handling of large files
7038         * lib/read-file.c (fread_file): Minimize realloc()s
7039         for regular files, and better manage sizes around SIZE_MAX.
7040
7041 2010-12-13  Eric Blake  <eblake@redhat.com>
7042
7043         cloexec, fcntl: relax license
7044         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7045         consent from all contributors.
7046         * modules/fcntl (License): Likewise.
7047
7048 2010-12-10  Bruno Haible  <bruno@clisp.org>
7049
7050         Tests for module 'pipe-posix'.
7051         * modules/pipe-posix-tests: New file.
7052         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7053
7054 2010-12-10  Bruno Haible  <bruno@clisp.org>
7055
7056         pipe-posix: Make it work in C++ mode.
7057         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7058         (pipe): Use common idiom, not a macro definition.
7059         * lib/pipe.c: New file.
7060         * m4/pipe.m4: New file.
7061         * modules/pipe-posix (Description): Enhance.
7062         (Files): Add lib/pipe.c, m4/pipe.m4.
7063         (configure.ac): Invoke gl_FUNC_PIPE.
7064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7065         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7066         * tests/test-unistd-c++.cc: Check the signature of pipe.
7067
7068 2010-12-10  Bruno Haible  <bruno@clisp.org>
7069
7070         Rename module 'pipe' to 'spawn-pipe'.
7071         * modules/spawn-pipe: New file, renamed from modules/pipe.
7072         (Files, configure.ac, Makefile.am): Update.
7073         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7074         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7075         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7076         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7077         "spawn-pipe.h" instead of "pipe.h".
7078         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7079         to gl_SPAWN_PIPE.
7080         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7081         (Files, Makefile.am): Update.
7082         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7083         Update.
7084         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7085         Include "spawn-pipe.h" instead of "pipe.h".
7086         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7087         * lib/javacomp.c: Likewise.
7088         * lib/javaversion.c: Likewise.
7089         * lib/pipe-filter-gi.c: Likewise.
7090         * lib/pipe-filter-ii.c: Likewise.
7091         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7092         * modules/javacomp (Depends-on): Likewise.
7093         * modules/javaversion (Depends-on): Likewise.
7094         * modules/pipe-filter-gi (Depends-on): Likewise.
7095         * modules/pipe-filter-ii (Depends-on): Likewise.
7096         * MODULES.html.sh (Executing programs): Update.
7097         * NEWS: Mention the change.
7098
7099 2010-12-10  Eric Blake  <eblake@redhat.com>
7100
7101         pipe-posix: new module
7102         * modules/pipe-posix: New file.
7103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7104         (gl_UNISTD_H): Check for declaration.
7105         * modules/unistd (Makefile.am): Substitute it.
7106         * lib/unistd.in.h (pipe): Provide it for mingw.
7107         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7108         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7109
7110 2010-12-07  Bruno Haible  <bruno@clisp.org>
7111
7112         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7113         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7114         u8_strcmp_gnu.
7115         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7116
7117 2010-12-06  Bruno Haible  <bruno@clisp.org>
7118
7119         Update internal documentation.
7120         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7121
7122 2010-12-04  Bruno Haible  <bruno@clisp.org>
7123
7124         Put more information about failed tests into the test return codes.
7125         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7126         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7127         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7128         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7129         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7130         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7131         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7132         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7133         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7135         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7136         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7137         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7138         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7139         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7140         returns a bit mask.
7141         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7142         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7143         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7144         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7145         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7146         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7147         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7148         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7149         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7150         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7151         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7152         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7153         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7154         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7155         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7156         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7157         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7158         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7159         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7160         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7162         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7164         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7165         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7166         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7167         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7168         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7169         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7170         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7171         gl_PRINTF_PRECISION): Likewise.
7172         * m4/regex.m4 (gl_REGEX): Likewise.
7173         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7174         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7176         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7177         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7179         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7180         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7181         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7182         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7183         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7184         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7185         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7186         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7187         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7188         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7189         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7190         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7192         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7193         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7194         enumerated value.
7195         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7196
7197 2010-12-04  Bruno Haible  <bruno@clisp.org>
7198
7199         Update for Solaris 11 2010-11.
7200         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7201         Express, released in November 2010.
7202
7203 2010-12-04  Bruno Haible  <bruno@clisp.org>
7204
7205         nproc: Relax license.
7206         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7207         and Paul Eggert.
7208         Requested by Ludovic Courtès <ludo@gnu.org>.
7209
7210 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7211
7212         utimecmp: fine-grained src to nearby coarse-grained dest
7213
7214         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7215         and the source is on a file system with higher-resolution time
7216         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7217         not work, and the time stamps are close together, the algorithm to
7218         determine the exact resolution from the read-back mtime was buggy:
7219         it had a "!=" where it should have had an "==".  This bug has been
7220         in the code ever since it was introduced to gnulib.
7221         Problem reported by Dan Jacobson in
7222         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7223
7224 2010-11-30  Bruno Haible  <bruno@clisp.org>
7225
7226         strerror_r-posix: Fix autoconf test.
7227         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7228
7229 2010-11-28  Bruno Haible  <bruno@clisp.org>
7230             Paul Eggert  <eggert@cs.ucla.edu>
7231
7232         Tests for module 'getdomainname'.
7233         * modules/getdomainname-tests: New file.
7234         * tests/test-getdomainname.c: New file, based on
7235         tests/test-gethostname.c.
7236
7237 2010-11-28  Bruno Haible  <bruno@clisp.org>
7238             Paul Eggert  <eggert@cs.ucla.edu>
7239
7240         getdomainname: Use the system function when possible.
7241         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7242         (getdomainname): Replace if needed. Provide the declaration if it is
7243         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7244         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7245         (getdomainname): When the system has getdomainname, call the system
7246         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7247         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7248         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7249         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7250         the function if its second argument is of type 'int' or if it is found
7251         in libnsl.
7252         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7253         <sys/systeminfo.h> and sysinfo().
7254         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7256         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7257         HAVE_GETDOMAINNAME.
7258         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7259         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7260         * doc/glibc-functions/getdomainname.texi: Document the problems with
7261         the getdomainname declaration.
7262
7263 2010-11-28  Bruno Haible  <bruno@clisp.org>
7264
7265         sys_socket: Ensure ss_family field on AIX.
7266         * lib/sys_socket.in.h (ss_family): New macro definition.
7267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7268         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7269         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7270         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7271         * modules/sys_socket (Makefile.am): Substitute
7272         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7273         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7274
7275 2010-11-27  Bruno Haible  <bruno@clisp.org>
7276
7277         readline: Improve configure output.
7278         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7279         "checking for readline..." result understandable.
7280
7281 2010-11-27  Bruno Haible  <bruno@clisp.org>
7282
7283         *printf-posix: Detect a bug on Solaris 10/x86.
7284         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7285         for floating-point output.
7286         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7287         directive.
7288         * tests/test-snprintf-posix.h (test_function): Likewise.
7289         * tests/test-sprintf-posix.h (test_function): Likewise.
7290         * tests/test-vasprintf-posix.c (test_function): Likewise.
7291         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7292         * doc/posix-functions/printf.texi: Likewise.
7293         * doc/posix-functions/snprintf.texi: Likewise.
7294         * doc/posix-functions/sprintf.texi: Likewise.
7295         * doc/posix-functions/vfprintf.texi: Likewise.
7296         * doc/posix-functions/vprintf.texi: Likewise.
7297         * doc/posix-functions/vsnprintf.texi: Likewise.
7298         * doc/posix-functions/vsprintf.texi: Likewise.
7299         * doc/glibc-functions/obstack_printf.texi: Likewise.
7300         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7301
7302 2010-11-27  Bruno Haible  <bruno@clisp.org>
7303
7304         Fix link error when module libunistring-optional is in use.
7305         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7306         * modules/striconveha-tests (Makefile.am): Likewise.
7307
7308 2010-11-27  Bruno Haible  <bruno@clisp.org>
7309
7310         regex: Mention link dependencies.
7311         * modules/regex (Link): New section.
7312         * modules/rpmatch (Link): Likewise.
7313         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7314
7315 2010-11-27  Bruno Haible  <bruno@clisp.org>
7316
7317         ftoastr: Fix compilation error on Solaris.
7318         * lib/ftoastr.c: Include <config.h>.
7319
7320 2010-11-27  Bruno Haible  <bruno@clisp.org>
7321
7322         getloadavg: Update documentation.
7323         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7324
7325 2010-11-27  Bruno Haible  <bruno@clisp.org>
7326
7327         sys_socket: Fix test whether the functions are declared.
7328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7329         not <sys/select.h>.
7330
7331 2010-11-27  Bruno Haible  <bruno@clisp.org>
7332
7333         getpass: Make sure to get system declaration on some platforms.
7334         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7335         gl_USE_SYSTEM_EXTENSIONS.
7336         * modules/getpass (Depends-on): Add extensions.
7337
7338 2010-11-26  Bruno Haible  <bruno@clisp.org>
7339
7340         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7341         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7342         'iconv' module is present.
7343         (ICONV_CONST): New macro.
7344         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7345         ICONV_CONST.
7346         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7347         set ICONV_CONST.
7348         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7349         here.
7350         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7351         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7352         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7353         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7354         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7355         present.
7356
7357 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7358
7359         ftoastr: comment fix
7360         * lib/ftoastr.c: "little" -> "little or no" in comment
7361
7362 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7363
7364         stdint: port to GCC 4.3 + OSX + Octave
7365         On this platform, stdint.h is buggy and defines int64_t to long
7366         long int.  The replacement defined it to long int, causing
7367         problems with C++ style name mangling.  Instead, trust the system
7368         definition if INT64_MAX is defined, and likewise for the unsigned
7369         variant.   Problem reported by Jarno Rajahalme in
7370         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7371         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7372         and don't mess with int64_t and INT64_MAX in this case.
7373         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7374
7375 2010-11-24  Bruno Haible  <bruno@clisp.org>
7376
7377         doc: Corrections regarding MacOS X 10.4 and 10.5.
7378         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7379         MacOS X.
7380         Reported by Simon Josefsson.
7381
7382 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7383
7384         Uninstall ".bin" files installed by relocwrapper.
7385         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7386         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7387         unless it is already there.
7388
7389 2010-11-21  Bruno Haible  <bruno@clisp.org>
7390
7391         Update for NetBSD 5.0.
7392         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7393         NetBSD; the test fails on NetBSD 5.0.
7394         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7395         about NetBSD.
7396
7397 2010-11-21  Bruno Haible  <bruno@clisp.org>
7398
7399         Update for HP-UX 11.23 and HP-UX 11.31.
7400         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7401         HP-UX.
7402
7403 2010-11-21  Bruno Haible  <bruno@clisp.org>
7404
7405         Update for MacOS X 10.5.
7406         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7407         MacOS X; the test fails on MacOS X 10.5.8.
7408         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7409         about MacOS X.
7410
7411 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7412
7413         bootstrap: add bootstrap_sync option.
7414         See discussion at
7415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7416         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7417         * build-aux/bootstrap: Accept --bootstrap-sync to update
7418         bootstrap if it is not identical to the local gnulib's
7419         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7420         enable this by default.  Accept --no-bootstrap-sync to disable
7421         it.
7422
7423 2010-11-20  Bruno Haible  <bruno@clisp.org>
7424
7425         Ensure that <features.h> is included before __GLIBC__ is tested.
7426         * lib/printf-parse.h: Include <features.h>.
7427         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7428         Reported by Mike Frysinger <vapier@gentoo.org>.
7429
7430         Ensure that <features.h> is included before __GLIBC__ is tested.
7431         * lib/wchar.in.h: Include <features.h>.
7432         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7433         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7434         Reported by Mike Frysinger <vapier@gentoo.org>.
7435
7436         Ensure that <features.h> is included before __GLIBC__ is tested.
7437         * lib/arpa_inet.in.h: Include <features.h>.
7438         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7439         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7440         Reported by Mike Frysinger <vapier@gentoo.org>.
7441
7442         Ensure that <features.h> is included before __GLIBC__ is tested.
7443         * build-aux/link-warning.h: Include <features.h>.
7444         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7445         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7446         Reported by Mike Frysinger <vapier@gentoo.org>.
7447
7448         Ensure that <features.h> is included before __GLIBC__ is tested.
7449         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7450         Reported by Mike Frysinger <vapier@gentoo.org>.
7451
7452 2010-11-20  Bruno Haible  <bruno@clisp.org>
7453
7454         memmem: Fix autoconf test.
7455         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7456
7457 2010-11-20  Bruno Haible  <bruno@clisp.org>
7458
7459         Port to uClibc.
7460         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7461         * lib/fcntl.in.h: Likewise.
7462         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7463         * lib/mbrtowc.c (mbrtowc): Likewise.
7464         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7465         * lib/strerror_r.c: Likewise.
7466         * lib/unistr/u8-strnlen.c: Likewise.
7467         * lib/vasnprintf.c (decimal_point_char): Likewise.
7468         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7469         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7470         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7471         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7472         * tests/test-sigaction.c (handler, main): Likewise.
7473         * lib/freading.h: Treat uClibc like a non-glibc platform.
7474         * lib/freading.c: Likewise.
7475         * lib/gettext.h: Likewise.
7476         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7477         Likewise.
7478         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7479         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7480         * lib/propername.c (proper_name_utf8): Likewise.
7481         * lib/spawn.in.h: Likewise.
7482         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7483         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7484         mem_cd_iconveh_internal): Likewise.
7485         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7486         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7487         strstr, strcasestr): Likewise.
7488         * lib/unicodeio.c (unicode_to_mb): Likewise.
7489         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7490         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7491         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7492         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7493         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7494         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7495         * lib/unistr/u8-stpncpy.c: Likewise.
7496         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7497         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7498         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7499         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7500         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7501         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7502         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7505         Likewise.
7506         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7507         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7508         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7509         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7511         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7512         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7513         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7514         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7515         * tests/test-striconveha.c (main): Likewise.
7516         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7517         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7518         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7519         * doc/posix-functions/getline.texi: Likewise.
7520         Reported by Mike Frysinger <vapier@gentoo.org>.
7521
7522 2010-11-20  Bruno Haible  <bruno@clisp.org>
7523
7524         nproc: Fix condition.
7525         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7526         HAVE_PTHREAD_AFFINITY_NP.
7527
7528 2010-11-20  Bruno Haible  <bruno@clisp.org>
7529
7530         Fix a comment.
7531         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7532
7533 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7534
7535         ftoastr: don't assume snprintf
7536         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7537         Implement a subset of snprintf here, by using sprintf safely.
7538         * modules/ftoastr (Depends-on): Remove snprintf.
7539
7540 2010-11-19  Jim Meyering  <meyering@redhat.com>
7541
7542         test-rename.h: fix compilation failure
7543         * tests/test-rename.h (test_rename): Add omitted "}".
7544
7545 2010-11-17  Jim Meyering  <meyering@redhat.com>
7546
7547         maint.mk: add a URL discussing the no-@acronym policy
7548         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7549
7550 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7551
7552         ftoastr: depend on snprintf, improve comments
7553         * lib/ftoastr.c: Also mention Loitsch's draft.
7554         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7555         needed in the current implementation, but it might simplify
7556         speeding up the code later.
7557         * modules/ftoastr: Depend on snprintf; this improves portability.
7558         Suggested by Bruno Haible in the same email.
7559
7560         ftoastr: port to hosts lacking strtof and strtold
7561         Problem reported by Bruno Haible in
7562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7563         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7564         environment and strtold (and presumably strtof) are not available.
7565         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7566         (configure.ac): Require gl_C99_STRTOLD.
7567
7568 2010-11-18  Bruno Haible  <bruno@clisp.org>
7569
7570         c-strtold: Avoid link error on AIX 7.
7571         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7572         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7573         (gl_C_STRTOLD): Test whether strtold_l exists.
7574         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7575
7576 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7577
7578         intprops: new macro INT_BITS_STRLEN_BOUND
7579         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7580         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7581         not exposed.  Also, it uses a slightly tighter bound than before;
7582         though this makes no practical difference, we might as well be as
7583         tight as we easily can.
7584
7585         ftoastr: new module, for lossless conversion of floats to short strings
7586         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7587         * modules/ftoastr: New files.
7588
7589 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7590
7591         bootstrap: port to Solaris sed
7592         * build-aux/bootstrap (get_version): Port to Solaris sed.
7593         See Ralf Wildenhues's note in
7594         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7595
7596 2010-11-14  Jim Meyering  <meyering@redhat.com>
7597
7598         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7599         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7600         and move definition closer to sole use.
7601
7602 2010-11-13  Jim Meyering  <meyering@redhat.com>
7603
7604         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7605         Now we require at least autoconf-2.59, which means the work-around
7606         is no longer needed.
7607         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7608         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7609         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7610         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7611         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7612
7613 2010-11-13  Bruno Haible  <bruno@clisp.org>
7614
7615         rename, renameat: Avoid test failures at NFS mounted locations.
7616         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7617         functions.
7618         (test_rename): Use assert_nonexistent.
7619         * tests/test-rename.c: Include <dirent.h>.
7620         * tests/test-renameat.c: Likewise.
7621         Reported by Gary V. Vaughan <gary@gnu.org>.
7622
7623         rename, renameat: Document Linux bug with NFS
7624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7625         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7626         * doc/posix-functions/renameat.texi: Likewise.
7627         Suggested by Eric Blake.
7628
7629 2010-11-13  Bruno Haible  <bruno@clisp.org>
7630
7631         rename test: Add comments.
7632         * tests/test-rename.h (test_rename): Add structure and comments.
7633
7634 2010-11-13  Eric Blake  <eblake@redhat.com>
7635
7636         maintainer-makefile: cover a few more files
7637         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7638         scripts generated within C files, for libvirt.
7639
7640 2010-11-13  Bruno Haible  <bruno@clisp.org>
7641
7642         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7643         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7644         character, return the number of bytes that belong together, not always
7645         1.
7646         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7647         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7648         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7649         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7650         number of bytes of an invalid character.
7651         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7652         (main): Invoke it.
7653         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7654         results.
7655         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7656         malformed byte sequences.
7657         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7658         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7659         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7660         Reported by Ben Pfaff and Paolo Bonzini.
7661
7662 2010-11-13  Bruno Haible  <bruno@clisp.org>
7663
7664         openat: Work around glibc bug with fchownat() and empty file names.
7665         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7666         (gl_FUNC_FCHOWNAT): Invoke it.
7667         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7668         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7669         Reported by Gary V. Vaughan <gary@gnu.org>.
7670
7671 2010-11-13  Bruno Haible  <bruno@clisp.org>
7672
7673         openat: Ensure autoconf macro ordering.
7674         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7675         gl_USE_SYSTEM_EXTENSIONS.
7676         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7677
7678 2010-11-13  Bruno Haible  <bruno@clisp.org>
7679
7680         Update comments.
7681         * lib/unistr/u8-check.c: Update file name in comments.
7682         * lib/unistr/u8-mblen.c: Likewise.
7683         * lib/unistr/u8-prev.c: Likewise.
7684         * lib/unistr/u8-strmblen.c: Likewise.
7685         * lib/unistr/u8-strmbtouc.c: Likewise.
7686
7687 2010-11-13  Jim Meyering  <meyering@redhat.com>
7688
7689         tests: avoid test failure on Solaris 10 due to lack of PATH export
7690         * tests/test-update-copyright.sh: Don't forget to export PATH.
7691
7692         init.sh: ensure that IFS is defined, just in case...
7693         * tests/init.sh (setup_): Ensure that IFS is defined,
7694         so that saving and restoring it works as expected.  This
7695         appears to be useful at least for an old version of dash
7696         from a long time ago (RH 6).  See here for details:
7697         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7698
7699         maint.mk: tighten "test a == b" check
7700         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7701         test to files that contain something like #!/bin/sh.
7702         Without this, coreutils would get two false positives in
7703         the comments of C source files.
7704
7705 2010-11-12  Eric Blake  <eblake@redhat.com>
7706
7707         bootstrap: fix typo in previous attempt
7708         * build-aux/bootstrap (buildreq): Correct the grouping.
7709         Reported by Paul Eggert.
7710
7711         maintainer-makefile: prohibit test x == x
7712         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7713         Based on a report by Matthias Bolte.
7714
7715         bootstrap: allow FreeBSD gzip
7716         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7717         which has no '.' and goes to stderr.
7718         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7719         Reported by Matthias Bolte.
7720
7721         maintainer-makefile: check for i18n setup
7722         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7723         will likely work.
7724
7725 2010-11-12  Bruno Haible  <bruno@clisp.org>
7726
7727         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7728         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7729         * lib/nanosleep.c (nanosleep): Likewise.
7730
7731 2010-11-11  Bruno Haible  <bruno@clisp.org>
7732
7733         fcntl-h: Fix for use of C++ on glibc systems.
7734         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7735         also on glibc systems in C++ mode.
7736         Reported by Gary V. Vaughan <gary@gnu.org>.
7737
7738 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7739
7740         mknod: avoid false failure with dash
7741         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7742
7743 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7744
7745         unlink: Fix "is it should" typo in diagnostic.
7746         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7747         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7748
7749 2010-11-11  Bruno Haible  <bruno@clisp.org>
7750
7751         Tests for module 'strerror_r-posix'.
7752         * modules/strerror_r-posix-tests: New file.
7753         * tests/test-strerror_r.c: New file.
7754         * tests/test-string-c++.cc: Check the signature of strerror_r.
7755
7756         New module 'strerror_r-posix'.
7757         * lib/string.in.h (strerror_r): New declaration.
7758         * lib/strerror_r.c: New file.
7759         * m4/strerror_r.m4: New file.
7760         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7761         of strerror_r.
7762         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7763         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7764         * modules/strerror_r-posix: New file.
7765         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7766         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7767         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7768         portability problems.
7769
7770 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7771
7772         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7773         line is also considered for output. Quoted function name in shell
7774         command, so temporary files for functions like MyClass::operator()
7775         are removed correctly without errors.
7776
7777 2010-11-09  Bruno Haible  <bruno@clisp.org>
7778
7779         * doc/posix-functions/strerror.texi: List more failing platforms.
7780
7781         * doc/posix-functions/strerror.texi: Add a comment.
7782
7783 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7784
7785         fdopendir: fix bug on MacOS X when low on file descriptors
7786
7787         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7788         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7789         All callers changed.
7790         (fdopendir): Invoke save_cwd at the top level, not after using
7791         multiple dup() calls to use up file descriptors.  Then retry
7792         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7793         less than the maximum number of open file descriptors, because
7794         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7795         on Mac OS X 10.6.4 for tar 1.24
7796         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7797         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7798         and for tar 1.25
7799         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7800
7801 2010-11-07  Bruno Haible  <bruno@clisp.org>
7802
7803         vasnprintf: Support I flag on glibc systems.
7804         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7805         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7806         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7807         snprintf function.
7808         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7809         glibc systems.
7810         * tests/test-vasnprintf-posix3.c: New file.
7811         * modules/vasnprintf-posix-tests (Files): Add it.
7812         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7813
7814 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7815
7816         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7817         * MODULES.html.sh: For compiler warnings, use name
7818         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7819
7820 2010-11-05  Eric Blake  <eblake@redhat.com>
7821
7822         ceil, floor: avoid spurious failure with icc
7823         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7824         [denormals-as-zero] when optimizing without -mieee-fp option.
7825         * tests/test-floorf2.c (floorf_reference): Likewise.
7826         * tests/test-ceilf1.c (dummy): New function.
7827         (main): Use it to outsmart icc's optimization.
7828         * tests/test-floorf1.c (dummy, main): Likewise.
7829
7830         tests: require working signbit
7831         * modules/ceilf-tests (Depends-on): Add signbit.
7832         * modules/ceill-tests (Depends-on): Likewise.
7833         * modules/floorf-tests (Depends-on): Likewise.
7834         * modules/floorl-tests (Depends-on): Likewise.
7835         * modules/round-tests (Depends-on): Likewise.
7836         * modules/roundf-tests (Depends-on): Likewise.
7837         * modules/roundl-tests (Depends-on): Likewise.
7838         * modules/trunc-tests (Depends-on): Likewise.
7839         * modules/truncf-tests (Depends-on): Likewise.
7840         * modules/truncl-tests (Depends-on): Likewise.
7841
7842         strtod: work around icc bug
7843         * lib/strtod.c (minus_zero): Define to working value.
7844         (strtod): Use it to avoid icc bug.
7845
7846         copysign: enhance tests
7847         * modules/copysign-tests (Files): Add minus-zero.h.
7848         * tests/test-copysign.c (main): Also test zeros.
7849
7850 2010-11-04  Eric Blake  <eblake@redhat.com>
7851
7852         ceil, floor, round, trunc: enhance tests of -0
7853         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7854         * tests/test-ceill.c (main): Likewise.
7855         * tests/test-floorf1.c (main): Likewise.
7856         * tests/test-floorl.c (main): Likewise.
7857         * tests/test-round1.c (main): Likewise.
7858         * tests/test-roundf1.c (main): Likewise.
7859         * tests/test-roundl.c (main): Likewise.
7860         * tests/test-trunc1.c (main): Likewise.
7861         * tests/test-truncf1.c (main): Likewise.
7862         * tests/test-truncl.c (main): Likewise.
7863
7864 2010-11-04  Eric Blake  <eblake@redhat.com>
7865
7866         frexp, tests: work around ICC bug with -zero
7867         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7868         works with more compilers.
7869         * tests/minus-zero.h: New file.
7870         * modules/ceilf-tests (Files): Include it.
7871         * modules/ceill-tests (Files): Likewise.
7872         * modules/floorf-tests (Files): Likewise.
7873         * modules/floorl-tests (Files): Likewise.
7874         * modules/frexp-nolibm-tests (Files): Likewise.
7875         * modules/frexp-tests (Files): Likewise.
7876         * modules/frexpl-nolibm-tests (Files): Likewise.
7877         * modules/frexpl-tests (Files): Likewise.
7878         * modules/isnan-tests (Files): Likewise.
7879         * modules/isnand-nolibm-tests (Files): Likewise.
7880         * modules/isnand-tests (Files): Likewise.
7881         * modules/isnanf-nolibm-tests (Files): Likewise.
7882         * modules/isnanf-tests (Files): Likewise.
7883         * modules/isnanl-nolibm-tests (Files): Likewise.
7884         * modules/isnanl-tests (Files): Likewise.
7885         * modules/round-tests (Files): Likewise.
7886         * modules/roundf-tests (Files): Likewise.
7887         * modules/roundl-tests (Files): Likewise.
7888         * modules/ldexpl-tests (Files): Likewise.
7889         * modules/signbit-tests (Files): Likewise.
7890         * modules/snprintf-posix-tests (Files): Likewise.
7891         * modules/sprintf-posix-tests (Files): Likewise.
7892         * modules/strtod-tests (Files): Likewise.
7893         * modules/trunc-tests (Files): Likewise.
7894         * modules/truncf-tests (Files): Likewise.
7895         * modules/truncl-tests (Files): Likewise.
7896         * modules/vsnprintf-posix-tests (Files): Likewise.
7897         * modules/vsprintf-posix-tests (Files): Likewise.
7898         * modules/vasnprintf-posix-tests (Files): Likewise.
7899         * modules/vasprintf-posix-tests (Files): Likewise.
7900         * tests/test-ceilf1.c (main): Use it.
7901         * tests/test-ceill.c (main): Likewise.
7902         * tests/test-floorf1.c (main): Likewise.
7903         * tests/test-floorl.c (main): Likewise.
7904         * tests/test-frexp.c (main): Likewise.
7905         * tests/test-frexpl.c (main): Likewise.
7906         * tests/test-isnan.c (main): Likewise.
7907         * tests/test-isnand.h (main): Likewise.
7908         * tests/test-isnanf.h (main): Likewise.
7909         * tests/test-isnanl.h (main): Likewise.
7910         * tests/test-ldexpl.c (main): Likewise.
7911         * tests/test-round.c (main): Likewise.
7912         * tests/test-roundf.c (main): Likewise.
7913         * tests/test-roundl.c (main): Likewise.
7914         * tests/test-signbit.c (test_signbitf, test_signbitd)
7915         (test_signbitl): Likewise.
7916         * tests/test-snprintf-posix.h (test_function): Likewise.
7917         * tests/test-sprintf-posix.h (test_function): Likewise.
7918         * tests/test-strtod.c (main): Likewise.
7919         * tests/test-trunc1.c (main): Likewise.
7920         * tests/test-truncf1.c (main): Likewise.
7921         * tests/test-truncl.c (main): Likewise.
7922
7923         isnanl: work around icc bug
7924         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7925
7926 2010-11-03  Eric Blake  <eblake@redhat.com>
7927
7928         tests: fix compiler warnings
7929         * tests/test-getopt.h (test_getopt): Fix condition.
7930         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7931         * tests/test-pipe2.c (main): Likewise.
7932         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7933
7934         utimens: fix broken m4 test
7935         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7936
7937 2010-10-28  Bruno Haible  <bruno@clisp.org>
7938
7939         posix_spawn*, getdtablesize: Relax license.
7940         * modules/posix_spawn (License): Change to LGPLv2+.
7941         * modules/posix_spawnp (License): Likewise.
7942         * modules/posix_spawn-internal (License): Likewise.
7943         * modules/posix_spawnattr_init (License): Likewise.
7944         * modules/posix_spawnattr_getflags (License): Likewise.
7945         * modules/posix_spawnattr_setflags (License): Likewise.
7946         * modules/posix_spawnattr_getpgroup (License): Likewise.
7947         * modules/posix_spawnattr_setpgroup (License): Likewise.
7948         * modules/posix_spawnattr_getschedparam (License): Likewise.
7949         * modules/posix_spawnattr_setschedparam (License): Likewise.
7950         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7951         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7952         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7953         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7954         * modules/posix_spawnattr_getsigmask (License): Likewise.
7955         * modules/posix_spawnattr_setsigmask (License): Likewise.
7956         * modules/posix_spawnattr_destroy (License): Likewise.
7957         * modules/posix_spawn_file_actions_init (License): Likewise.
7958         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7959         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7960         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7961         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7962         * modules/getdtablesize (License): Likewise.
7963         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7964
7965 2010-10-26  Bruno Haible  <bruno@clisp.org>
7966
7967         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7968         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7969         Cygwin and mingw.
7970         Suggested by Eric Blake.
7971
7972 2010-10-26  Bruno Haible  <bruno@clisp.org>
7973
7974         stdio: Work around compilation error due to renameat() on Solaris 10.
7975         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7976         * lib/renameat.c: Don't include <unistd.h> here.
7977         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7978         Reported by Paul Eggert and Eric Blake.
7979
7980 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7981
7982         renameat: port to Solaris 10, which declares renameat in unistd.h
7983
7984         * lib/renameat.c: Include unistd.h before stdio.h, because
7985         Solaris 10 declares renameat in unistd.h.  Problem encountered
7986         when building GNU tar 1.24 on Solaris 10.
7987
7988 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7989
7990         fdopendir: fix C89 compilation
7991         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7992         compilers.
7993
7994 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7995
7996         inttostr: simplify by removing unnecessary redundancy
7997         * lib/anytostr.c: Don't include verify.h.
7998         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7999         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8000         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8001         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8002         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8003         Likewise.
8004         * modules/inttostr (Depends-on): Remove 'verify'.
8005
8006 2010-10-23  Bruno Haible  <bruno@clisp.org>
8007
8008         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8009         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8010         Reported by Eric Blake.
8011
8012 2010-10-23  Bruno Haible  <bruno@clisp.org>
8013
8014         Tests: Fix LOCALE_JA on MirBSD 10.
8015         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8016         to an UTF-8 locale.
8017         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8018         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8019         Reported by Eric Blake.
8020
8021 2010-10-21  Bruno Haible  <bruno@clisp.org>
8022
8023         nl_langinfo test: Avoid test failure on NetBSD 5.
8024         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8025         Reported by Eric Blake.
8026
8027 2010-10-21  Eric Blake  <eblake@redhat.com>
8028
8029         c-stack: work around libsigsegv 2.8 bug
8030         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8031         overflow on at least PowerPC64.
8032
8033 2010-10-17  Bruno Haible  <bruno@clisp.org>
8034
8035         userspec: Drop redundant file.
8036         * modules/userspec (Files): Remove lib/inttostr.h.
8037
8038 2010-10-17  Bruno Haible  <bruno@clisp.org>
8039
8040         nl_langinfo tests: Silence some warnings.
8041         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8042         Reported by Jim Meyering.
8043
8044 2010-10-17  Bruno Haible  <bruno@clisp.org>
8045
8046         Make use of GCC's attribute __alloc_size__.
8047         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8048         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8049         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8050         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8051         __alloc_size__.
8052         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8053         Suggested by Jim Meyering.
8054
8055 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8056
8057         bootstrap: anchor .gitignore entries.
8058         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8059         with...
8060         (insert_vc_ignore): ... this new function, which prepends `/' to
8061         all .gitignore entries before passing them to
8062         insert_sorted_if_absent.
8063
8064 2010-10-16  Bruno Haible  <bruno@clisp.org>
8065
8066         nextafter: Fix configure check.
8067         * modules/nextafter (configure.ac): Correct expected prototype.
8068
8069 2010-10-16  Bruno Haible  <bruno@clisp.org>
8070
8071         termios: Update documentation.
8072         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8073
8074 2010-10-16  Bruno Haible  <bruno@clisp.org>
8075
8076         tests: Make them compile with TinyCC.
8077         * tests/test-strstr.c (main): Remove parentheses around array
8078         initializer.
8079
8080 2010-10-15  Eric Blake  <eblake@redhat.com>
8081
8082         ignore-value: make header idempotent
8083         * lib/ignore-value.h: Add double-inclusion guards.
8084         Reported by Stefan Berger.
8085
8086 2010-10-15  Jim Meyering  <meyering@redhat.com>
8087
8088         GNUmakefile: handle "stable" target, not "major"
8089         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8090         lists in maint.mk and announce-gen.  Without this, "make stable"
8091         would fail to ensure that $(VERSION) is up to date.
8092
8093 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8094
8095         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8096         & co.
8097
8098 2010-10-14  Bruno Haible  <bruno@clisp.org>
8099
8100         vasnprintf: Don't set errno to 0.
8101         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8102         block that sets it to 0.
8103         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8104
8105 2010-10-14  Bruno Haible  <bruno@clisp.org>
8106
8107         socketlib: Fix.
8108         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8109         gl_PREREQ_SYS_H_WINSOCK2.
8110         Reported by Ian Beckwith <ianb@erislabs.net>.
8111
8112 2010-10-13  Jim Meyering  <meyering@redhat.com>
8113
8114         test-select-stdin.c: avoid warn_unused_result warnings
8115         * tests/test-select-stdin.c: Include "macros.h".
8116         ASSERT that read and fflush succeed.
8117
8118 2010-10-13  Jim Meyering  <meyering@redhat.com>
8119
8120         git-version-gen: do require git-VC'd files in cwd
8121         * build-aux/git-version-gen: Reject a git version string
8122         if there are no commits associated with the current directory.
8123         This avoids an unlikely false-positive (unrelated dir whose parent
8124         repository also contains a tag matching v*), as pointed out
8125         by Giuseppe Scrivano in
8126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8127
8128 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8129
8130         argv-iter: omit nonconforming declaration
8131         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8132         enum arg_iter_err declaration, which doesn't conform to C99.
8133         Solaris 10 cc warns about this.
8134
8135 2010-10-13  Eric Blake  <eblake@redhat.com>
8136
8137         termios: fix compilation on mingw
8138         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8139         (gl_TERMIOS_H): Adjust it on mingw.
8140         * modules/termios (Makefile.am): Substitute new key.
8141         * lib/termios.in.h (includes): Make include_next conditional.
8142         * doc/posix-headers/termios.texi (termios.h): Update
8143         documentation.
8144         Reported by Daniel P. Berrange.
8145
8146 2010-10-13  Jim Meyering  <meyering@redhat.com>
8147
8148         git-version-gen: don't require that .git/ be in the current dir
8149         * build-aux/git-version-gen: Adjust this script so that it works
8150         when run from any working directory beneath the top-level .git/-
8151         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8152         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8153
8154         test-select: avoid warn_unused_result warnings
8155         * tests/test-select.c: Include "macros.h".
8156         ASSERT that each call to read, write, and pipe succeeds.
8157         While not technically required, also check each "close".
8158         * modules/select-tests (Files): Add tests/macros.h.
8159
8160         test-symlinkat: remove declaration of unused local
8161         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8162
8163         test-inttostr: avoid shadowing warnings
8164         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8165         and use malloc rather than the stack for the same reason as
8166         mentioned in the comment justifying the other allocation.
8167
8168 2010-10-11  Bruno Haible  <bruno@clisp.org>
8169
8170         stdlib: Allow multiple gnulib generated replacements to coexist.
8171         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8172         Reported by Sam Steingold <sds@gnu.org>.
8173
8174 2010-10-11  Jim Meyering  <meyering@redhat.com>
8175
8176         fix a documentation typo
8177         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8178
8179 2010-10-11  Eric Blake  <eblake@redhat.com>
8180
8181         futimens: work around Solaris 11 bug
8182         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8183         * tests/test-futimens.h (test_futimens): Enhance, rather than
8184         weaken test.
8185         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8186
8187 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8188
8189         Indentation.
8190         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8191         higher-level operators more to the left.
8192
8193 2010-10-11  Jim Meyering  <meyering@redhat.com>
8194
8195         test-futimens: avoid unwarranted test failure on Solaris 5.11
8196         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8197         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8198         because it tries to dereference the NULL name argument.
8199
8200 2010-10-11  Bruno Haible  <bruno@clisp.org>
8201
8202         Indentation.
8203         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8204         indentation.
8205
8206 2010-10-11  Jim Meyering  <meyering@redhat.com>
8207
8208         spawn.in.h: make indentation consistent with parentheses
8209         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8210         Make indentation consistent with parentheses.
8211
8212 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8213
8214         Fix mismatched parens in previous commit
8215         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8216         parens.
8217
8218 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8219
8220         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8221
8222         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8223         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8224         * lib/malloca.c: Include "verify.h".
8225         (verify1): Remove, replacing with a verify call.
8226         * lib/relocwrapper.c (verify1): Likewise.
8227         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8228         Likewise.
8229         * modules/malloca (Depends-on): Add 'verify'.
8230         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8231         * modules/vasnprintf (Depends-on): Add 'verify'.
8232         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8233         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8234         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8235         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8236         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8237         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8238         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8239
8240         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8241
8242         Formerly the style was sometimes 2*X - 1, because the C standard
8243         was wrongly thought to disallow ?: in integral constant expressions.
8244         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8245         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8246         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8247         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8248         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8249         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8250         verify that time_t cannot be floating.
8251
8252 2010-10-08  Eric Blake  <eblake@redhat.com>
8253
8254         time: enforce recent POSIX ruling that time_t is integral
8255         * lib/time.in.h (__time_t_must_be_integral): Detect any
8256         problematic systems, allowing the rest of gnulib to assume POSIX.
8257
8258 2010-10-08  Jim Meyering  <meyering@redhat.com>
8259
8260         fdopendir: fix a bug on systems lacking openat and /proc support
8261         OpenBSD 4.7 is one such system.  The most noticeable effect was
8262         failure of any application making nontrivial use of fts: rm, du,
8263         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8264           ./rm: traversal failed: `a': Bad file descriptor
8265         Debugging that, you see that even though FD 6 was closed just
8266         prior to the opendir call in fd_clone_opendir, its resulting
8267         dir->dd_fd was 8, rather than the expected value of 6:
8268
8269         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8270         93                close (fd);
8271         (gdb) n
8272         94                dir = fd_clone_opendir (dupfd);
8273         (gdb) n
8274         95                saved_errno = errno;
8275         (gdb) p dir->dd_fd
8276         $11 = 8
8277
8278         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8279         The problem is that on OpenBSD, fd_clone_opendir has to resort
8280         to using the old-style save/restore CWD mechanism, due to its
8281         lack of openat/proc support, and *that* would steal the FD (6)
8282         that opendir was supposed to use.
8283
8284         The fix is to squirrel away the desired FD so that save_cwd uses a
8285         different one, and then free the dest FD right before calling opendir.
8286         That guarantees opendir will use the required file descriptor.
8287
8288         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8289
8290 2010-10-08  Bruno Haible  <bruno@clisp.org>
8291
8292         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8293         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8294
8295 2010-10-08  Bruno Haible  <bruno@clisp.org>
8296
8297         nanosleep: Make replacement POSIX compliant.
8298         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8299         is out of range.
8300         Reported by Jim Meyering.
8301
8302 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8303
8304         bootstrap: add hook for altering gnulib.mk, for Bison
8305         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8306         the Bison bootstrapping process can rewrite file names and variables
8307         in this file before later parts of 'bootstrap' use the file.
8308         Bison wants to include lib/gnulib.mk from the top-level makefile,
8309         so it needs the file names in this file to be relative to the top
8310         level, not relative to lib; plus it needs variable names to be
8311         rewritten.
8312         (slurp): Use the new function.
8313
8314         bootstrap: reformat for readability
8315         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8316
8317 2010-10-08  Eric Blake  <eblake@redhat.com>
8318
8319         docs: update cygwin progress
8320         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8321         1.7.7.
8322         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8323         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8324         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8325         * doc/posix-functions/carg.texi (carg): Likewise.
8326         * doc/posix-functions/cargf.texi (cargf): Likewise.
8327         * doc/posix-functions/casin.texi (casin): Likewise.
8328         * doc/posix-functions/casinf.texi (casinf): Likewise.
8329         * doc/posix-functions/casinh.texi (casinh): Likewise.
8330         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8331         * doc/posix-functions/catan.texi (catan): Likewise.
8332         * doc/posix-functions/catanf.texi (catanf): Likewise.
8333         * doc/posix-functions/catanh.texi (catanh): Likewise.
8334         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8335         * doc/posix-functions/ccos.texi (ccos): Likewise.
8336         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8337         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8338         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8339         * doc/posix-functions/cexp.texi (cexp): Likewise.
8340         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8341         * doc/posix-functions/cimag.texi (cimag): Likewise.
8342         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8343         * doc/posix-functions/clog.texi (clog): Likewise.
8344         * doc/posix-functions/clogf.texi (clogf): Likewise.
8345         * doc/posix-functions/conj.texi (conj): Likewise.
8346         * doc/posix-functions/conjf.texi (conjf): Likewise.
8347         * doc/posix-functions/cpow.texi (cpow): Likewise.
8348         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8349         * doc/posix-functions/cproj.texi (cproj): Likewise.
8350         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8351         * doc/posix-functions/creal.texi (creal): Likewise.
8352         * doc/posix-functions/crealf.texi (crealf): Likewise.
8353         * doc/posix-functions/csin.texi (csin): Likewise.
8354         * doc/posix-functions/csinf.texi (csinf): Likewise.
8355         * doc/posix-functions/csinh.texi (csinh): Likewise.
8356         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8357         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8358         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8359         * doc/posix-functions/ctan.texi (ctan): Likewise.
8360         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8361         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8362         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8363         * doc/posix-headers/complex.texi (complex.h): Likewise.
8364
8365 2010-10-07  Jim Meyering  <meyering@redhat.com>
8366
8367         parse-datetime: avoid compilation failure on OpenBSD 4.7
8368         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8369         This works around a compilation failure on OpenBSD 4.7:
8370         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8371
8372 2010-10-07  Eric Blake  <eblake@redhat.com>
8373
8374         docs: update cygwin progress
8375         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8376         1.7.6.
8377         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8378         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8379         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8380         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8381         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8382         Likewise.
8383         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8384         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8385         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8386         Likewise.
8387         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8388         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8389         Likewise.
8390         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8391         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8392         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8393         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8394         Likewise.
8395         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8396         Likewise.
8397         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8398
8399         docs: update parse-datetime history
8400         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8401         documentation of this function's history and alternatives.
8402
8403         cygwin: use more robust version check
8404         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8405         exclude an eventual cygwin 1.9.1.
8406         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8407         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8408         (gl_FUNC_STRCASESTR): Likewise.
8409         Reported by Bruno Haible.
8410
8411 2010-10-06  Bruno Haible  <bruno@clisp.org>
8412
8413         string, sys_select: Avoid #including large headers unless necessary.
8414         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8415         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8416         OSF/1, BeOS, Haiku.
8417         Reported by Jim Meyering.
8418
8419 2010-10-05  Eric Blake  <eblake@redhat.com>
8420
8421         memmem, strstr, strcasestr: fix bug with long periodic needle
8422         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8423         periodic needle having false positive.
8424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8425         and cygwin 1.7.7.
8426         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8428         (gl_FUNC_STRCASESTR): Likewise.
8429         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8430         * tests/test-memmem.c (main): Expose the bug.
8431         * tests/test-strcasestr.c (main): Likewise.
8432         * tests/test-strstr.c (main): Likewise.
8433         * tests/test-c-strcasestr.c (main): Likewise.
8434         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8435         * doc/posix-functions/strstr.texi (strstr): Likewise.
8436         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8437         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8438
8439 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8440
8441         parse-datetime: do some more renaming
8442         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8443         parse_datetime, not get_date.  Mention the renaming.
8444         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8445         in comments.
8446         * m4/bison.m4: Likewise.
8447
8448 2010-10-05  Eric Blake  <eblake@redhat.com>
8449
8450         parse-datetime: better name than get_date
8451         * NEWS: Reword the deprecation notice.
8452         * modules/get_date: Rename to modules/parse-datetime.
8453         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8454         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8455         * lib/get_date.y: Rename to lib/parse-datetime.y.
8456         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8457         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8458         * doc/getdate.texi: Provide fallback wrapper.
8459         * lib/getdate.h: Move guts, and wrap...
8460         * lib/parse-datetime.h: ...new file.
8461         * lib/parse-datetime.y (get_date): Rename...
8462         (parse_datetime): ...to this.
8463         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8464         (gl_PARSE_DATETIME): ...to this.
8465         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8466         documentation.
8467         * modules/getdate (Files): Provide fallback docs and header.
8468         (Notice, Depends-on): Update references.
8469         * tests/test-parse-datetime.c: Likewise.
8470         * DEPENDENCIES: Likewise.
8471         * MODULES.html.sh (Date and time <time.h>): Likewise.
8472         * doc/parse-datetime.texi (Date input formats)
8473         (Authors of parse_datetime): Likewise.
8474         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8475         (Include): Likewise.
8476         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8477         * gnulib-tool: Likewise.
8478         * m4/bison.m4 (gl_BISON): Likewise.
8479         Suggested by Bruno Haible.
8480
8481 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8482
8483         more ports to Solaris tr, which needs [] around ranges
8484         * gnulib-tool: Solaris tr needs [] around ranges.
8485         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8486         * tests/test-pipe-filter-gi1.c (main): Likewise.
8487         * tests/test-pipe-filter-ii1.c (main): Likewise.
8488
8489 2010-10-05  Eric Blake  <eblake@redhat.com>
8490
8491         bootstrap: fix Solaris regression
8492         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8493         around ranges.
8494         Reported by Pádraig Brady.
8495
8496         bootstrap: work with pkg-config
8497         * build-aux/bootstrap (check_versions): Also transliterate - in
8498         prerequisite name.
8499         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8500         prerequisites that were already found, to avoid confusion.
8501         Reported by Justin Clift.
8502
8503         faccessat: remove unused wrappers
8504         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8505         presence of these wrappers dragged in -lgen on Solaris.
8506         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8507
8508 2010-10-05  Jim Meyering  <meyering@redhat.com>
8509
8510         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8511         * Makefile (sc_pragma_columns): New syntax-check rule.
8512
8513 2010-10-04  Bruno Haible  <bruno@clisp.org>
8514
8515         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8516         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8517         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8518         Reported by Bruce Korb and Eric Blake.
8519
8520 2010-10-04  Bruno Haible  <bruno@clisp.org>
8521
8522         threadlib: Make option --with-libpth-prefix work.
8523         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8524         use $LIBPTH, not just -lpth.
8525
8526 2010-10-04  Bruno Haible  <bruno@clisp.org>
8527
8528         Avoid line length limitation from HP NonStop system header files.
8529         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8530         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8531         * lib/ctype.in.h: Likewise.
8532         * lib/dirent.in.h: Likewise.
8533         * lib/errno.in.h: Likewise.
8534         * lib/fcntl.in.h: Likewise.
8535         * lib/float.in.h: Likewise.
8536         * lib/getopt.in.h: Likewise.
8537         * lib/iconv.in.h: Likewise.
8538         * lib/inttypes.in.h: Likewise.
8539         * lib/langinfo.in.h: Likewise.
8540         * lib/locale.in.h: Likewise.
8541         * lib/math.in.h: Likewise.
8542         * lib/netdb.in.h: Likewise.
8543         * lib/netinet_in.in.h: Likewise.
8544         * lib/poll.in.h: Likewise.
8545         * lib/pthread.in.h: Likewise.
8546         * lib/pty.in.h: Likewise.
8547         * lib/sched.in.h: Likewise.
8548         * lib/se-selinux.in.h: Likewise.
8549         * lib/search.in.h: Likewise.
8550         * lib/signal.in.h: Likewise.
8551         * lib/spawn.in.h: Likewise.
8552         * lib/stdarg.in.h: Likewise.
8553         * lib/stddef.in.h: Likewise.
8554         * lib/stdint.in.h: Likewise.
8555         * lib/stdio.in.h: Likewise.
8556         * lib/stdlib.in.h: Likewise.
8557         * lib/string.in.h: Likewise.
8558         * lib/strings.in.h: Likewise.
8559         * lib/sys_file.in.h: Likewise.
8560         * lib/sys_ioctl.in.h: Likewise.
8561         * lib/sys_select.in.h: Likewise.
8562         * lib/sys_socket.in.h: Likewise.
8563         * lib/sys_stat.in.h: Likewise.
8564         * lib/sys_time.in.h: Likewise.
8565         * lib/sys_times.in.h: Likewise.
8566         * lib/sys_utsname.in.h: Likewise.
8567         * lib/sys_wait.in.h: Likewise.
8568         * lib/sysexits.in.h: Likewise.
8569         * lib/termios.in.h: Likewise.
8570         * lib/time.in.h: Likewise.
8571         * lib/unistd.in.h: Likewise.
8572         * lib/wchar.in.h: Likewise.
8573         * lib/wctype.in.h: Likewise.
8574         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8575         * modules/ctype (Makefile.am): Likewise.
8576         * modules/dirent (Makefile.am): Likewise.
8577         * modules/errno (Makefile.am): Likewise.
8578         * modules/fcntl-h (Makefile.am): Likewise.
8579         * modules/float (Makefile.am): Likewise.
8580         * modules/getopt-posix (Makefile.am): Likewise.
8581         * modules/iconv-h (Makefile.am): Likewise.
8582         * modules/inttypes (Makefile.am): Likewise.
8583         * modules/langinfo (Makefile.am): Likewise.
8584         * modules/locale (Makefile.am): Likewise.
8585         * modules/math (Makefile.am): Likewise.
8586         * modules/netdb (Makefile.am): Likewise.
8587         * modules/netinet_in (Makefile.am): Likewise.
8588         * modules/poll-h (Makefile.am): Likewise.
8589         * modules/pthread (Makefile.am): Likewise.
8590         * modules/pty (Makefile.am): Likewise.
8591         * modules/sched (Makefile.am): Likewise.
8592         * modules/search (Makefile.am): Likewise.
8593         * modules/selinux-h (Makefile.am): Likewise.
8594         * modules/signal (Makefile.am): Likewise.
8595         * modules/spawn (Makefile.am): Likewise.
8596         * modules/stdarg (Makefile.am): Likewise.
8597         * modules/stddef (Makefile.am): Likewise.
8598         * modules/stdint (Makefile.am): Likewise.
8599         * modules/stdio (Makefile.am): Likewise.
8600         * modules/stdlib (Makefile.am): Likewise.
8601         * modules/string (Makefile.am): Likewise.
8602         * modules/strings (Makefile.am): Likewise.
8603         * modules/sys_file (Makefile.am): Likewise.
8604         * modules/sys_ioctl (Makefile.am): Likewise.
8605         * modules/sys_select (Makefile.am): Likewise.
8606         * modules/sys_socket (Makefile.am): Likewise.
8607         * modules/sys_stat (Makefile.am): Likewise.
8608         * modules/sys_time (Makefile.am): Likewise.
8609         * modules/sys_times (Makefile.am): Likewise.
8610         * modules/sys_utsname (Makefile.am): Likewise.
8611         * modules/sys_wait (Makefile.am): Likewise.
8612         * modules/sysexits (Makefile.am): Likewise.
8613         * modules/termios (Makefile.am): Likewise.
8614         * modules/time (Makefile.am): Likewise.
8615         * modules/unistd (Makefile.am): Likewise.
8616         * modules/wchar (Makefile.am): Likewise.
8617         * modules/wctype (Makefile.am): Likewise.
8618
8619 2010-10-04  Bruno Haible  <bruno@clisp.org>
8620
8621         read-file tests: Avoid a test failure on NonStop Kernel.
8622         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8623         a regular file.
8624         Reported by Joachim Schmitz <schmitz@hp.com>.
8625
8626 2010-10-03  Bruno Haible  <bruno@clisp.org>
8627
8628         gnulib-tool: Fixes for --create-testdir with --libtool.
8629         * gnulib-tool (func_get_automake_snippet): Don't augment
8630         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8631         an executable.
8632         (func_create_testdir): Handle module 'alloca' like func_import.
8633         Reported by Bruce Korb <bruce.korb@gmail.com>.
8634
8635 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8636
8637         Avoid some lines longer than 80 characters.
8638         * lib/stdint.in.h: Break long comment lines.
8639         * lib/math.in.h: Likewise.
8640         (_GL_NUM_UINT_WORDS): New macro, for readability.
8641         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8642         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8643         * lib/stdlib.in.h: Likewise.
8644         * lib/spawn.in.h: Likewise.
8645         * lib/sys_socket.in.h: Update an URL.
8646         * lib/sys_stat.in.h: Break long line.
8647
8648 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8649
8650         Improve pmccabe2html.
8651         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8652         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8653         when the sources change. Remove the line in the HTML about "Used
8654         ranges" (which implied that there might be other unused ranges),
8655         rename "Resume" to "Summary" (easier to understand for more users).
8656         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8657         styles, and some unnecessary blank lines.
8658
8659 2010-10-03  Bruno Haible  <bruno@clisp.org>
8660             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8661
8662         acl: Add support for ACLs on NonStop Kernel.
8663         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8664         Check whether the function aclsort() exists.
8665         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8666         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8667         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8668         (acl_nontrivial [HAVE_ACLSORT]: New function.
8669         (file_has_acl): Implement for NonStop Kernel.
8670         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8671         (qset_acl): Implement for NonStop Kernel.
8672         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8673         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8674         (main): Implement for NonStop Kernel.
8675         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8676         Kernel. Handle this flavor.
8677         * tests/test-set-mode-acl.sh: Likewise.
8678         * tests/test-copy-acl.sh: Likewise.
8679         * tests/test-copy-file.sh: Likewise.
8680
8681 2010-10-03  Bruno Haible  <bruno@clisp.org>
8682
8683         Info about ACLs on NonStop Kernel.
8684         * doc/acl-resources.txt: Add info about NonStop Kernel.
8685         References by Joachim Schmitz <schmitz@hp.com>.
8686
8687 2010-10-02  Bruno Haible  <bruno@clisp.org>
8688
8689         Define missing EDQUOT on NonStop Kernel.
8690         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8691         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8692         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8693         missing.
8694         * doc/posix-headers/errno.texi: Mention the NSK bug.
8695         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8696         Reported by Joachim Schmitz <schmitz@hp.com>.
8697
8698 2010-10-02  Bruno Haible  <bruno@clisp.org>
8699
8700         Update doc for POSIX:2008.
8701         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8702         Update URL of POSIX specification.
8703
8704 2010-10-02  Bruno Haible  <bruno@clisp.org>
8705
8706         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8707         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8708         from gnulib, not from Automake.
8709
8710 2010-10-02  Bruno Haible  <bruno@clisp.org>
8711
8712         New module 'system-posix'.
8713         * modules/system-posix: New file.
8714         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8715         module is present.
8716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8717         GNULIB_SYSTEM_POSIX.
8718         * modules/stdlib (Depends-on): Remove sys_wait.
8719         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8720         * doc/posix-functions/system.texi: Mention the new module.
8721         * doc/posix-headers/stdlib.texi: Likewise.
8722         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8723         define test_sys_wait_macros to a no-op.
8724         Reported by Sam Steingold <sds@gnu.org>.
8725
8726 2010-09-30  Bruno Haible  <bruno@clisp.org>
8727
8728         More renaming from 'getdate' to 'get_date'.
8729         * doc/get_date.texi: Renamed from doc/getdate.texi.
8730         * modules/get_date (Files): Update.
8731         * MODULES.html.sh (Date and time <time.h>): Update.
8732         * DEPENDENCIES: Update.
8733         * gnulib-tool: Update comment.
8734         * m4/bison.m4 (gl_BISON): Likewise.
8735         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8736
8737 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8738
8739         bootstrap: support ACLOCAL_FLAGS during aclocal
8740         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8741         can add additional -I dir for third-party .m4 files.
8742
8743 2010-09-30  Eric Blake  <eblake@redhat.com>
8744
8745         bootstrap: use glibtoolize on MacOS
8746         * build-aux/bootstrap (check_versions): Convert libtool into
8747         libtoolize.
8748         (tool search): Move libtool check earlier, and look for
8749         glibtoolize for MacOS.
8750         (gnulib_tool_options): Auto-add --libtool when appropriate.
8751         Reported by Justin Clift.
8752
8753         poll: fix typo that broke test on MacOS
8754         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8755         Reported by Justin Clift.
8756
8757         getdate: rename to get_date
8758         Note: getdate.h is not renamed, to minimize client impact.
8759         * modules/getdate: Mark obsolete.  Move old contents...
8760         * modules/get_date: ...to new module name.
8761         * modules/getdate-tests: Move...
8762         * modules/get_date-tests: ...here.
8763         * m4/getdate.m4: Move...
8764         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8765         * lib/getdate.y: Move...
8766         * lib/get_date.y: ...here.
8767         * tests/test-getdate.c: Move...
8768         * tests/test-get_date.c: ...here.
8769         * doc/posix-functions/getdate.texi (getdate): Update name.
8770         * NEWS: Mention the change.
8771
8772 2010-09-29  Bruno Haible  <bruno@clisp.org>
8773
8774         Separate the module 'waitpid' from the module 'sys_wait'.
8775         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8776         present.
8777         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8778         gl_MODULE_INDICATOR_FOR_TESTS.
8779         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8780         * modules/sys_wait (Depends-on): Remove waitpid.
8781         (Makefile.am): Substitute GNULIB_WAITPID.
8782         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8783         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8784         signature only if the 'waitpid' module is present.
8785         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8786         * NEWS: Mention the change.
8787         * modules/grantpt (Depends-on): Add waitpid.
8788         * modules/wait-process (Depends-on): Likewise.
8789
8790 2010-09-29  Bruno Haible  <bruno@clisp.org>
8791
8792         More tests for module 'sys_wait'.
8793         * modules/sys_wait-c++-tests: New file.
8794         * tests/test-sys_wait-c++.cc: New file.
8795         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8796         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8797
8798 2010-09-29  Bruno Haible  <bruno@clisp.org>
8799
8800         New module 'waitpid'.
8801         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8802         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8803         Don't include <process.h>.
8804         (waitpid): Declare only, using modern idiom.
8805         * m4/waitpid.m4: New file.
8806         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8807         * modules/waitpid: New file.
8808         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8809         (Makefile.am): Update.
8810         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8811
8812 2010-09-28  Bruno Haible  <bruno@clisp.org>
8813
8814         poll: Assume ANSI C.
8815         * lib/poll.c (poll): Use an ANSI C declaration.
8816
8817 2010-09-28  Bruno Haible  <bruno@clisp.org>
8818
8819         poll-h: Create poll.h on all platforms.
8820         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8821         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8822         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8823         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8824         (gl_REPLACE_POLL_H): Don't set POLL_H.
8825         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8826         * modules/poll-h (Depends-on): Add include_next.
8827         (Makefile.am): Create poll.h unconditionally. Substitute also
8828         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8829
8830 2010-09-28  Bruno Haible  <bruno@clisp.org>
8831
8832         Tests for module 'poll-h'.
8833         * modules/poll-h-c++-tests: New file.
8834         * tests/test-poll-h-c++.cc: New file.
8835
8836         Tests for module 'poll-h'.
8837         * modules/poll-h-tests: New file.
8838         * tests/test-poll-h.c: New file.
8839
8840 2010-09-28  Bruno Haible  <bruno@clisp.org>
8841
8842         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8843         * modules/poll-h (Depends-on): Add 'extensions'.
8844
8845 2010-09-28  Bruno Haible  <bruno@clisp.org>
8846
8847         New module 'poll-h'.
8848         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8849         (poll): Use modern idiom.
8850         * modules/poll-h: New file.
8851         * modules/poll (Files): Remove lib/poll.in.h.
8852         (Depends-on): Add poll-h.
8853         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8854         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8855         * m4/poll_h.m4: New file.
8856         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8857         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8858         and invoke gl_REPLACE_POLL_H.
8859         * lib/poll.c: Use common idiom.
8860         * tests/test-poll.c: Likewise.
8861         * doc/posix-headers/poll.texi: Mention the poll-h module.
8862         Suggested by Eric Blake.
8863
8864 2010-09-26  Bruno Haible  <bruno@clisp.org>
8865
8866         sys_wait: Implement WSTOPSIG.
8867         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8868         Reported by Simon Josefsson.
8869
8870 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8871
8872         stdlib, sys_wait: Avoid compilation error on mingw.
8873         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8874
8875 2010-09-26  Bruno Haible  <bruno@clisp.org>
8876
8877         stdlib tests: Avoid code duplication.
8878         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8879         * modules/sys_wait-tests (Files): Likewise.
8880         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8881         * tests/test-stdlib.c: Include test-sys_wait.h.
8882         (main): Invoke test_sys_wait_macros.
8883         * tests/test-sys_wait.c: Include test-sys_wait.h.
8884         (main): Invoke test_sys_wait_macros.
8885
8886 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8887
8888         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8889         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8890         sure Windows sockets are working before calling getaddrinfo.
8891         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8892         * doc/gnulib.texi (Windows sockets): Fix typo.
8893
8894 2010-09-25  Bruno Haible  <bruno@clisp.org>
8895
8896         Tests for module 'regex-quote'.
8897         * modules/regex-quote-tests: New file.
8898         * tests/test-regex-quote.c: New file.
8899
8900         New module 'regex-quote'.
8901         * lib/regex-quote.h: New file.
8902         * lib/regex-quote.c: New file.
8903         * modules/regex-quote: New file.
8904         Suggested by Reuben Thomas <rrt@sc3d.org>.
8905
8906 2010-09-24  Bruno Haible  <bruno@clisp.org>
8907
8908         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8909         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8910
8911 2010-09-23  Bruno Haible  <bruno@clisp.org>
8912
8913         setenv: Relax license.
8914         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8915         Blake.
8916         Requested by Eric Blake.
8917
8918 2010-09-22  Bruno Haible  <bruno@clisp.org>
8919
8920         termios: Relax license.
8921         * modules/termios (License): Change to LGPLv2+.
8922         Requested by Eric Blake.
8923
8924 2010-09-22  Bruno Haible  <bruno@clisp.org>
8925
8926         threadlib: Allow the package to change the default to 'no'.
8927         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8928         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8929         Reported by Paul Eggert.
8930
8931 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8932             Bruno Haible  <bruno@clisp.org>
8933
8934         Fix endless loop in mbmemcasecoll.
8935         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8936         byte.
8937         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8938
8939 2010-09-22  Bruno Haible  <bruno@clisp.org>
8940
8941         Tests for module 'memcoll'.
8942         * modules/memcoll-tests: New file.
8943         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8944
8945         memcoll, xmemcoll: Clarify size vs. length.
8946         * modules/memcoll.c (memcoll0): Clarify specification.
8947         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8948         passed to collate_error.
8949
8950 2010-09-22  Bruno Haible  <bruno@clisp.org>
8951
8952         Tests for module 'memcasecmp'.
8953         * modules/memcasecmp-tests: New file.
8954         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8955
8956 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8957
8958         * lib/pthread.in.h: Add split double-inclusion guard, and include
8959         system <pthread.h> if there is one.  Use @@-style as in other
8960         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8961         pthread.h doesn't.
8962         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8963         (pthread_mutexattr_settype, pthread_mutex_trylock):
8964         New static inline functions, if there's no system <pthread.h>.
8965         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8966         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8967         Approximate with mutexes if the system lacks spinlocks, as in
8968         MacOS.
8969         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8970         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8971         @@-style.  Check for spinlocks separately.
8972         (gl_PTHREAD_DEFAULTS): New macro.
8973         * modules/pthread: Redo to use a more typical style for in.h files.
8974
8975 2010-09-21  Eric Blake  <eblake@redhat.com>
8976
8977         net_if: enhance tests
8978         * tests/test-net_if.c (main): Move signature checks earlier.
8979         Print failures to stderr.
8980         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8981         Document the bug that we do not yet fix.
8982
8983 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8984
8985         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8986         about gnulib, not GSS.
8987
8988 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8989
8990         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8991         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8992         for Emacs.
8993         * build-aux/pmccabe2html: Make Makefile.am example code more
8994         cut-and-paste friendly.
8995
8996 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8997
8998         * tests/test-net_if.c: New file.
8999         * modules/net_if-tests: New file.
9000
9001 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9002
9003         pthread: add pthread_spin_destroy
9004         * lib/pthread.in.h (pthread_spin_destroy): New function.
9005
9006 2010-09-19  Bruno Haible  <bruno@clisp.org>
9007
9008         gnulib-tool: Fix --help output.
9009         * gnulib-tool (func_usage): Fix help message.
9010         Reported by Reuben Thomas <rrt@sc3d.org>.
9011
9012 2010-09-18  Jim Meyering  <meyering@redhat.com>
9013
9014         maint.mk: avoid unexpanded \n in two diagnostics
9015         * top/maint.mk (sc_prohibit_always_true_header_tests):
9016         Don't use a literal \n in a halt=... assignment.  It would not be
9017         expanded, and the two \n bytes would appear in the diagnostic output
9018         rather than the desired newline.  Use halt=$$(printf ... instead.
9019         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9020
9021 2010-09-18  Bruno Haible  <bruno@clisp.org>
9022
9023         netinet_in: Doc tweak.
9024         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9025         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9026
9027 2010-09-18  Jim Meyering  <meyering@redhat.com>
9028
9029         init.sh: correct an outdated comment
9030         * tests/init.sh (create_exe_shims_):  s/function/alias/
9031
9032         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9033         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9034         a file named "*.exe" is removed between the glob expansion and the
9035         processing of that oddly named file.
9036
9037 2010-09-17  Eric Blake  <eblake@redhat.com>
9038
9039         mirbsd: add some more support
9040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9041         in BSD family.
9042         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9043         devices as OpenBSD.
9044         * m4/host-os.m4 (mirbsd): Add MirBSD.
9045
9046         tests: fix unportable assumption on sys/wait.h
9047         * tests/test-sys_wait.c (main): Relax test.
9048         * tests/test-stdlib.c (main): Likewise.
9049
9050         init.sh: accomodate directory with no .exes
9051         * tests/init.sh: Accomodate directory containing only scripts.
9052
9053         tests: avoid compiler warning
9054         * tests/test-stdlib.c (main): Use the variable.
9055
9056         fdutimens, fdutimensat: update signature, again
9057         * lib/utimens.h (gl_futimens): Delete, and move signature...
9058         (fdutimens): ...here.
9059         (fdutimensat): Rearrange signature.
9060         (lutimensat): Rename variable for clarity.
9061         * lib/fdutimensat.c (fdutimensat): Update signature.
9062         * lib/utimens.c (fdutimens): Likewise.
9063         (gl_futimens): Delete.
9064         (utimens, lutimens): Update callers.
9065         * lib/futimens.c (futimens): Likewise.
9066         * tests/test-fdutimensat.c: Likewise.
9067         * tests/test-utimens.c: Likewise.
9068         * tests/test-futimens.h: Update comment.
9069         * NEWS: Mention this.
9070         Suggested by Paul Eggert.
9071
9072 2010-09-17  Bruno Haible  <bruno@clisp.org>
9073
9074         Take over the maintenance of some older macros from Autoconf.
9075         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9076         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9077         GNU Autoconf.
9078         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9079         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9080
9081 2010-09-17  Eric Blake  <eblake@redhat.com>
9082
9083         fdutimensat: drop atflag validation
9084         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9085         with valid fd, to close a race scenario where futimens is
9086         unsupported and FILE was replaced by a symlink.
9087         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9088         accordingly.
9089         Suggested by Paul Eggert.
9090
9091 2010-09-16  Bruno Haible  <bruno@clisp.org>
9092
9093         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9094         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9095
9096 2010-09-16  Bruno Haible  <bruno@clisp.org>
9097
9098         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9099         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9100         login_tty exists.
9101         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9102
9103 2010-09-16  Bruno Haible  <bruno@clisp.org>
9104
9105         login_tty: Make the replacement code work on BSD systems.
9106         * lib/login_tty.c: Include <sys/ioctl.h>.
9107         (login_tty): Use ioctl TIOCSCTTY when available.
9108         * modules/login_tty (Depends-on): Add sys_ioctl.
9109         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9110
9111 2010-09-16  Bruno Haible  <bruno@clisp.org>
9112
9113         login_tty: Stricter unit test.
9114         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9115         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9116         and tcgetsid() after login_tty.
9117         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9118
9119 2010-09-16  Bruno Haible  <bruno@clisp.org>
9120
9121         New module 'tcgetsid'.
9122         * lib/tcgetsid.c: New file.
9123         * m4/tcgetsid.m4: New file.
9124         * modules/tcgetsid: New file.
9125         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9126         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9127         GNULIB_TCGETSID, HAVE_TCGETSID.
9128         * lib/termios.in.h: Include <sys/types.h>.
9129         (tcgetsid): New declaration.
9130         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9131         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9132         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9133         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9134
9135 2010-09-16  Bruno Haible  <bruno@clisp.org>
9136
9137         Tests for module 'termios'.
9138         * modules/termios-c++-tests: New file.
9139         * modules/termios-tests: New file.
9140         * tests/test-termios-c++.cc: New file.
9141         * tests/test-termios.c: New file.
9142
9143         New module 'termios'.
9144         * modules/termios: New file.
9145         * lib/termios.in.h: New file.
9146         * m4/termios_h.m4: New file.
9147         * doc/posix-headers/termios.texi: Mention the new module.
9148
9149 2010-09-16  Eric Blake  <eblake@redhat.com>
9150
9151         fdutimensat: add an atflag parameter
9152         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9153         * lib/utimens.h (fdutimensat): Update prototype.
9154         * tests/test-fdutimensat.c: Adjust test to match.
9155         * NEWS: Document the change.
9156         Suggested by Paul Eggert.
9157
9158 2010-09-16  Bruno Haible  <bruno@clisp.org>
9159
9160         Fix typos in comments.
9161         * lib/striconveh.h: Fix typo in comment.
9162         * lib/login_tty.c (login_tty): Likewise.
9163
9164 2010-09-15  Bruno Haible  <bruno@clisp.org>
9165
9166         stdlib: clarify MirBSD WEXITSTATUS bug
9167         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9168         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9169
9170 2010-09-15  Eric Blake  <eblake@redhat.com>
9171
9172         stdlib: work around MirBSD WEXITSTATUS bug
9173         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9174         * modules/stdlib (Depends-on): Add sys_wait.
9175         * tests/test-sys_wait.c (main): Enhance test.
9176         * tests/test-stdlib.c (main): Likewise.
9177         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9178
9179         docs: mention MacOS issue with WEXITSTATUS(constant)
9180         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9181         issue.
9182         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9183
9184         strnlen: add tests
9185         * modules/strnlen-tests: New file.
9186         * tests/test-strnlen.c: Likewise.
9187
9188 2010-09-14  Bruno Haible  <bruno@clisp.org>
9189
9190         unistr/base: Avoid link errors when module 'libunistring' is also used.
9191         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9192         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9193         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9194         Declare also when HAVE_LIBUNISTRING is set.
9195         Reported by Pádraig Brady <P@draigbrady.com>.
9196
9197 2010-09-14  Eric Blake  <eblake@redhat.com>
9198
9199         test-rawmemchr: make more robust
9200         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9201         (Depends-on, configure.ac): Add needed prerequisites to use it.
9202         * modules/memchr-tests (Files, Depends-on, configure.ac):
9203         Likewise, to avoid implicit reliance on memchr module prereqs.
9204         * tests/test-memchr.c (main): Ensure proper masking.
9205         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9206         reads.
9207
9208         memchr: detect glibc Alpha bug
9209         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9210         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9211         Alpha.
9212         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9213         * tests/test-memchr.c (main): Enhance test.
9214         Reported by Nelson H. F. Beebe.
9215
9216 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9217
9218         fts, getcwd, glob: audit for dirfd returning -1
9219         * lib/fts.c (opendir): Remove #define; no longer used.
9220         (opendirat): New arg PDIR_FD.  All callers changed.
9221         (fts_build, _opendir2): Use new opendirat to avoid the need for
9222         dirfd, or for checking whether dirfd returns a negative value.
9223         Don't use opendir; always use openat followed by fdopendir.
9224         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9225         it.
9226         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9227         returns -1 here.
9228         * modules/fts (Depends-on): Remove dirfd.
9229         * modules/getcwd (Depends-on): Likewise.
9230
9231 2010-09-13  Eric Blake  <eblake@redhat.com>
9232
9233         float: fix broken MirBSD header
9234         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9235         * doc/posix-headers/float.texi (float.h): Document it.
9236
9237 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9238
9239         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9240         * lib/fts.c (opendirat): New arg extra_flags.
9241         (__opendir2): Use it to avoid following symlinks when opening
9242         a directory, if symlinks are not supposed to be followed.  See
9243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9244
9245         fdopendir: preserve argument fd before returning
9246         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9247         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9248         (fdopendir): Use them, arranging for FD to be open to the same
9249         directory that it was when it started.  (It might be temporarily
9250         closed while fdopendir is running, so this not thread- or
9251         signal-safe.)  Be careful to do the right thing even when file
9252         descriptors are scarce and dup fails with errno == EMFILE.  See
9253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9254
9255 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9256
9257         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9258         * NEWS: Document change.
9259         * m4/regex.m4: Disable test for regoff_t size.
9260
9261 2010-09-13  Jim Meyering  <meyering@redhat.com>
9262
9263         fts: don't operate on an invalid file descriptor after failed dup
9264         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9265         negative file descriptor.
9266
9267 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9268
9269         savedir: add streamsavedir, deprecate fdsavedir
9270         * NEWS: Mention deprecation of fdsavedir.
9271         * lib/savedir.c (streamsavedir): New extern function, whose name
9272         ends in "savedir" to be consistent with the others.  This differs
9273         from savedirstream in that it doesn't close its argument.  The
9274         next version of GNU tar will use this instead of fdsavedir, to
9275         avoid some race conditions and conserve file descriptors.
9276         (savedirstream): Reimplement as a wrapper around streamsavedir.
9277         (fdsavedir): Add a comment deprecating this function.  As far as
9278         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9279         * lib/savedir.h (streamsavedir): New decl.
9280         (fdsavedir): Add a comment deprecating this.
9281
9282 2010-09-10  Bruno Haible  <bruno@clisp.org>
9283
9284         langinfo: Fix last commit.
9285         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9286         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9287         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9288
9289 2010-09-10  Bruno Haible  <bruno@clisp.org>
9290
9291         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9292         * lib/progreloc.c (O_EXEC): Define fallback.
9293
9294 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9295
9296         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9297         * NEWS: Document recent changes to fcntl-h.
9298         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9299         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9300         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9301         Similarly for O_SEARCH; this last was already true, but not documented.
9302         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9303         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9304         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9305         Likewise.
9306         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9307         is zero, not whether it is defined.
9308         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9309         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9310         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9311
9312 2010-09-10  Bruno Haible  <bruno@clisp.org>
9313
9314         langinfo, nl_langinfo: Fix for IRIX 5.3.
9315         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9316         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9317         HAVE_LANGINFO_YESEXPR.
9318         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9319         HAVE_LANGINFO_YESEXPR.
9320         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9321         HAVE_LANGINFO_T_FMT_AMPM is 0.
9322         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9323         HAVE_LANGINFO_YESEXPR is 0.
9324         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9325         NOEXPR.
9326         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9327         * doc/posix-functions/nl_langinfo.texi: Likewise.
9328         Reported by Eric Blake.
9329
9330 2010-09-10  Bruno Haible  <bruno@clisp.org>
9331
9332         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9333         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9334         on FreeBSD 8.0 and OpenBSD 4.6.
9335         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9336         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9337         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9338         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9339         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9340         ac_includes_default.
9341         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9342
9343 2010-09-09  Eric Blake  <eblake@redhat.com>
9344
9345         strsignal: work around NetBSD bug
9346         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9347         * lib/string.in.h (includes): Likewise.
9348         * doc/posix-functions/strsignal.texi (strsignal): Document the
9349         bug.
9350         Reported by Nelson H. F. Beebe.
9351
9352         gnulib-tool: work with NetBSD /bin/sh
9353         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9354         (func_get_description, func_get_comment, func_get_status)
9355         (func_get_notice, func_get_applicability, func_get_filelist)
9356         (func_get_dependencies, func_get_autoconf_early_snippet)
9357         (func_get_autoconf_snippet, func_get_automake_snippet)
9358         (func_get_include_directive, func_get_link_directive)
9359         (func_get_license, func_get_maintainer, func_import): Avoid
9360         shell syntax errors from parsing syntax extensions.
9361
9362 2010-09-09  Bruno Haible  <bruno@clisp.org>
9363
9364         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9365         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9366         a reliable way to determine whether the 'alias' command works.
9367
9368 2010-09-08  Jim Meyering  <meyering@redhat.com>
9369
9370         init.sh: penalize a set-x-impaired shell; don't disqualify it
9371         * tests/init.sh: Too many shells corrupt application stderr when
9372         you set -x, so we can't afford to disqualify them, since at least
9373         on Irix-6.5, that would disqualify all bourne shells.
9374         Instead, use a two-pass approach.
9375         On the first pass, try to find a shell that meets the stricter
9376         condition that set -x does not corrupt stderr.
9377         If no shell meets the stricter condition, retest each candidate
9378         shell, but without that extra condition.  Finally, when
9379         VERBOSE=yes is requested and set -x might cause trouble, simply
9380         issue a warning and refrain from enabling debug output.
9381
9382 2010-09-08  Eric Blake  <eblake@redhat.com>
9383
9384         unsetenv: fix OpenBSD bug
9385         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9386         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9387         documentation.
9388         Reported by Jim Meyering.
9389
9390         strtod: work around IRIX 6.5 bug
9391         * lib/strtod.c (strtod): Reparse number on shorter string if
9392         exponent parse was invalid.
9393         * tests/test-strtod.c (main): Add check for "0x1p 2".
9394         Reported by Tom G. Christensen.
9395
9396         getopt: optimize previous patch
9397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9398         empty variable.  Speed up awk script.
9399         Reported by Paolo Bonzini.
9400
9401 2010-09-08  Jim Meyering  <meyering@redhat.com>
9402
9403         test.sh: disqualify shells for which set -x corrupts stderr
9404         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9405         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9406         appear in stderr output.  For example, this command:
9407             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9408         prints "P=1" on those two systems:
9409
9410 2010-09-08  Bruno Haible  <bruno@clisp.org>
9411
9412         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9413         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9414         commands, because some shells ignore redirections when there is an
9415         error in the command lookup.
9416         Reported by Eric Blake.
9417
9418 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9419
9420         * lib/regex.h: Fix a mention of `regex_compile' (should be
9421         `re_compile_pattern').
9422         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9423         (re_set_registers): Correct name of parameter in comment.
9424
9425         * doc/regex.texi: Add documentation for missing syntax flags.
9426         Remove commented-out documentation of defunct syntax option
9427         RE_NO_EMPTY_ALTS.
9428         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9429         Add documentation of re_set_registers.
9430         Document trick to re-use a pattern buffer by setting fastmap manually.
9431         Update documentation of struct re_pattern_buffer per public members.
9432         Uncomment documentation of equivalence class operators and
9433         collating symbol operators, since they are now implemented,
9434         Explain leftmost-longest matching in relation to alternatives.
9435         Tidy documentation of substring matching.
9436         Remove POSIX documentation, which is done better in
9437         glibc, and refer the reader there. Keep BSD API documentation, as
9438         that is not readily available elsewhere.
9439
9440 2010-09-07  Eric Blake  <eblake@redhat.com>
9441
9442         getopt: handle POSIXLY_CORRECT set but not exported
9443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9444         export state of POSIXLY_CORRECT, due to bash set -o posix.
9445         Reported by Dustin J. Mitchell.
9446
9447 2010-09-05  Bruno Haible  <bruno@clisp.org>
9448
9449         gnulib-tool: Highlight the changed options.
9450         * gnulib-tool (func_usage): Display the --import, --add-import,
9451         --remove-import explanations in bold font.
9452
9453 2010-09-06  Karl Berry  <karl@gnu.org>
9454
9455         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9456
9457 2010-09-05  Bruno Haible  <bruno@clisp.org>
9458
9459         uniwidth/width: Update comment.
9460         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9461         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9462
9463 2010-09-05  Bruno Haible  <bruno@clisp.org>
9464
9465         isinf, isnan: Relax license.
9466         * modules/isinf (License): Change from GPL to LGPL, with consent from
9467         Ben Pfaff.
9468         * modules/isnan (License): Likewise.
9469         Requested by Ludovic Courtès.
9470
9471 2010-09-04  Bruno Haible  <bruno@clisp.org>
9472
9473         gnulib-tool: Help migration from --import to --add-import or --update.
9474         * gnulib-tool: Emit a verbose error message when --import is used
9475         without any module name.
9476
9477 2010-09-04  Bruno Haible  <bruno@clisp.org>
9478
9479         Update doc about gnulib-tool.
9480         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9481         'gnulib-tool --update' in more detail.
9482         Reported by Eric Blake.
9483
9484 2010-09-04  Bruno Haible  <bruno@clisp.org>
9485
9486         gnulib-tool: Change --import. New options --add/remove-import.
9487         * gnulib-tool: New options --add-import, --remove-import.
9488         (func_usage): Document them.
9489         (have_associative): Define always.
9490         (func_import): In import mode, don't merge the specified settings with
9491         the cached settings. Implement remove-import mode.
9492         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9493         Explain when to use them versus --import.
9494         (Simple update): Use --add-import instead of --import.
9495         * NEWS: Mention the change.
9496
9497 2010-09-04  Bruno Haible  <bruno@clisp.org>
9498
9499         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9500         separate gnulib.mk.
9501
9502 2010-09-04  Bruno Haible  <bruno@clisp.org>
9503
9504         gnulib-tool: Don't talk about CVS any more.
9505         * gnulib-tool (func_usage, func_import): Write "version control"
9506         instead of CVS.
9507
9508 2010-09-04  Jim Meyering  <meyering@redhat.com>
9509
9510         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9511         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9512         false positives (whose names may be ill-chosen) when searching
9513         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9514         would cause a false-positive.
9515
9516         avoid coreutils "make distcheck" failure
9517         Coreutils tests with an absolute build directory name that contains
9518         a space.  Not quoting this directory name caused a failure.
9519         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9520         * tests/test-vc-list-files-cvs.sh: Likewise.
9521
9522 2010-09-04  Bruno Haible  <bruno@clisp.org>
9523
9524         gnulib-tool: Avoid error when run in a package without Makefile.am.
9525         * gnulib-tool: When collecting the m4dirs in a package that does not
9526         have a Makefile.am, eliminate those directories that contain no
9527         gnulib-cache.m4. Fix expression that counts these directories.
9528
9529 2010-09-04  Bruno Haible  <bruno@clisp.org>
9530
9531         update-copyright test: Improve output when perl is missing or too old.
9532         * tests/test-update-copyright.sh: Move test of Perl version down after
9533         the test whether Perl exists. Provide an explanation relating Perl's
9534         error message to Automake's SKIP: message.
9535
9536 2010-09-04  Bruno Haible  <bruno@clisp.org>
9537
9538         Don't augment PATH in TESTS_ENVIRONMENT.
9539         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9540         set abs_aux_dir instead of augmenting PATH.
9541         * modules/vc-list-files-tests (Makefile.am): Likewise.
9542         * tests/test-update-copyright.sh: Augment PATH here.
9543         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9544         path_prepend_.
9545         * tests/test-vc-list-files-git.sh: Likewise.
9546
9547 2010-09-04  Jim Meyering  <meyering@redhat.com>
9548
9549         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9550         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9551
9552 2010-09-04  Bruno Haible  <bruno@clisp.org>
9553
9554         strdup: Fix compilation error in C++ mode.
9555         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9556         the macro.
9557
9558 2010-09-04  Bruno Haible  <bruno@clisp.org>
9559
9560         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9561         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9562         macro into a function.
9563         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9564
9565 2010-09-04  Bruno Haible  <bruno@clisp.org>
9566
9567         Set PATH_SEPARATOR the same way autoconf does.
9568         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9569         the value of PATH_SEPARATOR the same way autoconf-generated configure
9570         scripts do.
9571         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9572         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9573
9574 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9575
9576         Set PATH_SEPARATOR the same way autoconf does.
9577         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9578         the same way autoconf-generated configure scripts do.
9579         * posix-modules: Likewise.
9580
9581 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9582
9583         hash: fix safe_hasher const typo
9584         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9585         const; otherwise, there is a type error later.
9586
9587 2010-09-02  Jim Meyering  <meyering@redhat.com>
9588
9589         test-update-copyright.sh: require perl 5.8.0
9590         * tests/test-update-copyright.sh: Require 5.8.0,
9591         which Tom G. Christensen has confirmed is adequate,
9592         while 5.6.1 is not.
9593
9594 2010-09-02  Eric Blake  <eblake@redhat.com>
9595
9596         tests: init.sh improvements for re-exec'ing with zsh
9597         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9598         -vx through shell re-exec.
9599         Reported by Tom G. Christensen.
9600
9601         wctype: fix typo in previous commit
9602         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9603         Reported by Ludovic Courtès.
9604
9605 2010-09-02  Jim Meyering  <meyering@redhat.com>
9606
9607         test-update-copyright.sh: skip test if Perl is too old
9608         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9609         Reported by Tom G. Christensen.
9610
9611 2010-09-02  Bruno Haible  <bruno@clisp.org>
9612
9613         wctype: Avoid compilation error on IRIX 6.5.30.
9614         * lib/wctype.in.h (iswblank): Declare with a replacement if
9615         REPLACE_ISWBLANK is set.
9616         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9617         declared. Set REPLACE_ISWBLANK.
9618         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9619         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9620         * doc/posix-headers/wctype.texi: Likewise.
9621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9622
9623 2010-09-01  Bruno Haible  <bruno@clisp.org>
9624
9625         New module 'socketlib'.
9626         * modules/socketlib: New file.
9627         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9628         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9629         * modules/sockets (Depends-on): Add socketlib.
9630         Suggested by Sam Steingold <sds@gnu.org>.
9631
9632 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9633
9634         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9635
9636         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9637         when one needs search access to a directory but not read access.
9638         On systems where it is available, it works in some cases where
9639         O_RDONLY does not, namely on directories that are searchable but
9640         not readable, and which need only to be searchable.  If O_SEARCH
9641         is not available, fall back to the traditional method of using
9642         O_RDONLY.
9643
9644         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9645         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9646         when opening a directory that needs only to be searchable.
9647         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9648         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9649         * lib/openat-proc.c (openat_proc_name): Likewise.
9650         * lib/openat.c (openat_needs_fchdir): Likewise.
9651         * lib/save-cwd.c (save_cwd): Likewise.
9652         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9653
9654 2010-08-28  Bruno Haible  <bruno@clisp.org>
9655
9656         New module 'host-cpu-c-abi'.
9657         * modules/host-cpu-c-abi: New file.
9658         * m4/host-cpu-c-abi.m4: New file, based on part of
9659         clisp/src/m4/general.m4.
9660         Requested by Sam Steingold <sds@gnu.org>.
9661
9662 2010-08-31  Eric Blake  <eblake@redhat.com>
9663         and Jim Meyering  <meyering@redhat.com>
9664
9665         hash: factor, and guard against misbehaving hasher function
9666         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9667         of table->hasher's return value.  Also protect against a hash value
9668         so large that adding it to table->bucket results in a NULL pointer.
9669         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9670         Use it in place of open-coded check-and-abort.
9671
9672 2010-08-30  Bruno Haible  <bruno@clisp.org>
9673
9674         hash: silence spurious clang warning
9675         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9676         Reported by Eric Blake.
9677
9678 2010-08-30  Eric Blake  <eblake@redhat.com>
9679
9680         strstr, memmem, strcasestr: avoid leaked shell message
9681         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9682         FreeBSD.
9683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9685
9686         tests: silence clang warning
9687         * tests/test-malloca.c (do_allocation): Avoid dead store.
9688
9689 2010-08-29  Bruno Haible  <bruno@clisp.org>
9690
9691         gettext: Fix recent mistake.
9692         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9693
9694 2010-08-29  Bruno Haible  <bruno@clisp.org>
9695
9696         selinux-h: Offer a --without-selinux option.
9697         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9698         --without-selinux was specified, skip all tests and define
9699         HAVE_SELINUX_SELINUX_H to 0.
9700         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9701         set LIB_SELINUX to empty.
9702         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9703         gl_LIBSELINUX. If --without-selinux was specified, replace
9704         selinux/context.h.
9705         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9706
9707 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9708             Bruno Haible  <bruno@clisp.org>
9709
9710         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9711         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9712         of HAVE_REALLOC.
9713         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9714         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9715         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9716         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9717
9718 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9719             Bruno Haible  <bruno@clisp.org>
9720
9721         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9722         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9723         HAVE_CALLOC.
9724         * lib/xmalloc.c: Update accordingly.
9725         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9726         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9727         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9728
9729 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9730             Bruno Haible  <bruno@clisp.org>
9731
9732         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9733         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9734         HAVE_MALLOC.
9735         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9736         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9737         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9738
9739 2010-08-29  Bruno Haible  <bruno@clisp.org>
9740
9741         Update modules list.
9742         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9743         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9744         (String handling <string.h>): Add astrxfrm.
9745         (File system functions): Add readlinkat.
9746
9747 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9748
9749         Tests for module 'realloc-gnu'.
9750         * modules/realloc-gnu-tests: New file.
9751         * tests/test-realloc-gnu.c: New file.
9752
9753         Tests for module 'calloc-gnu'.
9754         * modules/calloc-gnu-tests: New file.
9755         * tests/test-calloc-gnu.c: New file.
9756
9757         Tests for module 'malloc-gnu'.
9758         * modules/malloc-gnu-tests: New file.
9759         * tests/test-malloc-gnu.c: New file.
9760
9761 2010-08-28  Bruno Haible  <bruno@clisp.org>
9762
9763         Rename module 'realloc' -> 'realloc-gnu'.
9764         * modules/realloc-gnu: New file, copied from modules/realloc.
9765         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9766         obsolete.
9767         * modules/mgetgroups (Depends-on): Update.
9768         * doc/posix-functions/realloc.texi: Update.
9769         * NEWS: Mention the change.
9770
9771         Rename module 'calloc' -> 'calloc-gnu'.
9772         * modules/calloc-gnu: New file, copied from modules/calloc.
9773         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9774         obsolete.
9775         * doc/posix-functions/calloc.texi: Update.
9776         * NEWS: Mention the change.
9777
9778         Rename module 'malloc' -> 'malloc-gnu'.
9779         * modules/malloc-gnu: New file, copied from modules/malloc.
9780         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9781         obsolete.
9782         * modules/argp (Depends-on): Update.
9783         * modules/regex (Depends-on): Update.
9784         * doc/posix-functions/malloc.texi: Update.
9785         * NEWS: Mention the change.
9786
9787 2010-08-28  Eric Blake  <eblake@redhat.com>
9788
9789         pread, pwrite: add missing dependency
9790         * modules/pread (Depends-on): Add extensions.
9791         * modules/pwrite (Depends-on): Likewise.
9792
9793 2010-08-28  Bruno Haible  <bruno@clisp.org>
9794
9795         unistr/u*-strchr: Fix tests dependencies.
9796         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9797         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9798         Reported by Ian Beckwith <ianb@erislabs.net>.
9799
9800 2010-08-28  Bruno Haible  <bruno@clisp.org>
9801
9802         read-file: Don't occupy too much unused memory.
9803         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9804
9805 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9806             Eric Blake  <eblake@redhat.com>
9807             Bruno Haible  <bruno@clisp.org>
9808
9809         read-file: Avoid memory reallocations with regular files.
9810         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9811         (fread_file): With regular files, use the remaining length as the
9812         initial buffer size.  Check against overflow.
9813         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9814         sys_stat.
9815
9816 2010-08-28  Bruno Haible  <bruno@clisp.org>
9817
9818         ftello: Relax license.
9819         * modules/ftello (License): Relax to LGPLv2+.
9820         Reported by Eric Blake.
9821
9822 2010-08-28  Bruno Haible  <bruno@clisp.org>
9823
9824         Avoid relocwrapper link errors due to gnulib replacement functions.
9825         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9826         function.
9827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9828
9829 2010-08-28  Bruno Haible  <bruno@clisp.org>
9830
9831         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9832         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9833         defined.
9834         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9835         Suggested by Eric Blake.
9836
9837 2010-08-28  Bruno Haible  <bruno@clisp.org>
9838
9839         sys_socket, netdb: Ensure socklen_t gets defined.
9840         * modules/sys_socket (Depends-on): Add socklen.
9841         * modules/netdb (Depends-on): Likewise.
9842         * modules/getaddrinfo (Depends-on): Remove socklen.
9843         * modules/getsockopt (Depends-on): Likewise.
9844         * modules/setsockopt (Depends-on): Likewise.
9845         * tests/test-sys_socket.c: Check that socklen_t is defined.
9846         * tests/test-netdb.c: Likewise.
9847         * m4/socklen.m4: Update comments.
9848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9849
9850 2010-08-27  Eric Blake  <eblake@redhat.com>
9851
9852         login_tty: add missing dependency
9853         * modules/login_tty (Depends-on): Add pty.
9854
9855 2010-08-26  Eric Blake  <eblake@redhat.com>
9856
9857         lib-symbol-versions: fix m4 quoting
9858         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9859         format for AC_LINK_IFELSE.
9860
9861         glob: fix compile test
9862         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9863
9864         btowc: fix missing file
9865         * modules/btowc (Files): Also ship locale-fr.m4.
9866
9867         lseek: fix link test
9868         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9869         AC_LINK_IFELSE.
9870
9871         include_next: silence autoconf 2.68 warning
9872         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9873         AC_COMPILE_IFELSE as special.
9874         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9875         autoconf < 2.68.
9876
9877         acl: fix compilation test
9878         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9879         AC_COMPILE_IFELSE.
9880
9881 2010-08-26  Bruno Haible  <bruno@clisp.org>
9882
9883         Modernize AC_TRY_RUN invocations.
9884         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9885         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9886         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9887         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9888         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9889         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9890         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9891         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9892         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9893         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9894         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9895         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9896         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9897         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9899         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9900         gl_MBRLEN_NUL_RETVAL): Likewise.
9901         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9902         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9903         Likewise.
9904         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9905         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9906         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9907         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9908         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9909         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9910         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9911         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9912         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9913         Likewise.
9914         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9915         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9916         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9917         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9918         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9919         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9921         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9922         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9923         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9924
9925 2010-08-26  Bruno Haible  <bruno@clisp.org>
9926
9927         Modernize AC_TRY_LINK invocations.
9928         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9929         AC_TRY_LINK.
9930         * m4/argp.m4 (gl_ARGP): Likewise.
9931         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9932         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9933         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9934         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9935         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9936         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9937         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9938         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9939         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9940         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9941         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9942         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9943         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9944         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9945         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9946         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9947         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9948         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9949         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9950         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9951         Likewise.
9952         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9953         Likewise.
9954         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9955         Likewise.
9956         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9958         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9959         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9960         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9961         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9962         * m4/servent.m4 (gl_SERVENT): Likewise.
9963         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9964         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9965         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9966         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9967         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9968         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9969         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9971         * modules/tsearch-tests (configure.ac): Likewise.
9972
9973 2010-08-26  Bruno Haible  <bruno@clisp.org>
9974
9975         Modernize AC_TRY_COMPILE invocations.
9976         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9977         AC_TRY_COMPILE.
9978         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9979         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9980         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9981         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9982         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9983         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9984         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9985         * m4/lock.m4 (gl_LOCK): Likewise.
9986         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9987         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9988         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9989         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9990         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9991         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9992         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9994         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9995         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9996         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9997         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9998         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9999         extraneous semicolon.
10000
10001 2010-08-26  Jim Meyering  <meyering@redhat.com>
10002
10003         stat-time: relax license LGPL
10004         * modules/stat-time (License): Change from GPL to LGPL,
10005         with consent from all contributors, for use in libguile.
10006         Requested by Ludovic Courtès.
10007
10008 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10009
10010         poll: return immediately on POLLHUP.
10011         * lib/poll.c (poll): Always set timeout before wait_timeout is
10012         computed.
10013
10014 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10015
10016         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10017         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10018         rmdir ("dir/.//"), unlinkat.
10019
10020 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10021
10022         stdbool: avoid spurious failure with modern xlc
10023         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10024
10025 2010-08-24  Bruno Haible  <bruno@clisp.org>
10026
10027         getloadavg: simplify code
10028         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10029         gl_have_func. Update comments.
10030
10031 2010-08-24  Eric Blake  <eblake@redhat.com>
10032
10033         getloadavg: don't define SVR4 on cygwin
10034         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10035         only define SVR4 when -lkvm is required.
10036         Reported by Yaakov Selkowitz.
10037
10038 2010-08-24  Bruno Haible  <bruno@clisp.org>
10039
10040         priv-set: fix comment
10041         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10042
10043 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10044
10045         priv-set: fix comments
10046         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10047         to match code, as suggested by David Bartley in:
10048         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10049
10050 2010-08-23  Eric Blake  <eblake@redhat.com>
10051
10052         stdbool: avoid rejecting clang
10053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10054         * tests/test-stdbool.c: Enable more tests if using the system
10055         <stdbool.h> instead of the gnulib replacement.
10056         (main): Move xlc bug test to a runtime test for all compilers.
10057         Reported by Anders Kaseorg.
10058
10059         argz: fix shell quoting issue
10060         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10061         Reported by Charles Wilson.
10062
10063 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10064             Erik Faye-Lund <kusmabite@gmail.com>
10065
10066         poll, select: handle ERROR_BROKEN_PIPE.
10067         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10068         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10069         * lib/select.c (win32_compute_revents): Do not mark a pipe
10070         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10071
10072 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10073
10074         fts: allow compilation with C++
10075         * lib/fts_.h: Specify extern "C" linkage with C++.
10076
10077 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10078
10079         Fix gnulib-tool sed script de-commentation for AIX sed.
10080         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10081         sed.
10082
10083 2010-08-17  Eric Blake  <eblake@redhat.com>
10084
10085         test-stddef: test for (some) offsetof bugs
10086         * tests/test-stddef.c: Enhance test to ensure correct type of
10087         offsetof.
10088         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10089         that we are not fixing at this time.
10090
10091 2010-08-15  Bruno Haible  <bruno@clisp.org>
10092
10093         stpncpy: Allow stpncpy to be defined as a macro.
10094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10095         if it's already correctly declared.
10096         * lib/string.in.h (stpncpy): Undefine before redefining.
10097         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10098
10099 2010-08-14  Bruno Haible  <bruno@clisp.org>
10100
10101         Rename module 'memxfrm' to 'amemxfrm'.
10102         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10103         (amemxfrm): Renamed from memxfrm.
10104         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10105         (amemxfrm): Renamed from memxfrm.
10106         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10107         * NEWS: Mention the change.
10108         * MODULES.html.sh (String handling <string.h>): Update.
10109         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10110         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10111         * lib/unicase/u16-casexfrm.c: Likewise.
10112         * lib/unicase/u32-casexfrm.c: Likewise.
10113         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10114         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10115         * lib/uninorm/u16-normxfrm.c: Likewise.
10116         * lib/uninorm/u32-normxfrm.c: Likewise.
10117         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10118         memxfrm.
10119         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10120         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10121         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10122         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10123         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10124         Suggested by Paul Eggert.
10125
10126 2010-08-14  Bruno Haible  <bruno@clisp.org>
10127
10128         Tests for module 'astrxfrm'.
10129         * modules/astrxfrm-tests: New file.
10130         * tests/test-astrxfrm.c: New file.
10131
10132         New module 'astrxfrm'.
10133         * lib/astrxfrm.h: New file.
10134         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10135         * modules/astrxfrm: New file.
10136
10137 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10138
10139         regex: Tweak doc.
10140         * doc/regex.texi (Overview): Don't mention regex.c.
10141         (GNU Regular Expression Compiling): Likewise.
10142         (Match-end-of-line Operator): Mention 'not_eol'.
10143
10144 2010-08-14  Brian Gough  <bjg@gnu.org>
10145             Bruno Haible  <bruno@clisp.org>
10146
10147         git-merge-changelog: add doc relating to use with bzr and hg.
10148         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10149
10150 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10151
10152         pthread: fix pthread.h creation for srcdir != builddir
10153         * modules/pthread (Makefile.am): Fix the rule to work also in a
10154         non-srcdir build.
10155
10156 2010-08-13  Karl Berry  <karl@gnu.org>
10157
10158         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10159         * doc/posix-*/*: force line break before @url of POSIX
10160         specifications.
10161         Suggested by Werner Lemberg.
10162
10163 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10164
10165         strtod: fix const diagnostic
10166         * lib/strtod.c (strtod): Don't assign const char * to char *,
10167         as this elicits a warning from GCC when warnings are enabled.
10168
10169 2010-08-10  Pádraig Brady <P@draigbrady.com>
10170         and Eric Blake  <eblake@redhat.com>
10171
10172         copy-acl: ignore ENOTSUP on HP-UX
10173         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10174         so that it is available for HP-UX.
10175         * lib/copy-acl.c (qcopy_acl): Use it.
10176         Reported by Patrick M. Callahan.
10177
10178 2010-08-10  Eric Blake  <eblake@redhat.com>
10179
10180         open, chown: relax license
10181         * modules/open (License): Change to LGPLv2+, with consent by all
10182         authors, for use in augeas.
10183         * modules/chown (License): Likewise.
10184         * modules/lchown (Likewise): Likewise.
10185         Requested by Adam Stokes.
10186
10187 2010-08-09  Karl Berry  <karl@gnu.org>
10188
10189         * build-aux/ar-lib: new file, import from Automake.
10190         * config/srclist.txt: autocheck for updates.
10191
10192 2010-08-09  Eric Blake  <eblake@redhat.com>
10193
10194         readlinkat: adjust client modules
10195         * modules/areadlinkat (Depends-on): Use readlinkat, not
10196         symlinkat.
10197         * modules/areadlinkat-with-size (Depends-on): Likewise.
10198
10199         mknod: be more vocal about danger of running tests as root
10200         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10201         root, since that is just asking for problems.
10202         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10203
10204         readlinkat: split into its own module
10205         * modules/symlinkat: Split readlinkat...
10206         * modules/readlinkat: ...into separate module.
10207         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10208         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10209         * lib/symlinkat.c (readlinkat): Move...
10210         * lib/readlinkat.c: ...into new file.
10211         * modules/symlinkat-tests: Split readlinkat test...
10212         * modules/readlinkat-tests: ...into separate module.
10213         * tests/test-symlinkat.c: Split...
10214         * tests/test-readlinkat.c: ...into new file.
10215         * NEWS: Document the split.
10216         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10217         * lib/unistd.in.h (readlinkat): Likewise.
10218         Suggested by Bruno Haible.
10219
10220 2010-08-08  Bruno Haible  <bruno@clisp.org>
10221
10222         memxfrm: Speed up.
10223         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10224         that usually only one call to strxfrm is necessary for each string
10225         part.
10226         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10227
10228 2010-08-07  Karl Berry  <karl@gnu.org>
10229
10230         * doc/posix-headers/limits.texi,
10231         * doc/posix-functions/malloc.texi,
10232         * doc/posix-functions/strsignal.texi: missing @item.
10233         * doc/ld-version-script.texi: spurious leading i.
10234         * doc/regex.texi (Interval Operators): no commas inside @var.
10235
10236 2010-08-01  Bruno Haible  <bruno@clisp.org>
10237
10238         Integrate the regex documentation.
10239         * doc/gnulib.texi: Define 'cn' index.
10240         (Regular expressions): New a chapter that includes regex.texi and
10241         regexprops-generic.texi.
10242         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10243         syntax.
10244
10245         Whitespace cleanup.
10246         * doc/regex.texi: Remove trailing spaces.
10247
10248         Add regex documentation.
10249         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10250         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10251         Written by Kathy A. Hargreaves and Karl Berry.
10252
10253 2010-08-01  Bruno Haible  <bruno@clisp.org>
10254
10255         link: Update documentation.
10256         * doc/posix-functions/link.texi: Update regarding Solaris.
10257
10258 2010-07-31  Bruno Haible  <bruno@clisp.org>
10259
10260         Update modules list.
10261         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10262         (String handling <string.h>): Add memcmp2, memxfrm.
10263         (Container data structures): Add xlist, xsublist, xoset.
10264         (Core language properties): Add alignof, unused-parameter.
10265         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10266         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10267         (Unibyte characters <ctype.h>): New section.
10268         (String handling <string.h>): New section.
10269         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10270         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10271         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10272         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10273         tan, tanh, tanl, y0, y1, yn.
10274         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10275         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10276         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10277         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10278         unlockpt, vdprintf, vdprintf-posix.
10279         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10280         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10281         xconcat-filename.
10282         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10283         getdtablesize, pipe2, pipe2-safer.
10284         (Security): New section.
10285         (Networking functions): Add accept4.
10286         (Signal handling): Add sigpipe.
10287         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10288         mbmemcasecoll.
10289         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10290         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10291         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10292         pipe-filter-ii.
10293         (Misc): Add argp-version-etc, login_tty, parse-duration.
10294
10295 2010-07-31  Bruno Haible  <bruno@clisp.org>
10296
10297         Improve doc in MODULES.html.
10298         * modules/linkat (Description): Add the word "function".
10299         * modules/mkfifo (Description): Likewise.
10300         * modules/mknod (Description): Likewise.
10301         * modules/remove (Description): Likewise.
10302         * modules/renameat (Description): Likewise.
10303         * modules/stat (Description): Likewise.
10304         * modules/symlink (Description): Likewise.
10305         * modules/unlink (Description): Likewise.
10306
10307 2010-07-31  Bruno Haible  <bruno@clisp.org>
10308
10309         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10310         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10311         option --enable/disable-c++ instead of --enable/disable-cxx.
10312         * NEWS: Mention the change.
10313
10314 2010-07-31  Bruno Haible  <bruno@clisp.org>
10315
10316         readlink, areadlink: Relax test a bit.
10317         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10318         alternative to ENOTDIR.
10319         * tests/test-areadlink.h (test_areadlink): Likewise.
10320         Reported by Rainer Tammer.
10321
10322 2010-07-31  Bruno Haible  <bruno@clisp.org>
10323
10324         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10325         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10326         character, perform the search using U_STRCHR.
10327         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10328         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10329         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10330         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10331         Suggested by Paolo Bonzini.
10332
10333 2010-07-31  Bruno Haible  <bruno@clisp.org>
10334
10335         unistr/u*-strstr: Fix dependencies.
10336         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10337         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10338         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10339
10340 2010-07-31  Bruno Haible  <bruno@clisp.org>
10341
10342         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10343         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10344         the beginning of the loop.
10345         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10346         cases in 'switch' statement.
10347
10348         unistr/u8-strchr: Fix several bugs.
10349         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10350         the string. When not found, return NULL, not a pointer near the end.
10351
10352         More tests for unistr/u8-strchr.
10353         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10354         that the function does not read past the first occurrence of the byte
10355         being searched.
10356         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10357         * tests/unistr/test-u16-strchr.c (main): New function.
10358         * tests/unistr/test-u32-strchr.c (main): New function.
10359
10360 2010-07-31  Bruno Haible  <bruno@clisp.org>
10361
10362         posix-modules: Ignore backup files of documentation files.
10363         * posix-modules: grep only through files named *.texi.
10364
10365 2010-07-31  Bruno Haible  <bruno@clisp.org>
10366
10367         symlinkat: Fix documentation.
10368         * doc/posix-functions/readlinkat.texi: Fix module name.
10369
10370 2010-07-31  Bruno Haible  <bruno@clisp.org>
10371
10372         fchownat: Replace also when chown has the trailing slash bug.
10373         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10374         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10375         introduced on 2010-04-10.
10376         Reported by Rainer Tammer.
10377
10378 2010-07-31  Bruno Haible  <bruno@clisp.org>
10379
10380         linkat: Work around AIX 7.1 bug.
10381         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10382         whether linkat handles trailing slash correctly. If not, replace linkat
10383         and define LINKAT_TRAILING_SLASH_BUG.
10384         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10385         check whether (fd1,file1) points to a directory if file1 or file2 ends
10386         in a slash. Code taken from lib/link.c.
10387         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10388         Reported by Rainer Tammer.
10389
10390 2010-07-31  Bruno Haible  <bruno@clisp.org>
10391
10392         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10393         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10394         This disables an xlc optimization that was causing wrong test results.
10395         Reported by Rainer Tammer.
10396
10397 2010-07-31  Bruno Haible  <bruno@clisp.org>
10398
10399         iconv: Work around AIX 6.1..7.1 bug.
10400         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10401         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10402         cross-compiling, guess no on all versions of AIX.
10403         Reported by Rainer Tammer.
10404
10405 2010-07-31  Bruno Haible  <bruno@clisp.org>
10406
10407         readlink: Relax test a bit.
10408         * tests/test-readlink.h (test_readlink): Allow different errno value
10409         when readlink is called with a file name that ends in / and refers to
10410         a file.
10411         Suggested by Eric Blake.
10412         Reported by Rainer Tammer.
10413
10414 2010-07-31  Bruno Haible  <bruno@clisp.org>
10415
10416         copysign: Does not require -lm on glibc systems.
10417         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10418         gl_COMMON_DOUBLE_MATHFUNC.
10419         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10420
10421 2010-07-31  Bruno Haible  <bruno@clisp.org>
10422
10423         duplocale: Work around AIX 7.1 bug.
10424         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10425         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10426         * lib/duplocale.c (rpl_duplocale): Update comment.
10427         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10428         Reported by Rainer Tammer.
10429
10430 2010-07-30  Bruno Haible  <bruno@clisp.org>
10431
10432         dirfd: Avoid link error on AIX 7.1.
10433         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10434         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10435         exist, set REPLACE_DIRFD.
10436         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10437         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10438         * doc/posix-functions/dirfd.texi: Update.
10439         Reported by Rainer Tammer.
10440
10441 2010-07-30  Eric Blake  <eblake@redhat.com>
10442
10443         strtod: next round of AIX fixes
10444         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10445         exponent.
10446         * tests/test-strtod.c (main): Enhance tests.
10447         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10448         Reported by Rainer Tammer.
10449
10450         futimens: fix configure check
10451         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10452         Reported by Bruno Haible.
10453
10454 2010-07-30  Bruno Haible  <bruno@clisp.org>
10455
10456         getline: Update regarding AIX.
10457         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10458         Reported by Rainer Tammer.
10459
10460 2010-07-30  Bruno Haible  <bruno@clisp.org>
10461
10462         wcwidth: Drop replacement on AIX 7.
10463         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10464         AIX 7.
10465         Reported by Rainer Tammer.
10466
10467 2010-07-30  Bruno Haible  <bruno@clisp.org>
10468
10469         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10471         a 'char *'.
10472         Reported by Rainer Tammer.
10473
10474 2010-07-30  Bruno Haible  <bruno@clisp.org>
10475
10476         unlink: Update regarding AIX.
10477         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10478         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10479         Reported by Rainer Tammer.
10480
10481 2010-07-30  Bruno Haible  <bruno@clisp.org>
10482
10483         symlink: Update regarding AIX.
10484         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10485         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10486         Reported by Rainer Tammer.
10487
10488 2010-07-30  Bruno Haible  <bruno@clisp.org>
10489
10490         strndup: Update regarding AIX.
10491         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10492         AIX 7.
10493         Reported by Rainer Tammer.
10494
10495 2010-07-30  Bruno Haible  <bruno@clisp.org>
10496
10497         stat: Update regarding AIX.
10498         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10499         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10500         Reported by Rainer Tammer.
10501
10502 2010-07-30  Bruno Haible  <bruno@clisp.org>
10503
10504         truncl: Fix autoconf test.
10505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10506         whether truncl works.
10507         Reported by Rainer Tammer.
10508
10509 2010-07-30  Bruno Haible  <bruno@clisp.org>
10510
10511         round: Update regarding AIX.
10512         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10513         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10514         Reported by Rainer Tammer.
10515
10516 2010-07-30  Bruno Haible  <bruno@clisp.org>
10517
10518         rename: Update regarding AIX.
10519         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10520         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10521         Reported by Rainer Tammer.
10522
10523 2010-07-30  Bruno Haible  <bruno@clisp.org>
10524
10525         printf.m4: Update regarding AIX.
10526         * m4/printf.m4: Update comments regarding AIX.
10527         Reported by Rainer Tammer.
10528
10529 2010-07-30  Bruno Haible  <bruno@clisp.org>
10530
10531         iconv: Update regarding AIX.
10532         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10533         AIX 7.
10534         Reported by Rainer Tammer.
10535
10536 2010-07-30  Bruno Haible  <bruno@clisp.org>
10537
10538         getopt: Update regarding AIX.
10539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10540         no on AIX.
10541         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10542         Reported by Rainer Tammer.
10543
10544 2010-07-30  Bruno Haible  <bruno@clisp.org>
10545
10546         ldexpl; Update regarding AIX.
10547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10548         on AIX 7.
10549         Reported by Rainer Tammer.
10550
10551 2010-07-30  Bruno Haible  <bruno@clisp.org>
10552
10553         frexpl: Update regarding AIX.
10554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10555         on AIX 7.
10556         Reported by Rainer Tammer.
10557
10558 2010-07-30  Bruno Haible  <bruno@clisp.org>
10559
10560         open, fopen: Update regarding AIX.
10561         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10562         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10563         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10564         * doc/posix-functions/fopen.texi: Likewise.
10565         Reported by Rainer Tammer.
10566
10567 2010-07-30  Bruno Haible  <bruno@clisp.org>
10568
10569         chown: Update doc regarding AIX.
10570         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10571         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10572         Reported by Rainer Tammer.
10573
10574 2010-07-30  Eric Blake  <eblake@redhat.com>
10575
10576         strtod: fix bug in replacement function on AIX
10577         * lib/strtod.c (strtod): Special case broken "0x" parse in
10578         underlying strtod.
10579         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10580         * doc/posix-functions/strtod.texi (strtod): Likewise.
10581         Reported by Rainer Tammer.
10582
10583 2010-07-30  Bruno Haible  <bruno@clisp.org>
10584
10585         mbrlen: Fix cross-compilation guess for AIX.
10586         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10587         guess. Leftover from 2008-12-22.
10588
10589 2010-07-30  Bruno Haible  <bruno@clisp.org>
10590
10591         mbrtowc: Fix cross-compilation guess for AIX.
10592         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10593         guess. Leftover from 2008-12-21.
10594
10595 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10596
10597         init.sh: work around trap limitation of some shells
10598         * tests/init.sh (setup_): Move exit trap outside of shell function.
10599
10600 2010-07-29  Eric Blake  <eblake@redhat.com>
10601
10602         strtod: aid debugging
10603         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10604         understanding why strtod is rejected.
10605
10606 2010-07-28  Bruno Haible  <bruno@clisp.org>
10607
10608         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10609         * lib/unistr/u8-chr.c: Include <string.h>.
10610         * tests/unistr/test-u8-chr.c: Likewise.
10611         * tests/unistr/test-u16-chr.c: Likewise.
10612         * tests/unistr/test-u32-chr.c: Likewise.
10613         * tests/unistr/test-u8-strchr.c: Likewise.
10614         * tests/unistr/test-u16-strchr.c: Likewise.
10615         * tests/unistr/test-u32-strchr.c: Likewise.
10616         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10617         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10618         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10619         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10620
10621 2010-07-28  Bruno Haible  <bruno@clisp.org>
10622
10623         Use spaces for indentation, not tabs.
10624         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10625
10626 2010-07-27  Bruno Haible  <bruno@clisp.org>
10627
10628         mbspcasecmp: Fix function specification.
10629         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10630         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10631         Reported by Eric Blake <eblake@redhat.com>.
10632
10633 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10634
10635         timespec: use cast and not conditional, as truncation isn't possible
10636         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10637         instead of a conditional.  Comment about the situation in more detail.
10638         This undoes most of the 2009-10-29 patch.
10639
10640 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10641
10642         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10643         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10644         * lib/unistr/u8-strchr.c: Likewise.
10645         * modules/unistr/u8-chr: Depend on memchr.
10646
10647         unistr/u*-strchr: add tests
10648         * modules/unistr/u8-strchr-tests: New file.
10649         * modules/unistr/u16-strchr-tests: New file.
10650         * modules/unistr/u32-strchr-tests: New file.
10651         * tests/unistr/test-strchr.h: New file.
10652         * tests/unistr/test-u8-strchr.c: New file.
10653         * tests/unistr/test-u16-strchr.c: New file.
10654         * tests/unistr/test-u32-strchr.c: New file.
10655
10656         unistr/u*-chr: test multibyte sequences more
10657         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10658         test vector.
10659         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10660         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10661         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10662
10663         unistr/u*-chr: test multibyte sequences
10664         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10665
10666         unistr/u*-chr: prepare for multibyte tests
10667         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10668         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10669         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10670         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10671         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10672         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10673
10674 2010-07-18  Bruno Haible  <bruno@clisp.org>
10675
10676         unistr/u8-strchr: Optimize non-ASCII argument case.
10677         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10678         because the first byte often matches anyway.
10679         Reported by Pádraig Brady <P@draigbrady.com>.
10680
10681 2010-07-15  Karl Berry  <karl@gnu.org>
10682
10683         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10684
10685 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10686
10687         getcwd: on Solaris, work better if ancestors are inaccessible
10688         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10689         buffer and size, try again with a large buffer.  This works better
10690         on Solaris, since its getcwd succeeds even if the path to the root
10691         is inaccessible, and this is helpful in common cases such as .zfs
10692         hidden directories.  Problem reported by J Chapman Flack in
10693         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10694         Use system getcwd if it's declared, not merely if it's partly
10695         working; use the partly-working test only to avoid needless effort
10696         if the system getcwd fails.
10697         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10698         comment that was already obsolete and is now even more obsolete.
10699         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10700         now might call strdup.
10701
10702 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10703
10704         pthread: Add enough so that coreutils/src/sort.c compiles.
10705         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10706         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10707         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10708         Include <sys/types.h>, in case it defines pthread_t.
10709         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10710         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10711         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10712         (pthread_rwlockattr_t, pthread_spinlock_t):
10713         New typedefs, if HAVE_PTHREAD_T is not defined.
10714         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10715         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10716         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10717         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10718         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10719         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10720         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10721         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10722         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10723         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10724         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10725         New macros.
10726         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10727         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10728         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10729         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10730         (pthread_spin_unlock): New dummy functions.
10731         (pthread_create): Return EAGAIN; don't set errno.
10732         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10733         require AC_C_INLINE.
10734         * modules/pthread (Depends-on): Add sched, time.
10735         (pthread.h): Use AM_V_GEN.
10736
10737 2010-07-13  Bruno Haible  <bruno@clisp.org>
10738
10739         striconveh: Don't malloc memory if the result buffer is sufficient.
10740         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10741         buffer if its size is sufficient.
10742         Reported by Ludovic Courtès <ludo@gnu.org>.
10743
10744 2010-07-13  Bruno Haible  <bruno@clisp.org>
10745
10746         strtod: Add safety check.
10747         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10748
10749 2010-07-12  Bruno Haible  <bruno@clisp.org>
10750
10751         Unify tests that set gl_cv_func_ldexpl_no_libm.
10752         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10753         gl_FUNC_LDEXPL.
10754         (gl_FUNC_LDEXPL): Invoke it.
10755         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10756
10757 2010-07-12  Bruno Haible  <bruno@clisp.org>
10758
10759         Unify tests that set gl_cv_func_ldexp_no_libm.
10760         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10761         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10762         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10763         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10764         * modules/strtod (Files): Add m4/ldexp.m4.
10765
10766 2010-07-12  Bruno Haible  <bruno@clisp.org>
10767
10768         Unify tests that set gl_cv_func_frexpl_no_libm.
10769         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10770         gl_FUNC_FREXPL_NO_LIBM.
10771         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10772         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10773
10774 2010-07-12  Bruno Haible  <bruno@clisp.org>
10775
10776         Unify tests that set gl_cv_func_frexp_no_libm.
10777         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10778         gl_FUNC_FREXP_NO_LIBM.
10779         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10780         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10781
10782 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10783
10784         memcoll: clarify sizes versus lengths, document better, and tweak perf
10785         * lib/memcoll.c (strcoll_loop, memcoll0):
10786         Improve quality of descriptive comments.  Name variables
10787         consistently as to whether they are lengths (which do not include
10788         terminating null) versus sizes (which do).
10789         * lib/xmemcoll.c (xmemcoll0): Likewise.
10790         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10791         returned when s1size == 0; this is easier to compile and saves
10792         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10793
10794 2010-07-12  Bruno Haible  <bruno@clisp.org>
10795
10796         Tests for module '_Exit'.
10797         * modules/_Exit-tests: New file.
10798         * tests/test-_Exit.sh: New file.
10799         * tests/test-_Exit.c: New file.
10800
10801         New module '_Exit'.
10802         * lib/stdlib.in.h (__attribute__): New macro.
10803         (_Exit): New declaration.
10804         * lib/_Exit.c: New file.
10805         * m4/_Exit.m4: New file.
10806         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10807         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10808         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10809         * modules/_Exit: New file.
10810         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10811         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10812
10813 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10814
10815         strtod: make it more-accurate typically, and don't require libm
10816         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10817         Include limits.h.  Don't include string.h.
10818         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10819         (locale_isspace): New function, so that no casts are needed to
10820         check whether *s is a space.
10821         (ldexp): Provide an unused dummy if not available.
10822         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10823         (strtod): Use them.  This implementation prefers to use the
10824         underlying strtod if available, falling back on our own code
10825         only to fix known bugs.  This is more likely to produce an
10826         accurate result.  Also, it avoids the use of libm functions.
10827         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10828         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10829         was absent, but it caused a test failure with coreutils.
10830         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10831         with libm.
10832         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10833         * modules/strtod-tests (Makefile.am): Likewise.
10834
10835 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10836             Bruno Haible  <bruno@clisp.org>
10837
10838         unistr/u8-strchr: Optimize ASCII argument case.
10839         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10840
10841 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10842
10843         (x)memcoll: minor tweaks
10844         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10845         is after the type that it qualifies.
10846         (memcoll0): Likewise.
10847         * lib/memcoll.h (memcoll0): Likewise.
10848         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10849         * lib/xmemcoll.h (xmemcoll0): Likewise.
10850         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10851         differs from memcoll in that the NUL byte is part of the argument.
10852         Omit the abort-checks, as performance is a real issue here.  Plus,
10853         the checks were wrong anyway (an off-by-one error).  Omit local
10854         variable 'diff', as it's a bit clearer that way.
10855         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10856         no longer needed.
10857
10858 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10859
10860         (x)memcoll: speedup when input is known to be NUL delimited
10861         * lib/memcoll.c: Include stdlib.
10862         (memcoll0) New function.
10863         (strcoll_loop) New function, refactored for use in both memcoll
10864         and memcoll0.
10865         * lib/memcoll.h: Add prototype for memcoll0.
10866         * lib/xmemcoll.c: (xmemcoll0) New function.
10867         (collate_error) New function, refactored for use in both xmemcoll
10868         and xmemcoll0.
10869         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10870         * m4/memcoll.m4: add inline invocation.
10871
10872 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10873
10874         * build-aux/bootstrap: Remove any local translations
10875         from the translation project synchronization directory,
10876         so that local only translations are not distributed.
10877
10878 2010-07-04  Bruno Haible  <bruno@clisp.org>
10879
10880         fsusage: Clarify which code applies to which platforms.
10881         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10882         platform.
10883         * lib/fsusage.c (get_fs_usage): Likewise.
10884
10885 2010-07-04  Bruno Haible  <bruno@clisp.org>
10886
10887         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10888         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10889         Reported by Martin Lambers <marlam@marlam.de>.
10890
10891 2010-07-04  Jim Meyering  <meyering@redhat.com>
10892
10893         hash: once again explicitly disallow insertion of NULL
10894         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10895         inserting a NULL pointer cannot work with these functions.
10896         Add a comment with details.
10897         This reverts part of the 2010-07-01 commit, 5bef1a35
10898         "hash: extend module to deal with non-pointer keys".
10899
10900 2010-07-01  Bruno Haible  <bruno@clisp.org>
10901
10902         stdbool: Update doc.
10903         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10904         Info from Christian Weisgerber <naddy@mips.inka.de>.
10905
10906 2010-07-01  Jim Meyering  <meyering@redhat.com>
10907
10908         hash: extend module to deal with non-pointer keys
10909         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10910         but that allows insertion of non-pointer entries.
10911         Do not disallow an ENTRY value of NULL.
10912         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10913         * lib/hash.h (hash_insert0): Declare.
10914
10915 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10916
10917         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10918         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10919         not present (i.e. with autoconf 2.59 and when using gettextize, not
10920         gnulib), require AC_GNU_SOURCE instead.
10921
10922 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10923
10924         idpriv-drop: Fix tests.
10925         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10926         not to the test-idpriv-droptemp program.
10927
10928 2010-06-29  Bruno Haible  <bruno@clisp.org>
10929
10930         string: Fix syntax error with g++ 2.96.
10931         * lib/string.in.h (__pure__): Remove definition.
10932         (_GL_ATTRIBUTE_PURE): New macro.
10933         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10934         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10935         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10936
10937 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10938
10939         unitypes: Fix bug introduced on 2010-05-18.
10940         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10941
10942 2010-06-22  Eric Blake  <eblake@redhat.com>
10943
10944         memmem: slight optimization
10945         * lib/str-two-way.h (critical_factorization): Update comments.
10946         Reduce work during factorization phase.
10947         Reported by Carlos Bueno <carlos@bueno.org>.
10948
10949 2010-06-21  Bruno Haible  <bruno@clisp.org>
10950
10951         Fix HAVE_CALLOC_POSIX misnomer.
10952         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10953         !HAVE_CALLOC_POSIX.
10954         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10955         HAVE_CALLOC_POSIX.
10956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10957         instead of HAVE_CALLOC_POSIX.
10958         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10959         HAVE_CALLOC_POSIX.
10960
10961         Use modern idiom for calloc() replacement.
10962         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10963         AC_FUNC_CALLOC.
10964         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10965         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10966         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10967         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10968         (gl_REPLACE_CALLOC): New macro.
10969
10970 2010-06-21  Bruno Haible  <bruno@clisp.org>
10971
10972         Fix HAVE_REALLOC_POSIX misnomer.
10973         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10974         !HAVE_REALLOC_POSIX.
10975         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10976         HAVE_REALLOC_POSIX.
10977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10978         instead of HAVE_REALLOC_POSIX.
10979         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10980         HAVE_REALLOC_POSIX.
10981
10982         Use modern idiom for realloc() replacement.
10983         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10984         AC_FUNC_REALLOC.
10985         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10986         Autoconf's AC_FUNC_REALLOC.
10987         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10988         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10989         (gl_REPLACE_REALLOC): New macro.
10990         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10991
10992 2010-06-21  Bruno Haible  <bruno@clisp.org>
10993
10994         Fix HAVE_MALLOC_POSIX misnomer.
10995         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10996         !HAVE_MALLOC_POSIX.
10997         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10998         HAVE_MALLOC_POSIX.
10999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11000         instead of HAVE_MALLOC_POSIX.
11001         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11002         HAVE_MALLOC_POSIX.
11003
11004         Use modern idiom for malloc() replacement.
11005         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11006         AC_FUNC_MALLOC.
11007         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11008         Autoconf's AC_FUNC_MALLOC.
11009         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11010         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11011         (gl_REPLACE_MALLOC): New macro.
11012         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11013
11014 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11015
11016         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11017         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11018         This macro takes 3 arguments, not 4.
11019
11020 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11021
11022         ipv6: fix detection under mingw
11023         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11024         in6_addr.
11025
11026 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11027
11028         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11029         that strtod() works when cross-compiling to a glibc version known
11030         to work.
11031
11032 2010-06-15  Bruno Haible  <bruno@clisp.org>
11033
11034         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11035
11036 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11037
11038         select: Correct timeout.
11039         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11040
11041 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11042
11043         git-version-gen: init shell var to avoid env var influence
11044         * build-aux/git-version-gen (v): Init shell var to empty.
11045
11046 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11047
11048         priv-set: Don't assume that priv.h exists merely because getppriv does.
11049         See Jan Andersen's bug report about AIX 5L in
11050         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11051         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11052         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11053         * lib/priv-set.h: Likewise.
11054         * tests/test-priv-set.c: Likewise.
11055
11056 2010-06-13  Bruno Haible  <bruno@clisp.org>
11057
11058         relocatable: Make it easier to test whether to install wrappers.
11059         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11060         RELOCATABLE_VIA_WRAPPER.
11061
11062 2010-06-13  Bruno Haible  <bruno@clisp.org>
11063
11064         gnulib-tool: Display specified modules and dependencies differently.
11065         * gnulib-tool (func_show_module_list): New function.
11066         (func_import, func_create_testdir): Invoke it.
11067         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11068
11069 2010-06-13  Bruno Haible  <bruno@clisp.org>
11070
11071         gnulib-tool: Align code of func_import and func_create_testdir.
11072         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11073         specified_modules.
11074
11075 2010-06-12  Jim Meyering  <meyering@redhat.com>
11076
11077         test-inttostr: avoid spurious failure on Solaris 9
11078         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11079         to accept "%ju".  Reported by Bruno Haible.
11080
11081 2010-06-11  Jim Meyering  <meyering@redhat.com>
11082
11083         test-sys_socket: mark variables as used more readably
11084         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11085         as "used" explicitly via (void) statement casts.  This is more
11086         readable than using them in an artificial return expression.
11087         Suggestion from Bruno Haible.
11088
11089 2010-06-11  Bruno Haible  <bruno@clisp.org>
11090
11091         Avoid some more warnings from "gcc -Wwrite-strings".
11092         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11093         to 'const char *'.
11094         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11095         * tests/test-c-strcasestr.c (main): Likewise.
11096         * tests/test-mbscasestr1.c (main): Likewise.
11097         * tests/test-mbscasestr2.c (main): Likewise.
11098         * tests/test-memmem.c (main): Likewise.
11099         * tests/test-strstr.c (main): Likewise.
11100         * tests/test-strcasestr.c (main): Likewise.
11101
11102 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11103
11104         init.sh: change framework_failure_ to fail with status 99, not 1
11105         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11106         automake's parallel-tests rule that this is an unexpected failure,
11107         even if the test is listed in XFAIL_TESTS.
11108
11109 2010-06-11  Jim Meyering  <meyering@redhat.com>
11110
11111         test-inttostr: avoid warnings about 4-6KB literal strings
11112         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11113         Include "macros.h", for its definition of ASSERT.
11114         (CK): s/assert/ASSERT/
11115         * modules/inttostr-tests (Files): Add macros.h.
11116
11117         init.sh: don't use $ME_ or skip_ before they are defined
11118         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11119         their first uses.  Also hoist their companions: warn_, fail_,
11120         framework_failure_, $stderr_fileno.  Prompted by a patch from
11121         Stefano Lattarini.
11122
11123         test-sys_socket: avoid set-but-not-used warnings from gcc
11124         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11125         avoid warning about set-but-not-used variables.
11126
11127         test-xvasprintf: avoid 'const' discard warnings
11128         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11129         "const" when assigning from literal strings.
11130         (test_xasprintf): Add "void" in function argument list to placate
11131         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11132
11133         tests: avoid compilation warnings in argmatch and exclude tests...
11134         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11135         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11136         Since it always exits, declare with the "noreturn" attribute.
11137         * tests/test-argmatch.c: Likewise.
11138
11139         tests: avoid 'const' discard warnings in mbsstr tests
11140         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11141         * tests/test-mbsstr2.c (main): Likewise.
11142
11143         test-verify: avoid warning from gcc's -Wmissing-declarations
11144         * tests/test-verify.c (function): Declare to be static.
11145
11146         test-inttostr.c: include <string.h> for use of strcmp
11147         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11148
11149         test-linkat: avoid failed assertion on "other" architectures
11150         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11151         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11152         sparc: https://bugs.launchpad.net/bugs/591968
11153
11154 2010-06-11  Jim Meyering  <meyering@redhat.com>
11155
11156         printf.m4: avoid autoconf's "Expanded Before Required" warning
11157         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11158         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11159         autoconf warning.
11160
11161 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11162
11163         Replacement header templates are now named with ".in", not "_".
11164         * doc/gnulib-intro.texi: Correct.
11165
11166 2010-06-10  Jim Meyering  <meyering@redhat.com>
11167
11168         inttostr-tests: depend on snprintf, not snprintf-posix
11169         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11170         snprintf-posix, to avoid this aclocal failure:
11171           missing file gnulib-tests/vasnprintf.c
11172           configure.ac:45: error: expected source file, required through \
11173           AC_LIBSOURCES, not found
11174
11175 2010-06-10  Jim Meyering  <meyering@redhat.com>
11176
11177         inttostr: add a new function, inttostr, and tests
11178         The namesake function was not available.  The existence of the
11179         template file, inttostr.c makes its addition nontrivial.
11180         * lib/anytostr.c: Rename from inttostr.c.
11181         (anytostr): Rename from inttostr.
11182         * lib/inttostr.c: New file.
11183         * modules/inttostr (Files): Add anytostr.c.
11184         (Makefile.am): Set lib_SOURCES instead of ...
11185         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11186         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11187         * lib/offtostr.c: Likewise.
11188         * lib/uinttostr.c: Likewise.
11189         * lib/umaxtostr.c: Likewise.
11190         * modules/inttostr-tests: New file.
11191         * tests/test-inttostr.c: New file.  Test these functions.
11192
11193 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11194             Bruno Haible  <bruno@clisp.org>
11195
11196         Add "Extending Gnulib" chapter to manual.
11197         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11198         chapter.
11199         (Extending Gnulib): New chapter.
11200         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11201         chapter.
11202
11203 2010-06-09  Bruno Haible  <bruno@clisp.org>
11204
11205         Avoid relocwrapper link errors due to gnulib replacement functions.
11206         * lib/areadlink.c: Use the system's malloc, realloc functions.
11207         (areadlink): Set errno to ENOMEM explicitly.
11208         * modules/areadlink (Depends-on): Remove malloc-posix.
11209         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11210
11211 2010-06-09  Bruno Haible  <bruno@clisp.org>
11212
11213         Avoid relocwrapper link errors due to gnulib replacement functions.
11214         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11215         * lib/malloca.c: Likewise.
11216         * lib/relocatable.c: Likewise.
11217         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11218         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11219         * lib/setenv.c: Use the system's malloc, realloc functions.
11220         * lib/strerror.c: Use the system's sprintf function.
11221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11222
11223 2010-06-04  Bruno Haible  <bruno@clisp.org>
11224
11225         Prefer documented low-level autoconf macro names.
11226         * m4/lib-link.m4: Use m4_translit instead of translit.
11227         * m4/environ.m4: Likewise.
11228         * m4/mathfunc.m4: Likewise.
11229         * m4/onceonly.m4: Likewise.
11230         * m4/stdint.m4: Likewise.
11231         Suggested by Eric Blake.
11232
11233 2010-06-04  Martin Lambers  <marlam@marlam.de>
11234             Bruno Haible  <bruno@clisp.org>
11235
11236         havelib: Allow library names with '+' characters.
11237         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11238         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11239
11240 2010-06-09  Bruno Haible  <bruno@clisp.org>
11241
11242         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11243         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11244         realloc failed.
11245
11246 2010-06-08  Peter Simons  <simons@cryp.to>
11247
11248         maint.mk: make the news-check rule more configurable
11249         * top/maint.mk (news-check-lines-spec) New variable.
11250         (news-check): Use "sed -n 1,10p" in place of "head".
11251
11252 2010-06-07  Jim Meyering  <meyering@redhat.com>
11253
11254         do-release-commit-and-tag: fix typo in --help
11255         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11256
11257         regex: avoid new dead-code warning with gcc-4.6.0
11258         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11259         if-block containing a while-loop.  It's been unused for at least
11260         5 years.
11261
11262 2010-06-05  Bruno Haible  <bruno@clisp.org>
11263
11264         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11265         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11266
11267 2010-06-04  Bruno Haible  <bruno@clisp.org>
11268
11269         Update to GNU gettext 0.18.1.
11270         * modules/gettext (configure.ac): Require gettext infrastructure from
11271         version 0.18.1.
11272
11273 2010-06-03  Bruno Haible  <bruno@clisp.org>
11274
11275         Don't use AC_LIBOBJ with file names in subdirectories.
11276         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11277         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11278         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11279         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11280         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11281         gl_LIBUNISTRING_LIBSOURCE.
11282         (Makefile.am): Augment lib_SOURCES here, conditionally.
11283         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11284
11285 2010-06-03  Bruno Haible  <bruno@clisp.org>
11286
11287         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11288         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11289         expansion does not end with a newline.
11290         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11291         unnecessary newline.
11292
11293 2010-06-03  Bruno Haible  <bruno@clisp.org>
11294
11295         Reduce dependencies.
11296         * tests/test-quotearg.h: New file, extracted from
11297         tests/test-quotearg.c.
11298         * tests/test-quotearg-simple.c: New file, extracted from
11299         tests/test-quotearg.c.
11300         * tests/test-quotearg.c: Don't include <ctype.h>.
11301         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11302         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11303         use_quote_double_quotes, use_quotearg_colon): Moved to
11304         tests/test-quotearg.h.
11305         (results_g, flag_results, custom_quotes, custom_results): Moved
11306         to tests/test-quotearg-simple.c.
11307         (main): Moved the part that does not depend on gettext to
11308         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11309         performed.
11310         * modules/quotearg-simple: New file.
11311         * modules/quotearg-simple-tests: New file.
11312         * modules/quotearg (Depends-on): Add quotearg-simple.
11313         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11314         (Files): Add tests/test-quotearg.h.
11315         Reported by Paolo Bonzini.
11316
11317 2010-06-03  Bruno Haible  <bruno@clisp.org>
11318
11319         Reduce dependencies.
11320         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11321
11322 2010-06-03  Bruno Haible  <bruno@clisp.org>
11323
11324         time: Undefine more broken macros.
11325         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11326         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11327         Reported by Eric Blake.
11328
11329 2010-06-03  Bruno Haible  <bruno@clisp.org>
11330
11331         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11332         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11333         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11334         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11335         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11336         Reported by Ludovic Courtès <ludo@gnu.org>.
11337
11338 2010-06-02  Eric Blake  <eblake@redhat.com>
11339
11340         time: work with mingw + pthreads-win32 library
11341         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11342         if timespec is defined only in pthread.h.
11343         * modules/time (Makefile.am): Substitute it.
11344         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11345         <pthread.h>, when needed.
11346         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11347         from the library.
11348
11349 2010-05-31  Bruno Haible  <bruno@clisp.org>
11350
11351         Avoid expanding two macros in the wrong order.
11352         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11353         gl_LIBUNISTRING if it is defined.
11354         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11355         autoconf >= 2.64.
11356         Reported by Ludovic Courtès <ludo@gnu.org>.
11357
11358 2010-05-27  Jim Meyering  <meyering@redhat.com>
11359
11360         maint.mk: also prohibit "#undef" of always-defined symbols
11361         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11362         Allow more than one space before the symbol name.
11363         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11364         the regexp uses alternation.
11365
11366 2010-05-26  Eric Blake  <eblake@redhat.com>
11367
11368         maint.mk: avoid echo -e
11369         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11370         Convert all uses of echo -* to printf.
11371         Reported by Matthias Bolte.
11372
11373 2010-05-25  Bruno Haible  <bruno@clisp.org>
11374
11375         Update to GNU gettext 0.18, part 2.
11376         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11377         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11378
11379 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11380
11381         Add missing include in test-pwrite.c.
11382         * tests/test-pwrite.c: Include string.h, for strcmp.
11383
11384 2010-05-24  Bruno Haible  <bruno@clisp.org>
11385
11386         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11387
11388 2010-05-24  Bruno Haible  <bruno@clisp.org>
11389
11390         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11391         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11392         iconveh_error argument.
11393         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11394         U_STRCONV_TO_LOCALE.
11395         * lib/unistr/u16-strcoll.c: Likewise.
11396         * lib/unistr/u32-strcoll.c: Likewise.
11397         * modules/unistr/u8-strcoll (Depends-on): Add
11398         uniconv/u8-strconv-to-enc, localcharset. Remove
11399         uniconv/u8-strconv-to-locale.
11400         (configure.ac): Bump version number.
11401         * modules/unistr/u16-strcoll (Depends-on): Add
11402         uniconv/u16-strconv-to-enc, localcharset. Remove
11403         uniconv/u16-strconv-to-locale.
11404         (configure.ac): Bump version number.
11405         * modules/unistr/u32-strcoll (Depends-on): Add
11406         uniconv/u32-strconv-to-enc, localcharset. Remove
11407         uniconv/u32-strconv-to-locale.
11408         (configure.ac): Bump version number.
11409
11410 2010-05-24  Bruno Haible  <bruno@clisp.org>
11411
11412         Avoid a test failure on NetBSD 5.0.
11413         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11414         an iconv() bug.
11415
11416 2010-05-24  Bruno Haible  <bruno@clisp.org>
11417
11418         Adjust #include directive style.
11419         * modules/regex (Includes): Recommend to write <regex.h>.
11420
11421 2010-05-24  Bruno Haible  <bruno@clisp.org>
11422
11423         regex: Don't require alloca.
11424         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11425         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11426         only inside if (0).
11427
11428 2010-05-23  Jim Meyering  <meyering@redhat.com>
11429
11430         test-renameat.c: include <sys/stat.h>
11431         * tests/test-renameat.c: Include <sys/stat.h>; required for
11432         definition of S_IS* macros.
11433
11434 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11435
11436         Update maintainer documentation for 'relocatable-prog' module.
11437         * doc/relocatable-maint.texi: Update.
11438         Comments by Bruno Haible.
11439
11440 2010-05-23  Bruno Haible  <bruno@clisp.org>
11441
11442         git-merge-changelog: Enable --split-merged-entry by default.
11443         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11444         (usage): Don't mention this option any more.
11445         Reported by Ralf Wildenhues.
11446
11447 2010-05-23  Jim Meyering  <meyering@redhat.com>
11448
11449         test-pwrite: do not leave behind a test file named "out"
11450         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11451         The trivial-looking use of init.sh is really necessary.
11452         It ensures that the temporary file, "out", is created in
11453         a temporary directory, and removed upon termination.
11454         * tests/test-pwrite.sh: Re-add file.
11455         * modules/pwrite-tests: Reference it.
11456
11457 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11458
11459         Fix output redirection buglet in init.sh.
11460         * tests/init.sh: Fix redirection of stderr.
11461
11462 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11463
11464         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11465
11466 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11467
11468         * modules/valgrind-tests: New file.
11469         * m4/valgrind-tests.m4: New file.
11470         * doc/valgrind-tests.texi: New file.
11471         * doc/gnulib.texi (Running self-tests under valgrind): New
11472         section.
11473
11474 2010-05-19  Bruno Haible  <bruno@clisp.org>
11475
11476         Clean up dead code in recent commit.
11477         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11478         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11479         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11480         Suggested by Paolo Bonzini.
11481
11482 2010-05-19  Bruno Haible  <bruno@clisp.org>
11483
11484         Avoid valgrind error reports from libunistring.
11485         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11486         * modules/libunistring (Files): Add it.
11487         * modules/libunistring-optional (Files): Likewise.
11488
11489 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11490             Bruno Haible  <bruno@clisp.org>
11491
11492         New module 'libunistring-optional'.
11493         * modules/libunistring-optional: New file.
11494         * m4/libunistring-base.m4: New file.
11495         * m4/libunistring-optional.m4: New file.
11496         * lib/unicase.in.h: Renamed from lib/unicase.h.
11497         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11498         * lib/unictype.in.h: Renamed from lib/unictype.h.
11499         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11500         * lib/uniname.in.h: Renamed from lib/uniname.h.
11501         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11502         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11503         * lib/unistr.in.h: Renamed from lib/unistr.h.
11504         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11505         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11506         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11507         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11508         gl_LIBUNISTRING. If the library was found, determine the installed
11509         version and set LIBUNISTRING_VERSION.
11510         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11511         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11512         handle a configuration option --with-included-libunistring.
11513         * modules/libunistring (Files): Add m4/absolute-header.m4.
11514         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11515         Add m4/libunistring-base.m4.
11516         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11517         (Makefile.am): Build unicase.h from unicase.in.h.
11518         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11519         Add m4/libunistring-base.m4.
11520         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11521         (Makefile.am): Build uniconv.h from uniconv.in.h.
11522         * modules/unictype/base (Files): Use unictype.in.h instead of
11523         unictype.h. Add m4/libunistring-base.m4.
11524         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11525         (Makefile.am): Build unictype.h from unictype.in.h.
11526         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11527         Add m4/libunistring-base.m4.
11528         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11529         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11530         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11531         Add m4/libunistring-base.m4.
11532         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11533         (Makefile.am): Build uniname.h from uniname.in.h.
11534         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11535         Add m4/libunistring-base.m4.
11536         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11537         (Makefile.am): Build uninorm.h from uninorm.in.h.
11538         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11539         unistdio.h. Add m4/libunistring-base.m4.
11540         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11541         (Makefile.am): Build unistdio.h from unistdio.in.h.
11542         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11543         Add m4/libunistring-base.m4.
11544         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11545         (Makefile.am): Build unistr.h from unistr.in.h.
11546         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11547         Add m4/libunistring-base.m4.
11548         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11549         (Makefile.am): Build unitypes.h from unitypes.in.h.
11550         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11551         Add m4/libunistring-base.m4.
11552         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11553         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11554         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11555         uniwidth.h. Add m4/libunistring-base.m4.
11556         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11557         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11558         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11559         instead of augmenting lib_SOURCES.
11560         * modules/unicase/empty-suffix-context: Likewise.
11561         * modules/unicase/locale-language: Likewise.
11562         * modules/unicase/tolower: Likewise.
11563         * modules/unicase/totitle: Likewise.
11564         * modules/unicase/toupper: Likewise.
11565         * modules/unicase/u8-casecmp: Likewise.
11566         * modules/unicase/u8-casecoll: Likewise.
11567         * modules/unicase/u8-casefold: Likewise.
11568         * modules/unicase/u8-casexfrm: Likewise.
11569         * modules/unicase/u8-ct-casefold: Likewise.
11570         * modules/unicase/u8-ct-tolower: Likewise.
11571         * modules/unicase/u8-ct-totitle: Likewise.
11572         * modules/unicase/u8-ct-toupper: Likewise.
11573         * modules/unicase/u8-is-cased: Likewise.
11574         * modules/unicase/u8-is-casefolded: Likewise.
11575         * modules/unicase/u8-is-lowercase: Likewise.
11576         * modules/unicase/u8-is-titlecase: Likewise.
11577         * modules/unicase/u8-is-uppercase: Likewise.
11578         * modules/unicase/u8-prefix-context: Likewise.
11579         * modules/unicase/u8-suffix-context: Likewise.
11580         * modules/unicase/u8-tolower: Likewise.
11581         * modules/unicase/u8-totitle: Likewise.
11582         * modules/unicase/u8-toupper: Likewise.
11583         * modules/unicase/u16-casecmp: Likewise.
11584         * modules/unicase/u16-casecoll: Likewise.
11585         * modules/unicase/u16-casefold: Likewise.
11586         * modules/unicase/u16-casexfrm: Likewise.
11587         * modules/unicase/u16-ct-casefold: Likewise.
11588         * modules/unicase/u16-ct-tolower: Likewise.
11589         * modules/unicase/u16-ct-totitle: Likewise.
11590         * modules/unicase/u16-ct-toupper: Likewise.
11591         * modules/unicase/u16-is-cased: Likewise.
11592         * modules/unicase/u16-is-casefolded: Likewise.
11593         * modules/unicase/u16-is-lowercase: Likewise.
11594         * modules/unicase/u16-is-titlecase: Likewise.
11595         * modules/unicase/u16-is-uppercase: Likewise.
11596         * modules/unicase/u16-prefix-context: Likewise.
11597         * modules/unicase/u16-suffix-context: Likewise.
11598         * modules/unicase/u16-tolower: Likewise.
11599         * modules/unicase/u16-totitle: Likewise.
11600         * modules/unicase/u16-toupper: Likewise.
11601         * modules/unicase/u32-casecmp: Likewise.
11602         * modules/unicase/u32-casecoll: Likewise.
11603         * modules/unicase/u32-casefold: Likewise.
11604         * modules/unicase/u32-casexfrm: Likewise.
11605         * modules/unicase/u32-ct-casefold: Likewise.
11606         * modules/unicase/u32-ct-tolower: Likewise.
11607         * modules/unicase/u32-ct-totitle: Likewise.
11608         * modules/unicase/u32-ct-toupper: Likewise.
11609         * modules/unicase/u32-is-cased: Likewise.
11610         * modules/unicase/u32-is-casefolded: Likewise.
11611         * modules/unicase/u32-is-lowercase: Likewise.
11612         * modules/unicase/u32-is-titlecase: Likewise.
11613         * modules/unicase/u32-is-uppercase: Likewise.
11614         * modules/unicase/u32-prefix-context: Likewise.
11615         * modules/unicase/u32-suffix-context: Likewise.
11616         * modules/unicase/u32-tolower: Likewise.
11617         * modules/unicase/u32-totitle: Likewise.
11618         * modules/unicase/u32-toupper: Likewise.
11619         * modules/unicase/ulc-casecmp: Likewise.
11620         * modules/unicase/ulc-casecoll: Likewise.
11621         * modules/unicase/ulc-casexfrm: Likewise.
11622         * modules/uniconv/u8-conv-from-enc: Likewise.
11623         * modules/uniconv/u8-conv-to-enc: Likewise.
11624         * modules/uniconv/u8-strconv-from-enc: Likewise.
11625         * modules/uniconv/u8-strconv-from-locale: Likewise.
11626         * modules/uniconv/u8-strconv-to-enc: Likewise.
11627         * modules/uniconv/u8-strconv-to-locale: Likewise.
11628         * modules/uniconv/u16-conv-from-enc: Likewise.
11629         * modules/uniconv/u16-conv-to-enc: Likewise.
11630         * modules/uniconv/u16-strconv-from-enc: Likewise.
11631         * modules/uniconv/u16-strconv-from-locale: Likewise.
11632         * modules/uniconv/u16-strconv-to-enc: Likewise.
11633         * modules/uniconv/u16-strconv-to-locale: Likewise.
11634         * modules/uniconv/u32-conv-from-enc: Likewise.
11635         * modules/uniconv/u32-conv-to-enc: Likewise.
11636         * modules/uniconv/u32-strconv-from-enc: Likewise.
11637         * modules/uniconv/u32-strconv-from-locale: Likewise.
11638         * modules/uniconv/u32-strconv-to-enc: Likewise.
11639         * modules/uniconv/u32-strconv-to-locale: Likewise.
11640         * modules/unictype/bidicategory-byname: Likewise.
11641         * modules/unictype/bidicategory-name: Likewise.
11642         * modules/unictype/bidicategory-of: Likewise.
11643         * modules/unictype/bidicategory-test: Likewise.
11644         * modules/unictype/block-list: Likewise.
11645         * modules/unictype/block-test: Likewise.
11646         * modules/unictype/category-C: Likewise.
11647         * modules/unictype/category-Cc: Likewise.
11648         * modules/unictype/category-Cf: Likewise.
11649         * modules/unictype/category-Cn: Likewise.
11650         * modules/unictype/category-Co: Likewise.
11651         * modules/unictype/category-Cs: Likewise.
11652         * modules/unictype/category-L: Likewise.
11653         * modules/unictype/category-Ll: Likewise.
11654         * modules/unictype/category-Lm: Likewise.
11655         * modules/unictype/category-Lo: Likewise.
11656         * modules/unictype/category-Lt: Likewise.
11657         * modules/unictype/category-Lu: Likewise.
11658         * modules/unictype/category-M: Likewise.
11659         * modules/unictype/category-Mc: Likewise.
11660         * modules/unictype/category-Me: Likewise.
11661         * modules/unictype/category-Mn: Likewise.
11662         * modules/unictype/category-N: Likewise.
11663         * modules/unictype/category-Nd: Likewise.
11664         * modules/unictype/category-Nl: Likewise.
11665         * modules/unictype/category-No: Likewise.
11666         * modules/unictype/category-P: Likewise.
11667         * modules/unictype/category-Pc: Likewise.
11668         * modules/unictype/category-Pd: Likewise.
11669         * modules/unictype/category-Pe: Likewise.
11670         * modules/unictype/category-Pf: Likewise.
11671         * modules/unictype/category-Pi: Likewise.
11672         * modules/unictype/category-Po: Likewise.
11673         * modules/unictype/category-Ps: Likewise.
11674         * modules/unictype/category-S: Likewise.
11675         * modules/unictype/category-Sc: Likewise.
11676         * modules/unictype/category-Sk: Likewise.
11677         * modules/unictype/category-Sm: Likewise.
11678         * modules/unictype/category-So: Likewise.
11679         * modules/unictype/category-Z: Likewise.
11680         * modules/unictype/category-Zl: Likewise.
11681         * modules/unictype/category-Zp: Likewise.
11682         * modules/unictype/category-Zs: Likewise.
11683         * modules/unictype/category-and: Likewise.
11684         * modules/unictype/category-and-not: Likewise.
11685         * modules/unictype/category-byname: Likewise.
11686         * modules/unictype/category-name: Likewise.
11687         * modules/unictype/category-none: Likewise.
11688         * modules/unictype/category-of: Likewise.
11689         * modules/unictype/category-or: Likewise.
11690         * modules/unictype/category-test: Likewise.
11691         * modules/unictype/combining-class: Likewise.
11692         * modules/unictype/ctype-alnum: Likewise.
11693         * modules/unictype/ctype-alpha: Likewise.
11694         * modules/unictype/ctype-blank: Likewise.
11695         * modules/unictype/ctype-cntrl: Likewise.
11696         * modules/unictype/ctype-digit: Likewise.
11697         * modules/unictype/ctype-graph: Likewise.
11698         * modules/unictype/ctype-lower: Likewise.
11699         * modules/unictype/ctype-print: Likewise.
11700         * modules/unictype/ctype-punct: Likewise.
11701         * modules/unictype/ctype-space: Likewise.
11702         * modules/unictype/ctype-upper: Likewise.
11703         * modules/unictype/ctype-xdigit: Likewise.
11704         * modules/unictype/decimal-digit: Likewise.
11705         * modules/unictype/digit: Likewise.
11706         * modules/unictype/mirror: Likewise.
11707         * modules/unictype/numeric: Likewise.
11708         * modules/unictype/property-alphabetic: Likewise.
11709         * modules/unictype/property-ascii-hex-digit: Likewise.
11710         * modules/unictype/property-bidi-arabic-digit: Likewise.
11711         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11712         * modules/unictype/property-bidi-block-separator: Likewise.
11713         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11714         * modules/unictype/property-bidi-common-separator: Likewise.
11715         * modules/unictype/property-bidi-control: Likewise.
11716         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11717         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11718         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11719         * modules/unictype/property-bidi-european-digit: Likewise.
11720         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11721         * modules/unictype/property-bidi-left-to-right: Likewise.
11722         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11723         * modules/unictype/property-bidi-other-neutral: Likewise.
11724         * modules/unictype/property-bidi-pdf: Likewise.
11725         * modules/unictype/property-bidi-segment-separator: Likewise.
11726         * modules/unictype/property-bidi-whitespace: Likewise.
11727         * modules/unictype/property-byname: Likewise.
11728         * modules/unictype/property-combining: Likewise.
11729         * modules/unictype/property-composite: Likewise.
11730         * modules/unictype/property-currency-symbol: Likewise.
11731         * modules/unictype/property-dash: Likewise.
11732         * modules/unictype/property-decimal-digit: Likewise.
11733         * modules/unictype/property-default-ignorable-code-point: Likewise.
11734         * modules/unictype/property-deprecated: Likewise.
11735         * modules/unictype/property-diacritic: Likewise.
11736         * modules/unictype/property-extender: Likewise.
11737         * modules/unictype/property-format-control: Likewise.
11738         * modules/unictype/property-grapheme-base: Likewise.
11739         * modules/unictype/property-grapheme-extend: Likewise.
11740         * modules/unictype/property-grapheme-link: Likewise.
11741         * modules/unictype/property-hex-digit: Likewise.
11742         * modules/unictype/property-hyphen: Likewise.
11743         * modules/unictype/property-id-continue: Likewise.
11744         * modules/unictype/property-id-start: Likewise.
11745         * modules/unictype/property-ideographic: Likewise.
11746         * modules/unictype/property-ids-binary-operator: Likewise.
11747         * modules/unictype/property-ids-trinary-operator: Likewise.
11748         * modules/unictype/property-ignorable-control: Likewise.
11749         * modules/unictype/property-iso-control: Likewise.
11750         * modules/unictype/property-join-control: Likewise.
11751         * modules/unictype/property-left-of-pair: Likewise.
11752         * modules/unictype/property-line-separator: Likewise.
11753         * modules/unictype/property-logical-order-exception: Likewise.
11754         * modules/unictype/property-lowercase: Likewise.
11755         * modules/unictype/property-math: Likewise.
11756         * modules/unictype/property-non-break: Likewise.
11757         * modules/unictype/property-not-a-character: Likewise.
11758         * modules/unictype/property-numeric: Likewise.
11759         * modules/unictype/property-other-alphabetic: Likewise.
11760         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11761         * modules/unictype/property-other-grapheme-extend: Likewise.
11762         * modules/unictype/property-other-id-continue: Likewise.
11763         * modules/unictype/property-other-id-start: Likewise.
11764         * modules/unictype/property-other-lowercase: Likewise.
11765         * modules/unictype/property-other-math: Likewise.
11766         * modules/unictype/property-other-uppercase: Likewise.
11767         * modules/unictype/property-paired-punctuation: Likewise.
11768         * modules/unictype/property-paragraph-separator: Likewise.
11769         * modules/unictype/property-pattern-syntax: Likewise.
11770         * modules/unictype/property-pattern-white-space: Likewise.
11771         * modules/unictype/property-private-use: Likewise.
11772         * modules/unictype/property-punctuation: Likewise.
11773         * modules/unictype/property-quotation-mark: Likewise.
11774         * modules/unictype/property-radical: Likewise.
11775         * modules/unictype/property-sentence-terminal: Likewise.
11776         * modules/unictype/property-soft-dotted: Likewise.
11777         * modules/unictype/property-space: Likewise.
11778         * modules/unictype/property-terminal-punctuation: Likewise.
11779         * modules/unictype/property-test: Likewise.
11780         * modules/unictype/property-titlecase: Likewise.
11781         * modules/unictype/property-unassigned-code-value: Likewise.
11782         * modules/unictype/property-unified-ideograph: Likewise.
11783         * modules/unictype/property-uppercase: Likewise.
11784         * modules/unictype/property-variation-selector: Likewise.
11785         * modules/unictype/property-white-space: Likewise.
11786         * modules/unictype/property-xid-continue: Likewise.
11787         * modules/unictype/property-xid-start: Likewise.
11788         * modules/unictype/property-zero-width: Likewise.
11789         * modules/unictype/scripts: Likewise.
11790         * modules/unictype/syntax-c-ident: Likewise.
11791         * modules/unictype/syntax-c-whitespace: Likewise.
11792         * modules/unictype/syntax-java-ident: Likewise.
11793         * modules/unictype/syntax-java-whitespace: Likewise.
11794         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11795         * modules/unilbrk/u8-width-linebreaks: Likewise.
11796         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11797         * modules/unilbrk/u16-width-linebreaks: Likewise.
11798         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11799         * modules/unilbrk/u32-width-linebreaks: Likewise.
11800         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11801         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11802         * modules/uniname/uniname: Likewise.
11803         * modules/uninorm/canonical-decomposition: Likewise.
11804         * modules/uninorm/composition: Likewise.
11805         * modules/uninorm/decomposing-form: Likewise.
11806         * modules/uninorm/decomposition: Likewise.
11807         * modules/uninorm/filter: Likewise.
11808         * modules/uninorm/nfc: Likewise.
11809         * modules/uninorm/nfd: Likewise.
11810         * modules/uninorm/nfkc: Likewise.
11811         * modules/uninorm/nfkd: Likewise.
11812         * modules/uninorm/u8-normalize: Likewise.
11813         * modules/uninorm/u8-normcmp: Likewise.
11814         * modules/uninorm/u8-normcoll: Likewise.
11815         * modules/uninorm/u8-normxfrm: Likewise.
11816         * modules/uninorm/u16-normalize: Likewise.
11817         * modules/uninorm/u16-normcmp: Likewise.
11818         * modules/uninorm/u16-normcoll: Likewise.
11819         * modules/uninorm/u16-normxfrm: Likewise.
11820         * modules/uninorm/u32-normalize: Likewise.
11821         * modules/uninorm/u32-normcmp: Likewise.
11822         * modules/uninorm/u32-normcoll: Likewise.
11823         * modules/uninorm/u32-normxfrm: Likewise.
11824         * modules/unistdio/u8-asnprintf: Likewise.
11825         * modules/unistdio/u8-asprintf: Likewise.
11826         * modules/unistdio/u8-snprintf: Likewise.
11827         * modules/unistdio/u8-sprintf: Likewise.
11828         * modules/unistdio/u8-u8-asnprintf: Likewise.
11829         * modules/unistdio/u8-u8-asprintf: Likewise.
11830         * modules/unistdio/u8-u8-snprintf: Likewise.
11831         * modules/unistdio/u8-u8-sprintf: Likewise.
11832         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11833         * modules/unistdio/u8-u8-vasprintf: Likewise.
11834         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11835         * modules/unistdio/u8-u8-vsprintf: Likewise.
11836         * modules/unistdio/u8-vasnprintf: Likewise.
11837         * modules/unistdio/u8-vasprintf: Likewise.
11838         * modules/unistdio/u8-vsnprintf: Likewise.
11839         * modules/unistdio/u8-vsprintf: Likewise.
11840         * modules/unistdio/u16-asnprintf: Likewise.
11841         * modules/unistdio/u16-asprintf: Likewise.
11842         * modules/unistdio/u16-snprintf: Likewise.
11843         * modules/unistdio/u16-sprintf: Likewise.
11844         * modules/unistdio/u16-u16-asnprintf: Likewise.
11845         * modules/unistdio/u16-u16-asprintf: Likewise.
11846         * modules/unistdio/u16-u16-snprintf: Likewise.
11847         * modules/unistdio/u16-u16-sprintf: Likewise.
11848         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11849         * modules/unistdio/u16-u16-vasprintf: Likewise.
11850         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11851         * modules/unistdio/u16-u16-vsprintf: Likewise.
11852         * modules/unistdio/u16-vasnprintf: Likewise.
11853         * modules/unistdio/u16-vasprintf: Likewise.
11854         * modules/unistdio/u16-vsnprintf: Likewise.
11855         * modules/unistdio/u16-vsprintf: Likewise.
11856         * modules/unistdio/u32-asnprintf: Likewise.
11857         * modules/unistdio/u32-asprintf: Likewise.
11858         * modules/unistdio/u32-snprintf: Likewise.
11859         * modules/unistdio/u32-sprintf: Likewise.
11860         * modules/unistdio/u32-u32-asnprintf: Likewise.
11861         * modules/unistdio/u32-u32-asprintf: Likewise.
11862         * modules/unistdio/u32-u32-snprintf: Likewise.
11863         * modules/unistdio/u32-u32-sprintf: Likewise.
11864         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11865         * modules/unistdio/u32-u32-vasprintf: Likewise.
11866         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11867         * modules/unistdio/u32-u32-vsprintf: Likewise.
11868         * modules/unistdio/u32-vasnprintf: Likewise.
11869         * modules/unistdio/u32-vasprintf: Likewise.
11870         * modules/unistdio/u32-vsnprintf: Likewise.
11871         * modules/unistdio/u32-vsprintf: Likewise.
11872         * modules/unistdio/ulc-asnprintf: Likewise.
11873         * modules/unistdio/ulc-asprintf: Likewise.
11874         * modules/unistdio/ulc-fprintf: Likewise.
11875         * modules/unistdio/ulc-snprintf: Likewise.
11876         * modules/unistdio/ulc-sprintf: Likewise.
11877         * modules/unistdio/ulc-vasnprintf: Likewise.
11878         * modules/unistdio/ulc-vasprintf: Likewise.
11879         * modules/unistdio/ulc-vfprintf: Likewise.
11880         * modules/unistdio/ulc-vsnprintf: Likewise.
11881         * modules/unistdio/ulc-vsprintf: Likewise.
11882         * modules/unistr/u8-check: Likewise.
11883         * modules/unistr/u8-chr: Likewise.
11884         * modules/unistr/u8-cmp: Likewise.
11885         * modules/unistr/u8-cmp2: Likewise.
11886         * modules/unistr/u8-cpy: Likewise.
11887         * modules/unistr/u8-cpy-alloc: Likewise.
11888         * modules/unistr/u8-endswith: Likewise.
11889         * modules/unistr/u8-mblen: Likewise.
11890         * modules/unistr/u8-mbsnlen: Likewise.
11891         * modules/unistr/u8-mbtouc: Likewise.
11892         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11893         * modules/unistr/u8-mbtoucr: Likewise.
11894         * modules/unistr/u8-move: Likewise.
11895         * modules/unistr/u8-next: Likewise.
11896         * modules/unistr/u8-prev: Likewise.
11897         * modules/unistr/u8-set: Likewise.
11898         * modules/unistr/u8-startswith: Likewise.
11899         * modules/unistr/u8-stpcpy: Likewise.
11900         * modules/unistr/u8-stpncpy: Likewise.
11901         * modules/unistr/u8-strcat: Likewise.
11902         * modules/unistr/u8-strchr: Likewise.
11903         * modules/unistr/u8-strcmp: Likewise.
11904         * modules/unistr/u8-strcoll: Likewise.
11905         * modules/unistr/u8-strcpy: Likewise.
11906         * modules/unistr/u8-strcspn: Likewise.
11907         * modules/unistr/u8-strdup: Likewise.
11908         * modules/unistr/u8-strlen: Likewise.
11909         * modules/unistr/u8-strmblen: Likewise.
11910         * modules/unistr/u8-strmbtouc: Likewise.
11911         * modules/unistr/u8-strncat: Likewise.
11912         * modules/unistr/u8-strncmp: Likewise.
11913         * modules/unistr/u8-strncpy: Likewise.
11914         * modules/unistr/u8-strnlen: Likewise.
11915         * modules/unistr/u8-strpbrk: Likewise.
11916         * modules/unistr/u8-strrchr: Likewise.
11917         * modules/unistr/u8-strspn: Likewise.
11918         * modules/unistr/u8-strstr: Likewise.
11919         * modules/unistr/u8-strtok: Likewise.
11920         * modules/unistr/u8-to-u16: Likewise.
11921         * modules/unistr/u8-to-u32: Likewise.
11922         * modules/unistr/u8-uctomb: Likewise.
11923         * modules/unistr/u16-check: Likewise.
11924         * modules/unistr/u16-chr: Likewise.
11925         * modules/unistr/u16-cmp: Likewise.
11926         * modules/unistr/u16-cmp2: Likewise.
11927         * modules/unistr/u16-cpy: Likewise.
11928         * modules/unistr/u16-cpy-alloc: Likewise.
11929         * modules/unistr/u16-endswith: Likewise.
11930         * modules/unistr/u16-mblen: Likewise.
11931         * modules/unistr/u16-mbsnlen: Likewise.
11932         * modules/unistr/u16-mbtouc: Likewise.
11933         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11934         * modules/unistr/u16-mbtoucr: Likewise.
11935         * modules/unistr/u16-move: Likewise.
11936         * modules/unistr/u16-next: Likewise.
11937         * modules/unistr/u16-prev: Likewise.
11938         * modules/unistr/u16-set: Likewise.
11939         * modules/unistr/u16-startswith: Likewise.
11940         * modules/unistr/u16-stpcpy: Likewise.
11941         * modules/unistr/u16-stpncpy: Likewise.
11942         * modules/unistr/u16-strcat: Likewise.
11943         * modules/unistr/u16-strchr: Likewise.
11944         * modules/unistr/u16-strcmp: Likewise.
11945         * modules/unistr/u16-strcoll: Likewise.
11946         * modules/unistr/u16-strcpy: Likewise.
11947         * modules/unistr/u16-strcspn: Likewise.
11948         * modules/unistr/u16-strdup: Likewise.
11949         * modules/unistr/u16-strlen: Likewise.
11950         * modules/unistr/u16-strmblen: Likewise.
11951         * modules/unistr/u16-strmbtouc: Likewise.
11952         * modules/unistr/u16-strncat: Likewise.
11953         * modules/unistr/u16-strncmp: Likewise.
11954         * modules/unistr/u16-strncpy: Likewise.
11955         * modules/unistr/u16-strnlen: Likewise.
11956         * modules/unistr/u16-strpbrk: Likewise.
11957         * modules/unistr/u16-strrchr: Likewise.
11958         * modules/unistr/u16-strspn: Likewise.
11959         * modules/unistr/u16-strstr: Likewise.
11960         * modules/unistr/u16-strtok: Likewise.
11961         * modules/unistr/u16-to-u32: Likewise.
11962         * modules/unistr/u16-to-u8: Likewise.
11963         * modules/unistr/u16-uctomb: Likewise.
11964         * modules/unistr/u32-check: Likewise.
11965         * modules/unistr/u32-chr: Likewise.
11966         * modules/unistr/u32-cmp: Likewise.
11967         * modules/unistr/u32-cmp2: Likewise.
11968         * modules/unistr/u32-cpy: Likewise.
11969         * modules/unistr/u32-cpy-alloc: Likewise.
11970         * modules/unistr/u32-endswith: Likewise.
11971         * modules/unistr/u32-mblen: Likewise.
11972         * modules/unistr/u32-mbsnlen: Likewise.
11973         * modules/unistr/u32-mbtouc: Likewise.
11974         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11975         * modules/unistr/u32-mbtoucr: Likewise.
11976         * modules/unistr/u32-move: Likewise.
11977         * modules/unistr/u32-next: Likewise.
11978         * modules/unistr/u32-prev: Likewise.
11979         * modules/unistr/u32-set: Likewise.
11980         * modules/unistr/u32-startswith: Likewise.
11981         * modules/unistr/u32-stpcpy: Likewise.
11982         * modules/unistr/u32-stpncpy: Likewise.
11983         * modules/unistr/u32-strcat: Likewise.
11984         * modules/unistr/u32-strchr: Likewise.
11985         * modules/unistr/u32-strcmp: Likewise.
11986         * modules/unistr/u32-strcoll: Likewise.
11987         * modules/unistr/u32-strcpy: Likewise.
11988         * modules/unistr/u32-strcspn: Likewise.
11989         * modules/unistr/u32-strdup: Likewise.
11990         * modules/unistr/u32-strlen: Likewise.
11991         * modules/unistr/u32-strmblen: Likewise.
11992         * modules/unistr/u32-strmbtouc: Likewise.
11993         * modules/unistr/u32-strncat: Likewise.
11994         * modules/unistr/u32-strncmp: Likewise.
11995         * modules/unistr/u32-strncpy: Likewise.
11996         * modules/unistr/u32-strnlen: Likewise.
11997         * modules/unistr/u32-strpbrk: Likewise.
11998         * modules/unistr/u32-strrchr: Likewise.
11999         * modules/unistr/u32-strspn: Likewise.
12000         * modules/unistr/u32-strstr: Likewise.
12001         * modules/unistr/u32-strtok: Likewise.
12002         * modules/unistr/u32-to-u16: Likewise.
12003         * modules/unistr/u32-to-u8: Likewise.
12004         * modules/unistr/u32-uctomb: Likewise.
12005         * modules/uniwbrk/u8-wordbreaks: Likewise.
12006         * modules/uniwbrk/u16-wordbreaks: Likewise.
12007         * modules/uniwbrk/u32-wordbreaks: Likewise.
12008         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12009         * modules/uniwbrk/wordbreak-property: Likewise.
12010         * modules/uniwidth/u8-strwidth: Likewise.
12011         * modules/uniwidth/u8-width: Likewise.
12012         * modules/uniwidth/u16-strwidth: Likewise.
12013         * modules/uniwidth/u16-width: Likewise.
12014         * modules/uniwidth/u32-strwidth: Likewise.
12015         * modules/uniwidth/u32-width: Likewise.
12016         * modules/uniwidth/width: Likewise.
12017         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12018         with $(LIBUNISTRING).
12019         * modules/unicase/ignorable-tests: Likewise.
12020         * modules/unicase/locale-language-tests: Likewise.
12021         * modules/unicase/tolower-tests: Likewise.
12022         * modules/unicase/totitle-tests: Likewise.
12023         * modules/unicase/toupper-tests: Likewise.
12024         * modules/unicase/u8-casecmp-tests: Likewise.
12025         * modules/unicase/u8-casecoll-tests: Likewise.
12026         * modules/unicase/u8-casefold-tests: Likewise.
12027         * modules/unicase/u8-is-cased-tests: Likewise.
12028         * modules/unicase/u8-is-casefolded-tests: Likewise.
12029         * modules/unicase/u8-is-lowercase-tests: Likewise.
12030         * modules/unicase/u8-is-titlecase-tests: Likewise.
12031         * modules/unicase/u8-is-uppercase-tests: Likewise.
12032         * modules/unicase/u8-tolower-tests: Likewise.
12033         * modules/unicase/u8-totitle-tests: Likewise.
12034         * modules/unicase/u8-toupper-tests: Likewise.
12035         * modules/unicase/u16-casecmp-tests: Likewise.
12036         * modules/unicase/u16-casecoll-tests: Likewise.
12037         * modules/unicase/u16-casefold-tests: Likewise.
12038         * modules/unicase/u16-is-cased-tests: Likewise.
12039         * modules/unicase/u16-is-casefolded-tests: Likewise.
12040         * modules/unicase/u16-is-lowercase-tests: Likewise.
12041         * modules/unicase/u16-is-titlecase-tests: Likewise.
12042         * modules/unicase/u16-is-uppercase-tests: Likewise.
12043         * modules/unicase/u16-tolower-tests: Likewise.
12044         * modules/unicase/u16-totitle-tests: Likewise.
12045         * modules/unicase/u16-toupper-tests: Likewise.
12046         * modules/unicase/u32-casecmp-tests: Likewise.
12047         * modules/unicase/u32-casecoll-tests: Likewise.
12048         * modules/unicase/u32-casefold-tests: Likewise.
12049         * modules/unicase/u32-is-cased-tests: Likewise.
12050         * modules/unicase/u32-is-casefolded-tests: Likewise.
12051         * modules/unicase/u32-is-lowercase-tests: Likewise.
12052         * modules/unicase/u32-is-titlecase-tests: Likewise.
12053         * modules/unicase/u32-is-uppercase-tests: Likewise.
12054         * modules/unicase/u32-tolower-tests: Likewise.
12055         * modules/unicase/u32-totitle-tests: Likewise.
12056         * modules/unicase/u32-toupper-tests: Likewise.
12057         * modules/unicase/ulc-casecmp-tests: Likewise.
12058         * modules/unicase/ulc-casecoll-tests: Likewise.
12059         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12060         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12061         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12062         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12063         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12064         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12065         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12066         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12067         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12068         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12069         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12070         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12071         * modules/unictype/bidicategory-byname-tests: Likewise.
12072         * modules/unictype/bidicategory-name-tests: Likewise.
12073         * modules/unictype/bidicategory-of-tests: Likewise.
12074         * modules/unictype/bidicategory-test-tests: Likewise.
12075         * modules/unictype/block-list-tests: Likewise.
12076         * modules/unictype/block-of-tests: Likewise.
12077         * modules/unictype/block-test-tests: Likewise.
12078         * modules/unictype/category-C-tests: Likewise.
12079         * modules/unictype/category-Cc-tests: Likewise.
12080         * modules/unictype/category-Cf-tests: Likewise.
12081         * modules/unictype/category-Cn-tests: Likewise.
12082         * modules/unictype/category-Co-tests: Likewise.
12083         * modules/unictype/category-Cs-tests: Likewise.
12084         * modules/unictype/category-L-tests: Likewise.
12085         * modules/unictype/category-Ll-tests: Likewise.
12086         * modules/unictype/category-Lm-tests: Likewise.
12087         * modules/unictype/category-Lo-tests: Likewise.
12088         * modules/unictype/category-Lt-tests: Likewise.
12089         * modules/unictype/category-Lu-tests: Likewise.
12090         * modules/unictype/category-M-tests: Likewise.
12091         * modules/unictype/category-Mc-tests: Likewise.
12092         * modules/unictype/category-Me-tests: Likewise.
12093         * modules/unictype/category-Mn-tests: Likewise.
12094         * modules/unictype/category-N-tests: Likewise.
12095         * modules/unictype/category-Nd-tests: Likewise.
12096         * modules/unictype/category-Nl-tests: Likewise.
12097         * modules/unictype/category-No-tests: Likewise.
12098         * modules/unictype/category-P-tests: Likewise.
12099         * modules/unictype/category-Pc-tests: Likewise.
12100         * modules/unictype/category-Pd-tests: Likewise.
12101         * modules/unictype/category-Pe-tests: Likewise.
12102         * modules/unictype/category-Pf-tests: Likewise.
12103         * modules/unictype/category-Pi-tests: Likewise.
12104         * modules/unictype/category-Po-tests: Likewise.
12105         * modules/unictype/category-Ps-tests: Likewise.
12106         * modules/unictype/category-S-tests: Likewise.
12107         * modules/unictype/category-Sc-tests: Likewise.
12108         * modules/unictype/category-Sk-tests: Likewise.
12109         * modules/unictype/category-Sm-tests: Likewise.
12110         * modules/unictype/category-So-tests: Likewise.
12111         * modules/unictype/category-Z-tests: Likewise.
12112         * modules/unictype/category-Zl-tests: Likewise.
12113         * modules/unictype/category-Zp-tests: Likewise.
12114         * modules/unictype/category-Zs-tests: Likewise.
12115         * modules/unictype/category-and-not-tests: Likewise.
12116         * modules/unictype/category-and-tests: Likewise.
12117         * modules/unictype/category-byname-tests: Likewise.
12118         * modules/unictype/category-name-tests: Likewise.
12119         * modules/unictype/category-none-tests: Likewise.
12120         * modules/unictype/category-of-tests: Likewise.
12121         * modules/unictype/category-or-tests: Likewise.
12122         * modules/unictype/category-test-withtable-tests: Likewise.
12123         * modules/unictype/combining-class-tests: Likewise.
12124         * modules/unictype/ctype-alnum-tests: Likewise.
12125         * modules/unictype/ctype-alpha-tests: Likewise.
12126         * modules/unictype/ctype-blank-tests: Likewise.
12127         * modules/unictype/ctype-cntrl-tests: Likewise.
12128         * modules/unictype/ctype-digit-tests: Likewise.
12129         * modules/unictype/ctype-graph-tests: Likewise.
12130         * modules/unictype/ctype-lower-tests: Likewise.
12131         * modules/unictype/ctype-print-tests: Likewise.
12132         * modules/unictype/ctype-punct-tests: Likewise.
12133         * modules/unictype/ctype-space-tests: Likewise.
12134         * modules/unictype/ctype-upper-tests: Likewise.
12135         * modules/unictype/ctype-xdigit-tests: Likewise.
12136         * modules/unictype/decimal-digit-tests: Likewise.
12137         * modules/unictype/digit-tests: Likewise.
12138         * modules/unictype/mirror-tests: Likewise.
12139         * modules/unictype/numeric-tests: Likewise.
12140         * modules/unictype/property-alphabetic-tests: Likewise.
12141         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12142         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12143         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12144         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12145         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12146         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12147         * modules/unictype/property-bidi-control-tests: Likewise.
12148         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12149         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12150         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12151         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12152         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12153         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12154         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12155         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12156         * modules/unictype/property-bidi-pdf-tests: Likewise.
12157         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12158         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12159         * modules/unictype/property-byname-tests: Likewise.
12160         * modules/unictype/property-combining-tests: Likewise.
12161         * modules/unictype/property-composite-tests: Likewise.
12162         * modules/unictype/property-currency-symbol-tests: Likewise.
12163         * modules/unictype/property-dash-tests: Likewise.
12164         * modules/unictype/property-decimal-digit-tests: Likewise.
12165         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12166         * modules/unictype/property-deprecated-tests: Likewise.
12167         * modules/unictype/property-diacritic-tests: Likewise.
12168         * modules/unictype/property-extender-tests: Likewise.
12169         * modules/unictype/property-format-control-tests: Likewise.
12170         * modules/unictype/property-grapheme-base-tests: Likewise.
12171         * modules/unictype/property-grapheme-extend-tests: Likewise.
12172         * modules/unictype/property-grapheme-link-tests: Likewise.
12173         * modules/unictype/property-hex-digit-tests: Likewise.
12174         * modules/unictype/property-hyphen-tests: Likewise.
12175         * modules/unictype/property-id-continue-tests: Likewise.
12176         * modules/unictype/property-id-start-tests: Likewise.
12177         * modules/unictype/property-ideographic-tests: Likewise.
12178         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12179         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12180         * modules/unictype/property-ignorable-control-tests: Likewise.
12181         * modules/unictype/property-iso-control-tests: Likewise.
12182         * modules/unictype/property-join-control-tests: Likewise.
12183         * modules/unictype/property-left-of-pair-tests: Likewise.
12184         * modules/unictype/property-line-separator-tests: Likewise.
12185         * modules/unictype/property-logical-order-exception-tests: Likewise.
12186         * modules/unictype/property-lowercase-tests: Likewise.
12187         * modules/unictype/property-math-tests: Likewise.
12188         * modules/unictype/property-non-break-tests: Likewise.
12189         * modules/unictype/property-not-a-character-tests: Likewise.
12190         * modules/unictype/property-numeric-tests: Likewise.
12191         * modules/unictype/property-other-alphabetic-tests: Likewise.
12192         * modules/unictype/property-other-default-ignorable-code-point-tests:
12193         Likewise.
12194         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12195         * modules/unictype/property-other-id-continue-tests: Likewise.
12196         * modules/unictype/property-other-id-start-tests: Likewise.
12197         * modules/unictype/property-other-lowercase-tests: Likewise.
12198         * modules/unictype/property-other-math-tests: Likewise.
12199         * modules/unictype/property-other-uppercase-tests: Likewise.
12200         * modules/unictype/property-paired-punctuation-tests: Likewise.
12201         * modules/unictype/property-paragraph-separator-tests: Likewise.
12202         * modules/unictype/property-pattern-syntax-tests: Likewise.
12203         * modules/unictype/property-pattern-white-space-tests: Likewise.
12204         * modules/unictype/property-private-use-tests: Likewise.
12205         * modules/unictype/property-punctuation-tests: Likewise.
12206         * modules/unictype/property-quotation-mark-tests: Likewise.
12207         * modules/unictype/property-radical-tests: Likewise.
12208         * modules/unictype/property-sentence-terminal-tests: Likewise.
12209         * modules/unictype/property-soft-dotted-tests: Likewise.
12210         * modules/unictype/property-space-tests: Likewise.
12211         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12212         * modules/unictype/property-test-tests: Likewise.
12213         * modules/unictype/property-titlecase-tests: Likewise.
12214         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12215         * modules/unictype/property-unified-ideograph-tests: Likewise.
12216         * modules/unictype/property-uppercase-tests: Likewise.
12217         * modules/unictype/property-variation-selector-tests: Likewise.
12218         * modules/unictype/property-white-space-tests: Likewise.
12219         * modules/unictype/property-xid-continue-tests: Likewise.
12220         * modules/unictype/property-xid-start-tests: Likewise.
12221         * modules/unictype/property-zero-width-tests: Likewise.
12222         * modules/unictype/scripts-tests: Likewise.
12223         * modules/unictype/syntax-c-ident-tests: Likewise.
12224         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12225         * modules/unictype/syntax-java-ident-tests: Likewise.
12226         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12227         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12228         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12229         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12230         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12231         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12232         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12233         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12234         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12235         * modules/uniname/uniname-tests: Likewise.
12236         * modules/uninorm/canonical-decomposition-tests: Likewise.
12237         * modules/uninorm/compat-decomposition-tests: Likewise.
12238         * modules/uninorm/composition-tests: Likewise.
12239         * modules/uninorm/decomposing-form-tests: Likewise.
12240         * modules/uninorm/decomposition-tests: Likewise.
12241         * modules/uninorm/filter-tests: Likewise.
12242         * modules/uninorm/nfc-tests: Likewise.
12243         * modules/uninorm/nfd-tests: Likewise.
12244         * modules/uninorm/nfkc-tests: Likewise.
12245         * modules/uninorm/nfkd-tests: Likewise.
12246         * modules/uninorm/u8-normcmp-tests: Likewise.
12247         * modules/uninorm/u8-normcoll-tests: Likewise.
12248         * modules/uninorm/u16-normcmp-tests: Likewise.
12249         * modules/uninorm/u16-normcoll-tests: Likewise.
12250         * modules/uninorm/u32-normcmp-tests: Likewise.
12251         * modules/uninorm/u32-normcoll-tests: Likewise.
12252         * modules/unistdio/u8-asnprintf-tests: Likewise.
12253         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12254         * modules/unistdio/u8-vasprintf-tests: Likewise.
12255         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12256         * modules/unistdio/u8-vsprintf-tests: Likewise.
12257         * modules/unistdio/u16-asnprintf-tests: Likewise.
12258         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12259         * modules/unistdio/u16-vasprintf-tests: Likewise.
12260         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12261         * modules/unistdio/u16-vsprintf-tests: Likewise.
12262         * modules/unistdio/u32-asnprintf-tests: Likewise.
12263         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12264         * modules/unistdio/u32-vasprintf-tests: Likewise.
12265         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12266         * modules/unistdio/u32-vsprintf-tests: Likewise.
12267         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12268         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12269         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12270         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12271         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12272         * modules/unistr/u8-check-tests: Likewise.
12273         * modules/unistr/u8-chr-tests: Likewise.
12274         * modules/unistr/u8-cmp-tests: Likewise.
12275         * modules/unistr/u8-cmp2-tests: Likewise.
12276         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12277         * modules/unistr/u8-cpy-tests: Likewise.
12278         * modules/unistr/u8-mblen-tests: Likewise.
12279         * modules/unistr/u8-mbsnlen-tests: Likewise.
12280         * modules/unistr/u8-mbtouc-tests: Likewise.
12281         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12282         * modules/unistr/u8-mbtoucr-tests: Likewise.
12283         * modules/unistr/u8-move-tests: Likewise.
12284         * modules/unistr/u8-next-tests: Likewise.
12285         * modules/unistr/u8-prev-tests: Likewise.
12286         * modules/unistr/u8-set-tests: Likewise.
12287         * modules/unistr/u8-stpcpy-tests: Likewise.
12288         * modules/unistr/u8-stpncpy-tests: Likewise.
12289         * modules/unistr/u8-strcat-tests: Likewise.
12290         * modules/unistr/u8-strcmp-tests: Likewise.
12291         * modules/unistr/u8-strcoll-tests: Likewise.
12292         * modules/unistr/u8-strcpy-tests: Likewise.
12293         * modules/unistr/u8-strdup-tests: Likewise.
12294         * modules/unistr/u8-strlen-tests: Likewise.
12295         * modules/unistr/u8-strmblen-tests: Likewise.
12296         * modules/unistr/u8-strmbtouc-tests: Likewise.
12297         * modules/unistr/u8-strncat-tests: Likewise.
12298         * modules/unistr/u8-strncmp-tests: Likewise.
12299         * modules/unistr/u8-strncpy-tests: Likewise.
12300         * modules/unistr/u8-strnlen-tests: Likewise.
12301         * modules/unistr/u8-to-u16-tests: Likewise.
12302         * modules/unistr/u8-to-u32-tests: Likewise.
12303         * modules/unistr/u8-uctomb-tests: Likewise.
12304         * modules/unistr/u16-check-tests: Likewise.
12305         * modules/unistr/u16-chr-tests: Likewise.
12306         * modules/unistr/u16-cmp-tests: Likewise.
12307         * modules/unistr/u16-cmp2-tests: Likewise.
12308         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12309         * modules/unistr/u16-cpy-tests: Likewise.
12310         * modules/unistr/u16-mblen-tests: Likewise.
12311         * modules/unistr/u16-mbsnlen-tests: Likewise.
12312         * modules/unistr/u16-mbtouc-tests: Likewise.
12313         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12314         * modules/unistr/u16-mbtoucr-tests: Likewise.
12315         * modules/unistr/u16-move-tests: Likewise.
12316         * modules/unistr/u16-next-tests: Likewise.
12317         * modules/unistr/u16-prev-tests: Likewise.
12318         * modules/unistr/u16-set-tests: Likewise.
12319         * modules/unistr/u16-stpcpy-tests: Likewise.
12320         * modules/unistr/u16-stpncpy-tests: Likewise.
12321         * modules/unistr/u16-strcat-tests: Likewise.
12322         * modules/unistr/u16-strcmp-tests: Likewise.
12323         * modules/unistr/u16-strcoll-tests: Likewise.
12324         * modules/unistr/u16-strcpy-tests: Likewise.
12325         * modules/unistr/u16-strdup-tests: Likewise.
12326         * modules/unistr/u16-strlen-tests: Likewise.
12327         * modules/unistr/u16-strmblen-tests: Likewise.
12328         * modules/unistr/u16-strmbtouc-tests: Likewise.
12329         * modules/unistr/u16-strncat-tests: Likewise.
12330         * modules/unistr/u16-strncmp-tests: Likewise.
12331         * modules/unistr/u16-strncpy-tests: Likewise.
12332         * modules/unistr/u16-strnlen-tests: Likewise.
12333         * modules/unistr/u16-to-u32-tests: Likewise.
12334         * modules/unistr/u16-to-u8-tests: Likewise.
12335         * modules/unistr/u16-uctomb-tests: Likewise.
12336         * modules/unistr/u32-check-tests: Likewise.
12337         * modules/unistr/u32-chr-tests: Likewise.
12338         * modules/unistr/u32-cmp-tests: Likewise.
12339         * modules/unistr/u32-cmp2-tests: Likewise.
12340         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12341         * modules/unistr/u32-cpy-tests: Likewise.
12342         * modules/unistr/u32-mblen-tests: Likewise.
12343         * modules/unistr/u32-mbsnlen-tests: Likewise.
12344         * modules/unistr/u32-mbtouc-tests: Likewise.
12345         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12346         * modules/unistr/u32-mbtoucr-tests: Likewise.
12347         * modules/unistr/u32-move-tests: Likewise.
12348         * modules/unistr/u32-next-tests: Likewise.
12349         * modules/unistr/u32-prev-tests: Likewise.
12350         * modules/unistr/u32-set-tests: Likewise.
12351         * modules/unistr/u32-stpcpy-tests: Likewise.
12352         * modules/unistr/u32-stpncpy-tests: Likewise.
12353         * modules/unistr/u32-strcat-tests: Likewise.
12354         * modules/unistr/u32-strcmp-tests: Likewise.
12355         * modules/unistr/u32-strcoll-tests: Likewise.
12356         * modules/unistr/u32-strcpy-tests: Likewise.
12357         * modules/unistr/u32-strdup-tests: Likewise.
12358         * modules/unistr/u32-strlen-tests: Likewise.
12359         * modules/unistr/u32-strmblen-tests: Likewise.
12360         * modules/unistr/u32-strmbtouc-tests: Likewise.
12361         * modules/unistr/u32-strncat-tests: Likewise.
12362         * modules/unistr/u32-strncmp-tests: Likewise.
12363         * modules/unistr/u32-strncpy-tests: Likewise.
12364         * modules/unistr/u32-strnlen-tests: Likewise.
12365         * modules/unistr/u32-to-u16-tests: Likewise.
12366         * modules/unistr/u32-to-u8-tests: Likewise.
12367         * modules/unistr/u32-uctomb-tests: Likewise.
12368         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12369         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12370         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12371         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12372         * modules/uniwidth/u8-strwidth-tests: Likewise.
12373         * modules/uniwidth/u8-width-tests: Likewise.
12374         * modules/uniwidth/u16-strwidth-tests: Likewise.
12375         * modules/uniwidth/u16-width-tests: Likewise.
12376         * modules/uniwidth/u32-strwidth-tests: Likewise.
12377         * modules/uniwidth/u32-width-tests: Likewise.
12378         * modules/uniwidth/width-tests: Likewise.
12379
12380 2010-05-18  Richard Jones  <rjones@redhat.com>
12381
12382         doc: users.txt: list hivex
12383         * users.txt: Add hivex.
12384
12385 2010-05-18  Richard Jones  <rjones@redhat.com>
12386
12387         doc: users.txt: list febootstrap
12388         * users.txt: Add febootstrap.
12389
12390 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12391
12392         bootstrap: fix an error when gnulib is not used as a git submodule
12393         * build-aux/bootstrap (gnulib_path): If its length is zero then
12394         assign "gnulib" to it.
12395         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12396
12397 2010-05-16  Bruno Haible  <bruno@clisp.org>
12398
12399         Avoid autoconf warnings about AM_ICONV.
12400         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12401         2.64.
12402
12403 2010-05-16  Bruno Haible  <bruno@clisp.org>
12404
12405         absolute-header: Make the macro usable in more situations.
12406         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12407         from gl_ABSOLUTE_HEADER.
12408         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12409
12410 2010-05-16  James Youngman  <jay@gnu.org>
12411
12412         doc: update users.txt
12413         * users.txt: Add CSSC.
12414
12415 2010-05-16  Jim Meyering  <meyering@redhat.com>
12416
12417         init.sh: fix an error in the previous change; add more comments
12418         * tests/init.sh: Compare exit code in loop against 9, not 2.
12419         Patch by Bruno Haible.
12420         Make the two tests more similar by adding an empty "then" clause.
12421         Add comments.
12422
12423         init.sh: avoid unnecessary shell re-exec
12424         * tests/init.sh: Improve the re-exec-required check to first test the
12425         current shell.  If it passes the test, do not search for a shell that
12426         does pass, and do not re-exec.  This test is particularly contorted to
12427         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12428         of $(...) evokes a syntax error and causes immediate shell exit with
12429         status 2.  Bruno Haible reported that the re-exec made it impossible
12430         to single-step through any init.sh-using script.
12431
12432 2010-05-16  Bruno Haible  <bruno@clisp.org>
12433
12434         Fix collision between gnulib's and libintl's printf replacements.
12435         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12436         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12437         (printf): When using GNU C, map the __printf__ function to rpl_printf
12438         via __asm__. When not using GNU C, define rpl_printf instead of
12439         __printf__.
12440         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12441         commit.
12442         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12443         commit.
12444         * m4/asm-underscore.m4: New file.
12445         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12446         * modules/stdio (Files): Add m4/asm-underscore.m4.
12447         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12448         Reported by Ben Pfaff.
12449
12450 2010-05-16  Bruno Haible  <bruno@clisp.org>
12451
12452         verify: Avoid skipping the test on openSUSE 11.0.
12453         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12454
12455 2010-05-13  Bruno Haible  <bruno@clisp.org>
12456
12457         Avoid useless warnings from G++.
12458         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12459         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12460         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12461
12462 2010-05-11  Jim Meyering  <meyering@redhat.com>
12463
12464         maint.mk: tweak preceding change
12465         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12466         regexps tighter by anchoring at EOL, and make the new group "shy"
12467         for slightly decreased overhead.
12468
12469 2010-05-11  Eric Blake  <eblake@redhat.com>
12470
12471         maint.mk: gnulib doesn't guarantee NSIG
12472         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12473
12474 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12475
12476         test-pwrite.c: Remove unused variable declaration.
12477         * tests/test-pwrite.c (main): Remove read_buf declaration.
12478
12479         Remove useless test-pwrite.sh file.
12480         * tests/test-pwrite.sh: Delete file.
12481         * modules/pwrite-tests: Remove references.
12482         Reported by Bruno Haible.
12483
12484 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12485
12486         init.sh: fix a typo
12487         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12488
12489 2010-05-10  Jim Meyering  <meyering@redhat.com>
12490
12491         maint.mk: avoid using a temporary file in the always-defined-macros check
12492         * top/maint.mk (.re-defmac): Remove rule.
12493         (gl_trap_): Remove definition.
12494         (sc_prohibit_always-defined_macros): Rewrite not to create and
12495         depend on a temporary file.  Instead, depend on GNU grep's ability
12496         to read a list of regular expressions from stdin when given "-f -".
12497
12498 2010-05-09  Bruno Haible  <bruno@clisp.org>
12499
12500         Update to GNU gettext 0.18, part 1.
12501         * m4/gettext.m4: Update to GNU gettext 0.18.
12502         * m4/intl.m4: Likewise.
12503         * m4/po.m4: Likewise.
12504         * modules/gettext (Files): Add m4/fcntl-o.m4.
12505         (configure.ac): Require gettext infrastructure from version 0.18.
12506
12507 2010-05-09  Jim Meyering  <meyering@redhat.com>
12508
12509         init.sh: enable MALLOC_PERTURB_
12510         * tests/init.sh: Enable glibc's malloc-perturbing option.
12511
12512         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12513         With my recent change in init.sh from the two-line form:
12514             -#   : ${srcdir=.}
12515             -#   . "$srcdir/init.sh"; path_prepend_ .
12516             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12517         I noticed that using the one-line form would cause this test
12518         to fail with a false-positive, or to stop working altogether,
12519         depending on whether help-version changed or all the tests did.
12520         * top/maint.mk (_hv_regex): Remove this definition.
12521         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12522         (_hv_regex_strong): Use a stronger regex to check for conformance.
12523         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12524         Give a separate diagnostic for lack of conforming use.
12525
12526         maint.mk: prohibit definition of symbols defined by gnulib
12527         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12528         definition of symbols defined by gnulib.
12529
12530 2010-05-09  Bruno Haible  <bruno@clisp.org>
12531
12532         acl: Avoid test failure on Cygwin-hosted mingw.
12533         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12534
12535 2010-05-09  Bruno Haible  <bruno@clisp.org>
12536
12537         error: Use system's fcntl function.
12538         * lib/error.c (fcntl): Undefine.
12539
12540 2010-05-09  Jim Meyering  <meyering@redhat.com>
12541
12542         verify: adjust formatting to be more consistent
12543         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12544         argument-list '('s, and after one comma.
12545
12546 2010-05-09  Bruno Haible  <bruno@clisp.org>
12547
12548         error: More reliable output on mingw.
12549         * lib/error.c: Include <windows.h>.
12550         (is_open): New function.
12551         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12552         defined.
12553
12554 2010-05-09  Bruno Haible  <bruno@clisp.org>
12555
12556         vasnprintf: Fix syntax errors in libintl build on mingw.
12557         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12558         pad_ourselves and prec_ourselves after use.
12559
12560 2010-05-08  Bruno Haible  <bruno@clisp.org>
12561
12562         * lib/config.charset: Update comments for Cygwin 1.7.
12563         * lib/localcharset.c: Likewise.
12564
12565 2010-05-07  Jim Meyering  <meyering@redhat.com>
12566
12567         init.sh: improve comments
12568         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12569         . "${srcdir=.}/init.sh"; path_prepend_ .
12570         Add a note about path_prepend_ and the alternative of using
12571         TESTS_ENVIRONMENT.
12572
12573 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12574
12575         exclude: Unescape hashed patterns in wildcard mode.
12576         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12577         to the hash list.
12578         * tests/test-exclude8.sh: New test case.
12579         * modules/exclude-tests: Add new test.
12580
12581 2010-05-05  Eric Blake  <eblake@redhat.com>
12582
12583         verify: automate tests
12584         * modules/verify-tests: New module.
12585         * tests/test-verify.sh: New file.
12586         * tests/test-verify.c: Guard each negative test with a unique id.
12587         Also avoid warning about unused left hand of comma expressions.
12588
12589 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12590
12591         Further improvements to verify.h, suggested by Eric Blake.
12592         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12593         the GL_* versions, to avoid collision with OpenGL.
12594         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12595         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12596         than testing merely whether it's defined.
12597
12598         Modify verify.h to pacify gcc -Wredundant_decls.
12599         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12600         These use the prefix "GL_" since they're likely to be useful elsewhere.
12601         We may need to break them out into a different .h file.
12602         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12603         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12604         of verify_function__.
12605
12606 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12607
12608         Tests for module pwrite.
12609         * modules/pwrite-tests: New file.
12610         * tests/test-pwrite.sh: New file.
12611         * tests/test-pwrite.c: New file.
12612
12613         New module pwrite.
12614         * lib/unistd.in.h (pwrite): New declaration.
12615         * lib/pwrite.c: New file, from glibc with modifications.
12616         * m4/pwrite.m4: New file.
12617         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12618         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12619         REPLACE_PWRITE.
12620         * modules/pwrite: New file.
12621         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12622         REPLACE_PWRITE.
12623         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12624         * doc/posix-functions/pwrite.texi: Mention the new module.
12625
12626 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12627
12628         pread: Update documentation.
12629         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12630
12631 2010-05-04  Eric Blake  <eblake@redhat.com>
12632
12633         docs: update cygwin progress
12634         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12635         this bug.
12636         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12637         Added in cygwin 1.7.2.
12638         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12639         Likewise.
12640         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12641         Likewise.
12642         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12643         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12644         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12645         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12646         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12647         Mention nproc module.
12648         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12649         bug in cygwin 1.7.5 addition.
12650         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12651         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12652         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12653         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12654         1.7.5.
12655         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12656         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12657         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12658         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12659         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12660         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12661         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12662         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12663         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12664         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12665         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12666         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12667         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12668         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12669         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12670         Likewise.
12671         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12672         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12673         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12674         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12675         Likewise.
12676         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12677         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12678         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12679         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12680         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12681         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12682         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12683         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12684         Likewise.
12685         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12686         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12687         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12688         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12689         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12690         Likewise.
12691         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12692         Likewise.
12693         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12694         Likewise.
12695         * doc/glibc-functions/xdrrec_endofrecord.texi
12696         (xdrrec_endofrecord): Likewise.
12697         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12698         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12699         Likewise.
12700         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12701         Likewise.
12702
12703 2010-05-04  Jim Meyering  <meyering@redhat.com>
12704
12705         gendocs.sh: make its "-s FILE" option more useful
12706         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12707         $PACKAGE to reflect the probably-different basename of "FILE".
12708
12709 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12710
12711         bootstrap: don't ignore download_po_files failure
12712         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12713         failure.
12714
12715 2010-05-03  Jim Meyering  <meyering@redhat.com>
12716
12717         maint.mk: allow to pass options to gendocs.sh
12718         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12719         (gendocs_options_): New overridable variable.
12720
12721         gnu-web-doc-update: don't ignore configure or build failure
12722         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12723
12724         announce-gen: backslash-escape '@'s in --help output
12725         * build-aux/announce-gen: Fix syntax errors.
12726
12727         maint.mk, announce-gen: allow project-specific announcement mail headers
12728         * top/maint.mk (translation_project_): Define default.
12729         (announcement_Cc_, announcement_mail_headers_): Likewise.
12730         (announcement): Invoke announce-gen with new --mail-headers option.
12731         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12732
12733         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12734         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12735         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12736         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12737         line in the "err2" output file when running "make check" in verbose
12738         mode (i.e., with set -x enabled).
12739
12740 2010-05-03  Bruno Haible  <bruno@clisp.org>
12741
12742         wctob: Fix for weird platforms.
12743         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12744         argument value.
12745
12746 2010-05-03  Jim Meyering  <meyering@redhat.com>
12747
12748         maint.mk: prohibit unwarranted use of <strings.h>
12749         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12750         strings.h in a file that does not also use strcasecmp, strncasecmp,
12751         ffs or ffsll.
12752
12753         maint.mk: remove obsolete comments
12754         * top/maint.mk: Remove stale, commented-out rules.
12755
12756 2010-05-02  Bruno Haible  <bruno@clisp.org>
12757
12758         wcwidth: Declare also when it's aliased.
12759         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12760         macro.
12761
12762 2010-05-02  Bruno Haible  <bruno@clisp.org>
12763
12764         Fix regression from 2010-04-25.
12765         * gnulib-tool (func_modules_transitive_closure): Check the status of
12766         all modules, not only of the tests that are of the form foo-tests where
12767         foo is a module.
12768
12769 2010-05-02  Bruno Haible  <bruno@clisp.org>
12770
12771         wctob: Work around nasty Cygwin 1.7.2 bug.
12772         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12773         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12774
12775 2010-05-01  Bruno Haible  <bruno@clisp.org>
12776
12777         fpurge: Sharper test.
12778         * tests/test-fpurge.c (main): Add one more ftell check.
12779         * modules/fpurge-tests (Depends-on): Add ftell.
12780         Suggested by Eric Blake.
12781
12782 2010-05-01  Bruno Haible  <bruno@clisp.org>
12783
12784         ftello: Another test.
12785         * tests/test-ftello3.c: New file.
12786         * modules/ftello-tests (Files): Add it.
12787         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12788         MOSTLYCLEANFILES.
12789
12790         ftell: Another test.
12791         * tests/test-ftell3.c: New file.
12792         * modules/ftell-tests (Files): Add it.
12793         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12794         MOSTLYCLEANFILES.
12795
12796 2010-05-01  Bruno Haible  <bruno@clisp.org>
12797
12798         ftell, ftello: Work around Solaris bug.
12799         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12800         * lib/ftello.c: Include stdio-impl.h.
12801         (ftello): On Solaris, when _IOWRT is set, compute the result without
12802         looking at _IOREAD.
12803         * modules/ftello (Files): Add lib/stdio-impl.h.
12804         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12805         * doc/posix-functions/ftello.texi: Likewise.
12806         Reported by Eric Blake.
12807
12808 2010-05-01  Bruno Haible  <bruno@clisp.org>
12809
12810         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12811         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12812         the _IOWRT flag is also set.
12813
12814 2010-05-01  Bruno Haible  <bruno@clisp.org>
12815
12816         Fix doc about a HP-UX stdio bug.
12817         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12818         * doc/posix-functions/ftello.texi: Likewise.
12819
12820 2010-05-01  Bruno Haible  <bruno@clisp.org>
12821
12822         lseek test: Fix failure on Solaris.
12823         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12824         output.
12825
12826 2010-04-30  Jim Meyering  <meyering@redhat.com>
12827
12828         bootstrap: don't ignore failure to generate po*/Makevars
12829         * build-aux/bootstrap (with_gettext): Don't ignore failure
12830         to create po/Makevars or runtime-po/Makevars.
12831
12832 2010-04-29  Eric Blake  <eblake@redhat.com>
12833
12834         headers: relax license to LGPLv2+
12835         * modules/fcntl-h (License): Relax license.
12836         * modules/getopt-posix (License): Likewise.
12837         * modules/locale (License): Likewise.
12838         * modules/math (License): Likewise.
12839         * modules/pty (License): Likewise.
12840         * modules/sched (License): Likewise.
12841         * modules/search (License): Likewise.
12842         * modules/spawn (License): Likewise.
12843         * modules/stdarg (License): Likewise.
12844         * modules/sysexits (License): Likewise.
12845
12846 2010-04-29  Jim Meyering  <meyering@redhat.com>
12847
12848         inttypes: relax license to LGPLv2+
12849         * modules/inttypes (License): Relax license.
12850
12851 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12852
12853         * top/maint.mk (indent): Run twice to produce idempotent results.
12854
12855 2010-04-28  Bruno Haible  <bruno@clisp.org>
12856
12857         getdate: Generate getdate.c in the source directory.
12858         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12859         MOSTLYCLEANFILES.
12860         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12861
12862 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12863
12864         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12865         is not declared as a const *; avoid warnings in that case.
12866
12867 2010-04-28  Eric Blake  <eblake@redhat.com>
12868
12869         canonicalize-lgpl: avoid compiler warning
12870         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12871         declaration' / 'extraneous semicolon' warning with some compilers.
12872         Reported by Andreas Gruenbacher.
12873
12874 2010-04-28  Jim Meyering  <meyering@redhat.com>
12875
12876         init.sh: ensure a more reliable exit status when exiting via trap
12877         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12878         Inspired by patches from Dmitry V. Levin.
12879         Also trap on signal 3 (SIGQUIT).
12880
12881 2010-04-27  Bruno Haible  <bruno@clisp.org>
12882
12883         Update doc about utimes().
12884         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12885         'utimens' module.
12886         Reported by Andreas Gruenbacher <agruen@suse.de>.
12887
12888 2010-04-27  Eric Blake  <eblake@redhat.com>
12889
12890         full-read, full-write: relax license
12891         * modules/full-read (License): Drop to LGPLv2+.
12892         * modules/full-write (License): Likewise.
12893         * modules/safe-read (License): Likewise.
12894         * modules/safe-write (License): Likewise.
12895
12896         pthread: mention library for linking
12897         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12898
12899 2010-04-27  Jim Meyering  <meyering@redhat.com>
12900
12901         maint.mk: fix a bug introduced in last change
12902         * top/maint.mk (gl_assured_headers_): Now that all names are on
12903         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12904         is not anchored to end of word, it should be adequate.
12905
12906         maint.mk: avoid side-effect in latest syntax-check
12907         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12908         to run commands via $(shell...), and hence to incur cost only when
12909         the new rule is actually run.
12910
12911         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12912         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12913         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12914         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12915         (gl_assured_headers_, az_, AZ_): Define.
12916         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12917
12918 2010-04-26  Jim Meyering  <jim@meyering.net>
12919             Bruno Haible  <bruno@clisp.org>
12920
12921         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12922         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12923         Prompted by an exchange with Gilles Espinasse.
12924
12925 2010-04-26  Jim Meyering  <meyering@redhat.com>
12926
12927         git-version-gen: aesthetic tweak
12928         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12929         so that the command remains on a single line.
12930
12931 2010-04-26  Eric Blake  <eblake@redhat.com>
12932
12933         git-version-gen: allow use on EBCDIC hosts
12934         * build-aux/git-version-gen (dirty): Use literal rather than tying
12935         ourselves to ascii.
12936         Reported by Steve Goetze.
12937
12938 2010-04-25  Bruno Haible  <bruno@clisp.org>
12939
12940         netdb: Add support for GNULIB_POSIXCHECK.
12941         * lib/netdb.in.h: Include warn-on-use.h.
12942         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12943         functions are used when GNULIB_POSIXCHECK is defined and the
12944         getaddrinfo module is not in use.
12945         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12946         freeaddrinfo, gai_strerror, getnameinfo are declared.
12947         * modules/netdb (Depends-on): Add warn-on-use.
12948         (Makefile.am): Include warn-on-use.h in netdb.h.
12949
12950 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12951
12952         build: avoid "make check" failure without .git/ directory
12953         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12954         there is no .git/ directory.
12955
12956 2010-04-25  Bruno Haible  <bruno@clisp.org>
12957
12958         ptsname: Fix misuse of ttyname_r.
12959         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12960         of errno.
12961
12962 2010-04-25  Bruno Haible  <bruno@clisp.org>
12963
12964         ttyname_r: Make it work on Solaris 10.
12965         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12966         if the system function has the POSIX declaration. Test whether the
12967         function fails if the buffer is less than 128 bytes large.
12968         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12969         system's ttyname_r function. Provide a reasonably large buffer.
12970         * modules/ttyname_r (Depends-on): Add extensions.
12971         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12972
12973 2010-04-25  Bruno Haible  <bruno@clisp.org>
12974
12975         Use the 'extensions' module for some more functions on Solaris.
12976         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12977         module.
12978         * doc/posix-functions/ctime_r.texi: Likewise.
12979         * doc/posix-functions/getgrgid_r.texi: Likewise.
12980         * doc/posix-functions/getgrnam_r.texi: Likewise.
12981         * doc/posix-functions/getpwnam_r.texi: Likewise.
12982         * doc/posix-functions/getpwuid_r.texi: Likewise.
12983         * doc/posix-functions/readdir_r.texi: Likewise.
12984         * doc/posix-functions/sigwait.texi: Likewise.
12985         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12986         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12987
12988 2010-04-25  Bruno Haible  <bruno@clisp.org>
12989
12990         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12991         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12992         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12993         * lib/ttyname_r.c: Include <limits.h>.
12994         (ttyname_r): Define using the system's ttyname_r function, if it exists
12995         and not on Solaris.
12996         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12997         set.
12998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12999         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13000         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13001         Reported by Simon Josefsson.
13002
13003 2010-04-25  Bruno Haible  <bruno@clisp.org>
13004
13005         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13006         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13007         * doc/posix-functions/ctime_r.texi: Likewise.
13008         * doc/posix-functions/getgrgid_r.texi: Likewise.
13009         * doc/posix-functions/getgrnam_r.texi: Likewise.
13010         * doc/posix-functions/getlogin_r.texi: Likewise.
13011         * doc/posix-functions/getpwnam_r.texi: Likewise.
13012         * doc/posix-functions/getpwuid_r.texi: Likewise.
13013         * doc/posix-functions/readdir_r.texi: Likewise.
13014         * doc/posix-functions/sigwait.texi: Likewise.
13015         * doc/posix-functions/ttyname_r.texi: Likewise.
13016         Reported by Simon Josefsson.
13017
13018 2010-04-25  Bruno Haible  <bruno@clisp.org>
13019
13020         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13021         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13022         also to --create-testdir.
13023         (func_acceptable): Don't consider the status of *-tests modules here.
13024         (func_modules_transitive_closure): Consider it here, before including a
13025         test module.
13026         (func_import, func_create_testdir): Set inc_all_direct_tests,
13027         inc_all_indirect_tests.
13028         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13029         --create-testdir and --create-megatestdir.
13030
13031 2010-04-25  Bruno Haible  <bruno@clisp.org>
13032
13033         gnulib-tool: Add --without-*-tests options.
13034         * gnulib-tool (func_usage): Document the --without-*-tests options.
13035         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13036         excl_unportable_tests): New variables.
13037         Fail if they are specified with --import or --update.
13038         (func_acceptable): Respect the excl_*_tests variables.
13039         (func_import): Set the excl_*_tests variables to empty.
13040
13041 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13042             Bruno Haible  <bruno@clisp.org>
13043
13044         Work around a MacOS X 10.4 bug with openpty.
13045         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13046         * tests/test-openpty.c (main): Close the master side explicitly.
13047
13048 2010-04-25  Bruno Haible  <bruno@clisp.org>
13049
13050         strnlen: Fix a C++ test error on MacOS X and Solaris.
13051         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13052         the function is not declared.
13053         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13054         Simon Josefsson.
13055
13056 2010-04-24  Bruno Haible  <bruno@clisp.org>
13057
13058         Avoid a gcc warning.
13059         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13060         of correct type for %08lx directive.
13061         Reported by Eric Blake.
13062
13063 2010-04-24  Bruno Haible  <bruno@clisp.org>
13064
13065         vasnprintf: Correct errno value in case of out-of-memory.
13066         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13067         or sprintf. Use the errno value from SNPRINTF or sprintf.
13068         Reported by Ian Beckwith <ianb@erislabs.net>.
13069
13070 2010-04-24  Bruno Haible  <bruno@clisp.org>
13071
13072         ansi-c++-opt: Find correct compiler when cross-compiling.
13073         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13074         AC_CHECK_PROGS.
13075         Reported by Simon Josefsson.
13076
13077 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13078
13079         vc-list-files: Add support for subversion
13080         * build-aux/vc-list-files: Use "svn list" to generate the list of
13081         files controlled by subversion.
13082
13083 2010-04-23  Jim Meyering  <meyering@redhat.com>
13084
13085         vc-list-files tests: convert to use init.sh
13086         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13087         path_prepend_.
13088         Use Exit, not exit.
13089         Use skip_ rather than open coding it.
13090         Remove trap set-up and compare definitions.
13091         * tests/test-vc-list-files-git.sh: Likewise.
13092         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13093
13094 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13095
13096         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13097         backup files.
13098
13099 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13100
13101         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13102
13103 2010-04-20  Eric Blake  <eblake@redhat.com>
13104
13105         tests: be robust to ignored SIGPIPE
13106         * tests/test-select-in.sh: Consume all output.
13107         * tests/test-lseek.sh: Check correct exit status, while avoiding
13108         EPIPE.
13109
13110 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13111             Bruno Haible  <bruno@clisp.org>
13112
13113         visibility: Don't use -fvisibility if it leads to a warning.
13114         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13115         yes, don't pretend that visibility works if it leads to a warning.
13116         Reported by Mike Gran <spk121@yahoo.com>.
13117
13118 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13119
13120         * build-aux/bootstrap: Use "git -h" for testing for supported options
13121         instead of "git --help".  The short-form option only shows a summary,
13122         and doesn't layout the full man page.  Grep for the full option name
13123         in the summary, too.
13124
13125 2010-04-19  Bruno Haible  <bruno@clisp.org>
13126
13127         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13128         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13129         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13130         mention of RELOCATABLE_STRIP.
13131         Reported by Sylvain Beucler <beuc@beuc.net>.
13132
13133 2010-04-19  Bruno Haible  <bruno@clisp.org>
13134
13135         * lib/diffseq.h: Fix typo in comment.
13136         Reported by Eric Blake.
13137
13138 2010-04-19  Bruno Haible  <bruno@clisp.org>
13139
13140         ioctl: Move autoconf macro to a .m4 file.
13141         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13142         * modules/ioctl (Files): Add it.
13143         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13144         Reported by Ian Beckwith <ianb@erislabs.net>.
13145
13146 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13147             Bruno Haible  <bruno@clisp.org>
13148
13149         diffseq: Accommodate use-case with abstract arrays.
13150         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13151         is not defined.
13152         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13153         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13154
13155 2010-04-18  Bruno Haible  <bruno@clisp.org>
13156
13157         * doc/posix-headers/stdbool.texi: More precise wording.
13158
13159 2010-04-17  Jim Meyering  <meyering@redhat.com>
13160
13161         maint.mk: use gnu-style indentation in an embedded perl script
13162         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13163         Rename variable: s/two/last_two_bytes/
13164
13165 2010-04-16  Eric Blake  <eblake@redhat.com>
13166
13167         test-stdbool: skip test that fails with Solaris CC
13168         * tests/test-stdbool.c (f): Skip test that causes compilation
13169         error under buggy C++ compiler.
13170         * lib/stdbool.in.h: Document the limitation.
13171         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13172
13173         setenv: allow compilation with C++
13174         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13175         register keyword.
13176
13177         stdint: allow test to pass with C++
13178         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13179
13180         getopt: allow compilation with C++
13181         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13182         struct.
13183         * lib/getopt.c (_getopt_internal_r): Use correct type.
13184         Reported by Dagobert Michelson, via Joel E. Denny.
13185
13186 2010-04-16  Bruno Haible  <bruno@clisp.org>
13187
13188         Override netdb.h always.
13189         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13191         Reported by Ludovic Courtès <ludo@gnu.org>.
13192
13193 2010-04-15  Bruno Haible  <bruno@clisp.org>
13194
13195         openpty: Fix mistake from 2010-03-21.
13196         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13197         Reported by Simon Josefsson.
13198
13199 2010-04-15  Eric Blake  <eblake@redhat.com>
13200
13201         test-forkpty: fix expected signature
13202         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13203         Reported by Simon Josefsson.
13204
13205 2010-04-15  Jim Meyering  <meyering@redhat.com>
13206
13207         maint.mk: texinfo_suffix_re_: correct the default regexp
13208         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13209
13210         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13211         make it configurable via texinfo_suffix_re_.
13212
13213 2010-04-14  Eric Blake  <eblake@redhat.com>
13214
13215         strtok_r: relax license to LGPLv2+
13216         * modules/strtok_r (License): Relax license.
13217         Reported by Matthias Bolte.
13218
13219 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13220
13221         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13222         version 1.4.4 by default instead of requiring the libgcrypt
13223         version used during build.  This makes it possible to use the
13224         application with older but still binary compatible libgcrypt
13225         versions.
13226
13227 2010-04-13  Eric Blake  <eblake@redhat.com>
13228
13229         getopt-gnu: match recent glibc fixes and posix ruling
13230         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13231         '+' handling, when requesting extensions.
13232         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13233         'W;' handling.
13234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13235         * doc/posix-functions/getopt.texi (getopt): Document this.
13236         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13237         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13238         Likewise.
13239
13240         getopt: merge bug fixes from glibc
13241         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13242         diagnostics.  Honor '+:' correctly.  Reject ';'.
13243
13244         getopt-posix: detect MacOS bug
13245         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13246         optind when missing a required argument.
13247         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13248         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13249         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13250         Likewise.
13251
13252         getopt-posix: avoid spurious failure on Solaris
13253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13254         an indicator that setting optind=1 is sufficient for reset.
13255
13256         getopt-posix: avoid spurious failure on FreeBSD
13257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13258         in POSIX mode, since the m4 test uses it.
13259
13260         gnulib-tool: silence warning on BSD sh
13261         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13262
13263 2010-04-13  Jim Meyering  <meyering@redhat.com>
13264
13265         doc: users.txt: GNU patch now uses gnulib
13266         * users.txt: Add patch.
13267
13268 2010-04-12  Jim Meyering  <meyering@redhat.com>
13269
13270         maint.mk: generate more concise timing data for syntax-check rules
13271         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13272         " done" from each line that reports a syntax-check test duration.
13273
13274 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13275
13276         git-version-gen: use "git update-index..." rather than "git status"
13277         * build-aux/git-version-gen: Use git update-index --refresh, not
13278         "git status".  With some versions of git, "git status" would fail
13279         to update the index and result in an unwarranted "-dirty" suffix.
13280
13281 2010-04-11  Jim Meyering  <meyering@redhat.com>
13282
13283         openat: correct formatting (no semantic change)
13284         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13285         Suggested by Bruno Haible.
13286
13287 2010-04-11  Bruno Haible  <bruno@clisp.org>
13288
13289         Stricter declaration checking in testdirs.
13290         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13291         If for_tests is true, augment AM_CPPFLAGS to define
13292         GNULIB_STRICT_CHECKING.
13293         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13294         GNULIB_STRICT_CHECKING is defined, verify that the function is
13295         declared.
13296
13297 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13298             Bruno Haible  <bruno@clisp.org>
13299
13300         libunistring: Improve configure output.
13301         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13302         Don't say "consider installing GNU libunistring" when checking again
13303         with libiconv.
13304
13305 2010-04-11  Bruno Haible  <bruno@clisp.org>
13306
13307         libunistring: Correct value of $LTLIBUNISTRING.
13308         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13309         correct the value of $LTLIBUNISTRING.
13310
13311 2010-04-11  Bruno Haible  <bruno@clisp.org>
13312
13313         havelib: Add static libraries to LIBS in the right order.
13314         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13315         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13316
13317 2010-04-11  Bruno Haible  <bruno@clisp.org>
13318
13319         libunistring: Detect libunistring also when it depends on libiconv.
13320         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13321         the second AC_LIB_HAVE_LINKFLAGS invocation.
13322
13323 2010-04-11  James Youngman  <jay@gnu.org>
13324
13325         close-stream: declare local scalars to be "const"
13326         * lib/close-stream.c (close_stream): Make boolean variables const
13327         to document the fact that we set but do not change them.
13328
13329 2010-04-11  Bruno Haible  <bruno@clisp.org>
13330
13331         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13332
13333 2010-04-11  Jim Meyering  <meyering@redhat.com>
13334
13335         maint.mk: don't include dist-check.mk
13336         * top/maint.mk: Remove bogus include directive.
13337
13338         maint.mk: improve empty-line-at-EOF check
13339         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13340         solution, rather than tail+Perl-based one.  The latter would read
13341         a few kilobytes from the end of each file, and did not handle empty
13342         files properly.
13343
13344         maint.mk: print the elapsed time for each syntax-check rule
13345         * top/maint.mk (sc_m_rules_): Save start time in a file.
13346         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13347         (local-check): Interpose the .z rules
13348
13349 2010-04-11  Jim Meyering  <meyering@redhat.com>
13350
13351         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13352         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13353         empty file with one that ends in an empty line.
13354
13355 2010-04-10  Bruno Haible  <bruno@clisp.org>
13356
13357         mkdir: Make it work on mingw64.
13358         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13359         * lib/mkdir.c: Update comment.
13360         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13361
13362 2010-04-10  Bruno Haible  <bruno@clisp.org>
13363
13364         Don't override improved macro from newer autoconf.
13365         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13366         autoconf >= 2.62.
13367         Reported by Joel E. Denny <jdenny@clemson.edu>.
13368
13369 2010-04-10  Jim Meyering  <meyering@redhat.com>
13370
13371         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13372         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13373
13374         maint.mk: correct a diagnostic
13375         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13376         in diagnostic; now use $prohibit.
13377
13378 2010-04-10  Bruno Haible  <address@hidden>
13379
13380         fchownat: Fix a C++ test error on Solaris 8.
13381         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13382         the function does not exist.
13383
13384 2010-04-10  Bruno Haible  <bruno@clisp.org>
13385
13386         vasnprintf: Add more tests.
13387         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13388         (test_function): Test converting an invalid wide string.
13389
13390         vasnprintf: Correct handling of unconvertible wide string arguments.
13391         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13392         VASNPRINTF.
13393         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13394         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13395         smaller than the expected maximum need for the directive. Set errno to
13396         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13397         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13398         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13399         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13400         * modules/vasnprintf (Files): Add m4/printf.m4.
13401         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13402
13403 2010-04-10  Bruno Haible  <bruno@clisp.org>
13404
13405         vasnprintf: Fix crash in %ls directive.
13406         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13407         string is passed as argument to %ls, with no precision and no width.
13408         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13409
13410 2010-04-10  Bruno Haible  <bruno@clisp.org>
13411
13412         vasnprintf: Fix multiple test failures on mingw.
13413         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13414         _snprintf, or snwprintf, not _snwprintf.
13415
13416 2010-04-10  Bruno Haible  <bruno@clisp.org>
13417
13418         write: Fix a C++ test error on mingw.
13419         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13420
13421 2010-04-10  Bruno Haible  <bruno@clisp.org>
13422
13423         vasnprintf test: Reduce code duplication.
13424         * tests/test-vasnprintf.c (test_function): New function, extracted from
13425         test_vasnprintf.
13426         (test_vasnprintf, test_asnprintf): Invoke it.
13427
13428 2010-04-10  Bruno Haible  <bruno@clisp.org>
13429
13430         strnlen: Fix warning in C++ mode on MacOS X.
13431         * lib/string.in.h (strnlen): Use the modern idiom.
13432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13433         defining strnlen as a macro already in <config.h>.
13434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13435         REPLACE_STRNLEN.
13436         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13437         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13438
13439 2010-04-08  James Youngman  <jay@gnu.org>
13440
13441         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13442         the example.
13443
13444 2010-04-09  Jim Meyering  <meyering@redhat.com>
13445
13446         maint.mk: print better diagnostic when there is no $(_hv_file)
13447         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13448         announce that when $(_hv_file) (aka help-version) does not exist.
13449
13450         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13451         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13452         not try to interpret its random input bytes.  Jarno Rajahalme reported
13453         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13454         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13455         (mktempd_): Likewise, just in case.
13456
13457         ftruncate: add two years to projected module removal date: 2012
13458         * m4/ftruncate.m4: Adjust comments.
13459
13460         ftruncate: mark module as obsolete; even MinGW provides it, now
13461         * modules/ftruncate (Status): Obsolete.
13462         (Notice): Say that.
13463         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13464         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13465
13466 2010-04-08  Bruno Haible  <bruno@clisp.org>
13467
13468         Fix side effects from tests-related modules.
13469         * modules/dprintf-posix (Comment): New section.
13470         * modules/fprintf-posix (Comment): Likewise.
13471         * modules/obstack-printf-posix (Comment): Likewise.
13472         * modules/printf-posix (Comment): Likewise.
13473         * modules/snprintf-posix (Comment): Likewise.
13474         * modules/sprintf-posix (Comment): Likewise.
13475         * modules/vasnprintf-posix (Comment): Likewise.
13476         * modules/vasprintf-posix (Comment): Likewise.
13477         * modules/vdprintf-posix (Comment): Likewise.
13478         * modules/vfprintf-posix (Comment): Likewise.
13479         * modules/vprintf-posix (Comment): Likewise.
13480         * modules/vsnprintf-posix (Comment): Likewise.
13481         * modules/vsprintf-posix (Comment): Likewise.
13482         * modules/xprintf-posix (Comment): Likewise.
13483         * modules/xvasprintf-posix (Comment): Likewise.
13484         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13485         * modules/floorf-tests (Depends-on): Likewise.
13486         * modules/round-tests (Depends-on): Likewise.
13487         * modules/roundf-tests (Depends-on): Likewise.
13488         * modules/trunc-tests (Depends-on): Likewise.
13489         * modules/truncf-tests (Depends-on): Likewise.
13490         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13491         'fprintf-posix' module is not present.
13492         * tests/test-floorf2.c (check): Likewise.
13493         * tests/test-trunc2.c (check): Likewise.
13494         * tests/test-truncf2.c (check): Likewise.
13495         * tests/test-round2.c (equal): Likewise.
13496         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13497
13498 2010-04-07  Karl Berry  <karl@gnu.org>
13499
13500         * config/srclist.txt,
13501         * config/srclistvars.sh,
13502         * config/srclist-update: doc fixes.
13503
13504 2010-04-07  Jim Meyering  <meyering@redhat.com>
13505
13506         maint.mk: add a PATH crosschecking syntax-check rule
13507         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13508         Useful if you use a test like the one in help-version (coreutils,
13509         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13510         printed by prog --version.
13511
13512 2010-04-06  Bruno Haible  <bruno@clisp.org>
13513
13514         Fix link error on mingw.
13515         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13516         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13517
13518 2010-04-06  Bruno Haible  <bruno@clisp.org>
13519
13520         Assume rmdir exists.
13521         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13522
13523 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13524
13525         doc: update users.txt
13526         * users.txt: Add gcal.
13527
13528 2010-04-06  Jim Meyering  <meyering@redhat.com>
13529
13530         init.sh: simply unset TMPDIR rather than risking env -i
13531         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13532         although it probably works fine on all Unix-based systems, some
13533         systems (Cygwin?) cannot tolerate a totally cleared environment.
13534         Suggestion from Eric Blake.
13535
13536 2010-04-06  Jim Meyering  <meyering@redhat.com>
13537
13538         init.sh: portability fix: use env's POSIX-specified -i option not -u
13539         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13540         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13541
13542 2010-04-05  Bruno Haible  <bruno@clisp.org>
13543
13544         btowc: Work around Cygwin 1.7.2 bug.
13545         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13546         does not map NUL to 0.
13547         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13548
13549 2010-04-05  Bruno Haible  <bruno@clisp.org>
13550
13551         Make the multithread modules work on Cygwin 1.7.2.
13552         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13553         imported symbols can be declared weak, so that it returns "no" on
13554         Cygwin 1.7.2.
13555
13556 2010-04-05  Bruno Haible  <bruno@clisp.org>
13557
13558         Use the module 'strncat'.
13559         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13560
13561         Tests for module 'strncat'.
13562         * modules/strncat-tests: New file.
13563         * tests/test-strncat.c: New file.
13564
13565         New module 'strncat'.
13566         * lib/string.in.h (strncat): New declaration.
13567         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13568         * m4/strncat.m4: New file, based on m4/memchr.m4.
13569         * modules/strncat: New file.
13570         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13571         is declared.
13572         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13573         REPLACE_STRNCAT.
13574         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13575         REPLACE_STRNCAT.
13576         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13577         module.
13578         * tests/test-string-c++.cc: Check signature of strncat.
13579
13580 2010-04-05  Jim Meyering  <meyering@redhat.com>
13581
13582         xstrtoumax-tests: convert to use init.sh
13583         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13584         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13585         Use Exit, not exit.
13586         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13587
13588         xstrtoimax-tests: convert to use init.sh
13589         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13590         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13591         Use Exit, not exit.
13592         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13593
13594 2010-04-05  Bruno Haible  <bruno@clisp.org>
13595
13596         sys_socket: Avoid #define replacements in C++ mode.
13597         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13598         warning to the function if possible, rather than #defining the symbol
13599         to a dysfunctional alias.
13600
13601 2010-04-05  Bruno Haible  <bruno@clisp.org>
13602
13603         fseeko: Fix C++ test error on mingw.
13604         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13605         gl_FUNC_FSEEKO.
13606         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13607         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13608         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13609         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13610
13611 2010-04-05  Bruno Haible  <bruno@clisp.org>
13612
13613         duplocale: Improve test output.
13614         * tests/test-duplocale.c (main): Print reason for skipped test.
13615
13616 2010-04-05  Bruno Haible  <bruno@clisp.org>
13617
13618         Assume rmdir exists.
13619         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13620         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13621
13622 2010-04-05  Bruno Haible  <bruno@clisp.org>
13623
13624         Fix link error on Solaris 8 with cc.
13625         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13626
13627 2010-04-05  Bruno Haible  <bruno@clisp.org>
13628
13629         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13630         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13631
13632 2010-04-05  Bruno Haible  <bruno@clisp.org>
13633
13634         vasprintf: Update documentation.
13635         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13636
13637 2010-04-05  Bruno Haible  <bruno@clisp.org>
13638
13639         ptsname: Improve test.
13640         * tests/test-ptsname.c (main): Also try the various master names of BSD
13641         systems.
13642
13643 2010-04-05  Bruno Haible  <bruno@clisp.org>
13644
13645         memchr: Avoid a possible C++ test error.
13646         * lib/string.in.h (memchr): Provide declaration if function is missing.
13647         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13648         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13650         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13651
13652 2010-04-05  Bruno Haible  <bruno@clisp.org>
13653
13654         strtok_r: Improve idiom.
13655         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13656         AC_LIBOBJ is used.
13657
13658 2010-04-05  Bruno Haible  <bruno@clisp.org>
13659
13660         strdup: Improve idiom.
13661         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13662         AC_LIBOBJ is used.
13663         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13664         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13665         when AC_LIBOBJ is used.
13666
13667 2010-04-05  Bruno Haible  <bruno@clisp.org>
13668
13669         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13670         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13671         don't set REPLACE_MBSINIT to 1.
13672         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13673         don't set REPLACE_MBRTOWC to 1.
13674         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13675         exist, don't set REPLACE_MBSRTOWCS to 1.
13676         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13677         exist, don't set REPLACE_MBSNRTOWCS to 1.
13678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13679         don't set REPLACE_WCRTOMB to 1.
13680         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13681         exist, don't set REPLACE_WCSRTOMBS to 1.
13682         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13683         exist, don't set REPLACE_WCSNRTOMBS to 1.
13684
13685 2010-04-05  Bruno Haible  <bruno@clisp.org>
13686
13687         ldexpl: Improve idiom.
13688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13689         make sure to set HAVE_DECL_LDEXPL to 0.
13690
13691 2010-04-05  Jim Meyering  <meyering@redhat.com>
13692
13693         xstrtol-tests: convert to use init.sh
13694         * modules/xstrtol-tests (Files): Add tests/init.sh.
13695         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13696         Use Exit, not exit.
13697         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13698
13699         atexit-tests: convert to use init.sh
13700         * modules/atexit-tests (Files): Add tests/init.sh.
13701         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13702         Use Exit, not exit.
13703         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13704
13705         init.sh: fix typo
13706         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13707
13708         init.sh: make it easier for a test script to write to the tty, ...
13709         when using automake's parallel-tests mode.
13710         * tests/init.sh (stderr_fileno_): Define overridable variable.
13711         (warn_): New function, to use it.
13712         (fail_, skip_, framework_failure_): Use warn_.
13713
13714 2010-04-04  Bruno Haible  <bruno@clisp.org>
13715
13716         btowc: Avoid warning.
13717         * lib/btowc.c: Include <stdlib.h>.
13718         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13719
13720 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13721             Bruno Haible  <bruno@clisp.org>
13722
13723         wchar: Port to NetBSD 1.5.
13724         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13725         * lib/wctype.in.h (WEOF): Likewise.
13726
13727 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13728             Bruno Haible  <bruno@clisp.org>
13729
13730         Port extended stdio to NetBSD 1.5.
13731         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13732         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13733         older.
13734
13735 2010-04-04  Bruno Haible  <bruno@clisp.org>
13736
13737         string: Remove unused substitution.
13738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13739         HAVE_DECL_STRERROR.
13740         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13741
13742 2010-04-04  Bruno Haible  <bruno@clisp.org>
13743
13744         strtod: Avoid a possible C++ test error.
13745         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13746         set REPLACE_STRTOD.
13747
13748 2010-04-04  Bruno Haible  <bruno@clisp.org>
13749
13750         strerror: Update documentation.
13751         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13752
13753 2010-04-04  Bruno Haible  <bruno@clisp.org>
13754
13755         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13756         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13757         _GL_CXXALIAS_SYS_CAST.
13758
13759 2010-04-04  Bruno Haible  <bruno@clisp.org>
13760
13761         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13762         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13763         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13764         REPLACE_FREXPL to 1.
13765         * doc/posix-functions/frexpl.texi: Update documentation.
13766
13767 2010-04-04  Bruno Haible  <bruno@clisp.org>
13768
13769         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13770         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13771
13772 2010-04-04  Bruno Haible  <bruno@clisp.org>
13773
13774         Implement nanosleep for native Windows.
13775         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13776
13777 2010-04-04  Bruno Haible  <bruno@clisp.org>
13778
13779         math: Fix some C++ test errors on Solaris 8.
13780         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13781
13782 2010-04-04  Bruno Haible  <bruno@clisp.org>
13783
13784         math: Fix some C++ test errors on Cygwin.
13785         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13786         truncl): Provide declaration if the system does not have it.
13787         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13788         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13789         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13790         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13791         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13792         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13793         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13794         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13795         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13796         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13797         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13798         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13799         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13800         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13801         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13802         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13804         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13805         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13806         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13807         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13808         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13809
13810 2010-04-04  Bruno Haible  <bruno@clisp.org>
13811
13812         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13813         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13814         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13815         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13816         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13817         * m4/isinf.m4 (gl_ISINF): Likewise.
13818         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13819
13820 2010-04-04  Bruno Haible  <bruno@clisp.org>
13821
13822         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13823         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13824
13825 2010-04-04  Bruno Haible  <bruno@clisp.org>
13826
13827         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13828         * modules/tmpfile (configure.ac): Update.
13829
13830         tmpfile: Fix C++ test error on mingw.
13831         * lib/stdio.in.h (tmpfile): New declaration.
13832         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13833         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13834         * modules/tmpfile (Depends-on): Add stdio.
13835         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13836         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13837         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13838         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13839         REPLACE_TMPFILE.
13840         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13841
13842 2010-04-04  Bruno Haible  <bruno@clisp.org>
13843
13844         ioctl: Fix C++ test error on mingw.
13845         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13846         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13847         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13848
13849 2010-04-03  Bruno Haible  <bruno@clisp.org>
13850
13851         wcwidth: Fix C++ test error on mingw.
13852         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13854         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13855
13856 2010-04-03  Bruno Haible  <bruno@clisp.org>
13857
13858         nanosleep: Fix C++ test error on mingw.
13859         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13860         * lib/time.in.h (nanosleep): Use modern idiom.
13861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13862         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13863         REPLACE_NANOSLEEP to 1.
13864         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13865         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13866
13867 2010-04-03  Bruno Haible  <bruno@clisp.org>
13868
13869         strptime: Fix C++ test error on mingw.
13870         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13871         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13872         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13873         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13874         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13875         not REPLACE_STRPTIME.
13876         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13877         REPLACE_STRPTIME.
13878
13879 2010-04-03  Bruno Haible  <bruno@clisp.org>
13880
13881         timegm: Fix C++ test error on mingw.
13882         * lib/time.in.h (timegm): Use modern idiom.
13883         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13884         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13885         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13886         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13887
13888 2010-04-03  Bruno Haible  <bruno@clisp.org>
13889
13890         timegm: Assume declaration if function exists.
13891         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13892         if it exists. Don't clobber ac_cv_func_timegm.
13893
13894 2010-04-03  Bruno Haible  <bruno@clisp.org>
13895
13896         time_r: Fix C++ test error on mingw.
13897         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13898         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13899         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13901         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13902
13903 2010-04-03  Bruno Haible  <bruno@clisp.org>
13904
13905         time_r: Minor updates.
13906         * modules/time_r (Description): Mention the provided functions.
13907         * lib/time_r.c: Don't include <string.h>.
13908         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13909         * doc/posix-functions/localtime_r.texi: Likewise.
13910
13911 2010-04-03  Bruno Haible  <bruno@clisp.org>
13912
13913         time: Fix regression introduced on 2010-03-08.
13914         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13915         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13916
13917 2010-04-03  Jim Meyering  <meyering@redhat.com>
13918
13919         maint.mk: don't silently disable project-specific syntax-check rules
13920         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13921         that they need to convert their project-specific syntax-check rules
13922         to use the new _sc_search_regexp.
13923
13924 2010-04-03  Bruno Haible  <bruno@clisp.org>
13925
13926         fchdir: Fix regression introduced on 2010-03-08.
13927         * lib/unistd.in.h (fchdir): Fix declaration.
13928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13930         REPLACE_FCHDIR.
13931         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13932         REPLACE_FCHDIR.
13933
13934 2010-04-03  Bruno Haible  <bruno@clisp.org>
13935
13936         getpagesize: Fix C++ test error on mingw.
13937         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13938         system does not declare the function.
13939         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13940         declared.
13941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13942         HAVE_DECL_GETPAGESIZE.
13943         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13944
13945 2010-04-03  Bruno Haible  <bruno@clisp.org>
13946
13947         stdio: Make C++ tests work on mingw.
13948         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13949         does not declare the function.
13950
13951 2010-04-03  Bruno Haible  <bruno@clisp.org>
13952
13953         ftello: Fix C++ test error on mingw.
13954         * lib/stdio.in.h (ftello): Use modern idiom.
13955         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13956         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13957         is missing and that it needs to be replaced.
13958         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13960         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13961
13962 2010-04-03  Bruno Haible  <bruno@clisp.org>
13963
13964         fseeko: Fix C++ test error on mingw.
13965         * lib/stdio.in.h (fseeko): Use modern idiom.
13966         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13968         is missing and that it needs to be replaced.
13969         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13971         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13972
13973 2010-04-03  Bruno Haible  <bruno@clisp.org>
13974
13975         mkstemp: Fix C++ test error on mingw.
13976         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13978         function is missing and that it needs to be replaced.
13979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13980         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13981
13982 2010-04-03  Bruno Haible  <bruno@clisp.org>
13983
13984         stpncpy: Fix C++ test error on mingw.
13985         * lib/string.in.h (stpncpy): Use modern idiom.
13986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13987         function is missing and that it needs to be replaced.
13988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13989         REPLACE_STPNCPY.
13990         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13991
13992 2010-04-03  Bruno Haible  <bruno@clisp.org>
13993
13994         sys_stat: Fix C++ test error on mingw.
13995         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13996         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13997
13998 2010-04-03  Bruno Haible  <bruno@clisp.org>
13999
14000         pty: Update doc.
14001         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14002
14003 2010-04-03  Bruno Haible  <bruno@clisp.org>
14004
14005         unistd: Fix C++ test error on mingw.
14006         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14007
14008 2010-04-03  Bruno Haible  <bruno@clisp.org>
14009
14010         Update doc regarding mingw.
14011         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14012         * doc/glibc-functions/login_tty.texi: Likewise.
14013         * doc/glibc-functions/forkpty.texi: Likewise.
14014
14015 2010-04-03  Bruno Haible  <bruno@clisp.org>
14016
14017         stdlib: Avoid compilation failure of c-strtold on mingw.
14018         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14019
14020 2010-04-03  Bruno Haible  <bruno@clisp.org>
14021
14022         locale: Make C++ tests work on Cygwin and mingw.
14023         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14024         cannot provide the function.
14025         Reported by Simon Josefsson.
14026
14027 2010-04-03  Bruno Haible  <bruno@clisp.org>
14028
14029         localename: Port to MacOS X 10.6.
14030         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14031         memory layout of the locales in MacOS X 10.6 as well.
14032         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14033
14034 2010-04-02  Bruno Haible  <bruno@clisp.org>
14035
14036         gnulib-tool: Ensure that long-running tests are executed last.
14037         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14038         running tests after the one for the other tests.
14039
14040 2010-04-02  Bruno Haible  <bruno@clisp.org>
14041
14042         gnulib-tool: Ensure the tests in the main directory are executed first.
14043         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14044         start with the current directory.
14045
14046 2010-04-02  Bruno Haible  <bruno@clisp.org>
14047
14048         Tests for module 'havelib', moved here from GNU gettext.
14049         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14050         modifications.
14051         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14052         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14053         with modifications.
14054         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14055         modifications.
14056         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14057         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14058         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14059         with modifications.
14060         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14061         with modifications.
14062         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14063         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14064         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14065         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14066         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14067         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14068         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14069         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14070         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14071         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14072         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14073         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14074         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14075         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14076         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14077         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14078         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14079         with modifications.
14080         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14081         with modifications.
14082         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14083         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14084         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14085         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14086         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14087         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14088         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14089         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14090         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14091         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14092         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14093         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14094         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14095         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14096         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14097         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14098         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14099         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14100         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14101         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14102         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14103         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14104         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14105         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14106         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14107         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14108         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14109         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14110         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14111         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14112         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14113         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14114         * tests/havelib/rpathx/rpathx.c: New file, from
14115         gettext/autoconf-lib-link.
14116         * tests/havelib/rpathx/Makefile.am: New file, from
14117         gettext/autoconf-lib-link.
14118         * tests/havelib/rpathx/configure.ac: New file, from
14119         gettext/autoconf-lib-link with modifications.
14120         * tests/havelib/rpathy/rpathy.c: New file, from
14121         gettext/autoconf-lib-link.
14122         * tests/havelib/rpathy/Makefile.am: New file, from
14123         gettext/autoconf-lib-link.
14124         * tests/havelib/rpathy/configure.ac: New file, from
14125         gettext/autoconf-lib-link with modifications.
14126         * tests/havelib/rpathz/rpathz.c: New file, from
14127         gettext/autoconf-lib-link.
14128         * tests/havelib/rpathz/Makefile.am: New file, from
14129         gettext/autoconf-lib-link.
14130         * tests/havelib/rpathz/configure.ac: New file, from
14131         gettext/autoconf-lib-link with modifications.
14132         * tests/havelib/rpathlx/usex.c: New file, from
14133         gettext/autoconf-lib-link.
14134         * tests/havelib/rpathlx/Makefile.am: New file, from
14135         gettext/autoconf-lib-link.
14136         * tests/havelib/rpathlx/configure.ac: New file, from
14137         gettext/autoconf-lib-link with modifications.
14138         * tests/havelib/rpathly/usey.c: New file, from
14139         gettext/autoconf-lib-link.
14140         * tests/havelib/rpathly/Makefile.am: New file, from
14141         gettext/autoconf-lib-link.
14142         * tests/havelib/rpathly/configure.ac: New file, from
14143         gettext/autoconf-lib-link with modifications.
14144         * tests/havelib/rpathlz/usez.c: New file, from
14145         gettext/autoconf-lib-link.
14146         * tests/havelib/rpathlz/Makefile.am: New file, from
14147         gettext/autoconf-lib-link.
14148         * tests/havelib/rpathlz/configure.ac: New file, from
14149         gettext/autoconf-lib-link with modifications.
14150         * tests/havelib/rpathlyx/usey.c: New file, from
14151         gettext/autoconf-lib-link.
14152         * tests/havelib/rpathlyx/Makefile.am: New file, from
14153         gettext/autoconf-lib-link.
14154         * tests/havelib/rpathlyx/configure.ac: New file, from
14155         gettext/autoconf-lib-link with modifications.
14156         * tests/havelib/rpathlzyx/usez.c: New file, from
14157         gettext/autoconf-lib-link.
14158         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14159         gettext/autoconf-lib-link.
14160         * tests/havelib/rpathlzyx/configure.ac: New file, from
14161         gettext/autoconf-lib-link with modifications.
14162         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14163         with modifications.
14164
14165 2010-04-02  Bruno Haible  <bruno@clisp.org>
14166
14167         gnulib-tool: Create distributed built sources also for the tests.
14168         * gnulib-tool (func_create_testdir): Also generate distributed built
14169         sources in the tests directory.
14170
14171 2010-04-02  Bruno Haible  <bruno@clisp.org>
14172
14173         gnulib-tool: Obey user's environment variables.
14174         * gnulib-tool (func_create_testdir): When creating built sources,
14175         respect the environment variables for autoconf, automake, etc. given by
14176         the user.
14177
14178 2010-04-02  Bruno Haible  <bruno@clisp.org>
14179
14180         gnulib-tool: Provide the value of --m4-base to modules.
14181         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14182         of gl_m4_base.
14183
14184 2010-04-02  Eric Blake  <eblake@redhat.com>
14185
14186         maint.mk: fix some fallout
14187         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14188         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14189
14190 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14191
14192         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14193         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14194         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14195         (sc_cast_of_x_alloc_return_value): Likewise.
14196         (sc_cast_of_alloca_return_value): Likewise.
14197         (sc_space_tab): Likewise.
14198         (sc_prohibit_atoi_atof): Likewise.
14199         (sc_prohibit_magic_number_exit): Likewise.
14200         (sc_error_exit_success): Likewise.
14201         (sc_file_system): Likewise.
14202         (sc_prohibit_have_config_h): Likewise.
14203         (sc_require_config_h): Likewise.
14204         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14205         (sc_obsolete_symbols): Likewise.
14206         (sc_changelog): Likewise.
14207         (sc_program_name): Likewise.
14208         (sc_the_the): Likewise.
14209         (sc_trailing_blank): Likewise.
14210         (sc_two_space_separator_in_usage): Likewise.
14211         (sc_useless_cpp_parens): Likewise.
14212         (sc_GPL_version): Likewise.
14213         (sc_GFDL_version): Likewise.
14214         (sc_texinfo_acronym): Likewise.
14215         (sc_prohibit_cvs_keyword): Likewise.
14216         (sc_prohibit_stat_st_blocks): Likewise.
14217         (sc_prohibit_S_IS_definition): Likewise.
14218         (sc_redundant_const): Likewise.
14219         (sc_makefile_TAB_only_indentation): Likewise.
14220         (sc_m4_quote_check): Likewise.
14221         (sc_makefile_path_separator_check): Likewise.
14222         (sc_copyright_check): Likewise.
14223         (sc_Wundef_boolean): Likewise.
14224         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14225
14226         maint.mk: match 0 or more whitespace-before-function-call '('
14227         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14228         that have zero or two-and-more spaces between the function name
14229         and the open parenthesis.
14230         (sc_error_message_warn_fatal): Likewise.
14231         (sc_error_message_uppercase): Likewise.
14232         (sc_error_message_period): Likewise.
14233
14234 2010-03-31  Eric Blake  <eblake@redhat.com>
14235
14236         maint.mk: check for [ as well as test
14237         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14238         Based on a libvirt report by Matthias Bolte.
14239
14240         gnumakefile: don't squelch _version output
14241         * top/GNUmakefile (_version): Create one-shot dependency rather
14242         than using $(shell) when version must be regenerated.
14243         (_autoreconf): Run verbosely, by default.
14244
14245         sys_time: avoid compiler warnings
14246         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14247         unconditional, fixing regression from 2010-03-29.
14248         Reported by Simon Josefsson.
14249
14250 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14251
14252         maint.mk: s/_header_without_use/_sc_header_without_use/
14253         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14254         (sc_prohibit_assert_without_use): Use the new name.
14255         (sc_prohibit_close_stream_without_use): Likewise.
14256         (sc_prohibit_getopt_without_use): Likewise.
14257         (sc_prohibit_quotearg_without_use): Likewise.
14258         (sc_prohibit_quote_without_use): Likewise.
14259         (sc_prohibit_long_options_without_use): Likewise.
14260         (sc_prohibit_inttostr_without_use): Likewise.
14261         (sc_prohibit_ignore_value_without_use): Likewise.
14262         (sc_prohibit_error_without_use): Likewise.
14263         (sc_prohibit_xalloc_without_use): Likewise.
14264         (sc_prohibit_hash_without_use): Likewise.
14265         (sc_prohibit_hash_pjw_without_use): Likewise.
14266         (sc_prohibit_safe_read_without_use): Likewise.
14267         (sc_prohibit_argmatch_without_use): Likewise.
14268         (sc_prohibit_canonicalize_without_use): Likewise.
14269         (sc_prohibit_root_dev_ino_without_use): Likewise.
14270         (sc_prohibit_openat_without_use): Likewise.
14271         (sc_prohibit_c_ctype_without_use): Likewise.
14272         (sc_prohibit_signal_without_use): Likewise.
14273         (sc_prohibit_intprops_without_use): Likewise.
14274
14275 2010-03-30  Eric Blake  <eblake@redhat.com>
14276
14277         maint: improve module indicators
14278         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14279         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14280         columns, and avoid extra macro expansion.
14281
14282         fdopendir: work around FreeBSD bug
14283         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14285         * modules/dirent (Makefile.am): Substitute it.
14286         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14287         declaration.
14288         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14289         fix.
14290         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14291
14292 2010-03-29  Bruno Haible  <bruno@clisp.org>
14293
14294         Emit #pragma system_header after the inclusion guard, not before.
14295         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14296         guard that spans the entire file, not before. This enables an
14297         optimization in GCC's preprocessor.
14298         * lib/ctype.in.h: Likewise.
14299         * lib/dirent.in.h: Likewise.
14300         * lib/errno.in.h: Likewise.
14301         * lib/float.in.h: Likewise.
14302         * lib/getopt.in.h: Likewise.
14303         * lib/iconv.in.h: Likewise.
14304         * lib/langinfo.in.h: Likewise.
14305         * lib/locale.in.h: Likewise.
14306         * lib/math.in.h: Likewise.
14307         * lib/netdb.in.h: Likewise.
14308         * lib/netinet_in.in.h: Likewise.
14309         * lib/pty.in.h: Likewise.
14310         * lib/sched.in.h: Likewise.
14311         * lib/se-selinux.in.h: Likewise.
14312         * lib/search.in.h: Likewise.
14313         * lib/spawn.in.h: Likewise.
14314         * lib/stdarg.in.h: Likewise.
14315         * lib/stdint.in.h: Likewise.
14316         * lib/string.in.h: Likewise.
14317         * lib/strings.in.h: Likewise.
14318         * lib/sys_file.in.h: Likewise.
14319         * lib/sys_ioctl.in.h: Likewise.
14320         * lib/sys_time.in.h: Likewise.
14321         * lib/sys_times.in.h: Likewise.
14322         * lib/sys_utsname.in.h: Likewise.
14323         * lib/sys_wait.in.h: Likewise.
14324         * lib/sysexits.in.h: Likewise.
14325         * lib/wctype.in.h: Likewise.
14326
14327 2010-03-28  James Youngman  <jay@gnu.org>
14328
14329         save-cwd: don't leak a file descriptor when the caller execs.
14330         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14331         saved file descriptor.
14332         * modules/save-cwd (Depends-on): Depend on cloexec.
14333
14334 2010-03-29  Bruno Haible  <bruno@clisp.org>
14335
14336         Remove vestiges of fts-lgpl module.
14337         * lib/fts_.h: Assume GNULIB_FTS is 1.
14338         * lib/fts.c: Likewise.
14339         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14340
14341 2010-03-28  Bruno Haible  <bruno@clisp.org>
14342
14343         Fix definition of tests witness macro.
14344         * gnulib-tool (func_import): Fix definition of witness macro.
14345
14346 2010-03-28  Bruno Haible  <bruno@clisp.org>
14347
14348         Fix ioctl's protoype on glibc systems.
14349         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14350         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14351         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14352         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14353         signature. If not, arrange to replace the ioctl function.
14354         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14355         REPLACE_IOCTL.
14356         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14357         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14358         Reported by Ludovic Courtès <ludo@gnu.org>.
14359
14360 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14361
14362         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14363         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14364         made it so grep -r --include=GLOB* ... did not work.
14365
14366 2010-03-26  Jim Meyering  <meyering@redhat.com>
14367             Eric Blake  <eblake@redhat.com>
14368
14369         maint.mk: prohibit use of test's -o and -a operators
14370         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14371
14372 2010-03-28  Bruno Haible  <bruno@clisp.org>
14373
14374         Remove unused GNULIB_XYZ macro definitions.
14375         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14376         invocation.
14377
14378 2010-03-28  Bruno Haible  <bruno@clisp.org>
14379
14380         Mark privileged tests modules.
14381         * modules/idpriv-drop-tests (Status): New section.
14382         * modules/idpriv-droptemp-tests (Status): New section.
14383
14384 2010-03-28  Bruno Haible  <bruno@clisp.org>
14385
14386         Split C++ tests into separate tests modules.
14387         * modules/dirent-c++-tests: New file, extracted from
14388         modules/dirent-tests.
14389         * modules/dirent-tests: Depend on it.
14390         * modules/fcntl-h-c++-tests: New file, extracted from
14391         modules/fcntl-h-tests.
14392         * modules/fcntl-h-tests: Depend on it.
14393         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14394         * modules/glob-tests: Depend on it.
14395         * modules/iconv-h-c++-tests: New file, extracted from
14396         modules/iconv-h-tests.
14397         * modules/iconv-h-tests: Depend on it.
14398         * modules/langinfo-c++-tests: New file, extracted from
14399         modules/langinfo-tests.
14400         * modules/langinfo-tests: Depend on it.
14401         * modules/locale-c++-tests: New file, extracted from
14402         modules/locale-tests.
14403         * modules/locale-tests: Depend on it.
14404         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14405         * modules/math-tests: Depend on it.
14406         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14407         * modules/pty-tests: Depend on it.
14408         * modules/search-c++-tests: New file, extracted from
14409         modules/search-tests.
14410         * modules/search-tests: Depend on it.
14411         * modules/signal-c++-tests: New file, extracted from
14412         modules/signal-tests.
14413         * modules/signal-tests: Depend on it.
14414         * modules/spawn-c++-tests: New file, extracted from
14415         modules/spawn-tests.
14416         * modules/spawn-tests: Depend on it.
14417         * modules/stdio-c++-tests: New file, extracted from
14418         modules/stdio-tests.
14419         * modules/stdio-tests: Depend on it.
14420         * modules/stdlib-c++-tests: New file, extracted from
14421         modules/stdlib-tests.
14422         * modules/stdlib-tests: Depend on it.
14423         * modules/string-c++-tests: New file, extracted from
14424         modules/string-tests.
14425         * modules/string-tests: Depend on it.
14426         * modules/sys_ioctl-c++-tests: New file, extracted from
14427         modules/sys_ioctl-tests.
14428         * modules/sys_ioctl-tests: Depend on it.
14429         * modules/sys_select-c++-tests: New file, extracted from
14430         modules/sys_select-tests.
14431         * modules/sys_select-tests: Depend on it.
14432         * modules/sys_socket-c++-tests: New file, extracted from
14433         modules/sys_socket-tests.
14434         * modules/sys_socket-tests: Depend on it.
14435         * modules/sys_stat-c++-tests: New file, extracted from
14436         modules/sys_stat-tests.
14437         * modules/sys_stat-tests: Depend on it.
14438         * modules/sys_time-c++-tests: New file, extracted from
14439         modules/sys_time-tests.
14440         * modules/sys_time-tests: Depend on it.
14441         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14442         * modules/time-tests: Depend on it.
14443         * modules/unistd-c++-tests: New file, extracted from
14444         modules/unistd-tests.
14445         * modules/unistd-tests: Depend on it.
14446         * modules/wchar-c++-tests: New file, extracted from
14447         modules/wchar-tests.
14448         * modules/wchar-tests: Depend on it.
14449         * modules/wctype-c++-tests: New file, extracted from
14450         modules/wctype-tests.
14451         * modules/wctype-tests: Depend on it.
14452         Reported by Simon Josefsson.
14453
14454 2010-03-28  Bruno Haible  <bruno@clisp.org>
14455
14456         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14457         * gnulib-tool (func_exists_module): New function, extracted from
14458         func_verify_module.
14459         (func_verify_module): Use it.
14460         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14461         'foo' only if 'foo' exists.
14462         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14463         module.
14464
14465 2010-03-28  Bruno Haible  <bruno@clisp.org>
14466
14467         gnulib-tool: Add support for special categories of tests.
14468         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14469         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14470         (func_usage): Document them.
14471         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14472         inc_unportable_tests, inc_all_tests): New variables.
14473         (func_acceptable): Consider these variables.
14474         (func_modules_transitive_closure): Make it work when the 'Status' field
14475         consists of multiple words.
14476         (func_import): Store and restore the values of inc_cxx_tests,
14477         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14478         inc_all_tests in gnulib-comp.m4.
14479         (func_create_testdir): Set inc_all_tests to true.
14480         * doc/gnulib.texi (Extra tests modules): New section.
14481         Suggested by Jim Meyering.
14482
14483 2010-03-28  Bruno Haible  <bruno@clisp.org>
14484
14485         ansi-c++-opt: Allow turning off the C++ build by default.
14486         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14487         gl_CXX_CHOICE_DEFAULT_NO is defined.
14488         Requested by Eric Blake.
14489
14490 2010-03-28  Bruno Haible  <bruno@clisp.org>
14491
14492         unistd: Avoid #define replacements in C++ mode.
14493         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14494         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14495         setsockopt, shutdown, select): In C++, attach a warning to the function
14496         if possible, rather than #defining the symbol to a dysfunctional alias.
14497         Reported by John W. Eaton <jwe@gnu.org>.
14498
14499 2010-03-28  Bruno Haible  <bruno@clisp.org>
14500
14501         Fix link errors on mingw.
14502         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14503         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14504         $(LIBSOCKET).
14505         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14506         $(LIBSOCKET).
14507
14508 2010-03-28  Bruno Haible  <bruno@clisp.org>
14509             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14510
14511         lib-ignore: Determine different options for different compilers.
14512         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14513         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14514         Add comments.
14515         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14516         * NEWS: Mention the change.
14517
14518 2010-03-27  Bruno Haible  <bruno@clisp.org>
14519
14520         Remove unused GNULIB_XYZ macro definitions.
14521         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14522         * modules/fseek (configure.ac): Likewise.
14523         * modules/ioctl (configure.ac): Likewise.
14524         * modules/open (configure.ac): Likewise.
14525         * modules/stdlib-safer (configure.ac): Likewise.
14526
14527 2010-03-27  Bruno Haible  <bruno@clisp.org>
14528
14529         Add a remark about certain modules.
14530         * modules/malloc (Comment): New section.
14531         * modules/realloc (Comment): Likewise.
14532         * modules/sigpipe (Comment): Likewise.
14533
14534 2010-03-27  Bruno Haible  <bruno@clisp.org>
14535
14536         Resolve conflict between the two kinds of module indicators.
14537         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14538         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14539         * modules/canonicalize (configure.ac): Invoke
14540         gl_MODULE_INDICATOR_FOR_TESTS.
14541         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14542         GNULIB_XYZ.
14543         * tests/test-dirent-c++.cc: Likewise.
14544         * tests/test-dirent-safer.c: Likewise.
14545         * tests/test-dup2.c: Likewise.
14546         * tests/test-fchdir.c: Likewise.
14547         * tests/test-fcntl-h-c++.cc: Likewise.
14548         * tests/test-getopt.c: Likewise.
14549         * tests/test-getopt.h: Likewise.
14550         * tests/test-langinfo-c++.cc: Likewise.
14551         * tests/test-locale-c++.cc: Likewise.
14552         * tests/test-math-c++.cc: Likewise.
14553         * tests/test-pty-c++.cc: Likewise.
14554         * tests/test-search-c++.cc: Likewise.
14555         * tests/test-signal-c++.cc: Likewise.
14556         * tests/test-spawn-c++.cc: Likewise.
14557         * tests/test-stdio-c++.cc: Likewise.
14558         * tests/test-stdlib-c++.cc: Likewise.
14559         * tests/test-string-c++.cc: Likewise.
14560         * tests/test-sys_ioctl-c++.cc: Likewise.
14561         * tests/test-sys_select-c++.cc: Likewise.
14562         * tests/test-sys_socket-c++.cc: Likewise.
14563         * tests/test-sys_stat-c++.cc: Likewise.
14564         * tests/test-sys_time-c++.cc: Likewise.
14565         * tests/test-time-c++.cc: Likewise.
14566         * tests/test-unistd-c++.cc: Likewise.
14567         * tests/test-wchar-c++.cc: Likewise.
14568         * tests/uninorm/test-u8-nfc.c: Likewise.
14569         * tests/uninorm/test-u8-nfd.c: Likewise.
14570         * tests/uninorm/test-u8-nfkc.c: Likewise.
14571         * tests/uninorm/test-u8-nfkd.c: Likewise.
14572         * tests/uninorm/test-u16-nfc.c: Likewise.
14573         * tests/uninorm/test-u16-nfd.c: Likewise.
14574         * tests/uninorm/test-u16-nfkc.c: Likewise.
14575         * tests/uninorm/test-u16-nfkd.c: Likewise.
14576         * tests/uninorm/test-u32-nfc.c: Likewise.
14577         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14578         * tests/uninorm/test-u32-nfd.c: Likewise.
14579         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14580         * tests/uninorm/test-u32-nfkc.c: Likewise.
14581         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14582         * tests/uninorm/test-u32-nfkd.c: Likewise.
14583         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14584         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14585
14586 2010-03-27  Bruno Haible  <bruno@clisp.org>
14587
14588         Distinguish two kinds of module indicators.
14589         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14590         gl_MODULE_INDICATOR.
14591         (gl_MODULE_INDICATOR): New macro.
14592         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14593         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14594         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14595         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14596         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14597         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14598         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14599         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14600         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14601         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14602         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14603         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14605         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14606         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14608         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14609         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14610         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14611         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14612         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14613         * modules/cloexec (configure.ac): Likewise.
14614         * modules/getopt-gnu (configure.ac): Likewise.
14615         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14616         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14617         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14618         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14619
14620 2010-03-27  Bruno Haible  <bruno@clisp.org>
14621
14622         New module description field 'Comment'.
14623         * gnulib-tool: New option --extract-comment.
14624         (func_usage): Document it.
14625         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14626         (func_get_comment): New function.
14627         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14628
14629 2010-03-27  Bruno Haible  <bruno@clisp.org>
14630
14631         Addendum to 2010-02-07 commit.
14632         * gnulib-tool (func_usage): Document --extract-applicability option.
14633
14634 2010-03-27  Bruno Haible  <bruno@clisp.org>
14635
14636         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14637         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14638         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14639         rather than link errors.
14640
14641 2010-03-27  Bruno Haible  <bruno@clisp.org>
14642
14643         Avoid side effects from tests-related modules on the compilation of lib.
14644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14645         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14646         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14647         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14648         macro.
14649         (func_import): Define a witness macro. Assign it a value that depends
14650         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14651         tests-related modules.
14652         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14653         Reported by Jim Meyering.
14654
14655 2010-03-27  Bruno Haible  <bruno@clisp.org>
14656
14657         Factorize common .m4 code.
14658         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14659         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14660         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14661         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14662         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14663         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14664         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14665         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14666         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14667         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14668         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14669         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14670         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14671         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14672         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14673         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14674         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14675         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14677         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14678         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14679         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14680         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14681         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14682         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14683         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14684         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14685         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14686         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14687         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14688         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14689         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14690
14691 2010-03-27  Bruno Haible  <bruno@clisp.org>
14692
14693         Fix a compilation error on Cygwin with g++ >= 4.3.
14694         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14695         if it is undefined or if we alias it to chmod.
14696         (lstat): Don't warn about the use of this function if it is undefined
14697         or if we alias it to stat.
14698         Reported by Simon Josefsson.
14699
14700 2010-03-27  Bruno Haible  <bruno@clisp.org>
14701
14702         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14703         * modules/getlogin (configure.ac): Update.
14704
14705         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14706         * modules/getlogin_r (configure.ac): Update.
14707
14708         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14710         * modules/inet_ntop (configure.ac): Update.
14711
14712         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14713         * modules/inet_pton (configure.ac): Update.
14714
14715         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14716         * modules/mbslen (configure.ac): Update.
14717
14718         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14719         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14720         * modules/forkpty (configure.ac): Update.
14721         * modules/openpty (configure.ac): Update.
14722
14723 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14724
14725         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14726         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14727
14728 2010-03-25  Eric Blake  <eblake@redhat.com>
14729
14730         maint: use pragma consistently across replacement headers
14731         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14732         * lib/dirent.in.h (system_header): Likewise.
14733         * lib/errno.in.h (system_header): Likewise.
14734         * lib/float.in.h (system_header): Likewise.
14735         * lib/getopt.in.h (system_header): Likewise.
14736         * lib/iconv.in.h (system_header): Likewise.
14737         * lib/inttypes.in.h (system_header): Likewise.
14738         * lib/langinfo.in.h (system_header): Likewise.
14739         * lib/locale.in.h (system_header): Likewise.
14740         * lib/math.in.h (system_header): Likewise.
14741         * lib/netdb.in.h (system_header): Likewise.
14742         * lib/netinet_in.in.h (system_header): Likewise.
14743         * lib/pty.in.h (system_header): Likewise.
14744         * lib/sched.in.h (system_header): Likewise.
14745         * lib/se-selinux.in.h (system_header): Likewise.
14746         * lib/search.in.h (system_header): Likewise.
14747         * lib/spawn.in.h (system_header): Likewise.
14748         * lib/stdarg.in.h (system_header): Likewise.
14749         * lib/stdint.in.h (system_header): Likewise.
14750         * lib/string.in.h (system_header): Likewise.
14751         * lib/strings.in.h (system_header): Likewise.
14752         * lib/sys_file.in.h (system_header): Likewise.
14753         * lib/sys_ioctl.in.h (system_header): Likewise.
14754         * lib/sys_socket.in.h (system_header): Likewise.
14755         * lib/sys_times.in.h (system_header): Likewise.
14756         * lib/sys_utsname.in.h (system_header): Likewise.
14757         * lib/sys_wait.in.h (system_header): Likewise.
14758         * lib/sysexits.in.h (system_header): Likewise.
14759         * lib/unistd.in.h (system_header): Likewise.
14760         * lib/wctype.in.h (system_header): Likewise.
14761
14762         arpa/inet: fix mingw compilation warning
14763         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14764         Reported by Matthew Bolte.
14765
14766 2010-03-25  Bruno Haible  <bruno@clisp.org>
14767
14768         Avoid collision between gnulib wrapper and libintl wrapper.
14769         * lib/printf.c (printf): Don't define if a printf wrapper is already
14770         defined in intl/printf.c.
14771         Reported by Michel Boaventura <michel@michelboaventura.com>.
14772
14773 2010-03-25  Bruno Haible  <bruno@clisp.org>
14774
14775         Use ANSI C.
14776         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14777
14778 2010-03-25  Bruno Haible  <bruno@clisp.org>
14779
14780         Minor formatting changes.
14781         * lib/acosl.c: Insert space before function argument list.
14782         * lib/argz.c: Likewise.
14783         * lib/asinl.c: Likewise.
14784         * lib/expl.c: Likewise.
14785         * lib/gen-uni-tables.c: Likewise.
14786         * lib/gettext.h: Likewise.
14787         * lib/glthread/lock.h: Likewise.
14788         * lib/tanl.c: Likewise.
14789         * lib/uniname/uniname.c: Likewise.
14790         * tests/test-idpriv-drop.c: Likewise.
14791         * tests/test-idpriv-droptemp.c: Likewise.
14792         * tests/test-lock.c: Likewise.
14793         * tests/test-tls.c: Likewise.
14794         * lib/argp-help.c: Insert space before function-like macro argument
14795         list.
14796         * lib/memcmp.c: Likewise.
14797         * tests/test-base64.c: Likewise.
14798         * lib/localename.c: Insert space before sizeof's argument list.
14799         * lib/safe-alloc.h: Likewise.
14800         * lib/file-set.h: Insert space before macro argument list.
14801         * tests/test-argp.c: Likewise.
14802         * lib/argp-namefrob.h: Insert space before function parameter list.
14803         * lib/getaddrinfo.c: Likewise.
14804         * lib/netdb.in.h: Likewise.
14805         * lib/parse-duration.h: Likewise.
14806         * lib/parse-duration.c: Likewise.
14807         * lib/poll.c: Likewise.
14808         * lib/select.c: Likewise.
14809         * lib/trim.h: Likewise.
14810         * tests/test-usleep.c: Likewise.
14811         * lib/ldexpl.c: Insert space before function parameter list and before
14812         function argument list.
14813         * lib/logl.c: Likewise.
14814         * lib/sqrtl.c: Likewise.
14815         * lib/trim.c: Likewise.
14816         * lib/cosl.c: Use GNU style indentation. Insert space before function
14817         argument list.
14818         * lib/sinl.c: Likewise.
14819         * lib/tsearch.c: Insert space after 'for'.
14820         Reported by Jim Meyering.
14821
14822 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14823
14824         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14825         config header before grepping, as it's not present before
14826         autoreconf/configure are run.  Reported by Simon Josefsson.
14827
14828 2010-03-23  Bruno Haible  <bruno@clisp.org>
14829
14830         pt_chown: Make it work with automake < 1.11.
14831         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14832         Reported by Simon Josefsson.
14833
14834 2010-03-23  Bruno Haible  <bruno@clisp.org>
14835
14836         pt_chown: Don't depend on GPLed modules.
14837         * lib/pt_chown.c: Don't include idpriv.h.
14838         (main): Don't drop privileges.
14839         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14840         Reported by Simon Josefsson.
14841
14842 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14843
14844         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14845         suggestions from karl@freefriends.org (Karl Berry).
14846
14847 2010-03-22  Eric Blake  <eblake@redhat.com>
14848
14849         gethostname: further tweaks
14850         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14851         are overriding gethostname.
14852         Suggested by Bruno Haible.
14853
14854 2010-03-21  Bruno Haible  <bruno@clisp.org>
14855
14856         Fix comments.
14857         * lib/forkpty.c (rpl_forkpty): Fix comment.
14858         * lib/openpty.c (rpl_openpty): Likewise.
14859         Reported by Eric Blake.
14860
14861 2010-03-22  Eric Blake  <eblake@redhat.com>
14862
14863         gethostname: fix build on mingw
14864         * lib/unistd.in.h (includes): Work around fact that mingw
14865         <winsock2.h> re-includes <unistd.h>, by avoiding any
14866         redeclarations if we are being included by <winsock2.h>.
14867         Reported by Matthias Bolte.
14868
14869 2010-03-21  Bruno Haible  <bruno@clisp.org>
14870
14871         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14872         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14873         modifications.
14874         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14875         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14876         provide the replacement.
14877         * modules/forkpty (Depends-on): Add openpty, login_tty.
14878         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14879         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14880         * doc/glibc-functions/forkpty.texi: More supported platforms.
14881         * config/srclist.txt: Add forkpty.c (commented).
14882
14883 2010-03-21  Bruno Haible  <bruno@clisp.org>
14884
14885         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14886         (Makefile.am): Verify that PTY_LIB is defined.
14887
14888         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14889
14890 2010-03-21  Bruno Haible  <bruno@clisp.org>
14891
14892         Tests for module 'login_tty'.
14893         * modules/login_tty-tests: New file.
14894         * tests/test-login_tty.c: New file.
14895
14896         New module 'login_tty'.
14897         * lib/login_tty.c: New file.
14898         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14899         * modules/login_tty: New file.
14900         * doc/glibc-functions/login_tty.texi: Mention the new module.
14901
14902 2010-03-21  Bruno Haible  <bruno@clisp.org>
14903
14904         login_tty: Documentation.
14905         * doc/glibc-functions/login_tty.texi: New file.
14906         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14907
14908 2010-03-21  Bruno Haible  <bruno@clisp.org>
14909
14910         pty: Consistent macro naming.
14911         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14912         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14913         * modules/pty (configure.ac): Update.
14914
14915 2010-03-21  Bruno Haible  <bruno@clisp.org>
14916
14917         Tests for openpty: Make stricter.
14918         * tests/test-openpty.c (main): Add test of canonical processing and
14919         erase.
14920         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14921
14922         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14923         * lib/openpty.c (openpty): New replacement function.
14924         * lib/pty.in.h: Include <termios.h>.
14925         (openpty): Update declaration. Add comments.
14926         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14927         is not declared, arrange to provide the replacement. Check for _getpty
14928         and posix_openpt.
14929         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14930         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14931         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14932         * modules/pty-tests (test_pty_c___LDADD): New variable.
14933         * doc/glibc-functions/openpty.texi: More supported platforms.
14934
14935 2010-03-21  Bruno Haible  <bruno@clisp.org>
14936
14937         setenv: Tweaks.
14938         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14939         the test program.
14940         * doc/posix-functions/setenv.texi: Update platforms list.
14941
14942 2010-03-21  Bruno Haible  <bruno@clisp.org>
14943
14944         New module 'unlockpt'.
14945         * lib/unlockpt.c: New file, from glibc with modifications.
14946         * m4/unlockpt.m4: New file.
14947         * modules/unlockpt: New file.
14948         * lib/stdlib.in.h (unlockpt): New declaration.
14949         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14950         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14951         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14952         HAVE_UNLOCKPT.
14953         * doc/posix-functions/unlockpt.texi: Mention the new module.
14954         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14955         * config/srclist.txt: Add unlockpt.c (commented).
14956
14957 2010-03-21  Jim Meyering  <meyering@redhat.com>
14958
14959         maint.mk: prohibit inclusion of "intprops.h" without use
14960         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14961
14962 2010-03-21  Bruno Haible  <bruno@clisp.org>
14963
14964         New module 'grantpt'.
14965         * lib/grantpt.c: New file, from glibc with modifications.
14966         * m4/grantpt.m4: New file.
14967         * modules/grantpt: New file.
14968         * lib/stdlib.in.h (grantpt): New declaration.
14969         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14970         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14971         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14972         HAVE_GRANTPT.
14973         * doc/posix-functions/grantpt.texi: Mention the new module.
14974         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14975         * config/srclist.txt: Add grantpt.c (commented).
14976
14977 2010-03-21  Bruno Haible  <bruno@clisp.org>
14978
14979         New module 'pt_chown'.
14980         * lib/pt_chown.c: New file, from glibc with modifications.
14981         * lib/pty-private.h: New file, from glibc with modifications.
14982         * modules/pt_chown: New file.
14983         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14984
14985 2010-03-21  Bruno Haible  <bruno@clisp.org>
14986
14987         Tests for module 'ptsname'.
14988         * modules/ptsname-tests: New file.
14989         * tests/test-ptsname.c: New file.
14990
14991         New module 'ptsname'.
14992         * lib/ptsname.c: New file, from glibc with modifications.
14993         * m4/ptsname.m4: New file.
14994         * modules/ptsname: New file.
14995         * lib/stdlib.in.h (ptsname): New declaration.
14996         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14997         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14998         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14999         HAVE_PTSNAME.
15000         * doc/posix-functions/ptsname.texi: Mention the new module.
15001         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15002         * config/srclist.txt: Add ptsname.c (commented).
15003
15004 2010-03-21  Bruno Haible  <bruno@clisp.org>
15005
15006         Tests for module 'ttyname_r'.
15007         * modules/ttyname_r-tests: New file.
15008         * tests/test-ttyname_r.c: New file.
15009
15010         New module 'ttyname_r'.
15011         * lib/ttyname_r.c: New file.
15012         * m4/ttyname_r.m4: New file.
15013         * modules/ttyname_r: New file.
15014         * lib/unistd.in.h (ttyname_r): New declaration.
15015         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15016         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15017         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15018         HAVE_TTYNAME_R.
15019         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15020         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15021
15022 2010-03-20  Bruno Haible  <bruno@clisp.org>
15023
15024         signal: Undefine macro definitions in C++ mode.
15025         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15026         sigfillset): Undefine macro definitions from the system header in C++
15027         mode.
15028         Reported by John W. Eaton <jwe@gnu.org>.
15029
15030 2010-03-20  Bruno Haible  <bruno@clisp.org>
15031
15032         Ensure no #include statements inside extern "C" { ... }.
15033         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15034         contain #include statements.
15035         * lib/time.in.h: Likewise.
15036
15037 2010-03-20  Bruno Haible  <bruno@clisp.org>
15038
15039         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15040         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15041         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15042         Reported by John W. Eaton <jwe@gnu.org>.
15043
15044 2010-03-20  Bruno Haible  <bruno@clisp.org>
15045
15046         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15047         Reported by Jim Meyering.
15048
15049 2010-03-20  Bruno Haible  <bruno@clisp.org>
15050
15051         pipe: Set errno upon failure.
15052         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15053         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15054         errno value in error message.
15055
15056 2010-03-20  Bruno Haible  <bruno@clisp.org>
15057             Jim Meyering  <meyering@redhat.com>
15058
15059         lchown: Avoid "unused variable" warning.
15060         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15061
15062 2010-03-20  Bruno Haible  <bruno@clisp.org>
15063
15064         Work around unlink() bug on MacOS X 10.5.6.
15065         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15066         attempting to unlink a parent directory.
15067         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15068         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15069         activate for the replacement function.
15070         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15071
15072 2010-03-20  Bruno Haible  <bruno@clisp.org>
15073
15074         Fix link errors on Solaris 8.
15075         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15076         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15077
15078 2010-03-19  Jim Meyering  <meyering@redhat.com>
15079
15080         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15081         The _LIBC implementation of build_range_exp correctly honors the
15082         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15083         However, the non-_LIBC implementation would ignore that syntax-bit
15084         flag and return REG_ERANGE unconditionally.
15085         This change makes it honor that flag.
15086         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15087         Make two pointer parameters "const".
15088         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15089         (parse_bracket_exp): Update caller.
15090
15091         regex.m4: correct the reversed range endpoint ([b-a]) test
15092         * m4/regex.m4: When requiring that [b-a] evoke failure,
15093         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15094         test pass once again for x86-based systems.
15095
15096 2010-03-19  Bruno Haible  <bruno@clisp.org>
15097
15098         scandir: Fix link error on Solaris 8.
15099         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15100         macros.
15101
15102 2010-03-19  Bruno Haible  <bruno@clisp.org>
15103
15104         getusershell: Fix documentation.
15105         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15106         module.
15107         * doc/glibc-functions/setusershell.texi: Likewise.
15108
15109         getusershell: Provide declaration, missing on Solaris 9.
15110         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15111         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15112         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15113         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15115         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15116         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15117         HAVE_GETUSERSHELL.
15118         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15119
15120 2010-03-19  Bruno Haible  <bruno@clisp.org>
15121
15122         wctype: Provide iswblank function.
15123         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15124         exists and is fine.
15125         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15126         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15127         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15128         * doc/posix-functions/iswblank.texi: Update.
15129
15130 2010-03-19  Bruno Haible  <bruno@clisp.org>
15131
15132         Tests of module 'pty' in C++ mode.
15133         * modules/pty-tests: New file.
15134         * tests/test-pty-c++.cc: New file.
15135         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15136
15137 2010-03-19  Eric Blake  <eblake@redhat.com>
15138
15139         logb: fix documentation
15140         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15141         1.5 declaration bug.
15142
15143         forkpty, openpty: prefer glibc's const-safe prototype
15144         * lib/forkpty.c (rpl_forkpty): New file.
15145         * lib/openpty.c (rpl_openpty): Likewise.
15146         * modules/forkpty (Files): Distribute it.
15147         * modules/openpty (Files): Likewise.
15148         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15149         check...
15150         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15151         replacement for for non-const BSD signature.
15152         * modules/pty (Makefile.am): Substitute witnesses.
15153         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15154         * tests/test-forkpty.c: Update signature check.
15155         * tests/test-openpty.c: Likewise.
15156         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15157         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15158
15159         forkpty, openpty: split functions into new modules
15160         * modules/pty (Makefile.am): Substitute new witnesses.
15161         (Libraries): Move library detection...
15162         * modules/forkpty: ...into new module.
15163         * modules/openpty: Another new module.
15164         * modules/pty-tests: Rename and split...
15165         * modules/forkpty-tests: ...to this...
15166         * modules/openpty-tests: ...and this.
15167         * tests/test-pty.c: Rename and split...
15168         * tests/test-forkpty.c: ...to this...
15169         * tests/test-openpty.c: ...and this.
15170         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15171         (gl_PTY): Split library searching...
15172         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15173         (gl_FORKPTY, gl_OPENPTY): New macros.
15174         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15175         * NEWS: Mention the split.
15176         * MODULES.html.sh (Misc): Document the modules.
15177         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15178         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15179
15180         pty: improve replacement header
15181         * lib/pty.in.h: New file.
15182         * modules/pty (Files): Ship it.
15183         (Makefile.am): Always build replacement.
15184         * m4/pty.m4: Rename...
15185         * m4/pty_h.m4: ...to this.
15186         (gl_PTY): Modernize setting of witness macros; update check of
15187         forkpty to take proper advantage of cache.
15188         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15189
15190         getopt: avoid compiler warning
15191         * lib/getopt.c (attribute_hidden): Remove unused macro.
15192
15193 2010-03-18  Bruno Haible  <bruno@clisp.org>
15194
15195         Fix link errors on Solaris 8.
15196         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15197         * modules/search-tests (test_search_c___LDADD): Likewise.
15198         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15199         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15200         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15201         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15202         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15203         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15204         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15205
15206 2010-03-18  Bruno Haible  <bruno@clisp.org>
15207
15208         Fix bug introduced on 2010-03-14.
15209         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15210         (gl_SPAWN_H): Require it.
15211         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15212         Reported by Simon Josefsson.
15213
15214 2010-03-18  Bruno Haible  <bruno@clisp.org>
15215
15216         Fix typo introduced on 2009-12-31.
15217         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15218         posix_spawn_file_actions_adddup2.
15219
15220 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15221         and Eric Blake  <eblake@redhat.com>
15222
15223         test-vc-list-files-git: make more robust
15224         * tests/test-vc-list-files-git.sh: Unset problematic environment
15225         variables.  Chain commands together.
15226
15227 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15228
15229         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15230         `AC_CHECK_DECL' invocation.
15231
15232 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15233
15234         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15235         appears before executable statements. Suggested by Petr Sumbera
15236         <Petr.Sumbera@Sun.COM>.
15237
15238 2010-03-14  Bruno Haible  <bruno@clisp.org>
15239
15240         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15241         portability problems. Instead use a simpler test.
15242         (main): Check that invalid arguments are rejected only on Linux.
15243
15244 2010-03-14  Bruno Haible  <bruno@clisp.org>
15245
15246         Fix bug introduced on 2009-12-31.
15247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15248         gl_PREREQ_SYS_H_WINSOCK2 always.
15249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15250         SYS_SOCKET_H variable.
15251         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15252         Update comments.
15253         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15254         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15255         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15256         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15257         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15258
15259 2010-03-14  Bruno Haible  <bruno@clisp.org>
15260
15261         Fix values returned by sinl, cosl.
15262         * lib/trigl.h: Add specification comments.
15263         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15264         that combines the values from the precomputed table with the values of
15265         the Chebyshev polynomials.
15266
15267 2010-03-14  Bruno Haible  <bruno@clisp.org>
15268
15269         Fix compilation error when modules 'posix_spawn[p]' are not used.
15270         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15272
15273 2010-03-14  Bruno Haible  <bruno@clisp.org>
15274
15275         Fix compilation error on mingw when module 'time_r' is not used.
15276         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15277         is 1.
15278         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15279         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15280         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15281         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15282
15283 2010-03-14  Bruno Haible  <bruno@clisp.org>
15284
15285         Fix compilation error with Sun C.
15286         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15287         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15288         instead of GCC specific ULONG_LONG_MAX.
15289         * lib/xstrtoll.c: Likewise.
15290         * lib/xstrtoull.c: Likewise.
15291
15292 2010-03-13  Bruno Haible  <bruno@clisp.org>
15293
15294         Allow the user to disable C++ code and tests.
15295         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15296         (gl_PROG_ANSI_CXX): Require it.
15297
15298 2010-03-13  Bruno Haible  <bruno@clisp.org>
15299
15300         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15301         cases.
15302
15303 2010-03-13  Bruno Haible  <bruno@clisp.org>
15304
15305         Test that gnulib does not break the standard C++ headers.
15306         * tests/test-locale-c++2.cc: New file.
15307         * modules/locale-tests (Files): Add it.
15308         (Makefile.am): Compile it for test-locale-c++.
15309         * tests/test-math-c++2.cc: New file.
15310         * modules/math-tests (Files): Add it.
15311         (Makefile.am): Compile it for test-math-c++.
15312         * tests/test-signal-c++2.cc: New file.
15313         * modules/signal-tests (Files): Add it.
15314         (Makefile.am): Compile it for test-signal-c++.
15315         * tests/test-stdio-c++2.cc: New file.
15316         * modules/stdio-tests (Files): Add it.
15317         (Makefile.am): Compile it for test-stdio-c++.
15318         * tests/test-stdlib-c++2.cc: New file.
15319         * modules/stdlib-tests (Files): Add it.
15320         (Makefile.am): Compile it for test-stdlib-c++.
15321         * tests/test-string-c++2.cc: New file.
15322         * modules/string-tests (Files): Add it.
15323         (Makefile.am): Compile it for test-string-c++.
15324         * tests/test-time-c++2.cc: New file.
15325         * modules/time-tests (Files): Add it.
15326         (Makefile.am): Compile it for test-time-c++.
15327         Reported by John W. Eaton <jwe@gnu.org>.
15328
15329 2010-03-13  Bruno Haible  <bruno@clisp.org>
15330
15331         * gnulib-tool (func_usage): Clarify which options are available for
15332         --create-testdir and --create-megatestdir.
15333
15334 2010-03-13  Bruno Haible  <bruno@clisp.org>
15335
15336         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15337         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15338         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15339         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15340         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15341         when appropriate.
15342         Reported by Jim Meyering.
15343
15344 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15345
15346         * gnulib-tool (func_import): Explain origin of code.
15347
15348 2010-03-12  Bruno Haible  <bruno@clisp.org>
15349
15350         Fix problem with automake's definition of CXXLINK.
15351         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15352         Reported by Simon Josefsson and Ludovic Courtès.
15353
15354 2010-03-12  Bruno Haible  <bruno@clisp.org>
15355
15356         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15357         stable releases.
15358
15359 2010-03-11  Bruno Haible  <bruno@clisp.org>
15360
15361         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15362         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15363         whether the system provides one variant or multiple variants of the
15364         function.
15365         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15366         C++ compilers.
15367         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15368         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15369         Reported by Jim Meyering.
15370
15371 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15372
15373         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15374
15375 2010-03-08  Bruno Haible  <bruno@clisp.org>
15376
15377         gnulib-tool: Add support for --libtool in --create-testdir.
15378         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15379         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15380
15381 2010-03-08  Eric Blake  <eblake@redhat.com>
15382
15383         gnulib-tool.texi: mention possibility of git submodule
15384         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15385         submodules.
15386         * doc/.gitignore: Ignore another generated file.
15387
15388 2010-03-08  Karl Berry  <karl@gnu.org>
15389
15390         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15391         of committing gnulib files while skipping others.
15392
15393 2010-03-07  Bruno Haible  <bruno@clisp.org>
15394
15395         Tests of module 'wctype' in C++ mode.
15396         * tests/test-wctype-c++.cc: New file.
15397         * modules/wctype-tests (Files): Add it and tests/signature.h.
15398         (Depends-on): Add ansi-c++-opt.
15399         (Makefile.am): Arrange to compile and run test-wctype-c++.
15400
15401         Tests of module 'wchar' in C++ mode.
15402         * tests/test-wchar-c++.cc: New file.
15403         * modules/wchar-tests (Files): Add it and tests/signature.h.
15404         (Depends-on): Add ansi-c++-opt.
15405         (Makefile.am): Arrange to compile and run test-wchar-c++.
15406         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15407         gl_MODULE_INDICATOR.
15408
15409         Tests of module 'unistd' in C++ mode.
15410         * tests/test-unistd-c++.cc: New file.
15411         * modules/unistd-tests (Files): Add it and tests/signature.h.
15412         (Depends-on): Add ansi-c++-opt.
15413         (Makefile.am): Arrange to compile and run test-unistd-c++.
15414         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15415         gl_MODULE_INDICATOR.
15416
15417         Tests of module 'time' in C++ mode.
15418         * tests/test-time-c++.cc: New file.
15419         * modules/time-tests (Files): Add it and tests/signature.h.
15420         (Depends-on): Add ansi-c++-opt.
15421         (Makefile.am): Arrange to compile and run test-time-c++.
15422         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15423
15424         Tests of module 'sys_time' in C++ mode.
15425         * tests/test-sys_time-c++.cc: New file.
15426         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15427         (Depends-on): Add ansi-c++-opt.
15428         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15429         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15430         gl_MODULE_INDICATOR.
15431
15432         Tests of module 'sys_stat' in C++ mode.
15433         * tests/test-sys_stat-c++.cc: New file.
15434         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15435         (Depends-on): Add ansi-c++-opt.
15436         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15437         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15438         gl_MODULE_INDICATOR.
15439
15440         Tests of module 'sys_socket' in C++ mode.
15441         * tests/test-sys_socket-c++.cc: New file.
15442         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15443         (Depends-on): Add ansi-c++-opt.
15444         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15445         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15446         gl_MODULE_INDICATOR.
15447
15448         Tests of module 'sys_select' in C++ mode.
15449         * tests/test-sys_select-c++.cc: New file.
15450         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15451         (Depends-on): Add ansi-c++-opt.
15452         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15453         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15454         gl_MODULE_INDICATOR.
15455
15456         Tests of module 'sys_ioctl' in C++ mode.
15457         * tests/test-sys_ioctl-c++.cc: New file.
15458         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15459         (Depends-on): Add ansi-c++-opt.
15460         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15462         gl_MODULE_INDICATOR.
15463
15464         Tests of module 'string' in C++ mode.
15465         * tests/test-string-c++.cc: New file.
15466         * modules/string-tests (Files): Add it and tests/signature.h.
15467         (Depends-on): Add ansi-c++-opt.
15468         (Makefile.am): Arrange to compile and run test-string-c++.
15469         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15470         gl_MODULE_INDICATOR.
15471
15472         Tests of module 'stdlib' in C++ mode.
15473         * tests/test-stdlib-c++.cc: New file.
15474         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15475         (Depends-on): Add ansi-c++-opt.
15476         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15477         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15478         gl_MODULE_INDICATOR.
15479
15480         Tests of module 'stdio' in C++ mode.
15481         * tests/test-stdio-c++.cc: New file.
15482         * modules/stdio-tests (Files): Add it and tests/signature.h.
15483         (Depends-on): Add ansi-c++-opt.
15484         (Makefile.am): Arrange to compile and run test-stdio-c++.
15485         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15486         gl_MODULE_INDICATOR.
15487
15488         Tests of module 'spawn' in C++ mode.
15489         * tests/test-spawn-c++.cc: New file.
15490         * modules/spawn-tests (Files): Add it and tests/signature.h.
15491         (Depends-on): Add ansi-c++-opt.
15492         (Makefile.am): Arrange to compile and run test-spawn-c++.
15493         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15494         gl_MODULE_INDICATOR.
15495
15496         Tests of module 'signal' in C++ mode.
15497         * tests/test-signal-c++.cc: New file.
15498         * modules/signal-tests (Files): Add it and tests/signature.h.
15499         (Depends-on): Add ansi-c++-opt.
15500         (Makefile.am): Arrange to compile and run test-signal-c++.
15501         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15502         gl_MODULE_INDICATOR.
15503
15504         Tests of module 'search' in C++ mode.
15505         * tests/test-search-c++.cc: New file.
15506         * modules/search-tests (Files): Add it and tests/signature.h.
15507         (Depends-on): Add ansi-c++-opt.
15508         (Makefile.am): Arrange to compile and run test-search-c++.
15509         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15510         gl_MODULE_INDICATOR.
15511
15512         Tests of module 'math' in C++ mode.
15513         * tests/test-math-c++.cc: New file.
15514         * modules/math-tests (Files): Add it and tests/signature.h.
15515         (Depends-on): Add ansi-c++-opt.
15516         (Makefile.am): Arrange to compile and run test-math-c++.
15517         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15518
15519         Tests of module 'locale' in C++ mode.
15520         * tests/test-locale-c++.cc: New file.
15521         * modules/locale-tests (Files): Add it and tests/signature.h.
15522         (Depends-on): Add ansi-c++-opt.
15523         (Makefile.am): Arrange to compile and run test-locale-c++.
15524         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15525         gl_MODULE_INDICATOR.
15526
15527         Tests of module 'langinfo' in C++ mode.
15528         * tests/test-langinfo-c++.cc: New file.
15529         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15530         (Depends-on): Add ansi-c++-opt.
15531         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15532         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15533         gl_MODULE_INDICATOR.
15534
15535         Tests of module 'iconv-h' in C++ mode.
15536         * tests/test-iconv-h-c++.cc: New file.
15537         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15538         (Depends-on): Add ansi-c++-opt.
15539         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15540
15541         Tests of module 'glob' in C++ mode.
15542         * tests/test-glob-c++.cc: New file.
15543         * modules/glob-tests (Files): Add it.
15544         (Depends-on): Add ansi-c++-opt.
15545         (Makefile.am): Arrange to compile and run test-glob-c++.
15546
15547         Tests of module 'fcntl-h' in C++ mode.
15548         * tests/test-fcntl-h-c++.cc: New file.
15549         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15550         (Depends-on): Add ansi-c++-opt.
15551         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15552         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15553         gl_MODULE_INDICATOR.
15554
15555         Tests of module 'dirent' in C++ mode.
15556         * tests/test-dirent-c++.cc: New file.
15557         * modules/dirent-tests (Files): Add it and tests/signature.h.
15558         (Depends-on): Add ansi-c++-opt.
15559         (Makefile.am): Arrange to compile and run test-dirent-c++.
15560         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15561         gl_MODULE_INDICATOR.
15562
15563         New module 'ansi-c++-opt'.
15564         * modules/ansi-c++-opt: New file.
15565         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15566
15567         Document C++ namespace mode.
15568         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15569
15570         wctype: Avoid #define replacements in C++ mode.
15571         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15572         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15573         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15574         In C++, define a namespaced alias symbol.
15575         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15576         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15577         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15578         rule.
15579
15580         wchar: Avoid #define replacements in C++ mode.
15581         * lib/wchar.in.h: Include c++defs.h.
15582         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15583         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15584         symbol.
15585         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15586         * modules/wchar (Depends-on): Add c++defs.
15587         (Makefile.am): Update wchar.h rule.
15588
15589         unistd: Avoid #define replacements in C++ mode.
15590         * lib/unistd.in.h: Include c++defs.h.
15591         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15592         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15593         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15594         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15595         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15596         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15597         symbol.
15598         (environ): Update.
15599         * modules/unistd (Depends-on): Add c++defs.
15600         (Makefile.am): Update unistd.h rule.
15601
15602         time: Avoid #define replacements in C++ mode.
15603         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15604         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15605         define a namespaced alias symbol.
15606         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15607         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15608         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15609         * modules/time (Depends-on): Add c++defs, warn-on-use.
15610         (Makefile.am): Update time.h rule.
15611         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15612         * modules/nanosleep (configure.ac): Likewise.
15613         * modules/strptime (configure.ac): Likewise.
15614         * modules/timegm (configure.ac): Likewise.
15615
15616         sys_time: Avoid #define replacements in C++ mode.
15617         * lib/sys_time.in.h: Include c++defs.h.
15618         (gettimeofday): In C++, define a namespaced alias symbol.
15619         * modules/sys_time (Depends-on): Add c++defs.
15620         (Makefile.am): Update sys/time.h rule.
15621
15622         sys_stat: Avoid #define replacements in C++ mode.
15623         * lib/sys_stat.in.h: Include c++defs.h.
15624         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15625         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15626         namespaced alias symbol.
15627         In C++, define a namespaced alias symbol.
15628         * modules/sys_stat (Depends-on): Add c++defs.
15629         (Makefile.am): Update sys/stat.h rule.
15630
15631         sys_socket: Avoid #define replacements in C++ mode.
15632         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15633         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15634         definitions also when the system has a <sys/socket.h>.
15635         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15636         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15637         In C++, define a namespaced alias symbol.
15638         * modules/sys_socket (Depends-on): Add c++defs.
15639         (Makefile.am): Update sys/socket.h rule.
15640
15641         sys_select: Avoid #define replacements in C++ mode.
15642         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15643         definitions also when the system has a <sys/select.h>.
15644         (select): In C++, define a namespaced alias symbol.
15645         * modules/sys_select (Depends-on): Add c++defs.
15646         (Makefile.am): Update sys/select.h rule.
15647
15648         sys_ioctl: Avoid #define replacements in C++ mode.
15649         * lib/sys_ioctl.in.h: Include c++defs.h.
15650         (ioctl): In C++, define a namespaced alias symbol.
15651         * modules/sys_ioctl (Depends-on): Add c++defs.
15652         (Makefile.am): Update sys/ioctl.h rule.
15653
15654         string: Avoid #define replacements in C++ mode.
15655         * lib/string.in.h: Include c++defs.h.
15656         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15657         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15658         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15659         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15660         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15661         * modules/string (Depends-on): Add c++defs.
15662         (Makefile.am): Update string.h rule.
15663
15664         stdlib: Avoid #define replacements in C++ mode.
15665         * lib/stdlib.in.h: Include c++defs.h.
15666         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15667         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15668         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15669         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15670         symbol.
15671         * modules/stdlib (Depends-on): Add c++defs.
15672         (Makefile.am): Update stdlib.h rule.
15673
15674         stdio: Avoid #define replacements in C++ mode.
15675         * lib/stdio.in.h: Include c++defs.h.
15676         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15677         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15678         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15679         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15680         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15681         namespaced alias symbol.
15682         * modules/stdio (Depends-on): Add c++defs.
15683         (Makefile.am): Update stdio.h rule.
15684
15685         spawn: Avoid #define replacements in C++ mode.
15686         * lib/spawn.in.h: Include c++defs.h.
15687         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15688         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15689         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15690         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15691         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15692         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15693         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15694         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15695         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15696         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15697         In C++, define a namespaced alias symbol.
15698         * modules/spawn (Depends-on): Add c++defs.
15699         (Makefile.am): Update spawn.h rule.
15700
15701         signal: Avoid #define replacements in C++ mode.
15702         * lib/signal.in.h: Include c++defs.h.
15703         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15704         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15705         namespaced alias symbol.
15706         * modules/signal (Depends-on): Add c++defs.
15707         (Makefile.am): Update signal.h rule.
15708
15709         search: Avoid #define replacements in C++ mode.
15710         * lib/search.in.h: Include c++defs.h.
15711         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15712         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15713         symbol.
15714         * modules/search (Depends-on): Add c++defs.
15715         (Makefile.am): Update search.h rule.
15716
15717         math: Avoid #define replacements in C++ mode.
15718         * lib/math.in.h: Include c++defs.h.
15719         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15720         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15721         trunc, truncl): In C++, define a namespaced alias symbol.
15722         * modules/math (Depends-on): Add c++defs.
15723         (Makefile.am): Update math.h rule.
15724
15725         locale: Avoid #define replacements in C++ mode.
15726         * lib/locale.in.h: Include c++defs.h.
15727         (duplocale): In C++, define a namespaced alias symbol.
15728         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15729         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15730         * modules/locale (Depends-on): Add c++defs.
15731         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15732
15733         langinfo: Avoid #define replacements in C++ mode.
15734         * lib/langinfo.in.h: Include c++defs.h.
15735         (nl_langinfo): In C++, define a namespaced alias symbol.
15736         * modules/langinfo (Depends-on): Add c++defs.
15737         (Makefile.am): Update langinfo.h rule.
15738
15739         iconv-h: Avoid #define replacements in C++ mode.
15740         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15741         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15742         symbol.
15743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15744         whenever iconv is present.
15745         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15746         (Makefile.am): Update iconv.h rule.
15747
15748         glob: Avoid #define replacements in C++ mode.
15749         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15750         (_gl_glob_errfunc_fn): New type.
15751         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15752         symbol.
15753         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15754         (Makefile.am): Update glob.h rule.
15755
15756         fcntl-h: Avoid #define replacements in C++ mode.
15757         * lib/fcntl.in.h: Include c++defs.h.
15758         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15759         * modules/fcntl-h (Depends-on): Add c++defs.
15760         (Makefile.am): Update fcntl.h rule.
15761
15762         dirent: Avoid #define replacements in C++ mode.
15763         * lib/dirent.in.h: Include c++defs.h.
15764         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15765         namespaced alias symbol.
15766         (dirfd): Update declaration.
15767         * modules/dirent (Depends-on): Add c++defs.
15768         (Makefile.am): Update dirent.h rule.
15769
15770         ctype: Make it usable in C++ code.
15771         * lib/ctype.in.h: Include c++defs.h.
15772         (isblank): Declare as extern "C".
15773         * modules/ctype (Depends-on): Add c++defs.
15774         (Makefile.am): Update ctype.h rule.
15775
15776         New module 'c++defs'.
15777         * modules/c++defs: New file.
15778         * build-aux/c++defs.h: New file.
15779         Reported by John W. Eaton <jwe@gnu.org>.
15780
15781 2010-03-07  Bruno Haible  <bruno@clisp.org>
15782
15783         logb: Provide missing declaration for Cygwin.
15784         * lib/math.in.h (logb): New declaration.
15785         * m4/logb.m4: New file.
15786         * modules/logb (Files): Add m4/logb.m4.
15787         (Depends-on): Add math.
15788         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15789         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15791         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15792         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15793
15794 2010-03-07  Bruno Haible  <bruno@clisp.org>
15795
15796         Fix test-cond link error.
15797         * tests/test-cond.c: Include <stdio.h>.
15798
15799 2010-03-07  Bruno Haible  <bruno@clisp.org>
15800
15801         Fix test-dirent-safer link error.
15802         * modules/dirent-safer-tests (Makefile.am): Define
15803         test_dirent_safer_LDADD.
15804
15805 2010-03-07  Bruno Haible  <bruno@clisp.org>
15806
15807         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15808         among default module list.
15809
15810 2010-03-07  Bruno Haible  <bruno@clisp.org>
15811
15812         Fix link error on platforms with GNU libiconv.
15813         * modules/unistr/u8-strcoll-tests (Makefile): Define
15814         test_u8_strcoll_LDADD.
15815         * modules/unistr/u16-strcoll-tests (Makefile): Define
15816         test_u16_strcoll_LDADD.
15817         * modules/unistr/u32-strcoll-tests (Makefile): Define
15818         test_u32_strcoll_LDADD.
15819
15820 2010-03-07  Bruno Haible  <bruno@clisp.org>
15821
15822         Use POSIX declarations for socket functions.
15823         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15824         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15825         rpl_sendto): Change declaration to match POSIX.
15826         * lib/connect.c (rpl_connect): Likewise.
15827         * lib/accept.c (rpl_accept): Likewise.
15828         * lib/bind.c (rpl_bind): Likewise.
15829         * lib/getpeername.c (rpl_getpeername): Likewise.
15830         * lib/getsockname.c (rpl_getsockname): Likewise.
15831         * lib/recv.c (rpl_recv): Likewise.
15832         * lib/send.c (rpl_send): Likewise.
15833         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15834         * lib/sendto.c (rpl_sendto): Likewise.
15835
15836 2010-03-06  Bruno Haible  <bruno@clisp.org>
15837
15838         Clarify access, euidaccess, faccessat.
15839         * doc/posix-functions/faccessat.texi: Mention security problem under
15840         "Other problems", not "Portability problems".
15841         * doc/posix-functions/access.texi: Likewise. Mention a related security
15842         problem.
15843         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15844         * lib/euidaccess.c: Add comments about platforms.
15845         * lib/unistd.in.h (access, euidaccess): Add warnings.
15846
15847 2010-03-07  Bruno Haible  <bruno@clisp.org>
15848
15849         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15850         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15851         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15852         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15853         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15854         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15855         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15856         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15857         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15859         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15860         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15861         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15862         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15863         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15864         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15865         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15866         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15867         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15868         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15869         Likewise.
15870         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15871         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15872         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15873         Likewise.
15874         * tests/test-spawn.c (main): Make it work when
15875         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15876
15877 2010-03-07  Bruno Haible  <bruno@clisp.org>
15878
15879         Fix incorrect Makefile.am generation in German locale.
15880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15881         Execute sed command with character range in C locale.
15882
15883 2010-03-06  Bruno Haible  <bruno@clisp.org>
15884
15885         Tests for module 'iconv-h'.
15886         * modules/iconv-h-tests: New file.
15887         * tests/test-iconv-h.c: New file.
15888
15889         New module 'iconv-h'.
15890         * modules/iconv-h: New file.
15891         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15892         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15893         (configure.ac): Remove gl_ICONV_H.
15894         (Makefile.am): Remove rule for iconv.h.
15895
15896 2010-03-06  Bruno Haible  <bruno@clisp.org>
15897
15898         More consistent naming of *.m4 files.
15899         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15900         * modules/wctype (Files): Update.
15901
15902         More consistent naming of *.m4 files.
15903         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15904         * modules/wchar (Files): Update.
15905
15906 2010-03-06  Jim Meyering  <meyering@redhat.com>
15907
15908         euidaccess: relax license to LGPLv2+
15909         * modules/euidaccess (License): Relax to LGPLv2+.
15910
15911 2010-03-06  Bruno Haible  <bruno@clisp.org>
15912
15913         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15914         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15915         (Makefile.am): Augment lib_SOURCES instead.
15916
15917 2010-03-04  Jim Meyering  <meyering@redhat.com>
15918
15919         utime: remove obsolete module
15920         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15921         unnecessary for years, and has been marked as obsolete for 10 months.
15922         * modules/utime: Remove file.
15923         * lib/utime.c: Remove file.
15924         * m4/utime.m4: Remove file.
15925         * m4/utimes-null.m4: Remove file.
15926         * doc/posix-functions/utime.texi (utime): Remove reference to
15927         the module.  Move the sole "fixed by gnulib" item into the
15928         "problems not fixed by Gnulib" list.
15929         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15930
15931 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15932
15933         * modules/exit (License): Relax license to LGPLv2+.
15934         (Status): Mark as obsolete.
15935         * NEWS: Mention deprecated 'exit' module.
15936         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15937         of now obsolete 'exit'.
15938
15939 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15940
15941         fts-lgpl: remove unused module
15942         * modules/fts-lgpl: Remove.
15943         * MODULES.html.sh (func_all_modules): Adjust.
15944         * check-module (find_included_lib_files): Adjust.
15945         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15946
15947 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15948
15949         copy-acl: enhance Solaris ACL error handling
15950         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15951         * lib/set-mode-acl.c (qset_acl): Likewise.
15952
15953 2010-03-02  Bruno Haible  <bruno@clisp.org>
15954
15955         spawn: Don't override the system defined values on FreeBSD 8.
15956         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15957         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15958         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15959         if HAVE_POSIX_SPAWN is 1.
15960         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15961
15962 2010-03-01  Bruno Haible  <bruno@clisp.org>
15963
15964         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15965         regarding Automake.
15966
15967 2010-02-25  Bruno Haible  <bruno@clisp.org>
15968
15969         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15970         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15971         setting, not afterwards.
15972         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15973
15974 2010-02-24  Eric Blake  <eblake@redhat.com>
15975
15976         bootstrap, git-version-gen: use timestamp
15977         * build-aux/git-version-gen (scriptversion): Force UTC.
15978         * build-aux/bootstrap (scriptversion): New variable.
15979
15980         bootstrap: allow older git
15981         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15982         older than 1.6.4.  Requested by the libvirt project.
15983
15984 2010-02-23  Eric Blake  <eblake@redhat.com>
15985
15986         warn-on-use: work with old autoconf
15987         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15988         AS_VAR semantics of autoconf 2.60.
15989         Reported by Bruno Haible.
15990
15991         bootstrap: improve some comments
15992         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15993         clarification comments.
15994
15995         gettimeofday: provide correct function
15996         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15997         when replacement is declared, otherwise provide gettimeofday.
15998         Reported by Michael Goffioul.
15999
16000 2010-02-23  Jim Meyering  <meyering@redhat.com>
16001
16002         lib-ignore: relax license to "unlimited", not LGPLv2+
16003         * modules/lib-ignore (License): Relax to "unlimited".
16004
16005 2010-02-23  Jim Meyering  <meyering@redhat.com>
16006
16007         lib-ignore: relax license to LGPLv2+
16008         * modules/lib-ignore (License): Relax to LGPLv2+.
16009
16010 2010-02-22  Eric Blake  <eblake@redhat.com>
16011
16012         lseek: avoid bash 3.2 broken pipe bug
16013         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16014         warning from bash 3.2.
16015         Reported by Ben Pfaff, with analysis from Bruno Haible.
16016
16017         bootstrap: support non-FSF copyright holder
16018         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16019         bootstrap.conf override of COPYRIGHT_HOLDER.
16020         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16021
16022         bootstrap: interoperate with gettext 0.14.1
16023         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16024
16025         bootstrap: allow for alternate submodule location
16026         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16027         hardcoding submodule location.
16028         (gnulib_mk): Allow direct use of Makefile.am.
16029
16030         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16031         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16032         rather than reconfiguring where the submodule points.
16033
16034         gettimeofday: restore support for platforms that lack function
16035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16036         replacement if function is missing.
16037         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16038         * modules/sys_time (Makefile.am): Substitute it.
16039         * lib/sys_time.in.h (gettimeofday): Check it.
16040         Reported by Michael Goffioul.
16041
16042 2010-02-21  Bruno Haible  <bruno@clisp.org>
16043
16044         * lib/stdio.in.h (obstack_printf): Fix typo.
16045
16046 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16047
16048         vc-list-files: use bzr ls's -R option
16049         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16050         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16051
16052 2010-02-21  Jim Meyering  <meyering@redhat.com>
16053
16054         init.sh: fix EXEEXT shims to work also for names like test-prog
16055         * tests/init.sh: Re-exec a better shell, when needed.
16056         If the current shell lacks support for posix $(...), an init.sh-using
16057         test will now try to find a shell that supports that.  If EXEEXT is
16058         nonempty, we also require support for hyphen-in-alias-name and shell
16059         substitutions like ${var#glob}.  Failure to find such a shell results
16060         in a skipped test.
16061
16062 2010-02-21  Bruno Haible  <bruno@clisp.org>
16063
16064         Really work around around "broken pipe" error message from bash 3.2.
16065         * gnulib-tool (func_reset_sigpipe): Remove function.
16066         (echo): In bash 3.2, define to a function that uses printf.
16067         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16068
16069 2010-02-20  Bruno Haible  <bruno@clisp.org>
16070
16071         Restore support for automake 1.9.6 with autoconf 2.61.
16072         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16073         Reported by James Youngman <jay@gnu.org>.
16074
16075 2010-02-20  Bruno Haible  <bruno@clisp.org>
16076
16077         Improve *printf warning condition.
16078         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16079         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16080         and the function is overridden due to SIGPIPE emulation.
16081
16082 2010-02-20  Bruno Haible  <bruno@clisp.org>
16083
16084         * lib/stdio.in.h: Tweak comments.
16085
16086 2010-02-19  Bruno Haible  <bruno@clisp.org>
16087
16088         Make it easier to find modules. New gnulib-tool option '--find'.
16089         * gnulib-tool: New option --find.
16090         (func_usage): Document it.
16091         (func_sanitize_modulelist): New function, extracted from
16092         func_all_modules.
16093         (func_all_modules): Invoke it.
16094         * doc/gnulib-tool.texi (Which modules?): New node.
16095
16096 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16097
16098         * lib/sys_select.in.h: Provide select replacement even if
16099         sys/select.h exists on a system, for Interix.
16100
16101 2010-02-18  Jim Meyering  <meyering@redhat.com>
16102
16103         init.sh: don't use $(...) just yet
16104         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16105         to accommodate e.g., Solaris' /bin/sh.
16106
16107 2010-02-17  Bruno Haible  <bruno@clisp.org>
16108
16109         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16110         Reported by Ludovic Courtès <ludo@gnu.org>.
16111
16112 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16113
16114         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16115         linking with -lintl.
16116
16117 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16118
16119         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16120         if not provided by the system's netdb.h.  Reported by
16121         ludo@gnu.org (Ludovic Courtès).
16122
16123 2010-02-15  Jim Meyering  <meyering@redhat.com>
16124
16125         init.sh: improve portability and efficiency
16126         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16127         "dummy" in a for loop.
16128         Use '!', not '^' to select the complement of a character set used
16129         in a "case" statement.
16130         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16131         Suggestions from Eric Blake.
16132
16133         init.sh: automatically accommodate programs with the .exe suffix
16134         Automatically arrange for an invocation of "prog" to execute the
16135         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16136         may use the simpler "prog", yet still work when built on a system
16137         that requires specifying the added suffix.
16138         Do this by constructing a function named "prog" that invokes
16139         "prog.exe" for each .exe file in selected directories.
16140         * tests/init.sh (find_exe_basenames_): New function.
16141         (create_exe_shim_functions_): New function.
16142         (path_prepend_): Use it.
16143
16144         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16145         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16146         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16147
16148 2010-02-14  Jim Meyering  <meyering@redhat.com>
16149
16150         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16151         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16152         (sc_prohibit_hash_pjw_without_use): New rule.
16153
16154         maint.mk: allow the default upload destination dir to be overridden
16155         * top/maint.mk (upload_dest_dir_): Define with a default that
16156         preserves the status quo.
16157         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16158         Reported by Peter Simons.
16159
16160         maint.mk: prohibit inclusion of "hash.h" without_use
16161         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16162
16163 2010-02-10  Jim Meyering  <meyering@redhat.com>
16164
16165         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16166         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16167
16168 2010-02-09  Eric Blake  <ebb9@byu.net>
16169         and Bruno Haible  <bruno@clisp.org>
16170
16171         obstack-printf-posix: ensure declaration
16172         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16173         extracted from gl_FUNC_OBSTACK_PRINTF.
16174         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16175         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16176         Likewise.
16177         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16178         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16179         0.
16180
16181 2010-02-08  Bruno Haible  <bruno@clisp.org>
16182
16183         gnulib-tool: Fix typo in 2010-02-07 commit.
16184         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16185         Reported by Eric Blake.
16186
16187 2010-02-07  Bruno Haible  <bruno@clisp.org>
16188
16189         gnulib-tool: Fix up caching patches.
16190         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16191         option --no-cache. Use associative arrays when supported by the shell.
16192         (sed_comments): New variable.
16193         (modcache): Renamed from do_cache.
16194         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16195         abbreviate unnecessarily.
16196         (have_associative): New variable.
16197         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16198         way also for ksh and zsh.
16199         (func_init_sed_convert_to_cache_statements): New function, extracted
16200         from func_cache_lookup_module. Add support for associative arrays.
16201         Don't set the c_MODULE_cached variable here. Ignore all lines before
16202         the first field header. Remove only the final newline, not all trailing
16203         newlines. Support empty fields correctly. Limit the use of 'eval' to
16204         assignments.
16205         (func_get_description, func_get_status, func_get_notice,
16206         func_get_applicability, func_get_filelist, func_get_dependencies,
16207         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16208         func_get_automake_snippet, func_get_include_directive,
16209         func_get_link_directive, func_get_license, func_get_maintainer):
16210         Update documentation. List the unoptimized code first. Add support for
16211         associative arrays. Limit the use of 'eval' to assignments.
16212         (func_get_applicability): Undo stylistic pessimisations.
16213         (func_get_automake_snippet, func_get_include_directive): Reduce code
16214         duplication.
16215         (func_modules_transitive_closure, func_modules_add_dummy,
16216         func_modules_notice, func_modules_to_filelist, func_add_file,
16217         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16218         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16219         func_create_testdir, func_create_megatestdir): Update documentation.
16220
16221 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16222
16223         * gnulib-tool (func_cache_lookup_module): Store the module name
16224         belonging to the cache variable; error out if two different
16225         module names map to the same cache variable name.
16226
16227 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16228
16229         gnulib-tool: Make caching optional.
16230         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16231         Update matching short versions of --no-changelog.
16232         (func_usage): Update.
16233         (sed_extract_cache_prog): Renamed from ...
16234         (sed_extract_prog): ... this; revert to old extraction script.
16235         (func_get_description, func_get_status)
16236         (func_get_notice, func_get_applicability, func_get_filelist)
16237         (func_get_dependencies, func_get_autoconf_early_snippet)
16238         (func_get_autoconf_snippet, func_get_automake_snippet)
16239         (func_get_include_directive, func_get_link_directive)
16240         (func_get_license, func_get_maintainer): If $do_cache is false,
16241         use old, non-caching extraction scripts.
16242         Suggestion by Bruno Haible.
16243
16244 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16245
16246         gnulib-tool: cache module metainformation.
16247         * gnulib-tool (sed_extract_prog): Match newline before each
16248         header, and rewrite header to a shell variable suffix.
16249         (func_cache_var, func_cache_lookup_module): New functions,
16250         to turn a module name into a cache variable prefix, and to
16251         look up and cache module metainformation.
16252         (func_get_description, func_get_status)
16253         (func_get_notice, func_get_applicability, func_get_filelist)
16254         (func_get_dependencies, func_get_autoconf_early_snippet)
16255         (func_get_autoconf_snippet, func_get_automake_snippet)
16256         (func_get_include_directive, func_get_link_directive)
16257         (func_get_license, func_get_maintainer): Use
16258         func_cache_lookup_module.
16259
16260 2010-02-07  Bruno Haible  <bruno@clisp.org>
16261
16262         fnctl: Fix missing dependency.
16263         * modules/fcntl (Depends-on): Add getdtablesize.
16264         Reported by John W. Eaton <jwe@gnu.org>.
16265
16266 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16267
16268         Argp: fix recognition of short alias options.
16269
16270         * lib/argp-parse.c (convert_options): Fix improper use of
16271         `|' between character values.
16272         * tests/test-argp.c (group1_option): New alias option
16273         --read (-r).
16274         (group1_parser): Special handling for 'r'.
16275         (test15): New test case.
16276         (test_fun): Add test15.
16277         * tests/test-argp-2.sh: Update expected --help and --usage
16278         outputs.
16279
16280 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16281
16282         * tests/test-argp.c: Fix indentation.
16283
16284 2010-02-04  Eric Blake  <ebb9@byu.net>
16285
16286         gettimeofday: expose type of second argument
16287         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16288         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16289         * tests/test-gettimeofday.c: Use it to silence warning.
16290         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16291         the issue.
16292
16293 2010-02-03  Jim Meyering  <meyering@redhat.com>
16294
16295         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16296         * lib/regcomp.c (TYPE_SIGNED): Define.
16297         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16298
16299         regcomp.c: avoid a new -Wshadow warning
16300         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16301
16302 2010-02-01  Jim Meyering  <meyering@redhat.com>
16303
16304         removing useless parentheses in cpp #define directives
16305         For motivation, see commit c0221df4, "define STREQ(a,b)
16306         consistently, removing useless parentheses"
16307         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16308         * lib/mountlist.c (MNT_IGNORE): Likewise.
16309         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16310
16311 2010-02-01  Eric Blake  <ebb9@byu.net>
16312
16313         sys_time: use link-warning
16314         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16315         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16316         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16317         * modules/sys_time (Depends-on): Add warn-on-use.
16318         (Makefile.am): Always build replacement.
16319         (configure.ac): Update substitutions.
16320         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16321         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16322         bother with SYS_TIME_H.
16323         * modules/gettimeofday (configure.ac): Declare indicator.
16324         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16325         in use.
16326
16327         closein-tests: silence compiler warning
16328         * tests/test-closein.c (main): Ignore fread result.
16329         * modules/closein-tests (Depends-on): Add ignore-value.
16330
16331         tests: silence warning about system return
16332         * tests/test-areadlink-with-size.c (main): Ignore system result.
16333         * tests/test-areadlink.c (main): Likewise.
16334         * tests/test-areadlinkat-with-size.c (main): Likewise.
16335         * tests/test-areadlinkat.c (main): Likewise.
16336         * tests/test-canonicalize-lgpl.c (main): Likewise.
16337         * tests/test-canonicalize.c (main): Likewise.
16338         * tests/test-chown.c (main): Likewise.
16339         * tests/test-fchownat.c (main): Likewise.
16340         * tests/test-fdutimensat.c (main): Likewise.
16341         * tests/test-fstatat.c (main): Likewise.
16342         * tests/test-futimens.c (main): Likewise.
16343         * tests/test-lchown.c (main): Likewise.
16344         * tests/test-link.c (main): Likewise.
16345         * tests/test-linkat.c (main): Likewise.
16346         * tests/test-lstat.c (main): Likewise.
16347         * tests/test-mkdir.c (main): Likewise.
16348         * tests/test-mkdirat.c (main): Likewise.
16349         * tests/test-mkfifo.c (main): Likewise.
16350         * tests/test-mkfifoat.c (main): Likewise.
16351         * tests/test-mknod.c (main): Likewise.
16352         * tests/test-readlink.c (main): Likewise.
16353         * tests/test-remove.c (main): Likewise.
16354         * tests/test-rename.c (main): Likewise.
16355         * tests/test-renameat.c (main): Likewise.
16356         * tests/test-rmdir.c (main): Likewise.
16357         * tests/test-symlink.c (main): Likewise.
16358         * tests/test-symlinkat.c (main): Likewise.
16359         * tests/test-unlink.c (main): Likewise.
16360         * tests/test-unlinkat.c (main): Likewise.
16361         * tests/test-utimens.c (main): Likewise.
16362         * tests/test-utimensat.c (main): Likewise.
16363         * modules/areadlink-tests (Depends-on): Add ignore-value.
16364         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16365         * modules/areadlinkat-tests (Depends-on): Likewise.
16366         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16367         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16368         * modules/canonicalize-tests (Depends-on): Likewise.
16369         * modules/chown-tests (Depends-on): Likewise.
16370         * modules/fdutimensat-tests (Depends-on): Likewise.
16371         * modules/futimens-tests (Depends-on): Likewise.
16372         * modules/lchown-tests (Depends-on): Likewise.
16373         * modules/link-tests (Depends-on): Likewise.
16374         * modules/linkat-tests (Depends-on): Likewise.
16375         * modules/lstat-tests (Depends-on): Likewise.
16376         * modules/mkdir-tests (Depends-on): Likewise.
16377         * modules/mkfifo-tests (Depends-on): Likewise.
16378         * modules/mkfifoat-tests (Depends-on): Likewise.
16379         * modules/mknod-tests (Depends-on): Likewise.
16380         * modules/openat-tests (Depends-on): Likewise.
16381         * modules/readlink-tests (Depends-on): Likewise.
16382         * modules/remove-tests (Depends-on): Likewise.
16383         * modules/rename-tests (Depends-on): Likewise.
16384         * modules/renameat-tests (Depends-on): Likewise.
16385         * modules/rmdir-tests (Depends-on): Likewise.
16386         * modules/symlink-tests (Depends-on): Likewise.
16387         * modules/symlinkat-tests (Depends-on): Likewise.
16388         * modules/unlink-tests (Depends-on): Likewise.
16389         * modules/utimens-tests (Depends-on): Likewise.
16390         * modules/utimensat-tests (Depends-on): Likewise.
16391
16392 2010-01-31  Bruno Haible  <bruno@clisp.org>
16393
16394         Perform the same test for many <math.h> functions.
16395         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16396         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16397         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16398         of gl_MATHFUNC.
16399         * modules/acos (configure.ac): Likewise.
16400         * modules/asin (configure.ac): Likewise.
16401         * modules/atan (configure.ac): Likewise.
16402         * modules/atan2 (configure.ac): Likewise.
16403         * modules/cbrt (configure.ac): Likewise.
16404         * modules/copysign (configure.ac): Likewise.
16405         * modules/cos (configure.ac): Likewise.
16406         * modules/cosh (configure.ac): Likewise.
16407         * modules/erf (configure.ac): Likewise.
16408         * modules/erfc (configure.ac): Likewise.
16409         * modules/exp (configure.ac): Likewise.
16410         * modules/fmod (configure.ac): Likewise.
16411         * modules/hypot (configure.ac): Likewise.
16412         * modules/j0 (configure.ac): Likewise.
16413         * modules/j1 (configure.ac): Likewise.
16414         * modules/jn (configure.ac): Likewise.
16415         * modules/lgamma (configure.ac): Likewise.
16416         * modules/log (configure.ac): Likewise.
16417         * modules/log10 (configure.ac): Likewise.
16418         * modules/log1p (configure.ac): Likewise.
16419         * modules/pow (configure.ac): Likewise.
16420         * modules/remainder (configure.ac): Likewise.
16421         * modules/sin (configure.ac): Likewise.
16422         * modules/sinh (configure.ac): Likewise.
16423         * modules/tan (configure.ac): Likewise.
16424         * modules/tanh (configure.ac): Likewise.
16425         * modules/y0 (configure.ac): Likewise.
16426         * modules/y1 (configure.ac): Likewise.
16427         * modules/yn (configure.ac): Likewise.
16428         Suggested by Paolo Bonzini.
16429
16430 2010-01-31  Bruno Haible  <bruno@clisp.org>
16431
16432         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16433
16434 2010-01-31  Bruno Haible  <bruno@clisp.org>
16435
16436         Work around getdelim() bug on FreeBSD 8.0.
16437         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16438         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16439         not work.
16440         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16441         is 1.
16442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16443         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16444         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16445         a non-zero size.
16446         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16447
16448 2010-01-31  Bruno Haible  <bruno@clisp.org>
16449
16450         Work around getline() bug on FreeBSD 8.0.
16451         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16452         and a non-zero size.
16453         * tests/test-getline.c (main): Likewise.
16454         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16455         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16456
16457 2010-01-28  Eric Blake  <ebb9@byu.net>
16458
16459         regex: fix build failure
16460         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16461         platforms.
16462
16463 2010-01-28  Jim Meyering  <meyering@redhat.com>
16464
16465         regex: do not ignore memory allocation failure
16466         * lib/regex_internal.c (create_cd_newstate): Detect
16467         re_node_set_init_copy failure.   Extracted from glibc commit
16468         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16469
16470         regex: sync more white-space changes from libc
16471         * lib/regex_internal.c: White-space only changes.
16472         * lib/regexec.c: Likewise.
16473
16474         regex: add many uses of __attribute_warn_unused_result__
16475         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16476         * lib/regexec.c: Likewise.
16477         Extracted from a messy glibc commit.
16478
16479         regcomp.c: spelling and merge-artifact from glibc
16480         * lib/regcomp.c: Merge remainder of glibc's
16481         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16482
16483         regcomp.c: sync white-space changes from glibc
16484         * lib/regcomp.c: Merge to accommodate white space
16485         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16486
16487         regcomp.c: do not ignore internal return values
16488         * lib/regcomp.c: Do not ignore internal return values.
16489         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16490         but without its white-space changes and spelling fixes.
16491
16492         regex_internal.h: define __attribute_warn_unused_result__
16493         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16494
16495         maint: add a syntax-check rule to check for vulnerable Makefile.in
16496         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16497
16498 2010-01-27  Jim Meyering  <meyering@redhat.com>
16499
16500         ncftpput-ftp: clean up spaces
16501         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16502         Remove trailing blanks.
16503
16504 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16505
16506         * build-aux/git-version-gen: Fix copyright statement.
16507         * build-aux/gnupload: Likewise.
16508         * tests/test-arcfour.c: Likewise.
16509         * tests/test-arctwo.c: Likewise.
16510         * tests/test-count-one-bits.c: Likewise.
16511         * tests/test-crc.c: Likewise.
16512         * tests/test-des.c: Likewise.
16513         * tests/test-gc-arcfour.c: Likewise.
16514         * tests/test-gc-arctwo.c: Likewise.
16515         * tests/test-gc-des.c: Likewise.
16516         * tests/test-gc-hmac-md5.c: Likewise.
16517         * tests/test-gc-hmac-sha1.c: Likewise.
16518         * tests/test-gc-md2.c: Likewise.
16519         * tests/test-gc-md4.c: Likewise.
16520         * tests/test-gc-md5.c: Likewise.
16521         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16522         * tests/test-gc-rijndael.c: Likewise.
16523         * tests/test-gc-sha1.c: Likewise.
16524         * tests/test-gc.c: Likewise.
16525         * tests/test-gethostname.c: Likewise.
16526         * tests/test-gettimeofday.c: Likewise.
16527         * tests/test-hash.c: Likewise.
16528         * tests/test-hmac-md5.c: Likewise.
16529         * tests/test-hmac-sha1.c: Likewise.
16530         * tests/test-md2.c: Likewise.
16531         * tests/test-md4.c: Likewise.
16532         * tests/test-md5.c: Likewise.
16533         * tests/test-memchr.c: Likewise.
16534         * tests/test-memchr2.c: Likewise.
16535         * tests/test-memcmp.c: Likewise.
16536         * tests/test-memmem.c: Likewise.
16537         * tests/test-memrchr.c: Likewise.
16538         * tests/test-rawmemchr.c: Likewise.
16539         * tests/test-read-file.c: Likewise.
16540         * tests/test-rijndael.c: Likewise.
16541         * tests/test-sockets.c: Likewise.
16542         * tests/test-strchrnul.c: Likewise.
16543         * tests/test-strstr.c: Likewise.
16544         * tests/test-strtod.c: Likewise.
16545         * build-aux/ncftpput-ftp: Likewise.
16546
16547 2010-01-26  Eric Blake  <ebb9@byu.net>
16548
16549         ignore-value: update recommended header name
16550         * modules/ignore-value (Include): Only use <> for headers that
16551         exist in glibc.
16552
16553 2010-01-26  Jim Meyering  <meyering@redhat.com>
16554
16555         test-userspec.c: avoid compiler warnings
16556         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16557         and "initialization discards qualifiers..." warnings.
16558         Put the first "uid" in its own scope, and make char* members "const".
16559
16560 2010-01-25  Bruno Haible  <bruno@clisp.org>
16561
16562         gnulib-tool: Make warning diagnostics consistent.
16563         * gnulib-tool (func_warning): New function.
16564         Use it everywhere where gnulib-tool produces output to stderr and it is
16565         not a fatal error.
16566
16567 2010-01-25  Bruno Haible  <bruno@clisp.org>
16568
16569         Fix test dependencies.
16570         * modules/xstrtol-tests (Depends-on): Add inttypes.
16571         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16572
16573 2010-01-25 Pádraig Brady <P@draigBrady.com>
16574
16575         syntax-check: detect incorrect boolean macro values in config.h
16576         * modules/maintainer-makefile (configure.ac): Parameterize the location
16577         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16578         The logic is from Eric Blake and the location indicated by Jim Meyering.
16579         Note the more natural CONFIG_HEADER name is prohibited by automake
16580         for backwards compatibility reasons.
16581         * top/maint.mk (sc_Wundef_boolean): New rule.
16582
16583 2010-01-25  Jim Meyering  <meyering@redhat.com>
16584
16585         bootstrap: detect MacOS 10.6's shasum, too
16586         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16587         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16588
16589 2010-01-23  Jim Meyering  <meyering@redhat.com>
16590
16591         xstrtoll: new module
16592         * modules/xstrtoll: New file.
16593         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16594         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16595         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16596         ./configure fails if you use this module and lack "long long".
16597         * modules/xstrtoll-tests: New module.
16598         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16599         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16600         new init.sh-based test framework.
16601
16602 2010-01-24  Bruno Haible  <bruno@clisp.org>
16603
16604         Tests for module 'yn'.
16605         * modules/yn-tests: New file.
16606         * tests/test-yn.c: New file.
16607
16608         Tests for module 'y1'.
16609         * modules/y1-tests: New file.
16610         * tests/test-y1.c: New file.
16611
16612         Tests for module 'y0'.
16613         * modules/y0-tests: New file.
16614         * tests/test-y0.c: New file.
16615
16616         Tests for module 'tanh'.
16617         * modules/tanh-tests: New file.
16618         * tests/test-tanh.c: New file.
16619
16620         Tests for module 'tan'.
16621         * modules/tan-tests: New file.
16622         * tests/test-tan.c: New file.
16623
16624         Tests for module 'sqrt'.
16625         * modules/sqrt-tests: New file.
16626         * tests/test-sqrt.c: New file.
16627
16628         Tests for module 'sinh'.
16629         * modules/sinh-tests: New file.
16630         * tests/test-sinh.c: New file.
16631
16632         Tests for module 'sin'.
16633         * modules/sin-tests: New file.
16634         * tests/test-sin.c: New file.
16635
16636         Tests for module 'rint'.
16637         * modules/rint-tests: New file.
16638         * tests/test-rint.c: New file.
16639
16640         Tests for module 'remainder'.
16641         * modules/remainder-tests: New file.
16642         * tests/test-remainder.c: New file.
16643
16644         Tests for module 'pow'.
16645         * modules/pow-tests: New file.
16646         * tests/test-pow.c: New file.
16647
16648         Tests for module 'nextafter'.
16649         * modules/nextafter-tests: New file.
16650         * tests/test-nextafter.c: New file.
16651
16652         Tests for module 'modf'.
16653         * modules/modf-tests: New file.
16654         * tests/test-modf.c: New file.
16655
16656         Tests for module 'logb'.
16657         * modules/logb-tests: New file.
16658         * tests/test-logb.c: New file.
16659
16660         Tests for module 'log1p'.
16661         * modules/log1p-tests: New file.
16662         * tests/test-log1p.c: New file.
16663
16664         Tests for module 'log10'.
16665         * modules/log10-tests: New file.
16666         * tests/test-log10.c: New file.
16667
16668         Tests for module 'log'.
16669         * modules/log-tests: New file.
16670         * tests/test-log.c: New file.
16671
16672         Tests for module 'lgamma'.
16673         * modules/lgamma-tests: New file.
16674         * tests/test-lgamma.c: New file.
16675
16676         Tests for module 'ldexp'.
16677         * modules/ldexp-tests: New file.
16678         * tests/test-ldexp.c: New file.
16679
16680         Tests for module 'jn'.
16681         * modules/jn-tests: New file.
16682         * tests/test-jn.c: New file.
16683
16684         Tests for module 'j1'.
16685         * modules/j1-tests: New file.
16686         * tests/test-j1.c: New file.
16687
16688         Tests for module 'j0'.
16689         * modules/j0-tests: New file.
16690         * tests/test-j0.c: New file.
16691
16692         Tests for module 'hypot'.
16693         * modules/hypot-tests: New file.
16694         * tests/test-hypot.c: New file.
16695
16696         Tests for module 'fmod'.
16697         * modules/fmod-tests: New file.
16698         * tests/test-fmod.c: New file.
16699
16700         Tests for module 'fabs'.
16701         * modules/fabs-tests: New file.
16702         * tests/test-fabs.c: New file.
16703
16704         Tests for module 'exp'.
16705         * modules/exp-tests: New file.
16706         * tests/test-exp.c: New file.
16707
16708         Tests for module 'erfc'.
16709         * modules/erfc-tests: New file.
16710         * tests/test-erfc.c: New file.
16711
16712         Tests for module 'erf'.
16713         * modules/erf-tests: New file.
16714         * tests/test-erf.c: New file.
16715
16716         Tests for module 'cosh'.
16717         * modules/cosh-tests: New file.
16718         * tests/test-cosh.c: New file.
16719
16720         Tests for module 'cos'.
16721         * modules/cos-tests: New file.
16722         * tests/test-cos.c: New file.
16723
16724         Tests for module 'copysign'.
16725         * modules/copysign-tests: New file.
16726         * tests/test-copysign.c: New file.
16727
16728         Tests for module 'cbrt'.
16729         * modules/cbrt-tests: New file.
16730         * tests/test-cbrt.c: New file.
16731
16732         Tests for module 'atan2'.
16733         * modules/atan2-tests: New file.
16734         * tests/test-atan2.c: New file.
16735
16736         Tests for module 'atan'.
16737         * modules/atan-tests: New file.
16738         * tests/test-atan.c: New file.
16739
16740         Tests for module 'asin'.
16741         * modules/asin-tests: New file.
16742         * tests/test-asin.c: New file.
16743
16744         Tests for module 'acos'.
16745         * modules/acos-tests: New file.
16746         * tests/test-acos.c: New file.
16747
16748 2010-01-24  Bruno Haible  <bruno@clisp.org>
16749
16750         Fix tests for common <math.h> functions.
16751         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16752         code snippet that references the function pointer, rather than merely
16753         calling the function. Substitute the FUNC_LIBM variable.
16754         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16755         * modules/acos (configure.ac): Likewise.
16756         * modules/asin (configure.ac): Likewise.
16757         * modules/atan (configure.ac): Likewise.
16758         * modules/atan2 (configure.ac): Likewise.
16759         * modules/cbrt (configure.ac): Likewise.
16760         * modules/copysign (configure.ac): Likewise.
16761         * modules/cos (configure.ac): Likewise.
16762         * modules/cosh (configure.ac): Likewise.
16763         * modules/erf (configure.ac): Likewise.
16764         * modules/erfc (configure.ac): Likewise.
16765         * modules/exp (configure.ac): Likewise.
16766         * modules/fabs (configure.ac): Likewise.
16767         * modules/fmod (configure.ac): Likewise.
16768         * modules/hypot (configure.ac): Likewise.
16769         * modules/j0 (configure.ac): Likewise.
16770         * modules/j1 (configure.ac): Likewise.
16771         * modules/jn (configure.ac): Likewise.
16772         * modules/ldexp (configure.ac): Likewise.
16773         * modules/lgamma (configure.ac): Likewise.
16774         * modules/log (configure.ac): Likewise.
16775         * modules/log10 (configure.ac): Likewise.
16776         * modules/log1p (configure.ac): Likewise.
16777         * modules/logb (configure.ac): Likewise.
16778         * modules/modf (configure.ac): Likewise.
16779         * modules/nextafter (configure.ac): Likewise.
16780         * modules/pow (configure.ac): Likewise.
16781         * modules/remainder (configure.ac): Likewise.
16782         * modules/rint (configure.ac): Likewise.
16783         * modules/sin (configure.ac): Likewise.
16784         * modules/sinh (configure.ac): Likewise.
16785         * modules/tan (configure.ac): Likewise.
16786         * modules/tanh (configure.ac): Likewise.
16787         * modules/y0 (configure.ac): Likewise.
16788         * modules/y1 (configure.ac): Likewise.
16789         * modules/yn (configure.ac): Likewise.
16790
16791 2010-01-24  Bruno Haible  <bruno@clisp.org>
16792
16793         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16794         * tests/test-acosl.c (x): New variable.
16795         (main): Store argument in x and fetch it from x.
16796         * tests/test-asinl.c (x): New variable.
16797         (main): Store argument in x and fetch it from x.
16798         * tests/test-atanl.c (x): New variable.
16799         (main): Store argument in x and fetch it from x.
16800         * tests/test-cosl.c (x): New variable.
16801         (main): Store argument in x and fetch it from x.
16802         * tests/test-expl.c (x): New variable.
16803         (main): Store argument in x and fetch it from x.
16804         * tests/test-logl.c (x): New variable.
16805         (main): Store argument in x and fetch it from x.
16806         * tests/test-sinl.c (x): New variable.
16807         (main): Store argument in x and fetch it from x.
16808         * tests/test-sqrtl.c (x): New variable.
16809         (main): Store argument in x and fetch it from x.
16810         * tests/test-tanl.c (x): New variable.
16811         (main): Store argument in x and fetch it from x.
16812
16813 2010-01-24  Bruno Haible  <bruno@clisp.org>
16814
16815         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16816         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16817         assignments to the initial TESTS_ENVIRONMENT.
16818         * doc/gnulib.texi (Unit test modules): Document it.
16819         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16820         TESTS_ENVIRONMENT.
16821         * modules/btowc-tests (Makefile.am): Likewise.
16822         * modules/c-stack-tests (Makefile.am): Likewise.
16823         * modules/c-strcase-tests (Makefile.am): Likewise.
16824         * modules/copy-file-tests (Makefile.am): Likewise.
16825         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16826         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16827         * modules/mbrtowc-tests (Makefile.am): Likewise.
16828         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16829         * modules/mbscasestr-tests (Makefile.am): Likewise.
16830         * modules/mbschr-tests (Makefile.am): Likewise.
16831         * modules/mbscspn-tests (Makefile.am): Likewise.
16832         * modules/mbsinit-tests (Makefile.am): Likewise.
16833         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16834         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16835         * modules/mbspbrk-tests (Makefile.am): Likewise.
16836         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16837         * modules/mbsrchr-tests (Makefile.am): Likewise.
16838         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16839         * modules/mbsspn-tests (Makefile.am): Likewise.
16840         * modules/mbsstr-tests (Makefile.am): Likewise.
16841         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16842         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16843         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16844         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16845         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16846         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16847         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16848         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16849         * modules/wcrtomb-tests (Makefile.am): Likewise.
16850         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16851         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16852         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16853         assignments from TESTS_ENVIRONMENT.
16854         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16855         augmentation.
16856         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16857         * modules/atexit-tests (Makefile.am): Likewise.
16858         * modules/binary-io-tests (Makefile.am): Likewise.
16859         * modules/closein-tests (Makefile.am): Likewise.
16860         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16861         * modules/exclude-tests (Makefile.am): Likewise.
16862         * modules/fflush-tests (Makefile.am): Likewise.
16863         * modules/fpending-tests (Makefile.am): Likewise.
16864         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16865         * modules/freadahead-tests (Makefile.am): Likewise.
16866         * modules/freadptr-tests (Makefile.am): Likewise.
16867         * modules/freadseek-tests (Makefile.am): Likewise.
16868         * modules/fseek-tests (Makefile.am): Likewise.
16869         * modules/fseeko-tests (Makefile.am): Likewise.
16870         * modules/ftell-tests (Makefile.am): Likewise.
16871         * modules/ftello-tests (Makefile.am): Likewise.
16872         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16873         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16874         * modules/lseek-tests (Makefile.am): Likewise.
16875         * modules/parse-duration-tests (Makefile.am): Likewise.
16876         * modules/perror-tests (Makefile.am): Likewise.
16877         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16878         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16879         * modules/pipe-tests (Makefile.am): Likewise.
16880         * modules/pread-tests (Makefile.am): Likewise.
16881         * modules/printf-posix-tests (Makefile.am): Likewise.
16882         * modules/select-tests (Makefile.am): Likewise.
16883         * modules/sigpipe-tests (Makefile.am): Likewise.
16884         * modules/tsearch-tests (Makefile.am): Likewise.
16885         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16886         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16887         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16888         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16889         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16890         * modules/version-etc-tests (Makefile.am): Likewise.
16891         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16892         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16893         * modules/xalloc-die-tests (Makefile.am): Likewise.
16894         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16895         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16896         * modules/xstrtol-tests (Makefile.am): Likewise.
16897         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16898         * modules/yesno-tests (Makefile.am): Likewise.
16899         Suggested by Jim Meyering.
16900
16901 2010-01-24  Bruno Haible  <bruno@clisp.org>
16902
16903         More documentation.
16904         * doc/gnulib.texi (Writing modules): New chapter.
16905         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16906         the new chapter.
16907
16908 2010-01-24  Jim Meyering  <meyering@redhat.com>
16909
16910         maint.mk: do not prepend "./" after filtering
16911         * top/maint.mk (_prepend_srcdir_prefix): New variable
16912         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16913         "./" when $(srcdir) is ".".
16914
16915         define STREQ(a,b) consistently, removing useless parentheses
16916         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16917         since the only risk is that "a" or "b" contains an unparenthesized
16918         comma, but if either did that, STREQ would have 3 or more arguments.
16919         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16920         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16921         * lib/hash-triple.c (STREQ): Likewise.
16922         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16923         * lib/getugroups.c (STREQ): Likewise.
16924
16925 2010-01-23  Jim Meyering  <meyering@redhat.com>
16926
16927         maint.mk: fix syntax-check in a non-srcdir build directory
16928         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16929         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16930
16931 2010-01-22  Jim Meyering  <meyering@redhat.com>
16932
16933         userspec: add unit tests
16934         * tests/test-userspec.c: New file.
16935         * modules/userspec-tests: Likewise.
16936
16937 2010-01-21  Jim Meyering  <meyering@redhat.com>
16938
16939         maint.mk: handle source file names containing "." robustly
16940         * top/maint.mk (_dot_escaped_srcdir): Define.
16941         (VC_LIST): Use it in LHS of sed substitution.
16942
16943 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16944
16945         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16946         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16947         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16948         from a non-srcdir build.
16949
16950 2010-01-20  Eric Blake  <ebb9@byu.net>
16951
16952         warn-on-use: use instead of link-warning
16953         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16954         * modules/unistd (Depends-on, Makefile.am): Likewise.
16955         * modules/arpa_inet (Depends-on): Replace link-warning with
16956         warn-on-use.
16957         (Makefile.am): Update rules accordingly.
16958         * modules/ctype (Depends-on, Makefile.am): Likewise.
16959         * modules/dirent (Depends-on, Makefile.am): Likewise.
16960         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16961         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16962         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16963         * modules/locale (Depends-on, Makefile.am): Likewise.
16964         * modules/math (Depends-on, Makefile.am): Likewise.
16965         * modules/search (Depends-on, Makefile.am): Likewise.
16966         * modules/signal (Depends-on, Makefile.am): Likewise.
16967         * modules/spawn (Depends-on, Makefile.am): Likewise.
16968         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16969         * modules/string (Depends-on, Makefile.am): Likewise.
16970         * modules/strings (Depends-on, Makefile.am): Likewise.
16971         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16972         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16973         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16974         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16975         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16976         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16977         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16978         * modules/wchar (Depends-on, Makefile.am): Likewise.
16979         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16980         should be poisoned.
16981         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16982         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16983         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16984         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16985         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16986         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16987         * m4/math_h.m4 (gl_MATH_H): Likewise.
16988         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16989         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16990         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16991         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16992         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16993         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16994         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16995         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16996         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16998         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16999         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17000         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17001         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17002         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17003         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17004         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17005         GL_LINK_WARNING.
17006         * lib/ctype.in.h: Likewise.
17007         * lib/dirent.in.h: Likewise.
17008         * lib/fcntl.in.h: Likewise.
17009         * lib/inttypes.in.h: Likewise.
17010         * lib/langinfo.in.h: Likewise.
17011         * lib/locale.in.h: Likewise.
17012         * lib/math.in.h: Likewise.
17013         * lib/search.in.h: Likewise.
17014         * lib/signal.in.h: Likewise.
17015         * lib/spawn.in.h: Likewise.
17016         * lib/stdio.in.h: Likewise.
17017         * lib/stdlib.in.h: Likewise.
17018         * lib/string.in.h: Likewise.
17019         * lib/strings.in.h: Likewise.
17020         * lib/sys_file.in.h: Likewise.
17021         * lib/sys_ioctl.in.h: Likewise.
17022         * lib/sys_select.in.h: Likewise.
17023         * lib/sys_socket.in.h: Likewise.
17024         * lib/sys_stat.in.h: Likewise.
17025         * lib/sys_times.in.h: Likewise.
17026         * lib/sys_utsname.in.h: Likewise.
17027         * lib/unistd.in.h: Likewise.
17028         * lib/wchar.in.h: Likewise.
17029
17030 2010-01-20  Bruno Haible  <bruno@clisp.org>
17031
17032         Avoid duplicate -lm.
17033         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17034         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17035         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17036         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17037         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17038         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17039         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17040         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17041         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17042         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17043         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17044         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17045         Reported by Paolo Bonzini.
17046
17047 2010-01-19  Bruno Haible  <bruno@clisp.org>
17048
17049         langinfo, nl_langinfo: Relicense under LGPLv2+.
17050         * modules/langinfo (License): Change to LGPLv2+.
17051         * modules/nl_langinfo (License): Likewise.
17052         Patch by David Lutterkort <lutter@redhat.com>.
17053
17054 2010-01-19  Bruno Haible  <bruno@clisp.org>
17055
17056         Avoid compilation error with cc on OSF/1 5.1.
17057         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17058         statement, not before.
17059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17060
17061 2010-01-18  Bruno Haible  <bruno@clisp.org>
17062
17063         Avoid a link error due to the __printf__ symbol.
17064         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17065         and 2.6.x.
17066         (__format__, __printf__): Remove definitions.
17067         * lib/argp-fmtstream.h: Likewise.
17068         * lib/argp.h: Likewise.
17069         * lib/error.h: Likewise.
17070         * lib/vasnprintf.h: Likewise.
17071         * lib/xprintf.h: Likewise.
17072         * lib/xvasprintf.h: Likewise.
17073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17074
17075 2010-01-18  Bruno Haible  <bruno@clisp.org>
17076
17077         Tests for module 'tanl'.
17078         * modules/tanl-tests: New file.
17079         * tests/test-tanl.c: New file.
17080
17081         Tests for module 'sqrtl'.
17082         * modules/sqrtl-tests: New file.
17083         * tests/test-sqrtl.c: New file.
17084
17085         Tests for module 'sinl'.
17086         * modules/sinl-tests: New file.
17087         * tests/test-sinl.c: New file.
17088
17089         Tests for module 'logl'.
17090         * modules/logl-tests: New file.
17091         * tests/test-logl.c: New file.
17092
17093         Tests for module 'expl'.
17094         * modules/expl-tests: New file.
17095         * tests/test-expl.c: New file.
17096
17097         Tests for module 'cosl'.
17098         * modules/cosl-tests: New file.
17099         * tests/test-cosl.c: New file.
17100
17101         Tests for module 'atanl'.
17102         * modules/atanl-tests: New file.
17103         * tests/test-atanl.c: New file.
17104
17105         Tests for module 'asinl'.
17106         * modules/asinl-tests: New file.
17107         * tests/test-asinl.c: New file.
17108
17109         Tests for module 'acosl'.
17110         * modules/acosl-tests: New file.
17111         * tests/test-acosl.c: New file.
17112
17113         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17114         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17115         tanl): Use the standard gnulib idiom.
17116         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17117         * lib/sinl.c: Likewise.
17118         * lib/tanl.c: Don't include trigl.c.
17119         (kernel_tanl): Make static.
17120         * lib/sincosl.c: Include trigl.h first.
17121         * lib/trigl.c: Likewise.
17122         * m4/acosl.m4: New file.
17123         * m4/asinl.m4: New file.
17124         * m4/atanl.m4: New file.
17125         * m4/cosl.m4: New file.
17126         * m4/expl.m4: New file.
17127         * m4/logl.m4: New file.
17128         * m4/sinl.m4: New file.
17129         * m4/sqrtl.m4: New file.
17130         * m4/tanl.m4: New file.
17131         * m4/mathl.m4: Remove file.
17132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17133         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17134         Don't initialize GNULIB_MATHL.
17135         * modules/acosl: New file.
17136         * modules/asinl: New file.
17137         * modules/atanl: New file.
17138         * modules/cosl: New file.
17139         * modules/expl: New file.
17140         * modules/logl: New file.
17141         * modules/sinl: New file.
17142         * modules/sqrtl: New file.
17143         * modules/tanl: New file.
17144         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17145         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17146         substitute GNULIB_MATHL.
17147         * modules/mathl: Rewritten.
17148         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17149         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17150         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17151         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17152         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17153         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17154         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17155         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17156         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17157
17158 2010-01-18  Bruno Haible  <bruno@clisp.org>
17159
17160         sqrt: Make gl_FUNC_SQRT requirable.
17161         * m4/sqrt.m4: New file.
17162         * modules/sqrt (Files): Add it.
17163         (configure.ac): Invoke gl_FUNC_SQRT.
17164
17165 2010-01-18  Bruno Haible  <bruno@clisp.org>
17166
17167         New modules for common <math.h> functions.
17168         * m4/mathfunc.m4: New file.
17169         * modules/acos: New file.
17170         * modules/asin: New file.
17171         * modules/atan: New file.
17172         * modules/atan2: New file.
17173         * modules/cbrt: New file.
17174         * modules/copysign: New file.
17175         * modules/cos: New file.
17176         * modules/cosh: New file.
17177         * modules/erf: New file.
17178         * modules/erfc: New file.
17179         * modules/exp: New file.
17180         * modules/fabs: New file.
17181         * modules/fmod: New file.
17182         * modules/hypot: New file.
17183         * modules/j0: New file.
17184         * modules/j1: New file.
17185         * modules/jn: New file.
17186         * modules/ldexp: New file.
17187         * modules/lgamma: New file.
17188         * modules/log: New file.
17189         * modules/log10: New file.
17190         * modules/log1p: New file.
17191         * modules/logb: New file.
17192         * modules/modf: New file.
17193         * modules/nextafter: New file.
17194         * modules/pow: New file.
17195         * modules/remainder: New file.
17196         * modules/rint: New file.
17197         * modules/sin: New file.
17198         * modules/sinh: New file.
17199         * modules/sqrt: New file.
17200         * modules/tan: New file.
17201         * modules/tanh: New file.
17202         * modules/y0: New file.
17203         * modules/y1: New file.
17204         * modules/yn: New file.
17205         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17206         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17207         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17208         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17209         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17210         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17211         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17212         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17213         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17214         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17215         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17216         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17217         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17218         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17219         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17220         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17221         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17222         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17223         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17224         * doc/posix-functions/log.texi: Mention the 'log' module.
17225         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17226         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17227         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17228         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17229         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17230         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17231         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17232         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17233         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17234         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17235         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17236         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17237         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17238         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17239         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17240         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17241
17242 2010-01-18  Jim Meyering  <meyering@redhat.com>
17243
17244         ignore-value: relax license to LGPLv2+
17245         * modules/ignore-value (License): Relax to LGPLv2+.
17246
17247         getdate: don't leak when TZ contains two or more '"'s
17248         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17249         double quote in TZ after the first one.
17250
17251         readtokens: do not leak internal token_lengths buffer
17252         * lib/readtokens.c (readtokens): Free the local, lengths,
17253         when the supplied "token_lengths" parameter is NULL.
17254
17255 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17256
17257         Fix a couple of missing LIBTHREAD link failures on AIX.
17258         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17259         $(LIBTHREAD).
17260         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17261
17262         Link test-poll against INET_PTON_LIB.
17263         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17264         for inet_pton on Solaris 10.
17265
17266 2010-01-17  Bruno Haible  <bruno@clisp.org>
17267
17268         unistdio/*-sprintf: Fix typo in module description.
17269         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17270         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17271         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17272         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17273         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17274         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17275         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17276         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17277
17278 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17279
17280         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17281         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17282         variables in shell case patterns, for AIX and HP-UX ksh.
17283
17284         Split large sed scripts, for HP-UX sed.
17285         * modules/stdio: Split sed scripts around 50 sed commands,
17286         to avoid HP-UX limit of 99 commands, in the near future.
17287         * modules/string: Likewise.
17288         * modules/unistd: Likewise.
17289
17290         gnulib-tool: avoid writing in the current directory.
17291         * gnulib-tool (func_emit_lib_Makefile_am)
17292         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17293         not in the current directory, so concurrent gnulib-tool
17294         instances do not interfere.
17295
17296 2010-01-16  Jim Meyering  <meyering@redhat.com>
17297
17298         doc: update users.txt
17299         * users.txt: Add grep.
17300         (diffutils, gzip): Update URLs.
17301
17302 2010-01-12  Bruno Haible  <bruno@clisp.org>
17303
17304         posix_spawn: Avoid test failure on Cygwin.
17305         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17306         characters.
17307         Reported by Simon Josefsson.
17308
17309 2010-01-12  Bruno Haible  <bruno@clisp.org>
17310
17311         * tests/test-cond.c (main): When skipping the test, show the reason.
17312
17313 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17314
17315         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17316
17317 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17318
17319         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17320         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17321
17322 2010-01-12  Eric Blake  <ebb9@byu.net>
17323
17324         build: guarantee AS_VAR_IF
17325         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17326         (gl_AS_VAR_IF): Move...
17327         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17328         Reported by Simon Josefsson.
17329
17330 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17331
17332         * lib/stdio.in.h: Fix typo.
17333
17334 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17335
17336         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17337         libgpg-error.
17338
17339 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17340
17341         * tests/test-xalloc-die.sh: Use $EXEEXT.
17342
17343 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17344             Bruno Haible  <bruno@clisp.org>
17345
17346         getlogin, getlogin_r: Avoid test failure.
17347         * tests/test-getlogin.c: Include <stdio.h>.
17348         (main): Skip the test when the function fails because stdin is not a
17349         tty.
17350         * tests/test-getlogin_r.c: Include <stdio.h>.
17351         (main): Skip the test when the function fails because stdin is not a
17352         tty.
17353
17354 2010-01-11  Eric Blake  <ebb9@byu.net>
17355
17356         tests: avoid more large file warnings
17357         * tests/test-fflush.c: Avoid warning about ftell use.
17358         * tests/test-fseek.c: Avoid warning about fseek use.
17359
17360 2010-01-10  Bruno Haible  <bruno@clisp.org>
17361
17362         nproc: Work better on Linux when /proc and /sys are not mounted.
17363         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17364         as lower bound when, on glibc/Linux systems,
17365         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17366         Suggested by Pádraig Brady <P@draigbrady.com>.
17367         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17368
17369         nproc: Refactor.
17370         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17371         extracted from num_processors.
17372         (num_processors): Call it.
17373
17374 2010-01-11  Jim Meyering  <meyering@redhat.com>
17375
17376         utimecmp: avoid new warning from upcoming gcc-4.5.0
17377         * lib/utimecmp.c (BILLION): Define using #define rather than an
17378         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17379
17380 2010-01-11  Eric Blake  <ebb9@byu.net>
17381
17382         math: add portability warnings for classification macros
17383         * modules/math (Depends-on): Add warn-on-use.
17384         (Makefile.am): Provide new substitutions.
17385         * m4/math_h.m4 (gl_MATH_H): Require inline.
17386         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17387         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17388         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17389         implement warnings.
17390
17391         unistd: warn on use of environ without module
17392         * modules/unistd (Depends-on): Add warn-on-use.
17393         (Makefile.am): Provide new substitutions.
17394         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17395         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17396
17397         stdio: warn on suspicious uses
17398         * modules/stdio (Depends-on): Add warn-on-use.
17399         (Makefile.am): Provide new substitutions.
17400         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17401         fseeko.
17402         * lib/stdio.in.h (gets): Always warn on use.
17403         (fseek, ftell): Adjust when warnings are issued, and honor
17404         _GL_NO_LARGE_FILES as a way to silence the warning.
17405         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17406         any warning about large file offsets.
17407         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17408         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17409         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17410         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17411         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17412         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17413         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17414         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17415
17416         warn-on-use: new module
17417         * modules/warn-on-use: New file.
17418         * build-aux/warn-on-use.h: Likewise.
17419         * m4/warn-on-use.m4: Likewise.
17420         * MODULES.html.sh (Support for building): Mention it.
17421
17422 2010-01-10  Bruno Haible  <bruno@clisp.org>
17423
17424         Tests for module 'unistr/u32-strdup'.
17425         * modules/unistr/u32-strdup-tests: New file.
17426         * tests/unistr/test-u32-strdup.c: New file.
17427
17428         Tests for module 'unistr/u16-strdup'.
17429         * modules/unistr/u16-strdup-tests: New file.
17430         * tests/unistr/test-u16-strdup.c: New file.
17431
17432         Tests for module 'unistr/u8-strdup'.
17433         * modules/unistr/u8-strdup-tests: New file.
17434         * tests/unistr/test-u8-strdup.c: New file.
17435         * tests/unistr/test-strdup.h: New file.
17436
17437         Tests for module 'unistr/u32-strncmp'.
17438         * modules/unistr/u32-strncmp-tests: New file.
17439         * tests/unistr/test-u32-strncmp.c: New file.
17440
17441         Tests for module 'unistr/u16-strncmp'.
17442         * modules/unistr/u16-strncmp-tests: New file.
17443         * tests/unistr/test-u16-strncmp.c: New file.
17444
17445         Tests for module 'unistr/u8-strncmp'.
17446         * modules/unistr/u8-strncmp-tests: New file.
17447         * tests/unistr/test-u8-strncmp.c: New file.
17448         * tests/unistr/test-strncmp.h: New file.
17449
17450         Tests for module 'unistr/u32-strcoll'.
17451         * modules/unistr/u32-strcoll-tests: New file.
17452         * tests/unistr/test-u32-strcoll.c: New file.
17453
17454         Tests for module 'unistr/u16-strcoll'.
17455         * modules/unistr/u16-strcoll-tests: New file.
17456         * tests/unistr/test-u16-strcoll.c: New file.
17457
17458         Tests for module 'unistr/u8-strcoll'.
17459         * modules/unistr/u8-strcoll-tests: New file.
17460         * tests/unistr/test-u8-strcoll.c: New file.
17461
17462         Tests for module 'unistr/u32-strcmp'.
17463         * modules/unistr/u32-strcmp-tests: New file.
17464         * tests/unistr/test-u32-strcmp.c: New file.
17465         * tests/unistr/test-u32-strcmp.h: New file.
17466
17467         Tests for module 'unistr/u16-strcmp'.
17468         * modules/unistr/u16-strcmp-tests: New file.
17469         * tests/unistr/test-u16-strcmp.c: New file.
17470         * tests/unistr/test-u16-strcmp.h: New file.
17471
17472         Tests for module 'unistr/u8-strcmp'.
17473         * modules/unistr/u8-strcmp-tests: New file.
17474         * tests/unistr/test-u8-strcmp.c: New file.
17475         * tests/unistr/test-u8-strcmp.h: New file.
17476         * tests/unistr/test-strcmp.h: New file.
17477
17478         Tests for module 'unistr/u32-strncat'.
17479         * modules/unistr/u32-strncat-tests: New file.
17480         * tests/unistr/test-u32-strncat.c: New file.
17481
17482         Tests for module 'unistr/u16-strncat'.
17483         * modules/unistr/u16-strncat-tests: New file.
17484         * tests/unistr/test-u16-strncat.c: New file.
17485
17486         Tests for module 'unistr/u8-strncat'.
17487         * modules/unistr/u8-strncat-tests: New file.
17488         * tests/unistr/test-u8-strncat.c: New file.
17489         * tests/unistr/test-strncat.h: New file.
17490
17491         Tests for module 'unistr/u32-strcat'.
17492         * modules/unistr/u32-strcat-tests: New file.
17493         * tests/unistr/test-u32-strcat.c: New file.
17494
17495         Tests for module 'unistr/u16-strcat'.
17496         * modules/unistr/u16-strcat-tests: New file.
17497         * tests/unistr/test-u16-strcat.c: New file.
17498
17499         Tests for module 'unistr/u8-strcat'.
17500         * modules/unistr/u8-strcat-tests: New file.
17501         * tests/unistr/test-u8-strcat.c: New file.
17502         * tests/unistr/test-strcat.h: New file.
17503
17504         Tests for module 'unistr/u32-stpncpy'.
17505         * modules/unistr/u32-stpncpy-tests: New file.
17506         * tests/unistr/test-u32-stpncpy.c: New file.
17507
17508         Tests for module 'unistr/u16-stpncpy'.
17509         * modules/unistr/u16-stpncpy-tests: New file.
17510         * tests/unistr/test-u16-stpncpy.c: New file.
17511
17512         Tests for module 'unistr/u8-stpncpy'.
17513         * modules/unistr/u8-stpncpy-tests: New file.
17514         * tests/unistr/test-u8-stpncpy.c: New file.
17515         * tests/unistr/test-stpncpy.h: New file.
17516
17517         Tests for module 'unistr/u32-strncpy'.
17518         * modules/unistr/u32-strncpy-tests: New file.
17519         * tests/unistr/test-u32-strncpy.c: New file.
17520
17521         Tests for module 'unistr/u16-strncpy'.
17522         * modules/unistr/u16-strncpy-tests: New file.
17523         * tests/unistr/test-u16-strncpy.c: New file.
17524
17525         Tests for module 'unistr/u8-strncpy'.
17526         * modules/unistr/u8-strncpy-tests: New file.
17527         * tests/unistr/test-u8-strncpy.c: New file.
17528         * tests/unistr/test-strncpy.h: New file.
17529
17530         Tests for module 'unistr/u32-stpcpy'.
17531         * modules/unistr/u32-stpcpy-tests: New file.
17532         * tests/unistr/test-u32-stpcpy.c: New file.
17533
17534         Tests for module 'unistr/u16-stpcpy'.
17535         * modules/unistr/u16-stpcpy-tests: New file.
17536         * tests/unistr/test-u16-stpcpy.c: New file.
17537
17538         Tests for module 'unistr/u8-stpcpy'.
17539         * modules/unistr/u8-stpcpy-tests: New file.
17540         * tests/unistr/test-u8-stpcpy.c: New file.
17541         * tests/unistr/test-stpcpy.h: New file.
17542
17543         Tests for module 'unistr/u32-strcpy'.
17544         * modules/unistr/u32-strcpy-tests: New file.
17545         * tests/unistr/test-u32-strcpy.c: New file.
17546
17547         Tests for module 'unistr/u16-strcpy'.
17548         * modules/unistr/u16-strcpy-tests: New file.
17549         * tests/unistr/test-u16-strcpy.c: New file.
17550
17551         Tests for module 'unistr/u8-strcpy'.
17552         * modules/unistr/u8-strcpy-tests: New file.
17553         * tests/unistr/test-u8-strcpy.c: New file.
17554         * tests/unistr/test-strcpy.h: New file.
17555
17556         Tests for module 'unistr/u32-strnlen'.
17557         * modules/unistr/u32-strnlen-tests: New file.
17558         * tests/unistr/test-u32-strnlen.c: New file.
17559
17560         Tests for module 'unistr/u16-strnlen'.
17561         * modules/unistr/u16-strnlen-tests: New file.
17562         * tests/unistr/test-u16-strnlen.c: New file.
17563
17564         Tests for module 'unistr/u8-strnlen'.
17565         * modules/unistr/u8-strnlen-tests: New file.
17566         * tests/unistr/test-u8-strnlen.c: New file.
17567         * tests/unistr/test-strnlen.h: New file.
17568
17569         Tests for module 'unistr/u32-strlen'.
17570         * modules/unistr/u32-strlen-tests: New file.
17571         * tests/unistr/test-u32-strlen.c: New file.
17572
17573         Tests for module 'unistr/u16-strlen'.
17574         * modules/unistr/u16-strlen-tests: New file.
17575         * tests/unistr/test-u16-strlen.c: New file.
17576
17577         Tests for module 'unistr/u8-strlen'.
17578         * modules/unistr/u8-strlen-tests: New file.
17579         * tests/unistr/test-u8-strlen.c: New file.
17580
17581         Tests for module 'unistr/u32-prev'.
17582         * modules/unistr/u32-prev-tests: New file.
17583         * tests/unistr/test-u32-prev.c: New file.
17584
17585         Tests for module 'unistr/u16-prev'.
17586         * modules/unistr/u16-prev-tests: New file.
17587         * tests/unistr/test-u16-prev.c: New file.
17588
17589         Tests for module 'unistr/u8-prev'.
17590         * modules/unistr/u8-prev-tests: New file.
17591         * tests/unistr/test-u8-prev.c: New file.
17592
17593         Tests for module 'unistr/u32-next'.
17594         * modules/unistr/u32-next-tests: New file.
17595         * tests/unistr/test-u32-next.c: New file.
17596
17597         Tests for module 'unistr/u16-next'.
17598         * modules/unistr/u16-next-tests: New file.
17599         * tests/unistr/test-u16-next.c: New file.
17600
17601         Tests for module 'unistr/u8-next'.
17602         * modules/unistr/u8-next-tests: New file.
17603         * tests/unistr/test-u8-next.c: New file.
17604
17605         Tests for module 'unistr/u32-strmbtouc'.
17606         * modules/unistr/u32-strmbtouc-tests: New file.
17607         * tests/unistr/test-u32-strmbtouc.c: New file.
17608
17609         Tests for module 'unistr/u16-strmbtouc'.
17610         * modules/unistr/u16-strmbtouc-tests: New file.
17611         * tests/unistr/test-u16-strmbtouc.c: New file.
17612
17613         Tests for module 'unistr/u8-strmbtouc'.
17614         * modules/unistr/u8-strmbtouc-tests: New file.
17615         * tests/unistr/test-u8-strmbtouc.c: New file.
17616
17617         Tests for module 'unistr/u32-strmblen'.
17618         * modules/unistr/u32-strmblen-tests: New file.
17619         * tests/unistr/test-u32-strmblen.c: New file.
17620
17621         Tests for module 'unistr/u16-strmblen'.
17622         * modules/unistr/u16-strmblen-tests: New file.
17623         * tests/unistr/test-u16-strmblen.c: New file.
17624
17625         Tests for module 'unistr/u8-strmblen'.
17626         * modules/unistr/u8-strmblen-tests: New file.
17627         * tests/unistr/test-u8-strmblen.c: New file.
17628
17629         Tests for module 'unistr/u32-cpy-alloc'.
17630         * modules/unistr/u32-cpy-alloc-tests: New file.
17631         * tests/unistr/test-u32-cpy-alloc.c: New file.
17632
17633         Tests for module 'unistr/u16-cpy-alloc'.
17634         * modules/unistr/u16-cpy-alloc-tests: New file.
17635         * tests/unistr/test-u16-cpy-alloc.c: New file.
17636
17637         Tests for module 'unistr/u8-cpy-alloc'.
17638         * modules/unistr/u8-cpy-alloc-tests: New file.
17639         * tests/unistr/test-u8-cpy-alloc.c: New file.
17640         * tests/unistr/test-cpy-alloc.h: New file.
17641
17642         Tests for module 'unistr/u32-mbsnlen'.
17643         * modules/unistr/u32-mbsnlen-tests: New file.
17644         * tests/unistr/test-u32-mbsnlen.c: New file.
17645
17646         Tests for module 'unistr/u16-mbsnlen'.
17647         * modules/unistr/u16-mbsnlen-tests: New file.
17648         * tests/unistr/test-u16-mbsnlen.c: New file.
17649
17650         Tests for module 'unistr/u8-mbsnlen'.
17651         * modules/unistr/u8-mbsnlen-tests: New file.
17652         * tests/unistr/test-u8-mbsnlen.c: New file.
17653
17654         Tests for module 'unistr/u32-chr'.
17655         * modules/unistr/u32-chr-tests: New file.
17656         * tests/unistr/test-u32-chr.c: New file.
17657
17658         Tests for module 'unistr/u16-chr'.
17659         * modules/unistr/u16-chr-tests: New file.
17660         * tests/unistr/test-u16-chr.c: New file.
17661
17662         Tests for module 'unistr/u8-chr'.
17663         * modules/unistr/u8-chr-tests: New file.
17664         * tests/unistr/test-u8-chr.c: New file.
17665         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17666
17667         Tests for module 'unistr/u32-cmp2'.
17668         * modules/unistr/u32-cmp2-tests: New file.
17669         * tests/unistr/test-u32-cmp2.c: New file.
17670
17671         Tests for module 'unistr/u16-cmp2'.
17672         * modules/unistr/u16-cmp2-tests: New file.
17673         * tests/unistr/test-u16-cmp2.c: New file.
17674
17675         Tests for module 'unistr/u8-cmp2'.
17676         * modules/unistr/u8-cmp2-tests: New file.
17677         * tests/unistr/test-u8-cmp2.c: New file.
17678         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17679
17680         Tests for module 'unistr/u32-cmp'.
17681         * modules/unistr/u32-cmp-tests: New file.
17682         * tests/unistr/test-u32-cmp.c: New file.
17683
17684         Tests for module 'unistr/u16-cmp'.
17685         * modules/unistr/u16-cmp-tests: New file.
17686         * tests/unistr/test-u16-cmp.c: New file.
17687
17688         Tests for module 'unistr/u8-cmp'.
17689         * modules/unistr/u8-cmp-tests: New file.
17690         * tests/unistr/test-u8-cmp.c: New file.
17691         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17692
17693         Tests for module 'unistr/u32-set'.
17694         * modules/unistr/u32-set-tests: New file.
17695         * tests/unistr/test-u32-set.c: New file.
17696
17697         Tests for module 'unistr/u16-set'.
17698         * modules/unistr/u16-set-tests: New file.
17699         * tests/unistr/test-u16-set.c: New file.
17700
17701         Tests for module 'unistr/u8-set'.
17702         * modules/unistr/u8-set-tests: New file.
17703         * tests/unistr/test-u8-set.c: New file.
17704         * tests/unistr/test-set.h: New file.
17705
17706         Tests for module 'unistr/u32-move'.
17707         * modules/unistr/u32-move-tests: New file.
17708         * tests/unistr/test-u32-move.c: New file.
17709
17710         Tests for module 'unistr/u16-move'.
17711         * modules/unistr/u16-move-tests: New file.
17712         * tests/unistr/test-u16-move.c: New file.
17713
17714         Tests for module 'unistr/u8-move'.
17715         * modules/unistr/u8-move-tests: New file.
17716         * tests/unistr/test-u8-move.c: New file.
17717         * tests/unistr/test-move.h: New file.
17718
17719         Tests for module 'unistr/u32-cpy'.
17720         * modules/unistr/u32-cpy-tests: New file.
17721         * tests/unistr/test-u32-cpy.c: New file.
17722
17723         Tests for module 'unistr/u16-cpy'.
17724         * modules/unistr/u16-cpy-tests: New file.
17725         * tests/unistr/test-u16-cpy.c: New file.
17726
17727         Tests for module 'unistr/u8-cpy'.
17728         * modules/unistr/u8-cpy-tests: New file.
17729         * tests/unistr/test-u8-cpy.c: New file.
17730         * tests/unistr/test-cpy.h: New file.
17731
17732 2010-01-09  Bruno Haible  <bruno@clisp.org>
17733
17734         Tests for module 'unistr/u32-uctomb'.
17735         * modules/unistr/u32-uctomb-tests: New file.
17736         * tests/unistr/test-u32-uctomb.c: New file.
17737
17738         Tests for module 'unistr/u16-uctomb'.
17739         * modules/unistr/u16-uctomb-tests: New file.
17740         * tests/unistr/test-u16-uctomb.c: New file.
17741
17742         Tests for module 'unistr/u8-uctomb'.
17743         * modules/unistr/u8-uctomb-tests: New file.
17744         * tests/unistr/test-u8-uctomb.c: New file.
17745
17746         Tests for module 'unistr/u32-mbtoucr'.
17747         * modules/unistr/u32-mbtoucr-tests: New file.
17748         * tests/unistr/test-u32-mbtoucr.c: New file.
17749
17750         Tests for module 'unistr/u16-mbtoucr'.
17751         * modules/unistr/u16-mbtoucr-tests: New file.
17752         * tests/unistr/test-u16-mbtoucr.c: New file.
17753
17754         Tests for module 'unistr/u8-mbtoucr'.
17755         * modules/unistr/u8-mbtoucr-tests: New file.
17756         * tests/unistr/test-u8-mbtoucr.c: New file.
17757
17758         Tests for module 'unistr/u32-mbtouc'.
17759         * modules/unistr/u32-mbtouc-tests: New file.
17760         * tests/unistr/test-u32-mbtouc.c: New file.
17761
17762         Tests for module 'unistr/u16-mbtouc'.
17763         * modules/unistr/u16-mbtouc-tests: New file.
17764         * tests/unistr/test-u16-mbtouc.c: New file.
17765
17766         Tests for module 'unistr/u8-mbtouc'.
17767         * modules/unistr/u8-mbtouc-tests: New file.
17768         * tests/unistr/test-u8-mbtouc.c: New file.
17769
17770         Tests for module 'unistr/u32-mbtouc-unsafe'.
17771         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17772         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17773         * tests/unistr/test-u32-mbtouc.h: New file.
17774
17775         Tests for module 'unistr/u16-mbtouc-unsafe'.
17776         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17777         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17778         * tests/unistr/test-u16-mbtouc.h: New file.
17779
17780         Tests for module 'unistr/u8-mbtouc-unsafe'.
17781         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17782         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17783         * tests/unistr/test-u8-mbtouc.h: New file.
17784
17785         Tests for module 'unistr/u32-mblen'.
17786         * modules/unistr/u32-mblen-tests: New file.
17787         * tests/unistr/test-u32-mblen.c: New file.
17788
17789         Tests for module 'unistr/u16-mblen'.
17790         * modules/unistr/u16-mblen-tests: New file.
17791         * tests/unistr/test-u16-mblen.c: New file.
17792
17793         Tests for module 'unistr/u8-mblen'.
17794         * modules/unistr/u8-mblen-tests: New file.
17795         * tests/unistr/test-u8-mblen.c: New file.
17796
17797         Tests for module 'unistr/u32-to-u16'.
17798         * modules/unistr/u32-to-u16-tests: New file.
17799         * tests/unistr/test-u32-to-u16.c: New file.
17800
17801         Tests for module 'unistr/u32-to-u8'.
17802         * modules/unistr/u32-to-u8-tests: New file.
17803         * tests/unistr/test-u32-to-u8.c: New file.
17804
17805         Tests for module 'unistr/u16-to-u32'.
17806         * modules/unistr/u16-to-u32-tests: New file.
17807         * tests/unistr/test-u16-to-u32.c: New file.
17808
17809         Tests for module 'unistr/u16-to-u8'.
17810         * modules/unistr/u16-to-u8-tests: New file.
17811         * tests/unistr/test-u16-to-u8.c: New file.
17812
17813         Tests for module 'unistr/u8-to-u32'.
17814         * modules/unistr/u8-to-u32-tests: New file.
17815         * tests/unistr/test-u8-to-u32.c: New file.
17816
17817         Tests for module 'unistr/u8-to-u16'.
17818         * modules/unistr/u8-to-u16-tests: New file.
17819         * tests/unistr/test-u8-to-u16.c: New file.
17820
17821         Tests for module 'unistr/u32-check'.
17822         * modules/unistr/u32-check-tests: New file.
17823         * tests/unistr/test-u32-check.c: New file.
17824
17825         Tests for module 'unistr/u16-check'.
17826         * modules/unistr/u16-check-tests: New file.
17827         * tests/unistr/test-u16-check.c: New file.
17828
17829         Tests for module 'unistr/u8-check'.
17830         * modules/unistr/u8-check-tests: New file.
17831         * tests/unistr/test-u8-check.c: New file.
17832
17833         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17834         (category_equals): New function.
17835         (main): Add more tests.
17836         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17837
17838         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17839
17840 2010-01-10  Bruno Haible  <bruno@clisp.org>
17841
17842         unistr/u*-strcoll: Try harder to distinguish different strings.
17843         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17844         compare s1 and s2 to see if they are different.
17845
17846 2010-01-10  Bruno Haible  <bruno@clisp.org>
17847
17848         unistr/u*-stpncpy: Fix the return value.
17849         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17850         description of the return value consistent with stpncpy in glibc.
17851         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17852         written non-NUL unit.
17853
17854 2010-01-10  Bruno Haible  <bruno@clisp.org>
17855
17856         unistr/u*-next: Add missing dependencies.
17857         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17858         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17859         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17860
17861 2010-01-10  Bruno Haible  <bruno@clisp.org>
17862
17863         unistr/u8-mbsnlen: Fix return value for incomplete character.
17864         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17865         u8_mblen.
17866         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17867         Remove unistr/u8-mblen.
17868         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17869         u16_mblen.
17870         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17871         Remove unistr/u16-mblen.
17872
17873 2010-01-10  Bruno Haible  <bruno@clisp.org>
17874
17875         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17876         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17877         Reported by Brian Gough <bjg@gnu.org> and
17878         Chris Clayton <chris2553@googlemail.com> via
17879         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17880
17881 2010-01-09  Bruno Haible  <bruno@clisp.org>
17882
17883         unistr/u16-to-u32: Reject invalid input.
17884         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17885         u16_mbtouc.
17886         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17887         Remove unistr/u16-mbtouc.
17888
17889         unistr/u16-to-u8: Reject invalid input.
17890         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17891         u16_mbtouc.
17892         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17893         Remove unistr/u16-mbtouc.
17894
17895         unistr/u8-to-u32: Reject invalid input.
17896         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17897         u8_mbtouc.
17898         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17899         Remove unistr/u8-mbtouc.
17900
17901         unistr/u8-to-u16: Reject invalid input.
17902         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17903         u8_mbtouc.
17904         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17905         Remove unistr/u8-mbtouc.
17906
17907 2010-01-09  Bruno Haible  <bruno@clisp.org>
17908
17909         Tests for module 'getlogin'.
17910         * modules/getlogin-tests: New file.
17911         * tests/test-getlogin.c: New file.
17912
17913         New module 'getlogin'.
17914         * lib/unistd.in.h (getlogin): New declaration.
17915         * lib/getlogin.c: New file.
17916         * m4/getlogin.m4: New file.
17917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17918         HAVE_GETLOGIN.
17919         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17920         HAVE_GETLOGIN.
17921         * modules/getlogin: New file.
17922         * doc/posix-functions/getlogin.texi: Mention the new module.
17923         Reported by John W. Eaton <jwe@gnu.org>.
17924
17925 2010-01-09  Bruno Haible  <bruno@clisp.org>
17926
17927         getlogin_r: Support for native Windows.
17928         * lib/getlogin_r.c: Include <windows.h>
17929         (getlogin_r): Implement for native Windows.
17930         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17931         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17932         via John W. Eaton <jwe@gnu.org>.
17933
17934 2010-01-09  Bruno Haible  <bruno@clisp.org>
17935
17936         getlogin_r: Small fixes.
17937         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17938         succeeds.
17939         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17940         before testing whether getlogin_r is declared. No need to set
17941         HAVE_DECL_GETLOGIN_R to 1.
17942         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17943
17944 2010-01-09  Bruno Haible  <bruno@clisp.org>
17945
17946         * lib/unistd.in.h (getlogin_r): Add comment.
17947
17948 2010-01-09  Bruno Haible  <bruno@clisp.org>
17949
17950         Tests for module 'getlogin_r'.
17951         * modules/getlogin_r-tests: New file.
17952         * tests/test-getlogin_r.c: New file.
17953
17954 2010-01-09  Jim Meyering  <meyering@redhat.com>
17955
17956         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17957         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17958         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17959
17960 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17961
17962         * lib/dup2.c (rpl_dup2): Improve comment.
17963
17964 2010-01-08  Eric Blake  <ebb9@byu.net>
17965
17966         maint.mk: allow packages to add makefile @@ exceptions
17967         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17968         (sc_makefile_check): Rename...
17969         (sc_makefile_at_at_check): ...to this, and use hook.
17970
17971         dup2: work around mingw bug
17972         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17973         Reported by Simon Josefsson.
17974
17975 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17976
17977         glob: Fix C++ compilation.
17978         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17979         C++.
17980
17981 2010-01-07  Bruno Haible  <bruno@clisp.org>
17982
17983         Fix indentation of wctype.in.h, broken since 2007-01-06.
17984         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17985
17986 2010-01-07  Bruno Haible  <bruno@clisp.org>
17987
17988         mbslen: Avoid collision with system function.
17989         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17990         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17991         * m4/mbslen.m4: New file.
17992         * modules/mbslen (Files): Add it.
17993         (configure.ac): Invoke gl_MBSLEN.
17994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17995         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17996         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17997         via Ian Beckwith <ianb@erislabs.net>.
17998
17999 2010-01-07  Bruno Haible  <bruno@clisp.org>
18000
18001         dirent: Document the last fix.
18002         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18003
18004 2010-01-07  Bruno Haible  <bruno@clisp.org>
18005
18006         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18007         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18008         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18009         va_list are defined.
18010         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18011         Reported by Eric Blake.
18012
18013 2010-01-07  Bruno Haible  <bruno@clisp.org>
18014
18015         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18016         * modules/xlist (Depends-on): Add 'list',
18017         * modules/xoset (Depends-on): Add 'oset'.
18018         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18019
18020 2010-01-07  Bruno Haible  <bruno@clisp.org>
18021
18022         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18023         * doc/posix-functions/strncasecmp.texi: Likewise.
18024
18025 2010-01-07  Bruno Haible  <bruno@clisp.org>
18026
18027         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18028
18029 2010-01-07  John W. Eaton  <jwe@octave.org>
18030
18031         wctype: allow C++ use
18032         * lib/wctype.in.h: Add extern "C" block for C++.
18033
18034 2010-01-06  Eric Blake  <ebb9@byu.net>
18035
18036         maint.mk: detect incorrect GFDL usage
18037         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18038
18039 2010-01-06  Jim Meyering  <meyering@redhat.com>
18040         and Eric Blake  <ebb9@byu.net>
18041
18042         maint.mk: ignore multi-line copyright in NEWS
18043         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18044
18045 2010-01-06  Eric Blake  <ebb9@byu.net>
18046
18047         select: add missing dependency
18048         * modules/select-tests (Depends-on): Move sockets dependency...
18049         * modules/select (Depends-on): ...here.
18050         Reported by Ian Beckwith.
18051
18052         doc: regenerate INSTALL
18053         * doc/INSTALL: Reflect recent autoconf update.
18054         * doc/INSTALL.ISO: Likewise.
18055         * doc/INSTALL.UTF-8: Likewise.
18056
18057         pread: fix compilation on glibc
18058         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18059         Reported by Ralf Wildenhues.
18060
18061         dirent: fix test failure
18062         * lib/dirent.in.h (includes): Guarantee ino_t.
18063         Reported by Ralf Wildenhues.
18064
18065 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18066
18067         linkat, renameat: avoid bad free
18068         * lib/at-func2.c (at_func2): Fix typo.
18069         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18070
18071 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18072
18073         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18074         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18075         to avoid failure of symlink test later.
18076
18077 2010-01-06  Eric Blake  <ebb9@byu.net>
18078
18079         stdio, unistd: guarantee ssize_t
18080         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18081         2008 are exposed when needed.
18082         * lib/stdio.in.h (includes): Likewise.
18083         Reported by Ralf Wildenhues.
18084
18085 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18086
18087         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18088         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18089         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18090
18091 2010-01-06  Jim Meyering  <meyering@redhat.com>
18092
18093         readtokens: this module *does* require xalloc.h
18094         It uses only functions that were omitted by the old syntax-check rule.
18095         * lib/readtokens.c: Include "xalloc.h" once again.
18096         * modules/readtokens (Depends-on): Add xalloc.
18097         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18098
18099 2010-01-05  Eric Blake  <ebb9@byu.net>
18100
18101         maint: support 'make announcement' from a VPATH build
18102         * top/maint.mk (announcement): Look for correct NEWS file.
18103
18104 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18105
18106         utimens (fdutimens): ignore a negative FD, per contract
18107         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18108         when we have a valid file descriptor.  Otherwise, using a brand
18109         new glibc (with just-patched futimens that now fails with EBADF)
18110         would cause this function to fail with ENOSYS.
18111         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18112         See also http://bugzilla.redhat.com/552320.
18113
18114 2010-01-05  Eric Blake  <ebb9@byu.net>
18115
18116         strcase: document what it provides
18117         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18118         gnulib module.
18119         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18120         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18121
18122 2010-01-05  Jim Meyering  <meyering@redhat.com>
18123
18124         maint: remove useless inclusions of "xalloc.h"
18125         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18126         * lib/readtokens.c: Likewise.
18127         * lib/same.c: Likewise.
18128         * modules/getloadavg (Depends-on): Remove xalloc.
18129         * modules/readtokens: Likewise.
18130         * modules/same: Likewise.
18131
18132         maint.mk: include 4 more function names in alloca.h-checking regexp
18133         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18134         regexp.  Before, we would give a false-positive (saying alloca.h
18135         is included unnecessarily) when the only uses involved omitted symbols.
18136
18137         xalloc.h: use consistent formatting
18138         * lib/xalloc.h: Move declarations to start in the first column.
18139
18140 2010-01-05  Eric Blake  <ebb9@byu.net>
18141
18142         mkdir: avoid xalloc
18143         * lib/mkdir.c (includes): Drop unused header.
18144         Reported by John W. Eaton.
18145
18146 2010-01-04  Jim Meyering  <meyering@redhat.com>
18147
18148         nl_langinfo: avoid configure-time syntax error
18149         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18150         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18151         the empty string.  Don't let that provoke a shell syntax error.
18152
18153         regcomp, regexec, fnmatch: avoid array bounds read error
18154         * lib/regcomp.c (build_equiv_class): From glibc:
18155         Use only the low 24 bits of a findidx return value as an index
18156         into the weights array.  Patch by Ulrich Drepper:
18157         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18158         * lib/regexec.c (check_node_accept_bytes): Likewise.
18159         * lib/fnmatch_loop.c (FCT): Likewise.
18160
18161         regcomp: skip collseq lookup when there are no rules
18162         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18163         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18164
18165         regcomp: recognize ill-formed { } expressions
18166         * lib/regcomp.c (parse_dup_op): From glibc:
18167         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18168
18169         regcomp: fix typo in comment
18170         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18171         s/satisfy/satisfies/.
18172
18173         regcomp: sync from glibc: remove dead store
18174         * lib/regcomp.c (duplicate_node_closure): Remove useless
18175         search_duplicated_node call and dead store.
18176
18177         regcomp: sync from glibc; always use nl_langinfo
18178         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18179         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18180         * modules/regex (Depends-on): Add nl_langinfo.
18181
18182 2010-01-04  Eric Blake  <ebb9@byu.net>
18183
18184         fdopendir: fix configure test
18185         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18186
18187 2010-01-01  Bruno Haible  <bruno@clisp.org>
18188
18189         wchar: Remove unused configure check.
18190         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18191
18192 2010-01-01  Eric Blake  <ebb9@byu.net>
18193
18194         headers: make check of system header explicit
18195         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18196         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18197         ourselves.
18198         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18201         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18202         internals.
18203         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18204         missing.
18205         Suggested by Bruno Haible.
18206
18207 2010-01-01  Jim Meyering  <meyering@redhat.com>
18208
18209         ChangeLog: tweak to eliminate unnecessary copyright line
18210         * ChangeLog: Remove a copyright line that was mistakenly updated
18211         by today's update-copyright run.  Reported by Eric Blake.
18212
18213         test-update-copyright: don't let envvar setting cause test failure
18214         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18215
18216 2010-01-01  Bruno Haible  <bruno@clisp.org>
18217
18218         localename: Avoid gcc warning.
18219         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18220         function if it is not used.
18221
18222 2010-01-01  Jim Meyering  <meyering@redhat.com>
18223
18224         update nearly all FSF copyright year lists to include 2010
18225         Use the same procedure as for 2009, outlined in
18226         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18227
18228         version-etc: set COPYRIGHT_YEAR to 2010
18229         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18230
18231 2009-12-31  Eric Blake  <ebb9@byu.net>
18232
18233         doc: correct availability of cygwin 1.5.x getopt
18234         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18235         variables.
18236         * doc/posix-functions/opterr.texi (opterr): Likewise.
18237         * doc/posix-functions/optind.texi (optind): Likewise.
18238         * doc/posix-functions/optopt.texi (optopt): Likewise.
18239         * doc/posix-functions/tzname.texi (tzname): Likewise.
18240
18241         openat: update maintainer
18242         * modules/openat (Maintainer): Add myself.
18243
18244         utimens: avoid shadowing warning
18245         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18246         buffers into one, to avoid shadowing, as well as avoiding a
18247         redundant stat.
18248         Reported by Jim Meyering.
18249
18250         test-dup2: avoid compiler warning
18251         * tests/test-dup2.c (is_inheritable): Only define if used.
18252
18253 2010-01-01  Bruno Haible  <bruno@clisp.org>
18254
18255         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18256         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18257         defined, use wctomb instead of wcrtomb.
18258
18259 2010-01-01  Bruno Haible  <bruno@clisp.org>
18260
18261         iconv: Reject native Solaris iconv.
18262         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18263         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18264
18265 2009-12-31  Bruno Haible  <bruno@clisp.org>
18266
18267         * tests/test-signal.c (main): Remove test of 'SIG'.
18268
18269 2009-12-31  Bruno Haible  <bruno@clisp.org>
18270
18271         spawn: Fix incomplete fix.
18272         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18273         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18274         warnings for GNULIB_POSIXCHECK again.
18275         Reported by Eric Blake.
18276
18277 2009-12-31  Bruno Haible  <bruno@clisp.org>
18278
18279         Avoid namespace pollution on glibc systems.
18280         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18281         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18282         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18283         glibc systems.
18284
18285 2009-12-31  Bruno Haible  <bruno@clisp.org>
18286
18287         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18288         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18289         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18290         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18291         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18292         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18293         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18294
18295 2009-12-31  Bruno Haible  <bruno@clisp.org>
18296
18297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18298         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18299         afterwards.
18300
18301 2009-12-31  Bruno Haible  <bruno@clisp.org>
18302
18303         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18304         SYS_UTSNAME_H.
18305
18306 2009-12-31  Bruno Haible  <bruno@clisp.org>
18307
18308         spawn: Fix misapplied patch.
18309         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18310         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18311         warnings for GNULIB_POSIXCHECK.
18312
18313 2009-12-31  Bruno Haible  <bruno@clisp.org>
18314
18315         times: Update after sys_times changed.
18316         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18317         * modules/times (Files): Add it.
18318         (configure.ac): Invoke gl_FUNC_TIMES.
18319
18320 2009-12-31  Bruno Haible  <bruno@clisp.org>
18321
18322         Use AC_C_INLINE where necessary.
18323         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18324         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18326         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18327         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18328         * m4/mbiter.m4 (gl_MBITER): Likewise.
18329         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18330         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18331         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18332         * modules/u64 (configure.ac): Likewise.
18333
18334 2009-12-31  Bruno Haible  <bruno@clisp.org>
18335
18336         Use AC_C_INLINE instead of module 'inline' where possible.
18337         * modules/inline (Description): Clarify purpose.
18338         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18339         * modules/count-one-bits (Depends-on): Remove inline.
18340         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18341         * modules/openat (Depends-on): Remove inline.
18342         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18343         instead of depending on module 'inline'.
18344         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18345         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18346         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18347         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18348         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18349         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18350         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18351         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18352         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18353         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18354         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18355         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18356         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18357         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18358         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18359         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18360         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18361         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18362         Likewise.
18363         * modules/unictype/property-ascii-hex-digit (Depends-on,
18364         configure.ac): Likewise.
18365         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18366         configure.ac): Likewise.
18367         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18368         configure.ac): Likewise.
18369         * modules/unictype/property-bidi-block-separator (Depends-on,
18370         configure.ac): Likewise.
18371         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18372         configure.ac): Likewise.
18373         * modules/unictype/property-bidi-common-separator (Depends-on,
18374         configure.ac): Likewise.
18375         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18376         Likewise.
18377         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18378         configure.ac): Likewise.
18379         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18380         configure.ac): Likewise.
18381         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18382         configure.ac): Likewise.
18383         * modules/unictype/property-bidi-european-digit (Depends-on,
18384         configure.ac): Likewise.
18385         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18386         configure.ac): Likewise.
18387         * modules/unictype/property-bidi-left-to-right (Depends-on,
18388         configure.ac): Likewise.
18389         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18390         configure.ac): Likewise.
18391         * modules/unictype/property-bidi-other-neutral (Depends-on,
18392         configure.ac): Likewise.
18393         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18394         Likewise.
18395         * modules/unictype/property-bidi-segment-separator (Depends-on,
18396         configure.ac): Likewise.
18397         * modules/unictype/property-bidi-whitespace (Depends-on,
18398         configure.ac): Likewise.
18399         * modules/unictype/property-combining (Depends-on, configure.ac):
18400         Likewise.
18401         * modules/unictype/property-composite (Depends-on, configure.ac):
18402         Likewise.
18403         * modules/unictype/property-currency-symbol (Depends-on,
18404         configure.ac): Likewise.
18405         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18406         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18407         Likewise.
18408         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18409         configure.ac): Likewise.
18410         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18411         Likewise.
18412         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18413         Likewise.
18414         * modules/unictype/property-extender (Depends-on, configure.ac):
18415         Likewise.
18416         * modules/unictype/property-format-control (Depends-on, configure.ac):
18417         Likewise.
18418         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18419         Likewise.
18420         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18421         Likewise.
18422         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18423         Likewise.
18424         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18425         Likewise.
18426         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18427         Likewise.
18428         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18429         Likewise.
18430         * modules/unictype/property-id-start (Depends-on, configure.ac):
18431         Likewise.
18432         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18433         Likewise.
18434         * modules/unictype/property-ids-binary-operator (Depends-on,
18435         configure.ac): Likewise.
18436         * modules/unictype/property-ids-trinary-operator (Depends-on,
18437         configure.ac): Likewise.
18438         * modules/unictype/property-ignorable-control (Depends-on,
18439         configure.ac): Likewise.
18440         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18441         Likewise.
18442         * modules/unictype/property-join-control (Depends-on, configure.ac):
18443         Likewise.
18444         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18445         Likewise.
18446         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18447         Likewise.
18448         * modules/unictype/property-logical-order-exception (Depends-on,
18449         configure.ac): Likewise.
18450         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18451         Likewise.
18452         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18453         * modules/unictype/property-non-break (Depends-on, configure.ac):
18454         Likewise.
18455         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18456         Likewise.
18457         * modules/unictype/property-numeric (Depends-on, configure.ac):
18458         Likewise.
18459         * modules/unictype/property-other-alphabetic (Depends-on,
18460         configure.ac): Likewise.
18461         * modules/unictype/property-other-default-ignorable-code-point
18462         (Depends-on, configure.ac): Likewise.
18463         * modules/unictype/property-other-grapheme-extend (Depends-on,
18464         configure.ac): Likewise.
18465         * modules/unictype/property-other-id-continue (Depends-on,
18466         configure.ac): Likewise.
18467         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18468         Likewise.
18469         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18470         Likewise.
18471         * modules/unictype/property-other-math (Depends-on, configure.ac):
18472         Likewise.
18473         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18474         Likewise.
18475         * modules/unictype/property-paired-punctuation (Depends-on,
18476         configure.ac): Likewise.
18477         * modules/unictype/property-paragraph-separator (Depends-on,
18478         configure.ac): Likewise.
18479         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18480         Likewise.
18481         * modules/unictype/property-pattern-white-space (Depends-on,
18482         configure.ac): Likewise.
18483         * modules/unictype/property-private-use (Depends-on, configure.ac):
18484         Likewise.
18485         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18486         Likewise.
18487         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18488         Likewise.
18489         * modules/unictype/property-radical (Depends-on, configure.ac):
18490         Likewise.
18491         * modules/unictype/property-sentence-terminal (Depends-on,
18492         configure.ac): Likewise.
18493         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18494         Likewise.
18495         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18496         * modules/unictype/property-terminal-punctuation (Depends-on,
18497         configure.ac): Likewise.
18498         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18499         Likewise.
18500         * modules/unictype/property-unassigned-code-value (Depends-on,
18501         configure.ac): Likewise.
18502         * modules/unictype/property-unified-ideograph (Depends-on,
18503         configure.ac): Likewise.
18504         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18505         Likewise.
18506         * modules/unictype/property-variation-selector (Depends-on,
18507         configure.ac): Likewise.
18508         * modules/unictype/property-white-space (Depends-on, configure.ac):
18509         Likewise.
18510         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18511         Likewise.
18512         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18513         Likewise.
18514         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18515         Likewise.
18516         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18517         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18518         Likewise.
18519
18520 2009-12-31  Bruno Haible  <bruno@clisp.org>
18521
18522         Remove unnecessary AC_C_INLINE invocation.
18523         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18524         since 2009-08-21.
18525
18526 2009-12-31  Jim Meyering  <meyering@redhat.com>
18527
18528         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18529         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18530         With this change, we can all remove the gpg_key_ID = ... definition
18531         from our respective cfg.mk files.
18532
18533         maint.mk: create announcement template in ~/, not in /tmp
18534         * top/maint.mk (emit_upload_commands): Adjust.
18535         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18536         Remove temporary file, .ci-msg.
18537
18538 2009-12-31  Eric Blake  <ebb9@byu.net>
18539
18540         link-warning: always build headers with link warnings
18541         * modules/arpa_inet (Makefile.am): Always build replacement
18542         header.
18543         * modules/ctype (Makefile.am): Likewise.
18544         * modules/dirent (Makefile.am): Likewise.
18545         * modules/inttypes (Makefile.am): Likewise.
18546         * modules/langinfo (Makefile.am): Likewise.
18547         * modules/locale (Makefile.am): Likewise.
18548         * modules/spawn (Makefile.am): Likewise.
18549         * modules/sys_file (Makefile.am): Likewise.
18550         * modules/sys_ioctl (Makefile.am): Likewise.
18551         * modules/sys_select (Makefile.am): Likewise.
18552         * modules/sys_socket (Makefile.am): Likewise.
18553         * modules/sys_times (Makefile.am): Likewise.
18554         * modules/sys_utsname (Makefile.am): Likewise.
18555         * modules/sys_wait (Makefile.am): Likewise.
18556         * modules/wchar (Makefile.am): Likewise.
18557         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18558         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18559         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18560         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18561         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18562         Likewise.
18563         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18564         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18565         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18566         Likewise.
18567         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18568         Likewise.
18569         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18570         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18571         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18572         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18573         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18574         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18575         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18576         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18577         (gl_WCHAR_H_DEFAULTS): Likewise.
18578
18579 2009-12-31  Eric Blake  <ebb9@byu.net>
18580
18581         signal, spawn: use link warnings
18582         * lib/signal.in.h (sigset_t): Make unconditional.
18583         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18584         (sigpending, sigprocmask, sigaction): Add link warnings.
18585         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18586         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18587         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18588         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18589         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18590         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18591         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18592         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18593         (posix_spawn_file_actions_destroy)
18594         (posix_spawn_file_actions_addopen)
18595         (posix_spawn_file_actions_addclose)
18596         (posix_spawn_file_actions_adddup2): Likewise.
18597         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18598         * tests/test-signal.c (main): Enhance test.
18599
18600         spawn: improve wrapper support
18601         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18602         (gl_SPAWN_H_DEFAULTS): New defaults.
18603         * modules/spawn (Makefile.am): Substitute them.
18604         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18605         Only declare if missing or broken.
18606
18607         sys_times, sys_utsname: use include_next
18608         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18609         header.
18610         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18611         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18612         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18613         * modules/sys_times (Depends-on): Add include_next.
18614         (Makefile.am): Substitute additional values.
18615         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18616         * lib/sys_times.in.h (includes): Include native header, if
18617         available.
18618         * lib/sys_utsname.in.h (includes): Likewise.
18619         * tests/test-sys_times.c (main): Enhance test.
18620
18621         fdutimensat: revert prior patch
18622         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18623         utimens.h.
18624         Reported by Bruno Haible.
18625
18626 2009-12-30  Eric Blake  <ebb9@byu.net>
18627
18628         sys_wait: drop link-warning dependency
18629         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18630         link-warning efforts.
18631         * lib/sys_wait.in.h: Likewise.
18632
18633         fdutimensat: remove bogus dependency
18634         * modules/fdutimensat (Depends-on): Drop inline.
18635
18636         unistd: fix typo
18637         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18638
18639 2009-12-30  Bruno Haible  <bruno@clisp.org>
18640
18641         Fix compilation error with Solaris cc.
18642         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18643         * lib/unicase/u16-is-invariant.c: Likewise.
18644         * lib/unicase/u32-is-invariant.c: Likewise.
18645         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18646
18647 2009-12-30  Bruno Haible  <bruno@clisp.org>
18648
18649         Fix test crash.
18650         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18651         locales.
18652         Reported by Simon Josefsson <simon@josefsson.org>.
18653
18654 2009-12-30  Bruno Haible  <bruno@clisp.org>
18655
18656         Fix compilation error on most platforms.
18657         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18658         Reported by Simon Josefsson <simon@josefsson.org>
18659         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18660
18661 2009-12-30  Eric Blake  <ebb9@byu.net>
18662
18663         futimens, utimensat: work around ntfs-3g bug
18664         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18665         a ctime bug is present, and expand workaround to cover ntfs-3g.
18666         * lib/utimens.c (fdutimens, lutimens): Likewise.
18667         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18668         (validate_timespec): Adjust return value.
18669         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18670         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18671         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18672
18673 2009-12-29  Eric Blake  <ebb9@byu.net>
18674
18675         link-warning: make usage consistent
18676         * modules/ctype (Depends-on): Add link-warning.
18677         (Makefile.am): Update rules accordingly.
18678         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18679         * modules/locale (Depends-on, Makefile.am): Likewise.
18680         * modules/sys_file (Makefile.am): Likewise.
18681         * modules/getopt-posix (Makefile.am): Delete unused link warning
18682         efforts.
18683         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18684         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18685         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18686         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18687
18688         stdio: remove unused variables
18689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18690         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18691         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18692
18693         tests: test more substitute headers
18694         * modules/ctype-tests: New file.
18695         * modules/dirent-tests: Likewise.
18696         * modules/spawn-tests: Likewise.
18697         * modules/sys_file-tests: Likewise.
18698         * modules/sys_ioctl-tests: Likewise.
18699         * modules/sys_wait-tests: Likewise.
18700         * tests/test-ctype.c: Likewise.
18701         * tests/test-dirent.c: Likewise.
18702         * tests/test-spawn.c: Likewise.
18703         * tests/test-sys_file.c: Likewise.
18704         * tests/test-sys_ioctl.c: Likewise.
18705         * tests/test-sys_wait.c: Likewise.
18706         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18707         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18708         whether or not flock is in use.
18709
18710         tests: remove License section from module
18711         * modules/arpa_inet-tests: Remove unneeded section.
18712         * modules/byteswap-tests: Likewise.
18713         * modules/ceilf-tests: Likewise.
18714         * modules/ceill-tests: Likewise.
18715         * modules/crypto/des-tests: Likewise.
18716         * modules/crypto/gc-arcfour-tests: Likewise.
18717         * modules/crypto/gc-arctwo-tests: Likewise.
18718         * modules/crypto/gc-des-tests: Likewise.
18719         * modules/crypto/gc-hmac-md5-tests: Likewise.
18720         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18721         * modules/crypto/gc-md2-tests: Likewise.
18722         * modules/crypto/gc-md4-tests: Likewise.
18723         * modules/crypto/gc-md5-tests: Likewise.
18724         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18725         * modules/crypto/gc-rijndael-tests: Likewise.
18726         * modules/crypto/gc-sha1-tests: Likewise.
18727         * modules/crypto/gc-tests: Likewise.
18728         * modules/crypto/md2-tests: Likewise.
18729         * modules/crypto/md4-tests: Likewise.
18730         * modules/fcntl-h-tests: Likewise.
18731         * modules/floorf-tests: Likewise.
18732         * modules/floorl-tests: Likewise.
18733         * modules/frexp-nolibm-tests: Likewise.
18734         * modules/frexp-tests: Likewise.
18735         * modules/frexpl-nolibm-tests: Likewise.
18736         * modules/frexpl-tests: Likewise.
18737         * modules/getaddrinfo-tests: Likewise.
18738         * modules/inttypes-tests: Likewise.
18739         * modules/isfinite-tests: Likewise.
18740         * modules/isinf-tests: Likewise.
18741         * modules/ldexpl-tests: Likewise.
18742         * modules/locale-tests: Likewise.
18743         * modules/math-tests: Likewise.
18744         * modules/netdb-tests: Likewise.
18745         * modules/netinet_in-tests: Likewise.
18746         * modules/printf-frexp-tests: Likewise.
18747         * modules/printf-frexpl-tests: Likewise.
18748         * modules/priv-set-tests: Likewise.
18749         * modules/random_r-tests: Likewise.
18750         * modules/round-tests: Likewise.
18751         * modules/roundf-tests: Likewise.
18752         * modules/roundl-tests: Likewise.
18753         * modules/search-tests: Likewise.
18754         * modules/select-tests: Likewise.
18755         * modules/signal-tests: Likewise.
18756         * modules/stdbool-tests: Likewise.
18757         * modules/stddef-tests: Likewise.
18758         * modules/stdint-tests: Likewise.
18759         * modules/stdio-tests: Likewise.
18760         * modules/stdlib-tests: Likewise.
18761         * modules/string-tests: Likewise.
18762         * modules/strings-tests: Likewise.
18763         * modules/sys_select-tests: Likewise.
18764         * modules/sys_socket-tests: Likewise.
18765         * modules/sys_stat-tests: Likewise.
18766         * modules/sys_time-tests: Likewise.
18767         * modules/sys_utsname-tests: Likewise.
18768         * modules/sysexits-tests: Likewise.
18769         * modules/time-tests: Likewise.
18770         * modules/trunc-tests: Likewise.
18771         * modules/truncf-tests: Likewise.
18772         * modules/truncl-tests: Likewise.
18773         * modules/tsearch-tests: Likewise.
18774         * modules/unistd-tests: Likewise.
18775         * modules/wchar-tests: Likewise.
18776         * modules/wctype-tests: Likewise.
18777
18778         tests: fix license on several tests
18779         * tests/test-des.c: Update to GPLv3+.
18780         * tests/test-flock.c: Likewise.
18781         * tests/test-fsync.c: Likewise.
18782         * tests/test-futimens.h: Likewise.
18783         * tests/test-gc-arcfour.c: Likewise.
18784         * tests/test-gc-arctwo.c: Likewise.
18785         * tests/test-gc-des.c: Likewise.
18786         * tests/test-gc-hmac-md5.c: Likewise.
18787         * tests/test-gc-hmac-sha1.c: Likewise.
18788         * tests/test-gc-md2.c: Likewise.
18789         * tests/test-gc-md4.c: Likewise.
18790         * tests/test-gc-md5.c: Likewise.
18791         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18792         * tests/test-gc-rijndael.c: Likewise.
18793         * tests/test-gc-sha1.c: Likewise.
18794         * tests/test-gc.c: Likewise.
18795         * tests/test-getcwd.c: Likewise.
18796         * tests/test-link.c: Likewise.
18797         * tests/test-link.h: Likewise.
18798         * tests/test-lutimens.h: Likewise.
18799         * tests/test-md2.c: Likewise.
18800         * tests/test-md4.c: Likewise.
18801         * tests/test-mkdir.h: Likewise.
18802         * tests/test-rename.c: Likewise.
18803         * tests/test-rename.h: Likewise.
18804         * tests/test-safe-alloc.c: Likewise.
18805         * tests/test-utimens-common.h: Likewise.
18806         * tests/test-utimens.h: Likewise.
18807
18808         maint: sync license texts
18809         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18810         * doc/gpl-3.0.texi: Revert copyright year update.
18811         * doc/lgpl-3.0.texi: Likewise.
18812
18813 2009-12-29  Jim Meyering  <meyering@redhat.com>
18814
18815         update nearly all FSF copyright year lists to include 2009
18816         The files named by the following are exempted:
18817             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18818               test -f "$dst" && { echo "$dst"; continue; }
18819               test -d "$dst" || continue
18820               echo "$dst"/$(basename "$src")
18821             done > exempt
18822             git ls-files tests/unictype >> exempt
18823         In the remaining files, convert to all-interval notation if
18824         - there is already at least one year interval like 2000-2003
18825         - the file is maintained by me
18826         - the file is in lib/uni*/, where that style already prevails
18827         Otherwise, use update-copyright's default.
18828
18829 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18830         and Eric Blake  <ebb9@byu.net>
18831
18832         tests: don't require debug system() to pass
18833         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18834         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18835         * tests/test-unlink.h (test_unlink_func): Likewise.
18836         * tests/test-fstatat.c (main): ...into callers.
18837         * tests/test-lstat.c (main): Likewise.
18838         * tests/test-rmdir.c (main): Likewise.
18839         * tests/test-unlink.c (main): Likewise.
18840         * tests/test-unlinkat.c (main): Likewise.
18841         * tests/test-areadlink-with-size.c (main): Don't require a
18842         debug-only system call to pass, aiding cross-testing to mingw.
18843         * tests/test-areadlink.c (main): Likewise.
18844         * tests/test-areadlinkat-with-size.c (main): Likewise.
18845         * tests/test-areadlinkat.c (main): Likewise.
18846         * tests/test-canonicalize-lgpl.c (main): Likewise.
18847         * tests/test-canonicalize.c (main): Likewise.
18848         * tests/test-chown.c (main): Likewise.
18849         * tests/test-fchownat.c (main): Likewise.
18850         * tests/test-lchown.c (main): Likewise.
18851         * tests/test-fdutimensat.c (main): Likewise.
18852         * tests/test-futimens.c (main): Likewise.
18853         * tests/test-link.c (main): Likewise.
18854         * tests/test-linkat.c (main): Likewise.
18855         * tests/test-mkdir.c (main): Likewise.
18856         * tests/test-mkdirat.c (main): Likewise.
18857         * tests/test-mkfifo.c (main): Likewise.
18858         * tests/test-mkfifoat.c (main): Likewise.
18859         * tests/test-mknod.c (main): Likewise.
18860         * tests/test-readlink.c (main): Likewise.
18861         * tests/test-remove.c (main): Likewise.
18862         * tests/test-rename.c (main): Likewise.
18863         * tests/test-renameat.c (main): Likewise.
18864         * tests/test-symlink.c (main): Likewise.
18865         * tests/test-symlinkat.c (main): Likewise.
18866         * tests/test-utimens.c (main): Likewise.
18867         * tests/test-utimensat.c (main): Likewise.
18868
18869 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18870
18871         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18872         on $(UNUSED_PARAMETER_H) to avoid build failure.
18873
18874 2009-12-28  Jim Meyering  <meyering@redhat.com>
18875
18876         update-copyright: you may specify a max. line length other than 72
18877         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18878
18879         maint: use consistent FSF copyright line syntax
18880         * lib/posixtm.c: Add missing comma in FSF copyright line.
18881         * lib/posixtm.h: Likewise.
18882         * lib/getugroups.c: Add missing ", Inc.".
18883
18884         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18885         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18886         FSF copyright line.  Remove trailing blanks.
18887
18888 2009-12-28  Eric Blake  <ebb9@byu.net>
18889
18890         test-dup2: reduce dependencies
18891         * modules/cloexec (Configure.ac): Set witness.
18892         * modules/dup2-tests (Depends-on): Drop cloexec.
18893         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18894         not present.
18895         Suggested by Bruno Haible.
18896
18897 2009-12-26  Bruno Haible  <bruno@clisp.org>
18898
18899         Remove an unneeded dependency.
18900         * modules/fseterr (Depends-on): Remove dup2.
18901
18902 2009-12-26  Eric Blake  <ebb9@byu.net>
18903
18904         tests: use macros.h in more places
18905         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18906         (ASSERT_STREAM): Provide default of stderr.
18907         * tests/test-dirent-safer.c: Include macros.h, using alternate
18908         stream for assertions.
18909         * tests/test-dup-safer.c: Likewise.
18910         * tests/test-freopen-safer.c: Likewise.
18911         * tests/test-getopt.c: Likewise.
18912         * tests/test-openat-safer.c: Likewise.
18913         * tests/test-pipe.c: Likewise.
18914         * tests/test-popen-safer.c: Likewise.
18915         * modules/dirent-safer-tests (Files): Include macros.h.
18916         * modules/unistd-safer-tests (Files): Likewise.
18917         * modules/freopen-safer-tests (Files): Likewise.
18918         * modules/getopt-posix-tests (Files): Likewise.
18919         * modules/openat-safer-tests (Files): Likewise.
18920         * modules/pipe-tests (Files): Likewise.
18921
18922 2009-12-26  Bruno Haible  <bruno@clisp.org>
18923
18924         javacomp: Portability fix.
18925         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18926         that it also works on Solaris.
18927
18928 2009-12-26  Bruno Haible  <bruno@clisp.org>
18929
18930         localename: Fix storage allocation of gl_locale_name_thread's result.
18931         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18932         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18933         all platforms that have 'uselocale'.
18934         (gl_locale_name_thread_unsafe): New function, extracted from
18935         gl_locale_name_thread.
18936         (gl_locale_name_thread): Call struniq on all platforms that have
18937         'uselocale'.
18938         * tests/test-localename.c (test_locale_name_thread): Check that the
18939         resulting strings are permanently allocated.
18940         * modules/localename-tests (Depends-on): Add strdup.
18941
18942 2009-12-26  Bruno Haible  <bruno@clisp.org>
18943
18944         * tests/test-localename.c (categories): Fill in the strings.
18945
18946 2009-12-26  Jim Meyering  <meyering@redhat.com>
18947
18948         isdir: complete the removal of m4/isdir.m4
18949         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18950
18951         isdir: clean up, since at least grep still uses it
18952         * lib/isdir.c: Include "isdir.h".
18953         (S_ISDIR): Remove now-unneeded definition.
18954         * modules/isdir (Files): Add lib/isdir.h.
18955         * lib/isdir.h: New file, with declaration.
18956         * m4/isdir.m4: Remove file -- unneeded.
18957
18958 2009-12-25  Bruno Haible  <bruno@clisp.org>
18959
18960         selinux-h: Make generated .h files standalone.
18961         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18962         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18963         * lib/se-selinux.in.h: Likewise.
18964         * modules/selinux-h (Depends-on): Add unused-parameter.
18965         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18966         selinux/selinux.h and selinux/context.h.
18967         Suggested by Eric Blake.
18968
18969 2009-12-25  Bruno Haible  <bruno@clisp.org>
18970
18971         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18972         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18973         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18974         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18975         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18976
18977 2009-12-24  Bruno Haible  <bruno@clisp.org>
18978
18979         openat: Fix warning.
18980         * lib/openat-proc.c: Include <unistd.h>.
18981
18982 2009-12-24  Bruno Haible  <bruno@clisp.org>
18983
18984         New module 'unused-parameter'.
18985         * build-aux/unused-parameter.h: New file, extracted from earlier
18986         gnulib-common.m4.
18987         * modules/unused-parameter: New file.
18988         * lib/unistr.h: Include unused-parameter.h.
18989         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18990         _GL_UNUSED.
18991         * modules/unistr/base (Depends-on): Add unused-parameter.
18992
18993 2009-12-24  Bruno Haible  <bruno@clisp.org>
18994
18995         Add missing dependencies to 'extensions' module.
18996         * m4/extensions.m4: Add comment.
18997         * modules/accept4 (Depends-on): Add extensions.
18998         * modules/dup3 (Depends-on): Likewise.
18999         * modules/fcntl (Depends-on): Likewise.
19000         * modules/futimens (Depends-on): Likewise.
19001         * modules/mknod (Depends-on): Likewise.
19002         * modules/pipe2 (Depends-on): Likewise.
19003         * modules/stat-time (Depends-on): Likewise.
19004         * modules/strcasestr-simple (Depends-on): Likewise.
19005         * modules/strsignal (Depends-on): Likewise.
19006         * modules/utimensat (Depends-on): Likewise.
19007         * modules/localcharset (Depends-on): Likewise. Needed because of
19008         gl_FCNTL_O_FLAGS.
19009         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19010         AC_TYPE_MBSTATE_T.
19011         * modules/wcsnrtombs (Depends-on): Likewise.
19012         * modules/wcsrtombs (Depends-on): Likewise.
19013
19014 2009-12-24  Bruno Haible  <bruno@clisp.org>
19015
19016         binary-io: Avoid gcc warning due to SET_BINARY.
19017         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19018         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19019
19020 2009-12-24  Bruno Haible  <bruno@clisp.org>
19021
19022         Avoid future namespace pollution on glibc systems.
19023         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19024         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19025         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19026         glibc systems.
19027
19028 2009-12-24  Bruno Haible  <bruno@clisp.org>
19029
19030         Refactor common macros used in tests.
19031         * tests/macros.h: New file.
19032         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19033         and/or <stdlib.h>, if appropriate.
19034         (ASSERT, SIZEOF): Remove macros.
19035         * tests/test-areadlink-with-size.c: Likewise.
19036         * tests/test-areadlinkat.c: Likewise.
19037         * tests/test-areadlinkat-with-size.c: Likewise.
19038         * tests/test-argmatch.c: Likewise.
19039         * tests/test-argv-iter.c: Likewise.
19040         * tests/test-array-mergesort.c: Likewise.
19041         * tests/test-array_list.c: Likewise.
19042         * tests/test-array_oset.c: Likewise.
19043         * tests/test-avltree_list.c: Likewise.
19044         * tests/test-avltree_oset.c: Likewise.
19045         * tests/test-avltreehash_list.c: Likewise.
19046         * tests/test-base64.c: Likewise.
19047         * tests/test-binary-io.c: Likewise.
19048         * tests/test-bitrotate.c: Likewise.
19049         * tests/test-btowc.c: Likewise.
19050         * tests/test-byteswap.c: Likewise.
19051         * tests/test-c-ctype.c: Likewise.
19052         * tests/test-c-stack.c: Likewise.
19053         * tests/test-c-strcasecmp.c: Likewise.
19054         * tests/test-c-strcasestr.c: Likewise.
19055         * tests/test-c-strncasecmp.c: Likewise.
19056         * tests/test-c-strstr.c: Likewise.
19057         * tests/test-canonicalize-lgpl.c: Likewise.
19058         * tests/test-canonicalize.c: Likewise.
19059         * tests/test-carray_list.c: Likewise.
19060         * tests/test-ceilf1.c: Likewise.
19061         * tests/test-ceilf2.c: Likewise.
19062         * tests/test-ceill.c: Likewise.
19063         * tests/test-chown.c: Likewise.
19064         * tests/test-cloexec.c: Likewise.
19065         * tests/test-copy-acl.c: Likewise.
19066         * tests/test-copy-file.c: Likewise.
19067         * tests/test-count-one-bits.c: Likewise.
19068         * tests/test-dprintf-posix.c: Likewise.
19069         * tests/test-dup2.c: Likewise.
19070         * tests/test-dup3.c: Likewise.
19071         * tests/test-duplocale.c: Likewise.
19072         * tests/test-fbufmode.c: Likewise.
19073         * tests/test-fchdir.c: Likewise.
19074         * tests/test-fchownat.c: Likewise.
19075         * tests/test-fcntl-safer.c: Likewise.
19076         * tests/test-fcntl.c: Likewise.
19077         * tests/test-fdopendir.c: Likewise.
19078         * tests/test-fdutimensat.c: Likewise.
19079         * tests/test-fflush2.c: Likewise.
19080         * tests/test-file-has-acl.c: Likewise.
19081         * tests/test-filevercmp.c: Likewise.
19082         * tests/test-flock.c: Likewise.
19083         * tests/test-floorf1.c: Likewise.
19084         * tests/test-floorf2.c: Likewise.
19085         * tests/test-floorl.c: Likewise.
19086         * tests/test-fnmatch.c: Likewise.
19087         * tests/test-fopen.h: Likewise.
19088         * tests/test-fpending.c: Likewise.
19089         * tests/test-fprintf-posix.c: Likewise.
19090         * tests/test-fpurge.c: Likewise.
19091         * tests/test-freadable.c: Likewise.
19092         * tests/test-freadahead.c: Likewise.
19093         * tests/test-freading.c: Likewise.
19094         * tests/test-freadptr.c: Likewise.
19095         * tests/test-freadptr2.c: Likewise.
19096         * tests/test-freadseek.c: Likewise.
19097         * tests/test-freopen.c: Likewise.
19098         * tests/test-frexp.c: Likewise.
19099         * tests/test-frexpl.c: Likewise.
19100         * tests/test-fseek.c: Likewise.
19101         * tests/test-fseeko.c: Likewise.
19102         * tests/test-fstatat.c: Likewise.
19103         * tests/test-fstrcmp.c: Likewise.
19104         * tests/test-fsync.c: Likewise.
19105         * tests/test-ftell.c: Likewise.
19106         * tests/test-ftello.c: Likewise.
19107         * tests/test-func.c: Likewise.
19108         * tests/test-futimens.c: Likewise.
19109         * tests/test-fwritable.c: Likewise.
19110         * tests/test-fwriting.c: Likewise.
19111         * tests/test-getcwd.c: Likewise.
19112         * tests/test-getdate.c: Likewise.
19113         * tests/test-getdelim.c: Likewise.
19114         * tests/test-getdtablesize.c: Likewise.
19115         * tests/test-getgroups.c: Likewise.
19116         * tests/test-getline.c: Likewise.
19117         * tests/test-getndelim2.c: Likewise.
19118         * tests/test-glob.c: Likewise.
19119         * tests/test-hash.c: Likewise.
19120         * tests/test-i-ring.c: Likewise.
19121         * tests/test-iconv-utf.c: Likewise.
19122         * tests/test-iconv.c: Likewise.
19123         * tests/test-idpriv-drop.c: Likewise.
19124         * tests/test-idpriv-droptemp.c: Likewise.
19125         * tests/test-inet_ntop.c: Likewise.
19126         * tests/test-inet_pton.c: Likewise.
19127         * tests/test-isblank.c: Likewise.
19128         * tests/test-isfinite.c: Likewise.
19129         * tests/test-isinf.c: Likewise.
19130         * tests/test-isnan.c: Likewise.
19131         * tests/test-isnand.h: Likewise.
19132         * tests/test-isnanf.h: Likewise.
19133         * tests/test-isnanl.h: Likewise.
19134         * tests/test-lchown.c: Likewise.
19135         * tests/test-ldexpl.c: Likewise.
19136         * tests/test-link.c: Likewise.
19137         * tests/test-linkat.c: Likewise.
19138         * tests/test-linked_list.c: Likewise.
19139         * tests/test-linkedhash_list.c: Likewise.
19140         * tests/test-localename.c: Likewise.
19141         * tests/test-lseek.c: Likewise.
19142         * tests/test-lstat.c: Likewise.
19143         * tests/test-mbmemcasecmp.c: Likewise.
19144         * tests/test-mbmemcasecoll.c: Likewise.
19145         * tests/test-mbrtowc.c: Likewise.
19146         * tests/test-mbscasecmp.c: Likewise.
19147         * tests/test-mbscasestr1.c: Likewise.
19148         * tests/test-mbscasestr2.c: Likewise.
19149         * tests/test-mbscasestr3.c: Likewise.
19150         * tests/test-mbscasestr4.c: Likewise.
19151         * tests/test-mbschr.c: Likewise.
19152         * tests/test-mbscspn.c: Likewise.
19153         * tests/test-mbsinit.c: Likewise.
19154         * tests/test-mbsncasecmp.c: Likewise.
19155         * tests/test-mbsnrtowcs.c: Likewise.
19156         * tests/test-mbspbrk.c: Likewise.
19157         * tests/test-mbspcasecmp.c: Likewise.
19158         * tests/test-mbsrchr.c: Likewise.
19159         * tests/test-mbsrtowcs.c: Likewise.
19160         * tests/test-mbsspn.c: Likewise.
19161         * tests/test-mbsstr1.c: Likewise.
19162         * tests/test-mbsstr2.c: Likewise.
19163         * tests/test-mbsstr3.c: Likewise.
19164         * tests/test-memchr.c: Likewise.
19165         * tests/test-memchr2.c: Likewise.
19166         * tests/test-memcmp.c: Likewise.
19167         * tests/test-memmem.c: Likewise.
19168         * tests/test-memrchr.c: Likewise.
19169         * tests/test-mkdir.c: Likewise.
19170         * tests/test-mkdirat.c: Likewise.
19171         * tests/test-mkfifo.c: Likewise.
19172         * tests/test-mkfifoat.c: Likewise.
19173         * tests/test-mknod.c: Likewise.
19174         * tests/test-nanosleep.c: Likewise.
19175         * tests/test-nl_langinfo.c: Likewise.
19176         * tests/test-obstack-printf.c: Likewise.
19177         * tests/test-open.c: Likewise.
19178         * tests/test-openat.c: Likewise.
19179         * tests/test-pipe-filter-gi1.c: Likewise.
19180         * tests/test-pipe-filter-gi2-main.c: Likewise.
19181         * tests/test-pipe-filter-ii1.c: Likewise.
19182         * tests/test-pipe-filter-ii2-main.c: Likewise.
19183         * tests/test-pipe2.c: Likewise.
19184         * tests/test-popen.h: Likewise.
19185         * tests/test-posixtm.c: Likewise.
19186         * tests/test-pread.c: Likewise.
19187         * tests/test-printf-frexp.c: Likewise.
19188         * tests/test-printf-frexpl.c: Likewise.
19189         * tests/test-printf-posix.c: Likewise.
19190         * tests/test-priv-set.c: Likewise.
19191         * tests/test-quotearg.c: Likewise.
19192         * tests/test-random_r.c: Likewise.
19193         * tests/test-rawmemchr.c: Likewise.
19194         * tests/test-rbtree_list.c: Likewise.
19195         * tests/test-rbtree_oset.c: Likewise.
19196         * tests/test-rbtreehash_list.c: Likewise.
19197         * tests/test-readlink.c: Likewise.
19198         * tests/test-remove.c: Likewise.
19199         * tests/test-rename.c: Likewise.
19200         * tests/test-renameat.c: Likewise.
19201         * tests/test-rmdir.c: Likewise.
19202         * tests/test-round1.c: Likewise.
19203         * tests/test-roundf1.c: Likewise.
19204         * tests/test-roundl.c: Likewise.
19205         * tests/test-safe-alloc.c: Likewise.
19206         * tests/test-sameacls.c: Likewise.
19207         * tests/test-set-mode-acl.c: Likewise.
19208         * tests/test-setenv.c: Likewise.
19209         * tests/test-sigaction.c: Likewise.
19210         * tests/test-signbit.c: Likewise.
19211         * tests/test-sleep.c: Likewise.
19212         * tests/test-snprintf-posix.c: Likewise.
19213         * tests/test-snprintf.c: Likewise.
19214         * tests/test-sprintf-posix.c: Likewise.
19215         * tests/test-stat-time.c: Likewise.
19216         * tests/test-stat.c: Likewise.
19217         * tests/test-strcasestr.c: Likewise.
19218         * tests/test-strchrnul.c: Likewise.
19219         * tests/test-strerror.c: Likewise.
19220         * tests/test-striconv.c: Likewise.
19221         * tests/test-striconveh.c: Likewise.
19222         * tests/test-striconveha.c: Likewise.
19223         * tests/test-strsignal.c: Likewise.
19224         * tests/test-strstr.c: Likewise.
19225         * tests/test-strtod.c: Likewise.
19226         * tests/test-strverscmp.c: Likewise.
19227         * tests/test-symlink.c: Likewise.
19228         * tests/test-symlinkat.c: Likewise.
19229         * tests/test-trunc1.c: Likewise.
19230         * tests/test-trunc2.c: Likewise.
19231         * tests/test-truncf1.c: Likewise.
19232         * tests/test-truncf2.c: Likewise.
19233         * tests/test-truncl.c: Likewise.
19234         * tests/test-uname.c: Likewise.
19235         * tests/test-unlink.c: Likewise.
19236         * tests/test-unlinkat.c: Likewise.
19237         * tests/test-unsetenv.c: Likewise.
19238         * tests/test-usleep.c: Likewise.
19239         * tests/test-utimens.c: Likewise.
19240         * tests/test-utimensat.c: Likewise.
19241         * tests/test-vasnprintf-posix.c: Likewise.
19242         * tests/test-vasnprintf-posix2.c: Likewise.
19243         * tests/test-vasnprintf.c: Likewise.
19244         * tests/test-vasprintf-posix.c: Likewise.
19245         * tests/test-vasprintf.c: Likewise.
19246         * tests/test-vdprintf-posix.c: Likewise.
19247         * tests/test-vfprintf-posix.c: Likewise.
19248         * tests/test-vprintf-posix.c: Likewise.
19249         * tests/test-vsnprintf-posix.c: Likewise.
19250         * tests/test-vsnprintf.c: Likewise.
19251         * tests/test-vsprintf-posix.c: Likewise.
19252         * tests/test-wcrtomb.c: Likewise.
19253         * tests/test-wcsnrtombs.c: Likewise.
19254         * tests/test-wcsrtombs.c: Likewise.
19255         * tests/test-wctype.c: Likewise.
19256         * tests/test-wcwidth.c: Likewise.
19257         * tests/test-xfprintf-posix.c: Likewise.
19258         * tests/test-xmemdup0.c: Likewise.
19259         * tests/test-xprintf-posix.c: Likewise.
19260         * tests/test-xvasprintf.c: Likewise.
19261         * tests/unicase/test-locale-language.c: Likewise.
19262         * tests/unicase/test-mapping-part1.h: Likewise.
19263         * tests/unicase/test-predicate-part1.h: Likewise.
19264         * tests/unicase/test-u8-casecmp.c: Likewise.
19265         * tests/unicase/test-u8-casecoll.c: Likewise.
19266         * tests/unicase/test-u8-casefold.c: Likewise.
19267         * tests/unicase/test-u8-is-cased.c: Likewise.
19268         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19269         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19270         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19271         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19272         * tests/unicase/test-u8-tolower.c: Likewise.
19273         * tests/unicase/test-u8-totitle.c: Likewise.
19274         * tests/unicase/test-u8-toupper.c: Likewise.
19275         * tests/unicase/test-u16-casecmp.c: Likewise.
19276         * tests/unicase/test-u16-casecoll.c: Likewise.
19277         * tests/unicase/test-u16-casefold.c: Likewise.
19278         * tests/unicase/test-u16-is-cased.c: Likewise.
19279         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19280         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19281         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19282         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19283         * tests/unicase/test-u16-tolower.c: Likewise.
19284         * tests/unicase/test-u16-totitle.c: Likewise.
19285         * tests/unicase/test-u16-toupper.c: Likewise.
19286         * tests/unicase/test-u32-casecmp.c: Likewise.
19287         * tests/unicase/test-u32-casecoll.c: Likewise.
19288         * tests/unicase/test-u32-casefold.c: Likewise.
19289         * tests/unicase/test-u32-is-cased.c: Likewise.
19290         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19291         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19292         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19293         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19294         * tests/unicase/test-u32-tolower.c: Likewise.
19295         * tests/unicase/test-u32-totitle.c: Likewise.
19296         * tests/unicase/test-u32-toupper.c: Likewise.
19297         * tests/unicase/test-ulc-casecmp.c: Likewise.
19298         * tests/unicase/test-ulc-casecoll.c: Likewise.
19299         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19300         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19301         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19302         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19303         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19304         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19305         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19306         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19307         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19308         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19309         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19310         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19311         * tests/unictype/test-bidi_byname.c: Likewise.
19312         * tests/unictype/test-bidi_name.c: Likewise.
19313         * tests/unictype/test-bidi_of.c: Likewise.
19314         * tests/unictype/test-bidi_test.c: Likewise.
19315         * tests/unictype/test-block_list.c: Likewise.
19316         * tests/unictype/test-block_of.c: Likewise.
19317         * tests/unictype/test-block_test.c: Likewise.
19318         * tests/unictype/test-categ_and.c: Likewise.
19319         * tests/unictype/test-categ_and_not.c: Likewise.
19320         * tests/unictype/test-categ_byname.c: Likewise.
19321         * tests/unictype/test-categ_name.c: Likewise.
19322         * tests/unictype/test-categ_none.c: Likewise.
19323         * tests/unictype/test-categ_of.c: Likewise.
19324         * tests/unictype/test-categ_or.c: Likewise.
19325         * tests/unictype/test-categ_test_withtable.c: Likewise.
19326         * tests/unictype/test-combining.c: Likewise.
19327         * tests/unictype/test-decdigit.c: Likewise.
19328         * tests/unictype/test-digit.c: Likewise.
19329         * tests/unictype/test-mirror.c: Likewise.
19330         * tests/unictype/test-numeric.c: Likewise.
19331         * tests/unictype/test-pr_byname.c: Likewise.
19332         * tests/unictype/test-pr_test.c: Likewise.
19333         * tests/unictype/test-predicate-part1.h: Likewise.
19334         * tests/unictype/test-scripts.c: Likewise.
19335         * tests/unictype/test-sy_c_ident.c: Likewise.
19336         * tests/unictype/test-sy_java_ident.c: Likewise.
19337         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19338         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19339         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19340         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19341         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19342         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19343         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19344         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19345         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19346         * tests/uninorm/test-compat-decomposition.c: Likewise.
19347         * tests/uninorm/test-composition.c: Likewise.
19348         * tests/uninorm/test-decomposing-form.c: Likewise.
19349         * tests/uninorm/test-decomposition.c: Likewise.
19350         * tests/uninorm/test-u8-nfc.c: Likewise.
19351         * tests/uninorm/test-u8-nfd.c: Likewise.
19352         * tests/uninorm/test-u8-nfkc.c: Likewise.
19353         * tests/uninorm/test-u8-nfkd.c: Likewise.
19354         * tests/uninorm/test-u8-normcmp.c: Likewise.
19355         * tests/uninorm/test-u8-normcoll.c: Likewise.
19356         * tests/uninorm/test-u16-nfc.c: Likewise.
19357         * tests/uninorm/test-u16-nfd.c: Likewise.
19358         * tests/uninorm/test-u16-nfkc.c: Likewise.
19359         * tests/uninorm/test-u16-nfkd.c: Likewise.
19360         * tests/uninorm/test-u16-normcmp.c: Likewise.
19361         * tests/uninorm/test-u16-normcoll.c: Likewise.
19362         * tests/uninorm/test-u32-nfc.c: Likewise.
19363         * tests/uninorm/test-u32-nfd.c: Likewise.
19364         * tests/uninorm/test-u32-nfkc.c: Likewise.
19365         * tests/uninorm/test-u32-nfkd.c: Likewise.
19366         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19367         * tests/uninorm/test-u32-normcmp.c: Likewise.
19368         * tests/uninorm/test-u32-normcoll.c: Likewise.
19369         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19370         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19371         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19372         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19373         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19374         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19375         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19376         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19377         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19378         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19379         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19380         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19381         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19382         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19383         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19384         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19385         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19386         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19387         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19388         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19389         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19390         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19391         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19392         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19393         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19394         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19395         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19396         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19397         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19398         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19399         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19400         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19401         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19402         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19403         * tests/uniwidth/test-u8-width.c: Likewise.
19404         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19405         * tests/uniwidth/test-u16-width.c: Likewise.
19406         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19407         * tests/uniwidth/test-u32-width.c: Likewise.
19408         * tests/uniwidth/test-uc_width.c: Likewise.
19409         * tests/uniwidth/test-uc_width2.c: Likewise.
19410         * modules/acl-tests (Files): Add tests/macros.h.
19411         * modules/areadlink-tests (Files): Likewise.
19412         * modules/areadlink-with-size-tests (Files): Likewise.
19413         * modules/areadlinkat-tests (Files): Likewise.
19414         * modules/areadlinkat-with-size-tests (Files): Likewise.
19415         * modules/argmatch-tests (Files): Likewise.
19416         * modules/argv-iter-tests (Files): Likewise.
19417         * modules/array-list-tests (Files): Likewise.
19418         * modules/array-mergesort-tests (Files): Likewise.
19419         * modules/array-oset-tests (Files): Likewise.
19420         * modules/avltree-list-tests (Files): Likewise.
19421         * modules/avltree-oset-tests (Files): Likewise.
19422         * modules/avltreehash-list-tests (Files): Likewise.
19423         * modules/base64-tests (Files): Likewise.
19424         * modules/binary-io-tests (Files): Likewise.
19425         * modules/bitrotate-tests (Files): Likewise.
19426         * modules/btowc-tests (Files): Likewise.
19427         * modules/byteswap-tests (Files): Likewise.
19428         * modules/c-ctype-tests (Files): Likewise.
19429         * modules/c-stack-tests (Files): Likewise.
19430         * modules/c-strcase-tests (Files): Likewise.
19431         * modules/c-strcasestr-tests (Files): Likewise.
19432         * modules/c-strstr-tests (Files): Likewise.
19433         * modules/canonicalize-lgpl-tests (Files): Likewise.
19434         * modules/canonicalize-tests (Files): Likewise.
19435         * modules/carray-list-tests (Files): Likewise.
19436         * modules/ceilf-tests (Files): Likewise.
19437         * modules/ceill-tests (Files): Likewise.
19438         * modules/chown-tests (Files): Likewise.
19439         * modules/cloexec-tests (Files): Likewise.
19440         * modules/copy-file-tests (Files): Likewise.
19441         * modules/count-one-bits-tests (Files): Likewise.
19442         * modules/dprintf-posix-tests (Files): Likewise.
19443         * modules/dup2-tests (Files): Likewise.
19444         * modules/dup3-tests (Files): Likewise.
19445         * modules/duplocale-tests (Files): Likewise.
19446         * modules/fbufmode-tests (Files): Likewise.
19447         * modules/fchdir-tests (Files): Likewise.
19448         * modules/fcntl-safer-tests (Files): Likewise.
19449         * modules/fcntl-tests (Files): Likewise.
19450         * modules/fdopendir-tests (Files): Likewise.
19451         * modules/fdutimensat-tests (Files): Likewise.
19452         * modules/fflush-tests (Files): Likewise.
19453         * modules/filevercmp-tests (Files): Likewise.
19454         * modules/flock-tests (Files): Likewise.
19455         * modules/floorf-tests (Files): Likewise.
19456         * modules/floorl-tests (Files): Likewise.
19457         * modules/fnmatch-tests (Files): Likewise.
19458         * modules/fopen-safer-tests (Files): Likewise.
19459         * modules/fopen-tests (Files): Likewise.
19460         * modules/fpending-tests (Files): Likewise.
19461         * modules/fprintf-posix-tests (Files): Likewise.
19462         * modules/fpurge-tests (Files): Likewise.
19463         * modules/freadable-tests (Files): Likewise.
19464         * modules/freadahead-tests (Files): Likewise.
19465         * modules/freading-tests (Files): Likewise.
19466         * modules/freadptr-tests (Files): Likewise.
19467         * modules/freadseek-tests (Files): Likewise.
19468         * modules/freopen-tests (Files): Likewise.
19469         * modules/frexp-nolibm-tests (Files): Likewise.
19470         * modules/frexp-tests (Files): Likewise.
19471         * modules/frexpl-nolibm-tests (Files): Likewise.
19472         * modules/frexpl-tests (Files): Likewise.
19473         * modules/fseek-tests (Files): Likewise.
19474         * modules/fseeko-tests (Files): Likewise.
19475         * modules/fstrcmp-tests (Files): Likewise.
19476         * modules/fsync-tests (Files): Likewise.
19477         * modules/ftell-tests (Files): Likewise.
19478         * modules/ftello-tests (Files): Likewise.
19479         * modules/func-tests (Files): Likewise.
19480         * modules/futimens-tests (Files): Likewise.
19481         * modules/fwritable-tests (Files): Likewise.
19482         * modules/fwriting-tests (Files): Likewise.
19483         * modules/getcwd-tests (Files): Likewise.
19484         * modules/getdate-tests (Files): Likewise.
19485         * modules/getdelim-tests (Files): Likewise.
19486         * modules/getdtablesize-tests (Files): Likewise.
19487         * modules/getgroups-tests (Files): Likewise.
19488         * modules/getline-tests (Files): Likewise.
19489         * modules/getndelim2-tests (Files): Likewise.
19490         * modules/glob-tests (Files): Likewise.
19491         * modules/hash-tests (Files): Likewise.
19492         * modules/i-ring-tests (Files): Likewise.
19493         * modules/iconv-tests (Files): Likewise.
19494         * modules/iconv_open-utf-tests (Files): Likewise.
19495         * modules/idpriv-drop-tests (Files): Likewise.
19496         * modules/idpriv-droptemp-tests (Files): Likewise.
19497         * modules/inet_ntop-tests (Files): Likewise.
19498         * modules/inet_pton-tests (Files): Likewise.
19499         * modules/isblank-tests (Files): Likewise.
19500         * modules/isfinite-tests (Files): Likewise.
19501         * modules/isinf-tests (Files): Likewise.
19502         * modules/isnan-tests (Files): Likewise.
19503         * modules/isnand-nolibm-tests (Files): Likewise.
19504         * modules/isnand-tests (Files): Likewise.
19505         * modules/isnanf-nolibm-tests (Files): Likewise.
19506         * modules/isnanf-tests (Files): Likewise.
19507         * modules/isnanl-nolibm-tests (Files): Likewise.
19508         * modules/isnanl-tests (Files): Likewise.
19509         * modules/lchown-tests (Files): Likewise.
19510         * modules/ldexpl-tests (Files): Likewise.
19511         * modules/link-tests (Files): Likewise.
19512         * modules/linkat-tests (Files): Likewise.
19513         * modules/linked-list-tests (Files): Likewise.
19514         * modules/linkedhash-list-tests (Files): Likewise.
19515         * modules/localename-tests (Files): Likewise.
19516         * modules/lseek-tests (Files): Likewise.
19517         * modules/lstat-tests (Files): Likewise.
19518         * modules/mbmemcasecmp-tests (Files): Likewise.
19519         * modules/mbmemcasecoll-tests (Files): Likewise.
19520         * modules/mbrtowc-tests (Files): Likewise.
19521         * modules/mbscasecmp-tests (Files): Likewise.
19522         * modules/mbscasestr-tests (Files): Likewise.
19523         * modules/mbschr-tests (Files): Likewise.
19524         * modules/mbscspn-tests (Files): Likewise.
19525         * modules/mbsinit-tests (Files): Likewise.
19526         * modules/mbsncasecmp-tests (Files): Likewise.
19527         * modules/mbsnrtowcs-tests (Files): Likewise.
19528         * modules/mbspbrk-tests (Files): Likewise.
19529         * modules/mbspcasecmp-tests (Files): Likewise.
19530         * modules/mbsrchr-tests (Files): Likewise.
19531         * modules/mbsrtowcs-tests (Files): Likewise.
19532         * modules/mbsspn-tests (Files): Likewise.
19533         * modules/mbsstr-tests (Files): Likewise.
19534         * modules/memchr-tests (Files): Likewise.
19535         * modules/memchr2-tests (Files): Likewise.
19536         * modules/memcmp-tests (Files): Likewise.
19537         * modules/memmem-tests (Files): Likewise.
19538         * modules/memrchr-tests (Files): Likewise.
19539         * modules/mkdir-tests (Files): Likewise.
19540         * modules/mkfifo-tests (Files): Likewise.
19541         * modules/mkfifoat-tests (Files): Likewise.
19542         * modules/mknod-tests (Files): Likewise.
19543         * modules/nanosleep-tests (Files): Likewise.
19544         * modules/nl_langinfo-tests (Files): Likewise.
19545         * modules/obstack-printf-tests (Files): Likewise.
19546         * modules/open-tests (Files): Likewise.
19547         * modules/openat-tests (Files): Likewise.
19548         * modules/pipe-filter-gi-tests (Files): Likewise.
19549         * modules/pipe-filter-ii-tests (Files): Likewise.
19550         * modules/pipe2-tests (Files): Likewise.
19551         * modules/popen-safer-tests (Files): Likewise.
19552         * modules/popen-tests (Files): Likewise.
19553         * modules/posixtm-tests (Files): Likewise.
19554         * modules/pread-tests (Files): Likewise.
19555         * modules/printf-frexp-tests (Files): Likewise.
19556         * modules/printf-frexpl-tests (Files): Likewise.
19557         * modules/printf-posix-tests (Files): Likewise.
19558         * modules/priv-set-tests (Files): Likewise.
19559         * modules/quotearg-tests (Files): Likewise.
19560         * modules/random_r-tests (Files): Likewise.
19561         * modules/rawmemchr-tests (Files): Likewise.
19562         * modules/rbtree-list-tests (Files): Likewise.
19563         * modules/rbtree-oset-tests (Files): Likewise.
19564         * modules/rbtreehash-list-tests (Files): Likewise.
19565         * modules/readlink-tests (Files): Likewise.
19566         * modules/remove-tests (Files): Likewise.
19567         * modules/rename-tests (Files): Likewise.
19568         * modules/renameat-tests (Files): Likewise.
19569         * modules/rmdir-tests (Files): Likewise.
19570         * modules/round-tests (Files): Likewise.
19571         * modules/roundf-tests (Files): Likewise.
19572         * modules/roundl-tests (Files): Likewise.
19573         * modules/safe-alloc-tests (Files): Likewise.
19574         * modules/setenv-tests (Files): Likewise.
19575         * modules/sigaction-tests (Files): Likewise.
19576         * modules/signbit-tests (Files): Likewise.
19577         * modules/sleep-tests (Files): Likewise.
19578         * modules/snprintf-posix-tests (Files): Likewise.
19579         * modules/snprintf-tests (Files): Likewise.
19580         * modules/sprintf-posix-tests (Files): Likewise.
19581         * modules/stat-tests (Files): Likewise.
19582         * modules/stat-time-tests (Files): Likewise.
19583         * modules/strcasestr-tests (Files): Likewise.
19584         * modules/strchrnul-tests (Files): Likewise.
19585         * modules/strerror-tests (Files): Likewise.
19586         * modules/striconv-tests (Files): Likewise.
19587         * modules/striconveh-tests (Files): Likewise.
19588         * modules/striconveha-tests (Files): Likewise.
19589         * modules/strsignal-tests (Files): Likewise.
19590         * modules/strstr-tests (Files): Likewise.
19591         * modules/strtod-tests (Files): Likewise.
19592         * modules/strverscmp-tests (Files): Likewise.
19593         * modules/symlink-tests (Files): Likewise.
19594         * modules/symlinkat-tests (Files): Likewise.
19595         * modules/trunc-tests (Files): Likewise.
19596         * modules/truncf-tests (Files): Likewise.
19597         * modules/truncl-tests (Files): Likewise.
19598         * modules/uname-tests (Files): Likewise.
19599         * modules/unicase/cased-tests (Files): Likewise.
19600         * modules/unicase/ignorable-tests (Files): Likewise.
19601         * modules/unicase/locale-language-tests (Files): Likewise.
19602         * modules/unicase/tolower-tests (Files): Likewise.
19603         * modules/unicase/totitle-tests (Files): Likewise.
19604         * modules/unicase/toupper-tests (Files): Likewise.
19605         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19606         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19607         * modules/unicase/u8-casefold-tests (Files): Likewise.
19608         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19609         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19610         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19611         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19612         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19613         * modules/unicase/u8-tolower-tests (Files): Likewise.
19614         * modules/unicase/u8-totitle-tests (Files): Likewise.
19615         * modules/unicase/u8-toupper-tests (Files): Likewise.
19616         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19617         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19618         * modules/unicase/u16-casefold-tests (Files): Likewise.
19619         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19620         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19621         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19622         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19623         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19624         * modules/unicase/u16-tolower-tests (Files): Likewise.
19625         * modules/unicase/u16-totitle-tests (Files): Likewise.
19626         * modules/unicase/u16-toupper-tests (Files): Likewise.
19627         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19628         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19629         * modules/unicase/u32-casefold-tests (Files): Likewise.
19630         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19631         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19632         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19633         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19634         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19635         * modules/unicase/u32-tolower-tests (Files): Likewise.
19636         * modules/unicase/u32-totitle-tests (Files): Likewise.
19637         * modules/unicase/u32-toupper-tests (Files): Likewise.
19638         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19639         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19640         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19641         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19642         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19643         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19644         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19645         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19646         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19647         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19648         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19649         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19650         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19651         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19652         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19653         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19654         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19655         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19656         * modules/unictype/block-list-tests (Files): Likewise.
19657         * modules/unictype/block-of-tests (Files): Likewise.
19658         * modules/unictype/block-test-tests (Files): Likewise.
19659         * modules/unictype/category-C-tests (Files): Likewise.
19660         * modules/unictype/category-Cc-tests (Files): Likewise.
19661         * modules/unictype/category-Cf-tests (Files): Likewise.
19662         * modules/unictype/category-Cn-tests (Files): Likewise.
19663         * modules/unictype/category-Co-tests (Files): Likewise.
19664         * modules/unictype/category-Cs-tests (Files): Likewise.
19665         * modules/unictype/category-L-tests (Files): Likewise.
19666         * modules/unictype/category-Ll-tests (Files): Likewise.
19667         * modules/unictype/category-Lm-tests (Files): Likewise.
19668         * modules/unictype/category-Lo-tests (Files): Likewise.
19669         * modules/unictype/category-Lt-tests (Files): Likewise.
19670         * modules/unictype/category-Lu-tests (Files): Likewise.
19671         * modules/unictype/category-M-tests (Files): Likewise.
19672         * modules/unictype/category-Mc-tests (Files): Likewise.
19673         * modules/unictype/category-Me-tests (Files): Likewise.
19674         * modules/unictype/category-Mn-tests (Files): Likewise.
19675         * modules/unictype/category-N-tests (Files): Likewise.
19676         * modules/unictype/category-Nd-tests (Files): Likewise.
19677         * modules/unictype/category-Nl-tests (Files): Likewise.
19678         * modules/unictype/category-No-tests (Files): Likewise.
19679         * modules/unictype/category-P-tests (Files): Likewise.
19680         * modules/unictype/category-Pc-tests (Files): Likewise.
19681         * modules/unictype/category-Pd-tests (Files): Likewise.
19682         * modules/unictype/category-Pe-tests (Files): Likewise.
19683         * modules/unictype/category-Pf-tests (Files): Likewise.
19684         * modules/unictype/category-Pi-tests (Files): Likewise.
19685         * modules/unictype/category-Po-tests (Files): Likewise.
19686         * modules/unictype/category-Ps-tests (Files): Likewise.
19687         * modules/unictype/category-S-tests (Files): Likewise.
19688         * modules/unictype/category-Sc-tests (Files): Likewise.
19689         * modules/unictype/category-Sk-tests (Files): Likewise.
19690         * modules/unictype/category-Sm-tests (Files): Likewise.
19691         * modules/unictype/category-So-tests (Files): Likewise.
19692         * modules/unictype/category-Z-tests (Files): Likewise.
19693         * modules/unictype/category-Zl-tests (Files): Likewise.
19694         * modules/unictype/category-Zp-tests (Files): Likewise.
19695         * modules/unictype/category-Zs-tests (Files): Likewise.
19696         * modules/unictype/category-and-not-tests (Files): Likewise.
19697         * modules/unictype/category-and-tests (Files): Likewise.
19698         * modules/unictype/category-byname-tests (Files): Likewise.
19699         * modules/unictype/category-name-tests (Files): Likewise.
19700         * modules/unictype/category-none-tests (Files): Likewise.
19701         * modules/unictype/category-of-tests (Files): Likewise.
19702         * modules/unictype/category-or-tests (Files): Likewise.
19703         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19704         * modules/unictype/combining-class-tests (Files): Likewise.
19705         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19706         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19707         * modules/unictype/ctype-blank-tests (Files): Likewise.
19708         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19709         * modules/unictype/ctype-digit-tests (Files): Likewise.
19710         * modules/unictype/ctype-graph-tests (Files): Likewise.
19711         * modules/unictype/ctype-lower-tests (Files): Likewise.
19712         * modules/unictype/ctype-print-tests (Files): Likewise.
19713         * modules/unictype/ctype-punct-tests (Files): Likewise.
19714         * modules/unictype/ctype-space-tests (Files): Likewise.
19715         * modules/unictype/ctype-upper-tests (Files): Likewise.
19716         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19717         * modules/unictype/decimal-digit-tests (Files): Likewise.
19718         * modules/unictype/digit-tests (Files): Likewise.
19719         * modules/unictype/mirror-tests (Files): Likewise.
19720         * modules/unictype/numeric-tests (Files): Likewise.
19721         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19722         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19723         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19724         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19725         Likewise.
19726         * modules/unictype/property-bidi-block-separator-tests (Files):
19727         Likewise.
19728         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19729         Likewise.
19730         * modules/unictype/property-bidi-common-separator-tests (Files):
19731         Likewise.
19732         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19733         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19734         Likewise.
19735         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19736         Likewise.
19737         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19738         Likewise.
19739         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19740         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19741         Likewise.
19742         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19743         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19744         Likewise.
19745         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19746         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19747         * modules/unictype/property-bidi-segment-separator-tests (Files):
19748         Likewise.
19749         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19750         * modules/unictype/property-byname-tests (Files): Likewise.
19751         * modules/unictype/property-combining-tests (Files): Likewise.
19752         * modules/unictype/property-composite-tests (Files): Likewise.
19753         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19754         * modules/unictype/property-dash-tests (Files): Likewise.
19755         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19756         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19757         Likewise.
19758         * modules/unictype/property-deprecated-tests (Files): Likewise.
19759         * modules/unictype/property-diacritic-tests (Files): Likewise.
19760         * modules/unictype/property-extender-tests (Files): Likewise.
19761         * modules/unictype/property-format-control-tests (Files): Likewise.
19762         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19763         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19764         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19765         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19766         * modules/unictype/property-hyphen-tests (Files): Likewise.
19767         * modules/unictype/property-id-continue-tests (Files): Likewise.
19768         * modules/unictype/property-id-start-tests (Files): Likewise.
19769         * modules/unictype/property-ideographic-tests (Files): Likewise.
19770         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19771         * modules/unictype/property-ids-trinary-operator-tests (Files):
19772         Likewise.
19773         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19774         * modules/unictype/property-iso-control-tests (Files): Likewise.
19775         * modules/unictype/property-join-control-tests (Files): Likewise.
19776         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19777         * modules/unictype/property-line-separator-tests (Files): Likewise.
19778         * modules/unictype/property-logical-order-exception-tests (Files):
19779         Likewise.
19780         * modules/unictype/property-lowercase-tests (Files): Likewise.
19781         * modules/unictype/property-math-tests (Files): Likewise.
19782         * modules/unictype/property-non-break-tests (Files): Likewise.
19783         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19784         * modules/unictype/property-numeric-tests (Files): Likewise.
19785         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19786         * modules/unictype/property-other-default-ignorable-code-point-tests
19787         (Files): Likewise.
19788         * modules/unictype/property-other-grapheme-extend-tests (Files):
19789         Likewise.
19790         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19791         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19792         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19793         * modules/unictype/property-other-math-tests (Files): Likewise.
19794         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19795         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19796         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19797         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19798         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19799         * modules/unictype/property-private-use-tests (Files): Likewise.
19800         * modules/unictype/property-punctuation-tests (Files): Likewise.
19801         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19802         * modules/unictype/property-radical-tests (Files): Likewise.
19803         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19804         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19805         * modules/unictype/property-space-tests (Files): Likewise.
19806         * modules/unictype/property-terminal-punctuation-tests (Files):
19807         Likewise.
19808         * modules/unictype/property-test-tests (Files): Likewise.
19809         * modules/unictype/property-titlecase-tests (Files): Likewise.
19810         * modules/unictype/property-unassigned-code-value-tests (Files):
19811         Likewise.
19812         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19813         * modules/unictype/property-uppercase-tests (Files): Likewise.
19814         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19815         * modules/unictype/property-white-space-tests (Files): Likewise.
19816         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19817         * modules/unictype/property-xid-start-tests (Files): Likewise.
19818         * modules/unictype/property-zero-width-tests (Files): Likewise.
19819         * modules/unictype/scripts-tests (Files): Likewise.
19820         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19821         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19822         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19823         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19824         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19825         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19826         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19827         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19828         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19829         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19830         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19831         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19832         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19833         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19834         * modules/uninorm/composition-tests (Files): Likewise.
19835         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19836         * modules/uninorm/decomposition-tests (Files): Likewise.
19837         * modules/uninorm/filter-tests (Files): Likewise.
19838         * modules/uninorm/nfc-tests (Files): Likewise.
19839         * modules/uninorm/nfd-tests (Files): Likewise.
19840         * modules/uninorm/nfkc-tests (Files): Likewise.
19841         * modules/uninorm/nfkd-tests (Files): Likewise.
19842         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19843         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19844         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19845         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19846         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19847         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19848         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19849         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19850         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19851         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19852         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19853         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19854         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19855         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19856         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19857         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19858         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19859         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19860         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19861         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19862         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19863         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19864         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19865         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19866         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19867         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19868         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19869         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19870         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19871         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19872         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19873         * modules/uniwidth/u8-width-tests (Files): Likewise.
19874         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19875         * modules/uniwidth/u16-width-tests (Files): Likewise.
19876         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19877         * modules/uniwidth/u32-width-tests (Files): Likewise.
19878         * modules/uniwidth/width-tests (Files): Likewise.
19879         * modules/unlink-tests (Files): Likewise.
19880         * modules/unsetenv-tests (Files): Likewise.
19881         * modules/usleep-tests (Files): Likewise.
19882         * modules/utimens-tests (Files): Likewise.
19883         * modules/utimensat-tests (Files): Likewise.
19884         * modules/vasnprintf-posix-tests (Files): Likewise.
19885         * modules/vasnprintf-tests (Files): Likewise.
19886         * modules/vasprintf-posix-tests (Files): Likewise.
19887         * modules/vasprintf-tests (Files): Likewise.
19888         * modules/vdprintf-posix-tests (Files): Likewise.
19889         * modules/vfprintf-posix-tests (Files): Likewise.
19890         * modules/vprintf-posix-tests (Files): Likewise.
19891         * modules/vsnprintf-posix-tests (Files): Likewise.
19892         * modules/vsnprintf-tests (Files): Likewise.
19893         * modules/vsprintf-posix-tests (Files): Likewise.
19894         * modules/wcrtomb-tests (Files): Likewise.
19895         * modules/wcsnrtombs-tests (Files): Likewise.
19896         * modules/wcsrtombs-tests (Files): Likewise.
19897         * modules/wctype-tests (Files): Likewise.
19898         * modules/wcwidth-tests (Files): Likewise.
19899         * modules/xmemdup0-tests (Files): Likewise.
19900         * modules/xprintf-posix-tests (Files): Likewise.
19901         * modules/xvasprintf-tests (Files): Likewise.
19902
19903 2009-12-24  Eric Blake  <ebb9@byu.net>
19904
19905         test-nanosleep: fix typo
19906         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19907         patch.
19908         Reported by Bruno Haible.
19909
19910 2009-12-24  Bruno Haible  <bruno@clisp.org>
19911
19912         Reduce namespace pollution on glibc systems.
19913         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19914         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19915         systems.
19916         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19917         <getopt.h> on glibc systems.
19918         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19919         systems.
19920         * lib/fcntl.c: Include <unistd.h> here instead.
19921
19922 2009-12-24  Bruno Haible  <bruno@clisp.org>
19923
19924         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19925
19926 2009-12-24  Eric Blake  <ebb9@byu.net>
19927
19928         tests: add signature checks
19929         * tests/signature.h (SIGNATURE_CHECK): New file.
19930         * modules/atexit-tests (Files): Use it.
19931         * modules/btowc-tests (Files): Likewise.
19932         * modules/canonicalize-lgpl-tests (Files): Likewise.
19933         * modules/ceilf-tests (Files): Likewise.
19934         * modules/ceill-tests (Files): Likewise.
19935         * modules/chown-tests (Files): Likewise.
19936         * modules/dprintf-posix-tests (Files): Likewise.
19937         * modules/dup2-tests (Files): Likewise.
19938         * modules/dup3-tests (Files): Likewise.
19939         * modules/duplocale-tests (Files): Likewise.
19940         * modules/fchdir-tests (Files): Likewise.
19941         * modules/fcntl-tests (Files): Likewise.
19942         * modules/fdopendir-tests (Files): Likewise.
19943         * modules/fflush-tests (Files): Likewise.
19944         * modules/flock-tests (Files): Likewise.
19945         * modules/floorf-tests (Files): Likewise.
19946         * modules/floorl-tests (Files): Likewise.
19947         * modules/fnmatch-tests (Files): Likewise.
19948         * modules/fopen-tests (Files): Likewise.
19949         * modules/fprintf-posix-tests (Files): Likewise.
19950         * modules/freopen-tests (Files): Likewise.
19951         * modules/frexp-nolibm-tests (Files): Likewise.
19952         * modules/frexp-tests (Files): Likewise.
19953         * modules/frexpl-nolibm-tests (Files): Likewise.
19954         * modules/frexpl-tests (Files): Likewise.
19955         * modules/fseek-tests (Files): Likewise.
19956         * modules/fseeko-tests (Files): Likewise.
19957         * modules/fsync-tests (Files): Likewise.
19958         * modules/ftell-tests (Files): Likewise.
19959         * modules/ftello-tests (Files): Likewise.
19960         * modules/futimens-tests (Files): Likewise.
19961         * modules/getaddrinfo-tests (Files): Likewise.
19962         * modules/getcwd-tests (Files): Likewise.
19963         * modules/getdelim-tests (Files): Likewise.
19964         * modules/getdtablesize-tests (Files): Likewise.
19965         * modules/getgroups-tests (Files): Likewise.
19966         * modules/gethostname-tests (Files): Likewise.
19967         * modules/getline-tests (Files): Likewise.
19968         * modules/getopt-posix-tests (Files): Likewise.
19969         * modules/gettimeofday-tests (Files): Likewise.
19970         * modules/glob-tests (Files): Likewise.
19971         * modules/iconv-tests (Files): Likewise.
19972         * modules/inet_ntop-tests (Files): Likewise.
19973         * modules/inet_pton-tests (Files): Likewise.
19974         * modules/isblank-tests (Files): Likewise.
19975         * modules/lchown-tests (Files): Likewise.
19976         * modules/ldexpl-tests (Files): Likewise.
19977         * modules/link-tests (Files): Likewise.
19978         * modules/linkat-tests (Files): Likewise.
19979         * modules/lseek-tests (Files): Likewise.
19980         * modules/lstat-tests (Files): Likewise.
19981         * modules/mbrtowc-tests (Files): Likewise.
19982         * modules/mbsinit-tests (Files): Likewise.
19983         * modules/mbsnrtowcs-tests (Files): Likewise.
19984         * modules/mbsrtowcs-tests (Files): Likewise.
19985         * modules/memchr-tests (Files): Likewise.
19986         * modules/memcmp-tests (Files): Likewise.
19987         * modules/memmem-tests (Files): Likewise.
19988         * modules/memrchr-tests (Files): Likewise.
19989         * modules/mkdir-tests (Files): Likewise.
19990         * modules/mkfifo-tests (Files): Likewise.
19991         * modules/mkfifoat-tests (Files): Likewise.
19992         * modules/mknod-tests (Files): Likewise.
19993         * modules/nanosleep-tests (Files): Likewise.
19994         * modules/nl_langinfo-tests (Files): Likewise.
19995         * modules/obstack-printf-tests (Files): Likewise.
19996         * modules/open-tests (Files): Likewise.
19997         * modules/openat-tests (Files): Likewise.
19998         * modules/perror-tests (Files): Likewise.
19999         * modules/pipe2-tests (Files): Likewise.
20000         * modules/poll-tests (Files): Likewise.
20001         * modules/popen-tests (Files): Likewise.
20002         * modules/posix_spawn-tests (Files): Likewise.
20003         * modules/posix_spawnp-tests (Files): Likewise.
20004         * modules/pread-tests (Files): Likewise.
20005         * modules/printf-posix-tests (Files): Likewise.
20006         * modules/pty-tests (Files): Likewise.
20007         * modules/random_r-tests (Files): Likewise.
20008         * modules/rawmemchr-tests (Files): Likewise.
20009         * modules/readlink-tests (Files): Likewise.
20010         * modules/remove-tests (Files): Likewise.
20011         * modules/rename-tests (Files): Likewise.
20012         * modules/renameat-tests (Files): Likewise.
20013         * modules/rmdir-tests (Files): Likewise.
20014         * modules/round-tests (Files): Likewise.
20015         * modules/roundf-tests (Files): Likewise.
20016         * modules/roundl-tests (Files): Likewise.
20017         * modules/select-tests (Files): Likewise.
20018         * modules/setenv-tests (Files): Likewise.
20019         * modules/sigaction-tests (Files): Likewise.
20020         * modules/sleep-tests (Files): Likewise.
20021         * modules/snprintf-posix-tests (Files): Likewise.
20022         * modules/snprintf-tests (Files): Likewise.
20023         * modules/sprintf-posix-tests (Files): Likewise.
20024         * modules/stat-tests (Files): Likewise.
20025         * modules/strcasestr-tests (Files): Likewise.
20026         * modules/strchrnul-tests (Files): Likewise.
20027         * modules/strerror-tests (Files): Likewise.
20028         * modules/strsignal-tests (Files): Likewise.
20029         * modules/strstr-tests (Files): Likewise.
20030         * modules/strtod-tests (Files): Likewise.
20031         * modules/strverscmp-tests (Files): Likewise.
20032         * modules/symlink-tests (Files): Likewise.
20033         * modules/symlinkat-tests (Files): Likewise.
20034         * modules/times-tests (Files): Likewise.
20035         * modules/trunc-tests (Files): Likewise.
20036         * modules/truncf-tests (Files): Likewise.
20037         * modules/truncl-tests (Files): Likewise.
20038         * modules/tsearch-tests (Files): Likewise.
20039         * modules/uname-tests (Files): Likewise.
20040         * modules/unlink-tests (Files): Likewise.
20041         * modules/unsetenv-tests (Files): Likewise.
20042         * modules/usleep-tests (Files): Likewise.
20043         * modules/utimensat-tests (Files): Likewise.
20044         * modules/vasprintf-tests (Files): Likewise.
20045         * modules/vdprintf-posix-tests (Files): Likewise.
20046         * modules/vfprintf-posix-tests (Files): Likewise.
20047         * modules/vprintf-posix-tests (Files): Likewise.
20048         * modules/vsnprintf-posix-tests (Files): Likewise.
20049         * modules/vsnprintf-tests (Files): Likewise.
20050         * modules/vsprintf-posix-tests (Files): Likewise.
20051         * modules/wcrtomb-tests (Files): Likewise.
20052         * modules/wcsnrtombs-tests (Files): Likewise.
20053         * modules/wcsrtombs-tests (Files): Likewise.
20054         * modules/wcwidth-tests (Files): Likewise.
20055         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20056         * tests/test-isinf.c (isinf): Likewise.
20057         * tests/test-isnan.c (isnan): Likewise.
20058         * tests/test-signbit.c (signbit): Likewise.
20059         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20060         declaration, either as macro or with correct signature.
20061         (select): Ensure function under test is declared with correct
20062         signature in correct header.
20063         * tests/test-atexit.c (atexit): Likewise.
20064         * tests/test-btowc.c (btowc): Likewise.
20065         * tests/test-canonicalize-lgpl.c (realpath)
20066         (canonicalize_file_name): Likewise.
20067         * tests/test-ceilf1.c (ceilf): Likewise.
20068         * tests/test-ceill.c (ceill): Likewise.
20069         * tests/test-chown.c (chown): Likewise.
20070         * tests/test-dprintf-posix.c (dprintf): Likewise.
20071         * tests/test-dup2.c (dup2): Likewise.
20072         * tests/test-dup3.c (dup3): Likewise.
20073         * tests/test-duplocale.c (duplocale): Likewise.
20074         * tests/test-fchdir.c (fchdir): Likewise.
20075         * tests/test-fchownat.c (fchownat): Likewise.
20076         * tests/test-fcntl.c (fcntl): Likewise.
20077         * tests/test-fdopendir.c (fdopendir): Likewise.
20078         * tests/test-fflush.c (fflush): Likewise.
20079         * tests/test-flock.c (flock): Likewise.
20080         * tests/test-floorf1.c (floorf): Likewise.
20081         * tests/test-floorl.c (floorl): Likewise.
20082         * tests/test-fnmatch.c (fnmatch): Likewise.
20083         * tests/test-fopen.c (fopen): Likewise.
20084         * tests/test-fprintf-posix.c (fprintf): Likewise.
20085         * tests/test-freopen.c (freopen): Likewise.
20086         * tests/test-frexp.c (frexp): Likewise.
20087         * tests/test-frexpl.c (frexpl): Likewise.
20088         * tests/test-fseek.c (fseek): Likewise.
20089         * tests/test-fseeko.c (fseeko): Likewise.
20090         * tests/test-fstatat.c (fstatat): Likewise.
20091         * tests/test-fsync.c (fsync): Likewise.
20092         * tests/test-ftell.c (ftell): Likewise.
20093         * tests/test-ftello.c (ftello): Likewise.
20094         * tests/test-futimens.c (futimens): Likewise.
20095         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20096         (gai_strerror): Likewise.
20097         * tests/test-getcwd.c (getcwd): Likewise.
20098         * tests/test-getdelim.c (getdelim): Likewise.
20099         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20100         * tests/test-getgroups.c (getgroups): Likewise.
20101         * tests/test-gethostname.c (gethostname): Likewise.
20102         * tests/test-getline.c (getline): Likewise.
20103         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20104         Likewise.
20105         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20106         * tests/test-glob.c (glob, globfree): Likewise.
20107         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20108         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20109         * tests/test-inet_pton.c (inet_pton): Likewise.
20110         * tests/test-isblank.c (isblank): Likewise.
20111         * tests/test-lchown.c (lchown): Likewise.
20112         * tests/test-ldexpl.c (ldexpl): Likewise.
20113         * tests/test-link.c (link): Likewise.
20114         * tests/test-linkat.c (linkat): Likewise.
20115         * tests/test-lseek.c (lseek): Likewise.
20116         * tests/test-lstat.c (lstat): Likewise.
20117         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20118         * tests/test-mbsinit.c (mbsinit): Likewise.
20119         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20120         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20121         * tests/test-memchr.c (memchr): Likewise.
20122         * tests/test-memcmp.c (memcmp): Likewise.
20123         * tests/test-memmem.c (memmem): Likewise.
20124         * tests/test-memrchr.c (memrchr): Likewise.
20125         * tests/test-mkdir.c (mkdir): Likewise.
20126         * tests/test-mkdirat.c (mkdirat): Likewise.
20127         * tests/test-mkfifo.c (mkfifo): Likewise.
20128         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20129         * tests/test-mknod.c (mknod): Likewise.
20130         * tests/test-nanosleep.c (nanosleep): Likewise.
20131         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20132         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20133         Likewise.
20134         * tests/test-open.c (open): Likewise.
20135         * tests/test-openat.c (openat): Likewise.
20136         * tests/test-perror.c (perror): Likewise.
20137         * tests/test-pipe2.c (pipe2): Likewise.
20138         * tests/test-poll.c (poll): Likewise.
20139         * tests/test-popen.c (popen, pclose): Likewise.
20140         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20141         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20142         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20143         (posix_spawn_file_actions_destroy)
20144         (posix_spawn_file_actions_addclose)
20145         (posix_spawn_file_actions_addopen)
20146         (posix_spawn_file_actions_adddup2): Likewise.
20147         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20148         * tests/test-pread.c (pread): Likewise.
20149         * tests/test-printf-posix.c (printf): Likewise.
20150         * tests/test-pty.c (openpty, forkpty): Likewise.
20151         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20152         (random_r): Likewise.
20153         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20154         * tests/test-readlink.c (readlink): Likewise.
20155         * tests/test-remove.c (remove): Likewise.
20156         * tests/test-rename.c (rename): Likewise.
20157         * tests/test-renameat.c (renameat): Likewise.
20158         * tests/test-rmdir.c (rmdir): Likewise.
20159         * tests/test-round1.c (round): Likewise.
20160         * tests/test-roundf1.c (roundf): Likewise.
20161         * tests/test-roundl.c (roundl): Likewise.
20162         * tests/test-setenv.c (setenv): Likewise.
20163         * tests/test-sigaction.c (sigaction): Likewise.
20164         * tests/test-sleep.c (sleep): Likewise.
20165         * tests/test-snprintf.c (snprintf): Likewise.
20166         * tests/test-sprintf-posix.c (sprintf): Likewise.
20167         * tests/test-stat.c (stat): Likewise.
20168         * tests/test-stpncpy.c (stpncpy): Likewise.
20169         * tests/test-strcasestr.c (strcasestr): Likewise.
20170         * tests/test-strchrnul.c (strchrnul): Likewise.
20171         * tests/test-strerror.c (strerror): Likewise.
20172         * tests/test-strsignal.c (strsignal): Likewise.
20173         * tests/test-strstr.c (strstr): Likewise.
20174         * tests/test-strtod.c (strtod): Likewise.
20175         * tests/test-strverscmp.c (strverscmp): Likewise.
20176         * tests/test-symlink.c (symlink): Likewise.
20177         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20178         * tests/test-times.c (times): Likewise.
20179         * tests/test-trunc1.c (trunc): Likewise.
20180         * tests/test-truncf1.c (truncf): Likewise.
20181         * tests/test-truncl.c (truncl): Likewise.
20182         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20183         Likewise.
20184         * tests/test-uname.c (uname): Likewise.
20185         * tests/test-unlink.c (unlink): Likewise.
20186         * tests/test-unlinkat.c (unlinkat): Likewise.
20187         * tests/test-unsetenv.c (unsetenv): Likewise.
20188         * tests/test-usleep.c (usleep): Likewise.
20189         * tests/test-utimensat.c (utimensat): Likewise.
20190         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20191         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20192         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20193         * tests/test-vprintf-posix.c (vprintf): Likewise.
20194         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20195         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20196         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20197         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20198         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20199         * tests/test-wcwidth.c (wcwidth): Likewise.
20200
20201         build: pull in conditional headers during GNULIB_POSIXCHECK
20202         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20203         definitions from any conditionally-included headers.
20204         * lib/stdlib.in.h (includes): Likewise.
20205         * lib/unistd.in.h (includes): Likewise.
20206
20207 2009-12-24  Bruno Haible  <bruno@clisp.org>
20208
20209         * tests/test-argv-iter.c: Include header file being tested immediately
20210         after config.h.
20211         * tests/test-base64.c: Likewise.
20212         * tests/test-flock.c: Likewise.
20213         * tests/test-fsync.c: Likewise.
20214         * tests/test-getdate.c: Likewise.
20215         * tests/test-getndelim2.c: Likewise.
20216         * tests/test-isfinite.c: Likewise.
20217         * tests/test-isinf.c: Likewise.
20218         * tests/test-strerror.c: Likewise.
20219         * tests/test-strsignal.c: Likewise.
20220
20221 2009-12-23  Eric Blake  <ebb9@byu.net>
20222
20223         unistd: work around cygwin bug
20224         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20225         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20226         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20227
20228 2009-12-23  Bruno Haible  <bruno@clisp.org>
20229
20230         localename: More tests.
20231         * tests/test-localename.c (SIZEOF): New macro.
20232         (categories): New variable.
20233         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20234         test_locale_name_default): Add test w.r.t. thread locale.
20235         (test_locale_name_thread): New function.
20236         (main): Invoke it.
20237
20238         localename: Make aware of thread locale.
20239         * lib/localename.h (gl_locale_name_thread): New declaration.
20240         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20241         behaviour with respect to thread locale.
20242         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20243         <langinfo.h>, glthread/lock.h.
20244         (SIZE_BITS): New macro.
20245         (string_hash): New function.
20246         (struct hash_node): New type.
20247         (HASH_TABLE_SIZE): New macro.
20248         (struniq_hash_table, struniq_lock): New variables.
20249         (struniq): New function.
20250         (gl_locale_name_thread): New function.
20251         (gl_locale_name): Invoke it.
20252         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20253         * modules/localename (Depends-on): Add lock.
20254         Reported by Mike Gran <spk121@yahoo.com>.
20255
20256 2009-12-23  Eric Blake  <ebb9@byu.net>
20257
20258         va-args: new module
20259         * modules/va-args: New file.
20260         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20261         * MODULES.html.sh (Core language properties): Mention it.
20262
20263         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20264         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20265         named alias for __attribute__((__unused__)).
20266         * lib/chown.c: Update client.
20267         * lib/fchmodat.c: Likewise.
20268         * lib/fts.c: Likewise.
20269         * lib/getdate.y: Likewise.
20270         * lib/getgroups.c: Likewise.
20271         * lib/getopt.c: Likewise.
20272         * lib/getugroups.c: Likewise.
20273         * lib/mkdir.c: Likewise.
20274         * lib/mkfifo.c: Likewise.
20275         * lib/mkfifoat.c: Likewise.
20276         * lib/mknod.c: Likewise.
20277         * lib/mknodat.c: Likewise.
20278         * lib/readlink.c: Likewise.
20279         * lib/se-context.in.h: Likewise.
20280         * lib/se-selinux.in.h: Likewise.
20281         * lib/sockets.c: Likewise.
20282         * lib/symlink.c: Likewise.
20283         * lib/symlinkat.c: Likewise.
20284         * lib/unicodeio.c: Likewise.
20285         * lib/unistr.h: Likewise.
20286         * tests/test-areadlink.c: Likewise.
20287         * tests/test-areadlinkat.c: Likewise.
20288         * tests/test-filenamecat.c: Likewise.
20289         * tests/test-fseeko.c: Likewise.
20290         * tests/test-ftello.c: Likewise.
20291         * tests/test-getdate.c: Likewise.
20292         * tests/test-getgroups.c: Likewise.
20293         * tests/test-gethostname.c: Likewise.
20294         * tests/test-quotearg.c: Likewise.
20295         * tests/test-version-etc.c: Likewise.
20296         * tests/test-xalloc-die.c: Likewise.
20297         * tests/test-xfprintf-posix.c: Likewise.
20298         * tests/test-xprintf-posix.c: Likewise.
20299         * tests/test-xvasprintf.c: Likewise.
20300
20301         tests: avoid compiler warnings
20302         * tests/test-fcntl.c (main): Delete unused parameters.
20303         * tests/test-freopen-safer.c (main): Likewise.
20304         * tests/test-xalloc-die.c (main): Mark unused parameters.
20305         * tests/test-fseeko.c (main): Likewise.
20306         * tests/test-ftello.c (main): Likewise.
20307         * tests/test-nanosleep.c (main): Avoid declaration warning.
20308         * tests/test-sleep.c (main): Likewise.
20309         * tests/test-unsetenv.c (main): Silence warning about string
20310         literal.
20311         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20312
20313 2009-12-23  Bruno Haible  <bruno@clisp.org>
20314
20315         * tests/test-localename.c (test_locale_name): New function, extracted
20316         from main. Also test mixed situations.
20317         (test_locale_name_posix, test_locale_name_environ,
20318         test_locale_name_default): New functions.
20319         (main): Invoke them all.
20320         * modules/localename-tests (configure.ac): Test for newlocale.
20321
20322 2009-12-23  Bruno Haible  <bruno@clisp.org>
20323
20324         unistd: Ensure getcwd gets declared before being overridden.
20325         * lib/unistd.in.h: Conditionally include <io.h>.
20326
20327 2009-12-22  Bruno Haible  <bruno@clisp.org>
20328
20329         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20330         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20331         (gl_WCHAR_H): Invoke it.
20332         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20333         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20334         Reported by Karl Berry <karl@freefriends.org>.
20335
20336 2009-12-22  Eric Blake  <ebb9@byu.net>
20337
20338         math, unistd: avoid redundant includes
20339         * lib/math.in.h (isnan): No need to re-include <math.h>.
20340         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20341
20342         getsubopt: work around cygwin bug
20343         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20344         avoid conflicting with system getsubopt.
20345         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20346         bug.
20347
20348         getopt: synchronize from glibc
20349         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20350         parameter order.  Adjust all callers.
20351         (_getopt_internal_r, main): Adjust quoting in error messages.
20352         Drop considerations for outdated POSIX 1003.2 error message.
20353         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20354         callers.
20355         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20356
20357         test-getopt: test stderr behavior
20358         * modules/getopt-posix-tests (Depends-on): Add dup2.
20359         * tests/test-getopt.c (ASSERT): Avoid stderr.
20360         (main): Move stderr to a temporary file.
20361         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20362         Instead, add parameter to inform caller if output occurred.
20363         (test_getopt): Adjust all existing tests to expect silence, and
20364         add new tests of leading ":".
20365         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20366         glibc shortcomings with leading "-:" or "+:" in optstring.
20367         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20368         Likewise.
20369         * doc/posix-functions/getopt.texi (getopt): Likewise.
20370
20371         test-getopt: enhance test
20372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20373         supports optind=0.
20374         * tests/test-getopt.c (OPTIND_MIN): Move...
20375         * tests/test-getopt.h (OPTIND_MIN): ...here.
20376         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20377         Require that optind=0 works, since modern BSD supports it in
20378         addition to optreset, and since coreutils expects it.
20379         (test_getopt_long_only): New test.
20380         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20381         glibc shortcomings with 'W;', and enforcement of optind=0.
20382         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20383         Likewise.
20384
20385 2009-12-21  Bruno Haible  <bruno@clisp.org>
20386
20387         localename: Improvements for MacOS X and Cygwin.
20388         * lib/localename.h (gl_locale_name_environ): New declaration.
20389         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20390         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20391         (gl_locale_name_posix): Invoke it.
20392         (gl_locale_name_default): Add comments. Use Windows native API also on
20393         Cygwin.
20394
20395 2009-12-21  Bruno Haible  <bruno@clisp.org>
20396
20397         Update list of Win32 locale ids.
20398         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20399         (LANG_SAMI): Renamed from LANG_SAAMI.
20400         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20401         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20402         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20403         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20404         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20405         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20406         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20407         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20408         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20409         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20410         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20411         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20412         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20413         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20414         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20415         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20416         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20417         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20418         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20419         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20420         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20421         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20422         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20423         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20424         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20425         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20426         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20427         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20428         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20429         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20430         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20431         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20432         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20433         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20434         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20435         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20436         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20437         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20438         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20439         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20440         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20441         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20442         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20443         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20444         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20445         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20446         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20447         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20448         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20449         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20450         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20451         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20452         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20453         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20454         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20455         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20456         Add more languages and countries for Sami, Sorbian. Add more countries
20457         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20458         for Pashto. Change country for Syriac, Tswana.
20459
20460 2009-12-21  Eric Blake  <ebb9@byu.net>
20461
20462         test-utimens: avoid spurious failure
20463         * tests/test-chown.h (nap): Factor...
20464         * tests/nap.h: ...into new file.
20465         * tests/test-lchown.h (nap): Avoid duplication.
20466         * tests/test-utimens-common.h (nap): Use shared implementation,
20467         necessary on file systems with 1-second resolution.
20468         * modules/chown-tests (Files): Include new file.
20469         * modules/fdutimensat-tests (Files): Likewise.
20470         * modules/futimens-tests (Files): Likewise.
20471         * modules/lchown-tests (Files): Likewise.
20472         * modules/openat-tests (Files): Likewise.
20473         * modules/utimens-tests (Files): Likewise.
20474         * modules/utimensat-tests (Files): Likewise.
20475
20476 2009-12-19  Eric Blake  <ebb9@byu.net>
20477
20478         futimens, utimensat: work around Linux bug
20479         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20480         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20481         * lib/utimensat.c (rpl_utimensat): Work around it.
20482         * lib/futimens.c (rpl_futimens): Adjust comment.
20483
20484         utimens: work around Linux ctime bug
20485         * lib/utimens.c (detect_ctime_bug): New helper function.
20486         (update_timespec): Differentiate between workaround needed for
20487         this bug vs. what is needed for systems that lack utimensat.
20488         (fdutimens, lutimens): Work around bug.
20489
20490         utimens: check for ctime update
20491         * tests/test-utimens-common.h (check_ctime): Define.
20492         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20493         * tests/test-futimens.h (test_futimens): Likewise.
20494         * tests/test-lutimens.h (test_lutimens): Likewise.
20495         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20496         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20497
20498 2009-12-19  Bruno Haible  <bruno@clisp.org>
20499
20500         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20501         * tests/test-dprintf-posix2.sh: New file.
20502         * tests/test-dprintf-posix2.c: New file.
20503         * modules/dprintf-posix-tests (Files): Add them.
20504         (configure.ac): Check for getrlimit and setrlimit.
20505         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20506
20507 2009-12-19  Bruno Haible  <bruno@clisp.org>
20508
20509         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20510         * tests/test-fprintf-posix3.sh: New file.
20511         * tests/test-fprintf-posix3.c: New file.
20512         * modules/fprintf-posix-tests (Files): Add them.
20513         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20514
20515 2009-12-19  Eric Blake  <ebb9@byu.net>
20516
20517         dirfd: fix prototype
20518         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20519         * lib/dirfd.c (dirfd): Likewise.
20520
20521         canonicalize: reduce memory usage
20522         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20523         allocation to size.
20524         Reported by Solar Designer <solar@openwall.com>.
20525
20526 2009-12-19  Bruno Haible  <bruno@clisp.org>
20527
20528         New module attribute 'Applicability'.
20529         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20530         * gnulib-tool: New option --extract-applicability.
20531         (func_usage): Document it.
20532         (sed_extract_prog): Recognize it.
20533         (func_get_applicability): New function.
20534         (func_import): Generalize handling of 'link-warning' module.
20535         * modules/link-warning (Applicability): New section.
20536         * modules/arg-nonnull (Applicability): New section.
20537         Repoted by Simon Josefsson <simon@josefsson.org>.
20538
20539 2009-12-19  Bruno Haible  <bruno@clisp.org>
20540
20541         fflush: tweak
20542         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20543         * lib/fseeko.c (rpl_fseeko): Likewise.
20544
20545 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20546
20547         * lib/gl_list.h: Fix typo in comment.
20548
20549 2009-12-16  Eric Blake  <ebb9@byu.net>
20550
20551         fcntl: use to simplify other modules
20552         * modules/cloexec (Depends-on): Add fcntl.
20553         * modules/fchdir (Depends-on): Likewise.
20554         * modules/fd-safer-flag (Depends-on): Likewise.
20555         * modules/unistd-safer (Depends-on): Likewise.
20556         * modules/dup3 (configure.ac): Set module indicator.
20557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20558         missing.
20559         * lib/fchdir.c (_gl_register_dup): Fix comment.
20560         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20561         * lib/dup-safer.c (dup_safer): Likewise.
20562         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20563         * lib/dup3.c (dup3): Likewise.
20564         * tests/test-fchdir.c (main): Enhance test.
20565         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
20566
20567         fcntl: port portions of fcntl to mingw
20568         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20569         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20570         replacement for mingw.
20571         * modules/fcntl (Description): Update.
20572         (Depends-on): Add dup2.
20573         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20574         * modules/fcntl-h (Makefile.am): Substitute it.
20575         * lib/fcntl.in.h (fcntl): Update declaration.
20576         (F_DUPFD, F_GETFD): New macros, when needed.
20577         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20578         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20579         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20580         we now guarantee.
20581
20582         fcntl: work around cygwin bug in F_DUPFD
20583         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20584         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20585         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20586         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20587         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20588
20589         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20590         * modules/fcntl (Files): List new files.
20591         (configure.ac): Run a test.
20592         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20593         * lib/fcntl.c (rpl_fcntl): Likewise.
20594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20595         (gl_FCNTL_H): Always replace fcntl.h.
20596         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20597         * lib/fcntl.in.h (fcntl): Declare replacement.
20598         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20599         needed, plus a witness.
20600         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20601         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20602         * tests/test-fcntl.c: New file.
20603         * modules/fcntl-tests: Likewise.
20604
20605         binary-io: avoid potential compilation warning
20606         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20607         directives.
20608
20609         fflush: avoid compilation error on NetBSD
20610         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20611         between off_t and fpos_t, since the latter is sometimes a struct.
20612         * lib/fseeko.c (rpl_fseeko): Likewise.
20613         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20614
20615 2009-12-15  Eric Blake  <ebb9@byu.net>
20616
20617         fcntl-h, stdio, sys_ioctl: fix declarations
20618         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20619         function must not take arguments.
20620         * lib/sys_ioctl.in.h (ioctl): Likewise.
20621         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20622         (open): Add a link warning.
20623
20624 2009-12-15  Jim Meyering  <meyering@redhat.com>
20625
20626         areadlink, areadlink-with-size: relax license to LGPLv2+
20627         * modules/areadlink (License): Relax to LGPLv2+.
20628         * modules/areadlink-with-size (License): Likewise.
20629
20630 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20631             Bruno Haible  <bruno@clisp.org>
20632
20633         *printf: Fix memory leak.
20634         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20635         * lib/vfprintf.c (vfprintf): Likewise.
20636         * lib/dprintf.c (dprintf): Likewise.
20637         * lib/vdprintf.c (vdprintf): Likewise.
20638
20639 2009-12-14  Eric Blake  <ebb9@byu.net>
20640
20641         accept4: adjust module dependencies
20642         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20643
20644         utimens: one more try at avoiding compiler warning
20645         * lib/utimens.c (lutimens): Lower scope of result.
20646
20647 2009-12-13  Bruno Haible  <bruno@clisp.org>
20648
20649         Move the malloc checking from module 'list' to new module 'xlist'.
20650         * modules/xlist: New file.
20651         * lib/gl_xlist.h: New file.
20652         * lib/gl_xlist.c: New file.
20653         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20654         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20655         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20656         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20657         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20658         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20659         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20660         gl_sortedlist_nx_add): New declarations.
20661         (struct gl_list_implementation): Rename and change methods accordingly.
20662         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20663         (gl_list_nx_create): Renamed from gl_list_create.
20664         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20665         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20666         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20667         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20668         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20669         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20670         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20671         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20672         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20673         gl_list_create_empty.
20674         (gl_list_nx_create): Renamed from gl_list_create.
20675         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20676         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20677         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20678         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20679         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20680         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20681         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20682         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20683         * lib/gl_array_list.c: Don't include xalloc.h.
20684         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20685         NULL upon out-of-memory.
20686         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20687         out-of-memory.
20688         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20689         Change return type to 'int'.
20690         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20691         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20692         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20693         upon out-of-memory.
20694         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20695         upon out-of-memory.
20696         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20697         upon out-of-memory.
20698         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20699         upon out-of-memory.
20700         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20701         out-of-memory.
20702         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20703         Update.
20704         (gl_array_list_implementation): Update.
20705         * lib/gl_carray_list.c: Don't include xalloc.h.
20706         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20707         Return NULL upon out-of-memory.
20708         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20709         out-of-memory.
20710         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20711         Change return type to 'int'.
20712         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20713         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20714         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20715         upon out-of-memory.
20716         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20717         upon out-of-memory.
20718         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20719         out-of-memory.
20720         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20721         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20722         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20723         Update.
20724         (gl_carray_list_implementation): Update.
20725         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20726         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20727         gl_linked_create_empty. Return NULL upon out-of-memory.
20728         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20729         out-of-memory.
20730         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20731         Change return type to 'int'. Return -1 upon out-of-memory.
20732         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20733         out-of-memory.
20734         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20735         upon out-of-memory.
20736         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20737         upon out-of-memory.
20738         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20739         NULL upon out-of-memory.
20740         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20741         upon out-of-memory.
20742         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20743         out-of-memory.
20744         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20745         Update.
20746         * lib/gl_linked_list.c: Don't include xalloc.h.
20747         (gl_linked_list_implementation): Update.
20748         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20749         (add_to_bucket): Change return type to 'int'.
20750         (gl_linkedhash_list_implementation): Update.
20751         * lib/gl_anytree_list1.h (free_subtree): New function.
20752         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20753         gl_tree_create_empty. Return NULL upon out-of-memory.
20754         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20755         Change return type to 'int'. Return -1 upon out-of-memory.
20756         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20757         out-of-memory.
20758         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20759         (gl_tree_remove_node): New function, moved here from
20760         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20761         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20762         Update.
20763         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20764         malloc, not xmalloc. Return NULL upon out-of-memory.
20765         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20766         out-of-memory.
20767         (gl_tree_remove_node_from_tree): New function, extracted from
20768         gl_tree_remove_node.
20769         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20770         upon out-of-memory.
20771         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20772         out-of-memory.
20773         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20774         upon out-of-memory.
20775         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20776         upon out-of-memory.
20777         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20778         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20779         not xmalloc. Return NULL upon out-of-memory.
20780         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20781         out-of-memory.
20782         (gl_tree_remove_node_from_tree): New function, extracted from
20783         gl_tree_remove_node.
20784         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20785         upon out-of-memory.
20786         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20787         out-of-memory.
20788         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20789         upon out-of-memory.
20790         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20791         upon out-of-memory.
20792         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20793         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20794         gl_anytree_list1.h before gl_anyavltree_list2.h.
20795         (gl_avltree_list_implementation): Update.
20796         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20797         gl_anytree_list1.h before gl_anyavltree_list2.h.
20798         (gl_rbtree_list_implementation): Update.
20799         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20800         Change return type to 'int'. Return -1 upon out-of-memory. Use
20801         __builtin_expect.
20802         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20803         (gl_avltreehash_list_implementation): Update.
20804         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20805         (gl_rbtreehash_list_implementation): Update.
20806         * modules/array-list (Depends-on): Remove xalloc.
20807         * modules/carray-list (Depends-on): Likewise.
20808         * modules/linked-list (Depends-on): Likewise.
20809         * modules/linkedhash-list (Depends-on): Likewise.
20810         * modules/avltree-list (Depends-on): Likewise.
20811         * modules/rbtree-list (Depends-on): Likewise.
20812         * modules/avltreehash-list (Depends-on): Likewise.
20813         * modules/rbtreehash-list (Depends-on): Likewise.
20814
20815         * modules/xsublist: New file.
20816         * lib/gl_xsublist.h: New file.
20817         * lib/gl_xsublist.c: New file.
20818         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20819         (gl_sublist_nx_create): New declaration.
20820         * lib/gl_sublist.c: Don't include xalloc.h.
20821         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20822         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20823         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20824         Change return type to 'int'. Return -1 upon out-of-memory.
20825         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20826         upon out-of-memory.
20827         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20828         NULL upon out-of-memory.
20829         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20830         upon out-of-memory.
20831         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20832         NULL upon out-of-memory.
20833         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20834         NULL upon out-of-memory.
20835         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20836         upon out-of-memory.
20837         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20838         (gl_sublist_list_implementation): Update.
20839         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20840         upon out-of-memory.
20841         * modules/sublist (Depends-on): Remove xalloc.
20842
20843         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20844         * tests/test-carray_list.c: Likewise.
20845         * tests/test-linked_list.c: Likewise.
20846         * tests/test-linkedhash_list.c: Likewise.
20847         * tests/test-avltree_list.c: Likewise.
20848         * tests/test-rbtree_list.c: Likewise.
20849         * tests/test-avltreehash_list.c: Likewise.
20850         * tests/test-rbtreehash_list.c: Likewise.
20851         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20852         * modules/carray-list-tests (Makefile.am): Likewise.
20853         * modules/linked-list-tests (Makefile.am): Likewise.
20854         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20855         * modules/avltree-list-tests (Makefile.am): Likewise.
20856         * modules/rbtree-list-tests (Makefile.am): Likewise.
20857         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20858         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20859
20860         * NEWS: Mention the changes.
20861
20862         * lib/clean-temp.c: Include gl_xlist.h.
20863         * modules/clean-temp (Depends-on): Add xlist.
20864
20865         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20866         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20867
20868         * tests/test-array_oset.c: Include gl_xlist.h.
20869         * modules/array-oset-tests (Depends-on): Add xlist.
20870
20871         Reported by José E. Marchesi <jemarch@gnu.org>.
20872
20873 2009-12-13  Bruno Haible  <bruno@clisp.org>
20874
20875         Move the malloc checking from module 'oset' to new module 'xoset'.
20876         * modules/xoset: New file.
20877         * lib/gl_xoset.h: New file.
20878         * lib/gl_xoset.c: New file.
20879         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20880         declarations.
20881         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20882         (struct gl_oset_implementation): Rename and change methods accordingly.
20883         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20884         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20885         'int'. Mark as __warn_unused_result__.
20886         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20887         gl_oset_create_empty.
20888         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20889         'int'.
20890         * lib/gl_array_oset.c: Don't include xalloc.h.
20891         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20892         malloc, not xmalloc.
20893         (grow): Change return type to 'int'. Don't call xalloc_die.
20894         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20895         to 'int'.
20896         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20897         'int'.
20898         (gl_array_oset_implementation): Update.
20899         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20900         gl_tree_create_empty.
20901         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20902         'int'.
20903         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20904         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20905         xmalloc.
20906         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20907         not xmalloc.
20908         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20909         xmalloc.
20910         (gl_avltree_oset_implementation): Update.
20911         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20912         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20913         xmalloc.
20914         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20915         not xmalloc.
20916         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20917         xmalloc.
20918         (gl_rbtree_oset_implementation): Update.
20919         * modules/array-oset (Depends-on): Remove xalloc.
20920         * modules/avltree-oset (Depends-on): Likewise.
20921         * modules/rbtree-oset (Depends-on): Likewise.
20922         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20923         * tests/test-avltree_oset.c: Likewise.
20924         * tests/test-rbtree_oset.c: Likewise.
20925         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20926         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20927         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20928         * NEWS: Mention the change.
20929
20930 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20931
20932         maint.mk: allow a project to override release-prep commands
20933         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20934         commands into a new rule.
20935         (release-prep): New rule.
20936         (release-prep-hook): New overridable variable.
20937
20938 2009-12-13  Bruno Haible  <bruno@clisp.org>
20939
20940         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20941
20942 2009-12-13  Jim Meyering  <meyering@redhat.com>
20943
20944         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20945         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20946
20947 2009-12-12  Bruno Haible  <bruno@clisp.org>
20948
20949         duplocale: Tweak.
20950         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20951
20952 2009-12-12  Karl Berry  <karl@gnu.org>
20953
20954         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20955
20956 2009-12-12  Bruno Haible  <bruno@clisp.org>
20957
20958         * m4/po.m4: Undo incorrect untabification.
20959
20960 2009-12-12  Bruno Haible  <bruno@clisp.org>
20961
20962         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20963         * modules/c-strtod (Depends-on): Add locale.
20964         * modules/c-strtold (Depends-on): Likewise.
20965
20966 2009-12-12  Bruno Haible  <bruno@clisp.org>
20967
20968         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20969
20970 2009-12-11  Eric Blake  <ebb9@byu.net>
20971
20972         setenv: relax requirement in light of POSIX ruling
20973         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20974         not NULL.
20975         * tests/test-setenv.c (main): Relax test.
20976         * tests/test-unsetenv.c (main): Likewise.
20977         * doc/posix-functions/setenv.texi (setenv): Document this.
20978         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20979
20980 2009-12-11  Bruno Haible  <bruno@clisp.org>
20981
20982         New module 'fd-safer-flag'.
20983         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20984         * lib/dup-safer.c (dup_safer_flag): Remove function.
20985         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20986         * lib/fd-safer.c (fd_safer_flag): Remove function.
20987         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20988         * modules/cloexec (configure.ac): Drop indicator macro.
20989         * modules/fd-safer-flag: New file.
20990         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20991         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20992         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20993
20994 2009-12-11  Bruno Haible  <bruno@clisp.org>
20995
20996         Tests for module 'nl_langinfo'.
20997         * modules/nl_langinfo-tests: New file.
20998         * tests/test-nl_langinfo.sh: New file.
20999         * tests/test-nl_langinfo.c: New file.
21000
21001         New module 'nl_langinfo'.
21002         * lib/nl_langinfo.c: New file.
21003         * m4/nl_langinfo.m4: New file.
21004         * modules/nl_langinfo: New file.
21005         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21006
21007 2009-12-11  Bruno Haible  <bruno@clisp.org>
21008
21009         Tests for module 'langinfo'.
21010         * modules/langinfo-tests: New file.
21011         * tests/test-langinfo.c: New file.
21012
21013         New module 'langinfo'.
21014         * lib/langinfo.in.h: New file.
21015         * m4/langinfo_h.m4: New file.
21016         * modules/langinfo: New file.
21017         * doc/posix-headers/langinfo.texi: Mention the new module.
21018
21019 2009-12-11  Bruno Haible  <bruno@clisp.org>
21020
21021         * lib/config.charset: Untabify.
21022
21023 2009-12-11  Bruno Haible  <bruno@clisp.org>
21024
21025         * modules/unistd-safer (configure.ac): Drop indicator macro.
21026
21027 2009-12-11  Bruno Haible  <bruno@clisp.org>
21028
21029         Move pipe2-safer code to its own file.
21030         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21031         * lib/pipe-safer.c (pipe2_safer): Remove function.
21032         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21033         (Makefile.am): Add it to lib_SOURCES.
21034
21035 2009-12-10  Bruno Haible  <bruno@clisp.org>
21036
21037         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21038
21039 2009-12-10  Bruno Haible  <bruno@clisp.org>
21040
21041         Declare which arguments expect non-NULL values, for GCC and clang.
21042         * build-aux/arg-nonnull.h: New file.
21043         * modules/arg-nonnull: New file.
21044         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21045         (inet_ntop, inet_pton): Use it.
21046         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21047         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21048         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21049         (open, openat): Use it.
21050         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21051         (fnmatch): Use it.
21052         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21053         (getopt, getopt_long, getopt_long_only): Use it.
21054         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21055         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21056         Use it.
21057         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21058         (iconv_open): Use it.
21059         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21060         (strtoimax, strtoumax): Use it.
21061         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21062         (duplocale): Use it.
21063         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21064         (frexp, frexpl): Use it.
21065         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21066         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21067         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21068         (tsearch, tfind, tdelete, twalk): Use it.
21069         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21070         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21071         sigpending): Use it.
21072         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21073         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21074         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21075         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21076         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21077         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21078         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21079         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21080         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21081         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21082         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21083         Use it.
21084         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21085         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21086         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21087         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21088         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21089         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21090         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21091         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21092         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21093         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21094         strtoull, unsetenv): Use it.
21095         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21096         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21097         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21098         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21099         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21100         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21101         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21102         (strcasecmp, strncasecmp): Use it.
21103         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21104         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21105         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21106         rpl_setsockopt): Use it.
21107         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21108         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21109         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21110         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21111         (gettimeofday): Use it.
21112         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21113         (times): Use it.
21114         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21115         (uname): Use it.
21116         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21117         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21118         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21119         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21120         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21121         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21122         unlinkat, write): Use it.
21123         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21124         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21125         * lib/argv-iter.h: Include arg-nonnull.h.
21126         (_ATTRIBUTE_NONNULL_): Remove macro.
21127         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21128         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21129         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21130         optimization.
21131         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21132         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21133         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21134         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21135         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21136         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21137         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21138         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21139         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21140         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21141         * modules/dirent (Depends-on): Add arg-nonnull.
21142         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21143         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21144         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21145         * modules/fnmatch (Depends-on): Add arg-nonnull.
21146         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21147         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21148         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21149         * modules/glob (Depends-on): Add arg-nonnull.
21150         (Makefile.am): Insert arg-nonnull.h into glob.h.
21151         * modules/iconv_open (Depends-on): Add arg-nonnull.
21152         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21153         * modules/inttypes (Depends-on): Add arg-nonnull.
21154         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21155         * modules/locale (Depends-on): Add arg-nonnull.
21156         (Makefile.am): Insert arg-nonnull.h into locale.h.
21157         * modules/math (Depends-on): Add arg-nonnull.
21158         (Makefile.am): Insert arg-nonnull.h into math.h.
21159         * modules/netdb (Depends-on): Add arg-nonnull.
21160         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21161         * modules/search (Depends-on): Add arg-nonnull.
21162         (Makefile.am): Insert arg-nonnull.h into search.h.
21163         * modules/signal (Depends-on): Add arg-nonnull.
21164         (Makefile.am): Insert arg-nonnull.h into signal.h.
21165         * modules/spawn (Depends-on): Add arg-nonnull.
21166         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21167         * modules/stdio (Depends-on): Add arg-nonnull.
21168         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21169         * modules/stdlib (Depends-on): Add arg-nonnull.
21170         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21171         * modules/string (Depends-on): Add arg-nonnull.
21172         (Makefile.am): Insert arg-nonnull.h into string.h.
21173         * modules/strings (Depends-on): Add arg-nonnull.
21174         (Makefile.am): Insert arg-nonnull.h into strings.h.
21175         * modules/sys_socket (Depends-on): Add arg-nonnull.
21176         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21177         * modules/sys_stat (Depends-on): Add arg-nonnull.
21178         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21179         * modules/sys_time (Depends-on): Add arg-nonnull.
21180         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21181         * modules/sys_times (Depends-on): Add arg-nonnull.
21182         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21183         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21184         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21185         * modules/time (Depends-on): Add arg-nonnull.
21186         (Makefile.am): Insert arg-nonnull.h into time.h.
21187         * modules/unistd (Depends-on): Add arg-nonnull.
21188         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21189         * modules/wchar (Depends-on): Add arg-nonnull.
21190         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21191         * modules/argv-iter (Depends-on): Add arg-nonnull.
21192         * tests/test-canonicalize.c (null_ptr): New function.
21193         (main): Use it.
21194         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21195         (main): Use it.
21196         * tests/test-memmem.c (null_ptr): New function.
21197         (main): Use it.
21198         Reported by Jim Meyering.
21199
21200 2009-12-10  Bruno Haible  <bruno@clisp.org>
21201
21202         Use spaces for indentation, not tabs.
21203         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21204         * m4/*.m4: Untabify.
21205         * build-aux/*.h: Untabify.
21206         * tests/**/*.[hc]: Untabify.
21207         * README: New section "Indent with spaces, not TABs", based on
21208         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21209         * NEWS: Mention the change.
21210
21211 2009-12-10  Bruno Haible  <bruno@clisp.org>
21212
21213         pty test: Fix link error.
21214         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21215         test_pty_LDADD.
21216
21217 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21218
21219         * modules/pty: New file.
21220         * modules/pty-tests: New file.
21221         * m4/pty.m4: New file.
21222         * tests/test-pty.c: New file.
21223         * doc/glibc-headers/pty.texi: Modified.
21224         * doc/glibc-functions/forkpty.texi: Modified.
21225         * doc/glibc-functions/openpty.texi: Modified.
21226
21227 2009-12-10  Bruno Haible  <bruno@clisp.org>
21228
21229         Avoid syntax error in C++ mode.
21230         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21231
21232 2009-12-10  Bruno Haible  <bruno@clisp.org>
21233
21234         Use sed with option -e.
21235         * gnulib-tool (func_version, func_emit_copyright_notice,
21236         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21237         option -e to sed.
21238         * modules/link-warning (Makefile.am): Likewise.
21239
21240 2009-12-10  Jim Meyering  <meyering@redhat.com>
21241
21242         mgetgroups: do not write bytes beyond end of malloc'd buffer
21243         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21244         username, we call getgroups with a one-element-shorter buffer,
21245         but still told it the length was original, max_n_groups.
21246
21247 2009-12-09  Eric Blake  <ebb9@byu.net>
21248
21249         cloexec: relax license
21250         * modules/cloexec (Maintainer): Add myself.
21251         (License): Use LGPL, not GPL.
21252
21253         link-warning: optimize generation
21254         * modules/link-warning (Makefile.am): Reduce process usage.
21255
21256 2009-12-09  Bruno Haible  <bruno@clisp.org>
21257
21258         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21259         workaround was added on 2009-11-17.
21260
21261 2009-12-09  Jim Meyering  <meyering@redhat.com>
21262             Bruno Haible  <bruno@clisp.org>
21263
21264         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21265         * modules/link-warning (Makefile.am): Make the comment-removing sed
21266         command more robust in the face of bootstrap-prepended comment lines.
21267
21268 2009-12-09  Bruno Haible  <bruno@clisp.org>
21269
21270         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21271         most one group.
21272
21273 2009-12-09  Simon Josefsson <simon@josefsson.org>
21274             Bruno Haible  <bruno@clisp.org>
21275
21276         * build-aux/link-warning.h: Add copyright notice.
21277         * modules/link-warning (Makefile.am): Generate link-warning.h from
21278         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21279         * NEWS: Mention change in link-warning module.
21280         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21281         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21282         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21283         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21284         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21285         * modules/math (Makefile.am): Add dependency to math.h.
21286         * modules/search (Makefile.am): Add dependency to search.h.
21287         * modules/signal (Makefile.am): Add dependency to signal.h.
21288         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21289         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21290         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21291         * modules/string (Makefile.am): Add dependency to string.h.
21292         * modules/strings (Makefile.am): Add dependency to strings.h.
21293         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21294         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21295         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21296         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21297         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21298         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21299         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21300         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21301         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21302
21303 2009-12-09  Bruno Haible  <bruno@clisp.org>
21304
21305         fchdir: Optimize away rpl_fstat when possible.
21306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21307         REPLACE_OPEN_DIRECTORY.
21308         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21309
21310 2009-12-09  Bruno Haible  <bruno@clisp.org>
21311
21312         * lib/fchdir.c: Update comment.
21313
21314 2009-12-09  Bruno Haible  <bruno@clisp.org>
21315
21316         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21317
21318 2009-12-08  Eric Blake  <ebb9@byu.net>
21319
21320         fchdir: avoid memory leak on re-registration.
21321         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21322
21323 2009-12-08  Jim Meyering  <meyering@redhat.com>
21324
21325         init.sh: avoid Solaris 10 /bin/sh portability problem
21326         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21327         sourced script:
21328           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21329           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21330           bar
21331         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21332         and two tests used that idiom.
21333         * tests/init.sh: Update suggested usage comments.
21334         (path_prepend_): New function, to be used in place
21335         of the --src-path=DIR option.
21336         (setup_): Move PATH-prepending code into path_prepend_.
21337         * tests/test-pread.sh: Adapt to new usage.
21338         * tests/test-xalloc-die.sh: Likewise.
21339
21340 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21341
21342         * doc/gnulib.texi (Glibc pty.h): Add.
21343         * doc/glibc-functions/forkpty.texi: Add.
21344         * doc/glibc-functions/openpty.texi: Add.
21345         Suggested by Bruno Haible.
21346
21347 2009-12-08  Eric Blake  <ebb9@byu.net>
21348
21349         fchdir: fix logic bugs
21350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21351         * tests/test-fchdir.c (main): Enhance test.
21352         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21353         is in use.
21354
21355         dup2: fix logic bugs
21356         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21357         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21358         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21359         exists.
21360         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21361
21362 2009-12-07  Eric Blake  <ebb9@byu.net>
21363
21364         unlink: fix m4 detection
21365         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21366
21367         unistd-safer: add unit test
21368         * modules/unistd-safer-tests: New file.
21369         * tests/test-dup-safer.c: Likewise.
21370         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21371         * tests/test-dup2.c (setmode): Likewise.
21372         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21373
21374         cloexec: preserve text vs. binary across dup_cloexec
21375         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21376         mode.
21377         * modules/dup2-tests (Depends-on): Add binary-io.
21378         * modules/cloexec-tests (Depends-on): Likewise.
21379         * tests/test-dup2.c (setmode, is_mode): New helpers.
21380         (main): Add tests that translation mode is preserved.
21381         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21382         Reported by Bruno Haible.
21383
21384         mgetgroups: reduce duplicate listings
21385         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21386         resulting array.
21387         * tests/test-chown.h (test_chown): Simplify client.
21388         * tests/test-lchown.h (test_lchown): Likewise.
21389
21390 2009-12-06  Bruno Haible  <bruno@clisp.org>
21391
21392         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21393         value.
21394
21395 2009-12-06  Bruno Haible  <bruno@clisp.org>
21396
21397         * lib/progname.c: Include stdio.h, stdlib.h.
21398         (set_program_name): Reject a NULL argument.
21399
21400 2009-12-05  Eric Blake  <ebb9@byu.net>
21401
21402         pipe2-safer: new module
21403         * modules/pipe2-safer: New file.
21404         * lib/unistd-safer.h (pipe2_safer): New prototype.
21405         * lib/unistd--.h (pipe2): New wrapper.
21406         * lib/pipe-safer.c (pipe2_safer): New function.
21407         * modules/pipe (Depends-on): Add pipe2-safer.
21408         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21409
21410         stdlib-safer: preserve cloexec flag for mkostemp[s]
21411         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21412         fd_safer_flag.
21413
21414         unistd-safer: allow preservation of cloexec status via flag
21415         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21416         prototypes.
21417         * lib/dup-safer.c (dup_safer_flag): New function.
21418         * lib/fd-safer.c (fd_safer_flag): Likewise.
21419         * modules/cloexec (configure.ac): Set witness.
21420
21421         test-dup2: enhance test
21422         * modules/dup2-tests (Depends-on): Add cloexec.
21423         * tests/test-dup2.c (main): Enhance test.
21424
21425         cloexec: add dup_cloexec
21426         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21427         header and comments.
21428         * lib/cloexec.c (set_cloexec_flag): Add comments.
21429         (dup_cloexec): New function, with mingw implementation borrowed
21430         from...
21431         * lib/w32spawn.h (dup_noinherit): ...here.
21432         * modules/execute (Depends-on): Add cloexec.
21433         * modules/pipe (Depends-on): Likewise.
21434         * modules/cloexec (Depends-on): Add dup2.
21435         * modules/cloexec-tests (Files): New file.
21436         * tests/test-cloexec.c: Likewise.
21437
21438         test-xalloc-die: fix test for mingw
21439         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21440         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21441         directory and .exe suffix off argv[0] output.
21442
21443         test-fseeko: fix test for mingw
21444         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21445         than undefining fseek, so test will pass on mingw.
21446
21447 2009-12-05  Bruno Haible  <bruno@clisp.org>
21448
21449         * lib/progname.h (set_program_name): Clarify specification.
21450         * lib/progname.c (set_program_name): Likewise.
21451         Reported by Jim Meyering.
21452
21453 2009-12-05  Jim Meyering  <meyering@redhat.com>
21454
21455         maint.mk: backslash-escape parens in default regexp
21456         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21457         backslash-escape the literal parentheses.
21458
21459         maint.mk: news-date-check: use grep -E
21460         * top/maint.mk (today): Define a Make variable, not a...
21461         (news-date-check): ...shell variable.
21462         (news-date-regexp): Use the Make variable.
21463         Use grep's -E option.  Change the failing diagnostic to mention
21464         the variable, $(news-date-regexp).
21465
21466 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21467
21468         maintainer-makefile: allow customization of NEWS entry format
21469         * top/maint.mk (news-date-regexp): New overridable variable.
21470         (news-date-check): Use it.
21471
21472 2009-12-04  Eric Blake  <ebb9@byu.net>
21473
21474         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21475         * lib/mgetgroups.h (xgetgroups): New prototype.
21476         * lib/mgetgroups.c (xgetgroups): New wrapper.
21477         (mgetgroups): Handle ENOSYS.
21478         * modules/mgetgroups (Depends-on): Add realloc.
21479         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21480
21481         mgetgroups: avoid argument promotion issues with -1
21482         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21483         for invalid gid_t.
21484         * tests/test-chown.h (getegid, test_chown): Likewise.
21485         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21486
21487 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21488
21489         exclude: Fix header file problems.
21490         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21491
21492 2009-12-01  Jim Meyering  <meyering@redhat.com>
21493
21494         fts: fts_open: do not let an empty string cause immediate failure
21495         This is required in support of GNU rm, for which the command
21496         "rm A '' B" must process and remove both A and B, in spite of
21497         the empty string argument.
21498         * lib/fts.c (fts_open): Do not let the presence of an empty string
21499         cause fts_open to fail immediately.  Most fts-using tools must be
21500         able to process all arguments, in order, and can be expected to
21501         diagnose such arguments themselves.
21502
21503 2009-11-30  Eric Blake  <ebb9@byu.net>
21504
21505         utimens: fix compilation error
21506         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21507         Declare variable at right scope.
21508
21509 2009-11-29  Jim Meyering  <meyering@redhat.com>
21510
21511         bootstrap: handle perl-5.11's changed --version output
21512         * build-aux/bootstrap (get_version): Handle perl separately,
21513         since perl-5.11's --version output is different.
21514
21515 2009-11-28  Jim Meyering  <meyering@redhat.com>
21516
21517         userspec: depend on the inttostr module, too
21518         * modules/userspec (Depends-on): Add inttostr.
21519
21520         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21521         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21522         number of MAXUID when it evaluates to (uid_t) -1.
21523         Likewise for group ID.  Reported by Matt McCutchen in
21524         <http://savannah.gnu.org/bugs/?28113>
21525
21526         userspec: reformat to use spaces, not TABs
21527         * lib/userspec.c: Expand TABs to spaces.
21528         Add Emacs' "indent-tabs-mode: nil" hint.
21529
21530 2009-11-27  Eric Blake  <ebb9@byu.net>
21531
21532         getopt-gnu: flush out another BSD bug
21533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21534         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21535         flush out BSD bug.
21536         * tests/test-getopt.h (test_getopt): End lists with NULL.
21537         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21538         (test_getopt_long_posix): Enhance test.
21539         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21540         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21541         getopt-gnu.
21542         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21543         Likewise.
21544
21545 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21546
21547         * modules/idpriv-droptemp-tests (Notice): Fix text.
21548
21549 2009-11-27  Jim Meyering  <meyering@redhat.com>
21550
21551         test-xalloc-die: avoid spurious failure due to libtool argv difference
21552         In a libtool-enabled project, this test would fail due to a difference
21553         in the emitted program name, e.g.,
21554         -test-xalloc-die: memory exhausted
21555         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21556         Use program to avoid that.
21557         * modules/xalloc-die-tests (Depends-on): Add progname.
21558         * tests/test-xalloc-die.c: Include progname.h".
21559         (program_name): Remove decl.
21560         (main): Call set_program_name.
21561         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21562
21563 2009-11-26  Richard Jones  <rjones@redhat.com>
21564
21565         w32sock: leave win32 error in place.
21566         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21567
21568 2009-11-26  Eric Blake  <ebb9@byu.net>
21569
21570         init.sh: suggest to use skip_ and fail_ functions in comments
21571         * tests/init.sh: Add a sentence.
21572
21573 2009-11-25  Bruno Haible  <bruno@clisp.org>
21574
21575         init.sh: add documentation in comments
21576         * tests/init.sh: Add some developer and user documentation.
21577
21578 2009-11-26  Jim Meyering  <meyering@redhat.com>
21579
21580         init.sh: accommodate even those who specify bogus srcdir manually
21581         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21582         configure-time tests to be sanitized, so that there is no need to
21583         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21584         (with no double quotes) suffices.  However, since tests may be
21585         invoked manually, and since you may explicitly set srcdir to the
21586         name of a directory containing spaces, do quote its uses here.
21587         * tests/test-pread.sh: Likewise.
21588         Suggested by Bruno Haible.
21589
21590         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21591         * tests/test-pread.sh: Write no data into the pipe, because
21592         test-pread actually reads none.  This avoids a diagnostic,
21593         "bash: echo: write error: Broken pipe", that arises in the unusual
21594         event something is ignoring SIGPIPE, and might be interpreted
21595         as some sort of failure.  Reported by Bruno Haible.
21596
21597 2009-11-25  Jim Meyering  <meyering@redhat.com>
21598
21599         test-pread: cover failure with ESPIPE and EINVAL
21600         * tests/test-pread.c (main): Test for failure, too.
21601         * tests/test-pread.sh: Invoke with stdin on a pipe.
21602         Suggested by Eric Blake.
21603
21604         pread: improvement and fix
21605         * modules/pread (Depends-on): Depend on lseek, for portability to
21606         e.g., mingw.  Suggested by Eric Blake.
21607         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21608
21609         unistd.in.h: correct declaration of pread
21610         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21611         Reported by Richard W.M. Jones.
21612
21613         test-pread.sh: distribute the test script
21614         * modules/pread-tests (Files): Include test-pread.sh.
21615
21616         test-pread.sh: clean up
21617         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21618         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21619         That is unnecessary, since it's always ".".
21620         Suggestion from Eric Blake.
21621
21622         test-pread.sh: make executable
21623         * tests/test-pread.sh: Set executable bit.
21624         Reported by Eric Blake.
21625
21626         correct typo in test-pread.sh
21627         * tests/test-pread.sh: Add #! line.
21628
21629         test pread
21630         * tests/test-pread.c: New file.
21631         * tests/test-pread.sh: Likewise.
21632         * modules/pread-tests: Likewise.
21633
21634         pread: new module
21635         * modules/pread: New file.
21636         * lib/unistd.in.h (pread): Define/declare.
21637         * lib/pread.c (pread): New file.
21638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21639         * modules/unistd (Makefile.am): Substitute witnesses.
21640         * doc/posix-functions/pread.texi (pread): Update.
21641         * MODULES.html.sh: Add pread.
21642
21643 2009-11-25  Jim Meyering  <meyering@redhat.com>
21644
21645         tests/init.sh: new file to be used via most *.sh tests
21646         * tests/init.sh: New file.
21647
21648 2009-11-25  Eric Blake  <ebb9@byu.net>
21649
21650         utimens: work around older Linux failure with symlinks
21651         * lib/utimens.c (lutimensat_works_really): New variable.
21652         (fdutimens, lutimens): Use it to manage kernels that support
21653         nanosecond times on files, but not on symlinks.
21654         Reported by OndÅ™ej Vašík.
21655
21656         utimes: fix configure grammar
21657         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21658
21659 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21660
21661         regex: Fix fastmap for multibyte character ranges.
21662         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21663         characters when a multibyte character range is included.
21664
21665 2009-11-22  Andy Wingo  <wingo@pobox.com>
21666
21667         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21668         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21669
21670 2009-11-24  Bruno Haible  <bruno@clisp.org>
21671
21672         doc: Most *_l functions exist in MacOS X 10.5.
21673         * doc/posix-functions/duplocale.texi: Update platforms list.
21674         * doc/posix-functions/freelocale.texi: Likewise.
21675         * doc/posix-functions/newlocale.texi: Likewise.
21676         * doc/posix-functions/uselocale.texi: Likewise.
21677         * doc/posix-functions/isalnum_l.texi: Likewise.
21678         * doc/posix-functions/isalpha_l.texi: Likewise.
21679         * doc/posix-functions/isblank_l.texi: Likewise.
21680         * doc/posix-functions/iscntrl_l.texi: Likewise.
21681         * doc/posix-functions/isdigit_l.texi: Likewise.
21682         * doc/posix-functions/isgraph_l.texi: Likewise.
21683         * doc/posix-functions/islower_l.texi: Likewise.
21684         * doc/posix-functions/isprint_l.texi: Likewise.
21685         * doc/posix-functions/ispunct_l.texi: Likewise.
21686         * doc/posix-functions/isspace_l.texi: Likewise.
21687         * doc/posix-functions/isupper_l.texi: Likewise.
21688         * doc/posix-functions/iswalnum_l.texi: Likewise.
21689         * doc/posix-functions/iswalpha_l.texi: Likewise.
21690         * doc/posix-functions/iswblank_l.texi: Likewise.
21691         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21692         * doc/posix-functions/iswctype_l.texi: Likewise.
21693         * doc/posix-functions/iswdigit_l.texi: Likewise.
21694         * doc/posix-functions/iswgraph_l.texi: Likewise.
21695         * doc/posix-functions/iswlower_l.texi: Likewise.
21696         * doc/posix-functions/iswprint_l.texi: Likewise.
21697         * doc/posix-functions/iswpunct_l.texi: Likewise.
21698         * doc/posix-functions/iswspace_l.texi: Likewise.
21699         * doc/posix-functions/iswupper_l.texi: Likewise.
21700         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21701         * doc/posix-functions/isxdigit_l.texi: Likewise.
21702         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21703         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21704         * doc/posix-functions/strcoll_l.texi: Likewise.
21705         * doc/posix-functions/strfmon_l.texi: Likewise.
21706         * doc/posix-functions/strftime_l.texi: Likewise.
21707         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21708         * doc/posix-functions/strxfrm_l.texi: Likewise.
21709         * doc/posix-functions/tolower_l.texi: Likewise.
21710         * doc/posix-functions/toupper_l.texi: Likewise.
21711         * doc/posix-functions/towctrans_l.texi: Likewise.
21712         * doc/posix-functions/towlower_l.texi: Likewise.
21713         * doc/posix-functions/towupper_l.texi: Likewise.
21714         * doc/posix-functions/wcscoll_l.texi: Likewise.
21715         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21716         * doc/posix-functions/wctrans_l.texi: Likewise.
21717         * doc/posix-functions/wctype_l.texi: Likewise.
21718         * doc/glibc-functions/strptime_l.texi: Likewise.
21719         * doc/glibc-functions/strtod_l.texi: Likewise.
21720         * doc/glibc-functions/strtof_l.texi: Likewise.
21721         * doc/glibc-functions/strtol_l.texi: Likewise.
21722         * doc/glibc-functions/strtold_l.texi: Likewise.
21723         * doc/glibc-functions/strtoll_l.texi: Likewise.
21724         * doc/glibc-functions/strtoul_l.texi: Likewise.
21725         * doc/glibc-functions/strtoull_l.texi: Likewise.
21726         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21727         * doc/glibc-functions/wcstod_l.texi: Likewise.
21728         * doc/glibc-functions/wcstof_l.texi: Likewise.
21729         * doc/glibc-functions/wcstol_l.texi: Likewise.
21730         * doc/glibc-functions/wcstold_l.texi: Likewise.
21731         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21732         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21733         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21734
21735 2009-11-24  Bruno Haible  <bruno@clisp.org>
21736
21737         duplocale: Fix logic bug.
21738         * lib/duplocale.c: Don't include <langinfo.h>.
21739         (_NL_LOCALE_NAME): Remove macro.
21740         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21741         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21742
21743 2009-11-23  Jim Meyering  <meyering@redhat.com>
21744
21745         test-update-copyright: don't hard-code /usr/bin/perl
21746         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21747         perl to print the current year.  Gilles Espinasse reported that
21748         the replaced use of perl was hard-coded as /usr/bin/perl.
21749
21750 2009-11-23  Bruno Haible  <bruno@clisp.org>
21751
21752         duplocale: Add support for glibc 2.3.x.
21753         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21754
21755 2009-11-22  Bruno Haible  <bruno@clisp.org>
21756
21757         vasnprintf: Tiny optimization.
21758         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21759         MacOS X.
21760
21761 2009-11-22  Bruno Haible  <bruno@clisp.org>
21762
21763         Tests for module 'duplocale'.
21764         * modules/duplocale-tests: New file.
21765         * tests/test-duplocale.c: New file.
21766
21767         New module 'duplocale'.
21768         * m4/duplocale.m4: New file.
21769         * lib/locale.in.h (duplocale): New declaration.
21770         * lib/duplocale.c: New file.
21771         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21772         gl_LOCALE_H_DEFAULTS): New macros.
21773         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21774         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21775         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21776         REPLACE_DUPLOCALE.
21777         * modules/duplocale: New file.
21778         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21779
21780 2009-11-22  Bruno Haible  <bruno@clisp.org>
21781
21782         * modules/locale-tests (configure.ac): Test for newlocale function.
21783         * tests/test-locale.c: When the system has extended locale functions,
21784         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21785
21786         locale: Make locale_t available when possible.
21787         * lib/locale.in.h: Include <xlocale.h> when it exists.
21788         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21789         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21790         * modules/locale (Depends-on): Add extensions.
21791         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21792         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21793
21794 2009-11-22  Bruno Haible  <bruno@clisp.org>
21795
21796         Add comments.
21797         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21798         invocation.
21799         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21800         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21801         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21802
21803 2009-11-22  Bruno Haible  <bruno@clisp.org>
21804
21805         error: account for the possibility of freopen (stdout).
21806         * lib/error.c: Include <unistd.h>.
21807         (flush_stdout): New function, extracted from error and error_at_line.
21808         Determine stdout's fd dynamically.
21809         (error, error_at_line): Invoke flush_stdout.
21810         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21811         * modules/error (Depends-on): Add unistd.
21812
21813 2009-11-22  Bruno Haible  <bruno@clisp.org>
21814
21815         diffseq: Add comment.
21816         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21817
21818 2009-11-22  Jim Meyering  <meyering@redhat.com>
21819
21820         c-stack: avoid defining an unused static function
21821         * lib/c-stack.c (find_stack_direction): Do not define this function
21822         when it will not be used.
21823
21824         diffseq: avoid spurious gcc warnings
21825         * lib/diffseq.h (IF_LINT2): Define.
21826         (compareseq): Use it to initialize two members of "part".
21827         This avoids two used-uninitialized warnings.
21828
21829 2009-11-21  Jim Meyering  <meyering@redhat.com>
21830
21831         c-stack: avoid "ignoring return value of `write'" warning
21832         * lib/c-stack.c: Include "ignore-value.h".
21833         (die): Explicitly ignore each write return value.
21834         * modules/c-stack (Depends-on): Add ignore-value.
21835
21836 2009-11-21  Bruno Haible  <bruno@clisp.org>
21837
21838         diffseq: reduce scope of variable 'best'.
21839         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21840         variable, earlier used for two different purposes.
21841
21842 2009-11-21  Jim Meyering  <meyering@redhat.com>
21843
21844         diffseq: remove useless assignment to "best"
21845         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21846         assignment.  At that point "best" is already guaranteed to be zero.
21847
21848 2009-11-20  Eric Blake  <ebb9@byu.net>
21849
21850         build: mention ftp redirector in release announcements
21851         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21852         values that used to come from cfg.mk; mention FTP redirect URL.
21853         * build-aux/announce-gen: Mention the mirror list.
21854         Suggested by Karl Berry.
21855
21856         nanosleep: improve port to mingw
21857         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21858         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21859         LIB_NANOSLEEP, but only when needed.
21860         * modules/select (Link): Document LIBSOCKET.
21861         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21862         enough.
21863
21864         nanosleep: work around cygwin bug
21865         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21866         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21867         bug.
21868         (getnow): Delete, not needed.
21869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21870         LIB_CLOCK_GETTIME.
21871         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21872         clock-time, gettime.
21873         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21874         bug.
21875         * modules/nanosleep-tests: New test.
21876         * tests/test-nanosleep.c: New file.
21877
21878         sleep: work around cygwin bug
21879         * lib/sleep.c (rpl_sleep): Work around the bug.
21880         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21881         (gl_PREREQ_SLEEP): Delete unused macro.
21882         * modules/sleep (Depends-on): Add verify.
21883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21884         * modules/unistd (Makefile.am): Substitute witness.
21885         * lib/unistd.in.h (sleep): Update prototype.
21886         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21887         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21888         * modules/sleep-tests (Depends-on): Check for alarm.
21889
21890 2009-11-20  Jim Meyering  <meyering@redhat.com>
21891
21892         maint.mk: improve sc_prohibit_magic_number_exit
21893         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21894         so it does not match uses like System.exit(1).
21895         Add comments showing how to correct all offenders.
21896
21897 2009-11-19  Eric Blake  <ebb9@byu.net>
21898
21899         xalloc-die-tests: add missing library
21900         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21901
21902         test-xvasprintf: silence compiler warnings
21903         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21904         empty string from gcc.
21905
21906 2009-11-19  Jim Meyering  <meyering@redhat.com>
21907
21908         xfreopen: new module, from coreutils
21909         * modules/xfreopen: New module.
21910         * lib/xfreopen.c: New file.
21911         * lib/xfreopen.h: New file.
21912         * MODULES.html.sh (File stream based Input/Output"): Add it.
21913
21914 2009-11-19  Eric Blake  <ebb9@byu.net>
21915
21916         manywarnings: depend on warnings
21917         * modules/manywarnings (Depends-on): Add warnings.
21918
21919         build: avoid compiler warnings
21920         * lib/select.c (rpl_select): Delete unused variable.
21921         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21922
21923 2009-11-18  Eric Blake  <ebb9@byu.net>
21924
21925         tests: avoid false negative with --with-packager
21926         * tests/test-version-etc.sh: Discard packager information.
21927         * tests/test-argp-version-etc-1.sh: Likewise.
21928         Reported by Mike Frysinger.
21929
21930         utimens: fix regression on Solaris
21931         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21932         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21933         can only change fd timestamps via futimesat.  Instead, use an
21934         additional witness macro to avoid BSD bug.
21935         Reported by Jim Meyering.
21936
21937 2009-11-17  Eric Blake  <ebb9@byu.net>
21938
21939         usleep: use it to simplify tests
21940         * modules/stat-time-tests (Depends-on): Add usleep.
21941         (configure.ac): Drop usleep check.
21942         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21943         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21944         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21945         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21946         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21947         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21948         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21949         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21950         Likewise.
21951         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21952         * tests/test-lchown.h (nap): Likewise.
21953         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21954         * tests/test-stat-time.c (nap): Likewise.
21955         * tests/test-utimens-common.h (nap): Update comments.
21956
21957         usleep: new module
21958         * modules/usleep: New file.
21959         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21960         * lib/usleep.c (usleep): Likewise.
21961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21962         * modules/unistd (Makefile.am): Substitute witnesses.
21963         * lib/unistd.in.h (usleep): Add declaration.
21964         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21965         * MODULES.html.sh (Date and time): Likewise.
21966         * modules/usleep-tests (Depends-on): New test.
21967         * tests/test-usleep.c: New file.
21968
21969         chown: work around OpenBSD bug
21970         * lib/chown.c (rpl_chown): Work around the bug.
21971         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21972         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21973         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21974         * modules/chown (Depends-on): Add stdbool.
21975         * modules/lchown (Depends-on): Likewise.
21976         * doc/posix-functions/chown.texi (chown): Document the bug.
21977         * doc/posix-functions/lchown.texi (lchown): Likewise.
21978         * tests/test-lchown.h (test_chown): Relax test.
21979
21980         mkstemp: avoid conflict with C++ keyword template
21981         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21982         * lib/mkostemp.c (mkostemp): Likewise.
21983         * lib/mkostemps.c (mkostemps): Likewise.
21984         * lib/mkstemp.c (mkstemp): Likewise.
21985         * lib/mkstemps.c (mkstemps): Likewise.
21986
21987         xalloc-die-tests: optimize
21988         * tests/test-xalloc-die.sh: Reduce number of processes.
21989
21990 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21991
21992         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21993         patch from ludo@gnu.org (Ludovic Courtès).
21994
21995 2009-11-17  Jim Meyering  <meyering@redhat.com>
21996
21997         version-etc: use proper license string
21998         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21999         * modules/version-etc-fsf: Likewise.
22000
22001 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22002
22003         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22004         printed to stdout.  Deal with EOL differences.
22005
22006 2009-11-17  Eric Blake  <ebb9@byu.net>
22007
22008         unsetenv: work around Solaris bug
22009         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22010         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22011         Reported by Jim Meyering.
22012
22013         vasnprintf: avoid compiler warnings
22014         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22015         variables.
22016         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22017
22018 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22019
22020         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22021         settings since xalloc-die is no longer the self test,
22022         xalloc-die.sh is.
22023
22024 2009-11-17  Jim Meyering  <meyering@redhat.com>
22025
22026         test-xalloc-die.sh: make the code agree with the commit log
22027         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22028         at the end, just in case you happen to have a test-xalloc-die
22029         program in some other PATH directory.
22030
22031         test-xalloc-die.sh: fix a portability bug
22032         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22033         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22034         Otherwise, argv[0] (as often seen in diagnostics) would be too
22035         system-dependent, sometimes with, and sometimes without the leading "./".
22036
22037         version-etc-fsf: relax license to LGPLv3+
22038         * modules/version-etc-fsf (License): Relax license.
22039
22040 2009-11-16  Eric Blake  <ebb9@byu.net>
22041
22042         xalloc-die-tests: avoid printing null pointer
22043         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22044         shell script.
22045         * tests/test-xalloc-die.c (program_name): Declare.
22046         * tests/test-xalloc-die.sh (tmpfiles): New file.
22047
22048         setenv, unsetenv: work around various bugs
22049         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22050         (setenv) [HAVE_SETENV]: Work around bugs.
22051         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22052         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22053         for bugs.
22054         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22055         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22057         * modules/stdlib (Makefile.am): Update substitutions.
22058         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22059         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22060         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22061         * modules/setenv-tests: New test.
22062         * modules/unsetenv-tests: Likewise.
22063         * tests/test-setenv.c: New file.
22064         * tests/test-unsetenv.c: Likewise.
22065
22066 2009-11-16  Jim Meyering  <meyering@redhat.com>
22067
22068         version-etc: relax license to LGPLv3+
22069         * modules/version-etc (License): Relax license.
22070
22071         better AC_REQUIRE expanded-before-required-warning avoidance
22072         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22073         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22074         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22075         which is no longer needed.
22076
22077 2009-11-16  Eric Blake  <ebb9@byu.net>
22078
22079         test-freading: clean up temporary file
22080         * tests/test-freading.c (main): Remove file on success, and use
22081         ASSERT more liberally.
22082         Reported by Jim Meyering.
22083
22084 2009-11-16  Jim Meyering  <meyering@redhat.com>
22085
22086         avoid new AC_REQUIRE expanded-before-required warnings
22087         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22088         merely using it.
22089         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22090         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22091
22092 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22093
22094         * tests/test-xalloc-die.c: New file.
22095         * modules/xalloc-die-tests: New file.
22096         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22097         XFAIL_TESTS so it can be appended by modules.
22098
22099 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22100
22101         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22102         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22103
22104 2009-11-14  Eric Blake  <ebb9@byu.net>
22105
22106         fnmatch: avoid compiler warning
22107         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22108         to silence compiler warning about mismatch signedness in ?:.
22109         Reported by Robert Millan.
22110
22111         intprops: add double-inclusion guard
22112         * lib/intprops.h: Allow idempotent includes.
22113         Suggested by Bruce Korb.
22114
22115         openat: detect Solaris fchownat bug
22116         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22117         penalizing glibc chownat when only lchownat is broken.
22118         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22119         trailing slash bugs.
22120         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22121         * modules/openat-tests (Files): Include more files.
22122         (Depends-on): Add mgetgroups, sleep, stat-time.
22123         (configure.ac): Add additional checks.
22124         (Makefile.am): Build new test.
22125         * tests/test-fchownat.c: New file.
22126
22127         lchown: detect Solaris and FreeBSD bug
22128         * lib/lchown.c (rpl_lchown): Work around bug.
22129         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22131         * modules/unistd (Makefile.am): Populate it.
22132         * lib/unistd.in.h (lchown): Update declaration.
22133         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22134         * modules/lchown-tests: New file.
22135         * tests/test-lchown.h (test_lchown): Likewise.
22136         * tests/test-lchown.c (main): Likewise.
22137
22138         chown: detect Solaris and FreeBSD bug
22139         * lib/chown.c (rpl_chown): Work around bug.
22140         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22141         (gl_PREREQ_CHOWN): Delete.
22142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22143         * modules/unistd (Makefile.am): Populate it.
22144         * lib/unistd.in.h (chown): Update declaration.
22145         * lib/lchown.c (chown): Update client.
22146         * modules/lchown (Depends-on): Add lstat.
22147         * doc/posix-functions/chown.texi (chown): Document the bug.
22148         * doc/posix-functions/getgroups.texi (getgroups): Document
22149         getgroups pitfall.
22150         * modules/chown-tests: New file.
22151         * tests/test-chown.h (test_chown): Likewise.
22152         * tests/test-chown.c (main): Likewise.
22153
22154 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22155
22156         gnulib-tool: correctly detect absence of m4 directories
22157         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22158
22159 2009-11-14  Jim Meyering  <meyering@redhat.com>
22160
22161         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22162         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22163
22164 2009-11-14  John W. Eaton  <jwe@gnu.org>
22165
22166         strftime.h: wrap funtion declaration in extern "C" block
22167         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22168
22169 2009-11-13  Eric Blake  <ebb9@byu.net>
22170
22171         getgroups: avoid compiler warning
22172         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22173
22174         getgroups: work around FreeBSD bug
22175         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22176         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22177         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22178         * tests/test-getgroups.c (main): Fix buffer overrun.
22179
22180         getgroups: avoid compilation failure
22181         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22182         * modules/getgroups (Depends-on): Add stdint.
22183
22184 2009-11-13  Jim Meyering  <meyering@redhat.com>
22185
22186         test-getgroups: avoid compilation failure
22187         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22188
22189 2009-11-13  Eric Blake  <ebb9@byu.net>
22190
22191         mgetgroups: new module, taken from coreutils
22192         * modules/mgetgroups: New file.
22193         * lib/mgetgroups.h: Likewise.
22194         * lib/mgetgroups.c (mgetgroups): Likewise.
22195         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22196         * MODULES.html.sh (Users and groups): Mention it.
22197
22198         getgroups: don't expose GETGROUPS_T to user
22199         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22200         an element at a time if GETGROUPS_T is wrong size.
22201         * lib/getugroups.h (getugroups): Change signature.
22202         * lib/unistd.in.h (getgroups): Likewise.
22203         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22204         signature needs fixing.
22205         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22206         AC_TYPE_GETGROUPS.
22207         * modules/group-member (Depends-on): Add getgroups.
22208         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22209         (group_member): Rely on getgroups replacement.
22210         * lib/getugroups.c (getugroups): Use gid_t.
22211         * tests/test-getgroups.c (main): Likewise.
22212         * NEWS: Mention the signature change.
22213         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22214         problem with signature.
22215         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22216         GETGROUPS_T is still useful for setgroups.
22217
22218         getgroups, getugroups: provide stubs for mingw
22219         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22220         * lib/getugroups.c (getugroups): Likewise.
22221         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22222         function.  Modernize replacement scheme.
22223         (gl_PREREQ_GETGROUPS): Delete.
22224         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22225         * modules/getgroups (configure.ac): Declare witness.
22226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22227         * modules/unistd (Depends-on): Substitute witness.
22228         * lib/unistd.in.h (getgroups): Declare replacement.
22229
22230         getgroups: avoid calling exit
22231         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22232         drop xalloc.
22233         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22234         dependencies.
22235         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22236         exiting, in the rare case of malloc failure.
22237
22238         getgroups: fix logic error
22239         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22240         has more than 20 groups.
22241         * modules/getgroups-tests: New test.
22242         * tests/test-getgroups.c: New file.
22243
22244 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22245
22246         * tests/test-base64.c: Improve.
22247
22248 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22249
22250         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22251         Blake <ebb9@byu.net>.
22252
22253 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22254
22255         * tests/test-xvasprintf.c: Add %s%s related checks.
22256
22257 2009-11-12  Eric Blake  <ebb9@byu.net>
22258
22259         version-etc: match standards.texi style
22260         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22261         and use <> only for URLs.
22262
22263 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22264
22265         fts: do not fail on a submount during traversal
22266         * lib/fts.c (fts_build): Read the stat info again after opening
22267         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22268         Original report at http://bugzilla.redhat.com/501848.
22269
22270 2009-11-12  Jim Meyering  <meyering@redhat.com>
22271
22272         bootstrap: sync from coreutils
22273         * build-aux/bootstrap (bootstrap_epilogue): New function.
22274         Use git_modules_config in one more place.  This make bootstrap's
22275         --gnulib-srcdir option more useful for testing.
22276
22277         bootstrap: generalize autoheader check
22278         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22279         AC_CONFIG_HEADERS.
22280
22281 2009-11-11  Eric Blake  <ebb9@byu.net>
22282
22283         mkfifoat: use new modules for Solaris and BSD bugs
22284         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22285         * lib/mkfifoat.c (mknodat): Split...
22286         * lib/mknodat.c (mknodat): ...into new file.
22287         * modules/mkfifoat (Files): Ship new file.
22288         (Depends-on): Add mkfifo, mknod.
22289         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22290         (Depends-on): Add symlink.
22291         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22292         redundant with test_mkfifo.h.
22293         (do_mkfifoat, do_mknodat): New helpers.
22294
22295         mknod: new module
22296         * modules/mknod: New file.
22297         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22298         * lib/mknod.c (mknod): Likewise.
22299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22300         defaults.
22301         * modules/sys_stat (Makefile.am): Substitute them.
22302         * lib/sys_stat.in.h (mknod): Declare replacement.
22303         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22304         Document it.
22305         * doc/posix-functions/mknod.texi (mknod): Likewise.
22306         * modules/mknod-tests: New test.
22307         * tests/test-mknod.c: Likewise.
22308
22309         mkfifo: new module
22310         * modules/mkfifo: New file.
22311         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22312         * lib/mkfifo.c (mkfifo): Likewise.
22313         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22314         defaults.
22315         * modules/sys_stat (Makefile.am): Substitute them.
22316         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22317         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22318         Document it.
22319         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22320         * modules/mkfifo-tests: New test.
22321         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22322         from test-mkfifoat.c.
22323         * tests/test-mkfifo.c: New file.
22324
22325         readlink: detect FreeBSD bug
22326         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22327         slash on symlink.
22328         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22329         * tests/test-readlink.h (test_readlink): Enhance test.
22330
22331         symlink: detect FreeBSD bug
22332         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22333         slash on symlink.
22334         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22335         * tests/test-symlink.h (test_symlink): Enhance test.
22336
22337 2009-11-10  Eric Blake  <ebb9@byu.net>
22338
22339         link: detect FreeBSD bug
22340         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22341         symlink.
22342         * doc/posix-functions/link.texi (link): Document the bug.
22343         * tests/test-link.h (test_link): Enhance test.
22344         * tests/test-linkat.c (main): Update caller.
22345
22346         unlink, remove: detect FreeBSD bug
22347         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22348         slash on symlink.
22349         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22350         * doc/posix-functions/remove.texi (remove): Likewise.
22351         * tests/test-unlink.h (test_unlink): Enhance test.
22352         * tests/test-remove.c (main): Likewise.
22353
22354 2009-11-09  Eric Blake  <ebb9@byu.net>
22355
22356         rename: detect FreeBSD bug
22357         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22358         slash on symlink.
22359         * modules/renameat-tests (Depends-on): Add filenamecat.
22360         * tests/test-rename.h (test_rename): Allow one more errno.
22361         * tests/test-renameat.c (main): Likewise.
22362         * doc/posix-functions/rename.texi (rename): Document the bug.
22363
22364         open: detect FreeBSD bug
22365         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22366         symlink.
22367         * doc/posix-functions/open.texi (open): Document the bug.
22368         * doc/posix-functions/utimes.texi (utimes): Likewise.
22369         * tests/test-open.h (test_open): Add parameters, and test symlink
22370         handling.
22371         * tests/test-open.c (main): Adjust caller.
22372         * tests/test-fcntl-safer.c (main): Likewise.
22373         * modules/open-tests (Depends-on): Add stdbool, symlink.
22374         * modules/fcntl-safer-tests (Depends-on): Likewise.
22375         * tests/test-openat.c (main): Add test-open tests.
22376
22377         stat: detect FreeBSD bug
22378         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22379         symlink.
22380         * doc/posix-functions/stat.texi (stat): Document the bug.
22381         * tests/test-stat.h (test_stat_func): Add argument.
22382         * tests/test-stat.c (main): Adjust caller.
22383         * tests/test-fstatat.c (main): Likewise.
22384         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22385         Reported by Jim Meyering.
22386
22387 2009-11-09  James Youngman  <jay@gnu.org>
22388
22389         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22390         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22391
22392 2009-11-08  Jim Meyering  <meyering@redhat.com>
22393
22394         utimens: remove invalid futimesat call
22395         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22396         It used the file descriptor of the target file as the DIR_FD
22397         parameter and NULL as the file name.  That caused failure with
22398         errno == EFAULT on FreeBSD-8.0-rc2
22399
22400 2009-11-07  Eric Blake  <ebb9@byu.net>
22401
22402         fflush, freadseek: use fseeko, not fseek
22403         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22404         (clear_ungetc_buffer): Avoid potential problems on large files.
22405         * lib/freadseek.c (freadseek): Likewise.
22406         * modules/freadseek (Depends-on): Add fseeko.
22407         * modules/fseek (configure.ac): Set a witness.
22408         * tests/test-fflush.c (main): Use fseeko.
22409         * tests/test-fpurge.c (fseek): Disable link warning.
22410         * tests/test-freadable.c (fseek): Likewise.
22411         * tests/test-freading.c (fseek): Likewise.
22412         * tests/test-fseeko.c (fseek): Likewise.
22413         * tests/test-ftell.c (fseek): Likewise.
22414         * tests/test-ftello.c (fseek): Likewise.
22415         * tests/test-fwritable.c (fseek): Likewise.
22416         * tests/test-fwriting.c (fseek): Likewise.
22417
22418 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22419
22420         * modules/memchr (Depends-on): Drop getpagesize dependency.
22421
22422 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22423
22424         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22425         Reported by Ludovic Courtès.
22426         * build-aux/pmccabe2html: Improve example usage.
22427         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22428
22429 2009-11-06  Jim Meyering  <meyering@redhat.com>
22430
22431         do-release-commit-and-tag: New module.
22432         Automate the release-commit and tag process.
22433         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22434         * modules/do-release-commit-and-tag: New file.
22435         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22436
22437 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22438
22439         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22440         because test-select.c uses inet_pton.
22441
22442 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22443
22444         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22445         GETADDRINFO_LIB.  Bump serial number.
22446         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22447         Suggested by Eric Blake <ebb9@byu.net>.
22448
22449 2009-11-05  Eric Blake  <ebb9@byu.net>
22450
22451         strtod: detect darwin bug
22452         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22453         Reported by Leo Davis.
22454
22455         freopen-safer: new module
22456         * modules/freopen-safer: New module.
22457         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22458         * lib/freopen-safer.c (freopen_safer): New file.
22459         * lib/stdio-safer.h (freopen_safer): New declaration.
22460         * lib/stdio--.h (freopen): New override.
22461         * MODULES.html.sh (File stream based Input/Output): Mention it.
22462         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22463         freopen-safer module.
22464         * doc/posix-functions/stderr.texi (stderr): Likewise.
22465         * doc/posix-functions/stdin.texi (stdin): Likewise.
22466         * doc/posix-functions/stdout.texi (stdout): Likewise.
22467         * modules/freopen-safer-tests: New test.
22468         * tests/test-reopen-safer.c: New file.
22469
22470 2009-11-05  Jim Meyering  <meyering@redhat.com>
22471
22472         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22473         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22474
22475 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22476
22477         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22478
22479 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22480
22481         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22482
22483 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22484
22485         Fix link error.
22486         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22487         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22488
22489 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22490
22491         * tests/test-func.c: Also test value of __func__.
22492
22493 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22494
22495         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22496         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22497
22498 2009-11-05  Bruno Haible  <bruno@clisp.org>
22499
22500         Fix link error.
22501         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22503         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22504
22505 2009-11-05  Bruno Haible  <bruno@clisp.org>
22506
22507         Tests for module 'inet_pton'.
22508         * modules/inet_pton-tests: New file.
22509         * tests/test-inet_pton.c: New file.
22510
22511 2009-11-05  Bruno Haible  <bruno@clisp.org>
22512
22513         Tests for module 'inet_ntop'.
22514         * modules/inet_ntop-tests: New file.
22515         * tests/test-inet_ntop.c: New file.
22516
22517 2009-11-04  Eric Blake  <ebb9@byu.net>
22518
22519         stdlib-safer: wrap all mkstemp variants
22520         * modules/mkostemp (configure.ac): Set witness.
22521         * modules/mkostemps (configure.ac): Likewise.
22522         * modules/mkstemps (configure.ac): Likewise.
22523         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22524         (mkstemps_safer): Wrap more functions.
22525         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22526         wrapping.
22527         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22528         (mkstemps_safer): Implement the wrappers.
22529
22530         mkstemps, mkostemps: new modules
22531         * modules/mkostemps: New module.
22532         * modules/mkstemps: Likewise.
22533         * lib/mkostemps.c (mkostemps): New file.
22534         * lib/mkstemps.c (mkstemps): Likewise.
22535         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22536         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22538         * modules/stdlib (Makefile.am): Substitute them.
22539         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22540         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22541         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22542         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22543         * MODULES.html.sh (File system functions): Mention them.
22544
22545         tempname: resync from glibc
22546         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22547         same values for __GT_FILE as glibc.  Abort even when assertions
22548         are disabled.
22549         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22550         match its value otherwise.  Allow idempotent inclusion.
22551         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22552         * lib/mkostemp.c (mkostemp): Likewise.
22553         * lib/mkstemp.c (mkstemp): Likewise.
22554         * lib/tmpfile.c (tmpfile): Likewise.
22555         * NEWS: Document this.
22556
22557         utimens: fix use of futimens on older Linux
22558         * lib/utimens.c (fdutimens): Use updated, rather than original,
22559         timespec to avoid bug in older Linux kernel.
22560         Reported by Simon Josefsson.
22561
22562 2009-11-04  Bruno Haible  <bruno@clisp.org>
22563
22564         Make num_processors more flexible and consistent.
22565         * lib/nproc.h (enum nproc_query): New type.
22566         (num_processors): Add a 'query' argument.
22567         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22568         (num_processors): Add a 'query' argument. Test the value of the
22569         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22570         mingw, count the number of CPUs available for the current process.
22571         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22572         Check for sched_getaffinity and sched_getaffinity_np.
22573         * modules/nproc (Depends-on): Add c-ctype, extensions.
22574         * NEWS: Mention the change.
22575
22576 2009-11-03  Bruno Haible  <bruno@clisp.org>
22577
22578         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22579
22580 2009-11-03  Jim Meyering  <meyering@redhat.com>
22581
22582         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22583         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22584         if it is defined.
22585
22586 2009-11-02  Eric Blake  <ebb9@byu.net>
22587
22588         mktime, timegm: share common declaration
22589         * lib/mktime-internal.h: New file.
22590         * lib/mktime.c: Use it rather than open-coding a declaration.
22591         * lib/timegm.c: Likewise.
22592         * modules/mktime (Files): Ship it.
22593         * modules/timegm (Files): Likewise.
22594         Suggested by Bruno Haible.
22595
22596         test-update-copyright: update test to match script changes
22597         * tests/test-update-copyright.sh: Avoid hard-coding perl
22598         location.  Don't update *.bak created by earlier runs.
22599
22600 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22601             Simon Josefsson  <simon@josefsson.org>
22602             Bruno Haible  <bruno@clisp.org>
22603
22604         Fix link error on Solaris 8.
22605         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22606         also in libnsl. Define also INET_PTON_LIB.
22607         * modules/inet_pton (Link): New section.
22608
22609 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22610             Bruno Haible  <bruno@clisp.org>
22611
22612         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22613         * modules/inet_ntop (Link): New section.
22614         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22615
22616 2009-11-02  Eric Blake  <ebb9@byu.net>
22617
22618         maint: avoid compiler warnings in m4 macros
22619         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22620         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22621
22622 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22623
22624         * m4/pmccabe2html.m4: Remove file.
22625         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22626         function.  Change maintainer.
22627         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22628         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22629         Courtès).
22630
22631 2009-10-31  Eric Blake  <ebb9@byu.net>
22632
22633         fseeko: fix m4 regression
22634         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22635         regression from 2009-10-27.
22636         Reported by Ralf Wildenhues.
22637
22638 2009-10-31  Jim Meyering  <meyering@redhat.com>
22639
22640         inttostr: aesthetics and improved (compile-time) safety
22641         Define inttype_is_signed rather than inttype_is_unsigned,
22642         since the sole use is via "#if inttype_is_signed".
22643         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22644         inttype_is_unsigned.
22645         * lib/offtostr.c (inttype_is_signed): Likewise.
22646         * lib/uinttostr.c (inttype_is_signed): Likewise.
22647         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22648         * lib/inttostr.c (inttostr): Use verify to cross-check the
22649         inttype_is_signed value and the signedness of the actual type.
22650         * modules/inttostr (Depends-on): Add verify.
22651
22652 2009-10-30  Eric Blake  <ebb9@byu.net>
22653
22654         build: avoid compiler warnings
22655         * lib/fchmodat.c (lchmod): Mark unused variables.
22656         * lib/getopt.c (_getopt_initialize): Likewise.
22657         * lib/mktime.c (__mktime_internal): Provide prototype.
22658         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22659         older gcc that do not understand #pragma GCC diagnostic.
22660         * lib/uinttostr.c (inttype_is_unsigned): Define.
22661         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22662
22663 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22664
22665         stat: fix compilation on AIX
22666         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22667         only see struct stat64.
22668
22669 2009-10-30  Eric Blake  <ebb9@byu.net>
22670
22671         exclude: make more robust
22672         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22673         rather than masking a coding bug.
22674         Suggested by Bruno Haible.
22675
22676 2009-10-30  Jim Meyering  <meyering@redhat.com>
22677
22678         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22679         Rather than putting #!/usr/bin/perl on the first line,
22680         start with a variant of what's recommended by "man perlrun" that
22681         invokes the first "perl" program from your shell's search path.
22682         * build-aux/gitlog-to-changelog: Replace #!... as above.
22683         Add a "Local Variables" perl mode setting.
22684         Prompted by a patch from Ludovic Courtès.
22685         Improved by Eric Blake.
22686         * build-aux/useless-if-before-free: Likewise.
22687         * build-aux/announce-gen: Likewise.
22688         * build-aux/update-copyright: Likewise.
22689
22690 2009-10-29  Eric Blake  <ebb9@byu.net>
22691
22692         filenamecat-lgpl: adjust clients
22693         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22694         filenamecat.
22695         * modules/renameat (Depends-on): Likewise.
22696
22697         filenamecat: split into filenamecat-lgpl
22698         * modules/filenamecat-lgpl: New module.
22699         * modules/filenamecat (Files): Move library-safe files into
22700         filenamecat-lgpl.
22701         (Depends-on): Add filenamecat-lgpl.
22702         (configure.ac): Declare witness.
22703         * lib/filenamecat.h (file_name_concat): Only declare when using
22704         GPL module.
22705         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22706         Move...
22707         * lib/filenamecat-lgpl.c: ...into new file.
22708         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22709         (gl_FILE_NAME_CONCAT): Use it.
22710         * MODULES.html.sh (File system functions): Mention new module.
22711
22712         argp: avoid memory leak
22713         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22714         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22715         base_name, since the latter malloc()s and can call exit().
22716         Leak introduced 2006-07-03.
22717
22718         dirname-lgpl: adjust clients that don't need full dirname
22719         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22720         * modules/filenamecat (Depends-on): Likewise.
22721         * modules/linkat (Depends-on): Likewise.
22722         * modules/mkancesdirs (Depends-on): Likewise.
22723         * modules/mkdir (Depends-on): Likewise.
22724         * modules/openat (Depends-on): Likewise.
22725         * modules/savewd (Depends-on): Likewise.
22726         * modules/rename (Depends-on): Likewise.
22727         (License): Relax license.
22728         * modules/mkdir-tests (Depends-on): Drop progname.
22729         (Makefile.am): Delete unneeded LDADD.
22730         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22731
22732         dirname: split into dirname-lgpl
22733         * modules/dirname-lgpl: New module.
22734         * modules/dirname (Files): Move library-safe files into
22735         dirname-lgpl.
22736         (Depends-on): Add dirname-lgpl.
22737         (configure.ac): Declare witness.
22738         * modules/double-slash-root (License): Relax license.
22739         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22740         module.
22741         * lib/dirname.c (dir_len, mdir_name): Move...
22742         * lib/dirname-lgpl.c: ...into new file.
22743         * lib/basename.c (last_component, base_len): Move...
22744         * lib/basename-lgpl.c: ...into new file.
22745         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22746         (gl_DIRNAME): Use it.
22747         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22748         Mention new module.
22749         * modules/dirname-tests (Depends-on): Add progname.
22750         * tests/test-dirname.c (program_name): Delete.
22751
22752         mkdir: make safe for libraries
22753         * modules/mkdir (Depends-on): Drop xalloc.
22754         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22755         exit.
22756
22757         tests: avoid some compiler warnings
22758         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22759         literals.
22760         * tests/test-memchr.c (main): Avoid type mismatch.
22761         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22762         * tests/test-base64.c (main): Likewise.
22763         * tests/test-getdelim.c (main): Likewise.
22764         * tests/test-gethostname.c (main): Likewise.
22765         * tests/test-getline.c (main): Likewise.
22766         * tests/test-netinet_in.c (main): Likewise.
22767         * tests/test-select.c (open_server_socket, main): Likewise.
22768         * tests/test-select-stdin.c (main): Likewise.
22769         * tests/test-sockets.c (main): Likewise.
22770         * tests/test-strsignal.c (main): Likewise.
22771         * tests/test-sys_select.c (main): Likewise.
22772         * tests/test-sys_socket.c (main): Likewise.
22773         * tests/test-u64.c (main): Likewise.
22774         * tests/test-xfprintf-posix.c (main): Likewise.
22775         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22776
22777         sockets: avoid compiler warning
22778         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22779
22780         maint: detect usage(1) and other suspicious exits
22781         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22782
22783 2009-10-29  Jim Meyering  <meyering@redhat.com>
22784
22785         timespec: long-to-int truncation could make timespec_cmp malfunction
22786         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22787         a multiple of 2^32 nanoseconds as no difference.
22788
22789 2009-10-28  Jim Meyering  <meyering@redhat.com>
22790
22791         fprintftime: wrap macro code argument in "do {...} while(0)"
22792         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22793         cpy macro must be a statement that can be followed by a semicolon.
22794         Now that the else clause contains a comment and is hence longer
22795         than one line, I require curly braces.  That in turn requires
22796         that we wrap this code block in the standard do...while(0).
22797
22798         fprintftime: remove stray semicolon from previous change
22799         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22800
22801         fprintftime: avoid a warning about ignored fwrite return value
22802         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22803         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22804         that is unsafe.
22805         * modules/fprintftime (Depends-on): Add ignore-value.
22806
22807         exclude: avoid an unwarranted warning
22808         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22809
22810 2009-10-27  Eric Blake  <ebb9@byu.net>
22811
22812         fseek: avoid compilation failure when fflush is replaced
22813         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22814         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22815         module is in use.
22816         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22817         module is not in use; since REPLACE_FSEEK worked otherwise.
22818         (GNULIB_FTELLO): Likewise for ftell.
22819         Reported by Ian Beckwith and others.
22820
22821 2009-10-27  Bruno Haible  <bruno@clisp.org>
22822
22823         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22824         Reported by Jim Meyering.
22825
22826 2009-10-27  Jim Meyering  <jim@meyering.net>
22827             Bruno Haible  <bruno@clisp.org>
22828
22829         Avoid warning despite dropping the return value of fwrite.
22830         * lib/unicodeio.c: Include ignore-value.h.
22831         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22832         * modules/unicodeio (Depends-on): Add ignore-value.
22833
22834 2009-10-26  Eric Blake  <ebb9@byu.net>
22835
22836         areadlinkat: fix fallback path
22837         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22838         pointer and zero.
22839
22840 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22841
22842         Use a better IO block size for modern systems
22843         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22844         * lib/md2.c: Likewise.
22845         * lib/md4.c: Likewise.
22846         * lib/md5.c: Likewise.
22847         * lib/sha1.c: Likewise.
22848         * lib/sha256.c: Likewise.
22849         * lib/sha512.c: Likewise.
22850
22851 2009-10-22  Eric Blake  <ebb9@byu.net>
22852
22853         tests: avoid several compiler warnings
22854         * tests/test-getcwd.c (main): Avoid buffer underflow.
22855         * tests/test-getdate.c (main): String literals are not safe with
22856         putenv, so use setenv.  Declare unused argument.
22857         * modules/getdate-tests (Depends-on): Add setenv.
22858         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22859         problems with string literals in char *.
22860         * tests/test-hash.c (main): Avoid shadowing declaration.
22861         (insert_new): Treat string literals as char const *.
22862         * tests/test-getopt.h (test_getopt): Likewise.
22863         (getopt_loop): Alter types to minimize casting elsewhere.
22864         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22865         (test_getopt_long_posix): Likewise.
22866         (do_getopt_long): Add wrapper to minimize casting.
22867         * tests/test-atexit.c (clear_temp_file): Use void.
22868         * tests/test-areadlink-with-size.c (main): Declare unused
22869         arguments.
22870         * tests/test-areadlink.c (main): Likewise.
22871         * tests/test-areadlinkat-with-size.c (main): Likewise.
22872         * tests/test-areadlinkat.c (main): Likewise.
22873         * tests/test-canonicalize-lgpl.c (main): Likewise.
22874         * tests/test-canonicalize.c (main): Likewise.
22875         * tests/test-dirent-safer.c (main): Likewise.
22876         * tests/test-dirname.c (main): Likewise.
22877         * tests/test-dup2.c (main): Likewise.
22878         * tests/test-fchdir.c (main): Likewise.
22879         * tests/test-fcntl-h.c (main): Likewise.
22880         * tests/test-fcntl-safer.c (main): Likewise.
22881         * tests/test-fdopendir.c (main): Likewise.
22882         * tests/test-fdutimensat.c (main): Likewise.
22883         * tests/test-fflush.c (main): Likewise.
22884         * tests/test-filenamecat.c (main): Likewise.
22885         * tests/test-filevercmp.c (main): Likewise.
22886         * tests/test-fopen-safer.c (main): Likewise.
22887         * tests/test-fopen.c (main): Likewise.
22888         * tests/test-fpending.c (main): Likewise.
22889         * tests/test-fpurge.c (main): Likewise.
22890         * tests/test-freading.c (main): Likewise.
22891         * tests/test-fstatat.c (main): Likewise.
22892         * tests/test-fsync.c (main): Likewise.
22893         * tests/test-futimens.c (main): Likewise.
22894         * tests/test-getndelim2.c (main): Likewise.
22895         * tests/test-gettimeofday.c (main): Likewise.
22896         * tests/test-getopt.c (main): Likewise.
22897         * tests/test-i-ring.c (main): Likewise.
22898         * tests/test-inttypes.c (main): Likewise.
22899         * tests/test-link.c (main): Likewise.
22900         * tests/test-lstat.c (main): Likewise.
22901         * tests/test-math.c (main): Likewise.
22902         * tests/test-md5.c (main): Likewise.
22903         * tests/test-memchr2.c (main): Likewise.
22904         * tests/test-memrchr.c (main): Likewise.
22905         * tests/test-mkdir.c (main): Likewise.
22906         * tests/test-mkdirat.c (main): Likewise.
22907         * tests/test-mkfifoat.c (main): Likewise.
22908         * tests/test-open.c (main): Likewise.
22909         * tests/test-openat-safer.c (main): Likewise.
22910         * tests/test-openat.c (main): Likewise.
22911         * tests/test-quotearg.c (main): Likewise.
22912         * tests/test-rawmemchr.c (main): Likewise.
22913         * tests/test-readlink.c (main): Likewise.
22914         * tests/test-remove.c (main): Likewise.
22915         * tests/test-rename.c (main): Likewise.
22916         * tests/test-renameat.c (main): Likewise.
22917         * tests/test-rmdir.c (main): Likewise.
22918         * tests/test-sha1.c (main): Likewise.
22919         * tests/test-signal.c (main): Likewise.
22920         * tests/test-sigaction.c (main): Likewise.
22921         * tests/test-stat.c (main): Likewise.
22922         * tests/test-stat-time.c (main): Likewise.
22923         * tests/test-stddef.c (main): Likewise.
22924         * tests/test-stdint.c (main): Likewise.
22925         * tests/test-stdio.c (main): Likewise.
22926         * tests/test-stdlib.c (main): Likewise.
22927         * tests/test-strchrnul.c (main): Likewise.
22928         * tests/test-strerror.c (main): Likewise.
22929         * tests/test-string.c (main): Likewise.
22930         * tests/test-strtod.c (main): Likewise.
22931         * tests/test-strverscmp.c (main): Likewise.
22932         * tests/test-symlink.c (main): Likewise.
22933         * tests/test-symlinkat.c (main): Likewise.
22934         * tests/test-sys_stat.c (main): Likewise.
22935         * tests/test-sys_time.c (main): Likewise.
22936         * tests/test-time.c (main): Likewise.
22937         * tests/test-unistd.c (main): Likewise.
22938         * tests/test-unlink.c (main): Likewise.
22939         * tests/test-unlinkat.c (main): Likewise.
22940         * tests/test-utimens.c (main): Likewise.
22941         * tests/test-utimensat.c (main): Likewise.
22942         * tests/test-version-etc.c (main): Likewise.
22943         * tests/test-wchar.c (main): Likewise.
22944         * tests/test-wctype.c (main): Likewise.
22945         * tests/test-xprintf-posix.c (main): Likewise.
22946         * tests/test-posixtm.c (main): Likewise.
22947         (STREQ): Delete unused macro.
22948         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22949         shadowed variables.
22950         * tests/test-memchr.c (main): Likewise.
22951
22952 2009-10-21  Eric Blake  <ebb9@byu.net>
22953
22954         areadlinkat: avoid failure on older glibc
22955         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22956         rather than mis-comparing 0 against FUNC_RESULT of char*.
22957
22958 2009-10-21  Bruno Haible  <bruno@clisp.org>
22959
22960         * modules/stpncpy (License): Relicense under LGPLv2+.
22961         Reported by David Lutterkort <lutter@redhat.com>.
22962
22963 2009-10-20  Eric Blake  <ebb9@byu.net>
22964
22965         utimensat: work around Solaris 9 bug
22966         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22967         has trailing slash bugs.
22968         * tests/test-lutimens.h (test_lutimens): Enhance test.
22969         * tests/test-utimens.h (test_utimens): Likewise.
22970         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22971         * doc/posix-functions/utimes.texi (utimes): Likewise.
22972         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22973         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22974         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22975         * doc/posix-functions/futimens.texi (futimens): Likewise.
22976
22977         fdutimensat: new module
22978         * modules/fdutimensat: New file.
22979         * lib/fdutimensat.c (fdutimensat): Likewise.
22980         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22981         * MODULES.html.sh (File system functions): Mention module.
22982         * modules/fdutimensat-tests: New test.
22983         * tests/test-fdutimensat.c: Likewise.
22984
22985         doc: regenerate INSTALL
22986         * doc/INSTALL: Reflect recent autoconf update.
22987         * doc/INSTALL.ISO: Likewise.
22988         * doc/INSTALL.UTF-8: Likewise.
22989
22990 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22991
22992         acl: warn if ACL support is not detected
22993         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22994
22995 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22996
22997         * lib/nproc.h: Add extern "C" block for C++.
22998
22999 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23000             Bruno Haible  <bruno@clisp.org>
23001
23002         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23003         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23004         * doc/posix-functions/isalpha.texi: Likewise.
23005         * doc/posix-functions/isblank.texi: Likewise.
23006         * doc/posix-functions/iscntrl.texi: Likewise.
23007         * doc/posix-functions/isdigit.texi: Likewise.
23008         * doc/posix-functions/isgraph.texi: Likewise.
23009         * doc/posix-functions/islower.texi: Likewise.
23010         * doc/posix-functions/isprint.texi: Likewise.
23011         * doc/posix-functions/ispunct.texi: Likewise.
23012         * doc/posix-functions/isspace.texi: Likewise.
23013         * doc/posix-functions/isupper.texi: Likewise.
23014         * doc/posix-functions/isxdigit.texi: Likewise.
23015
23016 2009-10-18  Bruno Haible  <bruno@clisp.org>
23017
23018         Tests for module 'isblank'.
23019         * modules/isblank-tests: New file.
23020         * tests/test-isblank.c: New file.
23021
23022         New module 'isblank'.
23023         * lib/isblank.c: New file.
23024         * m4/isblank.m4: New file.
23025         * modules/isblank: New file.
23026         * doc/posix-functions/isblank.texi: Mention the new module.
23027
23028 2009-10-18  Bruno Haible  <bruno@clisp.org>
23029
23030         New module 'ctype'.
23031         * lib/ctype.in.h: New file.
23032         * m4/ctype.m4: New file.
23033         * modules/ctype: New file.
23034         * doc/posix-headers/ctype.texi: Mention the new module.
23035
23036 2009-10-18  Jim Meyering  <meyering@redhat.com>
23037
23038         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23039         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23040         right after its initialization, rather than farther down.
23041         Keeping these in close proximity makes it easier to ensure
23042         that each such variable is initialized.  E.g.,
23043
23044             LIB_CLOCK_GETTIME=
23045             AC_SUBST([LIB_CLOCK_GETTIME])
23046
23047         This change also increments these serial numbers.
23048         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23049         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23051
23052 2009-10-18  Bruno Haible  <bruno@clisp.org>
23053
23054         Don't let environment variables perturb build.
23055         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23056         (gl_PREREQ_GETHRXTIME): ... not here.
23057
23058 2009-10-18  Bruno Haible  <bruno@clisp.org>
23059
23060         Avoid symlink attack in localcharset module.
23061         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23062         (O_NOFOLLOW): Define fallback.
23063         (get_charset_aliases): Don't open the file if it is a symbolic link.
23064         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23065         gl_FCNTL_H.
23066         (gl_FCNTL_H): Require it.
23067         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23068         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23069         Reported by Fergal Glynn <fglynn@veracode.com>.
23070
23071 2009-10-18  Bruno Haible  <bruno@clisp.org>
23072
23073         Implement nproc for mingw.
23074         * lib/nproc.c: Include <windows.h>
23075         (num_processors): On native Windows platforms, try GetSystemInfo.
23076
23077 2009-10-18  Bruno Haible  <bruno@clisp.org>
23078
23079         Implement nproc for IRIX.
23080         * lib/nproc.c: Include <sys/sysmp.h>.
23081         (num_processors): On IRIX systems, try sysmp.
23082         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23083
23084 2009-10-18  Bruno Haible  <bruno@clisp.org>
23085
23086         Implement nproc for HP-UX.
23087         * lib/nproc.c: Include <sys/pstat.h>
23088         (num_processors): On HP-UX systems, try pstat_getdynamic.
23089         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23090         pstat_getdynamic.
23091
23092 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23093             Bruno Haible  <bruno@clisp.org>
23094
23095         Implement nproc for NetBSD, OpenBSD.
23096         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23097         (ARRAY_SIZE): New macro.
23098         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23099         * m4/nproc.m4: New file.
23100         * modules/nproc (Files): Add m4/nproc.m4.
23101         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23102         (Makefile.am): Instead, augment lib_SOURCES.
23103
23104 2009-10-18  Bruno Haible  <bruno@clisp.org>
23105
23106         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23107         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23108         sys/param.h.
23109
23110 2009-10-16  Eric Blake  <ebb9@byu.net>
23111
23112         utimensat: new module
23113         * modules/utimensat: New file.
23114         * lib/utimensat.c (utimensat): Likewise.
23115         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23116         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23117         so we can work around Linux bugs.
23118         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23119         * modules/sys_stat (Makefile.am): Substitute them.
23120         * lib/sys_stat.in.h (utimensat): Declare it.
23121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23122         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23123         * modules/utimensat-tests: New test.
23124         * tests/test-utimensat.c: Likewise.
23125
23126         utimens: let lutimens work on non-symlinks
23127         * lib/utimens.c (lutimens): Fall back to utimens rather than
23128         failing with ENOSYS, when file is not a symlink.
23129         (utimens): Reduce redirection.
23130         * tests/test-lutimens.h (test_lutimens): Update test to cover
23131         non-symlinks.
23132         * tests/test-utimens.h (test_utimens): Update test to cover
23133         symlinks.
23134         * tests/test-utimens.c (main): Update caller.
23135
23136         utimens: cache whether utimensat syscall works
23137         * lib/utimens.c (utimensat_works_really): New cache variable.
23138         (fdutimens, lutimens): Use it to avoid failing syscall.
23139
23140         test-stat-time, test-utimens: improve portability
23141         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23142         ext4 on alpha, and for cygwin.
23143         * tests/test-utimens-common.h: New file.
23144         (nap): Factor delays into single function.
23145         * tests/test-lutimens.h (test_lutimens): Use new header.
23146         * tests/test-futimens.h (test_futimens): Likewise.
23147         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23148         timestamps to occur from same machine, as was done previously for
23149         test_utimens.
23150         * modules/utimens-tests (Files): Ship new file.
23151         * modules/futimens-tests (Files): Likewise.
23152         Reported in part by Jim Meyering.
23153
23154         sys_stat: sort replacement declarations
23155         * lib/sys_stat.in.h: Sort declarations.
23156         * lib/futimens.c (futimens): Fix typo.
23157
23158 2009-10-15  Jim Meyering  <meyering@redhat.com>
23159
23160         don't let environment settings perturb build
23161         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23162         could cause a configure-time and/or build-time malfunction.
23163         Typically, a configure-time function-in-library test is performed
23164         via code like this:
23165
23166           LIB_VAR=
23167           AC_SUBST([LIB_VAR])
23168           prefix_saved_LIBS=$LIBS
23169             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23170                        [test "$ac_cv_search_FUNC" = "none required" ||
23171                         LIB_VAR=$ac_cv_search_FUNC])
23172           LIBS=$prefix_saved_LIBS
23173
23174         However, in each of the files affected by this change, the LIB_VAR=
23175         initialization was omitted.  Thus, when set in the environment, its
23176         value would propagate into generated Makefiles when FUNC is not found
23177         in LIB_NAME.
23178         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23179         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23181
23182 2009-10-14  Eric Blake  <ebb9@byu.net>
23183
23184         fchdir: avoid infinite recursion in mingw
23185         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23186         recursing.
23187
23188         test-stat-time: port to mingw
23189         * tests/test-stat-time.c (force_unlink): Return a value.
23190         (test_ctime) [W32]: Fix compilation error.
23191         (nap): Don't call usleep with too large an argument.  Use
23192         force_unlink.
23193         * doc/pastposix-functions/usleep.texi (usleep): Document the
23194         portability issue.
23195
23196 2009-10-13  Jim Meyering  <meyering@redhat.com>
23197
23198         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23199         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23200         * modules/pipe-filter-ii: Likewise.
23201         * modules/sys_socket-tests: Likewise.
23202         * modules/tsearch-tests: Likewise.
23203         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23204         (check): Depend on it.
23205
23206 2009-10-12  Eric Blake  <ebb9@byu.net>
23207
23208         utimens-tests: port to NFS file systems
23209         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23210         comparisons to avoid spurious failures from timestamp drift
23211         between NFS machines.
23212
23213 2009-10-12  Eric Blake  <ebb9@byu.net>
23214
23215         stat-time-tests: minor cleanups
23216         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23217         * tests/test-stat-time.c (nap): Separate assignment from call.
23218         Suggested by Paolo Bonzini and Bruno Haible.
23219
23220         sys_stat: guarantee struct timespec
23221         * lib/sys_stat.in.h (includes): Always include <time.h>
23222         * modules/sys_stat (Depends-on): Add time.
23223         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23224         mode_t permission values.
23225         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23226         get at subsecond timestamps.
23227
23228 2009-10-10  Eric Blake  <ebb9@byu.net>
23229
23230         futimens: new module
23231         * modules/futimens: New file.
23232         * lib/futimens.c (futimens): Likewise.
23233         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23234         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23235         we can work around Linux bugs.
23236         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23237         * modules/sys_stat (Makefile.am): Substitute them.
23238         * lib/sys_stat.in.h (futimens): Declare it.
23239         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23240         * doc/posix-functions/futimens.texi (futimens): Likewise.
23241         * modules/futimens-tests: New test.
23242         * tests/test-futimens.c: Likewise.
23243
23244         utimens: introduce fdutimens
23245         * lib/utimens.h (fdutimens): New prototype.
23246         * lib/utimens.c (gl_futimens): Move guts...
23247         (fdutimens): ...to new interface.
23248         * tests/test-utimens.c (do_fdutimens): Use it.
23249
23250         utimens: add UTIME_NOW and UTIME_OMIT support
23251         * lib/utimens.c (validate_timespec, update_timespec): New helper
23252         functions.
23253         (gl_futimens, lutimens): Use them.
23254         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23255         stdbool, sys_stat.
23256         (Link): Mention resulting library dependency.
23257         * modules/utimecmp (Link): Likewise.
23258         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23259         (Makefile.am): Pick up library dependency.
23260         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23261         definition.
23262         * tests/test-sys_stat.c: Test the definitions.
23263         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23264         * NEWS: Document library dependency.
23265
23266         utimecmp: support symlink timestamps
23267         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23268         hashing when possible.  Use pathconf when available.
23269         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23270         * modules/utimecmp (Depends-on): Add lstat.
23271
23272         utimens: add lutimens interface
23273         * lib/utimens.c (lutimens): New function.
23274         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23275         * lib/utimens.h (lutimens): Declare new interface.
23276         * tests/test-utimens.c (main): Enhance test.
23277         * tests/test-lutimens.h (test_lutimens): New file.
23278         * modules/utimens-tests (Files): Distribute it.
23279         (Depends-on): Add symlink.
23280         (configure.ac): Check for usleep.
23281
23282         utimens: validate futimens usage
23283         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23284         fewer syscalls on failure later on.  Avoid compiler warning on
23285         mingw.
23286         * modules/utimens (Depends-on): Add dup2.
23287
23288         utimens: add test
23289         * modules/utimens-tests: New test.
23290         * tests/test-utimens.h: New file.
23291         * tests/test-futimens.h: Likewise.
23292         * tests/test-utimens.c: Likewise.
23293
23294         doc: mention timestamp portability issues
23295         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23296         instead.
23297         * doc/posix-functions/utime.texi (utime): Likewise.
23298         * doc/posix-functions/utimes.texi (utimes): Likewise.
23299         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23300         instead.
23301         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23302         module.
23303         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23304         Mention weakness with symlink timestamps.
23305         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23306         to utimensat/futimens instead.
23307         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23308
23309         test-dup2: enhance test
23310         * tests/test-dup2.c (main): Also check AT_FDCWD.
23311
23312         test-stat-time: avoid more spurious failures
23313         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23314         xfs; and avoid race if the two timestamps cross quantization edge.
23315
23316         relocatable: prefer 'file system' over 'filesystem'
23317         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23318         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23319         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23320         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23321         * lib/relocatable.c (compute_curr_prefix): Likewise.
23322
23323 2009-10-10  Jim Meyering  <meyering@redhat.com>
23324
23325         stat-time-tests: check for the usleep function
23326         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23327
23328 2009-10-10  Bruno Haible  <bruno@clisp.org>
23329
23330         * modules/xnanosleep: Put the Link section after the Include section.
23331
23332 2009-10-09  Eric Blake  <ebb9@byu.net>
23333
23334         dup2: work around FreeBSD 6.1 bug
23335         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23336         * doc/posix-functions/dup2.texi (dup2): Document it.
23337         Reported by Nelson H. F. Beebe and Jim Meyering.
23338
23339         test-stat-time: port to buggy NFS clients
23340         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23341         (test_ctime): Also skip test if mtime and ctime are skewed.
23342
23343         maint: prefer 'file system' over 'filesystem'
23344         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23345         * doc/posix-functions/lstat.texi (lstat): Likewise.
23346         * lib/file-has-acl.c (file_has_acl): Likewise.
23347         * lib/fwriteerror.c [TEST]: Likewise.
23348         * tests/test-areadlink.h (test_areadlink): Likewise.
23349         * tests/test-areadlinkat-with-size.c (main): Likewise.
23350         * tests/test-areadlinkat.c (main): Likewise.
23351         * tests/test-canonicalize-lgpl.c (main): Likewise.
23352         * tests/test-canonicalize.c (main): Likewise.
23353         * tests/test-fstatat.c (main): Likewise.
23354         * tests/test-linkat.c (main): Likewise.
23355         * tests/test-lstat.h (test_lstat_func): Likewise.
23356         * tests/test-mkdir.h (test_mkdir): Likewise.
23357         * tests/test-readlink.h (test_readlink): Likewise.
23358         * tests/test-remove.c (main): Likewise.
23359         * tests/test-rename.h (test_rename): Likewise.
23360         * tests/test-renameat.c (main): Likewise.
23361         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23362         * tests/test-symlink.h (test_symlink): Likewise.
23363         * tests/test-symlinkat.c (main): Likewise.
23364         * tests/test-unlink.h (test_unlink_func): Likewise.
23365         * tests/test-unlinkat.c (main): Likewise.
23366
23367         maint: make realtime library usage explicit
23368         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23369         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23370         * modules/settime (Link): Likewise.
23371         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23372
23373         test-stat-time: speed up execution
23374         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23375         warning on mingw.
23376         (nap): New helper function.
23377         (prepare_test): Use it to reduce sleep time.
23378         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23379         execution.
23380         * modules/stat-time-tests (configure.ac): Check for usleep.
23381
23382 2009-10-09  Jim Meyering  <meyering@redhat.com>
23383
23384         selinux-h: always use getfilecon wrappers
23385         * lib/getfilecon.c: New file.
23386         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23387         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23388         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23389         (fgetfilecon): Provide a stub.
23390         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23391         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23392         file unconditionally.
23393         When <selinux/selinux.h> is found, arrange to use wrappers.
23394         * modules/selinux-h (Files): Add getfilecon.c.
23395         (Makefile.am): Substitute include-next-related bits
23396         into the now-always-generated selinux/selinux.h file.
23397         * doc/glibc-functions/lgetfilecon.texi: New file.
23398         * doc/glibc-functions/fgetfilecon.texi: New file.
23399         * doc/glibc-functions/getfilecon.texi: New file.
23400         * doc/glibc-functions/getfilecon-desc.texi: New file.
23401         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23402         which to pull in the new files.
23403         * MODULES.html.sh (Misc): Add selinux-h.
23404
23405 2009-10-08  Jim Meyering  <meyering@redhat.com>
23406
23407         unistd: fix comment typo
23408         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23409
23410 2009-10-08  Eric Blake  <ebb9@byu.net>
23411
23412         areadlink: use SIZE_MAX consistently
23413         * modules/areadlink (Depends-on): Add stdint.
23414         * modules/areadlink-with-size (Depends-on): Likewise.
23415         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23416         gives NULL; drop sys/types, since unistd gives size_t; and add
23417         stdint for SIZE_MAX.
23418         (SIZE_MAX): Rely on headers.
23419         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23420         and add stdint.
23421         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23422         (SIZE_MAX): Likewise.
23423         (INITIAL_BUF_SIZE): Turn into enum.
23424         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23425
23426 2009-10-08  Jim Meyering  <meyering@redhat.com>
23427
23428         areadlinkat: avoid compilation failure
23429         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23430         Fix typo in comment.
23431
23432 2009-10-07  Eric Blake  <ebb9@byu.net>
23433
23434         areadlinkat-with-size: new module
23435         * modules/areadlinkat-with-size: New module.
23436         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23437         * lib/areadlink.h (areadlinkat): Declare it.
23438         * MODULES.html.sh (File system functions): Mention it.
23439         * modules/areadlinkat-with-size-tests: New test.
23440         * tests/test-areadlinkat-with-size.c: New file.
23441
23442         xreadlinkat: new module
23443         * modules/xreadlinkat: New module.
23444         * lib/xreadlinkat.c (xreadlinkat): New file.
23445         * lib/xreadlink.h (xreadlinkat): Declare it.
23446         * MODULES.html.sh (File system functions): Mention it.
23447
23448         areadlinkat: new module
23449         * lib/at-func.c (FUNC_FAIL): New define.
23450         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23451         * modules/areadlinkat: New module.
23452         * lib/linkat.c (areadlinkat): Move...
23453         * lib/areadlinkat.c (areadlinkat): ...to new file.
23454         * lib/areadlink.h (areadlinkat): Declare it.
23455         * modules/linkat (Depends-on): Add areadlinkat.
23456         * MODULES.html.sh (File system functions): Mention it.
23457         * modules/areadlinkat-tests: New test.
23458         * tests/test-areadlinkat.c: New file.
23459
23460         areadlink, areadlink-with-size: add tests
23461         * modules/areadlink-tests: New test.
23462         * modules/areadlink-with-size-tests: Likewise.
23463         * tests/test-areadlink.h: New file.
23464         * tests/test-areadlink.c: Likewise.
23465         * tests/test-areadlink-with-size.c: Likewise.
23466
23467         maint: minor cleanups
23468         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23469         _UNUSED_PARAMETER_ instead.
23470         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23471         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23472         * modules/linkat-tests (Files): Distribute test-link.h.
23473
23474         openat, utimens: whitespace cleanup
23475         * lib/openat.c: Prefer space throughout, rather than mix of 8
23476         spaces vs. tabs.
23477         * lib/at-func.c: Likewise.
23478         * lib/utimens.c: Likewise.
23479
23480         openat: avoid using wrong fd
23481         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23482         working directory chooses same fd.
23483         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23484
23485         mkdir, mkdirat: fix cygwin 1.5.x bug
23486         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23487         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23488         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23489         bug.
23490         (gl_PREREQ_MKDIR): Delete unused macro.
23491         * modules/mkdir (Files): Track file rename.
23492         (configure.ac): Update macro name.
23493         * modules/openat (Depends-on): Add mkdir.
23494         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23495
23496         mkdir, mkdirat: add tests
23497         * modules/mkdir-tests: New test.
23498         * tests/test-mkdir.h: New file.
23499         * tests/test-mkdir.c: Likewise.
23500         * tests/test-mkdirat.c: Likewise.
23501         * modules/openat-tests (Files): Add new files.
23502         (Makefile.am): Run new test.
23503
23504 2009-10-06  Eric Blake  <ebb9@byu.net>
23505
23506         doc: tweak *at function documentation
23507         * doc/posix-functions/faccessat.texi (faccessat): Mention
23508         known issue with replacement.
23509         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23510         * doc/posix-functions/linkat.texi (linkat): Likewise.
23511         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23512         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23513         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23514         * doc/posix-functions/renameat.texi (renameat): Likewise.
23515         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23516
23517         openat: fix GNU/Hurd bug in unlinkat
23518         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23519         broken.
23520         * doc/posix-functions/unlink.texi (unlink): Document this.
23521         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23522
23523         fdopendir: fix GNU/Hurd bug
23524         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23525         allowing non-directory fds.
23526         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23527         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23528         * modules/dirent (Makefile.am): Substitute it.
23529         * lib/dirent.in.h (fdopendir): Declare replacement.
23530         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23531         * tests/test-fdopendir.c (main): Test something other than
23532         /dev/null, since on Hurd that behaves like a directory.
23533
23534         test-symlink: port to GNU/Hurd
23535         * tests/test-symlink.h (test_symlink): Relax expected errno.
23536
23537         doc: tweak more cygwin information
23538         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23539         now compatible with glibc.
23540         * doc/posix-functions/getopt.texi (getopt): Likewise.
23541
23542         getopt-gnu: add another test
23543         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23544         guarantee behavior relied on by m4.
23545         * tests/test-getopt.c (main): Use it.
23546         * modules/getopt-posix-tests (Depends-on): Add setenv.
23547         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23548
23549         getopt: fix compilation on darwin
23550         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23551         include.
23552         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23553         Reported by Ludovic Courtès.
23554
23555 2009-10-06  Bruno Haible  <bruno@clisp.org>
23556
23557         * modules/size_max (Description): Discourage its use.
23558         Reported by Simon Josefsson.
23559
23560 2009-10-06  Jim Meyering  <meyering@redhat.com>
23561
23562         linkat: avoid compilation failure
23563         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23564
23565 2009-10-05  Eric Blake  <ebb9@byu.net>
23566
23567         linkat: support Linux 2.6.17
23568         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23569         linkat on Linux, but allow cache variable override.
23570         * lib/linkat.c (rpl_linkat): Define override.
23571         * modules/linkat (Depends-on): Add symlinkat.
23572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23573         * modules/unistd (Makefile.am): Substitute it.
23574         * lib/unistd.in.h (linkat): Declare replacement.
23575         Reported by Pádraig Brady.
23576
23577         quotearg: port test to systems with C.UTF-8 locale
23578         * tests/test-quotearg.c (struct result_strings): Add another
23579         member, differentiating between C.ASCII and C.UTF-8 handling.
23580         (compare_strings): Add parameter.
23581         (main): Adjust all callers.
23582
23583         getopt: avoid clash with FreeBSD _getopt_internal
23584         * lib/getopt.in.h (_getopt_internal): Override the name.
23585         * lib/getopt_int.h (includes): Pick up any overrides.
23586         Reported by Reuben Thomas.
23587
23588         hash: allow C89 compilation
23589         * lib/hash.c (check_tuning): Move declaration before statement.
23590         Reported by Reuben Thomas.
23591
23592 2009-10-05  Karl Berry  <karl@gnu.org>
23593
23594         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23595
23596 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23597             Bruno Haible  <bruno@clisp.org>
23598
23599         * lib/uname.c (uname): Use a table-driven algorithm to compute
23600         Windows NT versions.
23601
23602 2009-10-04  Bruno Haible  <bruno@clisp.org>
23603
23604         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23605         program_invocation_short_name.
23606         * modules/progname (configure.ac): Test for presence of
23607         program_invocation_short_name.
23608         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23609
23610 2009-10-04  Bruno Haible  <bruno@clisp.org>
23611
23612         * lib/progname.c (set_program_name): Fix comment.
23613         Reported by Jim Meyering.
23614
23615 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23616             Bruno Haible  <bruno@clisp.org>
23617
23618         * lib/uname.c: Include <string.h>.
23619         (uname): Do only one call to GetVersionEx in the common case.
23620
23621 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23622             Bruno Haible  <bruno@clisp.org>
23623
23624         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23625         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23626         (uname): Add support for Windows CE and various non-x86 CPU types.
23627
23628 2009-10-03  Bruno Haible  <bruno@clisp.org>
23629
23630         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23631         invocation to tests/configure.ac.
23632         Reported by Ian Beckwith <ianb@erislabs.net>.
23633
23634 2009-10-02  Eric Blake  <ebb9@byu.net>
23635
23636         fchdir: avoid compiler warning
23637         * lib/fchdir.c (canonicalize_file_name)
23638         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23639
23640         test-open: support mingw errno values
23641         * tests/test-open.h (test_open): Relax test.
23642         * tests/test-fopen.h (test_fopen): Likewise.
23643         * tests/test-openat-safer.c (main): Likewise.
23644
23645         open: fix opening directory on mingw
23646         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23647
23648         test-open: on GNU/Hurd, /dev/null is a directory
23649         * tests/test-fopen.h (main): Rename...
23650         (test_fopen): ...to this.  Use a guaranteed non-directory when
23651         confirming open behavior on trailing slash.
23652         * tests/test-openat-safer.c (main): Likewise.
23653         * tests/test-open.h (main): Likewise....
23654         (test_open): ...to this.
23655         * tests/test-fopen.c (main): Adjust caller.
23656         * tests/test-fopen-safer.c (main): Likewise.
23657         * tests/test-open.c (main): Likewise.
23658         * tests/test-fcntl-safer.c (main): Likewise.
23659         Reported by Samuel Thibault.
23660
23661         rename, fchdir: don't ignore chdir failure
23662         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23663         * lib/rename.c (rpl_rename) [W32]: Likewise.
23664         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23665         an empty destination directory if source cannot be renamed,
23666         although there is still possibility for failure.
23667         * doc/posix-functions/rename.texi (rename): Document the race.
23668         Reported by Jim Meyering.
23669
23670         maint: cleanup whitespace in recent commits
23671         * lib/rename.c (rpl_rename): Remove tabs.
23672         * tests/test-link.h (test_link): Likewise.
23673         * lib/fchdir.c (get_name): Likewise.
23674         Reported by Jim Meyering.
23675
23676 2009-10-02  Ben Pfaff  <blp@gnu.org>
23677
23678         relocatable-prog-wrapper: Add missing dependency on
23679         double-slash-root.
23680         * modules/relocatable-prog-wrapper: Add dependency.
23681         Reported by Ian Beckwith <ianb@erislabs.net>.
23682
23683 2009-10-02  Eric Blake  <ebb9@byu.net>
23684
23685         renameat: fix Solaris bugs
23686         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23687         needed fixing.
23688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23689         * modules/stdio (Makefile.am): Substitute it.
23690         * lib/stdio.in.h (renameat): Declare replacement.
23691         * lib/renameat.c (rpl_renameat): Implement fix.
23692
23693         renameat: new module
23694         * modules/renameat: New file.
23695         * lib/renameat.c (renameat): Likewise.
23696         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23698         * modules/stdio (Makefile.am): Substitute them.
23699         * lib/stdio.in.h (renameat): Declare it.
23700         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23701         * doc/posix-functions/renameat.texi (renameat): Likewise.
23702         * modules/renameat-tests: New test.
23703         * tests/test-renameat.c: Likewise.
23704
23705         rename: fix mingw bugs
23706         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23707         directory overwrite bugs.
23708
23709         rename: fix another cygwin 1.5 bug
23710         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23711         checks.
23712         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23713         unnecessary cygwin workarounds.  Also work around bug with moving
23714         full directory onto an empty one.
23715         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23716
23717         rename-dest-slash: merge into rename module
23718         * modules/rename-dest-slash (Status): Mark obsolete.
23719         (Depends-on): Add rename.
23720         (Files): Let rename do it all.
23721         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23722         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23723         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23724         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23725         * lib/rename.c (rpl_rename): Update comments.
23726
23727         rename: fix cygwin 1.5.x bugs
23728         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23729         * lib/rename.c (rpl_rename): Work around them.
23730         * modules/rename (Depends-on): Add same-inode.
23731
23732         rename: fix Solaris 10 bug
23733         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23734         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23735         was the only bug.
23736
23737         rename: fix Solaris 9 bug
23738         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23739         on non-directory.  Avoid calling exit.
23740         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23741         strdup.
23742         * modules/rename-tests (Depends-on): Drop lstat.
23743         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23744         (gl_PREREQ_RENAME): Delete unused macro.
23745
23746         rename-dest-slash: fix NetBSD bug
23747         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23748         links.
23749         * modules/rename-dest-slash (Depends-on): Add same-inode.
23750
23751         rename-tests: new test, exposes several platform bugs
23752         * modules/rename-tests: New file.
23753         * tests/test-rename.h: Likewise.
23754         * tests/test-rename.c: Likewise.
23755         * doc/posix-functions/rename.texi (rename): Improve documentation,
23756         including bugs that will eventually be fixed in gnulib.
23757
23758 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23759
23760         * lib/uname.c: Include <stdlib.h>
23761         (uname): Assume version info is available.
23762
23763 2009-10-02  Jim Meyering  <meyering@redhat.com>
23764
23765         gnu-web-doc-update: correct --help output
23766         * build-aux/gnu-web-doc-update: Make --help output relevant.
23767
23768         gnu-web-doc-update: add standard options
23769         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23770
23771         gnu-web-doc-update: New module.
23772         Use this script to automatically update the on-line web documentation
23773         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23774         * modules/gnu-web-doc-update: New file, from coreutils.
23775         * build-aux/gnu-web-doc-update: New script.
23776
23777 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23778
23779         link: LoadLibrary is not needed.
23780         * lib/link.c: Use GetModuleHandle.
23781
23782 2009-10-01  Eric Blake  <ebb9@byu.net>
23783
23784         getopt: bump serial number
23785         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23786         change.
23787
23788         tests: tighten link, rmdir, and remove tests
23789         * tests/test-link.h (includes): No need to use <config.h> here.
23790         Clean up if directory hard link was created, otherwise test for
23791         trailing '.'.
23792         * tests/test-linkat.c (main): Simplify.
23793         * tests/test-remove.c (main): Enhance test for trailing '.'.
23794         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23795
23796 2009-10-01  Jim Meyering  <meyering@redhat.com>
23797
23798         maint.mk: requiring "make major" was annoying, for a "minor" release.
23799         What is intended is "stable", to contrast with alpha and beta,
23800         so require "make stable", not "make major".
23801         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23802         (get_tool_versions): Likewise.
23803         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23804
23805 2009-09-30  Ben Pfaff  <blp@gnu.org>
23806
23807         Fix broken build of replacement for Windows tmpfile().
23808         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23809         flags argument added along with the 'mkostemp' module.
23810
23811 2009-09-28  Bruno Haible  <bruno@clisp.org>
23812
23813         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23814         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23815         to 'remove_elt'.
23816         (gl_list_remove): Update.
23817         * lib/gl_list.c (gl_list_remove): Update.
23818         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23819         to 'remove_elt'.
23820         (gl_oset_remove): Update.
23821         * lib/gl_list.c (gl_oset_remove): Update.
23822         Reported by Eric Blake.
23823
23824 2009-09-28  Eric Blake  <ebb9@byu.net>
23825
23826         doc: mention yet more cygwin 1.7 status
23827         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23828         cygwin.
23829         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23830         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23831
23832         argp: fix test failure
23833         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23834         that are not upper-case.  Pass correct range to tolower.
23835
23836 2009-09-27  Jim Meyering  <meyering@redhat.com>
23837
23838         test-yesno: work around sparc-dash here-document infelicity
23839         Without this change, the literal \177 byte in a here document
23840         would make dash 0.5.5.1-3 access uninitialized memory.
23841         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23842         Instead, use a marker, "@", and filter through tr to create the desired
23843         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23844
23845 2009-09-27  Bruno Haible  <bruno@clisp.org>
23846
23847         Disable untested support for new flavours of ACLs on AIX.
23848         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23849         progress.
23850         * lib/set-mode-acl.c (qset_acl): Likewise.
23851
23852 2008-12-07  Bruno Haible  <bruno@clisp.org>
23853
23854         Add support for new flavours of ACLs on AIX. (Untested.)
23855         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23856         (file_has_acl): Add support for newer AIX.
23857         * lib/set-mode-acl.c (qset_acl): Likewise.
23858         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23859         Rainer Tammer <tammer@tammer.net>.
23860
23861 2009-09-26  Eric Blake  <ebb9@byu.net>
23862
23863         argp: fix compilation of getopt
23864         * lib/getopt.in.h (includes): Use different guard than glibc.
23865         Reported by Sergey Poznyakoff.
23866
23867         doc: mention more cygwin 1.7 status
23868         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23869         bug.
23870         * doc/posix-functions/execl.texi (execl): Likewise.
23871         * doc/posix-functions/execle.texi (execle): Likewise.
23872         * doc/posix-functions/execlp.texi (execlp): Likewise.
23873         * doc/posix-functions/execv.texi (execv): Likewise.
23874         * doc/posix-functions/execve.texi (execve): Likewise.
23875         * doc/posix-functions/execvp.texi (execvp): Likewise.
23876         * doc/glibc-functions/canonicalize_file_name.texi
23877         (canonicalize_file_name): Cygwin 1.7 now provides this.
23878         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23879         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23880         on AT_SYMLINK_NOFOLLOW.
23881
23882 2009-09-24  Eric Blake  <ebb9@byu.net>
23883
23884         test-linkat: make test more robust
23885         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23886
23887         getopt: fix inclusion guards for cygwin
23888         * modules/getopt-posix (Depends-on): Add include-next.
23889         (Makefile.am): Substitute more items in replacement header.
23890         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23891         <getopt.h>.
23892         * lib/getopt.in.h (includes): Use split inclusion guard, and
23893         prefer <getopt.h> over include <unistd.h> when one is present.
23894         (option): Also override name of 'struct option'.
23895
23896         same-inode: revert prior change; it is not yet ready
23897         * NEWS: Undo mention of this change.
23898         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23899         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23900         * lib/cycle-check.c (cycle_check): Likewise.
23901         * lib/same.c (same_name): Likewise.
23902         * lib/at-func2.c (at_func2): Likewise.
23903
23904 2009-09-23  Eric Blake  <ebb9@byu.net>
23905
23906         linkat: new module
23907         * modules/linkat: New file.
23908         * lib/at-func2.c (at_func2): Likewise.
23909         * lib/linkat.c (linkat): Likewise.
23910         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23911         * lib/openat-priv.h (at_func2): Add declaration.
23912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23913         * modules/unistd (Makefile.am): Substitute them.
23914         * lib/unistd.in.h (linkat): Declare it.
23915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23916         * doc/posix-functions/linkat.texi (linkat): Likewise.
23917         * doc/posix-functions/link.texi (link): Tweak wording.
23918         * tests/test-link.c (main): Move guts...
23919         * tests/test-link.h (test_link): ...into new file.
23920         * modules/linkat-tests: New test.
23921         * tests/test-linkat.c: Likewise.
23922         * modules/link-tests (Files): Ship new file.
23923         (Depends-on): Add stdbool.
23924
23925         dirname: add library-safe mdir_name
23926         * lib/dirname.h (mdir_name): New prototype.
23927         * lib/dirname.c (dir_name): Move guts...
23928         (mdir_name): ...to new function that avoids xalloc_die.
23929
23930         fchdir: another mingw fix
23931         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23932         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23933         on mingw (where it has not yet been ported), and make it optional
23934         elsewhere.
23935         (_gl_register_fd): Use it.
23936
23937         same-inode: make SAME_INODE tri-state, to port to mingw
23938         * NEWS: Mention this change.
23939         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23940         st_ino always being 0.
23941         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23942         * lib/cycle-check.c (cycle_check): Likewise.
23943         * lib/same.c (same_name): Likewise.
23944
23945         lstat: avoid mingw compilation error
23946         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23947         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23948         lstat ourselves.
23949         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23950         was adequate.
23951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23952         the checks for lstat.
23953         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23954
23955         link: fix test failure on Solaris 9
23956         * lib/link.c (rpl_link): Don't assume link will catch bogus
23957         trailing slash on source.
23958
23959         test-symlinkat: enhance test
23960         * tests/test-readlink.c (main): Move guts...
23961         * tests/test-readlink.h (test_readlink): ...into new file.
23962         * tests/test-symlink.c (main): Move guts...
23963         * tests/test-symlink.h (test_symlink): ...into new file.
23964         * tests/test-symlinkat.c (main): Use new files for further
23965         coverage.
23966         (do_symlink, do_readlink): New helper functions.
23967         * modules/symlink-tests (Files): Ship new file.
23968         (Depends-on): Add stdbool.
23969         * modules/readlink-tests (Files): Ship new file.
23970         (Depends-on): Add stdbool.
23971         * modules/symlinkat-tests (Files): Use new files.
23972
23973 2009-09-23  Eric Blake  <ebb9@byu.net>
23974
23975         readlink: document portability issue with symlink length
23976         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23977         systems have bogus st_size on symlinks, and mention the
23978         areadlink-with-size module.
23979         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23980         * doc/posix-functions/readlink.texi (readlink): Mention the
23981         areadlink module, and ERANGE failure.
23982         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23983         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23984
23985         readlink: fix Solaris 9 bug with trailing slash
23986         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23987         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23988         * doc/posix-functions/readlink.texi (readlink): Document this.
23989         * modules/readlink-tests: New test.
23990         * tests/test-readlink.c: Likewise.
23991
23992         readlink: fix cygwin 1.5.x bug with return type
23993         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23994         * lib/unistd.in.h (readlink): Use ssize_t.
23995         * lib/readlink.c (readlink): Likewise.
23996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23997         * modules/unistd (Makefile.am): Substitute it.
23998         * lib/unistd.in.h (readlink): Declare replacement.
23999         * doc/posix-functions/readlink.texi (readlink): Document this.
24000
24001         symlink: use throughout gnulib
24002         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24003         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24004         symlink is not used.
24005         * modules/symlinkat (Depends-on): Add symlink.
24006         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24007         * modules/canonicalize-tests (Depends-on): Likewise.
24008         * modules/lstat-tests (Depends-on): Likewise.
24009         * modules/openat-tests (Depends-on): Likewise.
24010         * modules/remove-tests (Depends-on): Likewise.
24011         * modules/rmdir-tests (Depends-on): Likewise.
24012         * modules/unlink-tests (Depends-on): Likewise.
24013         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24014         * tests/test-canonicalize.c (symlink): Likewise.
24015         * tests/test-fstatat.c (symlink): Likewise.
24016         * tests/test-lstat.c (symlink): Likewise.
24017         * tests/test-remove.c (symlink): Likewise.
24018         * tests/test-rmdir.c (symlink): Likewise.
24019         * tests/test-unlink.c (symlink): Likewise.
24020         * tests/test-unlinkat.c (symlink): Likewise.
24021
24022         symlink: new module, for Solaris 9 bug
24023         * modules/symlink: New file.
24024         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24025         * lib/symlink.c: Likewise.
24026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24027         * modules/unistd (Makefile.am): Substitute them.
24028         * lib/unistd.in.h (symlink): Declare replacement.
24029         * MODULES.html.sh (File system functions): Mention it.
24030         * doc/posix-functions/symlink.texi (symlink): Likewise.
24031         * modules/symlink-tests: New test.
24032         * tests/test-symlink.c: Likewise.
24033
24034 2009-09-23  Bruno Haible  <bruno@clisp.org>
24035
24036         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24037         when needed.
24038         Test case: gnulib-tool --import --with-tests atexit inttypes.
24039         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24040
24041 2009-09-23  Bruno Haible  <bruno@clisp.org>
24042
24043         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24044         subcommand, not in a subshell.
24045
24046 2009-09-22  Eric Blake  <ebb9@byu.net>
24047
24048         unistd: sort replacement declarations
24049         * lib/unistd.in.h: Sort declarations.
24050
24051         open, openat: minor optimization
24052         * lib/open.c (open): If open succeeded, len is non-zero.
24053         * lib/openat.c (rpl_openat): Likewise.
24054
24055         link-follow: ensure correct result
24056         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24057         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24058         distinguish between possible failures.
24059
24060 2009-09-21  Eric Blake  <ebb9@byu.net>
24061
24062         fts: avoid compiler warning
24063         * lib/fts.c (dirent_inode_sort_may_be_useful)
24064         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24065
24066 2009-09-19  Bruno Haible  <bruno@clisp.org>
24067
24068         * lib/progreloc.c (canonicalize_file_name): New declaration.
24069
24070 2009-09-19  Eric Blake  <ebb9@byu.net>
24071
24072         link: fix quoting
24073         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24074
24075         openat: fix openat bugs on Solaris 9
24076         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24077         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24078         * modules/openat (Depends-on): Add open.
24079         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24080         * modules/fcntl-h (Makefile.am): Substitute it.
24081         * lib/fcntl.in.h (openat): Declare replacement.
24082         * doc/posix-functions/openat.texi (openat): Document this.
24083
24084         openat: move fstatat and unlinkat into correct files
24085         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24086         compiled.
24087         * lib/openat.c (fstatat, unlinkat): Move...
24088         * lib/fstatat.c (fstatat): ...into correct files.
24089         * lib/unlinkat.c (unlinkat): Likewise.
24090
24091         openat: fix unlinkat bugs on Solaris 9
24092         * lib/unlinkat.c (unlinkat): New file.
24093         * modules/openat (Depends-on): Add unlink.
24094         (Files): Distribute it.
24095         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24096         trailing slash behavior is broken.
24097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24098         * modules/unistd (Makefile.am): Substitute it.
24099         * lib/unistd.in.h (unlinkat): Declare replacement.
24100         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24101
24102         openat: fix fstatat bugs on Solaris 9
24103         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24104         stat.
24105         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24106
24107         test-unlinkat: enhance test, to expose Solaris 9 bug
24108         * tests/test-unlink.c (main): Factor guts...
24109         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24110         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24111         * tests/test-rmdir.c (main): Adjust caller.
24112         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24113         (unlinker): New helper function.
24114         (rmdirat): Enhance check.
24115         * modules/rmdir-tests (Depends-on): Add stdbool.
24116         * modules/unlink-tests (Depends-on): Likewise.
24117         (Files): Add test-unlink.h.
24118         * modules/openat-tests (Files): Likewise.
24119         (Depends-on): Add unlinkdir.
24120
24121         test-fstatat: new test, to expose Solaris 9 bugs
24122         * tests/test-stat.c (main): Factor guts...
24123         * tests/test-stat.h (test_stat_func): ...into new file.
24124         * tests/test-lstat.c (main): Factor guts...
24125         * tests/test-lstat.h (test_lstat_func): ...into new file.
24126         * tests/test-fstatat.c: New file.
24127         * modules/stat-tests (Files): Add test-stat.h.
24128         * modules/lstat-tests (Files): Add test-lstat.h.
24129         (Depends-on): Add stdbool.
24130         * modules/openat-tests (Depends-on): Add pathmax.
24131         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24132         (Makefile.am): Run new test.
24133
24134         remove: new module, for mingw and Solaris 9 bugs
24135         * modules/remove: New file.
24136         * lib/remove.c: Likewise.
24137         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24139         * modules/stdio (Makefile.am): Use them.
24140         * lib/stdio.in.h (remove): Declare replacement.
24141         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24142         * doc/posix-functions/remove.texi (remove): Likewise.
24143         * modules/remove-tests: New test.
24144         * tests/test-remove.c: Likewise.
24145
24146         unlink: new module, for Solaris 9 bug
24147         * modules/unlink: New file.
24148         * lib/unlink.c: Likewise.
24149         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24151         * modules/unistd (Makefile.am): Use them.
24152         * lib/unistd.in.h (stat): Declare replacement.
24153         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24154         * doc/posix-functions/unlink.texi (unlink): Likewise.
24155         * modules/unlink-tests: New test.
24156         * tests/test-unlink.c: Likewise.
24157
24158         lstat: fix Solaris 9 bug
24159         * lib/lstat.c (lstat): Also check for trailing slash on
24160         non-symlink, non-directories.  Use stat module to simplify logic.
24161         * doc/posix-functions/lstat.texi (lstat): Document it.
24162         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24163         (configure.ac): Check for symlink.
24164         * tests/test-lstat.c (main): Add more tests.
24165
24166         stat: add as dependency to other modules
24167         * modules/chown (Depends-on): Add stat.
24168         * modules/euidaccess (Depends-on): Likewise.
24169         * modules/fchdir (Depends-on): Likewise.
24170         * modules/isdir (Depends-on): Likewise.
24171         * modules/link (Depends-on): Likewise.
24172         * modules/lstat (Depends-on): Likewise.
24173         * modules/mkdir-p (Depends-on): Likewise.
24174         * modules/modechange (Depends-on): Likewise.
24175         * modules/open (Depends-on): Likewise.
24176         * modules/readlink (Depends-on): Likewise.
24177         * modules/same (Depends-on): Likewise.
24178
24179         stat: fix Solaris 9 bug
24180         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24181         slash.
24182         * lib/stat.c (rpl_stat): Work around it.
24183         * doc/posix-functions/stat.texi (stat): Update documentation.
24184
24185         stat: new module, for mingw bug
24186         * modules/stat: New file.
24187         * lib/stat.c: Likewise.
24188         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24190         * modules/sys_stat (Makefile.am): Use them.
24191         * lib/sys_stat.in.h (stat): Declare replacement.
24192         * lib/openat.c (fstatat): Deal with lstat and stat being function
24193         macros.
24194         * modules/openat (Depends-on): Add inline.
24195         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24196         * doc/posix-functions/stat.texi (stat): Likewise.
24197         * modules/stat-tests: New test.
24198         * tests/test-stat.c: Likewise.
24199
24200 2009-09-19  Jim Meyering  <meyering@redhat.com>
24201
24202         syntax-check: detect unnecessary inclusion of canonicalize.h
24203         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24204
24205 2009-09-19  Eric Blake  <ebb9@byu.net>
24206
24207         canonicalize-lgpl: adjust clients to use correct header
24208         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24209         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24210         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24211         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24212         * lib/progreloc.c (includes): Likewise.
24213
24214 2009-09-19  Jim Meyering  <meyering@redhat.com>
24215
24216         test-posixtm.c: correct a comment
24217         * tests/test-posixtm.c: Correct first-line comment.
24218         Spotted by Eric Blake.
24219
24220 2009-09-16  Jim Meyering  <meyering@redhat.com>
24221
24222         posixtm-tests: make T const-correct; add a test case
24223         * tests/test-posixtm.c (T): Declare const.
24224         Add a test for -(2^31+1).
24225         Remove useless can-succeed-only-in-2002 test.
24226
24227         posixtm-tests: adjust the sole failing test
24228         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24229         expected output matches what mktime now produces.  Cross-checked via
24230         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24231
24232         posixtm: move #ifdef'd tests into a new module
24233         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24234         * tests/test-posixtm.c: ... this new file.
24235         * modules/posixtm-tests: New module.
24236
24237 2009-09-19  Eric Blake  <ebb9@byu.net>
24238
24239         openat: simplify use of at-func.c
24240         * lib/at-func.c (includes): Include prerequisites here, to
24241         simplify requirements on client files.
24242         * lib/openat-priv.h: Add double-inclusion guard.
24243         * lib/faccessat.c (includes): Simplify.
24244         * lib/fchmodat.c (includes): Likewise.
24245         * lib/fchownat.c (includes): Likewise.
24246         * lib/mkdirat.c (includes): Likewise.
24247         * lib/mkfifoat.c (includes): Likewise.
24248         * lib/symlinkat.c (includes): Likewise.
24249
24250         openat: allow return of fd 0
24251         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24252         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24253         unistd-safer.
24254         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24255         <fcntl.h>; this module does not leak fds.
24256         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24257         must be allowed to return 0, leaving openat_safer to add the
24258         safety.
24259         (openat_permissive): Avoid writing to just-opened fd 2 if
24260         restoring the current directory fails.
24261         * lib/openat-die.c (openat_restore_fail): Add comment.
24262         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24263         (save_cwd): Guarantee safe fd, but without use of open_safer.
24264         * tests/test-openat.c: New test.
24265         * modules/openat-tests (Files, Makefile.am): Distribute and build
24266         new file.
24267
24268         relocatable-prog-wrapper: fix build
24269         * modules/relocatable-prog-wrapper (Files): Update name of
24270         canonicalize m4 file, broken on 2009-09-17.
24271         Reported by emad hajjar <aleppos@hotmail.com>.
24272
24273 2009-09-19  Bruno Haible  <bruno@clisp.org>
24274
24275         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24276         * lib/safe-alloc.c: Likewise.
24277         Reported by Ian Beckwith <ianb@erislabs.net>.
24278
24279 2009-09-18  Bruno Haible  <bruno@clisp.org>
24280
24281         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24282         Reported by <erobles@sensacd.com.mx>.
24283
24284 2009-09-17  Eric Blake  <ebb9@byu.net>
24285
24286         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24287         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24288         slashes when checking if last component is missing.
24289         * tests/test-canonicalize.c (main): Test this.
24290
24291         canonicalize, canonicalize-lgpl: honor // if distinct from /
24292         * modules/canonicalize (Files): Add double-slash-root.m4.
24293         * modules/canonicalize-lgpl (Files): Likewise.
24294         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24295         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24296         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24297         fallback definition.
24298         (canonicalize_filename_mode): Use it to protect //.
24299         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24300         (__realpath): Likewise.
24301         * tests/test-canonicalize.c (main): Test this.
24302         * tests/test-canonicalize-lgpl.c (main): Likewise.
24303         * modules/canonicalize-tests (Depends-on): Add same-inode.
24304         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24305
24306         canonicalize-lgpl: fix glibc bug with trailing slash
24307         * m4/canonicalize-lgpl.m4: Move contents...
24308         * m4/canonicalize.m4: ...here.
24309         (gl_CANONICALIZE_LGPL): Factor realpath check...
24310         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24311         glibc 2.3.5 bug, fixed 2005-04-27.
24312         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24313         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24314         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24315         * modules/canonicalize-lgpl (Files): Manage file rename.
24316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24317         * modules/stdlib (Makefile.am): Substitute witness.
24318         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24319         is needed.
24320         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24321         replacement is required.
24322         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24323         * doc/glibc-functions/canonicalize_file_name.texi
24324         (canonicalize_file_name): Document this.
24325         * doc/posix-functions/realpath.texi (realpath): Likewise.
24326
24327         canonicalize-lgpl: reject non-directory with trailing slash
24328         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24329         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24330         catches failures in glibc 2.3.5.
24331         * tests/test-canonicalize.c (main): Likewise.
24332
24333         canonicalize-lgpl: use native realpath if it works
24334         * lib/canonicalize-lgpl.c (realpath): Guard with
24335         FUNC_REALPATH_WORKS.
24336         * lib/stdlib.in.h (realpath): Make declaration optional based on
24337         HAVE_REALPATH.
24338         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24339         native realpath works.
24340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24341         * modules/stdlib (Makefile.am): Substitute witness.
24342
24343         canonicalize, canonicalize-lgpl: use <stdlib.h>
24344         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24345         (Include): Mention <stdlib.h>.
24346         (configure.ac): Mention functions we provide.
24347         * modules/canonicalize (configure.ac): Likewise.
24348         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24349         realpath if canonicalize_file_name is missing.
24350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24351         * modules/stdlib (Makefile.am): Substitute witnesses.
24352         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24353         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24354         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24355         * NEWS: Document this.
24356         * doc/glibc-functions/canonicalize_file_name.texi
24357         (canonicalize_file_name): Likewise.
24358         * doc/posix-functions/realpath.texi (realpath): Likewise.
24359         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24360
24361         test-canonicalize: consolidate into single C program
24362         * tests/test-canonicalize.sh: Delete; move setup into...
24363         * tests/test-canonicalize.c (main): ...the program, making it
24364         easier to run in debugger.  Add some tests.
24365         * modules/canonicalize-tests (Files): Remove unused file.
24366         (Depends-on): Add progname.
24367         (configure.ac, Makefile.am): Simplify.
24368
24369         test-canonicalize-lgpl: consolidate into single C program
24370         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24371         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24372         easier to run in debugger.  Add some tests.
24373         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24374         (configure.ac, Makefile.am): Simplify.
24375
24376         canonicalize: avoid resolvepath
24377         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24378         unnecessary checks.
24379         * lib/canonicalize.c (includes): Simplify.
24380         (canonicalize_file_name): Drop resolvepath implementation.
24381         * modules/canonicalize (Depends-on): Drop filenamecat.
24382
24383         canonicalize: don't lose errno
24384         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24385         over calls to free.
24386
24387         canonicalize: simplify errno handling
24388         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24389         assignment.
24390
24391         canonicalize, canonicalize-lgpl: update module dependencies
24392         * modules/canonicalize (Depends-on): Add extensions, lstat,
24393         pathmax, stdlib.
24394         (Files): Drop pathmax.h.
24395         (configure.ac): Adjust macro name.
24396         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24397         lstat, stdlib, sys_stat.
24398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24399         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24400         extensions.
24401         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24402         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24403         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24404         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24405         declaration, if available.
24406         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24407         we can rely on the readlink module.
24408         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24409         (includes): Use <unistd.h> unconditionally.
24410
24411 2009-09-17  Eric Blake  <ebb9@byu.net>
24412
24413         maint: make Include sections of modules consistent
24414         * modules/alloca: Use only header name; no need to list #include.
24415         * modules/alloca-opt: Likewise.
24416         * modules/arpa_inet: Likewise.
24417         * modules/canon-host: Likewise.
24418         * modules/configmake: Likewise.
24419         * modules/dirent: Likewise.
24420         * modules/eealloc: Likewise.
24421         * modules/environ: Likewise.
24422         * modules/fchdir: Likewise.
24423         * modules/fcntl: Likewise.
24424         * modules/fcntl-h: Likewise.
24425         * modules/gethrxtime: Likewise.
24426         * modules/gettime: Likewise.
24427         * modules/ignore-value: Likewise.
24428         * modules/inet_ntop: Likewise.
24429         * modules/inet_pton: Likewise.
24430         * modules/inttypes: Likewise.
24431         * modules/isnand-nolibm: Likewise.
24432         * modules/isnanf-nolibm: Likewise.
24433         * modules/mbchar: Likewise.
24434         * modules/mbfile: Likewise.
24435         * modules/mbiter: Likewise.
24436         * modules/mbuiter: Likewise.
24437         * modules/netdb: Likewise.
24438         * modules/netinet_in: Likewise.
24439         * modules/nproc: Likewise.
24440         * modules/pagealign_alloc: Likewise.
24441         * modules/poll: Likewise.
24442         * modules/printf-frexp: Likewise.
24443         * modules/pthread: Likewise.
24444         * modules/putenv: Likewise.
24445         * modules/random_r: Likewise.
24446         * modules/relocatable-prog: Likewise.
24447         * modules/search: Likewise.
24448         * modules/select: Likewise.
24449         * modules/selinux-h: Likewise.
24450         * modules/settime: Likewise.
24451         * modules/signal: Likewise.
24452         * modules/size_max: Likewise.
24453         * modules/socklen: Likewise.
24454         * modules/ssize_t: Likewise.
24455         * modules/stdarg: Likewise.
24456         * modules/stdbool: Likewise.
24457         * modules/stddef: Likewise.
24458         * modules/stdint: Likewise.
24459         * modules/stdio: Likewise.
24460         * modules/stdlib: Likewise.
24461         * modules/string: Likewise.
24462         * modules/strings: Likewise.
24463         * modules/sys_file: Likewise.
24464         * modules/sys_ioctl: Likewise.
24465         * modules/sys_select: Likewise.
24466         * modules/sys_socket: Likewise.
24467         * modules/sys_stat: Likewise.
24468         * modules/sys_time: Likewise.
24469         * modules/sys_times: Likewise.
24470         * modules/sys_utsname: Likewise.
24471         * modules/sys_wait: Likewise.
24472         * modules/sysexits: Likewise.
24473         * modules/time: Likewise.
24474         * modules/times: Likewise.
24475         * modules/tmpfile: Likewise.
24476         * modules/trim: Likewise.
24477         * modules/unistd: Likewise.
24478         * modules/wchar: Likewise.
24479         * modules/wctype: Likewise.
24480
24481 2009-09-17  Bruno Haible  <bruno@clisp.org>
24482
24483         Make getdate.y compile on QNX and NetBSD 5 / i386.
24484         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24485         TIME_T_FITS_IN_LONG_INT.
24486         * lib/getdate.y (long_time_t): New type.
24487         (relative_time): Change type of 'seconds' field to long_time_t.
24488         (get_date): Update types of local variables. Check against overflow
24489         during conversion from long_time_t to time_t.
24490         Reported by Matt Kraai <kraai@ftbfs.org>
24491         and Hasso Tepper <hasso@netbsd.org>.
24492
24493 2009-09-17  Bruno Haible  <bruno@clisp.org>
24494
24495         * modules/COPYING: Update copyright years.
24496         * modules/README: Likeiwse.
24497         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24498         Reported by Ian Beckwith <ianb@erislabs.net>.
24499
24500 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24501
24502         * users.txt: Update references for gnuit package.
24503
24504 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24505
24506         * m4/getdelim.m4: Fix typo in copyright line.
24507
24508 2009-09-17  Bruno Haible  <bruno@clisp.org>
24509
24510         * lib/atoll.c: Use the standard header with GPL copyright.
24511         * lib/argz.in.h: Likewise.
24512         * lib/glob.c: Likewise.
24513         * lib/glob-libc.h: Likewise.
24514         * lib/random_r.c: Likewise.
24515         * lib/siglist.h: Likewise.
24516         * lib/strsignal.c: Likewise.
24517         Reported by Ian Beckwith <ianb@erislabs.net>.
24518
24519 2009-09-17  Eric Blake  <ebb9@byu.net>
24520
24521         rmdir: ensure correct dependency order
24522         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24523
24524 2009-09-17  Bruno Haible  <bruno@clisp.org>
24525
24526         Disable assertion that fails on NetBSD 5 / i386.
24527         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24528         Reported by Sam Steingold <sds@gnu.org>
24529         and Hasso Tepper <hasso@netbsd.org>.
24530
24531 2009-09-16  Eric Blake  <ebb9@byu.net>
24532
24533         unlinkdir: port to mingw
24534         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24535         on which no one can unlink a directory.
24536
24537         stdlib: sort witness names
24538         * modules/stdlib (Makefile.am): Sort replacements.
24539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24540         * lib/stdlib.in.h: Likewise.
24541
24542         parse-duration-tests: avoid link failure
24543         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24544         LIBINTL.
24545         Reported by Tom G. Christensen.
24546
24547         openat-tests: ensure unlinkat behaves like rmdir
24548         * tests/test-rmdir.c (main): Factor guts...
24549         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24550         * modules/rmdir-tests (Files): Ship new file.
24551         * modules/openat-tests: New test.
24552         * tests/test-unlinkat.c: Likewise.
24553
24554         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24555         * modules/rmdir-errno (Status, Notice): Now obsolete.
24556
24557         rmdir: work around cygwin 1.5.x and mingw bugs
24558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24559         * lib/rmdir.c (rmdir): Work around it.
24560         * modules/rmdir (Status, Notice): No longer obsolete.
24561         (Files): Add dos.m4.
24562         (Depends-on): Add unistd.
24563         (configure.ac): Set witnesses.
24564         (License): Relax to LGPLv2+.
24565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24566         * modules/unistd (Makefile.am): Substitute witnesses.
24567         * lib/unistd.in.h (rmdir): Declare replacement.
24568         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24569         * modules/rmdir-tests: New tests.
24570         * tests/test-rmdir.c: Likewise.
24571
24572 2009-09-15  Eric Blake  <ebb9@byu.net>
24573
24574         fchdir: improve use of replacement functions
24575         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24577         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24578         REPLACE_CLOSEDIR.
24579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24580         * modules/sys_stat (Makefile.am): Substitute correct witness.
24581         * modules/dirent (Makefile.am): Likewise.
24582         * modules/unistd (Makefile.am): Likewise.
24583         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24584         * lib/unistd.in.h (dup): Likewise.
24585         * lib/sys_stat.in.h (fstat): Likewise.
24586
24587         maint: ignore gnulib-tool temp files
24588         * .gitignore: Ignore files created during gnulib-tool --test.
24589
24590 2009-09-13  Jim Meyering  <meyering@redhat.com>
24591
24592         posixtm: don't reject a time that specify "60" as the number of seconds
24593         * lib/posixtm.c (posixtime): The code to reject invalid dates
24594         would also reject a time specified with the .60 suffix.
24595         But POSIX allows that, in order to accommodate leap seconds.
24596         So don't reject it.
24597         (main): Adjust tests accordingly.
24598         * modules/posixtm (Depends-on): Add stpcpy.
24599
24600 2009-09-11  Jim Meyering  <meyering@redhat.com>
24601
24602         announce-gen: include [$release_type] in emitted Subject:
24603         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24604         e.g., [stable] in the emitted Subject: line.
24605
24606 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24607
24608         Remove obsolete macros from several modules.
24609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24610         obsolete Autoconf macros with their modern counterparts.
24611         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24612         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24613         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24614         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24615         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24616         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24617         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24618         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24619         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24620         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24621         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24623         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24624         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24625         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24626         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24627         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24628         * m4/time_r.m4 (gl_TIME_R): Likewise.
24629         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24630         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24631         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24632
24633         Fix copyright header in build-aux scripts.
24634         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24635         recommendation.
24636         * build-aux/ncftpput-ftp: Likewise.
24637         * build-aux/update-copyright: Likewise.
24638
24639 2009-09-09  Eric Blake  <ebb9@byu.net>
24640
24641         test-link: allow Linux choice of errno
24642         * tests/test-link.c (main): Relax test for alternate error.
24643
24644         strndup: fix improper m4 caching
24645         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24646         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24647         (gl_PREREQ_STRNDUP): Delete.
24648         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24649         * modules/string (Makefile.am): Substitute it.
24650         * lib/string.in.h (strndup): Modernize prototype.
24651
24652         getcwd: port to mingw
24653         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24654         different from the POSIX assumptions made throughout the getcwd
24655         module; fortunately, the mingw getcwd does not need replacement.
24656         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24657         * modules/getcwd-tests: New test.
24658         * tests/test-getcwd.c: Likewise.
24659
24660         link: fix platform bugs
24661         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24662         * lib/link.c (link): Work around them.  Fix related mingw bug.
24663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24664         * modules/unistd (Makefile.am): Substitute it.
24665         * lib/unistd.in.h (link): Declare replacement.
24666         * doc/posix-functions/link.texi (link): Document this.
24667         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24668
24669         test-link: consolidate into single C program, test more cases
24670         * tests/test-link.sh: Delete.
24671         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24672         at least Cygwin and Solaris.
24673         * modules/link-tests (Files): Remove unused file.
24674         (Depends-on): Add errno, sys_stat.
24675         (Makefile.am): Simplify.
24676
24677 2009-09-08  Bruno Haible  <bruno@clisp.org>
24678
24679         Work around towlower, towupper bug on mingw.
24680         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24681         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24682         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24683         * doc/posix-functions/towupper.texi: Likewise.
24684         Reported by Eric Blake.
24685
24686 2009-09-08  Jim Meyering  <meyering@redhat.com>
24687
24688         build: don't try to run autoheader if we don't use it
24689         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24690         is not used in configure.ac.
24691
24692 2009-09-08  Eric Blake  <ebb9@byu.net>
24693
24694         euidaccess: fix compilation error
24695         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24696
24697         rawmemchr: relax license
24698         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24699         okay.
24700         Reported by Jim Meyering.
24701
24702         mkfifoat: new module
24703         * modules/mkfifoat: New file.
24704         * lib/mkfifoat.c: Likewise.
24705         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24707         * modules/sys_stat (Makefile.am): Use them.
24708         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24709         * MODULES.html.sh (File system functions): Mention module.
24710         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24711         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24712         * modules/mkfifoat-tests: New test.
24713         * tests/test-mkfifoat.c: Likewise.
24714
24715         strchrnul: relax license
24716         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24717         okay.
24718         Reported by Jim Meyering.
24719
24720 2009-09-08  Eric Blake  <ebb9@byu.net>
24721
24722         fstatat: fix compilation on Solaris
24723         * lib/fstatat.c (includes): Add fcntl.h.
24724         Reported by Pádraig Brady.
24725
24726 2009-09-07  Eric Blake  <ebb9@byu.net>
24727
24728         rename: modernize replacement
24729         * modules/rename (Depends-on): Add stdio.
24730         (configure.ac): Declare witness.
24731         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24732         stdio take care of replacement.
24733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24734         * modules/stdio (Makefile.am): Substitute them.
24735         * lib/stdio.in.h (rename): Declare replacement.
24736         * lib/rename.c (includes): Allow cross-compilation to non-windows
24737         machines.
24738         * doc/posix-functions/rename.texi (rename): Improve
24739         documentation.
24740
24741         stdio: sort witness names
24742         * modules/stdio (Makefile.am): Sort replacements.
24743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24744         * lib/stdio.in.h: Likewise.
24745
24746         getcwd: minor cleanups
24747         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24748         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24749
24750         openat: provide more convenience names
24751         * modules/faccessat (configure.ac): Add C witness.
24752         * lib/unistd.in.h (readlinkat): Fix typo.
24753         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24754         convenience wrappers.
24755         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24756         wrappers in syntax checks.
24757
24758 2009-09-06  Eric Blake  <ebb9@byu.net>
24759
24760         doc: fix comments in recent patches
24761         * lib/faccessat.c: Mention correct function.
24762         * lib/fchmodat.c: Likewise.
24763         * lib/fchownat.c: Likewise.
24764         * lib/symlinkat.c: Likewise.
24765         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24766         constants.
24767
24768         faccessat, symlinkat: continue cleanup of previous patch
24769         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24770         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24771         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24773         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24774         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24775         set.
24776
24777 2009-09-06  Bruno Haible  <bruno@clisp.org>
24778
24779         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24780         (fstatat): Declare if GNULIB_FSTATAT is set.
24781         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24782         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24783         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24784         * modules/fcntl-h (Files): Remove m4/openat.m4.
24785         * modules/sys_stat (Files): Remove m4/openat.m4.
24786         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24787         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24788         * modules/unistd (Files): Remove m4/openat.m4.
24789         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24790         GNULIB_OPENAT.
24791         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24792         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24794         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24795         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24796         gl_OPENAT_DEFAULTS.
24797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24798         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24799         Don't require gl_OPENAT_DEFAULTS.
24800         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24801         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24802         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24803         (gl_OPENAT_DEFAULTS): Remove macro.
24804
24805 2009-09-06  Bruno Haible  <bruno@clisp.org>
24806
24807         * modules/openat (configure.ac): Remove unneeded witness.
24808
24809 2009-09-06  Bruno Haible  <bruno@clisp.org>
24810
24811         Set errno to ENOSYS when a function is entirely unsupported.
24812         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24813         EOPNOTSUPP.
24814         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24815         * modules/chown (Depends-on): Remove errno.
24816
24817 2009-09-06  Bruno Haible  <bruno@clisp.org>
24818
24819         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24820
24821 2009-09-06  Bruno Haible  <bruno@clisp.org>
24822
24823         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24824
24825 2009-09-06  Ben Pfaff  <blp@gnu.org>
24826             Bruno Haible  <bruno@clisp.org>
24827
24828         Work around a glibc bug in strtok_r.
24829         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24830         Undefine if UNDEFINE_STRTOK_R is set.
24831         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24833         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24834         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24835         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24836         UNDEFINE_STRTOK_R.
24837         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24838
24839 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24840
24841         exclude: minor fix
24842         * lib/exclude.c: Include wctype.h
24843
24844 2009-09-06  Akim Demaille  <demaille@gostai.com>
24845
24846         bootstrap: improve error message
24847         * build-aux/bootstrap (find_tool): Upon failure, report the list
24848         of candidates.
24849         Honor the initial value of the envvar.
24850
24851 2009-09-05  Eric Blake  <ebb9@byu.net>
24852
24853         symlinkat: new module
24854         * modules/symlinkat: New file.
24855         * lib/symlinkat.c: Likewise.
24856         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24858         * modules/unistd (Makefile.am): Use them.
24859         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24860         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24861         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24862         * MODULES.html.sh (File system functions): Mention module.
24863         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24864         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24865         * modules/symlinkat-tests: New test.
24866         * tests/test-symlinkat.c: Likewise.
24867
24868         test-openat-safer: add more checks
24869         * tests/test-openat-safer.c (main): Check more code paths.
24870
24871 2009-09-05  Jim Meyering  <meyering@redhat.com>
24872
24873         syntax-check: detect unnecessary inclusion of openat.h
24874         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24875
24876 2009-09-05  Bruno Haible  <bruno@clisp.org>
24877
24878         Support towlower, towupper.
24879         * doc/posix-functions/towlower.texi: Mention module wctype.
24880         * doc/posix-functions/towupper.texi: Likewise.
24881         * lib/wctype.in.h (towlower, towupper): New functions.
24882         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24883         (ASSERT): New macro.
24884         (e): New variable.
24885         (main): Test also towlower, towupper. Test WEOF argument.
24886         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24887
24888 2009-09-05  Bruno Haible  <bruno@clisp.org>
24889
24890         Fix conversion behaviour when the input is invalid.
24891         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24892         mark occurring in first pass of indirect conversion.
24893         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24894         input.
24895         Found by clang's static analyzer.
24896
24897 2009-09-05  Bruno Haible  <bruno@clisp.org>
24898
24899         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24900         where direct conversion is possible.
24901
24902 2009-09-04  Eric Blake  <ebb9@byu.net>
24903
24904         openat: fail with ENOENT on empty name
24905         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24906         buffer.
24907
24908         link-follow: fix logic bug in prior patch
24909         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24910         reversed sense of yes and no in prior patch.  Avoid confusing
24911         compilation failure with desired semantics.
24912
24913         link-follow: accomodate mingw and cross-compilation
24914         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24915         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24916         cross-compilation results to -1, to make linkat easier to
24917         implement when cross-compiling.  Trivially support mingw.
24918         * modules/link-follow (configure.ac): Call new name.
24919         * NEWS: Mention this.
24920
24921 2009-09-03  Eric Blake  <ebb9@byu.net>
24922
24923         faccessat: compile replacement
24924         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24925         needed.
24926
24927         fts: fix compilation error
24928         * lib/fts.c (includes): Re-add "openat.h", for
24929         openat_needs_fchdir.
24930
24931         faccessat: new module
24932         * modules/faccessat: New file.
24933         * lib/faccessat.c: Likewise.
24934         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24936         * modules/unistd (Makefile.am): Use it.
24937         * lib/unistd.in.h (faccessat): Declare it.
24938         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24939         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24940         * MODULES.html.sh (File system functions): Mention it.
24941         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24942         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24943
24944         euidaccess: prefer POSIX over non-standard implementation
24945         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24946         * lib/euidaccess.c (euidaccess): Use it if available.
24947
24948         openat: make template easier to use
24949         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24950         AT_FUNC_F2 to be undefined.
24951         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24952         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24953         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24954         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24955         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24956         Likewise.
24957         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24958         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24959         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24960         Likewise.
24961
24962         openat: declare in POSIX headers
24963         * NEWS: Mention this.
24964         * modules/openat (configure.ac): Declare witnesses.
24965         (Depends-on): Add fcntl-h, sys_stat, unistd.
24966         (Include): Mention correct headers.
24967         * modules/fcntl-h (Depends-on): Add link-warning.
24968         (Files): Add openat.m4.
24969         (Makefile.am): Substitute witnesses.
24970         * modules/sys_stat (Files, Makefile.am): Likewise.
24971         * modules/unistd (Files, Makefile.am): Likewise.
24972         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24973         (gl_OPENAT_DEFAULTS): New macro.
24974         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24977         (SYS_STAT_H): Remove unused variable.
24978         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24979         * lib/fcntl--.h (includes): Remove unneeded header.
24980         * lib/openat-safer.c (includes): Likewise.
24981         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24982         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24983         appropriate headers.
24984         (__OPENAT_PREFIX): Delete.
24985         * lib/fcntl.in.h (openat): Provide declaration.
24986         (AT_FDCWD): Fix Solaris bug.
24987         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24988         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24989         * lib/fchmodat.c (includes):  Adjust to find declaration.
24990         * lib/fchownat.c (includes): Likewise.
24991         * lib/mkdirat.c (includes): Likewise.
24992         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24993         still visible.
24994
24995 2009-09-02  Eric Blake  <ebb9@byu.net>
24996
24997         errno: use consistently
24998         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24999         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25000         * lib/canonicalize.c (ELOOP): Likewise.
25001         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25002         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25003         * lib/lchown.c (EOPNOTSUPP): Likewise.
25004         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25005         * lib/savewd.c (ESTALE): Likewise.
25006         * lib/settime.c (ENOSYS): Likewise.
25007         * lib/utimens.c (ENOSYS): Likewise.
25008         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25009         * lib/chdir-safer.c (ELOOP): Likewise.
25010         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25011         * modules/c-stack (Depends-on): Add errno.
25012         * modules/canonicalize (Depends-on): Likewise.
25013         * modules/chdir-safer (Depends-on): Likewise.
25014         * modules/fdopendir (Depends-on): Likewise.
25015         * modules/inet_ntop (Depends-on): Likewise.
25016         * modules/inet_pton (Depends-on): Likewise.
25017         * modules/lchown (Depends-on): Likewise.
25018         * modules/openat (Depends-on): Likewise.
25019         * modules/savewd (Depends-on): Likewise.
25020         * modules/settime (Depends-on): Likewise.
25021         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25022
25023         fts: avoid leaking fds
25024         * modules/fts (Depends-on): Add cloexec.
25025         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25026         flag.
25027
25028         fts: make directory fds more robust
25029         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25030         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25031
25032         backupfile, chdir-long, fts, savedir: make safer
25033         * lib/backupfile.c (includes): Use "dirent--.h", since
25034         numbered_backup can write to stderr during readdir.
25035         * lib/savedir.c (includes): Likewise.
25036         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25037         emulation can write to stderr on failure.
25038         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25039         * lib/getcwd.c: Document why opendir_safer is unused.
25040         * lib/glob.c: Likewise.
25041         * lib/scandir.c: Likewise.
25042         * lib/openat-proc.c: Likewise, for open_safer.
25043         * modules/backupfile (Depends-on): Add dirent-safer.
25044         * modules/savedir (Depends-on): Likewise.
25045         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25046         * modules/chdir-long (Depends-on): Add openat-safer.
25047
25048         openat-safer: new module
25049         * modules/openat-safer: New file.
25050         * lib/openat-safer.c: Likewise.
25051         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25052         * lib/fcntl-safer.h (openat_safer): Declare.
25053         * lib/fcntl--.h (openat): Override.
25054         * MODULES.html.sh (File descriptor based I/O): Mention it.
25055         * lib/openat.h: Add double-inclusion guards.
25056         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25057         "fcntl--.h", so we can implement openat.
25058         * modules/openat-safer-tests: New test.
25059         * tests/test-openat-safer.c: New file.
25060
25061         dirent-safer: new module
25062         * modules/dirent-safer: New file.
25063         * lib/dirent--.h: Likewise.
25064         * lib/dirent-safer.h: Likewise.
25065         * lib/opendir-safer.c: Likewise.
25066         * m4/dirent-safer.m4: Likewise.
25067         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25068         * modules/dirent-safer-tests: New test.
25069         * tests/test-dirent-safer.c: New file.
25070         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25071
25072         fdopendir: optimize on mingw
25073         * lib/unistd.in.h (_gl_directory_name): New prototype.
25074         * lib/fchdir.c (_gl_directory_name): Implement it.
25075         (fchdir): Use it to simplify implementation.
25076         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25077         fchdir, when available, to avoid calling [f]chdir().
25078
25079         fdopendir: split into its own module
25080         * lib/openat.c (fdopendir): Move...
25081         * lib/fdopendir.c: ...into new file.
25082         * modules/fdopendir: New module.
25083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25084         * modules/openat (Depends-on): Add fdopendir.
25085         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25086         fdopendir here.
25087         * modules/savedir (Depends-on): Only need fdopendir, not full
25088         openat.
25089         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25090         * lib/openat.h (fdopendir): Drop prototype.
25091         * lib/dirent.in.h (fdopendir): Provide prototype.
25092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25093         * modules/dirent (Makefile.am): Substitute them.
25094         * MODULES.html.sh (File system functions): Mention it.
25095         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25096         * modules/fdopendir-tests: New file.
25097         * tests/test-fdopendir.c: Likewise.
25098
25099         fchdir: use more consistent macro convention
25100         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25101         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25102         REPLACE_FCHDIR, rather than relying on config.h macros.
25103         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25104         inside a single make-time REPLACE_FCHDIR block, rather than using
25105         the config.h FCHDIR_REPLACEMENT.
25106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25107         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25108         Manage fstat replacement.
25109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25110         REPLACE_FCHDIR.
25111         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25112         (Makefile.am): Substitute REPLACE_FCHDIR.
25113         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25114         FCHDIR_REPLACEMENT.
25115         * lib/dup-safer.c (dup_safer): Likewise.
25116         * lib/dup2.c (rpl_dup2): Likewise.
25117         * lib/dup3.c (rpl_dup3): Likewise.
25118         * lib/open.c (rpl_open): Likewise.
25119
25120         fchdir: simplify error handling, and support dup3
25121         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25122         stdbool, malloc-posix, realloc-posix.
25123         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25124         (ensure_dirs_slot): Return false on allocation failure.
25125         (rpl_dup2): Delete.
25126         (_gl_register_dup): New function.
25127         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25128         (_gl_register_fd): Close fd on allocation failure.
25129         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25130         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25131         prototype.
25132         (rpl_dup2_fchdir): Delete prototype.
25133         * lib/open.c (open): Update caller.
25134         * lib/dup2.c (dup2): Track fchdir metadata.
25135         * lib/dup3.c (dup3): Likewise.
25136         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25138
25139 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25140
25141         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25142         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25143         don't pass arguments to AC_OUTPUT.
25144
25145 2009-09-02  Bruno Haible  <bruno@clisp.org>
25146
25147         * modules/mkdtemp (License): Relicense under LGPLv2+.
25148         Reported by Paolo Bonzini.
25149
25150 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25151
25152         Replace uses of obsolete autoconf macros in Jim's modules.
25153         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25154         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25155         can evoke a warning from autoconf when run with -Wobsolete
25156         enabled.  They were declared obsolete for good reasons (see
25157         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25158         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25159         should not continue using the deprecated macros.
25160         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25161         obsolete Autoconf macros with modern counterparts.
25162         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25163         * m4/dos.m4 (gl_AC_DOS): Likewise.
25164         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25166         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25167         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25168         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25169         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25170         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25171         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25172         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25173         Likewise.
25174         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25175         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25176         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25177         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25178         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25179         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25180
25181 2009-09-01  Eric Blake  <ebb9@byu.net>
25182
25183         fchdir: fix off-by-one bug in previous patch
25184         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25185         (_gl_unregister_fd): Delete useless if.
25186
25187 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25188
25189         maint.mk: sort the list of syntax-check rules
25190         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25191         easier to get a sense of progress when the rules are run sequentially
25192         and take a long time.
25193
25194 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25195
25196         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25197         * modules/netinet_in: Likewise.
25198         * modules/sys_file: Likewise.
25199         * modules/sys_ioctl: Likewise.
25200         * modules/sys_select: Likewise.
25201         * modules/sys_socket: Likewise.
25202         * modules/sys_stat: Likewise.
25203         * modules/sys_time: Likewise.
25204         * modules/sys_times: Likewise.
25205         * modules/sys_utsname: Likewise.
25206         * modules/sys_wait: Likewise.
25207
25208 2009-09-01  Jim Meyering  <meyering@redhat.com>
25209
25210         fts: help ensure that return values are not ignored
25211         * lib/fts_.h (__GNUC_PREREQ): Define.
25212         (__attribute_warn_unused_result__): Define.
25213         (fts_children, fts_close, fts_open, fts_read): Declare with
25214         __attribute_warn_unused_result__.
25215
25216         fts: fts_close now fails also when closing a dir file descriptor fails
25217         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25218         and propagate to caller, along with errno.
25219
25220         announce-gen: correct formatting in --help output
25221         * build-aux/announce-gen (usage): Move the one-line description in
25222         --help output "up", to where it belongs, just after Usage:.
25223
25224 2009-08-31  Eric Blake  <ebb9@byu.net>
25225
25226         fchdir: port to mingw
25227         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25228         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25229         opened, then use a substitute.
25230         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25231         replacement.
25232         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25233         (_gl_register_fd): No need to check stat if open already filters
25234         all directories.
25235         (fchdir): Fix error condition to match POSIX.
25236         * modules/fchdir (Depends-on): Add sys_stat.
25237         * doc/posix-functions/open.texi (open): Document the limitation.
25238         * modules/fchdir-tests: New file.
25239         * tests/test-fchdir.c: Likewise.
25240
25241         canonicalize: allow cross-testing from cygwin to mingw
25242         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25243         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25244         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25245         Likewise.
25246         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25247         target does not support symlinks.
25248         * tests/test-canonicalize-lgpl.sh: Likewise.
25249
25250         chown: avoid compilation warning on mingw
25251         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25252         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25253         mingw.
25254         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25255         * modules/chown (Depends-on): Add errno.
25256
25257 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25258
25259         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25260         command.
25261
25262 2009-08-31  Jim Meyering  <meyering@redhat.com>
25263
25264         canonicalize: remove useless initialization
25265         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25266         initialization of local, "end".
25267
25268 2009-08-30  Bruno Haible  <bruno@clisp.org>
25269
25270         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25271         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25272         ENOSYS.
25273
25274 2009-08-30  Bruno Haible  <bruno@clisp.org>
25275
25276         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25277         /usr/xpg4/bin/tr when it exists.
25278         * tests/test-pipe-filter-gi1.sh: Likewise.
25279
25280 2009-08-30  Bruno Haible  <bruno@clisp.org>
25281
25282         Work around deficient /usr/bin/id program on Solaris.
25283         * tests/test-file-has-acl.sh (ID): New variable.
25284         * tests/test-set-mode-acl.sh (ID): Likewise.
25285         * tests/test-copy-acl.sh (ID): Likewise.
25286         * tests/test-copy-file.sh (ID): Likewise.
25287
25288 2009-08-30  Bruno Haible  <bruno@clisp.org>
25289
25290         New module 'xstriconveh'.
25291         * lib/xstriconveh.h: New file.
25292         * lib/xstriconveh.c: New file.
25293         * modules/xstriconveh: New file.
25294
25295 2009-08-30  Bruno Haible  <bruno@clisp.org>
25296
25297         Make it easier to use mem_cd_iconveh.
25298         * lib/striconveh.h (iconveh_t): New type.
25299         (iconveh_open, iconveh_close): New declarations.
25300         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25301         with a single 'const iconveh_t *' argument.
25302         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25303         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25304         with a single 'const iconveh_t *' argument.
25305         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25306         * tests/test-striconveh.c (main): Update.
25307         * NEWS: Mention the change.
25308
25309 2009-08-30  Bruno Haible  <bruno@clisp.org>
25310
25311         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25312         problem.
25313
25314 2009-08-30  Bruno Haible  <bruno@clisp.org>
25315
25316         Work around iconv_open problem on Solaris.
25317         * lib/iconv_open-solaris.gperf: New file.
25318         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25319         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25320         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25321         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25322         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25323         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25324
25325 2009-08-29  Jim Meyering  <meyering@redhat.com>
25326
25327         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25328         * top/maint.mk (cvs-check): Remove target; it was just an alias
25329         to the better-named vc-diff-check.
25330         (maintainer-distcheck): Remove rule.  It was used only from
25331         the (alpha/beta/major) target, and all of its commands but one
25332         were coreutils-specific.
25333         (vc-dist): Remove rule.
25334         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25335         Run vc-diff-check, not vc-dist.
25336         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25337
25338 2009-08-27  Bruno Haible  <bruno@clisp.org>
25339
25340         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25341         of 0.
25342
25343 2009-08-27  Bruno Haible  <bruno@clisp.org>
25344
25345         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25346         compilers.
25347         * doc/func.texi: Document the SunPRO C bug.
25348
25349 2009-08-27  Bruno Haible  <bruno@clisp.org>
25350
25351         Fix link error on Solaris.
25352         * tests/test-parse-duration.c (xstrdup): Remove function.
25353
25354 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25355
25356         ignore-value: handle pointer types, too
25357         * lib/ignore-value.h (__attribute__): Remove definition.
25358         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25359         of a more concise and more-often effective "(void) i" statement.
25360         (ignore_ptr): New function to suppress warnings from functions that
25361         return pointers, and to make it explicit that one function doesn't
25362         handle all cases.
25363
25364 2009-08-25  Bruno Haible  <bruno@clisp.org>
25365
25366         dup2: work around a Linux bug.
25367         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25368         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25369         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25370         Reported by Simon Josefsson.
25371
25372 2009-08-25  Jim Meyering  <meyering@redhat.com>
25373
25374         libguestfs uses gnulib
25375         * users.txt: Add libguestfs.
25376
25377 2009-08-24  Eric Blake  <ebb9@byu.net>
25378
25379         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25380         * lib/pipe2.c (includes): Add binary-io.h.
25381         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25382
25383 2009-08-24  Bruno Haible  <bruno@clisp.org>
25384
25385         Tolerate declared but missing accept4 syscall.
25386         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25387         available.
25388         * lib/sys_socket.in.h (accept4): If the function is already present,
25389         override it.
25390         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25391         * modules/accept4 (Makefile.am): Compile accept4.c always.
25392         Reported by Paolo Bonzini and Eric Blake.
25393
25394 2009-08-23  Bruno Haible  <bruno@clisp.org>
25395
25396         New module 'accept4'.
25397         * lib/sys_socket.in.h (accept4): New declaration.
25398         * lib/accept4.c: New file.
25399         * m4/accept4.m4: New file.
25400         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25401         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25402         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25403         HAVE_ACCEPT4.
25404         * modules/accept4: New file.
25405         * doc/glibc-functions/accept4.texi: Mention the new module.
25406
25407 2009-08-24  Jim Meyering  <meyering@redhat.com>
25408
25409         progname: also set global program_invocation_name, when possible
25410         Before this change, a libtool-enabled program that calls glibc's
25411         error function would report the program name as
25412         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25413         * modules/progname (configure.ac): Check for a declaration of
25414         program_invocation_name.
25415         * lib/progname.c:  Include <errno.h>.
25416         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25417         Set program_invocation_name.
25418
25419 2009-08-23  Bruno Haible  <bruno@clisp.org>
25420
25421         * lib/dup3.c: Include <string.h>.
25422
25423 2009-08-23  Bruno Haible  <bruno@clisp.org>
25424
25425         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25426         * lib/pipe2.c (pipe2): Likewise.
25427         Suggested by Eric Blake.
25428
25429 2009-08-23  Bruno Haible  <bruno@clisp.org>
25430
25431         Tolerate declared but missing dup3 syscall.
25432         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25433         * lib/unistd.in.h (dup3): If the function is already present,
25434         override it.
25435         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25436         * modules/dup3 (Makefile.am): Compile dup3.c always.
25437         Reported by Paolo Bonzini.
25438
25439 2009-08-23  Bruno Haible  <bruno@clisp.org>
25440
25441         Tolerate declared but missing pipe2 syscall.
25442         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25443         available.
25444         * lib/unistd.in.h (pipe2): If the function is already present,
25445         override it.
25446         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25447         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25448         Reported by Paolo Bonzini.
25449
25450 2009-08-23  Bruno Haible  <bruno@clisp.org>
25451
25452         * lib/pipe2.c (pipe2): Move #ifs inside function.
25453
25454 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25455
25456         quotearg: document limitations of quote_these_too
25457         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25458         those limitations are created.
25459         * lib/quotearg.h (set_char_quoting): Document that digits and
25460         letters that are special after backslash are not permitted.
25461         (quotearg_char): Cross-reference set_char_quoting documentation.
25462
25463 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25464
25465         quotearg: implement custom_quoting_style
25466         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25467         right_quote fields.
25468         (set_custom_quoting): New public function.
25469         (quotearg_buffer_restyled): Add left_quote and right_quote
25470         arguments, handle them very much like locale quoting, and update
25471         all uses.
25472         (quotearg_n_custom): New public function.
25473         (quotearg_n_custom_mem): New public function.
25474         (quotearg_custom): New public function.
25475         (quotearg_custom_mem): New public function.
25476         * lib/quotearg.h: Prototype and document new public functions.
25477         (enum quoting_style): For escape_quoting_style and
25478         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25479         ignored even though they're otherwise like c_quoting_style.
25480         Add custom_quoting_style member and document with comparison to
25481         clocale_quoting_style.
25482         * tests/test-quotearg.c (custom_quotes): New array.
25483         (custom_results): New array.
25484         (main): Extend to test custom quoting.
25485
25486 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25487
25488         quotearg: fix right quote escaping when it's in quote_these_too
25489         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25490         quote, be sure to prepend only one backslash.
25491         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25492         (main): Test it.
25493
25494 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25495
25496         quotearg-tests: test escaping of embedded locale quotes
25497         * tests/test-quotearg.c (struct result_strings): Add member for
25498         new input.
25499         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25500         (inputs): Add new input.
25501         (results_g): Add expected results.
25502         (flag_results): Likewise.
25503         (locale_results): Likewise.
25504         (compare_strings): Check those.
25505
25506 2009-08-23  Bruno Haible  <bruno@clisp.org>
25507
25508         Tests for module 'dup3'.
25509         * modules/dup3-tests: New file.
25510         * tests/test-dup3.c: New file.
25511
25512         New module 'dup3'.
25513         * lib/unistd.in.h (dup3): New declaration.
25514         * lib/dup3.c: New file.
25515         * m4/dup3.m4: New file.
25516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25517         HAVE_DUP3.
25518         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25519         * modules/dup3: New file.
25520         * doc/glibc-functions/dup3.texi: Mention the new module.
25521
25522 2009-08-23  Bruno Haible  <bruno@clisp.org>
25523
25524         Tweak the dup2 test.
25525         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25526         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25527         the test file is still empty. Fix argument order of lseek.
25528
25529 2009-08-23  Bruno Haible  <bruno@clisp.org>
25530
25531         Avoid test link errors when the modules getopt-gnu, gettext are used.
25532         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25533         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25534
25535 2009-08-23  Bruno Haible  <bruno@clisp.org>
25536
25537         Fix getdtablesize() on mingw.
25538         * lib/getdtablesize.c (getdtablesize): Implement differently.
25539         * lib/unistd.in.h (getdtablesize): Improve comment.
25540
25541 2009-08-23  Bruno Haible  <bruno@clisp.org>
25542
25543         New module 'mkostemp'.
25544         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25545         * lib/stdlib.in.h (mksotemp): New declaration.
25546         * lib/mkostemp.c: New file, from glibc with modifications.
25547         * lib/tempname.h (GT_FILE): Remove outdated comment.
25548         (gen_tempname): Add flags argument.
25549         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25550         (__GT_FILE): Map to 1.
25551         (small_open, large_open): Remove macros.
25552         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25553         * lib/mkstemp.c (mkstemp): Update.
25554         * lib/mkdtemp.c (mkdtemp): Likewise.
25555         * m4/mkostemp.m4: New file.
25556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25557         HAVE_MKOSTEMP.
25558         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25559         HAVE_MKOSTEMP.
25560         * modules/mkostemp: New file, based on modules/mkstemp.
25561         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25562         * NEWS: Mention the change.
25563
25564 2009-08-23  Bruno Haible  <bruno@clisp.org>
25565
25566         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25567         Reported by Eric Blake.
25568
25569 2009-08-23  Bruno Haible  <bruno@clisp.org>
25570
25571         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25572         Reported by Eric Blake.
25573
25574 2009-08-23  Bruno Haible  <bruno@clisp.org>
25575
25576         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25577         * modules/pipe2 (Depends-on): Likewise.
25578
25579 2009-08-23  Eric Blake  <ebb9@byu.net>
25580
25581         fcntl-h: add O_TTY_INIT support
25582         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25583         * tests/test-fcntl-h.c (o): Test it.
25584         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25585
25586         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25587         * modules/fcntl: Move <fcntl.h> header replacement...
25588         * modules/fcntl-h: ...to new name, so as not to collide with
25589         like-named function.
25590         * tests/test-fcntl.c: Rename...
25591         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25592         * modules/fcntl-tests: Rename...
25593         * modules/fcntl-h-tests: ...to this.  Update test file name.
25594         * modules/chdir-long (Depends-on): Update clients.
25595         * modules/chdir-safer (Depends-on): Likewise.
25596         * modules/fcntl-safer (Depends-on): Likewise.
25597         * modules/fts (Depends-on): Likewise.
25598         * modules/mkancesdirs (Depends-on): Likewise.
25599         * modules/mkdir-p (Depends-on): Likewise.
25600         * modules/open (Depends-on): Likewise.
25601         * modules/savewd (Depends-on): Likewise.
25602         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25603         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25604
25605 2009-08-22  Bruno Haible  <bruno@clisp.org>
25606
25607         * modules/binary-io (License): Relicense under LGPL.
25608         * modules/pipe2 (License): Likewise.
25609
25610 2009-08-22  Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25613         return value.
25614         * lib/pipe-filter-gi.c (filter_init): Likewise.
25615         Reported by Eric Blake.
25616
25617 2009-08-22  Bruno Haible  <bruno@clisp.org>
25618
25619         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25620         * modules/pipe (Depends-on): Add pipe2.
25621
25622 2009-08-22  Bruno Haible  <bruno@clisp.org>
25623
25624         Tests for module 'pipe2'.
25625         * modules/pipe2-tests: New file.
25626         * tests/test-pipe2.c: New file.
25627
25628         New module 'pipe2'.
25629         * lib/unistd.in.h (pipe2): New declaration.
25630         * lib/pipe2.c: New file.
25631         * m4/pipe2.m4: New file.
25632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25633         HAVE_PIPE2.
25634         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25635         * modules/pipe2: New file.
25636         * doc/glibc-functions/pipe2.texi: Mention the new module.
25637
25638 2009-08-22  Bruno Haible  <bruno@clisp.org>
25639
25640         Reference some new glibc functions.
25641         * doc/glibc-functions/accept4.texi: New file.
25642         * doc/glibc-functions/dup3.texi: New file.
25643         * doc/glibc-functions/mkostemp.texi: New file.
25644         * doc/glibc-functions/pipe2.texi: New file.
25645         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25646         (Glibc sys/socket.h): Refer to accept4.
25647         (Glibc unistd.h): Refer to dup3, pipe2.
25648         Reported by Eric Blake.
25649
25650 2009-08-22  Jim Meyering  <meyering@redhat.com>
25651             Bruno Haible  <bruno@clisp.org>
25652
25653         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25654         This makes it so packages using automake-1.11's silent-rules option
25655         can print e.g., a single "GEN    configmake.h" line, rather than
25656         the 30+ statements that perform the job.  If you want to see the
25657         actual commands, you can still run "make V=1".
25658         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25659         so that make output is abbreviated when those variables are defined
25660         appropriately.
25661         * modules/argz: Likewise.
25662         * modules/arpa_inet: Likewise.
25663         * modules/byteswap: Likewise.
25664         * modules/configmake: Likewise.
25665         * modules/dirent: Likewise.
25666         * modules/errno: Likewise.
25667         * modules/fcntl: Likewise.
25668         * modules/float: Likewise.
25669         * modules/fnmatch: Likewise.
25670         * modules/getopt-posix: Likewise.
25671         * modules/glob: Likewise.
25672         * modules/iconv_open: Likewise.
25673         * modules/inttypes: Likewise.
25674         * modules/localcharset: Likewise.
25675         * modules/locale: Likewise.
25676         * modules/math: Likewise.
25677         * modules/netdb: Likewise.
25678         * modules/netinet_in: Likewise.
25679         * modules/poll: Likewise.
25680         * modules/posix_spawnp-tests: Likewise.
25681         * modules/sched: Likewise.
25682         * modules/search: Likewise.
25683         * modules/selinux-h: Likewise.
25684         * modules/signal: Likewise.
25685         * modules/spawn: Likewise.
25686         * modules/stdarg: Likewise.
25687         * modules/stdbool: Likewise.
25688         * modules/stddef: Likewise.
25689         * modules/stdint: Likewise.
25690         * modules/stdio: Likewise.
25691         * modules/stdlib: Likewise.
25692         * modules/string: Likewise.
25693         * modules/strings: Likewise.
25694         * modules/sys_file: Likewise.
25695         * modules/sys_ioctl: Likewise.
25696         * modules/sys_select: Likewise.
25697         * modules/sys_socket: Likewise.
25698         * modules/sys_stat: Likewise.
25699         * modules/sys_time: Likewise.
25700         * modules/sys_times: Likewise.
25701         * modules/sys_utsname: Likewise.
25702         * modules/sys_wait: Likewise.
25703         * modules/sysexits: Likewise.
25704         * modules/time: Likewise.
25705         * modules/unistd: Likewise.
25706         * modules/wchar: Likewise.
25707         * modules/wctype: Likewise.
25708
25709 2009-08-22  Jim Meyering  <meyering@redhat.com>
25710
25711         announce-gen: detect write failure
25712         * build-aux/announce-gen: Add Coda at end.
25713         Remove equivalent-but-more-verbose block at top.
25714
25715 2009-08-19  Akim Demaille  <demaille@gostai.com>
25716
25717         bootstrap: --help to stdout.
25718         * bootstrap (usage): Don't send --help to stderr.
25719         Use a here doc instead of a long string.
25720
25721 2009-08-21  Eric Blake  <ebb9@byu.net>
25722
25723         test-popen-safer: split from test-popen
25724         * tests/test-popen.c (main): Move...
25725         * tests/test-popen.h: ...into new file.
25726         * tests/test-popen-safer2.c: New file.
25727         * modules/popen-tests (Files): Add test-popen.h.
25728         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25729         Suggested by Bruno Haible.
25730
25731         test-fcntl-safer: split from test-open
25732         * tests/test-open.c (main): Move...
25733         * tests/test-open.h: ...into new file.
25734         * tests/test-fcntl-safer.c: New file.
25735         * modules/open-tests (Files): Add test-open.h.
25736         * modules/fcntl-safer-tests: New file.
25737         Suggested by Bruno Haible.
25738
25739         test-fopen-safer: split from test-fopen
25740         * tests/test-fopen.c (main): Move...
25741         * tests/test-fopen.h: ...into new file.
25742         * tests/test-fopen-safer.c: New file.
25743         * modules/fopen-tests (Files): Add test-fopen.h.
25744         * modules/fopen-safer-tests: New file.
25745         Suggested by Bruno Haible.
25746
25747 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25748
25749         popen-safer: test O_CLOEXEC at run-time.
25750         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25751
25752 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25753
25754         fcntl: move more flags to the header
25755         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25756         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25757         * lib/fcntl.in.h: Do both things here.
25758
25759 2009-08-21  Jim Meyering  <meyering@redhat.com>
25760
25761         consistently remove $@-t before redirecting to it
25762         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25763         * modules/alloca-opt: Likewise.
25764         * modules/byteswap: Likewise.
25765         * modules/fnmatch: Likewise.
25766         * modules/getopt-posix: Likewise.
25767         * modules/glob: Likewise.
25768         * modules/poll: Likewise.
25769         * modules/posix_spawnp-tests: Likewise.
25770         * modules/sys_socket: Likewise.
25771         * modules/sysexits: Likewise.
25772
25773 2009-08-21  Eric Blake  <ebb9@byu.net>
25774
25775         popen: simplify access to original popen
25776         * lib/popen.c (rpl_popen): No need to worry about popen being a
25777         macro.
25778         Reported by Bruno Haible.
25779
25780 2009-08-20  Eric Blake  <ebb9@byu.net>
25781
25782         build: avoid some compiler warnings
25783         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25784         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25785         type.
25786         (new_exclude_segment, excluded_file_pattern_p)
25787         (excluded_file_name_p): Reduce scope.
25788         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25789         old-style declaration.
25790
25791 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25792
25793         * tests/test-exclude1.sh: Handle Windows EOL.
25794         * tests/test-exclude2.sh: Likewise.
25795         * tests/test-exclude3.sh: Likewise.
25796         * tests/test-exclude4.sh: Likewise.
25797         * tests/test-exclude5.sh: Likewise.
25798         * tests/test-exclude6.sh: Likewise.
25799         * tests/test-exclude7.sh: Likewise.
25800
25801 2009-08-19  Akim Demaille  <demaille@gostai.com>
25802
25803         bootstrap: find sha1sum when named gsha1sum.
25804         * bootstrap (find_tool): New.
25805         ($SHA1SUM): New.
25806         Use it.
25807
25808 2009-08-20  Jim Meyering  <meyering@redhat.com>
25809
25810         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25811         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25812         expression that converts "." in a file name to "\." in the resulting
25813         regexp.  Start with a dummy statement, so that prior shell variable
25814         definitions are expanded portably.  Reported by Simon Josefsson.
25815
25816 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25817
25818         Fix polling for writeability of a screen buffer.
25819         * lib/poll.c: Distinguish input and screen buffers for the
25820         Win32 implementation.
25821         * lib/select.c: Likewise.
25822
25823 2009-08-19  Eric Blake  <ebb9@byu.net>
25824
25825         popen-safer: prevent popen from clobbering std descriptors
25826         * modules/popen-safer: New file.
25827         * lib/popen-safer.c: Likewise.
25828         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25829         * lib/stdio--.h (popen): Provide override.
25830         * lib/stdio-safer.h (popen_safer): Provide declaration.
25831         * tests/test-popen.c (includes): Partially test this.
25832         * modules/popen-safer-tests: New file, for more tests.
25833         * tests/test-popen-safer.c: Likewise.
25834         * MODULES.html.sh (file stream based Input/Output): Mention it.
25835
25836         tests: test some of the *-safer modules
25837         * modules/fopen-safer (Depends-on): Add fopen.
25838         * modules/fcntl-safer (Depends-on): Add fcntl.
25839         * modules/stdlib-safer (Depends-on): Add stdlib.
25840         (configure.ac): Set indicator.
25841         * modules/unistd-safer (configure.ac): Likewise.
25842         * modules/tmpfile-safer (configure.ac): Likewise.
25843         (Depends-on): Add tmpfile.
25844         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25845         active.
25846         * tests/test-fopen.c (includes): Test safer versions when they are
25847         in use.
25848         * tests/test-open.c (includes): Likewise.
25849
25850         popen: fix cygwin 1.5 bug when stdin closed
25851         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25852         * modules/popen: New file.
25853         * modules/popen-tests: Likewise.
25854         * tests/test-popen.c: Likewise.
25855         * m4/popen.m4: Likewise.
25856         * lib/popen.c: Likewise.
25857         * lib/stdio.in.h (popen): New declaration.
25858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25859         * modules/stdio (Makefile.am): Likewise.
25860         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25861
25862 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25863
25864         maint.mk: give full control over update-copyright exclusions
25865         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25866         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25867         (update-copyright): Don't force inclusion of top-level
25868         ChangeLog.  Don't force exclusion of all COPYING files, but make
25869         them the default exclusion instead.
25870
25871 2009-08-16  Bruno Haible  <bruno@clisp.org>
25872
25873         Fix test failures on Solaris 10.
25874         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25875         tests when Solaris iconv() is used.
25876         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25877         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25878         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25879         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25880         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25881
25882 2009-08-16  Bruno Haible  <bruno@clisp.org>
25883
25884         Fix test failures on Solaris 10.
25885         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25886         'tr' program and pass it as first argument.
25887         * tests/test-pipe-filter-gi1.sh: Likewise.
25888         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25889         program as first argument.
25890         * tests/test-pipe-filter-gi1.c (main): Likewise.
25891
25892 2009-08-16  Eric Blake  <ebb9@byu.net>
25893
25894         fpurge: fix previous commits
25895         * modules/fpurge (Makefile.am): Make replacement conditional,
25896         partially reverting 2007-04-29 change; missed in previous
25897         attempt.
25898         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25899         is missing.
25900
25901 2009-08-16  Bruno Haible  <bruno@clisp.org>
25902
25903         Clarify fpurge's effect on the file position.
25904         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25905         * tests/test-fpurge.c (main): Make a second pass for checking the file
25906         position.
25907
25908 2009-08-16  Bruno Haible  <bruno@clisp.org>
25909
25910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25911         declaration of fpurge is missing.
25912         * tests/test-fpurge.c (main): Check that the file has not more contents
25913         than expected. Close the file before removing it.
25914
25915 2009-08-15  Eric Blake  <ebb9@byu.net>
25916
25917         fpurge: don't wrap working cygwin implementation
25918         * lib/fpurge.c (fpurge): Fix comment typo.
25919         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25920         1.7 to avoid replacement.
25921         * tests/test-fpurge.c (main): Enhance test.
25922
25923 2009-08-15  Eric Blake  <ebb9@byu.net>
25924         and Jim Meyering  <meyering@redhat.com>
25925
25926         test-update-copyright: skip if perl is insufficient
25927         * tests/test-update-copyright.sh: Failure to run maintainer tool
25928         should not cause testsuite failure on cygwin 1.5.
25929
25930 2009-08-14  Eric Blake  <ebb9@byu.net>
25931
25932         doc: mention more functions added in cygwin 1.7.0
25933         * doc/posix-headers/limits.texi (limits.h): Update for recent
25934         cygwin additions.
25935         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25936         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25937         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25938         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25939         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25940
25941 2009-08-14  Eric Blake  <ebb9@byu.net>
25942
25943         maint.mk: simplify update-copyright rule
25944         * top/maint.mk (update-copyright-local): Delete, and document how
25945         to do it in cfg.mk instead.
25946         (update-copyright-exclude-regexp): Delete, and document how to do
25947         it in .x-update-copyright instead.
25948         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25949         exclude ChangeLog.
25950
25951 2009-08-14  Bruno Haible  <bruno@clisp.org>
25952
25953         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25954
25955 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25956
25957         maint.mk: support update-copyright-env
25958         * top/maint.mk (update-copyright-env): Define place-holder.
25959         (update-copyright): Expand $(update-copyright-env) before
25960         invoking update-copyright.
25961
25962 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25963
25964         update-copyright: implement forced reformatting
25965         * build-aux/update-copyright: Implement and document
25966         UPDATE_COPYRIGHT_FORCE.
25967         * tests/test-update-copyright.sh: Test it.
25968
25969 2009-08-14  Eric Blake  <ebb9@byu.net>
25970         and Bruno Haible  <bruno@clisp.org>
25971
25972         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25973         * tests/test-locale.c: Revert previous patch related to NULL.
25974         * tests/test-stdio.c: Likewise.
25975         * tests/test-stdlib.c: Likewise.
25976         * tests/test-string.c: Likewise.
25977         * tests/test-unistd.c: Likewise.
25978         * modules/time-tests (Depends-on): Add verify.
25979         * modules/wchar-tests (Depends-on): Likewise.
25980         * tests/test-time.c: Test for NULL compliance.
25981         * tests/test-wchar.c: Likewise.
25982         * modules/locale (Depends-on): Add stddef.
25983         * modules/stdio (Depends-on): Likewise.
25984         * modules/stdlib (Depends-on): Likewise.
25985         * modules/string (Depends-on): Likewise.
25986         * modules/time (Depends-on): Likewise.
25987         * modules/unistd (Depends-on): Likewise.
25988         * modules/wchar (Depends-on): Likewise.
25989         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25990         * lib/stdlib.in.h (includes): Likewise.
25991         * lib/string.in.h (includes): Likewise.
25992         * lib/time.in.h (includes): Likewise.
25993         * lib/unistd.in.h (includes): Likewise.
25994         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25995         replaced.
25996         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25997         * m4/stddef_h.m4: New file.
25998         * modules/stddef: Likewise.
25999         * lib/stddef.in.h: Likewise.
26000         * modules/stddef-tests: Likewise.
26001         * tests/test-stddef.c: Likewise.
26002         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26003         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26004         * doc/posix-headers/locale.texi (locale.h): Likewise.
26005         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26006         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26007         * doc/posix-headers/string.texi (string.h): Likewise.
26008         * doc/posix-headers/time.texi (time.h): Likewise.
26009         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26010         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26011
26012 2009-08-14  Eric Blake  <ebb9@byu.net>
26013
26014         doc: improve git diff of texinfo files
26015         * .gitattributes: Add rule for *.texi files, with hint on how to
26016         use it.
26017         Copied from m4, and based on a report by Bruno Haible.
26018
26019 2009-08-14  Bruno Haible  <bruno@clisp.org>
26020
26021         Disable multithread support by default on Cygwin 1.5.x for real.
26022         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26023
26024 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26025
26026         update-copyright: much ado about intervals
26027         * build-aux/update-copyright: Implement and document
26028         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26029         of copyright year intervals.
26030         Also, document UPDATE_COPYRIGHT_YEAR.
26031         * tests/test-update-copyright.sh: Test it.
26032
26033         update-copyright: convert 2-digit to 4-digit years
26034         * build-aux/update-copyright: Implement and document.
26035         * tests/test-update-copyright.sh: Update.
26036
26037 2009-08-14  Jim Meyering  <meyering@redhat.com>
26038
26039         test-exclude: avoid coreutils "make check" failure
26040         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26041         just as in test-argmatch.c.
26042
26043 2009-08-13  Eric Blake  <ebb9@byu.net>
26044
26045         test-dup2: fix bad assumption
26046         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26047         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26048
26049         test-version-etc: fix CRLF portability issue
26050         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26051         recognize \r.
26052         * tests/test-argp-version-etc-1.sh: Likewise.
26053
26054         getopt: update client modules
26055         * modules/argp (Depends-on): Use getopt-gnu.
26056         * modules/git-merge-changelog (Depends-on): Likewise.
26057         * modules/long-options (Depends-on): Likewise.
26058         * modules/xstrtol (Depends-on): Likewise.
26059
26060 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26061
26062         * tests/test-version-etc.sh: Don't fail on different
26063         project/version.  Don't fail on CRLF differences.  Rewrite to use
26064         multiple -e instead of multiple sed forks, suggested by Eric Blake
26065         <ebb9@byu.net>.
26066         * tests/test-argp-version-etc-1.sh: Likewise.
26067
26068 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26069
26070         * tests/test-version-etc.sh: Don't fail on different
26071         project/version.
26072
26073 2009-08-12  Bruno Haible  <bruno@clisp.org>
26074
26075         Tests for modules 'getopt-posix', 'getopt-gnu'.
26076         * modules/getopt-posix-tests: New file.
26077         * tests/test-getopt.c: New file.
26078         * tests/test-getopt.h: New file.
26079         * tests/test-getopt_long.h: New file.
26080
26081         New modules 'getopt-posix', 'getopt-gnu'.
26082         * modules/getopt-gnu: New file, renamed from modules/getopt.
26083         * modules/getopt-posix: New file.
26084         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26085         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26086         (gl_GETOPT): Remove macro.
26087         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26088         Disable the test against BSD systems that declare optreset. Test
26089         against mingw bug. Test against lack of support of optional arguments
26090         on many platforms.
26091         * doc/glibc-headers/getopt.texi: Update module name and list of
26092         relevant platforms.
26093         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26094         'getopt-gnu' and more portability problems.
26095         * NEWS: Mention the changes.
26096
26097 2009-08-12  Bruno Haible  <bruno@clisp.org>
26098
26099         Ensure that optarg etc. get declared by <unistd.h>.
26100         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26101         AC_USE_SYSTEM_EXTENSIONS.
26102         * modules/getopt (Depends-on): Add 'extensions'.
26103
26104 2009-08-12  Bruno Haible  <bruno@clisp.org>
26105
26106         Avoid test link errors.
26107         * modules/pipe-filter-ii-tests (Makefile.am): Define
26108         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26109         * modules/pipe-filter-gi-tests (Makefile.am): Define
26110         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26112
26113 2009-08-12  Bruno Haible  <bruno@clisp.org>
26114
26115         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26116         gl_GETOPT_SUBSTITUTE before.
26117         (gl_GETOPT): Use it.
26118         * m4/argp.m4 (gl_ARGP): Update.
26119         Reported by Sergey Poznyakoff.
26120
26121         * m4/getopt.m4: Reorder macros.
26122         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26123         (gl_GETOPT_SUBSTITUTE): Remove macro.
26124
26125 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26126
26127         Minor improvement in gitlog-to-changelog
26128
26129         * build-aux/gitlog-to-changelog: New option `--format' makes
26130         output format string configurable.
26131
26132 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26133
26134         Optimize exclude: use hash tables for non-wildcard patterns.
26135
26136         * lib/exclude.c: Include hash.h and mbuiter.h
26137         (struct exclude_pattern, exclude_segment): New data types.
26138         (struct exclude): Rewrite.
26139         (fnmatch_pattern_has_wildcards): New function.
26140         (new_exclude_segment, free_exclude_segment): New functions.
26141         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26142         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26143         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26144         * modules/exclude: Depend on hash and mbuiter.
26145
26146         * modules/exclude-tests: New file.
26147         * tests/test-exclude.c: New file.
26148         * tests/test-exclude1.sh: New file.
26149         * tests/test-exclude2.sh: New file.
26150         * tests/test-exclude3.sh: New file.
26151         * tests/test-exclude4.sh: New file.
26152         * tests/test-exclude5.sh: New file.
26153         * tests/test-exclude6.sh: New file.
26154         * tests/test-exclude7.sh: New file.
26155
26156 2009-08-12  Bruno Haible  <bruno@clisp.org>
26157
26158         Ensure that getopt() gets declared by <unistd.h>.
26159         * lib/unistd.in.h: Conditionally include getopt.h.
26160         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26161         Set GNULIB_UNISTD_H_GETOPT.
26162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26163         GNULIB_UNISTD_H_GETOPT.
26164         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26165
26166 2009-08-12  Bruno Haible  <bruno@clisp.org>
26167
26168         Clarify logic.
26169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26170         gl_replace_getopt instead of GETOPT_H.
26171
26172 2009-08-12  Bruno Haible  <bruno@clisp.org>
26173
26174         * m4/getopt.m4: Add comments.
26175
26176 2009-08-12  Bruno Haible  <bruno@clisp.org>
26177
26178         Disable multithread support by default on Cygwin 1.5.x.
26179         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26180         set gl_use_threads=no if not specified otherwise.
26181
26182 2009-08-11  Bruno Haible  <bruno@clisp.org>
26183
26184         Avoid compilation error on NetBSD 5.0.
26185         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26186         * tests/test-stdio.c: Likewise.
26187         * tests/test-stdlib.c: Likewise.
26188         * tests/test-string.c: Likewise.
26189         * tests/test-unistd.c: Likewise.
26190         Reported by Greg Troxel <gdt@ir.bbn.com>
26191         at <https://savannah.gnu.org/support/?106973>.
26192
26193 2009-08-11  Bruno Haible  <bruno@clisp.org>
26194
26195         * modules/dup2-tests (Depends-on): Remove close.
26196
26197         Undo 2009-07-19 commit.
26198         * modules/acl-tests (Depends-on): Remove close.
26199         * modules/binary-io-tests (Depends-on): Likewise.
26200         * modules/closein-tests (Depends-on): Likewise.
26201         * modules/flock-tests (Depends-on): Likewise.
26202         * modules/fsync-tests (Depends-on): Likewise.
26203         * modules/lseek-tests (Depends-on): Likewise.
26204         * modules/pipe-tests (Depends-on): Likewise.
26205         * modules/posix_spawn-tests (Depends-on): Likewise.
26206         * modules/posix_spawnp-tests (Depends-on): Likewise.
26207         * modules/stat-time-tests (Depends-on): Likewise.
26208         * modules/yesno-tests (Depends-on): Likewise.
26209
26210 2009-08-10  Bruno Haible  <bruno@clisp.org>
26211
26212         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26213
26214 2009-08-10  Bruno Haible  <bruno@clisp.org>
26215
26216         Fix a gcc warning.
26217         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26218
26219 2009-08-10  Bruno Haible  <bruno@clisp.org>
26220
26221         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26222         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26223         not only the first time.
26224         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26225         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26226         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26227         is 1, not only the the first time.
26228
26229 2009-08-10  Bruno Haible  <bruno@clisp.org>
26230
26231         Make it possible to use module 'gethostname' without module 'close'.
26232         * lib/unistd.in.h (close): Evoke a link error only if
26233         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26235         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26236         * modules/unistd (Makefile.am): Substitute
26237         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26238         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26239         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26240         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26241         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26242         * modules/sys_ioctl (Makefile.am): Substitute
26243         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26244         * modules/socket (configure.ac): On native Windows, set
26245         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26246         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26247         Reported by Sam Steingold <sds@gnu.org>.
26248
26249 2009-08-10  Bruno Haible  <bruno@clisp.org>
26250
26251         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26252         * modules/ioctl (configure.ac): Likewise.
26253
26254 2009-08-10  Bruno Haible  <bruno@clisp.org>
26255
26256         Avoid collision between gnulib wrapper and libintl wrapper.
26257         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26258         already defined in intl/printf.c.
26259         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26260         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26261
26262 2009-08-09  Bruno Haible  <bruno@clisp.org>
26263
26264         Make <sys/select.h> really self-contained, also on Solaris 10.
26265         * lib/sys_select.in.h: Include <string.h>.
26266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26267         Solaris 10 problem.
26268         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26269         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26270         Reported by Jim Meyering.
26271
26272 2009-08-09  Bruno Haible  <bruno@clisp.org>
26273
26274         Avoid warnings from 'aclocal' that are due to a use of macro name
26275         AM_XGETTEXT_OPTION that is not defined in automake.
26276         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26277         automake.
26278         * modules/error (configure.ac): Likewise.
26279         * modules/propername (configure.ac): Likewise.
26280         * modules/vasprintf (configure.ac): Likewise.
26281         * modules/verror (configure.ac): Likewise.
26282         * modules/xprintf (configure.ac): Likewise.
26283         * modules/xvasprintf (configure.ac): Likewise.
26284
26285 2009-08-08  Bruno Haible  <bruno@clisp.org>
26286
26287         Avoid compilation error in C++ mode.
26288         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26289         Reported by Sam Steingold <sds@gnu.org>.
26290
26291 2009-08-08  Bruno Haible  <bruno@clisp.org>
26292
26293         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26294         for the various Unix platforms.
26295         * doc/posix-headers/limits.texi: Update platforms list regarding
26296         HOST_NAME_MAX.
26297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26298
26299 2009-08-07  Jim Meyering  <meyering@redhat.com>
26300
26301         selinux-at: fix typo in a comment
26302         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26303         Spotted by Paolo Bonzini.
26304
26305         selinux-at: remove redundant m4 code, add documentation
26306         * modules/selinux-at (configure.ac): Remove redundant code.
26307         LIB_SELINUX is already set via the dependent module, selinux-h.
26308         (Include): Add quotes around selinux-at.h.
26309         * lib/selinux-at.h: Add documentation.
26310         Reported by Bruno Haible in
26311         http://marc.info/?l=gnulib-bug&m=124958988300749
26312
26313 2009-08-07  Bruno Haible  <bruno@clisp.org>
26314
26315         Avoid link error on MacOS X 10.3 and 10.4.
26316         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26317         on non-ELF systems.
26318         * lib/argp-pv.c (argp_program_version): Likewise.
26319         Reported by Simon Josefsson.
26320
26321 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26322
26323         * tests/test-version-etc.sh: Use $EXEEXT.
26324
26325 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26326
26327         update-copyright: update documentation to point to maint.mk
26328         * build-aux/update-copyright: Here.
26329
26330 2009-08-06  Jim Meyering  <meyering@redhat.com>
26331
26332         maint.mk: support update-copyright-local
26333         * top/maint.mk (update-copyright-local): Define place-holder.
26334         (update-copyright): Depend on $(update-copyright-local).
26335
26336 2009-08-06  Jim Meyering  <meyering@redhat.com>
26337
26338         selinux-at: new module
26339         Initially written for coreutils, this module will soon be
26340         used by findutils, too.
26341         * MODULES.html.sh [Misc]: Add selinux-at.
26342         * lib/selinux-at.h: New file, from coreutils.
26343         * lib/selinux-at.c: Likewise.
26344         * modules/selinux-at: Likewise.
26345         (License): Change from LGPL to GPL, since it depends
26346         on the GPL'd openat module.
26347
26348         doc: update README
26349         * README: Remove references to cogito.
26350         Remove cvs-repo-updating instructions from 2007.
26351         Don't imply that CVS is better if you have limited disk space.
26352
26353 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26354
26355         update-copyright: support C-style comments
26356         * build-aux/update-copyright: Implement and document.
26357         * tests/test-update-copyright.sh: Test.
26358
26359 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26360
26361         update-copyright: support omitted "(C)"
26362         * build-aux/update-copyright: Implement and document.  Also,
26363         allow variable whitespace before "(C)".
26364         * tests/test-update-copyright.sh: Test.
26365
26366 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26367
26368         update-copyright: don't trip on non-FSF copyright statements
26369         * build-aux/update-copyright: Fix so that the first correctly
26370         formatted FSF copyright statement is recognized no matter what
26371         appears before it.  Update documentation.
26372         * tests/test-update-copyright.sh: Test that.
26373
26374 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26375
26376         update-copyright: clean up code a little
26377         * build-aux/update-copyright: Append "_re" to the name of any
26378         variable holding a regular expression.
26379         Replace "old" and "new" with "stmt" in variable names.
26380         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26381         handled correctly.
26382         Format code more consistently.
26383
26384 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26385
26386         update-copyright-tests: improve portability
26387         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26388         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26389
26390 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26391
26392         update-copyright: support @copyright{} and &copy;
26393         * build-aux/update-copyright: Implement and document.
26394         * tests/test-update-copyright.sh: Test.
26395
26396 2009-08-04  Jim Meyering  <meyering@redhat.com>
26397
26398         update-copyright-tests: correctly test EOL=\r\n handling
26399         * tests/test-update-copyright.sh: Put \r at the end of some lines
26400         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26401
26402         maint.mk: make update-copyright exclusion list more configurable
26403         * top/maint.mk (update-copyright): Default to excluding COPYING,
26404         but allow an override, in case someone does want to update that file.
26405
26406         maint.mk: don't update copyright date in COPYING
26407         * top/maint.mk (update-copyright): Exclude COPYING.
26408
26409         maint.mk: add a copyright-updating rule
26410         * top/maint.mk (update-copyright): New rule.
26411         Derived from coreutils/Makefile.am.
26412
26413         update-copyright: rename some variables
26414         * build-aux/update-copyright: Rename a few variables for clarity.
26415         Tweak syntax.  List Joel E. Denny as coauthor.
26416
26417 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26418
26419         update-copyright: fix bug for 2-digit last year and add tests
26420         * build-aux/update-copyright: Fix bug.
26421         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26422         specified.
26423         * modules/update-copyright-tests: New
26424         * tests/test-update-copyright.sh: New.
26425
26426 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26427
26428         update-copyright: handle leading tabs in line prefix
26429         * build-aux/update-copyright: Count leading tabs as 8 spaces
26430         when computing margin.  This helps with the formatting of
26431         ChangeLogs, for example.
26432         Fix documentation a little.
26433
26434 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26435
26436         update-copyright: support EOL=\r\n
26437         * build-aux/update-copyright: Implement that.
26438
26439 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26440
26441         update-copyright: automatically format copyright statements
26442         * build-aux/update-copyright: Implement that.
26443         Also, be a little more predictable and safer by always failing
26444         when the full copyright format is not perfectly recognized as an
26445         unbroken whole.  Discussed at
26446         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26447         Rewrite documentation.
26448
26449 2009-08-03  Bruno Haible  <bruno@clisp.org>
26450
26451         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26452
26453 2009-08-02  Bruno Haible  <bruno@clisp.org>
26454
26455         Tests for module 'uname'.
26456         * modules/uname-tests: New file.
26457         * tests/test-uname.c: New file.
26458
26459         New module 'uname'.
26460         * lib/uname.c: New file.
26461         * m4/uname.m4: New file.
26462         * modules/uname: New file.
26463         * doc/posix-functions/uname.texi: Mention the new module.
26464
26465 2009-08-02  Bruno Haible  <bruno@clisp.org>
26466
26467         Tests for module 'sys_utsname'.
26468         * modules/sys_utsname-tests: New file.
26469         * tests/test-sys_utsname.c: New file.
26470
26471         New module 'sys_utsname'.
26472         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26473         * m4/sys_utsname_h.m4: New file.
26474         * modules/sys_utsname: New file.
26475         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26476
26477 2009-08-02  Bruno Haible  <bruno@clisp.org>
26478
26479         Implicitly initialize the sockets library.
26480         * lib/gethostname.c: Include sockets.h.
26481         (rpl_gethostname): Invoke gl_sockets_startup.
26482         * lib/socket.c: Include sockets.h.
26483         (rpl_socket): Invoke gl_sockets_startup.
26484         * modules/gethostname (Depends-on): Add sockets.
26485         * modules/socket (Depends-on): Likewise.
26486         * tests/test-poll.c: Don't include sockets.h.
26487         (main): Don't invoke gl_sockets_startup.
26488         * tests/test-select.c: Don't include sockets.h.
26489         (main): Don't invoke gl_sockets_startup.
26490
26491 2009-08-02  Bruno Haible  <bruno@clisp.org>
26492
26493         Allow multiple calls to gl_sockets_startup.
26494         * lib/sockets.c (initialized_sockets_version): New variable.
26495         (gl_sockets_startup): Do nothing if already called for this or a higher
26496         version.
26497         (gl_sockets_cleanup): Reset initialized_sockets_version.
26498
26499 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26500
26501         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26502         different project/version.
26503
26504 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26505             Bruno Haible  <bruno@clisp.org>
26506
26507         Tests for module 'pipe-filter-gi'.
26508         * modules/pipe-filter-gi-tests: New file.
26509         * tests/test-pipe-filter-gi1.sh: New file.
26510         * tests/test-pipe-filter-gi1.c: New file.
26511         * tests/test-pipe-filter-gi2.sh: New file.
26512         * tests/test-pipe-filter-gi2-main.c: New file.
26513         * tests/test-pipe-filter-gi2-child.c: New file.
26514
26515         New module 'pipe-filter-gi'.
26516         * lib/pipe-filter-gi.c: New file.
26517         * modules/pipe-filter-gi: New file.
26518
26519 2009-08-02  Bruno Haible  <bruno@clisp.org>
26520             Paolo Bonzini  <bonzini@gnu.org>
26521
26522         Tests for module 'pipe-filter-ii'.
26523         * modules/pipe-filter-ii-tests: New file.
26524         * tests/test-pipe-filter-ii1.sh: New file.
26525         * tests/test-pipe-filter-ii1.c: New file.
26526         * tests/test-pipe-filter-ii2.sh: New file.
26527         * tests/test-pipe-filter-ii2-main.c: New file.
26528         * tests/test-pipe-filter-ii2-child.c: New file.
26529
26530         New module 'pipe-filter-ii'.
26531         * lib/pipe-filter.h: New file.
26532         * lib/pipe-filter-ii.c: New file.
26533         * lib/pipe-filter-aux.h: New file.
26534         * modules/pipe-filter-ii: New file.
26535
26536 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26537
26538         * lib/gc-libgcrypt.c: Change copyright to FSF.
26539         * lib/gc-gnulib.c: Likewise.
26540
26541 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26542
26543         * lib/gethostname.c: Include limits.h.
26544
26545 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26546             Bruno Haible  <bruno@clisp.org>
26547
26548         Ensure HOST_NAME_MAX as part of the gethostname module.
26549         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26550         define also HOST_NAME_MAX.
26551         * tests/test-gethostname.c: Include <limits.h>.
26552         (main): Check also HOST_NAME_MAX.
26553         * doc/posix-headers/limits.texi: Document the mingw problem.
26554
26555 2009-08-02  Bruno Haible  <bruno@clisp.org>
26556
26557         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26558         Add comments.
26559
26560 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26561
26562         * lib/gethostname.c: Add Windows wrapper.
26563         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26564         * modules/gethostname: Depend on sys_socket & errno, for also
26565         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26566         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26567
26568 2009-07-31  Jim Meyering  <meyering@redhat.com>
26569
26570         getloadavg: fix symbol name in comment
26571         * lib/getloadavg.c: Correct a typo I introduced when adding
26572         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26573         Matt Kraai spotted the problem.
26574
26575 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26576
26577         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26578         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26579         code also if ! defined N_NAME_POINTER.
26580         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26581         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26582         but the n_name member is a 12-byte array.
26583
26584 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26585
26586         update-copyright: generalize comment handling
26587         * build-aux/update-copyright: Handle copyright statements
26588         within more comment styles.
26589         Document usage.
26590         Report any file with an external copyright holder or parse failure.
26591
26592 2009-07-29  Jim Meyering  <meyering@redhat.com>
26593
26594         mktime: correct setting of REPLACE_MKTIME
26595         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26596
26597         update-copyright: new module
26598         * modules/update-copyright: New file.
26599         * build-aux/update-copyright: New file.
26600         * MODULES.html.sh (maint+release support): Add update-copyright.
26601
26602 2009-07-27  Bruno Haible  <bruno@clisp.org>
26603
26604         Fix compilation error when <ctime> is used and mktime is replaced.
26605         * lib/time.in.h (mktime): New declaration.
26606         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26607         REPLACE_MKTIME instead of defining mktime in config.h.
26608         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26609         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26610         Reported by Ross McFarland <rwmcfa1@neces.com>.
26611
26612 2009-07-27  Bruno Haible  <bruno@clisp.org>
26613
26614         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26615         Reported by Matt Kraai <mkraai@beckman.com>.
26616
26617 2009-07-25  Jim Meyering  <meyering@redhat.com>
26618
26619         maint.mk: avoid warnings about missing files
26620         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26621         diagnostic when .prev-version does not exist.
26622         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26623         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26624         nonexistent cfg.mk.
26625         Suggestions from Simon Josefsson.
26626
26627 2009-07-25  Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26630         defined as macros. Needed on QNX 6.4.1.
26631         Reported by Matt Kraai <mkraai@beckman.com>.
26632
26633 2009-07-23  Jim Meyering  <meyering@redhat.com>
26634
26635         maint.mk: invoke "make dist" with a working value of XZ_OPT
26636         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26637
26638 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26639
26640         Make fseeko.c compile on QNX.
26641         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26642
26643 2009-07-22  Peter Simons  <simons@cryp.to>
26644
26645         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26646         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26647         * lib/md4.h: Likewise.
26648         * lib/md5.h: Likewise.
26649         * lib/sha1.h: Likewise.
26650         * lib/sha256.h: Likewise.
26651         * lib/sha512.h: Likewise.
26652
26653         tests-sha1: don't assign literal string to 'char *' variable
26654         * tests/test-sha1.c (main): Declare locals with "const" to match
26655         attributes of the right hand side.
26656
26657 2009-07-21  Eric Blake  <ebb9@byu.net>
26658
26659         dup2: fix more mingw problems
26660         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26661         fd to itself.
26662         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26663         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26664         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26665         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26666         care of mingw bugs.
26667
26668 2009-07-21  Jim Meyering  <meyering@redhat.com>
26669
26670         vc-list-files: avoid failure when /bin/sh is dash
26671         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26672         On some Debian based systems, /bin/sh is a symlink to dash, and running
26673         this command would omit the "/" following each 'tests' prefix:
26674           dash -x build-aux/vc-list-files -C . tests
26675         That is because bash and dash work differently:
26676           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26677           bash ok
26678           dash odd
26679
26680 2009-07-21  Eric Blake  <ebb9@byu.net>
26681
26682         dup2-tests: test previous patch
26683         * modules/dup2-tests: New file.
26684         * tests/test-dup2.c: Likewise.
26685         * tests/test-open.c (main): Avoid unspecified behavior.
26686         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26687         test.
26688
26689         dup2: work around mingw and cygwin 1.5 bug
26690         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26692         * modules/unistd (Makefile.am): Substitute it.
26693         * lib/unistd.in.h (dup2): Declare the replacement.
26694         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26695         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26696         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26697         * modules/execute (Depends-on): Add dup2.
26698         * modules/fseterr (Depends-on): Likewise.
26699         * modules/pipe (Depends-on): Likewise.
26700         * modules/posix_spawn-internal (Depends-on): Likewise.
26701
26702 2009-07-21  Bruno Haible  <bruno@clisp.org>
26703
26704         * modules/.gitattributes: New file.
26705
26706 2009-07-20  Bruno Haible  <bruno@clisp.org>
26707
26708         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26709         (main): Use it.
26710
26711 2009-07-20  Eric Blake  <ebb9@byu.net>
26712
26713         test-pipe: make a bit more robust.
26714         * tests/test-pipe.c (myerr): Allow error messages regardless of
26715         what we do to stderr.
26716         (test_pipe): Rearrange to avoid deadlock.
26717         (child_main): Try a larger read, to ensure we avoided deadlock.
26718         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26719         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26720         if misused.
26721
26722 2009-07-19  Jim Meyering  <meyering@redhat.com>
26723
26724         fts: avoid false-positive cycle-detection
26725         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26726         for each new command line argument.
26727
26728 2009-07-19  Bruno Haible  <bruno@clisp.org>
26729
26730         Fix build error on mingw with the modules sys_select and unistd.
26731         * modules/acl-tests (Depends-on): Add close.
26732         * modules/binary-io-tests (Depends-on): Likewise.
26733         * modules/closein-tests (Depends-on): Likewise.
26734         * modules/flock-tests (Depends-on): Likewise.
26735         * modules/fsync-tests (Depends-on): Likewise.
26736         * modules/lseek-tests (Depends-on): Likewise.
26737         * modules/pipe-tests (Depends-on): Likewise.
26738         * modules/posix_spawn-tests (Depends-on): Likewise.
26739         * modules/posix_spawnp-tests (Depends-on): Likewise.
26740         * modules/stat-time-tests (Depends-on): Likewise.
26741         * modules/yesno-tests (Depends-on): Likewise.
26742
26743 2009-07-19  Bruno Haible  <bruno@clisp.org>
26744
26745         Unify conditionals.
26746         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26747         macros, not at the compiler macros.
26748         * lib/pipe.c: Likewise.
26749         * lib/execute.c: Likewise.
26750         * lib/spawni.c: Likewise.
26751
26752 2009-07-19  Bruno Haible  <bruno@clisp.org>
26753
26754         Fix handling of closed stdin/stdout/stderr on mingw.
26755         * lib/w32spawn.h: Include unistd.h.
26756         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26757         file descriptor with O_NOINHERIT flag.
26758         (fd_safer_noinherit): New function, based on fd-safer.c.
26759         (dup_safer_noinherit): New function, based on dup-safer.c.
26760         (undup_safer_noinherit): New function.
26761         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26762         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26763         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26764         instead of fd_safer.
26765         * tests/test-pipe.c: Include <windows.h>.
26766         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26767
26768         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26769         from main.
26770         (test_pipe): Pass an extra argument for disambiguation.
26771         (main): Invoke parent_main or child_main.
26772
26773         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26774         consistently.
26775
26776 2009-07-18  Eric Blake  <ebb9@byu.net>
26777
26778         test-pipe: fix mingw build
26779         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26780
26781 2009-07-18  Bruno Haible  <bruno@clisp.org>
26782
26783         * modules/pipe-tests (Makefile.am): Fix typo.
26784
26785 2009-07-18  Eric Blake  <ebb9@byu.net>
26786
26787         error: fix mingw build
26788         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26789         Reported by Bruno Haible.
26790
26791         error: avoid undefined use of stdout
26792         * lib/error.c (error, error_at_line): Check that fd 1 is open
26793         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26794         is handling faults and the close_stdout module wants to report the
26795         detection of closed stdout as an error.
26796
26797 2009-07-17  Eric Blake  <ebb9@byu.net>
26798
26799         pipe: be robust in face of closed fds
26800         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26801         should cause child to misbehave.
26802         * modules/pipe-tests: New module.
26803         * tests/test-pipe.c: New file.
26804         * tests/test-pipe.sh: New file.
26805         Reported by Akim Demaille.
26806
26807 2009-07-14  Bruno Haible  <bruno@clisp.org>
26808
26809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26810         Reported by anonymous kc.
26811
26812 2009-07-07  Jim Meyering  <meyering@redhat.com>
26813
26814         maint.mk: don't look for translatable strings in *.m4 or *.mk
26815         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26816         when searching for translatable strings.
26817
26818 2009-07-05  Jim Meyering  <meyering@redhat.com>
26819
26820         remove superfluous parentheses in STREQ definition
26821         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26822         * lib/getugroups.c (STREQ): Likewise.
26823         * lib/fnmatch.c (STREQ): Likewise.
26824         Spotted by Bruno Haible.
26825
26826 2009-07-04  Jim Meyering  <meyering@redhat.com>
26827
26828         argv-iter: new module
26829         * MODULES.html.sh: Add argv-iter.
26830         * lib/argv-iter.c, lib/argv-iter.h: New files.
26831         * modules/argv-iter: New file.
26832         * modules/argv-iter-tests: New file.
26833         * tests/test-argv-iter.c: Test it.
26834
26835 2009-07-04  Bruno Haible  <bruno@clisp.org>
26836
26837         Fix assertion.
26838         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26839         contains more exact copies of a given entry than file2, leave the extra
26840         copies unpaired rather than aborting.
26841         Reported by Eric Blake.
26842
26843 2009-07-02  Bruno Haible  <bruno@clisp.org>
26844
26845         Speedup git-merge-changelog for git cherry-pick.
26846         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26847         (entries_mapping_get): New function, extracted from compute_mapping.
26848         (entries_mapping_reverse_get): New function.
26849         (compute_mapping): Add a 'full' argument. Return the result in a
26850         'struct entries_mapping'.
26851         (main): Update. Access the mappings through entries_mapping_get.
26852         Reported by Eric Blake.
26853
26854 2009-07-02  Bruno Haible  <bruno@clisp.org>
26855
26856         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26857         best_i.
26858
26859 2009-07-02  Bruno Haible  <bruno@clisp.org>
26860
26861         Speed up approximate search for matching ChangeLog entries.
26862         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26863         argument. Call fstrcmp_bounded instead of fstrcmp.
26864         (compute_mapping, try_split_merged_entry, main): Update callers.
26865
26866 2009-07-02  Bruno Haible  <bruno@clisp.org>
26867
26868         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26869
26870 2009-06-30  Bruno Haible  <bruno@clisp.org>
26871
26872         Reduce the number of uc_is_cased calls.
26873         * lib/unicase.h (casing_suffix_context_t): Add
26874         'first_char_except_ignorable' field.
26875         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26876         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26877         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26878         Update initializer.
26879         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26880         case-ignorable characters.
26881         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26882         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26883         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26884         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26885         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26886
26887 2009-06-30  Bruno Haible  <bruno@clisp.org>
26888
26889         Tests for module 'unicase/ignorable'.
26890         * modules/unicase/ignorable-tests: New file.
26891         * tests/unicase/test-ignorable.c: New file, generated by
26892         gen-uni-tables.
26893
26894         Tests for module 'unicase/cased'.
26895         * modules/unicase/cased-tests: New file.
26896         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26897         * tests/unicase/test-predicate-part1.h: New file, derived from
26898         tests/unictype/test-predicate-part1.h.
26899         * tests/unicase/test-predicate-part2.h: New file, same as
26900         tests/unictype/test-predicate-part2.h.
26901
26902         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26903         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26904         (output_casing_properties): New function.
26905         (main): Call it.
26906         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26907         * lib/unicase/cased.c: Include unictype/bitmap.h.
26908         (uc_is_cased): Define through a bitmap lookup.
26909         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26910         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26911         (uc_is_case_ignorable): Define through a bitmap lookup.
26912         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26913         lib/unictype/bitmap.h.
26914         (Depends-on): Add inline. Clean up.
26915         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26916         lib/unictype/bitmap.h.
26917         (Depends-on): Add inline. Clean up.
26918         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26919         recognition.
26920         * tests/unicase/test-u16-tolower.c (main): Likewise.
26921         * tests/unicase/test-u32-tolower.c (main): Likewise.
26922
26923 2009-06-30  Bruno Haible  <bruno@clisp.org>
26924
26925         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26926         * lib/unicase/u16-casemap.c: Likewise.
26927         * lib/unicase/u32-casemap.c: Likewise.
26928
26929 2009-06-29  Bruno Haible  <bruno@clisp.org>
26930
26931         Define u32_casefold as a wrapper around u32_ct_casefold.
26932         * lib/unicase/u32-casefold.c: Update.
26933         * modules/unicase/u32-casefold (Depends-on): Add
26934         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26935         unicase/empty-suffix-context. Clean up.
26936
26937         Define u16_casefold as a wrapper around u16_ct_casefold.
26938         * lib/unicase/u16-casefold.c: Update.
26939         * modules/unicase/u16-casefold (Depends-on): Add
26940         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26941         unicase/empty-suffix-context. Clean up.
26942
26943         Define u8_casefold as a wrapper around u8_ct_casefold.
26944         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26945         * lib/unicase/u8-casefold.c: Update.
26946         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26947         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26948
26949         Define u32_totitle as a wrapper around u32_ct_totitle.
26950         * lib/unicase/u32-totitle.c: Update.
26951         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26952         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26953
26954         Define u16_totitle as a wrapper around u16_ct_totitle.
26955         * lib/unicase/u16-totitle.c: Update.
26956         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26957         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26958
26959         Define u8_totitle as a wrapper around u8_ct_totitle.
26960         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26961         functions.
26962         (FUNC): Delegate to U_CT_TOTITLE.
26963         * lib/unicase/u8-totitle.c: Update.
26964         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26965         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26966
26967         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26968         invocation.
26969         * modules/unicase/u32-tolower (Depends-on): Add
26970         unicase/empty-prefix-context, unicase/empty-suffix-context.
26971
26972         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26973         invocation.
26974         * modules/unicase/u16-tolower (Depends-on): Add
26975         unicase/empty-prefix-context, unicase/empty-suffix-context.
26976
26977         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26978         * modules/unicase/u8-tolower (Depends-on): Add
26979         unicase/empty-prefix-context, unicase/empty-suffix-context.
26980
26981         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26982         invocation.
26983         * modules/unicase/u32-toupper (Depends-on): Add
26984         unicase/empty-prefix-context, unicase/empty-suffix-context.
26985
26986         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26987         invocation.
26988         * modules/unicase/u16-toupper (Depends-on): Add
26989         unicase/empty-prefix-context, unicase/empty-suffix-context.
26990
26991         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26992         * modules/unicase/u8-toupper (Depends-on): Add
26993         unicase/empty-prefix-context, unicase/empty-suffix-context.
26994
26995         New module 'unicase/u32-ct-casefold'.
26996         * lib/unicase/u32-ct-casefold.c: New file.
26997         * modules/unicase/u32-ct-casefold: New file.
26998
26999         New module 'unicase/u16-ct-casefold'.
27000         * lib/unicase/u16-ct-casefold.c: New file.
27001         * modules/unicase/u16-ct-casefold: New file.
27002
27003         New module 'unicase/u8-ct-casefold'.
27004         * lib/unicase/u8-ct-casefold.c: New file.
27005         * lib/unicase/u-ct-casefold.h: New file, derived from
27006         lib/unicase/u-casefold.h.
27007         * modules/unicase/u8-ct-casefold: New file.
27008
27009         New module 'unicase/u32-ct-totitle'.
27010         * lib/unicase/u32-ct-totitle.c: New file.
27011         * modules/unicase/u32-ct-totitle: New file.
27012
27013         New module 'unicase/u16-ct-totitle'.
27014         * lib/unicase/u16-ct-totitle.c: New file.
27015         * modules/unicase/u16-ct-totitle: New file.
27016
27017         New module 'unicase/u8-ct-totitle'.
27018         * lib/unicase/u8-ct-totitle.c: New file.
27019         * lib/unicase/u-ct-totitle.h: New file, derived from
27020         lib/unicase/u-totitle.h.
27021         * modules/unicase/u8-ct-totitle: New file.
27022
27023         New module 'unicase/u32-ct-tolower'.
27024         * lib/unicase/u32-ct-tolower.c: New file.
27025         * modules/unicase/u32-ct-tolower: New file.
27026
27027         New module 'unicase/u16-ct-tolower'.
27028         * lib/unicase/u16-ct-tolower.c: New file.
27029         * modules/unicase/u16-ct-tolower: New file.
27030
27031         New module 'unicase/u8-ct-tolower'.
27032         * lib/unicase/u8-ct-tolower.c: New file.
27033         * modules/unicase/u8-ct-tolower: New file.
27034
27035         New module 'unicase/u32-ct-toupper'.
27036         * lib/unicase/u32-ct-toupper.c: New file.
27037         * modules/unicase/u32-ct-toupper: New file.
27038
27039         New module 'unicase/u16-ct-toupper'.
27040         * lib/unicase/u16-ct-toupper.c: New file.
27041         * modules/unicase/u16-ct-toupper: New file.
27042
27043         New module 'unicase/u8-ct-toupper'.
27044         * lib/unicase/u8-ct-toupper.c: New file.
27045         * modules/unicase/u8-ct-toupper: New file.
27046
27047         Add context arguments to u*_casemap functions.
27048         * lib/unicase/unicasemap.h: Include unicase.h.
27049         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27050         suffix_context arguments.
27051         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27052         functions.
27053         (FUNC): Add prefix_context and suffix_context arguments. Use
27054         uc_is_cased and uc_is_case_ignorable.
27055         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27056         * lib/unicase/u16-casemap.c: Likewise.
27057         * lib/unicase/u32-casemap.c: Likewise.
27058         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27059         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27060         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27061         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27062         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27063         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27064
27065         New module 'unicase/u32-suffix-context'.
27066         * lib/unicase/u32-suffix-context.c: New file.
27067         * modules/unicase/u32-suffix-context: New file.
27068
27069         New module 'unicase/u16-suffix-context'.
27070         * lib/unicase/u16-suffix-context.c: New file.
27071         * modules/unicase/u16-suffix-context: New file.
27072
27073         New module 'unicase/u8-suffix-context'.
27074         * lib/unicase/u8-suffix-context.c: New file.
27075         * lib/unicase/u-suffix-context.h: New file.
27076         * modules/unicase/u8-suffix-context: New file.
27077
27078         New module 'unicase/empty-suffix-context'.
27079         * lib/unicase/empty-suffix-context.c: New file.
27080         * modules/unicase/empty-suffix-context: New file.
27081
27082         New module 'unicase/u32-prefix-context'.
27083         * lib/unicase/u32-prefix-context.c: New file.
27084         * modules/unicase/u32-prefix-context: New file.
27085
27086         New module 'unicase/u16-prefix-context'.
27087         * lib/unicase/u16-prefix-context.c: New file.
27088         * modules/unicase/u16-prefix-context: New file.
27089
27090         New module 'unicase/u8-prefix-context'.
27091         * lib/unicase/u8-prefix-context.c: New file.
27092         * lib/unicase/u-prefix-context.h: New file.
27093         * lib/unicase/context.h: New file.
27094         * modules/unicase/u8-prefix-context: New file.
27095
27096         New module 'unicase/empty-prefix-context'.
27097         * lib/unicase/empty-prefix-context.c: New file.
27098         * modules/unicase/empty-prefix-context: New file.
27099
27100         New module 'unicase/ignorable'.
27101         * lib/unicase/ignorable.c: New file.
27102         * modules/unicase/ignorable: New file.
27103
27104         New module 'unicase/cased'.
27105         * lib/unicase/caseprop.h: New file.
27106         * lib/unicase/cased.c: New file.
27107         * modules/unicase/cased: New file.
27108
27109         New functions for case mapping of substrings.
27110         * lib/unicase.h (casing_prefix_context_t): New type.
27111         (unicase_empty_prefix_context): New variable.
27112         (u8_casing_prefix_context, u16_casing_prefix_context,
27113         u32_casing_prefix_context, u8_casing_prefixes_context,
27114         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27115         declarations.
27116         (casing_suffix_context_t): New type.
27117         (unicase_empty_suffix_context): New variable.
27118         (u8_casing_suffix_context, u16_casing_suffix_context,
27119         u32_casing_suffix_context, u8_casing_suffixes_context,
27120         u16_casing_suffixes_context, u32_casing_suffixes_context,
27121         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27122         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27123         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27124         declarations.
27125
27126 2009-06-28  Jim Meyering  <meyering@redhat.com>
27127
27128         boostrap: indent only with spaces
27129         * build-aux/bootstrap: Indent only with spaces, never TABs.
27130
27131         bootstrap: split long lines
27132         * build-aux/bootstrap: Keep line length < 80.
27133
27134         bootstrap: sync from coreutils
27135         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27136         just as autoreconf does.  Verify a list of prerequisite
27137         package-name,version-number pairs if defined in bootstrap.conf.
27138         Refer to README-prereq, if prerequisites are not satisfied.
27139
27140 2009-06-27  Eric Blake  <ebb9@byu.net>
27141
27142         tests: add test for bogus NULL definition
27143         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27144         * tests/test-stdlib.c: Likewise.
27145         * tests/test-string.c: Likewise.
27146         * tests/test-locale.c: Likewise.
27147         * tests/test-unistd.c: Likewise.
27148         * modules/stdio-tests (Depends-on): Add verify.
27149         * modules/stdlib-tests (Depends-on): Likewise.
27150         * modules/string-tests (Depends-on): Likewise.
27151         * modules/locale-tests (Depends-on): Likewise.
27152         * modules/unistd-tests (Depends-on): Likewise.
27153
27154 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27155
27156         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27157         self-explaining comment.
27158         * m4/selinux-selinux-h: Update serial.
27159         (gl_LIBSELINUX): New macro, adding a warning for missing development
27160         packages to code extracted from...
27161         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27162         Add warning for missing development packages here, too.
27163
27164 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27165
27166         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27167
27168 2009-06-25  Eric Blake  <ebb9@byu.net>
27169
27170         version-etc: fix regression
27171         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27172         gcc.
27173         (version_etc): Use it, to catch bugs with trailing NULL.
27174         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27175         (version_etc_va): Fix logic bug.
27176         * modules/version-etc-tests: Add test.
27177         * tests/test-version-etc.c: New file.
27178         * tests/test-version-etc.sh: Likewise.
27179
27180 2009-06-25  Sam Steingold  <sds@gnu.org>
27181
27182         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27183         mbtowc declaration.
27184
27185 2009-06-25  Eric Blake  <ebb9@byu.net>
27186
27187         fpurge: migrate into <stdio.h>
27188         * lib/fpurge.h: Delete...
27189         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27190         * lib/fpurge.c (fpurge): Change declaring header.
27191         * modules/fpurge (Files): Drop deleted file.
27192         (Depends-on): Add stdio.
27193         (configure.ac): Set witness.
27194         * modules/stdio (Makefile.am): Support fpurge macros.
27195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27197         * lib/fflush.c: Update client.
27198         * tests/test-fpurge.c: Likewise.
27199         * NEWS: Mention the change.
27200
27201 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27202
27203         * lib/argp-version-etc.c (program_authors): Add const
27204         qualifier.
27205         * lib/version-etc.c: Fix typos in the comments.
27206         * modules/argp-version-etc: Depends on version-etc.
27207
27208 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27209
27210         argp-version-etc: new module.
27211
27212         * lib/argp-version-etc.c: New file.
27213         * lib/argp-version-etc.h: New file.
27214         * modules/argp-version-etc: New file.
27215         * modules/argp-version-etc-tests: New file.
27216         * tests/test-argp-version-etc.c: New test.
27217         * tests/test-argp-version-etc-1.sh: New test.
27218
27219 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27220
27221         Provide additional interfaces and documentation for version-etc
27222         module.
27223
27224         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27225         interfaces.
27226         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27227         prototypes.
27228
27229 2009-06-24  Bruno Haible  <bruno@clisp.org>
27230
27231         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27232         HAVE_LIB${NAME} macro.
27233         Reported by Sam Steingold <sds@gnu.org>.
27234
27235 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27236
27237         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27238         needed.
27239
27240 2009-06-21  Bruno Haible  <bruno@clisp.org>
27241
27242         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27243         work.
27244         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27245         together with LIB${NAME}, LTLIB${NAME}.
27246         Reported by Sam Steingold <sds@gnu.org>.
27247
27248 2009-06-20  Jim Meyering  <meyering@redhat.com>
27249
27250         tests: make sc_require_test_exit_idiom more generic
27251         * top/maint.mk (Exit_witness_file): New overridable variable.
27252         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27253         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27254
27255 2009-06-19  Jim Meyering  <meyering@redhat.com>
27256
27257         hash: reverse order of src/dst parameters in an internal interface
27258         * lib/hash.c (transfer_entries): Reverse order of parameters to
27259         put DST before SRC.  Adjust callers.
27260
27261         tests: test-hash: avoid wholesale duplication
27262         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27263         Instead, use a loop and add a single conditional.
27264
27265         tests: test-hash: allow seed selection via a command line argument
27266         * tests/test-hash.c (get_seed): New function.
27267         (main): Use it.
27268
27269 2009-06-19  Eric Blake  <ebb9@byu.net>
27270
27271         hash: avoid memory leak on allocation failure
27272         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27273         failure.  Factor repeated algorithm...
27274         (transfer_entries): ...into new helper routine.
27275         (hash_delete): React to hash_rehash return value.
27276
27277         hash: reduce memory pressure in hash_rehash no-op case
27278         * lib/hash.c (next_prime): Avoid overflow.
27279         (hash_initialize): Factor bucket size computation...
27280         (compute_bucket_size): ...into new helper function.
27281         (hash_rehash): Use new function and open coding to reduce memory
27282         pressure, and avoid a memory leak in USE_OBSTACK code.
27283         Reported by Jim Meyering.
27284
27285 2009-06-18  Eric Blake  <ebb9@byu.net>
27286
27287         hash: make rotation more obvious
27288         * modules/hash (Depends-on): Add bitrotate and stdint.
27289         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27290         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27291         (SIZE_MAX): Rely on headers for definition.
27292         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27293         (raw_hasher): Use rotr_sz.
27294         Suggested by Jim Meyering.
27295
27296         hash: fix memory leak in last patch
27297         * lib/hash.c (hash_rehash): Avoid memory leak.
27298
27299         hash: avoid no-op rehashing
27300         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27301
27302         hash: provide default callback functions
27303         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27304         (hash_initialize): Use them as defaults.
27305         * tests/test-hash.c (main): Test this.
27306
27307         hash: minor optimization
27308         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27309         when possible.
27310         (hash_initialize): Document this promise.
27311         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27312         * tests/test-hash.c (hash_compare_strings): Test this.
27313
27314 2009-06-18  Bruno Haible  <bruno@clisp.org>
27315
27316         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27317         going to be replaced anyway.
27318
27319 2009-06-18  Bruno Haible  <bruno@clisp.org>
27320
27321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27322         in one place.
27323         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27324         be replaced anyway.
27325
27326 2009-06-18  Eric Blake  <ebb9@byu.net>
27327
27328         hash: check for resize before insertion
27329         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27330         threshold before insertion, so that a pathological hash_rehash
27331         that fills every bucket can still trigger another rehash.
27332
27333 2009-06-18  Jim Meyering  <meyering@redhat.com>
27334
27335         hash-tests: add a loop around the small tests
27336         * tests/test-hash.c (main): Repeat small tests with selected
27337         small initial table sizes.
27338
27339 2009-06-17  Eric Blake  <ebb9@byu.net>
27340
27341         hash: minor cleanups
27342         * lib/hash.h (hash_entry): Make opaque, by moving...
27343         * lib/hash.c (hash_entry): ...here.
27344         (hash_insert): Clarify restrictions on what can be inserted.
27345         (hash_get_next): Clarify when it is safe to remove an element
27346         during traversal.
27347         (check_tuning): Skip verification when tuning is known safe.
27348         (hash_initialize): Clarify restrictions on tuning.
27349
27350 2009-06-17  Jim Meyering  <jim@meyering.net>
27351         and Eric Blake  <ebb9@byu.net>
27352
27353         hash-tests: new module
27354         * modules/hash-tests: New file.
27355         * tests/test-hash.c: New file.
27356
27357 2009-06-17  Eric Blake  <ebb9@byu.net>
27358
27359         strstr-simple: document new module
27360         * MODULES.html.sh: Document new module.
27361
27362         strstr, strcasestr: replace on platforms with broken memchr
27363         * modules/strstr: Split into...
27364         * modules/strstr-simple: ...new module that does not care about
27365         performance, but does care about glibc bug.
27366         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27367         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27368         if platform memchr is broken, per Debian bug 521737.
27369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27370         memchr.
27371         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27372         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27373         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27374         * modules/mountlist (Depends-on): Add strstr-simple.
27375         * modules/gen-uni-tables (Depends-on): Likewise.
27376         * modules/argz (Depends-on): Add strstr.
27377
27378 2009-06-17  Bruno Haible  <bruno@clisp.org>
27379
27380         * modules/posix_spawn-internal (Depends-on): Add errno.
27381
27382 2009-06-17  Bruno Haible  <bruno@clisp.org>
27383
27384         Define missing ESTALE on Interix 3.5.
27385         * lib/errno.in.h (ESTALE): Assign a value if missing.
27386         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27387         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27388         missing.
27389         * doc/posix-headers/errno.texi: Mention the Interix bug.
27390         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27391
27392 2009-06-15  Eric Blake  <ebb9@byu.net>
27393
27394         memchr, memchr2: add valgrind exception
27395         * lib/memchr.valgrind: New file.
27396         * lib/memchr2.valgrind: New file.
27397         * modules/memchr (Files): Distribute valgrind file.
27398         * modules/memchr2 (Files): Likewise.
27399
27400         docs: memchr is no longer obsolete
27401         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27402         * lib/string.in.h (memchr): Simplify logic.
27403
27404 2009-06-14  Jim Meyering  <meyering@redhat.com>
27405
27406         link-follow: fix the "checking..." message to not mention trailing slash
27407         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27408         never considered trailing slashes.
27409
27410 2009-06-14  Bruno Haible  <bruno@clisp.org>
27411
27412         * m4/memchr.m4: Mention also the bug on IA-64.
27413         * doc/posix-functions/memchr.texi: Likewise.
27414
27415 2009-06-12  Eric Blake  <ebb9@byu.net>
27416
27417         memchr: detect broken x86_64 and alpha implementations
27418         * modules/memchr-tests (Depends-on): Move mmap detection...
27419         * modules/memchr (Depends-on): ...here.
27420         (configure.ac): Set indicator.
27421         * lib/string.in.h (memchr): Declare replacement.
27422         * modules/string (Makefile.am): Trigger replacement.
27423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27424         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27425         bugs.
27426         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27427         * modules/getpagesize (License): Relax license.
27428
27429 2009-06-11  Bruno Haible  <bruno@clisp.org>
27430
27431         * lib/idpriv.h: Add more references.
27432
27433 2009-06-08  Bruno Haible  <bruno@clisp.org>
27434
27435         Tests for module 'idpriv-droptemp'.
27436         * modules/idpriv-droptemp-tests: New file.
27437         * tests/test-idpriv-droptemp.sh: New file.
27438         * tests/test-idpriv-droptemp.su.sh: New file.
27439         * tests/test-idpriv-droptemp.c: New file.
27440
27441         New module 'idpriv-droptemp'.
27442         * lib/idpriv-droptemp.c: New file.
27443         * modules/idpriv-droptemp: New file.
27444
27445 2009-06-08  Bruno Haible  <bruno@clisp.org>
27446
27447         Tests for module 'idpriv-drop'.
27448         * modules/idpriv-drop-tests: New file.
27449         * tests/test-idpriv-drop.sh: New file.
27450         * tests/test-idpriv-drop.su.sh: New file.
27451         * tests/test-idpriv-drop.c: New file.
27452
27453         New module 'idpriv-drop'.
27454         * lib/idpriv.h: New file.
27455         * lib-idpriv-drop.c: New file.
27456         * m4/idpriv.m4: New file.
27457         * modules/idpriv-drop: New file.
27458
27459 2009-06-08  Bruno Haible  <bruno@clisp.org>
27460
27461         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27462         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27463         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27464         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27465         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27466         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27467         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27468
27469 2009-06-08  Eric Blake  <ebb9@byu.net>
27470
27471         test-strstr: use memory fence, when possible
27472         * tests/test-strstr.c (main): Use memory fence, in order to be
27473         more likely to trigger Debian bug 521737.
27474         * modules/strstr-tests (Files): Pull in additional files.
27475
27476         memchr: no longer obsolete, for wider field testing
27477         * modules/memchr (Status, Notice): Delete, this module is no
27478         longer obsolete.
27479         * modules/vasnprintf (Depends-on): Add memchr.
27480
27481 2009-06-07  Jim Meyering  <meyering@redhat.com>
27482
27483         hash: declare some functions with the warn_unused_result attribute
27484         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27485
27486 2009-06-07  Bruno Haible  <bruno@clisp.org>
27487
27488         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27489         Reported by Eric Blake.
27490
27491 2009-06-06  Eric Blake  <ebb9@byu.net>
27492
27493         test-alignof: fix typo with long double
27494         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27495         compiler error.
27496
27497 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27498
27499         Escape non-texinfo { and }s.
27500         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27501         markup error.
27502
27503 2009-06-04  Jim Meyering  <meyering@redhat.com>
27504
27505         gitlog-to-changelog: don't infloop on an empty commit log
27506         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27507         Reported by Boris Petersen <transacid@centerim.org>.
27508
27509 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27510
27511         version-etc: extend for packagers
27512         Add three new configure options, intended for packagers:
27513           --with-packager="packager name"
27514           --with-packager-version="packager-specific version"
27515           --with-packager-bug-reports="packager bug reporting"
27516         An example with coreutils:
27517           $ ./configure \
27518             --with-packager=Gentoo \
27519             --with-packager-bug-report=http://bugs.gentoo.org/ \
27520             --with-packager-version="patchset 1.6"
27521           $ ./src/ls --version | head -n2
27522           ls (GNU coreutils) 7.1-dirty
27523           Packaged by Gentoo (patchset 1.6)
27524         Note that the bug reporting info via --help doesn't show up because
27525         coreutils uses its own custom emit_bug_reporting_address() implementation
27526         in src/system.h.  If it didn't, it'd look like:
27527           $ ./src/ls --help | tail -n4
27528           Report bugs to <bug-coreutils@gnu.org>.
27529           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27530           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27531           General help using GNU software: <http://www.gnu.org/gethelp/>.
27532         * lib/version-etc.c: Print new information, if provided.
27533         * m4/version-etc.m4: New file.
27534         * modules/version-etc (Files): Add m4/version-etc.m4.
27535         (configure.ac): Add gl_VERSION_ETC.
27536
27537 2009-05-31  Bruno Haible  <bruno@clisp.org>
27538
27539         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27540         and 'int64_t'.
27541         * modules/alignof-tests (Dependencies): Add stdint.
27542         Reported by Eric Blake.
27543
27544 2009-05-31  Bruno Haible  <bruno@clisp.org>
27545
27546         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27547         restriction due to compiler bugs.
27548         Reported by Eric Blake.
27549
27550 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27551             Bruno Haible  <bruno@clisp.org>
27552
27553         Fix test-alignof failure.
27554         * lib/alignof.h (alignof_slot): New macro.
27555         (alignof_type): New macro, with the same semantics as the previous
27556         'alignof'.
27557         (alignof): Alias to alignof_slot.
27558         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27559         check that the results are usable as constant expressions.
27560
27561 2009-05-31  Bruno Haible  <bruno@clisp.org>
27562
27563         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27564         * tests/test-memchr.c (main): Check that memchr does not read past the
27565         first occurrence of the byte.
27566         * tests/test-strstr.c (main): Update comment.
27567         Suggested by Eric Blake.
27568
27569 2009-05-30  Bruno Haible  <bruno@clisp.org>
27570
27571         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27572         detail how to use dumpbin.
27573         Reported by David Byron <dbyron@dbyron.com>.
27574
27575 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27576
27577         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27578
27579 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27580
27581         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27582
27583 2009-05-28  Bruno Haible  <bruno@clisp.org>
27584
27585         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27586         build-aux/ files.
27587
27588 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27589
27590         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27591
27592 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27593
27594         * gnulib-tool (sed_transform_main_lib_file)
27595         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27596         regexps.
27597
27598 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27599
27600         * tests/test-strstr.c: Add another self-test.
27601         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27602         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27603
27604 2009-05-23  Bruno Haible  <bruno@clisp.org>
27605
27606         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27607         change.
27608
27609 2009-05-21  Bruno Haible  <bruno@clisp.org>
27610
27611         Simplify use of mode_t varargs.
27612         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27613         uses 'mode_t' or 'int'.
27614         * lib/openat.c (openat): Likewise.
27615         * lib/open-safer.c (open_safer): Likewise.
27616         * m4/mode_t.m4: New file.
27617         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27618         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27619         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27620         * modules/open (Files): Add m4/mode_t.m4.
27621         * modules/openat (Files): Likewise.
27622         * modules/fcntl-safer (Files): Likewise.
27623         Suggested by Eric Blake.
27624
27625 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27626
27627         * doc/glibc-functions/fallocate.texi: New file.
27628         * doc/gnulib.texi: Include it.
27629
27630 2009-05-21  Eric Blake  <ebb9@byu.net>
27631             Bruno Haible  <bruno@clisp.org>
27632
27633         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27634         invocations.
27635         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27636
27637 2009-05-21  Eric Blake  <ebb9@byu.net>
27638             Bruno Haible  <bruno@clisp.org>
27639
27640         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27641         include_next. Fix of 2008-11-20 commit.
27642         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27643         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27644         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27645         NEXT_MATH_H.
27646         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27647         instead of NEXT_MATH_H.
27648
27649 2009-05-21  Bruno Haible  <bruno@clisp.org>
27650
27651         Avoid redefinition warnings for SIZE_MAX.
27652         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27653         Reported by Simon Josefsson.
27654
27655 2009-05-21  Bruno Haible  <bruno@clisp.org>
27656
27657         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27658         AC_CACHE_VAL.
27659
27660 2009-05-20  Bruno Haible  <bruno@clisp.org>
27661
27662         Make zeroptr.h work on mingw.
27663         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27664         mprotect.
27665         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27666         * modules/memchr2-tests (configure.ac): Likewise.
27667         * modules/memcmp-tests (configure.ac): Likewise.
27668         * modules/memmem-tests (configure.ac): Likewise.
27669         * modules/memrchr-tests (configure.ac): Likewise.
27670         Reported by Simon Josefsson.
27671
27672 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27673
27674         * tests/test-glob.c: Include string.h for strcmp prototype.
27675
27676 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27677
27678         * modules/getdelim (Depends-on): Add explicit stdint, although it
27679         was implicitly already pulled in via realloc-posix.
27680         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27681
27682 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27683
27684         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27685         G. Christensen" <tgc@jupiterrise.com>.
27686         * m4/sys_socket_h.m4: Check for sa_family_t.
27687         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27688         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27689         * tests/test-sys_socket.c: Check that sa_family_t works.
27690
27691 2009-05-18  Eric Blake  <ebb9@byu.net>
27692
27693         maint.mk: allow gnulib_dir in VPATH build
27694         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27695
27696 2009-05-15  Jim Meyering  <meyering@redhat.com>
27697
27698         maint.mk: Give gnulib_dir a default definition.
27699         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27700         Thus, most packages no longer need to specify this variable in cfg.mk
27701
27702 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27703
27704         rename.m4: fix typos that would make non-mingw cross-configure fail
27705         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27706
27707 2009-05-13  Eric Blake  <ebb9@byu.net>
27708
27709         mmap-anon: avoid out-of-order autoconf expansion
27710         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27711         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27712         * modules/memchr-tests (Depends-on): Add extensions.
27713         * modules/memchr2-tests (Depends-on): Add extensions.
27714         * modules/memcmp-tests (Depends-on): Add extensions.
27715         * modules/memmem-tests (Depends-on): Add extensions.
27716         * modules/memrchr-tests (Depends-on): Add extensions.
27717
27718 2009-05-13  Bruno Haible  <bruno@clisp.org>
27719
27720         Make some tests ISO C 99 compliant.
27721         * tests/zerosize-ptr.h: New file.
27722         * tests/test-memchr.c: Include zerosize-ptr.h.
27723         (main): Use a zero-size object pointer instead of NULL.
27724         * tests/test-memchr2.c: Include zerosize-ptr.h.
27725         (main): Use a zero-size object pointer instead of NULL.
27726         * tests/test-memcmp.c: Include zerosize-ptr.h.
27727         (main): Use a zero-size object pointer instead of NULL.
27728         * tests/test-memmem.c: Include zerosize-ptr.h.
27729         (main): Use a zero-size object pointer instead of NULL.
27730         * tests/test-memrchr.c: Include zerosize-ptr.h.
27731         (main): Use a zero-size object pointer instead of NULL.
27732         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27733         m4/mmap-anon.m4.
27734         (Depends-on): Add getpagesize.
27735         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27736         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27737         m4/mmap-anon.m4.
27738         (Depends-on): Add getpagesize.
27739         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27740         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27741         m4/mmap-anon.m4.
27742         (Depends-on): Add getpagesize.
27743         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27744         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27745         m4/mmap-anon.m4.
27746         (Depends-on): Add getpagesize.
27747         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27748         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27749         m4/mmap-anon.m4.
27750         (Depends-on): Add getpagesize.
27751         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27752
27753 2009-05-12  Bruno Haible  <bruno@clisp.org>
27754
27755         Tests for module 'alignof'.
27756         * modules/alignof-tests: New file.
27757         * tests/test-alignof.c: New file.
27758
27759 2009-05-12  Bruno Haible  <bruno@clisp.org>
27760
27761         Fix alignof macro.
27762         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27763         vendor compilers that are always correct.
27764
27765 2009-05-12  Bruno Haible  <bruno@clisp.org>
27766
27767         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27769         not whether its fully works.
27770
27771 2009-05-12  Bruno Haible  <bruno@clisp.org>
27772
27773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27774
27775 2009-05-12  Jim Meyering  <meyering@redhat.com>
27776
27777         * top/maint.mk: Adjust backslash alignment.
27778
27779 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27780
27781         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27782
27783 2009-05-11  Eric Blake  <ebb9@byu.net>
27784
27785         argp: avoid undefined behavior
27786         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27787         macros.
27788
27789 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27790
27791         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27792         user.name to prevent git commit from complaining.
27793
27794 2009-05-10  Bruno Haible  <bruno@clisp.org>
27795
27796         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27797         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27798         it rewrites every file name only once.
27799         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27800
27801 2009-05-08  Bruno Haible  <bruno@clisp.org>
27802
27803         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27804         instead of 'max'.
27805
27806 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27807
27808         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27809         sockaddr_storage test.
27810
27811 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27812
27813         * modules/sys_socket (Makefile.am): Substitute
27814         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27815         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27816         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27817         * tests/test-sys_socket.c: Check sockaddr_storage.
27818
27819 2009-05-08  Bruno Haible  <bruno@clisp.org>
27820
27821         New module 'alignof'.
27822         * lib/alignof.h: New file.
27823         * modules/alignof: New file.
27824
27825 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27826             Bruno Haible  <bruno@clisp.org>
27827
27828         Fix test-file-has-acl on FreeBSD.
27829         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27830         mask is implicitly added.
27831         * tests/test-file-has-acl.c: Include <signal.h>.
27832         (main): Terminate the test after 5 seconds.
27833         * modules/acl-tests (configure.ac): Check for alarm function.
27834
27835 2009-05-04  Bruno Haible  <bruno@clisp.org>
27836
27837         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27839         * modules/errno (configure.ac): Drop AC_REQUIRE.
27840         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27841         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27842
27843 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27844
27845         * modules/glob-tests: New module.
27846         * tests/test-glob.c: Add.
27847
27848 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27849
27850         * modules/fnmatch-tests: New module.
27851         * tests/test-fnmatch.c: Add.
27852
27853 2009-05-04  Eric Blake  <ebb9@byu.net>
27854
27855         maint: make the new no-submodule-changes rule VPATH-safe
27856         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27857
27858 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27859             Bruno Haible  <bruno@clisp.org>
27860
27861         acl: Fix infinite loop on FreeBSD.
27862         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27863         of return value from acl_get_entry.
27864         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27865         Likewise.
27866
27867 2009-05-03  Bruno Haible  <bruno@clisp.org>
27868
27869         * lib/acl-internal.h (acl_entries): Clarify return value.
27870         * lib/acl_entries.c (acl_entries): Likewise.
27871
27872 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27873
27874         Bug fix in acl module.
27875         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27876
27877 2009-05-03  Bruno Haible  <bruno@clisp.org>
27878
27879         Create gperf-generated file in the source dir, not in the build dir.
27880         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27881         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27882         * modules/unicase/locale-language (unicase/locale-languages.h):
27883         Likewise.
27884         * modules/unicase/special-casing (unicase/special-casing-table.h):
27885         Likewise.
27886         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27887         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27888         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27889         Reported by Ralf Wildenhues.
27890
27891 2009-05-03  Bruno Haible  <bruno@clisp.org>
27892
27893         * modules/fnmatch (Description, configure.ac): Taken from
27894         fnmatch-posix.
27895         * modules/fnmatch-posix: Turn into a symbolic reference to the
27896         'fnmatch' module, and deprecate.
27897         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27898
27899 2009-05-03  Bruno Haible  <bruno@clisp.org>
27900
27901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27902         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27903         Reported by Ralf Wildenhues.
27904
27905 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27906
27907         * m4/fnmatch.m4: Fix fnmatch re-define.
27908
27909 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27910
27911         priv-set: new module and tests; adapt write-any-file
27912         * lib/priv-set.c: New file.
27913         * lib/priv-set.h: New file.
27914         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27915         * lib/write-any-file.c: Simplify by using priv-set module.
27916         * m4/priv-set.m4: New file.
27917         * modules/priv-set: New file.
27918         * modules/unlinkdir: Add dependency on priv-set module.
27919         * modules/write-any-file: Likewise.
27920
27921         Tests for module 'priv-set'.
27922         * modules/priv-set-tests: New file.
27923         * tests/test-priv-set.c: New file.
27924
27925 2009-05-03  Jim Meyering  <meyering@redhat.com>
27926             Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27929         use the converted UTF-8 variant of the name instead.
27930
27931 2009-05-03  Jim Meyering  <meyering@redhat.com>
27932
27933         tests: tighten some getdate tests
27934         * tests/test-getdate.c (main): Tighten tests: require equality,
27935         not just greater than.  Set TZ envvar to UTC0.
27936
27937 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27938
27939         getdate: correctly interpret "next monday" when run on a Monday
27940         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27941         that e.g., "next tues" (when run on a tuesday) results in a date
27942         that is one week in the future, and not today's date.
27943         I.e., add a week when the wday is the same as the current one.
27944         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27945         and earlier by Martin Bernreuther and Jan Minář.
27946         * tests/test-getdate.c (main): Check that "next DAY" is always in
27947         the future and that "last DAY" is always in the past.
27948
27949 2009-05-02  Jim Meyering  <meyering@redhat.com>
27950
27951         build: ensure that a release build fails when a submodule is unclean
27952         * top/maint.mk (no-submodule-changes): New rule.
27953         (alpha beta major): Depend on it.
27954
27955 2009-05-02  Bruno Haible  <bruno@clisp.org>
27956
27957         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27958         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27959         shell variable gl_fnmatch_required to detect which variant is
27960         requested.
27961         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27962         gl_FUNC_FNMATCH_POSIX.
27963         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27964         exclude fnmatch-posix.
27965
27966 2009-05-02  Bruno Haible  <bruno@clisp.org>
27967
27968         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27969         * modules/mbsrtowcs (License): Change to LGPLv2+.
27970         * modules/strnlen1 (License): Likewise.
27971         Reported by Simon Josefsson.
27972
27973 2009-05-02  Bruno Haible  <bruno@clisp.org>
27974
27975         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27976         "cross".
27977         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27978         gnulib-tool was called with option --source-base=lib.
27979
27980 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27981
27982         Use automake *-local hooks without commands, for extensibility.
27983         * modules/localcharset (Makefile.am): Rename install-exec-local
27984         rule to install-exec-localcharset, and make it a prerequisite of
27985         install-exec-local.  Likewise, rename the uninstall-local rule to
27986         uninstall-localcharset, and make it a prerequisite of the former.
27987
27988 2009-05-01  Bruno Haible  <bruno@clisp.org>
27989
27990         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27991         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27992         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27994         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27995         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27996         m4/locale-zh.m4, m4/codeset.m4.
27997
27998         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27999         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28000         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28001         m4/locale-zh.m4.
28002
28003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28004         REPLACE_WCRTOMB if mbstate_t must be replaced.
28005         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28006         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28007
28008 2009-05-01  Bruno Haible  <bruno@clisp.org>
28009
28010         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28011         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28012         dngettext, dcngettext, textdomain, bindtextdomain,
28013         bind_textdomain_codeset): Undefine before redefining.
28014
28015 2009-04-30  Bruno Haible  <bruno@clisp.org>
28016
28017         Fix bug introduced on 2009-04-25.
28018         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28019         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28020         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28021         is defined.
28022         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28023         is defined.
28024         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28025         is defined.
28026         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28027
28028 2009-04-28  Bruno Haible  <bruno@clisp.org>
28029
28030         Comment tweaks.
28031         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28032         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28033         * lib/unicase.h (u*_casexfrm): Likewise.
28034         Reported by Paolo Bonzini.
28035
28036 2009-04-28  Bruno Haible  <bruno@clisp.org>
28037
28038         Fix a compilation error.
28039         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28040         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28041         Reported by Jim Meyering.
28042
28043 2009-04-27  Bruno Haible  <bruno@clisp.org>
28044
28045         New module 'libunistring'.
28046         * modules/libunistring: New file.
28047         * m4/libunistring.m4: New file.
28048         * MODULES.html.sh (Unicode string functions): Add it.
28049
28050 2009-04-27  Eric Blake  <ebb9@byu.net>
28051
28052         maint.mk: allow package-specific header to provide <config.h>
28053         * top/maint.mk (sc_require_config_h): New variable.
28054         (sc_require_config_h, sc_require_config_h_first): Use it.
28055
28056 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28057
28058         * top/maint.mk (sc_avoid_if_before_free): Except
28059         useless-if-before-free script.
28060
28061 2009-04-27  Eric Blake  <ebb9@byu.net>
28062
28063         maintainer-makefile: depend on all required helper scripts
28064         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28065         useless-if-before-free.
28066         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28067         version, rather than assuming gnulib checkout is available.
28068         Reported by Simen Josefsson.
28069
28070 2009-04-26  Bruno Haible  <bruno@clisp.org>
28071
28072         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28073         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28074         "../" or "..".
28075
28076 2009-04-26  Bruno Haible  <bruno@clisp.org>
28077
28078         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28079         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28080         AC_LIB_HAVE_LINKFLAGS.
28081
28082 2009-04-26  Bruno Haible  <bruno@clisp.org>
28083
28084         Simplify calling convention of u*_conv_from_encoding.
28085         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28086         u32_conv_from_encoding): Expect a resultbuf argument and return the
28087         result directly as a pointer.
28088         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28089         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28090         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28091         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28092         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28093         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28094         Update.
28095         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28096         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28097         * lib/vasnprintf.c (VASNPRINTF): Update.
28098         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28099         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28100         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28101         * NEWS: Mention the change.
28102
28103 2009-04-26  Bruno Haible  <bruno@clisp.org>
28104
28105         Simplify calling convention of u*_conv_to_encoding.
28106         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28107         u32_conv_to_encoding): Expect a resultbuf argument and return the
28108         result directly as a pointer.
28109         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28110         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28111         freeing scaled_offsets if mem_iconveha failed.
28112         * lib/unicase/u-casexfrm.h (FUNC): Update.
28113         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28114         * lib/vasnprintf.c (VASNPRINTF): Update.
28115         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28116         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28117         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28118         * NEWS: Mention the change.
28119
28120 2009-04-26  Bruno Haible  <bruno@clisp.org>
28121
28122         Avoid test failures on AIX and OSF/1.
28123         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28124         malloc(0).
28125         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28126         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28127         Likewise.
28128         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28129         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28130         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28131         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28132         * doc/posix-functions/malloc.texi: Document the portability problem
28133         related to malloc(0).
28134
28135 2009-04-26  Bruno Haible  <bruno@clisp.org>
28136
28137         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28138         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28139         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28140
28141 2009-04-25  Bruno Haible  <bruno@clisp.org>
28142
28143         Avoid link error when creating a namespace clean library.
28144         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28145         as macro with arguments if already defined as an alias.
28146         * lib/signbitf.c (gl_signbitf): Don't undefine.
28147         * lib/signbitd.c (gl_signbitd): Don't undefine.
28148         * lib/signbitl.c (gl_signbitl): Don't undefine.
28149
28150 2009-04-25  Jim Meyering  <meyering@redhat.com>
28151
28152         vc-list-files: fix another quoting bug
28153         * build-aux/vc-list-files: Avoid sed backslash expansion
28154         of pathological directory names.
28155
28156 2009-04-25  Eric Blake  <ebb9@byu.net>
28157
28158         vc-list-files: fix shell quoting error
28159         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28160         timestamp.
28161
28162 2009-04-25  Jim Meyering  <meyering@redhat.com>
28163
28164         vc-list-files: restore lost functionality with subdir argument
28165         * build-aux/vc-list-files: When given a non-"." sub-directory
28166         argument, substitute the $dir/ prefix back onto each resulting name.
28167         Otherwise, coreutils' root_tests check would fail.
28168
28169 2009-04-24  Eric Blake  <ebb9@byu.net>
28170
28171         vc-list-files: ignore git symlinks
28172         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28173         than ls-files, to ignore git symlinks.
28174
28175         maint.mk: import improvements from m4
28176         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28177         (move_if_change): Delete unused macro.
28178         (news-date-check, vc-diff-check): Support VPATH builds.
28179         (announcement): Likewise.  Split --bootstrap-tools list...
28180         (boostrap-tools): ...into separate list, which can be overridden
28181         in cfg.mk.
28182         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28183         requiring dependency on useless-if-before-free module.
28184         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28185         Support VPATH builds.
28186
28187 2009-04-24  Jim Meyering  <meyering@redhat.com>
28188
28189         maint.mk: remove coreutils-specific rules and variables
28190         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28191         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28192         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28193
28194         maint.mk: remove obsolete rule
28195         * top/maint.mk (rel-check): Remove rule.
28196         (WGET, WGETFLAGS): Remove now-unused variables.
28197
28198 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28199
28200         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28201         consistency.
28202
28203         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28204         '$(PATH_SEPARATOR)' instead of ':'.
28205
28206 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28207
28208         * lib/getopt1.c (main): Use 'const' for static array.
28209
28210 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28211
28212         * top/maint.mk: Sync with coreutils.
28213         * NEWS: Explain incompatibilities.
28214
28215 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28216             Bruno Haible  <bruno@clisp.org>
28217
28218         Fix cross-compilation results.
28219         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28220         statement, as third argument of AC_TRY_RUN.
28221         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28222         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28223         Likewise.
28224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28225         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28226         Likewise.
28227         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28228         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28229         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28230
28231 2009-04-20  Bruno Haible  <bruno@clisp.org>
28232
28233         Avoid test failure on mingw.
28234         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28235
28236 2009-04-20  Bruno Haible  <bruno@clisp.org>
28237
28238         Avoid compilation error on mingw.
28239         * modules/localename-tests (Depends-on): Add locale.
28240
28241 2009-04-19  Bruno Haible  <bruno@clisp.org>
28242
28243         Support for building a shared library on Windows platforms.
28244         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28245         (main): Test the presence of UNINORM_NFC here.
28246         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28247         (main): Test the presence of UNINORM_NFD here.
28248         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28249         (main): Test the presence of UNINORM_NFKC here.
28250         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28251         (main): Test the presence of UNINORM_NFKD here.
28252
28253 2009-04-19  Bruno Haible  <bruno@clisp.org>
28254
28255         Avoid a compiler warning.
28256         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28257         Change type of variable 'sequence'.
28258
28259 2009-04-19  Bruno Haible  <bruno@clisp.org>
28260
28261         * modules/configmake (Makefile.am): When the contents of configmake.h
28262         does not change, arrange to preserve its modification time.
28263
28264 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28265
28266         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28267         gettext domain.
28268
28269 2009-04-16  Jim Meyering  <meyering@redhat.com>
28270
28271         useless-if-before-free: improve conversion code
28272         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28273         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28274
28275 2009-04-14  Bruno Haible  <bruno@clisp.org>
28276
28277         * modules/fcntl (Depends-on): Add extensions.
28278         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28279
28280 2009-04-12  Ben Pfaff  <blp@gnu.org>
28281
28282         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28283         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28284
28285 2009-03-20  Ben Pfaff  <blp@gnu.org>
28286
28287         Make rename replace existing destinations on Windows.
28288         * m4/rename.m4: Add test for Mingw.
28289         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28290         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28291         * doc/posix-functions/rename.texi: Document.
28292
28293 2009-04-10  Bruno Haible  <bruno@clisp.org>
28294
28295         New include file "iconveh.h".
28296         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28297         * lib/striconveh.h: Include it.
28298         (enum iconv_ilseq_handler): Remove definition.
28299         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28300         striconveh.h.
28301         * lib/striconveha.c: Include striconveh.h.
28302         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28303         * modules/striconveh (Files): Add lib/iconveh.h.
28304         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28305         lib/striconveh.h.
28306
28307 2009-04-10  Bruno Haible  <bruno@clisp.org>
28308
28309         * lib/uniconv.h: Update comment.
28310
28311 2009-04-10  Bruno Haible  <bruno@clisp.org>
28312
28313         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28314         always.
28315         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28316         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28317         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28318         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28319         "unistring-notinline.h", so that the function gets defined always.
28320         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28321         * lib/unistr/u8-uctomb.c: Likewise.
28322         * lib/unistr/u16-mbtouc.c: Likewise.
28323         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28324         * lib/unistr/u16-uctomb.c: Likewise.
28325         * lib/unistr/u32-mbtouc.c: Likewise.
28326         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28327         * lib/unistr/u32-uctomb.c: Likewise.
28328
28329 2009-04-10  Bruno Haible  <bruno@clisp.org>
28330
28331         Mark 'utime' obsolete.
28332         * modules/utime (Status, Notice): New sections.
28333         Suggested by Jim Meyering.
28334
28335         Fix cross-compile guess for utime test.
28336         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28337         autoconf.
28338         * doc/posix-functions/utime.texi: Give more precisions.
28339         Reported by Jan <ipif@ymail.com>.
28340
28341 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28342
28343         filevercmp: correct today's change
28344         * lib/filevercmp.c: Also handle coreutils' test inputs.
28345         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28346
28347         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28348         for reporting it.
28349         * lib/filevercmp.c: Special handle for "", "." and "..".
28350         * tests/test-filevercmp.c: Enlarge the set suite.
28351
28352 2009-04-07  Jim Meyering  <meyering@redhat.com>
28353
28354         useless-if-before-free: show how to remove braced useless free, too
28355         * build-aux/useless-if-before-free: still only in a comment, though.
28356
28357 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28358
28359         maint.mk: import changes to syntax-check macros from coreutils
28360         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28361         Use them in the relevant macros.
28362
28363 2009-04-06  Bruno Haible  <bruno@clisp.org>
28364
28365         Fix unportable use of bit-fields.
28366         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28367         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28368         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28369
28370 2009-04-06  Bruno Haible  <bruno@clisp.org>
28371
28372         Avoid test failures on AIX and OSF/1.
28373         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28374         that malloc(0) = NULL.
28375         * tests/unicase/test-u8-tolower.c (check): Likewise.
28376         * tests/unicase/test-u8-totitle.c (check): Likewise.
28377         * tests/unicase/test-u8-toupper.c (check): Likewise.
28378         * tests/unicase/test-u16-casefold.c (check): Likewise.
28379         * tests/unicase/test-u16-tolower.c (check): Likewise.
28380         * tests/unicase/test-u16-totitle.c (check): Likewise.
28381         * tests/unicase/test-u16-toupper.c (check): Likewise.
28382         * tests/unicase/test-u32-casefold.c (check): Likewise.
28383         * tests/unicase/test-u32-tolower.c (check): Likewise.
28384         * tests/unicase/test-u32-totitle.c (check): Likewise.
28385         * tests/unicase/test-u32-toupper.c (check): Likewise.
28386         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28387         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28388         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28389         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28390         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28391         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28392         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28393         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28394         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28395         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28396         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28397         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28398
28399 2009-04-05  Bruno Haible  <bruno@clisp.org>
28400
28401         Work around an autoconf limitation.
28402         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28403         comment line if it would be longer than 3 KB.
28404
28405 2009-04-05  Bruno Haible  <bruno@clisp.org>
28406
28407         Avoid test failure with libiconv-1.13.
28408         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28409         of the expected test results.
28410
28411 2009-04-05  Bruno Haible  <bruno@clisp.org>
28412
28413         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28414         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28415         that it should be installed.
28416
28417 2009-04-05  Bruno Haible  <bruno@clisp.org>
28418
28419         * gnulib-tool: New option --copy-file.
28420         (func_usage): Document it.
28421         (func_dest_tmpfilename): Moved out of func_import.
28422         (func_add_file, func_update_file): New functions, extracted from
28423         func_import.
28424         (func_import): Update.
28425
28426 2009-04-05  Karl Berry  <karl@gnu.org>
28427
28428         * README: prominently mention gnulib-tool.
28429         Rearrange sections so getting the code is near the top.
28430
28431 2009-04-05  Bruno Haible  <bruno@clisp.org>
28432
28433         * lib/unicase.h: Mention u*_cmp2.
28434         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28435         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28436         * lib/unicase/ulc-casecmp.c: Likewise.
28437         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28438         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28439         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28440         unistr/u8-cmp.
28441         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28442         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28443         unistr/u16-cmp.
28444         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28445         unistr/u32-cmp.
28446
28447         * lib/uninorm.h: Mention u*_cmp2.
28448         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28449         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28450         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28451         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28452         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28453         unistr/u8-cmp.
28454         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28455         unistr/u16-cmp.
28456         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28457         unistr/u32-cmp.
28458
28459         New module 'unistr/u32-cmp2'.
28460         * lib/unistr/u32-cmp2.c: New file.
28461         * modules/unistr/u32-cmp2: New file.
28462
28463         New module 'unistr/u16-cmp2'.
28464         * lib/unistr/u16-cmp2.c: New file.
28465         * modules/unistr/u16-cmp2: New file.
28466
28467         New module 'unistr/u8-cmp2'.
28468         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28469         * lib/unistr/u8-cmp2.c: New file.
28470         * lib/unistr/u-cmp2.h: New file.
28471         * modules/unistr/u8-cmp2: New file.
28472
28473 2009-04-05  Bruno Haible  <bruno@clisp.org>
28474
28475         * lib/unictype.h (uc_property_is_valid): New macro.
28476         * tests/unictype/test-pr_byname.c (main): Use it.
28477
28478         * lib/unistr.h: Doc fixes.
28479         * lib/uniconv.h: Doc fixes.
28480         * lib/unictype.h: Doc fixes.
28481
28482 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28483
28484         Port coreutils 7.2 to Solaris 8.
28485
28486         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28487         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28488         for Solaris 8.  This is a bit of a hack, as it means it's the
28489         caller's responsibility to add -lnsl if needed, but most likely it
28490         won't be needed since only getaddrinfo uses this and getaddrinfo
28491         isn't needed on Solaris 8.
28492
28493         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28494         problem to Solaris 8 encountered with coreutils 7.2, which
28495         resulted in a message "fnmatch.c:292: warning: passing argument 4
28496         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28497         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28498
28499 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28500
28501         * m4/ld-version-script.m4: Add FIXME comment.
28502
28503 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28504
28505         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28506         SOVERSION variable.
28507
28508 2009-04-02  Bruno Haible  <bruno@clisp.org>
28509
28510         * Makefile (info, html, dvi, pdf): Combine the rules.
28511         Suggested by Jim Meyering.
28512
28513 2009-04-01  Bruno Haible  <bruno@clisp.org>
28514
28515         * Makefile (info, html, dvi, pdf): New targets.
28516         Reported by Reuben Thomas <rrt@sc3d.org>.
28517
28518 2009-04-01  Bruno Haible  <bruno@clisp.org>
28519
28520         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28521         can be put into PATH.
28522         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28523
28524 2009-04-01  Bruno Haible  <bruno@clisp.org>
28525
28526         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28527
28528 2009-04-01  Bruno Haible  <bruno@clisp.org>
28529
28530         Rename module 'visibility'.
28531         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28532         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28533         * doc/gnulib.texi: Update.
28534         * MODULES.html.sh (Misc): Update.
28535         * NEWS: Mention the change.
28536
28537 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28538
28539         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28540         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28541         Eric Blake <ebb9@byu.net> for review.
28542         * MODULES.html.sh: Add lib-msvc-compat.
28543         * doc/gnulib.texi: Link to new section.
28544         * m4/ld-output-def.m4: New file.
28545         * doc/ld-output-def.texi: New file.
28546
28547 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28548
28549         Rename ld-version-script to lib-symbol-versions.  Suggested by
28550         Bruno Haible <bruno@clisp.org>.
28551         * modules/ld-version-script: Renamed to lib-symbol-versions.
28552         * doc/ld-version-script.texi: Fix module name.
28553         * MODULES.html.sh: Add lib-symbol-versions.
28554
28555 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28556
28557         * modules/u64-tests: New file.
28558         * tests/test-u64.c: New file.
28559
28560 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28561
28562         * MODULES.html.sh: Mention u64.
28563         * modules/u64: New module.
28564         * modules/crypto/sha512: Depend on u64 module instead of providing
28565         u64.h.
28566
28567 2009-03-27  Eric Blake  <ebb9@byu.net>
28568
28569         test-strerror: make debugging EAI_SYSTEM easier
28570         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28571         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28572         failure was EAI_SYSTEM.
28573
28574 2009-03-25  Bruno Haible  <bruno@clisp.org>
28575
28576         Fix a problem with --enable-relocatable on Solaris 7.
28577         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28578         since 2008-02-24.
28579
28580 2009-03-25  Eric Blake  <ebb9@byu.net>
28581
28582         test-sockets: avoid gcc warning
28583         * tests/test-sockets.c (main): Silence compiler warning.
28584
28585 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28586
28587         New modules nproc, pthread, contributed by Glen Lenker.
28588
28589         * MODULES.html.sh: Add pthread, nproc.
28590         * lib/nproc.c: New file.
28591         * lib/nproc.h: New file.
28592         * lib/pthread.in.h: New file.
28593         * m4/pthread.m4: New file.
28594         * modules/nproc: New file.
28595         * modules/pthread: New file.
28596
28597 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28598
28599         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28600         New variable.
28601
28602 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28603
28604         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28605         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28606         * tests/test-filevercmp.c: Add tests for backup suffixes.
28607
28608 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28609
28610         * modules/stdlib (Depends-on): Add stdint, needed when defining
28611         struct random_data on, for example, HP-UX 10.20.  Reported by
28612         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28613
28614 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28615
28616         * lib/readline.c (readline): Call fflush on stdout after printing
28617         prompt.
28618
28619 2009-03-20  Bruno Haible  <bruno@clisp.org>
28620
28621         Remove dependency from 'close' module to -lws2_32 on native Windows.
28622         * lib/close-hook.h: New file.
28623         * lib/close-hook.c: New file.
28624         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28625         w32sock.h.
28626         (_gl_close_fd_maybe_socket): Remove function.
28627         (rpl_close): Invoke execute_all_close_hooks instead of
28628         _gl_close_fd_maybe_socket.
28629         * lib/sockets.c: Include close-hook.h, w32sock.h.
28630         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28631         (close_sockets_hook): New variable.
28632         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28633         (gl_sockets_cleanup): Unregister it.
28634         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28635         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28636         * modules/close-hook: New file.
28637         * modules/close (Files): Remove lib/w32sock.h.
28638         (Depends-on): Add close-hook.
28639         (Link): Remove section.
28640         * modules/sockets (Files): Add lib/w32sock.h.
28641         (Depends-on): Add close-hook.
28642         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28643         invocation.
28644         * NEWS: Mention that LIB_CLOSE is gone.
28645
28646 2009-03-23  Eric Blake  <ebb9@byu.net>
28647
28648         signal-tests: test previous patch
28649         * tests/test-signal.c: New file.
28650         * modules/signal-tests: Likewise.
28651
28652         signal.h: always support 'volatile sig_atomic_t'
28653         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28654         (gl_SIGNAL_H_DEFAULTS): Add a default.
28655         * modules/signal (Makefile.am): Substitute if needed.
28656         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28657         users can blindly add volatile.
28658         * doc/posix-headers/signal.texi (signal.h): Document it.
28659         Reported by Matthew Woehlke.
28660
28661 2009-03-23  Jim Meyering  <meyering@redhat.com>
28662
28663         pathmax: PATH_MAX: use pathconf only when available
28664         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28665         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28666         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28667         This avoids a link failure in a PSP cross-compilation environment
28668         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28669
28670         * lib/vasnprintf.c (divide): Fix typo in comment.
28671
28672 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28673
28674         * gnulib-tool (func_filter_filelist): Fix comment.
28675
28676 2009-03-20  Bruno Haible  <bruno@clisp.org>
28677
28678         Make sockets.h self-contained.
28679         * lib/sockets.c: Include sockets.h first.
28680         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28681
28682 2009-03-19  Eric Blake  <ebb9@byu.net>
28683
28684         doc: mention more functions added in cygwin 1.7.0
28685         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28686         addition.
28687         * doc/posix-functions/log2f.texi: Likewise.
28688
28689 2009-03-19  Jim Meyering  <meyering@redhat.com>
28690
28691         fsusage: avoid syntax error due to statement-before-declaration
28692         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28693         after all declarations.  Reported by Matthew Woehlke in
28694         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28695
28696 2009-03-18  Eric Blake  <ebb9@byu.net>
28697
28698         build-aux/compile: sync from automake
28699         * build-aux/compile: New file, from automake.
28700         * config/srclist.txt: Mention build-aux/compile.
28701
28702 2009-03-17  Bruno Haible  <bruno@clisp.org>
28703
28704         * lib/git-merge-changelog.c: Fix typo in comment.
28705         Reported by Reuben Thomas <rrt@sc3d.org>.
28706
28707 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28708
28709         * m4/regex.m4: update and improve help for
28710         --without-included-regex.
28711
28712 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28713
28714         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28715         failure on missing include files.
28716
28717 2009-03-17  Eric Blake  <ebb9@byu.net>
28718
28719         doc: mention more functions added in cygwin 1.7.0
28720         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28721         addition.
28722         * doc/posix-functions/fwscanf.texi: Likewise.
28723         * doc/posix-functions/swprintf.texi: Likewise.
28724         * doc/posix-functions/swscanf.texi: Likewise.
28725         * doc/posix-functions/vfwprintf.texi: Likewise.
28726         * doc/posix-functions/vfwscanf.texi: Likewise.
28727         * doc/posix-functions/vswprintf.texi: Likewise.
28728         * doc/posix-functions/vswscanf.texi: Likewise.
28729         * doc/posix-functions/vwprintf.texi: Likewise.
28730         * doc/posix-functions/vwscanf.texi: Likewise.
28731         * doc/posix-functions/wcscasecmp.texi: Likewise.
28732         * doc/posix-functions/wcsdup.texi: Likewise.
28733         * doc/posix-functions/wcsftime.texi: Likewise.
28734         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28735         * doc/posix-functions/wprintf.texi: Likewise.
28736         * doc/posix-functions/wscanf.texi: Likewise.
28737         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28738
28739 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28740
28741         maint.mk: really add $(AM_MAKEFLAGS)
28742         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28743         was inadvertently omitted in the last commit.
28744         Spotted by Bruno Haible.
28745
28746         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28747         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28748         $(AM_MAKEFLAGS)' rather than plain `make'.
28749
28750         gnulib-tool: execute $MAKE not make
28751         * gnulib-tool: Default $MAKE to 'make'.
28752         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28753         than make.  Initialize $MAKE in the do-autobuild script.
28754
28755         gnulib-tool: use $MAKE not make in generated files
28756         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28757         make, in generated files.  Initialize $MAKE in the do-autobuild
28758         script.
28759
28760         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28761
28762         GNUmakefile: disable parallelism only for multiple, recursive targets
28763         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28764         additions in the Makefile.
28765         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28766         by Automake.
28767         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28768         are listed on the command line and at least one of them is
28769         listed in $(ALL_RECURSIVE_TARGETS).
28770
28771 2009-03-14  Bruno Haible  <bruno@clisp.org>
28772
28773         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28774         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28775         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28776         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28777         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28778         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28779         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28780         unistr/u8-uctomb.
28781         * modules/unistr/u8-strchr (Depends-on): Likewise.
28782         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28783         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28784         unistr/u16-uctomb.
28785         * modules/unistr/u16-strchr (Depends-on): Likewise.
28786         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28787
28788 2009-03-12  Bruno Haible  <bruno@clisp.org>
28789
28790         Work around select() bug on Interix 3.5.
28791         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28792         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28793         * m4/select.m4: New file.
28794         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28795         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28796         * modules/select (Files): Add m4/select.m4.
28797         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28798         * modules/nanosleep (Depends-on): Add select.
28799         * modules/poll (Depends-on): Likewise.
28800         * doc/posix-functions/select.texi: Mention the Interix bug.
28801         Reported by Markus Duft <mduft@gentoo.org>.
28802
28803         * lib/select.c: Renamed from lib/winsock-select.c.
28804         * modules/select (Files): Add lib/select.c, remove
28805         lib/winsock-select.c.
28806         (configure.ac): Update.
28807
28808 2009-03-12  Jim Meyering  <meyering@redhat.com>
28809
28810         avoid gcc warnings about unused macro definitions
28811         * lib/readtokens.c (STREQ): Remove unused definition.
28812         * lib/xmalloc.c (SIZE_MAX): Likewise.
28813         * lib/openat-die.c (N_): Likewise.
28814         * lib/mountlist.c (SIZE_MAX): Remove definition.
28815         Instead, include <stdint.h>.
28816         * lib/readutmp.c: Likewise.
28817         * modules/readutmp (Depends-on): Add stdint.
28818         * modules/mountlist (Depends-on): Add stdint.
28819         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28820
28821 2009-03-10  Bruno Haible  <bruno@clisp.org>
28822
28823         Tests for module 'mbmemcasecoll'.
28824         * modules/mbmemcasecoll-tests: New file.
28825         * tests/test-mbmemcasecoll1.sh: New file.
28826         * tests/test-mbmemcasecoll2.sh: New file.
28827         * tests/test-mbmemcasecoll3.sh: New file.
28828         * tests/test-mbmemcasecoll.c: New file.
28829
28830         New module 'mbmemcasecoll'.
28831         * lib/mbmemcasecoll.h: New file.
28832         * lib/mbmemcasecoll.c: New file.
28833         * modules/mbmemcasecoll: New file.
28834
28835         * tests/test-mbmemcasecmp.h: New file, extracted from
28836         tests/test-mbmemcasecmp.c.
28837         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28838         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28839         (main): Update.
28840         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28841
28842 2009-03-09  Bruno Haible  <bruno@clisp.org>
28843
28844         Tests for module 'mbmemcasecmp'.
28845         * modules/mbmemcasecmp-tests: New file.
28846         * tests/test-mbmemcasecmp1.sh: New file.
28847         * tests/test-mbmemcasecmp2.sh: New file.
28848         * tests/test-mbmemcasecmp3.sh: New file.
28849         * tests/test-mbmemcasecmp.c: New file.
28850
28851         New module 'mbmemcasecmp'.
28852         * lib/mbmemcasecmp.h: New file.
28853         * lib/mbmemcasecmp.c: New file.
28854         * modules/mbmemcasecmp: New file.
28855
28856 2009-03-09  Bruno Haible  <bruno@clisp.org>
28857
28858         Tests for module 'unicase/ulc-casecoll'.
28859         * modules/unicase/ulc-casecoll-tests: New file.
28860         * tests/unicase/test-ulc-casecoll1.sh: New file.
28861         * tests/unicase/test-ulc-casecoll2.sh: New file.
28862         * tests/unicase/test-ulc-casecoll.c: New file.
28863
28864         New module 'unicase/ulc-casecoll'.
28865         * lib/unicase.h (ulc_casecoll): New declaration.
28866         * lib/unicase/ulc-casecoll.c: New file.
28867         * modules/unicase/ulc-casecoll: New file.
28868
28869         New module 'unicase/ulc-casexfrm'.
28870         * lib/unicase.h (ulc_casexfrm): New declaration.
28871         * lib/unicase/ulc-casexfrm.c: New file.
28872         * modules/unicase/ulc-casexfrm: New file.
28873
28874 2009-03-09  Bruno Haible  <bruno@clisp.org>
28875
28876         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28877         invocations.
28878
28879         * m4/mbscasecmp.m4: Remove file.
28880         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28881         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28882
28883         * m4/mbscasestr.m4: Remove file.
28884         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28885         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28886
28887         * m4/mbschr.m4: Remove file.
28888         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28889         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28890
28891         * m4/mbscspn.m4: Remove file.
28892         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28893         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28894
28895         * m4/mbslen.m4: Remove file.
28896         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28897         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28898
28899         * m4/mbsncasecmp.m4: Remove file.
28900         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28901         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28902
28903         * m4/mbsnlen.m4: Remove file.
28904         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28905         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28906
28907         * m4/mbspbrk.m4: Remove file.
28908         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28909         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28910
28911         * m4/mbspcasecmp.m4: Remove file.
28912         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28913         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28914
28915         * m4/mbsrchr.m4: Remove file.
28916         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28917         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28918
28919         * m4/mbssep.m4: Remove file.
28920         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28921         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28922
28923         * m4/mbsspn.m4: Remove file.
28924         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28925         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28926
28927         * m4/mbsstr.m4: Remove file.
28928         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28929         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28930
28931         * m4/mbstok_r.m4: Remove file.
28932         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28933         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28934
28935         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28936
28937         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28938         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28939
28940         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28941
28942 2009-03-08  Bruno Haible  <bruno@clisp.org>
28943
28944         Tests for module 'unicase/ulc-casecmp'.
28945         * modules/unicase/ulc-casecmp-tests: New file.
28946         * tests/unicase/test-ulc-casecmp1.sh: New file.
28947         * tests/unicase/test-ulc-casecmp2.sh: New file.
28948         * tests/unicase/test-ulc-casecmp.c: New file.
28949
28950         New module 'unicase/ulc-casecmp'.
28951         * lib/unicase.h (ulc_casecmp): New declaration.
28952         * lib/unicase/ulc-casecmp.c: New file.
28953         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28954         'const SRC_UNIT *'.
28955         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28956         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28957         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28958         * modules/unicase/ulc-casecmp: New file.
28959
28960         Tests for module 'unicase/u32-is-cased'.
28961         * modules/unicase/u32-is-cased-tests: New file.
28962         * tests/unicase/test-u32-is-cased.c: New file.
28963
28964         Tests for module 'unicase/u16-is-cased'.
28965         * modules/unicase/u16-is-cased-tests: New file.
28966         * tests/unicase/test-u16-is-cased.c: New file.
28967
28968         Tests for module 'unicase/u8-is-cased'.
28969         * modules/unicase/u8-is-cased-tests: New file.
28970         * tests/unicase/test-u8-is-cased.c: New file.
28971         * tests/unicase/test-is-cased.h: New file.
28972
28973         New module 'unicase/u32-is-cased'.
28974         * lib/unicase/u32-is-cased.c: New file.
28975         * modules/unicase/u32-is-cased: New file.
28976
28977         New module 'unicase/u16-is-cased'.
28978         * lib/unicase/u16-is-cased.c: New file.
28979         * modules/unicase/u16-is-cased: New file.
28980
28981         New module 'unicase/u8-is-cased'.
28982         * lib/unicase/u8-is-cased.c: New file.
28983         * lib/unicase/u-is-cased.h: New file.
28984         * modules/unicase/u8-is-cased: New file.
28985
28986         Tests for module 'unicase/u32-is-casefolded'.
28987         * modules/unicase/u32-is-casefolded-tests: New file.
28988         * tests/unicase/test-u32-is-casefolded.c: New file.
28989
28990         Tests for module 'unicase/u16-is-casefolded'.
28991         * modules/unicase/u16-is-casefolded-tests: New file.
28992         * tests/unicase/test-u16-is-casefolded.c: New file.
28993
28994         Tests for module 'unicase/u8-is-casefolded'.
28995         * modules/unicase/u8-is-casefolded-tests: New file.
28996         * tests/unicase/test-u8-is-casefolded.c: New file.
28997         * tests/unicase/test-is-casefolded.h: New file.
28998
28999         New module 'unicase/u32-is-casefolded'.
29000         * lib/unicase/u32-is-casefolded.c: New file.
29001         * modules/unicase/u32-is-casefolded: New file.
29002
29003         New module 'unicase/u16-is-casefolded'.
29004         * lib/unicase/u16-is-casefolded.c: New file.
29005         * modules/unicase/u16-is-casefolded: New file.
29006
29007         New module 'unicase/u8-is-casefolded'.
29008         * lib/unicase/u8-is-casefolded.c: New file.
29009         * modules/unicase/u8-is-casefolded: New file.
29010
29011         Tests for module 'unicase/u32-is-titlecase'.
29012         * modules/unicase/u32-is-titlecase-tests: New file.
29013         * tests/unicase/test-u32-is-titlecase.c: New file.
29014
29015         Tests for module 'unicase/u16-is-titlecase'.
29016         * modules/unicase/u16-is-titlecase-tests: New file.
29017         * tests/unicase/test-u16-is-titlecase.c: New file.
29018
29019         Tests for module 'unicase/u8-is-titlecase'.
29020         * modules/unicase/u8-is-titlecase-tests: New file.
29021         * tests/unicase/test-u8-is-titlecase.c: New file.
29022         * tests/unicase/test-is-titlecase.h: New file.
29023
29024         New module 'unicase/u32-is-titlecase'.
29025         * lib/unicase/u32-is-titlecase.c: New file.
29026         * modules/unicase/u32-is-titlecase: New file.
29027
29028         New module 'unicase/u16-is-titlecase'.
29029         * lib/unicase/u16-is-titlecase.c: New file.
29030         * modules/unicase/u16-is-titlecase: New file.
29031
29032         New module 'unicase/u8-is-titlecase'.
29033         * lib/unicase/u8-is-titlecase.c: New file.
29034         * modules/unicase/u8-is-titlecase: New file.
29035
29036         Tests for module 'unicase/u32-is-lowercase'.
29037         * modules/unicase/u32-is-lowercase-tests: New file.
29038         * tests/unicase/test-u32-is-lowercase.c: New file.
29039
29040         Tests for module 'unicase/u16-is-lowercase'.
29041         * modules/unicase/u16-is-lowercase-tests: New file.
29042         * tests/unicase/test-u16-is-lowercase.c: New file.
29043
29044         Tests for module 'unicase/u8-is-lowercase'.
29045         * modules/unicase/u8-is-lowercase-tests: New file.
29046         * tests/unicase/test-u8-is-lowercase.c: New file.
29047         * tests/unicase/test-is-lowercase.h: New file.
29048
29049         New module 'unicase/u32-is-lowercase'.
29050         * lib/unicase/u32-is-lowercase.c: New file.
29051         * modules/unicase/u32-is-lowercase: New file.
29052
29053         New module 'unicase/u16-is-lowercase'.
29054         * lib/unicase/u16-is-lowercase.c: New file.
29055         * modules/unicase/u16-is-lowercase: New file.
29056
29057         New module 'unicase/u8-is-lowercase'.
29058         * lib/unicase/u8-is-lowercase.c: New file.
29059         * modules/unicase/u8-is-lowercase: New file.
29060
29061         Tests for module 'unicase/u32-is-uppercase'.
29062         * modules/unicase/u32-is-uppercase-tests: New file.
29063         * tests/unicase/test-u32-is-uppercase.c: New file.
29064
29065         Tests for module 'unicase/u16-is-uppercase'.
29066         * modules/unicase/u16-is-uppercase-tests: New file.
29067         * tests/unicase/test-u16-is-uppercase.c: New file.
29068
29069         Tests for module 'unicase/u8-is-uppercase'.
29070         * modules/unicase/u8-is-uppercase-tests: New file.
29071         * tests/unicase/test-u8-is-uppercase.c: New file.
29072         * tests/unicase/test-is-uppercase.h: New file.
29073
29074         New module 'unicase/u32-is-uppercase'.
29075         * lib/unicase/u32-is-uppercase.c: New file.
29076         * modules/unicase/u32-is-uppercase: New file.
29077
29078         New module 'unicase/u16-is-uppercase'.
29079         * lib/unicase/u16-is-uppercase.c: New file.
29080         * modules/unicase/u16-is-uppercase: New file.
29081
29082         New module 'unicase/u8-is-uppercase'.
29083         * lib/unicase/u8-is-uppercase.c: New file.
29084         * modules/unicase/u8-is-uppercase: New file.
29085
29086         New module 'unicase/u32-is-invariant'.
29087         * lib/unicase/u32-is-invariant.c: New file.
29088         * modules/unicase/u32-is-invariant: New file.
29089
29090         New module 'unicase/u16-is-invariant'.
29091         * lib/unicase/u16-is-invariant.c: New file.
29092         * modules/unicase/u16-is-invariant: New file.
29093
29094         New module 'unicase/u8-is-invariant'.
29095         * lib/unicase/u8-is-invariant.c: New file.
29096         * lib/unicase/invariant.h: New file.
29097         * lib/unicase/u-is-invariant.h: New file.
29098         * modules/unicase/u8-is-invariant: New file.
29099
29100         Tests for module 'unicase/u32-casecoll'.
29101         * modules/unicase/u32-casecoll-tests: New file.
29102         * tests/unicase/test-u32-casecoll.c: New file.
29103
29104         Tests for module 'unicase/u16-casecoll'.
29105         * modules/unicase/u16-casecoll-tests: New file.
29106         * tests/unicase/test-u16-casecoll.c: New file.
29107
29108         Tests for module 'unicase/u8-casecoll'.
29109         * modules/unicase/u8-casecoll-tests: New file.
29110         * tests/unicase/test-u8-casecoll.c: New file.
29111
29112         New module 'unicase/u32-casecoll'.
29113         * lib/unicase/u32-casecoll.c: New file.
29114         * modules/unicase/u32-casecoll: New file.
29115
29116         New module 'unicase/u16-casecoll'.
29117         * lib/unicase/u16-casecoll.c: New file.
29118         * modules/unicase/u16-casecoll: New file.
29119
29120         New module 'unicase/u8-casecoll'.
29121         * lib/unicase/u8-casecoll.c: New file.
29122         * lib/unicase/u-casecoll.h: New file.
29123         * modules/unicase/u8-casecoll: New file.
29124
29125         New module 'unicase/u32-casexfrm'.
29126         * lib/unicase/u32-casexfrm.c: New file.
29127         * modules/unicase/u32-casexfrm: New file.
29128
29129         New module 'unicase/u16-casexfrm'.
29130         * lib/unicase/u16-casexfrm.c: New file.
29131         * modules/unicase/u16-casexfrm: New file.
29132
29133         New module 'unicase/u8-casexfrm'.
29134         * lib/unicase/u8-casexfrm.c: New file.
29135         * lib/unicase/u-casexfrm.h: New file.
29136         * modules/unicase/u8-casexfrm: New file.
29137
29138         Tests for module 'unicase/u32-casecmp'.
29139         * modules/unicase/u32-casecmp-tests: New file.
29140         * tests/unicase/test-u32-casecmp.c: New file.
29141
29142         Tests for module 'unicase/u16-casecmp'.
29143         * modules/unicase/u16-casecmp-tests: New file.
29144         * tests/unicase/test-u16-casecmp.c: New file.
29145
29146         Tests for module 'unicase/u8-casecmp'.
29147         * modules/unicase/u8-casecmp-tests: New file.
29148         * tests/unicase/test-u8-casecmp.c: New file.
29149         * tests/unicase/test-casecmp.h: New file.
29150
29151         New module 'unicase/u32-casecmp'.
29152         * lib/unicase/u32-casecmp.c: New file.
29153         * modules/unicase/u32-casecmp: New file.
29154
29155         New module 'unicase/u16-casecmp'.
29156         * lib/unicase/u16-casecmp.c: New file.
29157         * modules/unicase/u16-casecmp: New file.
29158
29159         New module 'unicase/u8-casecmp'.
29160         * lib/unicase/u8-casecmp.c: New file.
29161         * lib/unicase/u-casecmp.h: New file.
29162         * modules/unicase/u8-casecmp: New file.
29163
29164         Tests for module 'unicase/u32-casefold'.
29165         * modules/unicase/u32-casefold-tests: New file.
29166         * tests/unicase/test-u32-casefold.c: New file.
29167
29168         Tests for module 'unicase/u16-casefold'.
29169         * modules/unicase/u16-casefold-tests: New file.
29170         * tests/unicase/test-u16-casefold.c: New file.
29171
29172         Tests for module 'unicase/u8-casefold'.
29173         * modules/unicase/u8-casefold-tests: New file.
29174         * tests/unicase/test-u8-casefold.c: New file.
29175
29176         New module 'unicase/u32-casefold'.
29177         * lib/unicase/u32-casefold.c: New file.
29178         * modules/unicase/u32-casefold: New file.
29179
29180         New module 'unicase/u16-casefold'.
29181         * lib/unicase/u16-casefold.c: New file.
29182         * modules/unicase/u16-casefold: New file.
29183
29184         New module 'unicase/u8-casefold'.
29185         * lib/unicase/u8-casefold.c: New file.
29186         * lib/unicase/u-casefold.h: New file.
29187         * modules/unicase/u8-casefold: New file.
29188
29189         New module 'unicase/tocasefold'.
29190         * lib/unicase/casefold.h: New file.
29191         * lib/unicase/tocasefold.c: New file.
29192         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29193         * modules/unicase/tocasefold: New file.
29194
29195         Tests for module 'unicase/u32-totitle'.
29196         * modules/unicase/u32-totitle-tests: New file.
29197         * tests/unicase/test-u32-totitle.c: New file.
29198
29199         Tests for module 'unicase/u16-totitle'.
29200         * modules/unicase/u16-totitle-tests: New file.
29201         * tests/unicase/test-u16-totitle.c: New file.
29202
29203         Tests for module 'unicase/u8-totitle'.
29204         * modules/unicase/u8-totitle-tests: New file.
29205         * tests/unicase/test-u8-totitle.c: New file.
29206
29207         New module 'unicase/u32-totitle'.
29208         * lib/unicase/u32-totitle.c: New file.
29209         * modules/unicase/u32-totitle: New file.
29210
29211         New module 'unicase/u16-totitle'.
29212         * lib/unicase/u16-totitle.c: New file.
29213         * modules/unicase/u16-totitle: New file.
29214
29215         New module 'unicase/u8-totitle'.
29216         * lib/unicase/u8-totitle.c: New file.
29217         * lib/unicase/u-totitle.h: New file.
29218         * modules/unicase/u8-totitle: New file.
29219
29220         Tests for module 'unicase/u32-tolower'.
29221         * modules/unicase/u32-tolower-tests: New file.
29222         * tests/unicase/test-u32-tolower.c: New file.
29223
29224         Tests for module 'unicase/u16-tolower'.
29225         * modules/unicase/u16-tolower-tests: New file.
29226         * tests/unicase/test-u16-tolower.c: New file.
29227
29228         Tests for module 'unicase/u8-tolower'.
29229         * modules/unicase/u8-tolower-tests: New file.
29230         * tests/unicase/test-u8-tolower.c: New file.
29231
29232         New module 'unicase/u32-tolower'.
29233         * lib/unicase/u32-tolower.c: New file.
29234         * modules/unicase/u32-tolower: New file.
29235
29236         New module 'unicase/u16-tolower'.
29237         * lib/unicase/u16-tolower.c: New file.
29238         * modules/unicase/u16-tolower: New file.
29239
29240         New module 'unicase/u8-tolower'.
29241         * lib/unicase/u8-tolower.c: New file.
29242         * modules/unicase/u8-tolower: New file.
29243
29244         Tests for module 'unicase/u32-toupper'.
29245         * modules/unicase/u32-toupper-tests: New file.
29246         * tests/unicase/test-u32-toupper.c: New file.
29247
29248         Tests for module 'unicase/u16-toupper'.
29249         * modules/unicase/u16-toupper-tests: New file.
29250         * tests/unicase/test-u16-toupper.c: New file.
29251
29252         Tests for module 'unicase/u8-toupper'.
29253         * modules/unicase/u8-toupper-tests: New file.
29254         * tests/unicase/test-u8-toupper.c: New file.
29255
29256         New module 'unicase/u32-toupper'.
29257         * lib/unicase/u32-toupper.c: New file.
29258         * modules/unicase/u32-toupper: New file.
29259
29260         New module 'unicase/u16-toupper'.
29261         * lib/unicase/u16-toupper.c: New file.
29262         * modules/unicase/u16-toupper: New file.
29263
29264         New module 'unicase/u8-toupper'.
29265         * lib/unicase/u8-toupper.c: New file.
29266         * modules/unicase/u8-toupper: New file.
29267
29268         New module 'unicase/u32-casemap'.
29269         * lib/unicase/u32-casemap.c: New file.
29270         * modules/unicase/u32-casemap: New file.
29271
29272         New module 'unicase/u16-casemap'.
29273         * lib/unicase/u16-casemap.c: New file.
29274         * modules/unicase/u16-casemap: New file.
29275
29276         New module 'unicase/u8-casemap'.
29277         * lib/unicase/unicasemap.h: New file.
29278         * lib/unicase/u8-casemap.c: New file.
29279         * lib/unicase/u-casemap.h: New file.
29280         * modules/unicase/u8-casemap: New file.
29281
29282         New module 'unicase/special-casing'.
29283         * lib/unicase/special-casing.h: New file.
29284         * lib/unicase/special-casing.c: New file.
29285         * lib/unicase/special-casing-table.gperf: New file, generated by
29286         gen-uni-tables.c.
29287         * modules/unicase/special-casing: New file.
29288
29289         Tests for module 'unicase/locale-language'.
29290         * modules/unicase/locale-language-tests: New file.
29291         * tests/unicase/test-locale-language.sh: New file.
29292         * tests/unicase/test-locale-language.c: New file.
29293
29294         New module 'unicase/locale-language'.
29295         * lib/unicase/locale-language.c: New file.
29296         * lib/unicase/locale-languages.gperf: New file.
29297         * modules/unicase/locale-language: New file.
29298
29299         Generate more tables for case conversion and case folding.
29300         * lib/gen-uni-tables.c (SCC_*): New enum items.
29301         (struct special_casing_rule): New type.
29302         (casing_rules, num_casing_rules, allocated_casing_rules): New
29303         variables.
29304         (add_casing_rule, fill_casing_rules): New functions.
29305         (struct casefold_rule): New type.
29306         (casefolding_rules, num_casefolding_rules,
29307         allocated_casefolding_rules): New variables.
29308         (fill_casefolding_rules): New function.
29309         (unicode_casefold): New variable.
29310         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29311         sort_casing_rules, output_casing_rules): New functions.
29312         (main): Accept to more arguments: SpecialCasing.txt and
29313         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29314         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29315         Output mapping for casefolding.
29316
29317         * lib/unicase.h: Include stdbool.h, uninorm.h.
29318         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29319         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29320         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29321         arguments.
29322         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29323         resultp arguments.
29324         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29325         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29326         resultp arguments.
29327         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29328         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29329         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29330         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29331         declarations.
29332         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29333
29334 2009-03-08  Bruno Haible  <bruno@clisp.org>
29335
29336         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29337         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29338         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29339         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29340
29341 2009-03-07  Bruno Haible  <bruno@clisp.org>
29342
29343         Adjust u*_normcmp, u*_normcoll API.
29344         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29345         u16_normcoll, u32_normcoll): Change failure conventions.
29346         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29347         errno and return -1.
29348         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29349
29350 2009-03-07  Bruno Haible  <bruno@clisp.org>
29351
29352         Tests for module 'uninorm/u32-normcoll'.
29353         * modules/uninorm/u32-normcoll-tests: New file.
29354         * tests/uninorm/test-u32-normcoll.c: New file.
29355
29356         Tests for module 'uninorm/u16-normcoll'.
29357         * modules/uninorm/u16-normcoll-tests: New file.
29358         * tests/uninorm/test-u16-normcoll.c: New file.
29359
29360         Tests for module 'uninorm/u8-normcoll'.
29361         * modules/uninorm/u8-normcoll-tests: New file.
29362         * tests/uninorm/test-u8-normcoll.c: New file.
29363
29364 2009-03-07  Bruno Haible  <bruno@clisp.org>
29365
29366         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29367         tests/uninorm/test-u32-normcmp.c.
29368         * tests/uninorm/test-u32-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/u32-normcmp-tests (Files): Add
29373         tests/uninorm/test-u32-normcmp.h.
29374         (Depends-on): Remove uninorm/u32-normcmp.
29375
29376         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29377         tests/uninorm/test-u16-normcmp.c.
29378         * tests/uninorm/test-u16-normcmp.c: Include it.
29379         (test_nonascii): New function, extracted from main. Add some more
29380         tests.
29381         (main): Invoke test_ascii and test_nonascii.
29382         * modules/uninorm/u16-normcmp-tests (Files): Add
29383         tests/uninorm/test-u16-normcmp.h.
29384         (Depends-on): Remove uninorm/u16-normcmp.
29385
29386         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29387         tests/uninorm/test-u8-normcmp.c.
29388         * tests/uninorm/test-u8-normcmp.c: Include it.
29389         (test_nonascii): New function, extracted from main. Add some more
29390         tests.
29391         (main): Invoke test_ascii and test_nonascii.
29392         * modules/uninorm/u8-normcmp-tests (Files): Add
29393         tests/uninorm/test-u8-normcmp.h.
29394         (Depends-on): Remove uninorm/u8-normcmp.
29395
29396 2009-03-07  Bruno Haible  <bruno@clisp.org>
29397
29398         New module 'uninorm/u32-normcoll'.
29399         * lib/uninorm/u32-normcoll.c: New file.
29400         * modules/uninorm/u32-normcoll: New file.
29401
29402         New module 'uninorm/u16-normcoll'.
29403         * lib/uninorm/u16-normcoll.c: New file.
29404         * modules/uninorm/u16-normcoll: New file.
29405
29406         New module 'uninorm/u8-normcoll'.
29407         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29408         declarations.
29409         * lib/uninorm/u8-normcoll.c: New file.
29410         * lib/uninorm/u-normcoll.h: New file.
29411         * modules/uninorm/u8-normcoll: New file.
29412
29413         New module 'uninorm/u32-normxfrm'.
29414         * lib/uninorm/u32-normxfrm.c: New file.
29415         * modules/uninorm/u32-normxfrm: New file.
29416
29417         New module 'uninorm/u16-normxfrm'.
29418         * lib/uninorm/u16-normxfrm.c: New file.
29419         * modules/uninorm/u16-normxfrm: New file.
29420
29421         New module 'uninorm/u8-normxfrm'.
29422         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29423         declarations.
29424         * lib/uninorm/u8-normxfrm.c: New file.
29425         * lib/uninorm/u-normxfrm.h: New file.
29426         * modules/uninorm/u8-normxfrm: New file.
29427
29428 2009-03-07  Bruno Haible  <bruno@clisp.org>
29429
29430         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29431         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29432         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29433
29434 2009-03-07  Bruno Haible  <bruno@clisp.org>
29435
29436         New module 'memxfrm'.
29437         * lib/memxfrm.h: New file.
29438         * lib/memxfrm.c: New file.
29439         * modules/memxfrm: New file.
29440
29441 2009-03-07  Bruno Haible  <bruno@clisp.org>
29442
29443         New module 'memcmp2'.
29444         * lib/memcmp2.h: New file.
29445         * lib/memcmp2.c: New file.
29446         * modules/memcmp2: New file.
29447
29448 2009-03-07  Bruno Haible  <bruno@clisp.org>
29449
29450         Tests for module 'uninorm/decomposing-form'.
29451         * modules/uninorm/decomposing-form-tests: New file.
29452         * tests/uninorm/test-decomposing-form.c: New file.
29453
29454         New module 'uninorm/decomposing-form'.
29455         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29456         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29457         Add 'decomposing_variant' field.
29458         * lib/uninorm/decomposing-form.c: New file.
29459         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29460         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29461         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29462         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29463         * modules/uninorm/decomposing-form: New file.
29464         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29465         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29466
29467 2009-03-07  Bruno Haible  <bruno@clisp.org>
29468
29469         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29470         strings.
29471
29472 2009-03-06  Bruno Haible  <bruno@clisp.org>
29473
29474         Tests for module 'uninorm/u32-normcmp'.
29475         * tests/uninorm/test-u32-normcmp.c: New file.
29476         * modules/uninorm/u32-normcmp-tests: New file.
29477
29478         Tests for module 'uninorm/u16-normcmp'.
29479         * tests/uninorm/test-u16-normcmp.c: New file.
29480         * modules/uninorm/u16-normcmp-tests: New file.
29481
29482         Tests for module 'uninorm/u8-normcmp'.
29483         * tests/uninorm/test-u8-normcmp.c: New file.
29484         * modules/uninorm/u8-normcmp-tests: New file.
29485
29486         New module 'uninorm/u32-normcmp'.
29487         * lib/uninorm/u32-normcmp.c: New file.
29488         * modules/uninorm/u32-normcmp: New file.
29489
29490         New module 'uninorm/u16-normcmp'.
29491         * lib/uninorm/u16-normcmp.c: New file.
29492         * modules/uninorm/u16-normcmp: New file.
29493
29494         New module 'uninorm/u8-normcmp'.
29495         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29496         declarations.
29497         * lib/uninorm/u8-normcmp.c: New file.
29498         * lib/uninorm/u-normcmp.h: New file.
29499         * modules/uninorm/u8-normcmp: New file.
29500
29501 2009-03-06  Bruno Haible  <bruno@clisp.org>
29502
29503         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29504         Reported by Eric Blake.
29505
29506 2009-03-06  Eric Blake  <ebb9@byu.net>
29507             Bruno Haible  <bruno@clisp.org>
29508
29509         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29510         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29511         condition.
29512         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29513         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29514         condition.
29515         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29516
29517 2009-03-06  Eric Blake  <ebb9@byu.net>
29518
29519         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29520         to avoid compiler warnings.
29521         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29522
29523 2009-03-05  Bruno Haible  <bruno@clisp.org>
29524
29525         * tests/test-ftell.c (main): Disable test beyond end of file on
29526         FreeMiNT.
29527         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29528
29529 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29530
29531         * lib/filevercmp.c: Move hidden files up in ordering.
29532         * tests/test-filevercmp.c: Add tests for hidden files.
29533
29534 2009-03-04  Bruno Haible  <bruno@clisp.org>
29535
29536         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29537         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29538         AM_CFLAGS.
29539         Reported by Simon Josefsson.
29540
29541 2009-03-03  Bruno Haible  <bruno@clisp.org>
29542
29543         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29544         Reported by Simon Josefsson.
29545
29546         * doc/ld-version-script.texi: Update node reference.
29547
29548 2009-03-03  Bruno Haible  <bruno@clisp.org>
29549
29550         * modules/visibility (License): Change to 'unlimited'.
29551         Suggested by Simon Josefsson.
29552
29553 2009-03-03  Jim Meyering  <meyering@redhat.com>
29554
29555         unlinkdir: cannot_unlink_dir may modify process state
29556         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29557         it's neither thread-safe nor appropriate for use in a library.
29558
29559 2009-03-03  Eric Blake  <ebb9@byu.net>
29560
29561         test-closein: silence test under Darwin
29562         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29563         care if it dies from EPIPE or EBADF.
29564
29565 2009-03-03  Bruno Haible  <bruno@clisp.org>
29566
29567         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29568         earlier.
29569         * doc/visibility.texi: Fix @node and @section.
29570
29571 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29572
29573         * doc/gnulib.texi: Link to sections for ld version script and
29574         visibility.
29575         * doc/visibility.texi: Add @node and @section.
29576         * modules/ld-version-script: New module.
29577         * m4/ld-version-script.m4: New file.
29578         * doc/ld-version-script.texi: New file.
29579
29580 2009-03-02  David Lutterkort  <lutter@redhat.com>
29581
29582         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29584
29585 2009-03-02  Bruno Haible  <bruno@clisp.org>
29586
29587         * doc/visibility.texi: Mention libtool's -export-symbols option.
29588
29589 2009-03-02  Jim Meyering  <meyering@redhat.com>
29590
29591         announce-gen: new option: --no-print-checksums
29592         * build-aux/announce-gen (usage): Describe it.
29593         (print_checksums): Print a newline here, not in the [*] footnote.
29594         (main): Honor it.
29595
29596 2009-03-01  Bruno Haible  <bruno@clisp.org>
29597
29598         Use socklen_t in the native Windows replacements prototypes.
29599         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29600         instead of 'int'.
29601         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29602         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29603         * modules/getsockopt (Depends-on): Add socklen.
29604         * modules/setsockopt (Depends-on): Add socklen.
29605
29606 2009-03-01  Bruno Haible  <bruno@clisp.org>
29607
29608         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29609         least 4.2.
29610
29611 2009-03-01  Eric Blake  <ebb9@byu.net>
29612             Bruno Haible  <bruno@clisp.org>
29613
29614         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29615         error messages.
29616         * lib/wait-process.c (wait_subprocess): Omit error message about
29617         deadly signal sent to the child of termsigp != NULL.
29618
29619 2009-03-01  Eric Blake  <ebb9@byu.net>
29620
29621         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29622
29623 2009-03-01  Bruno Haible  <bruno@clisp.org>
29624
29625         Avoid a gcc warning.
29626         * tests/test-sched.c (b): Make global.
29627         Reported by Eric Blake.
29628
29629 2009-01-19  Martin Lambers  <marlam@marlam.de>
29630
29631         Provide POSIX semantics for socket timeout options on W32.
29632         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29633         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29634         * modules/setsockopt: Depend on sys_time module for struct timeval.
29635         * modules/getsockopt: Depend on sys_time module for struct timeval.
29636
29637 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29638
29639         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29640         __USE_GNU, for consistency with netdb.in.h.
29641         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29642
29643 2009-03-01  Bruno Haible  <bruno@clisp.org>
29644
29645         More support for FreeMiNT.
29646         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29647         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29648
29649 2009-03-01  Bruno Haible  <bruno@clisp.org>
29650
29651         More support for FreeMiNT.
29652         * lib/fpurge.c (fpurge): Correct last commit.
29653         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29654
29655 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29656
29657         Fix unportable awk script in vc-list-files.
29658         * build-aux/vc-list-files: In the replacement awk script, use
29659         substr with a second argument of 1, not zero.
29660         Report by Simon Josefsson.
29661
29662 2009-02-28  Bruno Haible  <bruno@clisp.org>
29663
29664         More support for FreeMiNT.
29665         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29666         to FreeMiNT today.
29667         * lib/fwriting.c (fwriting): Likewise.
29668         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29669
29670 2009-02-28  Bruno Haible  <bruno@clisp.org>
29671
29672         * tests/test-freadseek.c (main): Disable test beyond end of file on
29673         FreeMiNT.
29674         * tests/test-ftello.c (main): Likewise.
29675         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29676
29677 2009-02-28  Bruno Haible  <bruno@clisp.org>
29678
29679         Add tentative support for FreeMiNT.
29680         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29681         * lib/fpurge.c (fpurge): Likewise.
29682         * lib/freadable.c (freadable): Likewise.
29683         * lib/freading.c (freading): Likewise.
29684         * lib/freadptr.c (freadptr): Likewise.
29685         * lib/freadseek.c (freadptrinc): Likewise.
29686         * lib/fseeko.c (rpl_fseeko): Likewise.
29687         * lib/fseterr.c (fseterr): Likewise.
29688         * lib/fwritable.c (fwritable): Likewise.
29689         * lib/fwriting.c (fwriting): Likewise.
29690         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29691         Hourihane.
29692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29693
29694 2009-02-28  Bruno Haible  <bruno@clisp.org>
29695
29696         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29697         SIGCHLD.
29698         Reported by Jim Meyering.
29699
29700 2009-02-28  Bruno Haible  <bruno@clisp.org>
29701
29702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29703         Mention the results of these tests on various platforms.
29704         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29705         order.
29706         * doc/posix-functions/printf.texi: Likewise.
29707         * doc/posix-functions/snprintf.texi: Likewise.
29708         * doc/posix-functions/sprintf.texi: Likewise.
29709         * doc/posix-functions/vfprintf.texi: Likewise.
29710         * doc/posix-functions/vprintf.texi: Likewise.
29711         * doc/posix-functions/vsnprintf.texi: Likewise.
29712         * doc/posix-functions/vsprintf.texi: Likewise.
29713         * doc/glibc-functions/obstack_printf.texi: Likewise.
29714         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29715
29716 2009-02-28  Bruno Haible  <bruno@clisp.org>
29717
29718         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29719         Reported by Loïc Minier <lool@dooz.org>.
29720
29721 2009-02-27  Bruno Haible  <bruno@clisp.org>
29722
29723         * gnulib-tool (func_import): Make the sed expression used to create the
29724         sed script for updating the .gitignore file POSIX compliant.
29725         Reported by Eric Blake.
29726
29727 2009-02-27  Bruno Haible  <bruno@clisp.org>
29728
29729         * gnulib-tool (sed): Don't alias as "sed --posix".
29730         Reported by Eric Blake.
29731
29732 2009-02-27  Bruno Haible  <bruno@clisp.org>
29733
29734         Avoid test link errors.
29735         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29736         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29737         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29738         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29739         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29740
29741 2009-02-27  Bruno Haible  <bruno@clisp.org>
29742
29743         Avoid spurious "(cached)" in configure output.
29744         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29745         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29746         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29747         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29749         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29751         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29752         Reported by Eric Blake.
29753
29754 2009-02-27  Eric Blake  <ebb9@byu.net>
29755
29756         printf: fix regression in previous patch
29757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29758
29759 2009-02-27  Bruno Haible  <bruno@clisp.org>
29760
29761         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29762         value.
29763         * lib/stdint.in.h: Likewise.
29764         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29765
29766 2009-02-27  Eric Blake  <ebb9@byu.net>
29767
29768         doc: mention more functions added in cygwin 1.7.0
29769         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29770         addition.
29771         * doc/posix-functions/open_wmemstream.texi: Likewise.
29772         * doc/posix-functions/wcsnlen.texi: Likewise.
29773         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29774         * doc/posix-functions/wcstod.texi: Likewise.
29775         * doc/posix-functions/wcstof.texi: Likewise.
29776         * doc/posix-functions/wcstoimax.texi: Likewise.
29777         * doc/posix-functions/wcstok.texi: Likewise.
29778         * doc/posix-functions/wcstoumax.texi: Likewise.
29779
29780         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29782         * doc/posix-functions/fprintf.texi: Update.
29783         * doc/posix-functions/printf.texi: Update.
29784         * doc/posix-functions/snprintf.texi: Update.
29785         * doc/posix-functions/sprintf.texi: Update.
29786         * doc/posix-functions/vfprintf.texi: Update.
29787         * doc/posix-functions/vprintf.texi: Update.
29788         * doc/posix-functions/vsnprintf.texi: Update.
29789         * doc/posix-functions/vsprintf.texi: Update.
29790         * doc/glibc-functions/obstack_printf.texi: Update.
29791         * doc/glibc-functions/obstack_vprintf.texi: Update.
29792
29793 2009-02-26  Eric Blake  <ebb9@byu.net>
29794
29795         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29796         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29797         compilation bug by using runtime conversion.
29798         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29799         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29800         * modules/ceill-tests (Files): Use nan.h.
29801         * modules/floorl-tests (Files): Likewise.
29802         * modules/frexpl-tests (Files): Likewise.
29803         * modules/isnanl-tests (Files): Likewise.
29804         * modules/ldexpl-tests (Files): Likewise.
29805         * modules/roundl-tests (Files): Likewise.
29806         * modules/truncl-tests (Files): Likewise.
29807         * tests/test-ceill.c (main): Use a working NaN.
29808         * tests/test-floorl.c (main): Likewise.
29809         * tests/test-frexpl.c (main): Likewise.
29810         * tests/test-isnan.c (test_long_double): Likewise.
29811         * tests/test-isnanl.h (main): Likewise.
29812         * tests/test-ldexpl.h (main): Likewise.
29813         * tests/test-roundl.h (main): Likewise.
29814         * tests/test-truncl.h (main): Likewise.
29815         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29816
29817 2009-02-26  Eric Blake  <ebb9@byu.net>
29818             Bruno Haible  <bruno@clisp.org>
29819
29820         Work around a *printf bug with %ls on Solaris.
29821         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29822         precision is specified, sprintf stops converting the wide string
29823         argument when the number of bytes that have been produced by this
29824         conversion equals or exceeds the precision.
29825         * doc/posix-functions/fprintf.texi: Update.
29826         * doc/posix-functions/printf.texi: Update.
29827         * doc/posix-functions/snprintf.texi: Update.
29828         * doc/posix-functions/sprintf.texi: Update.
29829         * doc/posix-functions/vfprintf.texi: Update.
29830         * doc/posix-functions/vprintf.texi: Update.
29831         * doc/posix-functions/vsnprintf.texi: Update.
29832         * doc/posix-functions/vsprintf.texi: Update.
29833         * doc/glibc-functions/obstack_printf.texi: Update.
29834         * doc/glibc-functions/obstack_vprintf.texi: Update.
29835
29836 2009-02-26  Eric Blake  <ebb9@byu.net>
29837
29838         stdlib: favor compiler check of random.h
29839         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29840         to avoid an ObjC random.h installed by Swarm.
29841
29842 2009-02-26  Bruno Haible  <bruno@clisp.org>
29843
29844         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29845         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29846         Reported by Gary V. Vaughan <gary@gnu.org>.
29847
29848 2009-02-26  Bruno Haible  <bruno@clisp.org>
29849
29850         Fix *printf behaviour regarding the %ls directive.
29851         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29852         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29853         NEED_PRINTF_DIRECTIVE_LS.
29854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29855         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29856         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29857         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29858         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29859         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29860         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29865         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29867         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29868         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29869         * doc/posix-functions/fprintf.texi: Update.
29870         * doc/posix-functions/printf.texi: Update.
29871         * doc/posix-functions/snprintf.texi: Update.
29872         * doc/posix-functions/sprintf.texi: Update.
29873         * doc/posix-functions/vfprintf.texi: Update.
29874         * doc/posix-functions/vprintf.texi: Update.
29875         * doc/posix-functions/vsnprintf.texi: Update.
29876         * doc/posix-functions/vsprintf.texi: Update.
29877         * doc/glibc-functions/obstack_printf.texi: Update.
29878         * doc/glibc-functions/obstack_vprintf.texi: Update.
29879         Reported by Eric Blake.
29880
29881 2009-02-25  Bruno Haible  <bruno@clisp.org>
29882
29883         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29884         with known value.
29885         Reported by Gary V. Vaughan <gary@gnu.org>.
29886
29887 2009-02-25  Bruno Haible  <bruno@clisp.org>
29888
29889         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29890         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29891         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29892         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29893         Reported by Gary V. Vaughan <gary@gnu.org>.
29894
29895 2009-02-25  Bruno Haible  <bruno@clisp.org>
29896
29897         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29898         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29899         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29900         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29901         Reported by Gary V. Vaughan <gary@gnu.org>.
29902
29903 2009-02-25  Eric Blake  <ebb9@byu.net>
29904
29905         tests: skip fseek/ftell tests if ungetc is broken
29906         * m4/ungetc.m4: New file.
29907         * modules/fseek-tests: Split test, so ungetc dependency is
29908         separate from rest of test.
29909         * modules/fseeko-tests: Likewise.
29910         * modules/ftell-tests: Likewise.
29911         * modules/ftello-tests: Likewise.
29912         * tests/test-fseek.c (main): Isolate ungetc dependency.
29913         * tests/test-fseeko.c (main): Likewise.
29914         * tests/test-ftell.c (main): Likewise.
29915         * tests/test-ftello.c (main): Likewise.
29916         * tests/test-fseek2.sh: New file.
29917         * tests/test-fseeko2.sh: Likewise.
29918         * tests/test-ftell2.sh: Likewise.
29919         * tests/test-ftello2.sh: Likewise.
29920
29921 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29922
29923         test-getaddrinfo: fix usage of skip return code 77
29924         * tests/test-gettaddrinfo.c: Return skip code 77 only
29925         for first occurance of skip (4x77 is not 77)
29926
29927 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29928
29929         strtod: avoid C99 decl-after-statement
29930         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29931
29932 2009-02-24  Eric Blake  <ebb9@byu.net>
29933
29934         strtod: detect HP-UX 11.31 bug
29935         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29936         Reported by Gary V. Vaughan.
29937
29938 2009-02-23  Bruno Haible  <bruno@clisp.org>
29939
29940         Fix invalid read past end of memory block.
29941         * lib/vasnprintf.c (DCHAR_SET): Define.
29942         (local_wcslen): Define only when needed.
29943         (local_strnlen, local_wcsnlen): New functions.
29944         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29945         directives that involve a conversion ourselves.
29946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29947         wcsnlen, mbrtowc, wcrtomb.
29948         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29949         * tests/test-vasprintf-posix.c (test_function): Likewise.
29950         * tests/test-snprintf-posix.h (test_function): Likewise.
29951         * tests/test-sprintf-posix.h (test_function): Likewise.
29952         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29953
29954 2009-02-22  Bruno Haible  <bruno@clisp.org>
29955
29956         Implement new clarified decomposition of Hangul syllables.
29957         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29958         of type LTV, return only a pairwise decomposition.
29959         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29960         Likewise.
29961         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29962         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29963         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29964
29965 2009-02-22  Bruno Haible  <bruno@clisp.org>
29966
29967         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29968         zero-length results and shrink excess allocated memory.
29969         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29970         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29971         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29972         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29973         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29974         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29975         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29976         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29977         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29978         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29979         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29980         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29981
29982 2009-02-21  Bruno Haible  <bruno@clisp.org>
29983
29984         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29985         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29986         spaces after a period. Put a space between a macro name and its
29987         argument list. Trivial rewordings.
29988         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29989         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29990         (main): Return 0 explicitly.
29991
29992 2009-02-21  Bruno Haible  <bruno@clisp.org>
29993
29994         Tests for module 'uninorm/filter'.
29995         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29996         * modules/uninorm/filter-tests: New file.
29997
29998         New module 'uninorm/filter'.
29999         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30000         uninorm_filter_flush, uninorm_filter_free): New declarations.
30001         * lib/uninorm/uninorm-filter.c: New file.
30002         * modules/uninorm/filter: New file.
30003
30004 2009-02-21  Bruno Haible  <bruno@clisp.org>
30005
30006         Tests for module 'uninorm/nfkc'.
30007         * tests/uninorm/test-nfkc.c: New file.
30008         * tests/uninorm/test-u8-nfkc.c: New file.
30009         * tests/uninorm/test-u16-nfkc.c: New file.
30010         * tests/uninorm/test-u32-nfkc.c: New file.
30011         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30012         * tests/uninorm/test-u32-nfkc-big.c: New file.
30013         * modules/uninorm/nfkc-tests: New file.
30014
30015         New module 'uninorm/nfkc'.
30016         * lib/uninorm/nfkc.c: New file.
30017         * modules/uninorm/nfkc: New file.
30018
30019         Tests for module 'uninorm/nfkd'.
30020         * tests/uninorm/test-nfkd.c: New file.
30021         * tests/uninorm/test-u8-nfkd.c: New file.
30022         * tests/uninorm/test-u16-nfkd.c: New file.
30023         * tests/uninorm/test-u32-nfkd.c: New file.
30024         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30025         * tests/uninorm/test-u32-nfkd-big.c: New file.
30026         * modules/uninorm/nfkd-tests: New file.
30027
30028         New module 'uninorm/nfkd'.
30029         * lib/uninorm/nfkd.c: New file.
30030         * modules/uninorm/nfkd: New file.
30031
30032         Tests for module 'uninorm/nfc'.
30033         * tests/uninorm/test-nfc.c: New file.
30034         * tests/uninorm/test-u8-nfc.c: New file.
30035         * tests/uninorm/test-u16-nfc.c: New file.
30036         * tests/uninorm/test-u32-nfc.c: New file.
30037         * tests/uninorm/test-u32-nfc-big.sh: New file.
30038         * tests/uninorm/test-u32-nfc-big.c: New file.
30039         * modules/uninorm/nfc-tests: New file.
30040
30041         New module 'uninorm/nfc'.
30042         * lib/uninorm/nfc.c: New file.
30043         * modules/uninorm/nfc: New file.
30044
30045         Tests for module 'uninorm/nfd'.
30046         * tests/uninorm/test-nfd.c: New file.
30047         * tests/uninorm/test-u8-nfd.c: New file.
30048         * tests/uninorm/test-u16-nfd.c: New file.
30049         * tests/uninorm/test-u32-nfd.c: New file.
30050         * tests/uninorm/test-u32-nfd-big.sh: New file.
30051         * tests/uninorm/test-u32-nfd-big.c: New file.
30052         * tests/uninorm/test-u32-normalize-big.h: New file.
30053         * tests/uninorm/test-u32-normalize-big.c: New file.
30054         * tests/uninorm/NormalizationTest.txt: New file, created from
30055         Unicode 5.1.0 NormalizationTest.txt.
30056         * modules/uninorm/nfd-tests: New file.
30057
30058         New module 'uninorm/nfd'.
30059         * lib/uninorm/nfd.c: New file.
30060         * modules/uninorm/nfd: New file.
30061
30062         New module 'uninorm/u32-normalize'.
30063         * lib/uninorm/u32-normalize.c: New file.
30064         * modules/uninorm/u32-normalize: New file.
30065
30066         New module 'uninorm/u16-normalize'.
30067         * lib/uninorm/u16-normalize.c: New file.
30068         * modules/uninorm/u16-normalize: New file.
30069
30070         New module 'uninorm/u8-normalize'.
30071         * lib/uninorm/u8-normalize.c: New file.
30072         * lib/uninorm/normalize-internal.h: New file.
30073         * lib/uninorm/u-normalize-internal.h: New file.
30074         * modules/uninorm/u8-normalize: New file.
30075
30076         New module 'uninorm/decompose-internal'.
30077         * lib/uninorm/decompose-internal.c: New file.
30078         * modules/uninorm/decompose-internal: New file.
30079
30080         Tests for module 'uninorm/composition'.
30081         * tests/uninorm/test-composition.c: New file.
30082         * modules/uninorm/composition-tests: New file.
30083
30084         New module 'uninorm/composition'.
30085         * lib/uninorm/composition.c: New file.
30086         * lib/uninorm/composition-table.gperf: New file, generated by
30087         gen-uni-tables.
30088         * modules/uninorm/composition: New file.
30089
30090         Tests for module 'uninorm/compat-decomposition'.
30091         * tests/uninorm/test-compat-decomposition.c: New file.
30092         * modules/uninorm/compat-decomposition-tests: New file.
30093
30094         New module 'uninorm/compat-decomposition'.
30095         * lib/uninorm/decompose-internal.h: New file.
30096         * lib/uninorm/compat-decomposition.c: New file.
30097         * modules/uninorm/compat-decomposition: New file.
30098
30099         Tests for module 'uninorm/canonical-decomposition'.
30100         * tests/uninorm/test-canonical-decomposition.c: New file.
30101         * modules/uninorm/canonical-decomposition-tests: New file.
30102
30103         New module 'uninorm/canonical-decomposition'.
30104         * lib/uninorm/canonical-decomposition.c: New file.
30105         * modules/uninorm/canonical-decomposition: New file.
30106
30107         Tests for module 'uninorm/decomposition'.
30108         * tests/uninorm/test-decomposition.c: New file.
30109         * modules/uninorm/decomposition-tests: New file.
30110
30111         New module 'uninorm/decomposition'.
30112         * lib/uninorm/decomposition.c: New file.
30113         * modules/uninorm/decomposition: New file.
30114
30115         New module 'uninorm/decomposition-table'.
30116         * lib/uninorm/decomposition-table.h: New file.
30117         * lib/uninorm/decomposition-table.c: New file.
30118         * lib/uninorm/decomposition-table1.h: New file, generated by
30119         gen-uni-tables.
30120         * lib/uninorm/decomposition-table2.h: New file, generated by
30121         gen-uni-tables.
30122         * modules/uninorm/decomposition-table: New file.
30123
30124         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30125         (UC_DECOMP_*): New enumeration items.
30126         (get_decomposition): New function.
30127         (struct decomp_table): New type.
30128         (output_decomposition, output_decomposition_tables): New functions.
30129         (unicode_composition_exclusions): New variable.
30130         (fill_composition_exclusions, debug_output_composition_tables): New
30131         functions.
30132         (main): Accept one more argument. Invoke fill_composition_exclusions.
30133         Output decomposition and composition tables.
30134
30135         New module 'uninorm/base'.
30136         * lib/uninorm.h: New file.
30137         * lib/unictype.h: Update comment.
30138         * modules/uninorm/base: New file.
30139
30140 2009-02-21  David Lutterkort  <lutter@redhat.com>
30141
30142         Tests for module 'safe-alloc'.
30143         * tests/test-safe-alloc.c: New file.
30144         * modules/safe-alloc-tests: New file.
30145
30146         New module 'safe-alloc'.
30147         * lib/safe-alloc.h: New file.
30148         * lib/safe-alloc.c: New file.
30149         * m4/safe-alloc.m4: New file.
30150         * modules/safe-alloc: New file.
30151         * doc/safe-alloc.texi: New file.
30152         * doc/gnulib.texi: Include it.
30153         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30154         safe-alloc.
30155
30156 2009-02-18  Bruno Haible  <bruno@clisp.org>
30157
30158         Fix link error on non-glibc systems.
30159         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30160         variable.
30161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30162
30163 2009-02-18  Jim Meyering  <meyering@redhat.com>
30164
30165         fts: avoid used-uninitialized error due to recent change
30166         * lib/fts.c (fts_read): Guard uses of the new member,
30167         parent->fts_n_dirs_remaining, since it's not relevant for
30168         the parent of a directory specified on the command-line.
30169
30170 2009-02-17  James Youngman  <jay@gnu.org>
30171             Bruno Haible  <bruno@clisp.org>
30172
30173         * m4/include_next.m4: Reformulate comment.
30174
30175 2009-02-16  Jim Meyering  <meyering@redhat.com>
30176
30177         fts: add #if guards so that the fts_lgpl module still builds
30178         * lib/fts.c: Guard just-added hash-table-using parts with
30179         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30180         Reported by Simon Josefsson.
30181
30182 2009-02-15  Bruno Haible  <bruno@clisp.org>
30183
30184         * modules/array-mergesort-tests: New file.
30185         * tests/test-array-mergesort.c: New file.
30186
30187         New module 'array-mergesort'.
30188         * modules/array-mergesort: New file.
30189         * lib/array-mergesort.h: New file.
30190
30191 2009-02-15  Bruno Haible  <bruno@clisp.org>
30192
30193         Fix 2009-02-07 commit.
30194         * lib/gen-uni-tables.c (output_predicate, output_category,
30195         output_combclass, output_bidi_category, output_decimal_digit,
30196         output_digit, output_numeric, output_mirror, output_scripts,
30197         output_ident_category, output_simple_mapping): Fix format directives.
30198         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30199
30200 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30201
30202         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30203         fixes are available from IBM.
30204
30205 2009-02-13  Jim Meyering  <meyering@redhat.com>
30206
30207         fts: arrange not to stat non-directories in more cases
30208         This makes GNU find (when it doesn't need to stat each file)
30209         *much* more efficient at traversing reiserfs file systems.
30210         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30211         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30212         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30213         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30214         (leaf_optimization_applies): New function.
30215         (LCO_hash, LCO_compare): New helper functions.
30216         (link_count_optimize_ok): New function.
30217         (fts_stat): Initialize new member (if dir).
30218         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30219         we've just stat'ed a directory.  Skip the stat call when possible.
30220         ---
30221         Note this AFS-related exchange:
30222         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30223         and note find's pioctl call in find/fstype.c.
30224         But that is necessary only if you want to enable the
30225         optimization for AFS, and for now, I don't.
30226
30227         fts: move a function definition "up" (no semantic change)
30228         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30229         "up" to precede upcoming use of a related function.
30230
30231 2009-02-11  Jim Meyering  <meyering@redhat.com>
30232
30233         fts: correct internal computation of nlinks (optimization-related)
30234         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30235         whether the current entry is a directory, so don't test it.
30236
30237 2009-02-10  Bruno Haible  <bruno@clisp.org>
30238
30239         Tests for module 'uniwbrk/ulc-wordbreaks'.
30240         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30241         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30242         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30243
30244         Tests for module 'uniwbrk/u32-wordbreaks'.
30245         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30246         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30247
30248         Tests for module 'uniwbrk/u16-wordbreaks'.
30249         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30250         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30251
30252         Tests for module 'uniwbrk/u8-wordbreaks'.
30253         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30254         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30255
30256 2009-02-10  Bruno Haible  <bruno@clisp.org>
30257
30258         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30259         property.
30260         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30261         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30262         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30263
30264 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30265
30266         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30267         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30268
30269 2009-02-10  Bruno Haible  <bruno@clisp.org>
30270
30271         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30272         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30273         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30274         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30275         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30276         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30277
30278 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30279
30280         * lib/sockets.h (gl_fd_to_handle): New function.
30281
30282         * tests/test-sockets.c: Call gl_fd_to_handle.
30283
30284 2009-02-09  Bruno Haible  <bruno@clisp.org>
30285
30286         * doc/havelib.texi: Document the conventions on bi-arch systems.
30287
30288 2009-02-08  Bruno Haible  <bruno@clisp.org>
30289
30290         Document the AC_LIB_LINKFLAGS macro.
30291         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30292         * doc/gnulib.texi: Include it.
30293
30294 2009-02-08  Bruno Haible  <bruno@clisp.org>
30295
30296         Fix wrong order of sections, compared to TOC.
30297         * doc/gnulib.texi: Include relocatable-maint.texi after the
30298         "Regular expressions" node, not before.
30299
30300 2009-02-08  Bruno Haible  <bruno@clisp.org>
30301
30302         Tests for module 'unicase/totitle'.
30303         * modules/unicase/totitle-tests: New file.
30304
30305         Tests for module 'unicase/tolower'.
30306         * modules/unicase/tolower-tests: New file.
30307
30308         Tests for module 'unicase/toupper'.
30309         * modules/unicase/toupper-tests: New file.
30310         * tests/unicase/test-mapping-part1.h: New file.
30311         * tests/unicase/test-mapping-part2.h: New file.
30312
30313         New module 'unicase/totitle'.
30314         * modules/unicase/totitle: New file.
30315         * lib/unicase/totitle.c: New file.
30316
30317         New module 'unicase/tolower'.
30318         * modules/unicase/tolower: New file.
30319         * lib/unicase/tolower.c: New file.
30320
30321         New module 'unicase/toupper'.
30322         * modules/unicase/toupper: New file.
30323         * lib/unicase/toupper.c: New file.
30324         * lib/unicase/simple-mapping.h: New file.
30325
30326         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30327         (mapping_table): New structure.
30328         (output_simple_mapping): New function.
30329         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30330         * modules/gen-uni-tables (Description): Update.
30331         * lib/unicase/toupper.h: New file, automatically generated by
30332         gen-uni-tables.
30333         * lib/unicase/tolower.h: New file, automatically generated by
30334         gen-uni-tables.
30335         * lib/unicase/totitle.h: New file, automatically generated by
30336         gen-uni-tables.
30337         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30338         gen-uni-tables.
30339         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30340         gen-uni-tables.
30341         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30342         gen-uni-tables.
30343
30344         New module 'unicase/base'.
30345         * modules/unicase/base: New file.
30346         * lib/unicase.h: New file.
30347
30348 2009-02-08  Bruno Haible  <bruno@clisp.org>
30349
30350         New module 'uniwbrk/ulc-wordbreaks'.
30351         * modules/uniwbrk/ulc-wordbreaks: New file.
30352         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30353
30354         New module 'uniwbrk/u32-wordbreaks'.
30355         * modules/uniwbrk/u32-wordbreaks: New file.
30356         * lib/uniwbrk/u32-wordbreaks.c: New file.
30357
30358         New module 'uniwbrk/u16-wordbreaks'.
30359         * modules/uniwbrk/u16-wordbreaks: New file.
30360         * lib/uniwbrk/u16-wordbreaks.c: New file.
30361
30362         New module 'uniwbrk/u8-wordbreaks'.
30363         * modules/uniwbrk/u8-wordbreaks: New file.
30364         * lib/uniwbrk/u8-wordbreaks.c: New file.
30365         * lib/uniwbrk/u-wordbreaks.h: New file.
30366
30367         New module 'uniwbrk/table'.
30368         * modules/uniwbrk/table: New file.
30369         * lib/uniwbrk/wbrktable.h: New file.
30370         * lib/uniwbrk/wbrktable.c: New file.
30371
30372         New module 'uniwbrk/wordbreak-property'.
30373         * modules/uniwbrk/wordbreak-property: New file.
30374         * lib/uniwbrk/wordbreak-property.c: New file.
30375
30376         * lib/gen-uni-tables.c (WBP_*): New enum items.
30377         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30378         (unicode_org_wbp): New variable.
30379         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30380         New functions.
30381         (wbp_table): New structure.
30382         (output_wbp, output_wbrk_tables): New functions.
30383         (main): Accept additional argument. Invoke fill_org_wbp,
30384         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30385         output_wbrk_tables.
30386         * modules/gen-uni-tables (Description): Update.
30387         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30388         gen-uni-tables.
30389
30390         New module 'uniwbrk/base'.
30391         * modules/uniwbrk/base: New file.
30392         * lib/uniwbrk.h: New file.
30393
30394 2009-02-08  Bruno Haible  <bruno@clisp.org>
30395
30396         Update to Unicode 5.1.0.
30397         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30398         U+2185..U+2188.
30399         (is_property_default_ignorable_code_point): Don't include characters
30400         of category Cc or Cs and not-a-characters.
30401         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30402         U+0D79, U+109E, U+109F, U+A60C.
30403         * lib/unictype/bidi_of.h: Regenerated.
30404         * lib/unictype/blocks.h: Regenerated.
30405         * lib/unictype/categ_C.h: Regenerated.
30406         * lib/unictype/categ_Cf.h: Regenerated.
30407         * lib/unictype/categ_Cn.h: Regenerated.
30408         * lib/unictype/categ_L.h: Regenerated.
30409         * lib/unictype/categ_Ll.h: Regenerated.
30410         * lib/unictype/categ_Lm.h: Regenerated.
30411         * lib/unictype/categ_Lo.h: Regenerated.
30412         * lib/unictype/categ_Lu.h: Regenerated.
30413         * lib/unictype/categ_M.h: Regenerated.
30414         * lib/unictype/categ_Mc.h: Regenerated.
30415         * lib/unictype/categ_Me.h: Regenerated.
30416         * lib/unictype/categ_Mn.h: Regenerated.
30417         * lib/unictype/categ_N.h: Regenerated.
30418         * lib/unictype/categ_Nd.h: Regenerated.
30419         * lib/unictype/categ_Nl.h: Regenerated.
30420         * lib/unictype/categ_No.h: Regenerated.
30421         * lib/unictype/categ_P.h: Regenerated.
30422         * lib/unictype/categ_Pd.h: Regenerated.
30423         * lib/unictype/categ_Pe.h: Regenerated.
30424         * lib/unictype/categ_Pf.h: Regenerated.
30425         * lib/unictype/categ_Pi.h: Regenerated.
30426         * lib/unictype/categ_Po.h: Regenerated.
30427         * lib/unictype/categ_Ps.h: Regenerated.
30428         * lib/unictype/categ_S.h: Regenerated.
30429         * lib/unictype/categ_Sk.h: Regenerated.
30430         * lib/unictype/categ_Sm.h: Regenerated.
30431         * lib/unictype/categ_So.h: Regenerated.
30432         * lib/unictype/categ_of.h: Regenerated.
30433         * lib/unictype/combining.h: Regenerated.
30434         * lib/unictype/ctype_alnum.h: Regenerated.
30435         * lib/unictype/ctype_alpha.h: Regenerated.
30436         * lib/unictype/ctype_graph.h: Regenerated.
30437         * lib/unictype/ctype_lower.h: Regenerated.
30438         * lib/unictype/ctype_print.h: Regenerated.
30439         * lib/unictype/ctype_punct.h: Regenerated.
30440         * lib/unictype/ctype_upper.h: Regenerated.
30441         * lib/unictype/decdigit.h: Regenerated.
30442         * lib/unictype/digit.h: Regenerated.
30443         * lib/unictype/mirror.h: Regenerated.
30444         * lib/unictype/numeric.h: Regenerated.
30445         * lib/unictype/pr_alphabetic.h: Regenerated.
30446         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30447         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30448         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30449         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30450         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30451         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30452         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30453         * lib/unictype/pr_combining.h: Regenerated.
30454         * lib/unictype/pr_dash.h: Regenerated.
30455         * lib/unictype/pr_decimal_digit.h: Regenerated.
30456         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30457         * lib/unictype/pr_deprecated.h: Regenerated.
30458         * lib/unictype/pr_diacritic.h: Regenerated.
30459         * lib/unictype/pr_extender.h: Regenerated.
30460         * lib/unictype/pr_format_control.h: Regenerated.
30461         * lib/unictype/pr_grapheme_base.h: Regenerated.
30462         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30463         * lib/unictype/pr_grapheme_link.h: Regenerated.
30464         * lib/unictype/pr_id_continue.h: Regenerated.
30465         * lib/unictype/pr_id_start.h: Regenerated.
30466         * lib/unictype/pr_ideographic.h: Regenerated.
30467         * lib/unictype/pr_ignorable_control.h: Regenerated.
30468         * lib/unictype/pr_lowercase.h: Regenerated.
30469         * lib/unictype/pr_math.h: Regenerated.
30470         * lib/unictype/pr_numeric.h: Regenerated.
30471         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30472         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30473         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30474         * lib/unictype/pr_other_id_continue.h: Regenerated.
30475         * lib/unictype/pr_other_lowercase.h: Regenerated.
30476         * lib/unictype/pr_other_math.h: Regenerated.
30477         * lib/unictype/pr_punctuation.h: Regenerated.
30478         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30479         * lib/unictype/pr_soft_dotted.h: Regenerated.
30480         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30481         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30482         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30483         * lib/unictype/pr_uppercase.h: Regenerated.
30484         * lib/unictype/pr_xid_continue.h: Regenerated.
30485         * lib/unictype/pr_xid_start.h: Regenerated.
30486         * lib/unictype/pr_zero_width.h: Regenerated.
30487         * lib/unictype/scripts.h: Regenerated.
30488         * lib/unictype/scripts_byname.gperf: Regenerated.
30489         * lib/unictype/sy_java_ident.h: Regenerated.
30490         * lib/unilbrk/lbrkprop1.h: Regenerated.
30491         * lib/unilbrk/lbrkprop2.h: Regenerated.
30492         * tests/unictype/test-categ_C.c: Regenerated.
30493         * tests/unictype/test-categ_Cf.c: Regenerated.
30494         * tests/unictype/test-categ_Cn.c: Regenerated.
30495         * tests/unictype/test-categ_L.c: Regenerated.
30496         * tests/unictype/test-categ_Ll.c: Regenerated.
30497         * tests/unictype/test-categ_Lm.c: Regenerated.
30498         * tests/unictype/test-categ_Lo.c: Regenerated.
30499         * tests/unictype/test-categ_Lu.c: Regenerated.
30500         * tests/unictype/test-categ_M.c: Regenerated.
30501         * tests/unictype/test-categ_Mc.c: Regenerated.
30502         * tests/unictype/test-categ_Me.c: Regenerated.
30503         * tests/unictype/test-categ_Mn.c: Regenerated.
30504         * tests/unictype/test-categ_N.c: Regenerated.
30505         * tests/unictype/test-categ_Nd.c: Regenerated.
30506         * tests/unictype/test-categ_Nl.c: Regenerated.
30507         * tests/unictype/test-categ_No.c: Regenerated.
30508         * tests/unictype/test-categ_P.c: Regenerated.
30509         * tests/unictype/test-categ_Pd.c: Regenerated.
30510         * tests/unictype/test-categ_Pe.c: Regenerated.
30511         * tests/unictype/test-categ_Pf.c: Regenerated.
30512         * tests/unictype/test-categ_Pi.c: Regenerated.
30513         * tests/unictype/test-categ_Po.c: Regenerated.
30514         * tests/unictype/test-categ_Ps.c: Regenerated.
30515         * tests/unictype/test-categ_S.c: Regenerated.
30516         * tests/unictype/test-categ_Sk.c: Regenerated.
30517         * tests/unictype/test-categ_Sm.c: Regenerated.
30518         * tests/unictype/test-categ_So.c: Regenerated.
30519         * tests/unictype/test-ctype_alnum.c: Regenerated.
30520         * tests/unictype/test-ctype_alpha.c: Regenerated.
30521         * tests/unictype/test-ctype_graph.c: Regenerated.
30522         * tests/unictype/test-ctype_lower.c: Regenerated.
30523         * tests/unictype/test-ctype_print.c: Regenerated.
30524         * tests/unictype/test-ctype_punct.c: Regenerated.
30525         * tests/unictype/test-ctype_upper.c: Regenerated.
30526         * tests/unictype/test-decdigit.h: Regenerated.
30527         * tests/unictype/test-digit.h: Regenerated.
30528         * tests/unictype/test-numeric.h: Regenerated.
30529         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30530         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30531         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30532         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30533         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30534         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30535         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30536         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30537         * tests/unictype/test-pr_combining.c: Regenerated.
30538         * tests/unictype/test-pr_dash.c: Regenerated.
30539         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30540         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30541         * tests/unictype/test-pr_deprecated.c: Regenerated.
30542         * tests/unictype/test-pr_diacritic.c: Regenerated.
30543         * tests/unictype/test-pr_extender.c: Regenerated.
30544         * tests/unictype/test-pr_format_control.c: Regenerated.
30545         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30546         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30547         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30548         * tests/unictype/test-pr_id_continue.c: Regenerated.
30549         * tests/unictype/test-pr_id_start.c: Regenerated.
30550         * tests/unictype/test-pr_ideographic.c: Regenerated.
30551         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30552         * tests/unictype/test-pr_lowercase.c: Regenerated.
30553         * tests/unictype/test-pr_math.c: Regenerated.
30554         * tests/unictype/test-pr_numeric.c: Regenerated.
30555         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30556         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30557         Regenerated.
30558         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30559         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30560         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30561         * tests/unictype/test-pr_other_math.c: Regenerated.
30562         * tests/unictype/test-pr_punctuation.c: Regenerated.
30563         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30564         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30565         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30566         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30567         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30568         * tests/unictype/test-pr_uppercase.c: Regenerated.
30569         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30570         * tests/unictype/test-pr_xid_start.c: Regenerated.
30571         * tests/unictype/test-pr_zero_width.c: Regenerated.
30572
30573         Update to Unicode 5.1.0.
30574         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30575         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30576         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30577         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30578         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30579         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30580         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30581         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30582         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30583         (nonspacing_table_ind): Update.
30584         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30585
30586         Update to Unicode 5.1.0.
30587         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30588         code transform.
30589         * lib/uniname/uniname.c (unicode_character_name,
30590         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30591         * lib/uniname/uninames.h: Regenerated.
30592         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30593
30594 2009-02-07  Bruno Haible  <bruno@clisp.org>
30595
30596         Merge gen-ctype and gen-lbrk into a single program.
30597         * lib/gen-uni-tables.c: New file, incorporating
30598         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30599         Add directory prefixes to the names of the generated files.
30600         * lib/unictype/gen-ctype.c: Remove file.
30601         * lib/unilbrk/gen-lbrk.c: Remove file.
30602         * modules/gen-uni-tables: New file.
30603         * modules/unictype/gen-ctype: Remove file.
30604         * modules/unilbrk/gen-lbrk: Remove file.
30605
30606 2009-02-07  Bruno Haible  <bruno@clisp.org>
30607
30608         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30609
30610         New module 'unistr/u32-strcoll'.
30611         * modules/unistr/u32-strcoll: New file.
30612         * lib/unistr/u32-strcoll.c: New file.
30613
30614         New module 'unistr/u16-strcoll'.
30615         * modules/unistr/u16-strcoll: New file.
30616         * lib/unistr/u16-strcoll.c: New file.
30617
30618         New module 'unistr/u8-strcoll'.
30619         * modules/unistr/u8-strcoll: New file.
30620         * lib/unistr/u8-strcoll.c: New file.
30621         * lib/unistr/u-strcoll.h: New file.
30622
30623 2009-02-07  Bruno Haible  <bruno@clisp.org>
30624
30625         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30626         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30627         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30628         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30629         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30630         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30631
30632 2009-02-07  Bruno Haible  <bruno@clisp.org>
30633
30634         Make 64-bit clean.
30635         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30636         output_combclass, output_bidi_category, output_decimal_digit,
30637         output_digit, output_numeric, output_mirror, output_scripts,
30638         output_ident_category): Use proper width specifier in format strings.
30639
30640 2009-02-07  Bruno Haible  <bruno@clisp.org>
30641
30642         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30643         failure behaviour.
30644
30645 2009-02-07  Jim Meyering  <meyering@redhat.com>
30646
30647         regex: avoid compilation failure with upcoming gcc-4.4
30648         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30649         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30650         "... error: integer overflow in preprocessor expression".
30651
30652 2009-02-05  Ben Pfaff  <blp@gnu.org>
30653
30654         Fix link errors on Windows when close module is used.
30655         * modules/close: Add $(LIB_CLOSE) to Link section.
30656         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30657         $(LIB_CLOSE) on Windows.
30658
30659 2009-02-05  Jim Meyering  <meyering@redhat.com>
30660
30661         still avoid unused-parameter warnings, but do it cleanly
30662         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30663         (get_fs_usage): Cast to void instead.
30664         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30665         (dev_from_mount_options, read_file_system_list): Cast to void.
30666         Prompted by Bruno Haible.
30667
30668 2009-02-04  Jim Meyering  <meyering@redhat.com>
30669
30670         fsusage.c: correct copyright year
30671         * lib/fsusage.c: Reflect year in which the change is pushed into
30672
30673         avoid misc. warnings
30674         * lib/fsusage.c (UNUSED_PARAM): Define.
30675         (get_fs_usage): Mark parameter "disk" as unused.
30676         * lib/getugroups.c (getgrent): Use "void" in prototype.
30677         * lib/mountlist.c: Mark unused parameters.
30678         (read_file_system_list): Declare a local with "const".
30679         * lib/nanosleep.c (getnow): Declare static.
30680         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30681
30682         dirfd: set errno upon failure
30683         * lib/dirfd.c: Include <errno.h>.
30684         Set errno to ENOTSUP when returning -1.
30685         * modules/dirfd (Depends-on): Add errno.
30686         Suggested by John Kodis <kodis@comcast.net>.
30687
30688 2009-02-01  Bruno Haible  <bruno@clisp.org>
30689
30690         Don't assume sizeof (long) >= sizeof (void *).
30691         * lib/memcmp.c: Include stdint.h.
30692         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30693         srcp2 to 'const byte *'.
30694         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30695         types to uintptr_t.
30696         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30697         * modules/memcmp (Depends-on): Add stdint.
30698         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30699
30700 2009-01-30  Eric Blake  <ebb9@byu.net>
30701
30702         fix more require-before-expand issues
30703         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30704         expand, AC_PROG_AWK.
30705         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30706
30707 2009-01-28  Eric Blake  <ebb9@byu.net>
30708
30709         version-etc: use consistent URL formatting
30710         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30711         Improve formatting.  Use fputs for string without %.
30712
30713 2009-01-28  Jim Meyering  <meyering@redhat.com>
30714
30715         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30716         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30717         "underquoted definition of NAME" from autoconf-2.59.
30718
30719 2009-01-28  Bruno Haible  <bruno@clisp.org>
30720
30721         * doc/gnulib.texi: Add "Obsolete modules" to index.
30722
30723 2009-01-28  Jim Meyering  <meyering@redhat.com>
30724
30725         useless-if-before-free: recognize more variants
30726         * build-aux/useless-if-before-free: Also recognize e.g.,
30727         if (NULL != p) free (p);
30728
30729 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30730
30731         test-getaddrinfo: skip (don't fail) this test when there's no network
30732         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30733         on the presumption that it means you lack network access.
30734
30735 2009-01-26  Jim Meyering  <meyering@redhat.com>
30736
30737         fflush: avoid warnings on modern systems
30738         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30739         pos and result, into scopes where they're used.
30740
30741 2009-01-26  Eric Blake  <ebb9@byu.net>
30742
30743         Silence warning reintroduced by recent extensions patch.
30744         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30745         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30746         autoconf.
30747
30748         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30749         * m4/00gnulib.m4: New file.
30750         * gnulib-tool (func_get_filelist): Always use it.
30751         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30752         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30753
30754 2009-01-25  Bruno Haible  <bruno@clisp.org>
30755
30756         Make test-quotearg work on MacOS X and AIX.
30757         * tests/test-quotearg.sh: New file.
30758         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30759         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30760         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30761         include <libintl.h>.
30762         (fake_locale): Remove variable.
30763         (gettext, dgettext, dcgettext): Remove functions.
30764         (main): Instead of setting a fake locale, set a real locale. Call
30765         textdomain and bindtextdomain.
30766         * modules/quotearg-tests (Files): Add the new files.
30767         (Depends-on): Add gettext, setenv, unsetenv.
30768         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30769         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30770         Augment TESTS_ENVIRONMENT.
30771
30772 2009-01-25  Bruno Haible  <bruno@clisp.org>
30773
30774         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30775         fr_FR.ISO8859-1 locale on MacOS X.
30776         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30777         ja_JP.eucJP locale on MacOS X.
30778         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30779         zh_CN.GB18030 locale on MacOS X.
30780
30781 2009-01-25  Bruno Haible  <bruno@clisp.org>
30782
30783         Avoid link errors on MacOS X 10.3.
30784         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30785         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30786
30787 2009-01-25  Bruno Haible  <bruno@clisp.org>
30788
30789         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30790         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30791         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30792         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30793         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30794         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30795         posix_spawnattr_init, posix_spawnattr_setsigmask,
30796         posix_spawnattr_setflags, posix_spawnattr_destroy.
30797
30798         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30799         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30800         * modules/execute (Files): Remove m4/posix_spawn.m4.
30801         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30802         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30803         posix_spawnattr_init, posix_spawnattr_setsigmask,
30804         posix_spawnattr_setflags, posix_spawnattr_destroy.
30805
30806 2009-01-25  Bruno Haible  <bruno@clisp.org>
30807
30808         * lib/glthread/threadlib.c: Include <stdlib.h>.
30809
30810 2009-01-25  Bruno Haible  <bruno@clisp.org>
30811
30812         * lib/glthread/threadlib.c (dummy): New declaration.
30813
30814 2009-01-25  Bruno Haible  <bruno@clisp.org>
30815
30816         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30817         multibyte characters also for the GB18030 encoding. Don't crash when
30818         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30819
30820 2009-01-25  Bruno Haible  <bruno@clisp.org>
30821
30822         Avoid redefining 'struct random_data' on OSF/1 5.1.
30823         * lib/stdlib.in.h: Include <random.h> if it exists.
30824         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30825         HAVE_RANDOM_H. Include <random.h> when testing whether
30826         'struct random_data' exists.
30827         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30828
30829 2009-01-25  Bruno Haible  <bruno@clisp.org>
30830
30831         Don't install charset.alias on MacOS X >= 10.3.
30832         * lib/localcharset.c (DARWIN7): New macro.
30833         (get_charset_aliases): Hardcode the result for Darwin7.
30834         * modules/localcharset (install-exec-local): Don't install
30835         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30836
30837 2009-01-25  Bruno Haible  <bruno@clisp.org>
30838
30839         Don't install charset.alias on mingw and Cygwin.
30840         * modules/localcharset (install-exec-local): Don't install
30841         charset.alias on mingw and Cygwin, if the file does not yet exist.
30842         The result for these platforms is hardcoded in localcharset.c.
30843
30844 2009-01-25  Bruno Haible  <bruno@clisp.org>
30845
30846         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30847         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30848         before requiring AC_USE_SYSTEM_EXTENSIONS.
30849
30850 2009-01-25  Jim Meyering  <meyering@redhat.com>
30851
30852         c-strtod: avoid warnings
30853         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30854         "assignment discards qualifiers from pointer target type" warnings.
30855
30856 2009-01-24  Bruno Haible  <bruno@clisp.org>
30857
30858         Add support for non-UTF-8 locales on MacOS X.
30859         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30860         canonical encodings. For Darwin 7 and newer, don't map traditional
30861         encodings to UTF-8.
30862         Reported by Vincent Lefevre <vincent@vinc17.org>
30863         at <http://savannah.gnu.org/bugs/?25235>.
30864
30865 2009-01-24  Bruno Haible  <bruno@clisp.org>
30866
30867         * doc/gnulib.texi (Obsolete modules): New section.
30868         Reported by Mike Frysinger <vapier@gentoo.org>.
30869
30870 2009-01-24  Bruno Haible  <bruno@clisp.org>
30871
30872         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30873         (%.dvi): New rule.
30874
30875 2009-01-24  Bruno Haible  <bruno@clisp.org>
30876
30877         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30878         Reported by Eric Blake.
30879
30880 2009-01-24  Bruno Haible  <bruno@clisp.org>
30881
30882         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30883         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30884         Reported by Gary V. Vaughan <gary@gnu.org>.
30885
30886 2009-01-24  Bruno Haible  <bruno@clisp.org>
30887
30888         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30889
30890 2009-01-23  Bruno Haible  <bruno@clisp.org>
30891
30892         Make c-strtod, c-strtold usable in libraries.
30893         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30894         (C_STRTOD): Call strdup instead of xstrdup.
30895         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30896         * modules/c-strtold (Depends-on): Likewise.
30897         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30898         * NEWS: Mention the change.
30899         Reported by Michael Gold <mgold@ncf.ca>.
30900
30901 2009-01-23  Jim Meyering  <meyering@redhat.com>
30902
30903         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30904         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30905         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30906
30907 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30908
30909         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30910         GNU CoreUtils.
30911         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30912         * modules/version-etc (Description): Update.
30913
30914 2009-01-22  Bruno Haible  <bruno@clisp.org>
30915
30916         Cache the C locale object.
30917         * lib/c-strtod.c (c_locale_cache): New variable.
30918         (c_locale): New function.
30919         (C_STRTOD): Use it, and don't call freelocale.
30920         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30921         Suggested by Paolo Bonzini.
30922
30923 2009-01-21  Bruno Haible  <bruno@clisp.org>
30924
30925         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30926         conditions other than overflow.
30927
30928 2009-01-21  Bruno Haible  <bruno@clisp.org>
30929
30930         * lib/c-strtod.c: Include errno.h.
30931         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30932         value from STRTOD_L and STRTOD.
30933
30934 2009-01-21  Bruno Haible  <bruno@clisp.org>
30935         and Jim Meyering  <meyering@redhat.com>
30936
30937         nanosleep: skip configure test (fail it) for apple universal builds
30938         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30939         universal builds, assume that nanosleep does not work.
30940         * modules/nanosleep (Depends-on): Add multiarch.
30941
30942         mktime: skip configure test (fail it) for apple universal builds
30943         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30944         universal builds, assume that mktime does not work.
30945         * modules/mktime (Depends-on): Add multiarch.
30946
30947 2009-01-21  Eric Blake  <ebb9@byu.net>
30948
30949         multiarch: avoid expand-before-require warning
30950         * modules/multiarch (configure.ac): Require, rather than expand,
30951         gl_MULTIARCH.
30952         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30953         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30954         enforce that all clients require it.  Partial reversion of
30955         2008-12-29 patch.
30956
30957         error: avoid expand-before-require warning
30958         * modules/errno (configure.ac): Require, rather than expand,
30959         gl_HEADER_ERRNO_H.
30960         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30961         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30962         enforce that all clients require it.
30963
30964         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30965         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30966         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30967         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30968
30969 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30970
30971         Revert:
30972         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30973
30974         regex: do not depend on obsolete modules.
30975         * modules/regex: Remove memcmp and memmove.
30976
30977 2009-01-20  Bruno Haible  <bruno@clisp.org>
30978
30979         Make the 'link' module link on Windows NT 4.
30980         * lib/link.c (_WIN32_WINNT): Don't define.
30981         (CreateHardLinkFuncType): New type.
30982         (CreateHardLinkFunc, initialized): New variables.
30983         (initialize): New function.
30984         (link): Invoke CreateHardLink indirectly through the function pointer.
30985
30986 2009-01-20  Bruno Haible  <bruno@clisp.org>
30987
30988         Fix compilation failure on mingw.
30989         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30990
30991 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30992
30993         * doc/c-strtod.texi: Mention a couple of restrictions.
30994
30995 2009-01-20  Jim Meyering  <meyering@redhat.com>
30996
30997         gettimeofday: move more declarations out of functions
30998         * lib/gettimeofday.c: Move extern declarations of tzset and
30999         gmtime out of containing functions.  Prompted by Bruno Haible.
31000
31001 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31002
31003         regex: do not depend on obsolete modules.
31004         * modules/regex: Remove memcmp and memmove.
31005
31006 2009-01-19  Bruno Haible  <bruno@clisp.org>
31007
31008         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31009         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31010         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31011         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31012         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31013
31014 2009-01-19  Bruno Haible  <bruno@clisp.org>
31015
31016         * tests/test-link.c: Include <errno.h>.
31017         (main): Exit with code 77 when a hard link cannot be created due to
31018         the file system.
31019         * tests/test-link.sh: Skip test when a hard link cannot be created due
31020         to the file system.
31021         Suggested by Eric Blake.
31022
31023 2009-01-19  Martin Lambers  <marlam@marlam.de>
31024
31025         * modules/link-tests: New file.
31026         * tests/test-link.sh: New file.
31027         * tests/test-link.c: New file.
31028
31029 2009-01-19  Eric Blake  <ebb9@byu.net>
31030
31031         doc: mention another function added in cygwin 1.7.0
31032         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31033         Another new function in cygwin 1.7.
31034
31035 2009-01-19  Bruno Haible  <bruno@clisp.org>
31036
31037         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31038         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31039         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31040         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31041         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31042         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31044         * m4/md4.m4 (gl_MD4): Likewise.
31045         * m4/md5.m4 (gl_MD5): Likewise.
31046         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31047         * m4/sha1.m4 (gl_SHA1): Likewise.
31048         * m4/sha256.m4 (gl_SHA256): Likewise.
31049         * m4/sha512.m4 (gl_SHA512): Likewise.
31050
31051 2009-01-19  Bruno Haible  <bruno@clisp.org>
31052
31053         * modules/uniname/uniname-tests (Depends-on): Add progname.
31054         * tests/uniname/test-uninames.c: Include progname.h.
31055         (main): Call set_program_name.
31056
31057         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31058         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31059         (main): Call set_program_name.
31060
31061         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31062         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31063         (main): Call set_program_name.
31064
31065         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31066         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31067         (main): Call set_program_name.
31068
31069         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31070         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31071         (main): Call set_program_name.
31072
31073         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31074         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31075         (main): Call set_program_name.
31076
31077         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31078         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31079         (main): Call set_program_name.
31080
31081         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31082         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31083         (main): Call set_program_name.
31084
31085         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31086         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31087         (main): Call set_program_name.
31088
31089 2009-01-19  Eric Blake  <ebb9@byu.net>
31090
31091         test-unistd: test previous patch
31092         * tests/test-unistd.c: Test *_FILENO macros.
31093
31094         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31095         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31096         Guarantee a definition.
31097         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31098         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31099         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31100         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31101         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31102         Likewise.
31103         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31104         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31105         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31106         Likewise.
31107         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31108         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31109         (STDERR_FILENO): Likewise.
31110         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31111         (STDERR_FILENO): Likewise.
31112         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31113         (STDERR_FILENO): Likewise.
31114         Reported by Elbert Pol.
31115
31116 2009-01-19  Eric Blake  <ebb9@byu.net>
31117
31118         doc: mention more functions added in cygwin 1.7.0
31119         * doc/posix-functions/abort.texi (abort): Update wording related
31120         to cygwin.
31121         * doc/posix-functions/daylight.texi (daylight): Likewise.
31122         * doc/posix-functions/optarg.texi (optarg): Likewise.
31123         * doc/posix-functions/optarg.texi (opterr): Likewise.
31124         * doc/posix-functions/optarg.texi (optind): Likewise.
31125         * doc/posix-functions/optarg.texi (optopt): Likewise.
31126         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31127         worked in 1.5.x, and was withdrawn in 1.7.
31128         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31129         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31130         cygwin versions.
31131         * doc/posix-functions/perror.texi (perror): Likewise.
31132         * doc/posix-functions/printf.texi (printf): Likewise.
31133         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31134         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31135         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31136         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31137         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31138         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31139         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31140         Likewise.
31141         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31142         Likewise.
31143         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31144         this function.
31145         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31146         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31147         Likewise.
31148         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31149         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31150         * doc/posix-functions/confstr.texi (confstr): Likewise.
31151         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31152         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31153         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31154         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31155         * doc/posix-functions/fputws.texi (fputws): Likewise.
31156         * doc/posix-functions/fwide.texi (fwide): Likewise.
31157         * doc/posix-functions/getwc.texi (getwc): Likewise.
31158         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31159         * doc/posix-functions/putwc.texi (putwc): Likewise.
31160         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31161         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31162         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31163         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31164         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31165         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31166         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31167         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31168         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31169         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31170         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31171
31172 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31173
31174         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31175         * lib/ioctl.c: Include <sys/ioctl.h>.
31176
31177 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31178
31179         * modules/getdate-tests (Depends-on): Add progname.
31180         * tests/test-getdate.c: Use progname module, to avoid link errors
31181         on non-glibc systems.
31182
31183 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31184
31185         * modules/filenamecat-tests (Depends-on): Add progname.
31186         * modules/fstrcmp-tests (Depends-on): Likewise.
31187
31188         * tests/test-filenamecat.c: Use progname module, to avoid link
31189         errors on non-glibc systems.
31190         * tests/test-fstrcmp.c: Likewise.
31191
31192 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31193
31194         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31195         * lib/gettimeofday.c: Move extern declaration out of function.
31196
31197 2009-01-18  Bruno Haible  <bruno@clisp.org>
31198
31199         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31200         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31201         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31202
31203 2009-01-18  Bruno Haible  <bruno@clisp.org>
31204
31205         * lib/strftime.c (MEMPCPY): Remove unused macro.
31206         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31207
31208 2009-01-18  Martin Lambers  <marlam@marlam.de>
31209
31210         New module 'link'.
31211         * lib/unistd.in.h (link): New declaration.
31212         * lib/link.c: New file.
31213         * m4/link.m4: New file.
31214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31215         HAVE_LINK.
31216         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31217         * modules/link: New file.
31218         * doc/posix-functions/link.texi: Mention the new module.
31219
31220 2009-01-18  Bruno Haible  <bruno@clisp.org>
31221
31222         * tests/test-avltree_list.c (main): Call set_program_name.
31223         * tests/test-avltree_oset.c (main): Likewise.
31224         * tests/test-obstack-printf.c: Include progname.h.
31225         (main): Call set_program_name.
31226         * tests/test-quotearg.c: Include progname.h.
31227         (main): Call set_program_name.
31228         * tests/test-xmemdup0.c: Include progname.h.
31229         (main): Call set_program_name.
31230
31231 2009-01-18  Bruno Haible  <bruno@clisp.org>
31232
31233         New module 'alphasort'.
31234         * lib/dirent.in.h (alphasort): New declaration.
31235         * lib/alphasort.c: New file, from glibc with modifications.
31236         * m4/alphasort.m4: New file.
31237         * modules/alphasort: New file.
31238         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31239         HAVE_ALPHASORT.
31240         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31241         HAVE_ALPHASORT.
31242         * doc/posix-functions/alphasort.texi: Mention the new module and the
31243         portability problems.
31244
31245 2009-01-18  Bruno Haible  <bruno@clisp.org>
31246
31247         New module 'scandir'.
31248         * lib/dirent.in.h (scandir): New declaration.
31249         * lib/scandir.c: New file, from glibc with modifications.
31250         * m4/scandir.m4: New file.
31251         * modules/scandir: New file.
31252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31253         HAVE_SCANDIR.
31254         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31255         HAVE_SCANDIR.
31256         * doc/posix-functions/scandir.texi: Mention the new module and the
31257         portability problems.
31258
31259 2009-01-17  Bruno Haible  <bruno@clisp.org>
31260
31261         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31262         Update documentation.
31263         (func_remove_suffix): Escape all dots in the suffix. Update
31264         documentation.
31265         (func_filter_filelist): Update documentation.
31266         Reported by Ralf Wildenhues.
31267
31268 2009-01-17  Bruno Haible  <bruno@clisp.org>
31269
31270         * modules/dprintf-posix-tests: New file.
31271         * tests/test-dprintf-posix.sh: New file.
31272         * tests/test-dprintf-posix.c: New file.
31273
31274         New modules 'dprintf', 'dprintf-posix'.
31275         * lib/stdio.in.h (dprintf): New declaration.
31276         * lib/dprintf.c: New file.
31277         * m4/dprintf.m4: New file.
31278         * m4/dprintf-posix.m4: New file.
31279         * modules/dprintf: New file.
31280         * modules/dprintf-posix: New file.
31281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31282         HAVE_DPRINTF, REPLACE_DPRINTF.
31283         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31284         HAVE_DPRINTF, REPLACE_DPRINTF.
31285         * doc/posix-functions/dprintf.texi: Mention the new modules.
31286
31287 2009-01-17  Bruno Haible  <bruno@clisp.org>
31288
31289         * modules/vdprintf-posix-tests: New file.
31290         * tests/test-vdprintf-posix.sh: New file.
31291         * tests/test-vdprintf-posix.c: New file.
31292
31293         New modules 'vdprintf', 'vdprintf-posix'.
31294         * lib/stdio.in.h (vdprintf): New declaration.
31295         * lib/vdprintf.c: New file.
31296         * m4/vdprintf.m4: New file.
31297         * m4/vdprintf-posix.m4: New file.
31298         * modules/vdprintf: New file.
31299         * modules/vdprintf-posix: New file.
31300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31301         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31302         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31303         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31304         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31305
31306 2009-01-17  Bruno Haible  <bruno@clisp.org>
31307
31308         Fix replacement of fopen on mingw.
31309         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31310         mingw.
31311
31312 2009-01-17  Bruno Haible  <bruno@clisp.org>
31313
31314         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31315         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31316
31317 2009-01-17  Bruno Haible  <bruno@clisp.org>
31318
31319         Avoid test-fflush2.sh failure on mingw.
31320         * tests/test-fflush2.c: Include binary-io.h.
31321         (main): Put standard input into binary mode.
31322         * modules/fflush-tests (Depends-on): Add binary-io.
31323
31324 2009-01-17  Bruno Haible  <bruno@clisp.org>
31325
31326         * lib/wchar.in.h: In another particular situation, include only the
31327         system's <wchar.h> file.
31328         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31329         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31330         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31331
31332 2009-01-17  Bruno Haible  <bruno@clisp.org>
31333
31334         Support for stripping executables in --enable-relocatable.
31335         * build-aux/install-reloc: Expect one more argument, or an environment
31336         variable RELOC_STRIP_PROG. If set, strip the destination program and
31337         its wrapper.
31338         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31339         RELOC_STRIP_PROG.
31340         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31341         to set RELOCATABLE_STRIP.
31342         * NEWS: Mention the new Makefile requirement.
31343
31344 2009-01-17  Bruno Haible  <bruno@clisp.org>
31345
31346         * build-aux/install-reloc: Remove debugging information left over by
31347         C compiler on MacOS X.
31348
31349 2009-01-17  Bruno Haible  <bruno@clisp.org>
31350
31351         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31352         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31353         _NSGetExecutablePath.
31354
31355 2009-01-16  Jim Meyering  <meyering@redhat.com>
31356
31357         strerror: avoid warnings about discarding "const"
31358         * lib/strerror.c (rpl_strerror): Instead of returning a const
31359         string from each and every "case", use a variable, and add a single
31360         cast after the switch.
31361
31362 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31363
31364         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31365
31366 2009-01-16  Bruno Haible  <bruno@clisp.org>
31367
31368         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31369         array initializer syntax that also works in C++ mode.
31370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31371
31372 2009-01-16  Jim Meyering  <meyering@redhat.com>
31373
31374         poll: suppress a warning
31375         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31376         to ignore "...unsigned expression < 0 is always false" warnings.
31377
31378 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31379
31380         poll: remove declarations of unused variables
31381         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31382         sockbuf and optlen.
31383
31384 2009-01-15  Bruno Haible  <bruno@clisp.org>
31385
31386         Make fflush-after-ungetc POSIX compliant on BSD systems.
31387         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31388         (clear_ungetc_buffer): Implement also for other systems.
31389         (rpl_fflush): On glibc systems, invoke
31390         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31391         clear_ungetc_buffer after fetching the stream's position, not before.
31392
31393 2009-01-15  Bruno Haible  <bruno@clisp.org>
31394
31395         Make fflush-after-ungetc POSIX compliant on glibc systems.
31396         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31397         after ungetc.
31398         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31399         (rpl_fflush): On glibc systems, simply call the system's fflush
31400         function after clearing the ungetc buffer.
31401         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31402         Instead, lseek only to the end of file, then use the system's fseeko
31403         for the rest. On glibc systems, reset the EOF indicator bit.
31404
31405 2009-01-15  Jim Meyering  <meyering@redhat.com>
31406
31407         openmp.m4: revert quote-adding change, for portability to older autoconf
31408         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31409         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31410         Simon Josefsson noticed the problem when using autoconf-2.61.
31411
31412 2009-01-15  Bruno Haible  <bruno@clisp.org>
31413
31414         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31415         * tests/test-fflush2.c (ASSERT): Always fail.
31416         (main): Add two tests for fflush() after ungetc(), taking into account
31417         the Austin Group's clarification.
31418         Suggested by Eric Blake.
31419
31420 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31421
31422         mktime.m4: remove K&R-style function prototypes
31423         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31424         for the Sun C++ compiler.
31425
31426 2009-01-14  Bruno Haible  <bruno@clisp.org>
31427
31428         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31429         while including <wchar.h>.
31430         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31431         the system's <wchar.h> file.
31432         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31433
31434 2009-01-14  Bruno Haible  <bruno@clisp.org>
31435
31436         * m4/csharp.m4: Don't mention gettext on the serial number line.
31437         * m4/csharpexec.m4: Likewise.
31438         * m4/eaccess.m4: Likewise.
31439         * m4/javaexec.m4: Likewise.
31440         * m4/sig_atomic_t.m4: Likewise.
31441         * m4/tmpdir.m4: Likewise.
31442         * m4/intldir.m4: Bump gettext version.
31443         * m4/lib-ld.m4: Likewise.
31444
31445 2009-01-14  Bruno Haible  <bruno@clisp.org>
31446
31447         * lib/progname.c (set_program_name): Add more comments.
31448         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31449
31450 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31451
31452         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31453         were sys/stat.h does not define it.
31454
31455 2009-01-14  Jim Meyering  <meyering@redhat.com>
31456
31457         many *.m4 files: improve m4 quoting
31458         99% of this change was performed by running the following commands:
31459         git ls-files | grep '\.m4$' | xargs perl -pi \
31460           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31461           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31462           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31463           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31464         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31465         The remainder were to add Copyright dates, increment serial numbers,
31466         undo some changes in comments, exclude m4/intl.m4, and add quotes
31467         around the "1" in ",1" where the unusual spacing prohibited the
31468         above regexps from doing the job.  For more details, see
31469         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31470         * m4/acl.m4: Modified.
31471         * m4/afs.m4: Likewise.
31472         * m4/alloca.m4: Likewise.
31473         * m4/argp.m4: Likewise.
31474         * m4/argz.m4: Likewise.
31475         * m4/atexit.m4: Likewise.
31476         * m4/bison-i18n.m4: Likewise.
31477         * m4/bison.m4: Likewise.
31478         * m4/byteswap.m4: Likewise.
31479         * m4/c-stack.m4: Likewise.
31480         * m4/c-strtod.m4: Likewise.
31481         * m4/calloc.m4: Likewise.
31482         * m4/canonicalize-lgpl.m4: Likewise.
31483         * m4/chown.m4: Likewise.
31484         * m4/clock_time.m4: Likewise.
31485         * m4/codeset.m4: Likewise.
31486         * m4/copy-file.m4: Likewise.
31487         * m4/csharp.m4: Likewise.
31488         * m4/csharpcomp.m4: Likewise.
31489         * m4/csharpexec.m4: Likewise.
31490         * m4/d-ino.m4: Likewise.
31491         * m4/d-type.m4: Likewise.
31492         * m4/dirfd.m4: Likewise.
31493         * m4/double-slash-root.m4: Likewise.
31494         * m4/eaccess.m4: Likewise.
31495         * m4/eealloc.m4: Likewise.
31496         * m4/environ.m4: Likewise.
31497         * m4/errno_h.m4: Likewise.
31498         * m4/euidaccess.m4: Likewise.
31499         * m4/execute.m4: Likewise.
31500         * m4/fatal-signal.m4: Likewise.
31501         * m4/fchdir.m4: Likewise.
31502         * m4/fcntl_h.m4: Likewise.
31503         * m4/fileblocks.m4: Likewise.
31504         * m4/filenamecat.m4: Likewise.
31505         * m4/findprog.m4: Likewise.
31506         * m4/flexmember.m4: Likewise.
31507         * m4/fnmatch.m4: Likewise.
31508         * m4/fopen.m4: Likewise.
31509         * m4/fpending.m4: Likewise.
31510         * m4/fprintf-posix.m4: Likewise.
31511         * m4/free.m4: Likewise.
31512         * m4/frexp.m4: Likewise.
31513         * m4/frexpl.m4: Likewise.
31514         * m4/fsusage.m4: Likewise.
31515         * m4/ftruncate.m4: Likewise.
31516         * m4/gc-camellia.m4: Likewise.
31517         * m4/gc-random.m4: Likewise.
31518         * m4/gc.m4: Likewise.
31519         * m4/getaddrinfo.m4: Likewise.
31520         * m4/getcwd-abort-bug.m4: Likewise.
31521         * m4/getcwd-path-max.m4: Likewise.
31522         * m4/getdate.m4: Likewise.
31523         * m4/getdomainname.m4: Likewise.
31524         * m4/getgroups.m4: Likewise.
31525         * m4/gethostname.m4: Likewise.
31526         * m4/gethrxtime.m4: Likewise.
31527         * m4/getline.m4: Likewise.
31528         * m4/getloadavg.m4: Likewise.
31529         * m4/getndelim2.m4: Likewise.
31530         * m4/getpass.m4: Likewise.
31531         * m4/gettext.m4: Likewise.
31532         * m4/gettime.m4: Likewise.
31533         * m4/gettimeofday.m4: Likewise.
31534         * m4/gnulib-common.m4: Likewise.
31535         * m4/group-member.m4: Likewise.
31536         * m4/host-os.m4: Likewise.
31537         * m4/iconv.m4: Likewise.
31538         * m4/iconv_open.m4: Likewise.
31539         * m4/inet_ntop.m4: Likewise.
31540         * m4/inet_pton.m4: Likewise.
31541         * m4/inline.m4: Likewise.
31542         * m4/intldir.m4: Likewise.
31543         * m4/intlmacosx.m4: Likewise.
31544         * m4/intmax.m4: Likewise.
31545         * m4/intmax_t.m4: Likewise.
31546         * m4/inttypes.m4: Likewise.
31547         * m4/inttypes_h.m4: Likewise.
31548         * m4/inttypes-pri.m4: Likewise.
31549         * m4/isapipe.m4: Likewise.
31550         * m4/isnand.m4: Likewise.
31551         * m4/isnanf.m4: Likewise.
31552         * m4/isnanl.m4: Likewise.
31553         * m4/javacomp.m4: Likewise.
31554         * m4/javaexec.m4: Likewise.
31555         * m4/jm-winsz1.m4: Likewise.
31556         * m4/jm-winsz2.m4: Likewise.
31557         * m4/lchown.m4: Likewise.
31558         * m4/lcmessage.m4: Likewise.
31559         * m4/ldexpl.m4: Likewise.
31560         * m4/lib-ld.m4: Likewise.
31561         * m4/lib-link.m4: Likewise.
31562         * m4/libsigsegv.m4: Likewise.
31563         * m4/link-follow.m4: Likewise.
31564         * m4/localcharset.m4: Likewise.
31565         * m4/locale-fr.m4: Likewise.
31566         * m4/locale-ja.m4: Likewise.
31567         * m4/locale-tr.m4: Likewise.
31568         * m4/locale-zh.m4: Likewise.
31569         * m4/lock.m4: Likewise.
31570         * m4/longlong.m4: Likewise.
31571         * m4/ls-mntd-fs.m4: Likewise.
31572         * m4/lstat.m4: Likewise.
31573         * m4/malloc.m4: Likewise.
31574         * m4/mathl.m4: Likewise.
31575         * m4/mbrtowc.m4: Likewise.
31576         * m4/mbstate_t.m4: Likewise.
31577         * m4/mbswidth.m4: Likewise.
31578         * m4/memchr.m4: Likewise.
31579         * m4/memcmp.m4: Likewise.
31580         * m4/memcpy.m4: Likewise.
31581         * m4/memmem.m4: Likewise.
31582         * m4/memmove.m4: Likewise.
31583         * m4/mempcpy.m4: Likewise.
31584         * m4/memrchr.m4: Likewise.
31585         * m4/memset.m4: Likewise.
31586         * m4/minmax.m4: Likewise.
31587         * m4/mkdir-slash.m4: Likewise.
31588         * m4/mkdtemp.m4: Likewise.
31589         * m4/mktime.m4: Likewise.
31590         * m4/mmap-anon.m4: Likewise.
31591         * m4/mountlist.m4: Likewise.
31592         * m4/nanosleep.m4: Likewise.
31593         * m4/nls.m4: Likewise.
31594         * m4/nocrash.m4: Likewise.
31595         * m4/open.m4: Likewise.
31596         * m4/openat.m4: Likewise.
31597         * m4/openmp.m4: Likewise.
31598         * m4/pathmax.m4: Likewise.
31599         * m4/perl.m4: Likewise.
31600         * m4/physmem.m4: Likewise.
31601         * m4/pipe.m4: Likewise.
31602         * m4/po.m4: Likewise.
31603         * m4/poll.m4: Likewise.
31604         * m4/posixtm.m4: Likewise.
31605         * m4/posixver.m4: Likewise.
31606         * m4/printf-frexp.m4: Likewise.
31607         * m4/printf-frexpl.m4: Likewise.
31608         * m4/printf-posix.m4: Likewise.
31609         * m4/printf-posix-rpl.m4: Likewise.
31610         * m4/printf.m4: Likewise.
31611         * m4/progtest.m4: Likewise.
31612         * m4/putenv.m4: Likewise.
31613         * m4/readline.m4: Likewise.
31614         * m4/readlink.m4: Likewise.
31615         * m4/readutmp.m4: Likewise.
31616         * m4/realloc.m4: Likewise.
31617         * m4/regex.m4: Likewise.
31618         * m4/relocatable.m4: Likewise.
31619         * m4/relocatable-lib.m4: Likewise.
31620         * m4/rename-dest-slash.m4: Likewise.
31621         * m4/rename.m4: Likewise.
31622         * m4/rmdir-errno.m4: Likewise.
31623         * m4/rmdir.m4: Likewise.
31624         * m4/roundf.m4: Likewise.
31625         * m4/roundl.m4: Likewise.
31626         * m4/rpmatch.m4: Likewise.
31627         * m4/save-cwd.m4: Likewise.
31628         * m4/selinux-selinux-h.m4: Likewise.
31629         * m4/setenv.m4: Likewise.
31630         * m4/settime.m4: Likewise.
31631         * m4/sig2str.m4: Likewise.
31632         * m4/sig_atomic_t.m4: Likewise.
31633         * m4/signalblocking.m4: Likewise.
31634         * m4/signbit.m4: Likewise.
31635         * m4/sigpipe.m4: Likewise.
31636         * m4/sockets.m4: Likewise.
31637         * m4/sockpfaf.m4: Likewise.
31638         * m4/st_dm_mode.m4: Likewise.
31639         * m4/stat-time.m4: Likewise.
31640         * m4/stdbool.m4: Likewise.
31641         * m4/stdint.m4: Likewise.
31642         * m4/stdint_h.m4: Likewise.
31643         * m4/stpcpy.m4: Likewise.
31644         * m4/stpncpy.m4: Likewise.
31645         * m4/strcase.m4: Likewise.
31646         * m4/strchrnul.m4: Likewise.
31647         * m4/strcspn.m4: Likewise.
31648         * m4/strdup.m4: Likewise.
31649         * m4/strftime.m4: Likewise.
31650         * m4/strndup.m4: Likewise.
31651         * m4/strnlen.m4: Likewise.
31652         * m4/strpbrk.m4: Likewise.
31653         * m4/strptime.m4: Likewise.
31654         * m4/strsep.m4: Likewise.
31655         * m4/strtod.m4: Likewise.
31656         * m4/strtoimax.m4: Likewise.
31657         * m4/strtok_r.m4: Likewise.
31658         * m4/strtol.m4: Likewise.
31659         * m4/strtoll.m4: Likewise.
31660         * m4/strtoul.m4: Likewise.
31661         * m4/strtoull.m4: Likewise.
31662         * m4/strtoumax.m4: Likewise.
31663         * m4/strverscmp.m4: Likewise.
31664         * m4/threadlib.m4: Likewise.
31665         * m4/timegm.m4: Likewise.
31666         * m4/tm_gmtoff.m4: Likewise.
31667         * m4/tmpdir.m4: Likewise.
31668         * m4/tmpfile.m4: Likewise.
31669         * m4/tzset.m4: Likewise.
31670         * m4/uintmax_t.m4: Likewise.
31671         * m4/unlinkdir.m4: Likewise.
31672         * m4/unlocked-io.m4: Likewise.
31673         * m4/uptime.m4: Likewise.
31674         * m4/userspec.m4: Likewise.
31675         * m4/utimbuf.m4: Likewise.
31676         * m4/utime.m4: Likewise.
31677         * m4/utimes-null.m4: Likewise.
31678         * m4/utimes.m4: Likewise.
31679         * m4/vararrays.m4: Likewise.
31680         * m4/vasnprintf.m4: Likewise.
31681         * m4/vfprintf-posix.m4: Likewise.
31682         * m4/vprintf-posix.m4: Likewise.
31683         * m4/wait-process.m4: Likewise.
31684         * m4/wchar_t.m4: Likewise.
31685         * m4/wint_t.m4: Likewise.
31686         * m4/write-any-file.m4: Likewise.
31687         * m4/yield.m4: Likewise.
31688
31689 2009-01-13  Bruno Haible  <bruno@clisp.org>
31690
31691         Avoid test-copy-file.sh failures when ACL support insufficient.
31692         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31693         TESTS_ENVIRONMENT.
31694         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31695         Reported by Jim Meyering.
31696
31697 2009-01-13  Bruno Haible  <bruno@clisp.org>
31698
31699         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31700         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31701         * modules/unistdio/u8-printf-parse (Files): Likewise.
31702         * modules/unistdio/u32-printf-parse (Files): Likewise.
31703         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31704
31705 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31706
31707         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31708         and m4/inttypes_h.m4 too.
31709
31710 2009-01-12  Eric Blake  <ebb9@byu.net>
31711
31712         tests: IRIX 6.2 cc can't compile -0.0 into .data
31713         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31714         rather than at compile-time.
31715         * tests/test-floorl.c (minus_zero): Likewise.
31716         * tests/test-frexpl.c (minus_zero): Likewise.
31717         * tests/test-isnan.c (minus_zerol): Likewise.
31718         * tests/test-isnanl.h (minus_zero): Likewise.
31719         * tests/test-ldexpl.c (minus_zero): Likewise.
31720         * tests/test-roundl.c (minus_zero): Likewise.
31721         * tests/test-signbit.c (minus_zerol): Likewise.
31722         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31723         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31724         * tests/test-truncl.c (minus_zero): Likewise.
31725         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31726         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31727         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31728
31729 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31730
31731         regex: fix glibc bug 9697
31732         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31733         handling.
31734
31735 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31736
31737         regex: fix glibc bug 697
31738         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31739         being NULL also if there are no backreferences.
31740
31741 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31742
31743         regex: merge glibc changes
31744         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31745         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31746         re_string_skip_chars, re_string_reconstruct): Likewise.
31747         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31748
31749 2009-01-07  Jim Meyering  <meyering@redhat.com>
31750
31751         poll: filter through cppi
31752         * lib/poll.c: Indent cpp directives to reflect nesting.
31753
31754 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31755
31756         poll: don't return uninitialized
31757         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31758
31759 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31760
31761         avoid compile failure on AIX 6.1
31762         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31763         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31764
31765 2009-01-04  Jim Meyering  <meyering@redhat.com>
31766
31767         remove duplicate inclusion of <stdio.h>
31768         * tests/test-fprintf-posix.c: Likewise.
31769         * tests/test-printf-posix.c: Likewise.
31770         * tests/test-snprintf-posix.c: Likewise.
31771         * tests/test-sprintf-posix.c: Likewise.
31772         * tests/test-vasprintf-posix.c: Likewise.
31773         * tests/test-vfprintf-posix.c: Likewise.
31774         * tests/test-vprintf-posix.c: Likewise.
31775         * tests/test-vsnprintf-posix.c: Likewise.
31776         * tests/test-vsprintf-posix.c: Likewise.
31777
31778 2009-01-03  Jim Meyering  <meyering@redhat.com>
31779
31780         gnulib-tool: fix sed-based filtering
31781         * gnulib-tool (func_filter_filelist): Remove extra backslash
31782         in sed_fff_filter definition.
31783
31784 2009-01-02  Jim Meyering  <meyering@redhat.com>
31785
31786         strftime: avoid compilation failure on Solaris 2.6
31787         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31788         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31789         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31790         be available.  Reported by Tom G. Christensen.  Details in
31791         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31792
31793 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31794             Bruno Haible  <bruno@clisp.org>
31795
31796         Speed up gnulib-tool by doing more string processing through shell
31797         built-ins.
31798         * gnulib-tool (fast_func_append): New variable.
31799         (func_remove_prefix, func_remove_suffix): New functions.
31800         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31801         (func_filter_filelist): New function.
31802         (func_get_dependencies): Use func_remove_suffix instead of sed.
31803         (func_get_automake_snippet): Use func_filter_filelist instead of a
31804         subshell and sed invocation.
31805
31806 2009-01-01  Bruno Haible  <bruno@clisp.org>
31807
31808         Fix a security bug.
31809         * gnulib-tool (func_import, import, update): Don't allow the characters
31810         '"', '$', '`', '\' in macro arguments that become part of commands that
31811         are evaluated.
31812
31813 2009-01-01  Bruno Haible  <bruno@clisp.org>
31814
31815         * gnulib-tool (func_reset_sigpipe): Add more comments.
31816
31817 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31818
31819         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31820         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31821         already know the answer.
31822
31823 2009-01-01  Jim Meyering  <meyering@redhat.com>
31824
31825         * lib/version-etc.c (version_etc_va): Update copyright year.
31826
31827 2008-12-30  Bruno Haible  <bruno@clisp.org>
31828
31829         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31830         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31831         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31832
31833 2008-12-29  Eric Blake  <ebb9@byu.net>
31834
31835         multiarch: avoid autoconf AC_REQUIRE bug
31836         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31837         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31838         2.63 and older.
31839         Reported by Bruno Haible, and analyzed in
31840         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31841
31842 2008-12-29  Bruno Haible  <bruno@clisp.org>
31843
31844         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31845         files in subdirectories correctly.
31846         Reported by Ralf Wildenhues.
31847
31848 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31849
31850         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31851         rather than 'join FILE -', for Solaris join.
31852
31853 2008-12-29  Bruno Haible  <bruno@clisp.org>
31854
31855         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31856         quoting.
31857         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31858         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31859         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31860         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31861         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31862         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31863         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31864         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31865         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31866         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31867         * m4/nls.m4 (AM_NLS): Likewise.
31868         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31869         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31870         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31871         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31872         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31873         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31874         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31875         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31876         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31877         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31878         * m4/xsize.m4 (gl_XSIZE): Likewise.
31879         Suggested by Jim Meyering.
31880
31881 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31882
31883         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31884         * lib/parse-duration.c: use a switch instead of cascading if's.
31885
31886 2008-12-29  Eric Blake  <ebb9@byu.net>
31887
31888         wchar.h: supply WEOF on Irix 5.3
31889         * lib/wchar.in.h (wint_t): Also supply WEOF.
31890         * lib/wctype.in.h (wint_t): Likewise.
31891         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31892         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31893         Reported by Tom G. Christensen.
31894
31895 2008-12-26  Bruno Haible  <bruno@clisp.org>
31896
31897         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31898         i486, i586, i686.
31899
31900 2008-12-26  Bruno Haible  <bruno@clisp.org>
31901
31902         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31903
31904 2008-12-26  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31907         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31908         not __STDC_CONSTANT_MACROS.
31909         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31910
31911 2008-12-25  Bruno Haible  <bruno@clisp.org>
31912
31913         Add support for universal builds to vasnprintf.
31914         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31915         universal builds, guess no.
31916         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31917         * modules/vasprintf-posix (Depends-on): Likewise.
31918         * modules/fprintf-posix (Depends-on): Likewise.
31919         * modules/vfprintf-posix (Depends-on): Likewise.
31920         * modules/snprintf-posix (Depends-on): Likewise.
31921         * modules/vsnprintf-posix (Depends-on): Likewise.
31922         * modules/sprintf-posix (Depends-on): Likewise.
31923         * modules/vsprintf-posix (Depends-on): Likewise.
31924         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31925         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31926         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31927         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31928         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31931
31932         Add support for universal builds to <inttypes.h>.
31933         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31934         _SCNu64_PREFIX): In Apple
31935         universal builds, define directly, using _LP64.
31936         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31937         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31938         * modules/inttypes (Depends-on): Add multiarch.
31939         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31940
31941         Add support for universal builds to <stdint.h>.
31942         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31943         universal builds, define directly, using _LP64.
31944         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31945         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31946         and size_t.
31947         * modules/stdint (Depends-on): Add multiarch.
31948         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31949
31950         New module 'multiarch'.
31951         * modules/multiarch: New file.
31952         * m4/multiarch.m4: New file.
31953
31954 2008-12-25  Bruno Haible  <bruno@clisp.org>
31955
31956         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31957
31958 2008-12-25  Bruno Haible  <bruno@clisp.org>
31959
31960         * modules/btowc (License): Relicense under LGPLv2+.
31961         * modules/mbsinit (License): Likewise.
31962         * modules/mbrtowc (License): Likewise.
31963         * modules/wcrtomb (License): Likewise.
31964         * modules/streq (License): Likewise.
31965         Reported by David Lutterkort <lutter@redhat.com>.
31966
31967 2008-12-23  Bruno Haible  <bruno@clisp.org>
31968
31969         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31970
31971 2008-12-23  Bruno Haible  <bruno@clisp.org>
31972
31973         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31974         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31975         GETADDRINFO_LIB, not in LIBS.
31976         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31977         * modules/canon-host (Link): Likewise.
31978         * NEWS: Mention the change.
31979         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31980         GETADDRINFO_LIB.
31981
31982 2008-12-22  Bruno Haible  <bruno@clisp.org>
31983
31984         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31985         * doc/posix-functions/iswalpha_l.texi: Likewise.
31986         * doc/posix-functions/iswblank_l.texi: Likewise.
31987         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31988         * doc/posix-functions/iswctype_l.texi: Likewise.
31989         * doc/posix-functions/iswdigit_l.texi: Likewise.
31990         * doc/posix-functions/iswgraph_l.texi: Likewise.
31991         * doc/posix-functions/iswlower_l.texi: Likewise.
31992         * doc/posix-functions/iswprint_l.texi: Likewise.
31993         * doc/posix-functions/iswpunct_l.texi: Likewise.
31994         * doc/posix-functions/iswspace_l.texi: Likewise.
31995         * doc/posix-functions/iswupper_l.texi: Likewise.
31996         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31997         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31998         * doc/posix-functions/open_wmemstream.texi: Likewise.
31999         * doc/posix-functions/swscanf.texi: Likewise.
32000         * doc/posix-functions/towctrans_l.texi: Likewise.
32001         * doc/posix-functions/towlower.texi: Likewise.
32002         * doc/posix-functions/towlower_l.texi: Likewise.
32003         * doc/posix-functions/towupper.texi: Likewise.
32004         * doc/posix-functions/towupper_l.texi: Likewise.
32005         * doc/posix-functions/vfwprintf.texi: Likewise.
32006         * doc/posix-functions/vfwscanf.texi: Likewise.
32007         * doc/posix-functions/vswscanf.texi: Likewise.
32008         * doc/posix-functions/vwprintf.texi: Likewise.
32009         * doc/posix-functions/vwscanf.texi: Likewise.
32010         * doc/posix-functions/wcpcpy.texi: Likewise.
32011         * doc/posix-functions/wcpncpy.texi: Likewise.
32012         * doc/posix-functions/wcscasecmp.texi: Likewise.
32013         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32014         * doc/posix-functions/wcscoll_l.texi: Likewise.
32015         * doc/posix-functions/wcsdup.texi: Likewise.
32016         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32017         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32018         * doc/posix-functions/wcsnlen.texi: Likewise.
32019         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32020         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32021         * doc/posix-functions/wctrans_l.texi: Likewise.
32022         * doc/posix-functions/wctype_l.texi: Likewise.
32023         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32024         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32025         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32026         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32027         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32028         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32029         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32030         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32031         * doc/glibc-functions/wcschrnul.texi: Likewise.
32032         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32033         * doc/glibc-functions/wcstod_l.texi: Likewise.
32034         * doc/glibc-functions/wcstof_l.texi: Likewise.
32035         * doc/glibc-functions/wcstol_l.texi: Likewise.
32036         * doc/glibc-functions/wcstold_l.texi: Likewise.
32037         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32038         * doc/glibc-functions/wcstoq.texi: Likewise.
32039         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32040         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32041         * doc/glibc-functions/wcstouq.texi: Likewise.
32042         * doc/glibc-functions/wmempcpy.texi: Likewise.
32043
32044 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32045             Eric Blake  <ebb9@byu.net>
32046             Paolo Bonzini  <bonzini@gnu.org>
32047             Bruno Haible  <bruno@clisp.org>
32048
32049         Make c-stack work on Haiku.
32050         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32051         (c_stack_action): Use SA_ONSTACK flag.
32052
32053 2008-12-22  Bruno Haible  <bruno@clisp.org>
32054
32055         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32056
32057 2008-12-22  Bruno Haible  <bruno@clisp.org>
32058
32059         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32060         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32061         being overridden.
32062         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32063         New macros.
32064         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32066         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32067         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32068
32069 2008-12-22  Bruno Haible  <bruno@clisp.org>
32070
32071         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32072         from test code.
32073
32074 2008-12-22  Eric Blake  <ebb9@byu.net>
32075
32076         Avoid gcc warnings on cygwin.
32077         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32078         Avoid unused variable.
32079         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32080         Likewise.
32081
32082 2008-12-22  Bruno Haible  <bruno@clisp.org>
32083
32084         Remove HAVE_MBRTOWC conditionals.
32085         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32086         (mbscasecmp): Assume mbrtowc function.
32087         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32088         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32089         * lib/mbschr.c: Include mbuiter.h unconditionally.
32090         (mbschr): Assume mbrtowc function.
32091         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32092         (mbscspn): Assume mbrtowc function.
32093         * lib/mbslen.c: Include mbuiter.h unconditionally.
32094         (mbslen): Assume mbrtowc function.
32095         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32096         (mbsncasecmp): Assume mbrtowc function.
32097         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32098         (mbsnlen): Assume mbrtowc function.
32099         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32100         (mbspbrk): Assume mbrtowc function.
32101         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32102         (mbspcasecmp): Assume mbrtowc function.
32103         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32104         (mbsrchr): Assume mbrtowc function.
32105         * lib/mbssep.c: Include mbuiter.h unconditionally.
32106         (mbssep): Assume mbrtowc function.
32107         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32108         (mbsspn): Assume mbrtowc function.
32109         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32110         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32111         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32112         (mbstok_r): Assume mbrtowc function.
32113         * lib/propername.c: Include mbuiter.h unconditionally.
32114         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32115         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32116         (trim2): Assume mbrtowc function.
32117         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32118         (mbsnwidth): Assume mbrtowc function.
32119         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32120         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32121         fallback definitions.
32122         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32123
32124 2008-12-22  Bruno Haible  <bruno@clisp.org>
32125
32126         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32127
32128 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32129
32130         * modules/regex: Request emulations for the mb*/wc* functions we need.
32131         * m4/regex.m4: Don't look for those functions here.
32132         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32133
32134 2008-12-22  Bruno Haible  <bruno@clisp.org>
32135
32136         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32137
32138 2008-12-21  Bruno Haible  <bruno@clisp.org>
32139
32140         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32141         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32142         (Include): Remove conditionalization.
32143         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32144         (Include): Remove conditionalization.
32145         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32146         (Include): Remove conditionalization.
32147         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32148         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32149         * NEWS: Mention the change.
32150         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32151         via Sergey Poznyakoff <gray@gnu.org.ua>.
32152
32153 2008-12-21  Bruno Haible  <bruno@clisp.org>
32154
32155         * MODULES.html.sh (Extended multibyte and wide character utilities
32156         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32157         wcrtomb, wcsrtombs.
32158         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32159         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32160         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32161         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32162
32163 2008-12-21  Bruno Haible  <bruno@clisp.org>
32164
32165         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32166
32167 2008-12-21  Bruno Haible  <bruno@clisp.org>
32168
32169         * modules/wcsnrtombs-tests: New file.
32170         * tests/test-wcsnrtombs1.sh: New file.
32171         * tests/test-wcsnrtombs2.sh: New file.
32172         * tests/test-wcsnrtombs3.sh: New file.
32173         * tests/test-wcsnrtombs4.sh: New file.
32174         * tests/test-wcsnrtombs.c: New file.
32175
32176         New module 'wcsnrtombs'.
32177         * lib/wchar.in.h (wcsnrtombs): New declaration.
32178         * lib/wcsnrtombs.c: New file.
32179         * lib/wcsrtombs-state.c: New file.
32180         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32181         (internal_state): Remove variable.
32182         * m4/wcsnrtombs.m4: New file.
32183         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32184         compilation units.
32185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32186         HAVE_WCSNRTOMBS.
32187         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32188         HAVE_WCSNRTOMBS.
32189         * modules/wcsnrtombs: New file.
32190         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32191         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32192
32193 2008-12-21  Bruno Haible  <bruno@clisp.org>
32194
32195         * modules/wcsrtombs-tests: New file.
32196         * tests/test-wcsrtombs1.sh: New file.
32197         * tests/test-wcsrtombs2.sh: New file.
32198         * tests/test-wcsrtombs3.sh: New file.
32199         * tests/test-wcsrtombs4.sh: New file.
32200         * tests/test-wcsrtombs.c: New file.
32201
32202         New module 'wcsrtombs'.
32203         * lib/wchar.in.h (wcsrtombs): New declaration.
32204         * lib/wcsrtombs.c: New file.
32205         * m4/wcsrtombs.m4: New file.
32206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32207         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32209         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32210         * modules/wcsrtombs: New file.
32211         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32212         bugs.
32213
32214 2008-12-21  Bruno Haible  <bruno@clisp.org>
32215
32216         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32217         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32218         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32219         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32220         if not correct.
32221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32222         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32223         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32224         m4/locale-zh.m4, m4/codeset.m4.
32225         * doc/posix-functions/wcrtomb.texi: Document the bug.
32226
32227 2008-12-21  Bruno Haible  <bruno@clisp.org>
32228
32229         Work around a btowc() bug on IRIX 6.5.
32230         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32231         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32232         REPLACE_WTOBC if not.
32233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32234         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32235         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32236
32237 2008-12-21  Bruno Haible  <bruno@clisp.org>
32238
32239         * modules/wcrtomb-tests: New file.
32240         * tests/test-wcrtomb.sh: New file.
32241         * tests/test-wcrtomb.c: New file.
32242
32243         New module 'wcrtomb'.
32244         * lib/wchar.in.h (wcrtomb): New declaration.
32245         * lib/wcrtomb.c: New file.
32246         * m4/wcrtomb.m4: New file.
32247         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32248         HAVE_WCRTOMB.
32249         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32250         HAVE_WCRTOMB.
32251         * modules/wcrtomb: New file.
32252         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32253
32254 2008-12-21  Bruno Haible  <bruno@clisp.org>
32255
32256         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32257         * modules/mbsrtowcs (Files): Likewise.
32258         * modules/wctob (Files): Likewise.
32259         * modules/c-strcase-tests (Files): Likewise.
32260         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32261         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32262         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32263         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32264         * modules/vasnprintf-posix-tests (Files): Likewise.
32265
32266 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32267
32268         gitlog-to-changelog: pass all command-line arguments to git-log
32269         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32270         it is sometimes convenient to filter the commits in various ways.
32271         gitlog-to-changelog only allows --since to specify a start date,
32272         but git-log itself supports many other filtering mechanisms.
32273         At the moment, I want to filter by branch name.  Rather than
32274         adding a --branch option to gitlog-to-changelog, it seems more
32275         flexible to simply pass all options directly to git-log and let
32276         git do the work.  Notice that this effectively makes --since a
32277         redundant option for gitlog-to-changelog, but removing it would
32278         require current usage to change since calls would then require
32279         an additional '--'.
32280
32281 2008-12-21  Bruno Haible  <bruno@clisp.org>
32282
32283         * modules/mbsnrtowcs-tests: New file.
32284         * tests/test-mbsnrtowcs1.sh: New file.
32285         * tests/test-mbsnrtowcs2.sh: New file.
32286         * tests/test-mbsnrtowcs3.sh: New file.
32287         * tests/test-mbsnrtowcs4.sh: New file.
32288         * tests/test-mbsnrtowcs.c: New file.
32289
32290         New module 'mbsnrtowcs'.
32291         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32292         * lib/mbsnrtowcs.c: New file.
32293         * lib/mbsrtowcs-state.c: New file.
32294         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32295         (internal_state): Remove variable.
32296         * m4/mbsnrtowcs.m4: New file.
32297         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32298         compilation units.
32299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32300         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32301         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32302         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32303         * modules/mbsnrtowcs: New file.
32304         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32305         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32306         portability problem.
32307
32308 2008-12-21  Bruno Haible  <bruno@clisp.org>
32309
32310         Work around mbsrtowcs bug.
32311         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32312         (gl_FUNC_MBSRTOWCS): Invoke it.
32313         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32314         m4/locale-zh.m4.
32315         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32316
32317 2008-12-21  Bruno Haible  <bruno@clisp.org>
32318
32319         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32320
32321 2008-12-21  Bruno Haible  <bruno@clisp.org>
32322
32323         Update doc for AIX.
32324         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32325         16-bit wchar_t type.
32326         * doc/posix-functions/btowc.texi: Likewise.
32327         * doc/posix-functions/fgetwc.texi: Likewise.
32328         * doc/posix-functions/fgetws.texi: Likewise.
32329         * doc/posix-functions/fputwc.texi: Likewise.
32330         * doc/posix-functions/fputws.texi: Likewise.
32331         * doc/posix-functions/fwide.texi: Likewise.
32332         * doc/posix-functions/fwprintf.texi: Likewise.
32333         * doc/posix-functions/fwscanf.texi: Likewise.
32334         * doc/posix-functions/getwchar.texi: Likewise.
32335         * doc/posix-functions/getwc.texi: Likewise.
32336         * doc/posix-functions/iswalnum.texi: Likewise.
32337         * doc/posix-functions/iswalpha.texi: Likewise.
32338         * doc/posix-functions/iswblank.texi: Likewise.
32339         * doc/posix-functions/iswcntrl.texi: Likewise.
32340         * doc/posix-functions/iswctype.texi: Likewise.
32341         * doc/posix-functions/iswdigit.texi: Likewise.
32342         * doc/posix-functions/iswgraph.texi: Likewise.
32343         * doc/posix-functions/iswlower.texi: Likewise.
32344         * doc/posix-functions/iswprint.texi: Likewise.
32345         * doc/posix-functions/iswpunct.texi: Likewise.
32346         * doc/posix-functions/iswspace.texi: Likewise.
32347         * doc/posix-functions/iswupper.texi: Likewise.
32348         * doc/posix-functions/iswxdigit.texi: Likewise.
32349         * doc/posix-functions/mbrtowc.texi: Likewise.
32350         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32351         * doc/posix-functions/mbstowcs.texi: Likewise.
32352         * doc/posix-functions/mbtowc.texi: Likewise.
32353         * doc/posix-functions/putwchar.texi: Likewise.
32354         * doc/posix-functions/putwc.texi: Likewise.
32355         * doc/posix-functions/swprintf.texi: Likewise.
32356         * doc/posix-functions/tolower.texi: Likewise.
32357         * doc/posix-functions/toupper.texi: Likewise.
32358         * doc/posix-functions/towctrans.texi: Likewise.
32359         * doc/posix-functions/ungetwc.texi: Likewise.
32360         * doc/posix-functions/vswprintf.texi: Likewise.
32361         * doc/posix-functions/wcrtomb.texi: Likewise.
32362         * doc/posix-functions/wcscat.texi: Likewise.
32363         * doc/posix-functions/wcschr.texi: Likewise.
32364         * doc/posix-functions/wcscmp.texi: Likewise.
32365         * doc/posix-functions/wcscoll.texi: Likewise.
32366         * doc/posix-functions/wcscpy.texi: Likewise.
32367         * doc/posix-functions/wcscspn.texi: Likewise.
32368         * doc/posix-functions/wcsftime.texi: Likewise.
32369         * doc/posix-functions/wcslen.texi: Likewise.
32370         * doc/posix-functions/wcsncat.texi: Likewise.
32371         * doc/posix-functions/wcsncmp.texi: Likewise.
32372         * doc/posix-functions/wcsncpy.texi: Likewise.
32373         * doc/posix-functions/wcspbrk.texi: Likewise.
32374         * doc/posix-functions/wcsrchr.texi: Likewise.
32375         * doc/posix-functions/wcsrtombs.texi: Likewise.
32376         * doc/posix-functions/wcsspn.texi: Likewise.
32377         * doc/posix-functions/wcsstr.texi: Likewise.
32378         * doc/posix-functions/wcstod.texi: Likewise.
32379         * doc/posix-functions/wcstof.texi: Likewise.
32380         * doc/posix-functions/wcstoimax.texi: Likewise.
32381         * doc/posix-functions/wcstok.texi: Likewise.
32382         * doc/posix-functions/wcstold.texi: Likewise.
32383         * doc/posix-functions/wcstoll.texi: Likewise.
32384         * doc/posix-functions/wcstol.texi: Likewise.
32385         * doc/posix-functions/wcstombs.texi: Likewise.
32386         * doc/posix-functions/wcstoull.texi: Likewise.
32387         * doc/posix-functions/wcstoul.texi: Likewise.
32388         * doc/posix-functions/wcstoumax.texi: Likewise.
32389         * doc/posix-functions/wcswidth.texi: Likewise.
32390         * doc/posix-functions/wcsxfrm.texi: Likewise.
32391         * doc/posix-functions/wctob.texi: Likewise.
32392         * doc/posix-functions/wctomb.texi: Likewise.
32393         * doc/posix-functions/wctrans.texi: Likewise.
32394         * doc/posix-functions/wctype.texi: Likewise.
32395         * doc/posix-functions/wcwidth.texi: Likewise.
32396         * doc/posix-functions/wmemchr.texi: Likewise.
32397         * doc/posix-functions/wmemcmp.texi: Likewise.
32398         * doc/posix-functions/wmemcpy.texi: Likewise.
32399         * doc/posix-functions/wmemmove.texi: Likewise.
32400         * doc/posix-functions/wmemset.texi: Likewise.
32401         * doc/posix-functions/wprintf.texi: Likewise.
32402         * doc/posix-functions/wscanf.texi: Likewise.
32403
32404 2008-12-21  Bruno Haible  <bruno@clisp.org>
32405
32406         Update doc for HP-UX 11.11.
32407         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32408         in HP-UX version 11.00, not in all versions of HP-UX 11.
32409         * doc/posix-functions/fwide.texi: Likewise.
32410         * doc/posix-functions/fwprintf.texi: Likewise.
32411         * doc/posix-functions/fwscanf.texi: Likewise.
32412         * doc/posix-functions/inet_ntop.texi: Likewise.
32413         * doc/posix-functions/inet_pton.texi: Likewise.
32414         * doc/posix-functions/mbrlen.texi: Likewise.
32415         * doc/posix-functions/mbrtowc.texi: Likewise.
32416         * doc/posix-functions/mbsinit.texi: Likewise.
32417         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32418         * doc/posix-functions/swprintf.texi: Likewise.
32419         * doc/posix-functions/swscanf.texi: Likewise.
32420         * doc/posix-functions/towctrans.texi: Likewise.
32421         * doc/posix-functions/vfwprintf.texi: Likewise.
32422         * doc/posix-functions/vswprintf.texi: Likewise.
32423         * doc/posix-functions/vwprintf.texi: Likewise.
32424         * doc/posix-functions/wcrtomb.texi: Likewise.
32425         * doc/posix-functions/wcsrtombs.texi: Likewise.
32426         * doc/posix-functions/wcsstr.texi: Likewise.
32427         * doc/posix-functions/wctob.texi: Likewise.
32428         * doc/posix-functions/wctrans.texi: Likewise.
32429         * doc/posix-functions/wmemchr.texi: Likewise.
32430         * doc/posix-functions/wmemcmp.texi: Likewise.
32431         * doc/posix-functions/wmemcpy.texi: Likewise.
32432         * doc/posix-functions/wmemmove.texi: Likewise.
32433         * doc/posix-functions/wmemset.texi: Likewise.
32434         * doc/posix-functions/wprintf.texi: Likewise.
32435         * doc/posix-functions/wscanf.texi: Likewise.
32436
32437 2008-12-21  Bruno Haible  <bruno@clisp.org>
32438
32439         Work around a portability problem.
32440         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32441         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32442
32443 2008-12-20  Bruno Haible  <bruno@clisp.org>
32444
32445         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32446         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32447         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32449         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32450
32451         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32452         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32453         set.
32454         (GNULIB_defined_mbstate_t): New macro.
32455         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32456         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32457         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32458         reuses the system's mbrtowc function but works around the bugs.
32459         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32460         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32461         macros.
32462         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32463         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32464         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32465         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32466         REPLACE_MBSINIT if mbsinit needs to be overridden.
32467         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32468         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32469         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32470         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32471         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32472         m4/locale-zh.m4.
32473         (Depends): Add mbsinit.
32474         * modules/mbsinit (Depends): Add mbrtowc.
32475         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32476
32477 2008-12-20  Bruno Haible  <bruno@clisp.org>
32478
32479         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32480         so that there are no conversion errors on AIX.
32481         * tests/test-mbsrtowcs.c (main): LIkewise.
32482
32483 2008-12-20  Bruno Haible  <bruno@clisp.org>
32484
32485         Work around wctob bug on Solaris <= 9.
32486         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32487         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32489         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32490         * modules/wctob (Files): Add m4/locale-fr.m4.
32491         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32492
32493 2008-12-20  Bruno Haible  <bruno@clisp.org>
32494
32495         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32496         /dev/null.
32497         * tests/test-select-in.sh: Likewise.
32498         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32499
32500 2008-12-20  Bruno Haible  <bruno@clisp.org>
32501
32502         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32503         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32504         Cygwin 1.5.x.
32505
32506 2008-12-20  Bruno Haible  <bruno@clisp.org>
32507
32508         Ensure mbstate_t is defined on HP-UX 11.11.
32509         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32510         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32511         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32512         AC_USE_SYSTEM_EXTENSIONS.
32513         * modules/fnmatch (Depends-on): Add extensions.
32514         * modules/mbrlen (Depends-on): Likewise.
32515         * modules/mbrtowc (Depends-on): Likewise.
32516         * modules/mbsinit (Depends-on): Likewise.
32517         * modules/mbsrtowcs (Depends-on): Likewise.
32518         * modules/mbswidth (Depends-on): Likewise.
32519         * modules/quotearg (Depends-on): Likewise.
32520         * modules/strftime (Depends-on): Likewise.
32521
32522 2008-12-20  Bruno Haible  <bruno@clisp.org>
32523
32524         Ensure wctob is declared on IRIX 6.5.
32525         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32526         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32527         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32529         of HAVE_WCTOB.
32530         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32531         HAVE_WCTOB.
32532         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32533
32534 2008-12-19  Bruno Haible  <bruno@clisp.org>
32535
32536         * modules/mbsrtowcs-tests: New file.
32537         * tests/test-mbsrtowcs1.sh: New file.
32538         * tests/test-mbsrtowcs2.sh: New file.
32539         * tests/test-mbsrtowcs3.sh: New file.
32540         * tests/test-mbsrtowcs4.sh: New file.
32541         * tests/test-mbsrtowcs.c: New file.
32542
32543         New module 'mbsrtowcs'.
32544         * lib/wchar.in.h (mbsrtowcs): New declaration.
32545         * lib/mbsrtowcs.c: New file.
32546         * m4/mbsrtowcs.m4: New file.
32547         * modules/mbsrtowcs: New file.
32548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32549         HAVE_MBSRTOWCS.
32550         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32551         HAVE_MBSRTOWCS.
32552         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32553
32554 2008-12-19  Bruno Haible  <bruno@clisp.org>
32555
32556         New module 'mbrlen'.
32557         * lib/wchar.in.h (mbrlen): New declaration.
32558         * lib/mbrlen.c: New file.
32559         * m4/mbrlen.m4: New file.
32560         * modules/mbrlen: New file.
32561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32562         HAVE_MBRLEN.
32563         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32564         HAVE_MBRLEN.
32565         * doc/posix-functions/mbrlen.texi: Document the new module.
32566
32567 2008-12-19  Bruno Haible  <bruno@clisp.org>
32568
32569         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32570         * modules/mbrtowc (Depends-on): Add verify.
32571         Suggested by Paul Eggert.
32572
32573 2008-12-18  Bruno Haible  <bruno@clisp.org>
32574
32575         * modules/mbsinit-tests: New file.
32576         * tests/test-mbsinit.sh: New file.
32577         * tests/test-mbsinit.c: New file.
32578
32579 2008-12-18  Bruno Haible  <bruno@clisp.org>
32580
32581         * modules/mbrtowc-tests: New file.
32582         * tests/test-mbrtowc1.sh: New file.
32583         * tests/test-mbrtowc2.sh: New file.
32584         * tests/test-mbrtowc3.sh: New file.
32585         * tests/test-mbrtowc4.sh: New file.
32586         * tests/test-mbrtowc.c: New file.
32587
32588         New module 'mbrtowc'.
32589         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32590         mbsinit and mbrtowc.
32591         (mbrtowc): New declaration.
32592         * lib/mbrtowc.c: New file.
32593         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32594         * modules/mbrtowc: New file.
32595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32596         HAVE_MBRTOWC.
32597         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32598         HAVE_MBRTOWC.
32599         * doc/posix-functions/mbrtowc.texi: Document the new module.
32600
32601 2008-12-18  Bruno Haible  <bruno@clisp.org>
32602
32603         New module 'wctob'.
32604         * lib/wchar.in.h (wctob): New declaration.
32605         * lib/wctob.c: New file.
32606         * m4/wctob.m4: New file.
32607         * modules/wctob: New file.
32608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32609         HAVE_WCTOB.
32610         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32611         * doc/posix-functions/wctob.texi: Document the new module.
32612
32613 2008-12-18  Bruno Haible  <bruno@clisp.org>
32614
32615         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32616         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32617
32618 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32619
32620         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32621         G. Christensen" <tgc@jupiterrise.com>.
32622
32623         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32624         G. Christensen" <tgc@jupiterrise.com>.
32625
32626         * lib/flock.c: Need to include string.h.  Reported by "Tom
32627         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32628         <ebb9@byu.net>.
32629
32630 2008-12-18  Bruno Haible  <bruno@clisp.org>
32631
32632         * m4/locale-ja.m4: New file, from GNU gettext.
32633
32634 2008-12-17  Bruno Haible  <bruno@clisp.org>
32635
32636         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32637         Suggested by Eric Blake.
32638
32639 2008-12-17  Bruno Haible  <bruno@clisp.org>
32640
32641         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32642
32643 2008-12-17  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32646         * modules/mbsinit (Depends-on): Add verify.
32647         Suggested by Paul Eggert.
32648
32649 2008-12-17  Bruno Haible  <bruno@clisp.org>
32650
32651         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32652         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32653         gl_FUNC_MBRTOWC.
32654         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32655         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32656         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32657         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32658         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32659         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32660         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32661         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32662         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32663         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32664         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32665         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32666         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32667         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32668         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32669         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32670         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32671         * modules/trim (configure.ac): Likewise.
32672
32673 2008-12-17  Bruno Haible  <bruno@clisp.org>
32674
32675         * modules/btowc-tests: New file.
32676         * tests/test-btowc1.sh: New file.
32677         * tests/test-btowc2.sh: New file.
32678         * tests/test-btowc.c: New file.
32679
32680         New module 'btowc'.
32681         * lib/wchar.in.h (btowc): New declaration.
32682         * lib/btowc.c: New file.
32683         * m4/btowc.m4: New file.
32684         * modules/btowc: New file.
32685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32686         HAVE_BTOWC.
32687         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32688         * doc/posix-functions/btowc.texi: Document the new module.
32689
32690 2008-12-17  Bruno Haible  <bruno@clisp.org>
32691
32692         New module 'mbsinit'.
32693         * lib/wchar.in.h (mbsinit): New declaration.
32694         * lib/mbsinit.c: New file.
32695         * m4/mbsinit.m4: New file.
32696         * modules/mbsinit: New file.
32697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32698         HAVE_MBSINIT.
32699         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32700         HAVE_MBSINIT.
32701         * doc/posix-functions/mbsinit.texi: Document the new module.
32702
32703 2008-12-16  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/unistd.in.h: Add comment.
32706         * tests/test-environ.c: Don't include <stdlib.h>.
32707
32708 2008-12-16  Bruno Haible  <bruno@clisp.org>
32709
32710         * lib/parse-duration.h (parse_duration): Document return value
32711         convention.
32712         * lib/parse-duration.c: Include specification header first. Add
32713         comments.
32714         (_): Remove macro.
32715         (parse_year_month_day, parse_hour_minute_second): Move side effects
32716         outside of strchr call.
32717         (parse_non_iso8601): Move side effects outside of isspace call.
32718         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32719         call.
32720
32721 2008-12-16  Bruno Haible  <bruno@clisp.org>
32722
32723         * tests/test-parse-duration.sh: Produce no output when the test
32724         succeeds.
32725
32726 2008-12-16  Bruno Haible  <bruno@clisp.org>
32727
32728         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32729         expressions.
32730
32731 2008-12-15  Bruno Haible  <bruno@clisp.org>
32732
32733         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32734         * doc/glibc-functions/flistxattr.texi: Likewise.
32735         * doc/glibc-functions/fopencookie.texi: Likewise.
32736         * doc/glibc-functions/fremovexattr.texi: Likewise.
32737         * doc/glibc-functions/fsetxattr.texi: Likewise.
32738         * doc/glibc-functions/getxattr.texi: Likewise.
32739         * doc/glibc-functions/lgetxattr.texi: Likewise.
32740         * doc/glibc-functions/listxattr.texi: Likewise.
32741         * doc/glibc-functions/llistxattr.texi: Likewise.
32742         * doc/glibc-functions/lremovexattr.texi: Likewise.
32743         * doc/glibc-functions/lsetxattr.texi: Likewise.
32744         * doc/glibc-functions/removexattr.texi: Likewise.
32745         * doc/glibc-functions/setxattr.texi: Likewise.
32746         * doc/posix-functions/open_memstream.texi: Likewise.
32747
32748 2008-12-15  Eric Blake  <ebb9@byu.net>
32749
32750         Update doc for cygwin 1.7.
32751         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32752         functions.
32753         * doc/posix-functions/fchmodat.texi: Likewise.
32754         * doc/posix-functions/fchownat.texi: Likewise.
32755         * doc/posix-functions/fdopendir.texi: Likewise.
32756         * doc/posix-functions/fmemopen.texi: Likewise.
32757         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32758         * doc/posix-functions/fstatat.texi: Likewise.
32759         * doc/posix-functions/futimens.texi: Likewise.
32760         * doc/posix-functions/gai_strerror.texi: Likewise.
32761         * doc/posix-functions/getaddrinfo.texi: Likewise.
32762         * doc/posix-functions/getnameinfo.texi: Likewise.
32763         * doc/posix-functions/if_freenameindex.texi: Likewise.
32764         * doc/posix-functions/if_indextoname.texi: Likewise.
32765         * doc/posix-functions/if_nameindex.texi: Likewise.
32766         * doc/posix-functions/if_nametoindex.texi: Likewise.
32767         * doc/posix-functions/insque.texi: Likewise.
32768         * doc/posix-functions/linkat.texi: Likewise.
32769         * doc/posix-functions/llrint.texi: Likewise.
32770         * doc/posix-functions/llrintf.texi: Likewise.
32771         * doc/posix-functions/llrintl.texi: Likewise.
32772         * doc/posix-functions/lockf.texi: Likewise.
32773         * doc/posix-functions/lrintl.texi: Likewise.
32774         * doc/posix-functions/mkdirat.texi: Likewise.
32775         * doc/posix-functions/mkfifoat.texi: Likewise.
32776         * doc/posix-functions/mknodat.texi: Likewise.
32777         * doc/posix-functions/mq_close.texi: Likewise.
32778         * doc/posix-functions/mq_getattr.texi: Likewise.
32779         * doc/posix-functions/mq_notify.texi: Likewise.
32780         * doc/posix-functions/mq_open.texi: Likewise.
32781         * doc/posix-functions/mq_receive.texi: Likewise.
32782         * doc/posix-functions/mq_send.texi: Likewise.
32783         * doc/posix-functions/mq_setattr.texi: Likewise.
32784         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32785         * doc/posix-functions/mq_timedsend.texi: Likewise.
32786         * doc/posix-functions/mq_unlink.texi: Likewise.
32787         * doc/posix-functions/open_memstream.texi: Likewise.
32788         * doc/posix-functions/openat.texi: Likewise.
32789         * doc/posix-functions/posix_fadvise.texi: Likewise.
32790         * doc/posix-functions/posix_fallocate.texi: Likewise.
32791         * doc/posix-functions/posix_madvise.texi: Likewise.
32792         * doc/posix-functions/posix_memalign.texi: Likewise.
32793         * doc/posix-functions/posix_openpt.texi: Likewise.
32794         * doc/posix-functions/readlinkat.texi: Likewise.
32795         * doc/posix-functions/remque.texi: Likewise.
32796         * doc/posix-functions/renameat.texi: Likewise.
32797         * doc/posix-functions/rintl.texi: Likewise.
32798         * doc/posix-functions/sem_unlink.texi: Likewise.
32799         * doc/posix-functions/shm_open.texi: Likewise.
32800         * doc/posix-functions/shm_unlink.texi: Likewise.
32801         * doc/posix-functions/signgam.texi: Likewise.
32802         * doc/posix-functions/sigset.texi: Likewise.
32803         * doc/posix-functions/stpcpy.texi: Likewise.
32804         * doc/posix-functions/stpncpy.texi: Likewise.
32805         * doc/posix-functions/strerror.texi: Likewise.
32806         * doc/posix-functions/strtod.texi: Likewise.
32807         * doc/posix-functions/symlinkat.texi: Likewise.
32808         * doc/posix-functions/unlinkat.texi: Likewise.
32809         * doc/posix-functions/utimensat.texi: Likewise.
32810         * doc/glibc-functions/bindresvport.texi: Likewise.
32811         * doc/glibc-functions/dn_expand.texi: Likewise.
32812         * doc/glibc-functions/exp10.texi: Likewise.
32813         * doc/glibc-functions/exp10f.texi: Likewise.
32814         * doc/glibc-functions/fgetxattr.texi: Likewise.
32815         * doc/glibc-functions/flistxattr.texi: Likewise.
32816         * doc/glibc-functions/fopencookie.texi: Likewise.
32817         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32818         * doc/glibc-functions/fremovexattr.texi: Likewise.
32819         * doc/glibc-functions/fsetxattr.texi: Likewise.
32820         * doc/glibc-functions/getifaddrs.texi: Likewise.
32821         * doc/glibc-functions/getxattr.texi: Likewise.
32822         * doc/glibc-functions/lgetxattr.texi: Likewise.
32823         * doc/glibc-functions/listxattr.texi: Likewise.
32824         * doc/glibc-functions/llistxattr.texi: Likewise.
32825         * doc/glibc-functions/lremovexattr.texi: Likewise.
32826         * doc/glibc-functions/lsetxattr.texi: Likewise.
32827         * doc/glibc-functions/pow10.texi: Likewise.
32828         * doc/glibc-functions/pow10f.texi: Likewise.
32829         * doc/glibc-functions/rcmd_af.texi: Likewise.
32830         * doc/glibc-functions/removexattr.texi: Likewise.
32831         * doc/glibc-functions/res_init.texi: Likewise.
32832         * doc/glibc-functions/res_mkquery.texi: Likewise.
32833         * doc/glibc-functions/res_query.texi: Likewise.
32834         * doc/glibc-functions/res_querydomain.texi: Likewise.
32835         * doc/glibc-functions/res_send.texi: Likewise.
32836         * doc/glibc-functions/rresvport_af.texi: Likewise.
32837         * doc/glibc-functions/setxattr.texi: Likewise.
32838         * doc/glibc-functions/strcasestr.texi: Likewise.
32839
32840 2008-12-15  Bruno Haible  <bruno@clisp.org>
32841
32842         Fix compilation error on OSF/1 4.0.
32843         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32844         <sys/time.h>, simply delegate to the system header.
32845         Reported by Daniel Richard G. <oss@teragram.com>.
32846
32847 2008-12-15  Bruno Haible  <bruno@clisp.org>
32848
32849         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32850         * doc/posix-functions/fchmodat.texi: Likewise.
32851         * doc/posix-functions/fchownat.texi: Likewise.
32852         * doc/posix-functions/fdopendir.texi: Likewise.
32853         * doc/posix-functions/fstatat.texi: Likewise.
32854         * doc/posix-functions/mkdirat.texi: Likewise.
32855         * doc/posix-functions/unlinkat.texi: Likewise.
32856
32857 2008-12-14  Bruno Haible  <bruno@clisp.org>
32858
32859         Update doc for POSIX:2008.
32860         * doc/posix-functions/faccessat.texi: New file.
32861         * doc/posix-functions/fchmodat.texi: New file.
32862         * doc/posix-functions/fchownat.texi: New file.
32863         * doc/posix-functions/fdopendir.texi: New file.
32864         * doc/posix-functions/fstatat.texi: New file.
32865         * doc/posix-functions/futimens.texi: New file.
32866         * doc/posix-functions/linkat.texi: New file.
32867         * doc/posix-functions/mkdirat.texi: New file.
32868         * doc/posix-functions/mkfifoat.texi: New file.
32869         * doc/posix-functions/mknodat.texi: New file.
32870         * doc/posix-functions/open_wmemstream.texi: New file.
32871         * doc/posix-functions/openat.texi: New file.
32872         * doc/posix-functions/psiginfo.texi: New file.
32873         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32874         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32875         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32876         * doc/posix-functions/readlinkat.texi: New file.
32877         * doc/posix-functions/renameat.texi: New file.
32878         * doc/posix-functions/strerror_l.texi: New file.
32879         * doc/posix-functions/symlinkat.texi: New file.
32880         * doc/posix-functions/unlinkat.texi: New file.
32881         * doc/posix-functions/utimensat.texi: New file.
32882         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32883
32884 2008-12-14  Bruno Haible  <bruno@clisp.org>
32885
32886         Update doc for POSIX:2008.
32887         * doc/posix-functions/alphasort.texi: Renamed from
32888         doc/glibc-functions/alphasort.texi.
32889         * doc/posix-functions/dirfd.texi: Renamed from
32890         doc/glibc-functions/dirfd.texi.
32891         * doc/posix-functions/dprintf.texi: Renamed from
32892         doc/glibc-functions/dprintf.texi.
32893         * doc/posix-functions/duplocale.texi: Renamed from
32894         doc/glibc-functions/duplocale.texi.
32895         * doc/posix-functions/fexecve.texi: Renamed from
32896         doc/glibc-functions/fexecve.texi.
32897         * doc/posix-functions/fmemopen.texi: Renamed from
32898         doc/glibc-functions/fmemopen.texi.
32899         * doc/posix-functions/freelocale.texi: Renamed from
32900         doc/glibc-functions/freelocale.texi.
32901         * doc/posix-functions/getdate_err.texi: Renamed from
32902         doc/glibc-functions/getdate_err.texi.
32903         * doc/posix-functions/isalnum_l.texi: Renamed from
32904         doc/glibc-functions/isalnum_l.texi.
32905         * doc/posix-functions/isalpha_l.texi: Renamed from
32906         doc/glibc-functions/isalpha_l.texi.
32907         * doc/posix-functions/isblank_l.texi: Renamed from
32908         doc/glibc-functions/isblank_l.texi.
32909         * doc/posix-functions/iscntrl_l.texi: Renamed from
32910         doc/glibc-functions/iscntrl_l.texi.
32911         * doc/posix-functions/isdigit_l.texi: Renamed from
32912         doc/glibc-functions/isdigit_l.texi.
32913         * doc/posix-functions/isgraph_l.texi: Renamed from
32914         doc/glibc-functions/isgraph_l.texi.
32915         * doc/posix-functions/islower_l.texi: Renamed from
32916         doc/glibc-functions/islower_l.texi.
32917         * doc/posix-functions/isprint_l.texi: Renamed from
32918         doc/glibc-functions/isprint_l.texi.
32919         * doc/posix-functions/ispunct_l.texi: Renamed from
32920         doc/glibc-functions/ispunct_l.texi.
32921         * doc/posix-functions/isspace_l.texi: Renamed from
32922         doc/glibc-functions/isspace_l.texi.
32923         * doc/posix-functions/isupper_l.texi: Renamed from
32924         doc/glibc-functions/isupper_l.texi.
32925         * doc/posix-functions/iswalnum_l.texi: Renamed from
32926         doc/glibc-functions/iswalnum_l.texi.
32927         * doc/posix-functions/iswalpha_l.texi: Renamed from
32928         doc/glibc-functions/iswalpha_l.texi.
32929         * doc/posix-functions/iswblank_l.texi: Renamed from
32930         doc/glibc-functions/iswblank_l.texi.
32931         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32932         doc/glibc-functions/iswcntrl_l.texi.
32933         * doc/posix-functions/iswctype_l.texi: Renamed from
32934         doc/glibc-functions/iswctype_l.texi.
32935         * doc/posix-functions/iswdigit_l.texi: Renamed from
32936         doc/glibc-functions/iswdigit_l.texi.
32937         * doc/posix-functions/iswgraph_l.texi: Renamed from
32938         doc/glibc-functions/iswgraph_l.texi.
32939         * doc/posix-functions/iswlower_l.texi: Renamed from
32940         doc/glibc-functions/iswlower_l.texi.
32941         * doc/posix-functions/iswprint_l.texi: Renamed from
32942         doc/glibc-functions/iswprint_l.texi.
32943         * doc/posix-functions/iswpunct_l.texi: Renamed from
32944         doc/glibc-functions/iswpunct_l.texi.
32945         * doc/posix-functions/iswspace_l.texi: Renamed from
32946         doc/glibc-functions/iswspace_l.texi.
32947         * doc/posix-functions/iswupper_l.texi: Renamed from
32948         doc/glibc-functions/iswupper_l.texi.
32949         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32950         doc/glibc-functions/iswxdigit_l.texi.
32951         * doc/posix-functions/isxdigit_l.texi: Renamed from
32952         doc/glibc-functions/isxdigit_l.texi.
32953         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32954         doc/glibc-functions/mbsnrtowcs.texi.
32955         * doc/posix-functions/mkdtemp.texi: Renamed from
32956         doc/glibc-functions/mkdtemp.texi.
32957         * doc/posix-functions/newlocale.texi: Renamed from
32958         doc/glibc-functions/newlocale.texi.
32959         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32960         doc/glibc-functions/nl_langinfo_l.texi.
32961         * doc/posix-functions/open_memstream.texi: Renamed from
32962         doc/glibc-functions/open_memstream.texi.
32963         * doc/posix-functions/opterr.texi: Renamed from
32964         doc/glibc-functions/opterr.texi.
32965         * doc/posix-functions/optind.texi: Renamed from
32966         doc/glibc-functions/optind.texi.
32967         * doc/posix-functions/optopt.texi: Renamed from
32968         doc/glibc-functions/optopt.texi.
32969         * doc/posix-functions/psignal.texi: Renamed from
32970         doc/glibc-functions/psignal.texi.
32971         * doc/posix-functions/scandir.texi: Renamed from
32972         doc/glibc-functions/scandir.texi.
32973         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32974         doc/glibc-functions/sched_get_priority_min.texi.
32975         * doc/posix-functions/signgam.texi: Renamed from
32976         doc/glibc-functions/signgam.texi.
32977         * doc/posix-functions/stpcpy.texi: Renamed from
32978         doc/glibc-functions/stpcpy.texi.
32979         * doc/posix-functions/stpncpy.texi: Renamed from
32980         doc/glibc-functions/stpncpy.texi.
32981         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32982         doc/glibc-functions/strcasecmp_l.texi.
32983         * doc/posix-functions/strcoll_l.texi: Renamed from
32984         doc/glibc-functions/strcoll_l.texi.
32985         * doc/posix-functions/strfmon_l.texi: Renamed from
32986         doc/glibc-functions/strfmon_l.texi.
32987         * doc/posix-functions/strftime_l.texi: Renamed from
32988         doc/glibc-functions/strftime_l.texi.
32989         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32990         doc/glibc-functions/strncasecmp_l.texi.
32991         * doc/posix-functions/strndup.texi: Renamed from
32992         doc/glibc-functions/strndup.texi.
32993         * doc/posix-functions/strnlen.texi: Renamed from
32994         doc/glibc-functions/strnlen.texi.
32995         * doc/posix-functions/strsignal.texi: Renamed from
32996         doc/glibc-functions/strsignal.texi.
32997         * doc/posix-functions/strxfrm_l.texi: Renamed from
32998         doc/glibc-functions/strxfrm_l.texi.
32999         * doc/posix-functions/timer_gettime.texi: Renamed from
33000         doc/glibc-functions/timer_gettime.texi.
33001         * doc/posix-functions/tolower_l.texi: Renamed from
33002         doc/glibc-functions/tolower_l.texi.
33003         * doc/posix-functions/toupper_l.texi: Renamed from
33004         doc/glibc-functions/toupper_l.texi.
33005         * doc/posix-functions/towctrans_l.texi: Renamed from
33006         doc/glibc-functions/towctrans_l.texi.
33007         * doc/posix-functions/towlower_l.texi: Renamed from
33008         doc/glibc-functions/towlower_l.texi.
33009         * doc/posix-functions/towupper_l.texi: Renamed from
33010         doc/glibc-functions/towupper_l.texi.
33011         * doc/posix-functions/uselocale.texi: Renamed from
33012         doc/glibc-functions/uselocale.texi.
33013         * doc/posix-functions/vdprintf.texi: Renamed from
33014         doc/glibc-functions/vdprintf.texi.
33015         * doc/posix-functions/wcpcpy.texi:
33016         Renamed from doc/glibc-functions/wcpcpy.texi.
33017         * doc/posix-functions/wcpncpy.texi: Renamed from
33018         doc/glibc-functions/wcpncpy.texi.
33019         * doc/posix-functions/wcscasecmp.texi: Renamed from
33020         doc/glibc-functions/wcscasecmp.texi.
33021         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33022         doc/glibc-functions/wcscasecmp_l.texi.
33023         * doc/posix-functions/wcscoll_l.texi: Renamed from
33024         doc/glibc-functions/wcscoll_l.texi.
33025         * doc/posix-functions/wcsdup.texi: Renamed from
33026         doc/glibc-functions/wcsdup.texi.
33027         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33028         doc/glibc-functions/wcsncasecmp.texi.
33029         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33030         doc/glibc-functions/wcsncasecmp_l.texi.
33031         * doc/posix-functions/wcsnlen.texi: Renamed from
33032         doc/glibc-functions/wcsnlen.texi.
33033         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33034         doc/glibc-functions/wcsnrtombs.texi.
33035         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33036         doc/glibc-functions/wcsxfrm_l.texi.
33037         * doc/posix-functions/wctrans_l.texi: Renamed from
33038         doc/glibc-functions/wctrans_l.texi.
33039         * doc/posix-functions/wctype_l.texi: Renamed from
33040         doc/glibc-functions/wctype_l.texi.
33041         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33042         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33043         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33044         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33045         these subsections.
33046         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33047         Remove sections.
33048
33049 2008-12-14  Bruno Haible  <bruno@clisp.org>
33050
33051         Update doc for POSIX:2008.
33052         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33053
33054 2008-12-14  Bruno Haible  <bruno@clisp.org>
33055
33056         Update doc for POSIX:2008.
33057         * doc/pastposix-functions/bcmp.texi: Renamed from
33058         doc/posix-functions/bcmp.texi.
33059         * doc/pastposix-functions/bcopy.texi: Renamed from
33060         doc/posix-functions/bcopy.texi.
33061         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33062         doc/posix-functions/bsd_signal.texi.
33063         * doc/pastposix-functions/bzero.texi: Renamed from
33064         doc/posix-functions/bzero.texi.
33065         * doc/pastposix-functions/ecvt.texi: Renamed from
33066         doc/posix-functions/ecvt.texi.
33067         * doc/pastposix-functions/fcvt.texi: Renamed from
33068         doc/posix-functions/fcvt.texi.
33069         * doc/pastposix-functions/ftime.texi: Renamed from
33070         doc/posix-functions/ftime.texi.
33071         * doc/pastposix-functions/gcvt.texi: Renamed from
33072         doc/posix-functions/gcvt.texi.
33073         * doc/pastposix-functions/getcontext.texi: Renamed from
33074         doc/posix-functions/getcontext.texi.
33075         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33076         doc/posix-functions/gethostbyaddr.texi.
33077         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33078         doc/posix-functions/gethostbyname.texi.
33079         * doc/pastposix-functions/getwd.texi: Renamed from
33080         doc/posix-functions/getwd.texi.
33081         * doc/pastposix-functions/h_errno.texi: Renamed from
33082         doc/posix-functions/h_errno.texi.
33083         * doc/pastposix-functions/index.texi: Renamed from
33084         doc/posix-functions/index.texi.
33085         * doc/pastposix-functions/makecontext.texi: Renamed from
33086         doc/posix-functions/makecontext.texi.
33087         * doc/pastposix-functions/mktemp.texi: Renamed from
33088         doc/posix-functions/mktemp.texi.
33089         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33090         doc/posix-functions/pthread_attr_getstackaddr.texi.
33091         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33092         doc/posix-functions/pthread_attr_setstackaddr.texi.
33093         * doc/pastposix-functions/rindex.texi: Renamed from
33094         doc/posix-functions/rindex.texi.
33095         * doc/pastposix-functions/scalb.texi: Renamed from
33096         doc/posix-functions/scalb.texi.
33097         * doc/pastposix-functions/setcontext.texi: Renamed from
33098         doc/posix-functions/setcontext.texi.
33099         * doc/pastposix-functions/swapcontext.texi: Renamed from
33100         doc/posix-functions/swapcontext.texi.
33101         * doc/pastposix-functions/ualarm.texi: Renamed from
33102         doc/posix-functions/ualarm.texi.
33103         * doc/pastposix-functions/usleep.texi: Renamed from
33104         doc/posix-functions/usleep.texi.
33105         * doc/pastposix-functions/vfork.texi: Renamed from
33106         doc/posix-functions/vfork.texi.
33107         * doc/pastposix-functions/wcswcs.texi: Renamed from
33108         doc/posix-functions/wcswcs.texi.
33109         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33110         (Function Substitutes): Update.
33111
33112 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33113
33114         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33115         m4/strerror.m4.
33116
33117 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33118             Bruno Haible  <bruno@clisp.org>
33119
33120         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33121
33122 2008-12-13  Bruno Haible  <bruno@clisp.org>
33123
33124         * modules/strtoull (Depends-on): Remove unistd.
33125
33126 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33127
33128         * modules/strtoull (Depends-on): Add stdlib.
33129
33130 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33131
33132         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33133
33134 2008-12-10  Jim Meyering  <meyering@redhat.com>
33135
33136         gl_ASSERT: don't say assertions are disabled when they're not
33137         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33138         "checking whether to enable assertions... no", when they are in
33139         fact enabled.  This is solely a bug in the output of configure.
33140         In spite of saying "no", NDEBUG was not defined in that case.
33141         Also, as noted by Eric Blake, leave assertions enabled upon
33142         --enable-assert=INVALID.
33143
33144 2008-12-10  Bruno Haible  <bruno@clisp.org>
33145
33146         Change MODULES.html to refer to POSIX:2008 where possible.
33147         * MODULES.html.sh (POSIX2008_URL): New variable.
33148         (posix_headers): Remove sys/timeb, ucontext.
33149         (posix2001_headers): New variable.
33150         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33151         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33152         index, makecontext, mktemp, pthread_attr_getstackaddr,
33153         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33154         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33155         (posix2001_functions): New variable.
33156         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33157         otherwise.
33158
33159 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33160
33161         add missing include to parse-duration.c
33162         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33163         * modules/parse-duration (Depends-on): Add xalloc.
33164
33165         fix sed script reading maint.mk
33166         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33167         (syntax-check-rules): Use it.
33168
33169 2008-12-09  Bruno Haible  <bruno@clisp.org>
33170
33171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33172         MacOS X 10.4/PowerPC.
33173         Reported by Simon Josefsson.
33174
33175 2008-12-08  Jim Meyering  <meyering@redhat.com>
33176
33177         work around mingw's lack of some S_IF definitions
33178         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33179         Reported by Simon Josefsson.
33180
33181 2008-12-08  Bruno Haible  <bruno@clisp.org>
33182
33183         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33184         applied to variables. Needed on MacOS X 10.4/PowerPC.
33185         Reported by Simon Josefsson.
33186
33187 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33188         and Eric Blake  <ebb9@byu.net>
33189
33190         assert: honor --enable-assert
33191         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33192         order to honor --enable-assert, rather than treating it as a
33193         synonym for --disable-assert.
33194
33195 2008-12-08  Jim Meyering  <meyering@redhat.com>
33196
33197         * lib/posixtm.c: Remove now-useless declaration of mktime.
33198
33199         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33200
33201 2008-12-07  Bruno Haible  <bruno@clisp.org>
33202
33203         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33204         test_once): Mark functions as static.
33205         * tests/test-tls.c (test_tls): Likewise.
33206
33207 2008-12-07  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33210         iconv_register_autodetect.
33211
33212 2008-12-07  Jim Meyering  <meyering@redhat.com>
33213
33214         posixtm.c: avoid a warning
33215         * lib/posixtm.c (posixtime): Don't initialize tm0.
33216         It's no longer needed to placate gcc4's -Wuninitialized,
33217         and the attempt to placate would elicit a new warning.
33218
33219         unicodeio.c: mark unused parameters
33220         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33221         (fallback_failure_callback): Likewise.
33222
33223 2008-12-07  Bruno Haible  <bruno@clisp.org>
33224
33225         * gnulib-tool (func_create_testdir): When building the tests
33226         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33227         Reported by Simon Josefsson.
33228
33229 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33230
33231         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33232
33233 2008-12-06  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33236         Suggested by Eric Blake.
33237
33238 2008-12-06  Bruno Haible  <bruno@clisp.org>
33239
33240         Fix a c-stack test failure on MacOS X.
33241         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33242         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33243         handler for SIGBUS as well.
33244         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33245         install a signal handler for SIGBUS as well.
33246         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33247
33248 2008-12-06  Bruno Haible  <bruno@clisp.org>
33249
33250         Advocacy documentation.
33251         * doc/gnulib-intro.texi (Benefits): New section.
33252         * doc/gnulib.texi: Update.
33253
33254 2008-12-06  Bruno Haible  <bruno@clisp.org>
33255
33256         Document the 'manywarnings' module.
33257         * doc/manywarnings.texi: New file.
33258         * doc/gnulib.texi: Include it.
33259
33260 2008-12-05  Eric Blake  <ebb9@byu.net>
33261
33262         tests: silence some gcc warnings
33263         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33264         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33265         type mismatches.
33266
33267 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33268             Bruno Haible  <bruno@clisp.org>
33269
33270         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33271
33272 2008-11-29  Jim Meyering  <meyering@redhat.com>
33273
33274         unicodeio.c: mark unused parameters
33275         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33276         (fallback_failure_callback): Likewise.
33277
33278         fts: fix a thinko
33279         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33280         (set_stat_type): Return S_IF*-valued "type" directly.
33281         Prompted by James Youngman's spotting a related bug.
33282         Confirmed by further testing through find.
33283
33284         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33285         * lib/fts.c (D_TYPE): Define.
33286         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33287         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33288         (s_ifmt_shift_bits): New function.
33289         (set_stat_type): New function.
33290         (fts_build): When not calling fts_stat, call set_stat_type
33291         to propagate dirent.d_type info to fts_read caller.
33292         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33293         fts_statp->st_mode type information may be valid.
33294
33295 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33296
33297         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33298         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33299         <sds@gnu.org>.
33300
33301 2008-11-20  Bruno Haible  <bruno@clisp.org>
33302
33303         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33304         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33305         INCLUDE_NEXT.
33306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33307         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33308         * modules/math (Makefile.am): Substitute
33309         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33310         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33311
33312 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33313             Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/stdint.in.h: Define all type macros so that their expansion is
33316         a single typedef'ed token. Fixes a compilation failure in Boost which
33317         does "using ::int8_t;".
33318
33319 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33320
33321         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33322         gl_MANYWARN_ALL_GCC.
33323         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33324         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33325         * modules/manywarnings: New file.
33326         * MODULES.html.sh: Mention manywarnings module.
33327
33328 2008-11-18  Bruno Haible  <bruno@clisp.org>
33329
33330         * doc/gnulib-tool.texi (Unit tests): New section.
33331
33332 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33333
33334         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33335         paths like 'lib/po/foo.po'.
33336
33337 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33338
33339         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33340         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33341
33342 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33343
33344         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33345         parameter works.
33346
33347 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33348
33349         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33350
33351 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33352
33353         * modules/parse-duration-tests: New file.
33354         * tests/test-parse-duration.sh: New file.
33355         * tests/test-parse-duration.c: New file.
33356
33357         New module 'parse-duration'.
33358         * lib/parse-duration.h: New file.
33359         * lib/parse-duration.c: New file.
33360         * modules/parse-duration: New file.
33361
33362 2008-11-17  Bruno Haible  <bruno@clisp.org>
33363
33364         * tests/test-select-out.sh: Comment out the first pipe test.
33365         Reported by Simon Josefsson.
33366
33367 2008-11-17  Bruno Haible  <bruno@clisp.org>
33368
33369         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33371         gl_HOSTENT.
33372
33373 2008-11-17  Bruno Haible  <bruno@clisp.org>
33374
33375         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33376         -lnetwork and -lnet. Needed for Haiku and BeOS.
33377
33378 2008-11-16  Bruno Haible  <bruno@clisp.org>
33379
33380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33381
33382 2008-11-16  Bruno Haible  <bruno@clisp.org>
33383
33384         Avoid test failure on Haiku.
33385         * tests/test-fsync.c: Include <errno.h>.
33386         (main): Don't require that fsync (0) fails.
33387
33388 2008-11-15  Bruno Haible  <bruno@clisp.org>
33389
33390         New module 'hostent'.
33391         * modules/hostent: New file.
33392         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33393
33394 2008-11-15  Bruno Haible  <bruno@clisp.org>
33395
33396         New module 'servent'.
33397         * modules/servent: New file.
33398         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33399
33400 2008-11-15  Bruno Haible  <bruno@clisp.org>
33401
33402         Avoid generating same test program with two different rules.
33403         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33404         test-frexp to test-frexp-nolibm.
33405         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33406         test-frexpl to test-frexpl-nolibm.
33407
33408 2008-11-15  Bruno Haible  <bruno@clisp.org>
33409
33410         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33411         $(FREXPL_LIBM).
33412
33413 2008-11-15  Bruno Haible  <bruno@clisp.org>
33414
33415         * lib/netdb.in.h: Activate the definitions also when the system's
33416         <netdb.h> has 'struct addrinfo'.
33417         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33418         EAI_OVERFLOW or AI_NUMERICSERV.
33419         * doc/posix-headers/netdb.texi: Document the problem.
33420
33421 2008-11-15  Bruno Haible  <bruno@clisp.org>
33422
33423         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33424
33425         Make the 'sched' module work on platforms where <sched.h> exists but
33426         is incomplete (such as Haiku).
33427         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33428         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33429         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33430         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33431         HAVE_STRUCT_SCHED_PARAM.
33432         * modules/sched (Depends-on): Add include_next.
33433         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33434         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33435         * doc/posix-headers/sched.texi: Document the issue.
33436
33437 2008-11-13  Jim Meyering  <meyering@redhat.com>
33438
33439         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33440         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33441         test would fail due to the difference in the Report bugs to ...
33442         line.  The expected address is empty, "<>", while the actual
33443         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33444
33445 2008-11-12  Bruno Haible  <bruno@clisp.org>
33446
33447         lstat: don't compile lstat.c on systems lacking lstat
33448         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33449         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33450         Reported by Daniel P. Berrange via Jim Meyering.
33451
33452 2008-11-12  Jim Meyering  <meyering@redhat.com>
33453
33454         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33455
33456 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33457
33458         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33459         instead.
33460
33461 2008-11-12  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/unicodeio.c: Include unistr.h.
33464         (utf8_wctomb): Remove function.
33465         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33466
33467 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33468
33469         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33470         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33471         <bruno@clisp.org>.
33472         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33473
33474 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33475
33476         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33477         * doc/gnulib.texi: Add section for warnings.
33478
33479 2008-11-11  Bruno Haible  <bruno@clisp.org>
33480
33481         * lib/sockets.h: Add a comment.
33482
33483 2008-11-11  Karl Berry  <karl@gnu.org>
33484
33485         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33486
33487 2008-11-11  Eric Blake  <ebb9@byu.net>
33488
33489         fdl.texi: avoid git symlinks
33490         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33491
33492 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33493
33494         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33495
33496 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33497
33498         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33499         (gl_WARN_ADD): Substitute $2 if literal.
33500
33501 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33502
33503         * m4/warning.m4: Remove.
33504
33505 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33506
33507         * m4/warnings.m4: Almost complete rewrite. :-)
33508
33509 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33510
33511         * modules/warnings: New module.
33512         * m4/warnings.m4: New file.
33513         * MODULES.html.sh: Mention warnings module.
33514         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33515         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33516
33517 2008-11-10  Eric Blake  <ebb9@byu.net>
33518
33519         fdl.texi: make a symlink to the latest version
33520         * doc/standards.texi: Revert today's earlier change.
33521         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33522         * doc/fdl.texi: ...and replace this with a symlink to the newer
33523         fdl-1.3.texi.
33524
33525 2008-11-10  Bruno Haible  <bruno@clisp.org>
33526
33527         * tests/test-select-fd.c (main): Accept the result file name as fourth
33528         argument.
33529         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33530         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33531
33532 2008-11-10  Bruno Haible  <bruno@clisp.org>
33533
33534         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33535         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33536         as autoconf-substituted macros.
33537         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33538         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33539         gl_NETDB_H_DEFAULTS. Set these variables.
33540         * modules/netdb (Makefile.am): Substitute these variables.
33541
33542 2008-11-10  Eric Blake  <ebb9@byu.net>
33543
33544         standards.texi: include correct file for FDL 1.3
33545         * doc/standards.texi (GNU Free Documentation License): Change
33546         include file to pull in FDL 1.3, not 1.2.
33547
33548         fdl.texi: revert accidental change to license
33549         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33550
33551 2008-11-10  Bruno Haible  <bruno@clisp.org>
33552
33553         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33554         cross-compiling guesses also when the native compile gives no result.
33555
33556 2008-11-10  Bruno Haible  <bruno@clisp.org>
33557
33558         * lib/spawni.c (__spawni): Force variable into the stack.
33559
33560 2008-11-10  Bruno Haible  <bruno@clisp.org>
33561
33562         Add support for Haiku.
33563         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33564         glibc and BeOS, but also on Haiku.
33565         * lib/fpurge.c (fpurge): Likewise.
33566         * lib/freadable.c (freadable): Likewise.
33567         * lib/freadahead.c (freadahead): Likewise.
33568         * lib/freading.c (freading): Likewise.
33569         * lib/freadptr.c (freadptr): Likewise.
33570         * lib/freadseek.c (freadptrinc): Likewise.
33571         * lib/fseeko.c (rpl_fseeko): Likewise.
33572         * lib/fseterr.c (fseterr): Likewise.
33573         * lib/fwritable.c (fwritable): Likewise.
33574         * lib/fwriting.c (fwriting): Likewise.
33575         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33576
33577 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33578
33579         * lib/config.charset: Treat Haiku like BeOS.
33580
33581 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33582
33583         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33584         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33585
33586 2008-11-08  Bruno Haible  <bruno@clisp.org>
33587
33588         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33589         AC_CACHE_CHECK.
33590
33591 2008-11-08  Bruno Haible  <bruno@clisp.org>
33592
33593         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33594
33595 2008-11-08  Bruno Haible  <bruno@clisp.org>
33596
33597         * tests/test-select-fd.c: New file.
33598         * tests/test-select-in.sh: New file.
33599         * tests/test-select-out.sh: New file.
33600         * tests/test-select-stdin.c: New file.
33601         * modules/select-tests (Files): Add the new files.
33602         (Depends-on): Add gettimeofday.
33603         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33604         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33605         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33606
33607 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33608             Bruno Haible  <bruno@clisp.org>
33609
33610         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33611
33612 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33613
33614         * build-aux/pmccabe2html: Added support for C++ source files.
33615
33616 2008-11-05  Ben Pfaff  <blp@gnu.org>
33617
33618         Fix lib/close.c build on Windows.
33619         * modules/close (Files): Add lib/w32sock.h.
33620
33621 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33622
33623         Accept Bison's NEWS format.
33624         * build-aux/announce-gen (print_news_deltas): Tweak
33625         $re_prefix.
33626
33627 2008-11-04  Bruno Haible  <bruno@clisp.org>
33628
33629         * modules/random_r (Maintainer): Add glibc.
33630
33631 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33632
33633         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33634         by karl@freefriends.org (Karl Berry).
33635         * doc/alloca.texi: Likewise.
33636         * doc/c-ctype.texi: Likewise.
33637         * doc/c-strcase.texi: Likewise.
33638         * doc/c-strcaseeq.texi: Likewise.
33639         * doc/c-strcasestr.texi: Likewise.
33640         * doc/c-strstr.texi: Likewise.
33641         * doc/c-strtod.texi: Likewise.
33642         * doc/c-strtold.texi: Likewise.
33643         * doc/ctime.texi: Likewise.
33644         * doc/error.texi: Likewise.
33645         * doc/fdl.texi: Likewise.
33646         * doc/gcd.texi: Likewise.
33647         * doc/getdate.texi: Likewise.
33648         * doc/gnulib-intro.texi: Likewise.
33649         * doc/gnulib-tool.texi: Likewise.
33650         * doc/gnulib.texi: Likewise.
33651         * doc/inet_ntoa.texi: Likewise.
33652         * doc/maintain.texi: Likewise.
33653         * doc/make-stds.texi: Likewise.
33654         * doc/quote.texi: Likewise.
33655         * doc/regexprops-generic.texi: Likewise.
33656         * doc/standards.texi: Likewise.
33657         * doc/verify.texi: Likewise.
33658         * doc/visibility.texi: Likewise.
33659         * doc/gnulib.texi (GNU Free Documentation License): Include
33660         fdl-1.3.texi instead of fdl.texi.
33661
33662 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33663
33664         * doc/fdl-1.3.texi: New file, from
33665         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33666         * modules/fdl-1.3: Add.
33667         * MODULES.html.sh: Add fdl-1.3.
33668
33669 2008-11-03  Bruno Haible  <bruno@clisp.org>
33670
33671         Make determination of absolute name of header file work with AIX xlc.
33672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33673         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33674         preprocessing.
33675         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33676         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33677
33678 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33679
33680         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33681         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33682         <ludo@gnu.org>.
33683
33684 2008-11-02  Bruno Haible  <bruno@clisp.org>
33685
33686         Mark 'strpbrk' obsolete.
33687         * modules/strpbrk (Status, Notice): New sections.
33688         * modules/strtok_r (Depends-on): Add strpbrk.
33689
33690 2008-11-02  Bruno Haible  <bruno@clisp.org>
33691
33692         Mark 'strdup' obsolete.
33693         * modules/strdup (Status, Notice): New sections.
33694         * modules/findprog (Depends-on): Add strdup.
33695         * modules/getaddrinfo (Depends-on): Likewise.
33696         * modules/localename (Depends-on): Likewise.
33697         * modules/relocatable-lib (Depends-on): Likewise.
33698         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33699         * modules/relocatable-prog (Depends-on): Likewise.
33700         * modules/trim (Depends-on): Likewise.
33701         * modules/unictype/gen-ctype (Depends-on): Likewise.
33702         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33703
33704 2008-11-02  Bruno Haible  <bruno@clisp.org>
33705
33706         Mark 'strcspn' obsolete.
33707         * modules/strcspn (Status, Notice): New sections.
33708
33709 2008-11-02  Bruno Haible  <bruno@clisp.org>
33710
33711         Mark 'rmdir' obsolete.
33712         * modules/rmdir (Status, Notice): New sections.
33713         * modules/clean-temp (Depends-on): Add rmdir.
33714         * modules/openat (Depends-on): Likewise.
33715
33716 2008-11-02  Bruno Haible  <bruno@clisp.org>
33717
33718         Mark 'raise' obsolete.
33719         * modules/raise (Status, Notice): New sections.
33720         (Include): Specify <signal.h>.
33721         * modules/stdio (Depends-on): Add raise.
33722         * modules/write (Depends-on): Likewise.
33723
33724 2008-11-02  Bruno Haible  <bruno@clisp.org>
33725
33726         Mark 'memset' obsolete.
33727         * modules/memset (Status, Notice): New sections.
33728
33729 2008-11-02  Bruno Haible  <bruno@clisp.org>
33730
33731         Mark 'memmove' obsolete.
33732         * modules/memmove (Status, Notice): New sections.
33733         * modules/argp (Depends-on): Add memmove.
33734         * modules/argz (Depends-on): Likewise.
33735         * modules/canonicalize (Depends-on): Likewise.
33736         * modules/canonicalize-lgpl (Depends-on): Likewise.
33737         * modules/fts (Depends-on): Likewise.
33738         * modules/getcwd (Depends-on): Likewise.
33739         * modules/human (Depends-on): Likewise.
33740         * modules/regex (Depends-on): Likewise.
33741         * modules/striconveh (Depends-on): Likewise.
33742         * modules/trim (Depends-on): Likewise.
33743         * modules/unistr/u8-move (Depends-on): Likewise.
33744         * modules/unistr/u16-move (Depends-on): Likewise.
33745         * modules/unistr/u32-move (Depends-on): Likewise.
33746
33747 2008-11-02  Bruno Haible  <bruno@clisp.org>
33748
33749         Mark 'memcpy' obsolete.
33750         * modules/memcpy (Status, Notice): New sections.
33751
33752 2008-11-02  Bruno Haible  <bruno@clisp.org>
33753
33754         Mark 'memcmp' obsolete.
33755         * modules/memcmp (Status, Notice): New sections.
33756         * modules/argmatch (Depends-on): Add memchr.
33757         * modules/backupfile (Depends-on): Likewise.
33758         * modules/c-strcasestr (Depends-on): Likewise.
33759         * modules/crypto/des (Depends-on): Likewise.
33760         * modules/csharpcomp (Depends-on): Likewise.
33761         * modules/fnmatch (Depends-on): Likewise.
33762         * modules/git-merge-changelog (Depends-on): Likewise.
33763         * modules/isnand (Depends-on): Likewise.
33764         * modules/isnand-nolibm (Depends-on): Likewise.
33765         * modules/isnanf (Depends-on): Likewise.
33766         * modules/isnanf-nolibm (Depends-on): Likewise.
33767         * modules/isnanl (Depends-on): Likewise.
33768         * modules/isnanl-nolibm (Depends-on): Likewise.
33769         * modules/mbchar (Depends-on): Likewise.
33770         * modules/memcoll (Depends-on): Likewise.
33771         * modules/quotearg (Depends-on): Likewise.
33772         * modules/regex (Depends-on): Likewise.
33773         * modules/relocatable-prog (Depends-on): Likewise.
33774         * modules/same (Depends-on): Likewise.
33775         * modules/signbit (Depends-on): Likewise.
33776         * modules/strcasestr-simple (Depends-on): Likewise.
33777         * modules/unictype/gen-ctype (Depends-on): Likewise.
33778         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33779         * modules/uniname/uniname (Depends-on): Likewise.
33780         * modules/unistr/u8-cmp (Depends-on): Likewise.
33781
33782 2008-11-02  Bruno Haible  <bruno@clisp.org>
33783
33784         Mark 'memchr' obsolete.
33785         * modules/memchr (Status, Notice): New sections.
33786         * modules/argp (Depends-on): Add memchr.
33787         * modules/base64 (Depends-on): Likewise.
33788         * modules/c-strcasestr (Depends-on): Likewise.
33789         * modules/chdir-long (Depends-on): Likewise.
33790         * modules/fnmatch (Depends-on): Likewise.
33791         * modules/getsubopt (Depends-on): Likewise.
33792         * modules/git-merge-changelog (Depends-on): Likewise.
33793         * modules/glob (Depends-on): Likewise.
33794         * modules/strcasestr-simple (Depends-on): Likewise.
33795         * modules/strnlen (Depends-on): Likewise.
33796
33797 2008-11-02  Bruno Haible  <bruno@clisp.org>
33798
33799         Mark 'atexit' obsolete.
33800         * modules/atexit (Status, Notice): New sections.
33801         * modules/chdir-long (Depends-on): Add atexit.
33802         * modules/wait-process (Depends-on): Likewise.
33803
33804 2008-11-02  Bruno Haible  <bruno@clisp.org>
33805
33806         * gnulib-tool: New option --with-obsolete.
33807         (func_usage): Document it.
33808         (func_modules_transitive_closure): Drop obsolete dependencies if
33809         incobsolete is not true.
33810         (func_import): Read and save the incobsolete variable to the cache.
33811
33812 2008-11-02  Bruno Haible  <bruno@clisp.org>
33813
33814         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33815         * gnulib-tool: New option --extract-status.
33816         (func_usage): Document it.
33817         (sed_extract_prog): Recognize it.
33818         (func_get_status): New function.
33819
33820 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33821
33822         * modules/sockets (License): Change from LGPL to LGPLv2+.
33823
33824 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33825
33826         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33827
33828 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33829
33830         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33831         Mention times and sys_times.
33832         * modules/sys_times, modules/sys_times-tests: New modules.
33833         * modules/times, modules/times-tests: Likewise
33834         * m4/sys_times_h.m4: New file.
33835         * lib/sys_times.in.h: Likewise
33836         * lib/times.c: Likewise.
33837         * tests/test-sys_times.c: Likewise.
33838         * tests/test-times.c: Likewise.
33839         * doc/posix-headers/sys_times.texi: Update.
33840         * doc/posix-functions/times.texi: Update.
33841
33842 2008-10-28  Jim Meyering  <meyering@redhat.com>
33843
33844         * modules/tempname (Depends-on): Add lstat.
33845
33846         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33847
33848 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33849
33850         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33851         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33852         using idiom used elsewhere in gnulib.
33853
33854 2008-10-27  Jim Meyering  <meyering@redhat.com>
33855
33856         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33857
33858 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33859
33860         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33861         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33862         programs.
33863         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33864
33865 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33866
33867         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33868
33869 2008-10-27  Bruno Haible  <bruno@clisp.org>
33870
33871         * tests/test-lstat.c: Include <stdio.h>.
33872
33873 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33874
33875         * modules/lstat-tests: New module.
33876         * tests/test-lstat.c: New file.
33877
33878 2008-10-26  Jim Meyering  <meyering@redhat.com>
33879
33880         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33881
33882 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33883             Bruno Haible  <bruno@clisp.org>
33884
33885         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33886         * modules/configmake (Include): Add a note that the include must come
33887         after all system headers.
33888         * lib/javaversion.c: Include configmake.h after all other includes.
33889
33890 2008-10-26  Bruno Haible  <bruno@clisp.org>
33891
33892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33893         HAVE_STRUCT_RANDOM_DATA to 1.
33894         (gl_STDLIB_H): Simplify.
33895
33896 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33897
33898         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33899         substitute HAVE_STRUCT_RANDOM_DATA.
33900         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33901         random_data.
33902         * modules/stdlib (Makefile.am): Substitute
33903         HAVE_STRUCT_RANDOM_DATA.
33904
33905 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33906
33907         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33908         * doc/gnulib-intro.texi (Copyright): Likewise.
33909
33910 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33911
33912         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33913         findings.
33914
33915 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33916             Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/unistd.in.h: Include <winsock2.h>.
33919         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33920         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33921         Provide dummy declarations.
33922         (gethostname): Override.
33923         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33924         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33925         gl_PREREQ_SYS_H_WINSOCK2.
33926         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33927         * doc/posix-functions/gethostname.texi: More details.
33928
33929 2008-10-25  Bruno Haible  <bruno@clisp.org>
33930
33931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33932         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33933         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33934
33935         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33936         here ...
33937         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33938         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33939         gl_UNISTD_H_DEFAULTS.
33940
33941 2008-10-25  Eric Blake  <ebb9@byu.net>
33942
33943         signbit: avoid spurious compiler failure
33944         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33945         declarations inside function.
33946
33947 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33948             Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33951         * modules/random_r (Depends-on): Add stdint.
33952
33953 2008-10-24  Bruno Haible  <bruno@clisp.org>
33954
33955         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33956         Eggert.
33957         * modules/strerror (License): Likewise.
33958
33959 2008-10-24  Jim Meyering  <meyering@redhat.com>
33960
33961         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33962         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33963
33964 2008-10-24  Eric Blake  <ebb9@byu.net>
33965
33966         getgroups: fix compilation when getgroups is available
33967         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33968         but with <config.h> override of getgroups disabled.
33969
33970 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33971
33972         * doc/gnulib.texi (Header files): Add note about C++ problems.
33973         Explained by Bruno Haible <bruno@clisp.org>.
33974
33975 2008-10-23  Bruno Haible  <bruno@clisp.org>
33976
33977         Define a dummy SA_NODEFER macro on Interix.
33978         * lib/signal.in.h (SA_NODEFER): Define fallback.
33979         Reported by Aleksey Cheusov <cheusov@tut.by> via
33980         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33981
33982 2008-10-23  Bruno Haible  <bruno@clisp.org>
33983
33984         * modules/freadahead (License): Change to LGPLv2+.
33985         Suggested by Simon Josefsson.
33986
33987 2008-10-23  Jim Meyering  <meyering@redhat.com>
33988
33989         random_r: new module
33990         * modules/random_r: New file.
33991         * m4/random_r.m4: New file.
33992         * lib/random_r.c: New file, from glibc.
33993         * modules/random_r-tests: New file.
33994         * tests/test-random_r.c: New file.
33995         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33996          Declare.
33997         (RAND_MAX): Define.
33998         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33999         * modules/stdlib: Substitute them, too.
34000         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34001         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34002         * doc/glibc-functions/random_r.texi: Likewise.
34003         * doc/glibc-functions/setstate_r.texi: Likewise.
34004         * doc/glibc-functions/srandom_r.texi: Likewise.
34005         * config/srclist.txt: Mention it.
34006
34007 2008-10-23  David Lutterkort  <lutter@redhat.com>
34008
34009         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34010         link requirement
34011
34012 2008-10-23  Jim Meyering  <meyering@redhat.com>
34013
34014         selinux-h: mark parameters of stub functions as intentionally unused
34015         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34016         * lib/se-context.in.h: Likewise.
34017
34018 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34019
34020         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34021
34022 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34023
34024         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34025
34026 2008-10-22  Eric Blake  <ebb9@byu.net>
34027
34028         glthread/thread: avoid compiler warning
34029         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34030         Add unreachable abort to silence compiler.
34031
34032 2008-10-22  Eric Blake  <ebb9@byu.net>
34033
34034         netdb: also supply struct addrinfo for cygwin 1.5.x
34035         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34036         older cygwin.
34037         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34038         cygwin.
34039         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34040
34041 2008-10-22  Bruno Haible  <bruno@clisp.org>
34042
34043         * users.txt: Update entry about pspp.
34044
34045 2008-10-21  Bruno Haible  <bruno@clisp.org>
34046
34047         Simplification.
34048         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34049         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34050
34051         Simplification.
34052         * lib/ioctl.c (ioctl): Don't undefine.
34053         * lib/socket.c (socket): Don't undefine.
34054
34055         Remove unused module indicator macros.
34056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34057         GNULIB_$1 as a C macro.
34058
34059         * doc/posix-functions/close.texi: Undo last change.
34060         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34061         Windows platforms.
34062
34063 2008-10-21  Bruno Haible  <bruno@clisp.org>
34064
34065         Add gethostname() declaration to <unistd.h>.
34066         * lib/unistd.in.h (gethostname): New declaration.
34067         * lib/gethostname.c: Include <unistd.h>.
34068         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34069         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34071         and HAVE_GETHOSTNAME.
34072         * modules/gethostname (Depends-on): Add unistd.
34073         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34074         (Include): Specify <unistd.h>.
34075         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34076         HAVE_GETHOSTNAME.
34077         * tests/test-gethostname.c: Include <unistd.h> first.
34078
34079 2008-10-21  Bruno Haible  <bruno@clisp.org>
34080
34081         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34082         * modules/select-tests (Depends-on): Likewise.
34083         Reported by Simon Josefsson.
34084
34085 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34086
34087         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34088         * lib/accept.c: New file, based on winsock.c.
34089         * lib/bind.c: New file, based on winsock.c.
34090         * lib/connect.c: New file, based on winsock.c.
34091         * lib/getpeername.c: New file, based on winsock.c.
34092         * lib/getsockname.c: New file, based on winsock.c.
34093         * lib/getsockopt.c: New file, based on winsock.c.
34094         * lib/ioctl.c: New file, based on winsock.c.
34095         * lib/listen.c: New file, based on winsock.c.
34096         * lib/recv.c: New file, based on winsock.c.
34097         * lib/recvfrom.c: New file, based on winsock.c.
34098         * lib/send.c: New file, based on winsock.c.
34099         * lib/sendto.c: New file, based on winsock.c.
34100         * lib/setsockopt.c: New file, based on winsock.c.
34101         * lib/shutdown.c: New file, based on winsock.c.
34102         * lib/socket.c: New file, based on winsock.c.
34103         * lib/w32sock.h: New file, based on winsock.c.
34104         * lib/winsock.c: Remove file.
34105         * modules/accept: Likewise.
34106         * modules/bind: Likewise.
34107         * modules/connect: Likewise.
34108         * modules/getpeername: Likewise.
34109         * modules/getsockname: Likewise.
34110         * modules/getsockopt: Likewise.
34111         * modules/ioctl: Likewise.
34112         * modules/listen: Likewise.
34113         * modules/recv: Likewise.
34114         * modules/recvfrom: Likewise.
34115         * modules/send: Likewise.
34116         * modules/sendto: Likewise.
34117         * modules/setsockopt: Likewise.
34118         * modules/shutdown: Likewise.
34119         * modules/socket: Use socket.c instead of winsock.c.
34120         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34121         * doc/posix-functions/accept.texi: Doc fix.
34122         * doc/posix-functions/bind.texi: Doc fix.
34123         * doc/posix-functions/close.texi: Doc fix.
34124         * doc/posix-functions/connect.texi: Doc fix.
34125         * doc/posix-functions/getpeername.texi: Doc fix.
34126         * doc/posix-functions/getsockname.texi: Doc fix.
34127         * doc/posix-functions/getsockopt.texi: Doc fix.
34128         * doc/posix-functions/ioctl.texi: Doc fix.
34129         * doc/posix-functions/listen.texi: Doc fix.
34130         * doc/posix-functions/recv.texi: Doc fix.
34131         * doc/posix-functions/recvfrom.texi: Doc fix.
34132         * doc/posix-functions/send.texi: Doc fix.
34133         * doc/posix-functions/sendto.texi: Doc fix.
34134         * doc/posix-functions/setsockopt.texi: Doc fix.
34135         * doc/posix-functions/shutdown.texi: Doc fix.
34136         * doc/posix-functions/socket.texi: Doc fix.
34137
34138 2008-10-20  Bruno Haible  <bruno@clisp.org>
34139
34140         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34141         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34142         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34143         as an alias for SIGABRT.
34144         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34145         (sigaction): Map it to SIGABRT.
34146         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34147
34148 2008-10-20  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/fts.c: Don't include lstat.h.
34151         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34152
34153         Move the lstat() declaration to <sys/stat.h>.
34154         * lib/lstat.h: Remove file.
34155         * lib/sys_stat.in.h: Add special invocation convention.
34156         (lstat): New declaration.
34157         * lib/lstat.c (orig_lstat): New function.
34158         (rpl_lstat): Use orig_lstat instead of lstat.
34159         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34160         AC_C_INLINE. Set REPLACE_LSTAT.
34161         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34162         and REPLACE_LSTAT.
34163         * modules/lstat (Files): Remove lib/lstat.h.
34164         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34165         (Include): Specify <sys/stat.h> instead of lstat.h.
34166         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34167         REPLACE_LSTAT.
34168         * NEWS: Mention the change.
34169
34170 2008-10-20  Bruno Haible  <bruno@clisp.org>
34171
34172         * modules/posix_spawn-tests: New file.
34173         * tests/test-posix_spawn3.c: New file.
34174
34175 2008-10-20  Bruno Haible  <bruno@clisp.org>
34176
34177         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34178         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34179         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34180         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34181         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34182
34183 2008-10-20  Bruno Haible  <bruno@clisp.org>
34184
34185         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34186         of posix_spawn on AIX 5.3.
34187
34188 2008-10-20  Bruno Haible  <bruno@clisp.org>
34189
34190         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34191
34192 2008-10-20  Bruno Haible  <bruno@clisp.org>
34193
34194         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34195         of AC_LANG_PROGRAM.
34196
34197 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34198
34199         * lib/netdb.in.h: Don't define GNU specific constants until they
34200         are supported or needed.  Reported by Bruno Haible
34201         <bruno@clisp.org>.
34202
34203 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34204
34205         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34206
34207 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34208
34209         * lib/getaddrinfo.h: Remove file.
34210         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34211         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34212         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34213         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34214         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34215         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34216         * tests/test-getaddrinfo.c: Likewise.
34217         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34218         * NEWS: Mention change.
34219
34220 2008-10-19  Bruno Haible  <bruno@clisp.org>
34221
34222         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34223
34224 2008-10-19  Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/wait-process.c: Include simply <sys/wait.h>.
34227         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34228         WIFSTOPPED): Remove fallback definitions.
34229         * modules/wait-process (Depends-on): Add sys_wait.
34230
34231         New module 'sys_wait'.
34232         * modules/sys_wait: New file.
34233         * lib/sys_wait.in.h: New file, partially copied from
34234         lib/wait-process.c.
34235         * m4/sys_wait_h.m4: New file.
34236         * doc/posix-headers/sys_wait.texi: Mention the new module.
34237
34238 2008-10-19  Bruno Haible  <bruno@clisp.org>
34239
34240         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34241
34242 2008-10-19  Bruno Haible  <bruno@clisp.org>
34243
34244         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34245         * lib/wait-process.c (WAIT_T): Remove type.
34246         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34247         (wait_subprocess): Update.
34248
34249 2008-10-19  Bruno Haible  <bruno@clisp.org>
34250
34251         New module 'atoll'.
34252         * modules/atoll: New file.
34253         * lib/stdlib.in.h (atoll): New declaration.
34254         * lib/atoll.c: New file, from glibc with modifications.
34255         * m4/atoll.m4: New file.
34256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34257         HAVE_ATOLL.
34258         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34259         * doc/posix-functions/atoll.texi: Mention the new module.
34260
34261 2008-10-19  Bruno Haible  <bruno@clisp.org>
34262
34263         Add strtoull() declaration to <stdlib.h>.
34264         * lib/stdlib.in.h (strtoull): New declaration.
34265         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34266         Set HAVE_STRTOULL.
34267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34268         HAVE_STRTOULL.
34269         * modules/strtoull (Depends-on): Add stdlib.
34270         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34271         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34272         HAVE_STRTOULL.
34273
34274 2008-10-19  Bruno Haible  <bruno@clisp.org>
34275
34276         Add strtoll() declaration to <stdlib.h>.
34277         * lib/stdlib.in.h (strtoll): New declaration.
34278         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34279         Set HAVE_STRTOLL.
34280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34281         HAVE_STRTOLL.
34282         * modules/strtoll (Depends-on): Add stdlib.
34283         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34284         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34285
34286 2008-10-19  Bruno Haible  <bruno@clisp.org>
34287
34288         * modules/bcopy (Depends-on): Add strings.
34289         (Include): Specify <strings.h>.
34290
34291 2008-10-19  Bruno Haible  <bruno@clisp.org>
34292
34293         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34294
34295 2008-10-19  Bruno Haible  <bruno@clisp.org>
34296
34297         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34298         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34299         mingw.
34300
34301 2008-10-19  Bruno Haible  <bruno@clisp.org>
34302
34303         * lib/atanl.c: Don't include isnanl.h.
34304         * lib/cosl.c: Likewise.
34305         * lib/ldexpl.c: Likewise.
34306         * lib/logl.c: Likewise.
34307         * lib/sinl.c: Likewise.
34308         * lib/sqrtl.c: Likewise.
34309         * lib/tanl.c: Likewise.
34310
34311         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34312         * lib/isnanf.h: Remove file.
34313         * lib/isnand.h: Remove file.
34314         * lib/isnanl.h: Remove file.
34315         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34316         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34317         macros.
34318         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34319         HAVE_ISNANF, don't define it as a C macro.
34320         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34321         HAVE_ISNAND, don't define it as a C macro.
34322         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34323         HAVE_ISNANL, don't define it as a C macro.
34324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34325         HAVE_ISNAN[FDL].
34326         * modules/isnanf (Files): Remove lib/isnanf.h.
34327         (Depends-on): Add math.
34328         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34329         (Include): Specify <math.h> instead of isnanf.h.
34330         * modules/isnand (Files): Remove lib/isnand.h.
34331         (Depends-on): Add math.
34332         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34333         (Include): Specify <math.h> instead of isnand.h.
34334         * modules/isnanl (Files): Remove lib/isnanl.h.
34335         (Depends-on): Add math.
34336         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34337         (Include): Specify <math.h> instead of isnanl.h.
34338         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34339         HAVE_ISNAN[FDL].
34340         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34341         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34342         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34343         * NEWS: Mention the change.
34344
34345 2008-10-18  Bruno Haible  <bruno@clisp.org>
34346
34347         Add getusershell(), setusershell(), endusershell() declarations to
34348         <unistd.h>.
34349         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34350         declarations.
34351         * lib/getusershell.c: Include unistd.h.
34352         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34353         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34354         HAVE_GETUSERSHELL.
34355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34356         and HAVE_GETUSERSHELL.
34357         * modules/getusershell (Depends-on): Add unistd, extensions.
34358         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34359         (Include): Specify <unistd.h>.
34360         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34361         HAVE_GETUSERSHELL.
34362
34363 2008-10-18  Bruno Haible  <bruno@clisp.org>
34364
34365         Add a getloadavg() declaration to <stdlib.h>.
34366         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34367         getloadavg declaration.
34368         (getloadavg): New declaration.
34369         * lib/getloadavg.c: Include <stdlib.h> first.
34370         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34371         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34372         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34374         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34375         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34376         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34377         (Include): Specify <stdlib.h>.
34378         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34379         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34380
34381 2008-10-18  Bruno Haible  <bruno@clisp.org>
34382
34383         * lib/dirchownmod.c: Don't include lchmod.h.
34384
34385         Move the lchmod() declaration to <sys/stat.h>.
34386         * lib/lchmod.h: Remove file.
34387         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34388         (lchmod): New declaration, moved here from lib/lchown.h.
34389         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34390         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34392         and HAVE_LCHMOD.
34393         * modules/lchmod (Files): Remove lib/lchmod.h.
34394         (Depends-on): Add sys_stat, extensions.
34395         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34396         (Include): Specify <sys/stat.h> instead of lchmod.h.
34397         * modules/sys_stat (Depends-on): Add link-warning.
34398         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34399         definition of GL_LINK_WARNING.
34400         * NEWS: Mention the change.
34401
34402 2008-10-18  Bruno Haible  <bruno@clisp.org>
34403
34404         * lib/fchdir.c: Don't include dirfd.h.
34405         * lib/fts.c: Likewise.
34406         * lib/getcwd.c: Likewise.
34407         * lib/glob.c: Likewise.
34408
34409         Move the dirfd() declaration to <dirent.h>.
34410         * lib/dirfd.h: Remove file.
34411         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34412         (dirfd): New declaration.
34413         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34414         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34415         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34416         HAVE_DECL_DIRFD.
34417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34418         HAVE_DECL_DIRFD.
34419         * modules/dirfd (Files): Remove lib/dirfd.h.
34420         (Depends-on): Add dirent, extensions.
34421         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34422         (Include): Specify <dirent.h> instead of dirfd.h.
34423         * modules/dirent (Depends-on): Add link-warning.
34424         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34425         definition of GL_LINK_WARNING.
34426         * NEWS: Mention the change.
34427
34428 2008-10-18  Bruno Haible  <bruno@clisp.org>
34429
34430         Move the euidaccess() declaration to <unistd.h>.
34431         * lib/euidaccess.h: Remove file.
34432         * lib/unistd.in.h (euidaccess): New declaration.
34433         * lib/euidaccess.c: Don't include euidaccess.h.
34434         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34435         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34437         and HAVE_EUIDACCESS.
34438         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34439         (Depends-on): Add unistd.
34440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34441         (Include): Specify <unistd.h> instead of euidaccess.h.
34442         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34443         HAVE_EUIDACCESS.
34444         * NEWS: Mention the change.
34445
34446 2008-10-18  Bruno Haible  <bruno@clisp.org>
34447
34448         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34449
34450         Move the getdomainname() declaration to <unistd.h>.
34451         * lib/getdomainname.h: Remove file.
34452         * lib/unistd.in.h (getdomainname): New declaration.
34453         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34454         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34455         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34456         HAVE_GETDOMAINNAME.
34457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34458         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34459         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34460         (Depends-on): Add unistd, extensions.
34461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34462         (Includes): Specify <unistd.h> instead of getdomainname.h.
34463         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34464         HAVE_GETDOMAINNAME.
34465         * NEWS: Mention the change.
34466
34467 2008-10-18  Bruno Haible  <bruno@clisp.org>
34468
34469         * modules/dirent: New file.
34470         * m4/dirent_h.m4: New file.
34471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34472         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34473         * modules/fchdir (Files): Remove lib/dirent.in.h.
34474         (Depends-on): Add dirent.
34475         (Makefile.am): Move rules to modules/dirent.
34476         * doc/posix-headers/dirent.texi: Mention the new module.
34477
34478 2008-10-18  Bruno Haible  <bruno@clisp.org>
34479
34480         Avoid -Wunused-parameter warnings in public gnulib header files.
34481         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34482         macro.
34483         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34484
34485 2008-10-18  Bruno Haible  <bruno@clisp.org>
34486
34487         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34488         * doc/glibc-functions/error.texi: Mention the module 'error'.
34489         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34490         * doc/glibc-functions/getdomainname.texi: Mention the module
34491         'getdomainname'.
34492         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34493         * doc/glibc-functions/getpagesize.texi: Mention the module
34494         'getpagesize'.
34495         * doc/glibc-functions/getusershell.texi: Mention the module
34496         'getusershell'.
34497         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34498         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34499         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34500         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34501         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34502         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34503         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34504         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34505         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34506         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34507         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34508         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34509         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34510         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34511
34512 2008-10-17  Bruno Haible  <bruno@clisp.org>
34513
34514         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34515         HP-UX and IRIX, use -0.0L.
34516         * tests/test-ceill.c (minus_zero): Likewise.
34517         * tests/test-floorl.c (minus_zero): Likewise.
34518         * tests/test-frexpl.c (minus_zero): Likewise.
34519         * tests/test-isnan.c (minus_zerol): Likewise.
34520         * tests/test-isnanl.h (minus_zero): Likewise.
34521         * tests/test-ldexpl.c (minus_zero): Likewise.
34522         * tests/test-roundl.c (minus_zero): Likewise.
34523         * tests/test-signbit.c (minus_zerol): Likewise.
34524         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34525         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34526         * tests/test-truncl.c (minus_zero): Likewise.
34527         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34528         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34529         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34530         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34531
34532 2008-10-17  Bruno Haible  <bruno@clisp.org>
34533
34534         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34535         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34536         that it gets activated only for gcc >= 3.0.
34537         * lib/dirent.in.h: Likewise.
34538         * lib/errno.in.h: Likewise.
34539         * lib/fcntl.in.h: Likewise.
34540         * lib/float.in.h: Likewise.
34541         * lib/iconv.in.h: Likewise.
34542         * lib/inttypes.in.h: Likewise.
34543         * lib/locale.in.h: Likewise.
34544         * lib/math.in.h: Likewise.
34545         * lib/netdb.in.h: Likewise.
34546         * lib/netinet_in.in.h: Likewise.
34547         * lib/search.in.h: Likewise.
34548         * lib/signal.in.h: Likewise.
34549         * lib/spawn.in.h: Likewise.
34550         * lib/stdarg.in.h: Likewise.
34551         * lib/stdint.in.h: Likewise.
34552         * lib/stdio.in.h: Likewise.
34553         * lib/stdlib.in.h: Likewise.
34554         * lib/string.in.h: Likewise.
34555         * lib/strings.in.h: Likewise.
34556         * lib/sys_file.in.h: Likewise.
34557         * lib/sys_ioctl.in.h: Likewise.
34558         * lib/sys_select.in.h: Likewise.
34559         * lib/sys_socket.in.h: Likewise.
34560         * lib/sys_stat.in.h: Likewise.
34561         * lib/sys_time.in.h: Likewise.
34562         * lib/sysexits.in.h: Likewise.
34563         * lib/time.in.h: Likewise.
34564         * lib/unistd.in.h: Likewise.
34565         * lib/wchar.in.h: Likewise.
34566         * lib/wctype.in.h: Likewise.
34567         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34568
34569 2008-10-17  Jim Meyering  <meyering@redhat.com>
34570
34571         ignore-value: don't depend on inline module
34572         * modules/ignore-value (Depends-on): Remove 'inline'.
34573         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34574         Suggestion from Bruno Haible.
34575
34576 2008-10-17  Bruno Haible  <bruno@clisp.org>
34577
34578         New implementation of condition variables for Win32.
34579         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34580         (gl_linked_waitqueue_t): New type.
34581         (gl_cond_t): Use it.
34582         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34583         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34584         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34585         (glthread_cond_init_func, glthread_cond_wait_func,
34586         glthread_cond_timedwait_func, glthread_cond_signal_func,
34587         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34588         Reimplemented on the basis of gl_linked_waitqueue_t.
34589         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34590         gl_waitqueue_t.
34591         (gl_rwlock_t): Update.
34592         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34593
34594 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34595
34596         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34597         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34598
34599 2008-10-17  Jim Meyering  <meyering@redhat.com>
34600
34601         ignore-value: new module
34602         * modules/ignore-value: New file.
34603         * lib/ignore-value.h: New file.
34604         * MODULES.html.sh (Compiler warning management): New section,
34605         just for this module.  More to come.
34606
34607 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34608
34609         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34610         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34611         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34612
34613 2008-10-16  Jim Meyering  <meyering@redhat.com>
34614
34615         openat-die.c: avoid 'no previous prototype' warning
34616         * lib/openat-die.c: Include "openat.h".
34617         Reported by Reuben Thomas <rrt@sc3d.org>.
34618
34619 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34620
34621         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34622         * lib/netdb.in.h: Fix typo.
34623         Reported by Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/netdb.in.h: Include sys/socket.h for platforms without
34626         netdb.h, to get structures like hostent on MinGW.
34627         * modules/netdb (Depends-on): Add sys_socket.
34628
34629 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34630
34631         * modules/netdb, modules/netdb-tests: New file.
34632         * m4/netdb_h.m4: New file.
34633         * lib/netdb.in.h: Add, currently just an empty file pending
34634         definitions.
34635         * tests/test-netdb.c: New file.
34636         * doc/posix-headers/netdb.texi: Mention that we replace it if
34637         needed.
34638         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34639         netdb.
34640
34641 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34642
34643         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34644         with code.
34645
34646 2008-10-13  Bruno Haible  <bruno@clisp.org>
34647
34648         * lib/glthread/cond.c (glthread_cond_wait_func,
34649         glthread_cond_timedwait_func): Add a comment.
34650
34651 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34652
34653         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34654         * tests/test-select.c: Likewise,
34655
34656 2008-10-13  Bruno Haible  <bruno@clisp.org>
34657
34658         * lib/glthread/cond.c (glthread_cond_wait_func,
34659         glthread_cond_timedwait_func): Fix variable name.
34660         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34661
34662 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34663
34664         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34665         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34666         struct sockaddr.sa_len.
34667         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34668
34669 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34670
34671         * build-aux/pmccabe2html: Add css and css_url parameters.
34672
34673 2008-10-12  Bruno Haible  <bruno@clisp.org>
34674
34675         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34676         calling aclx_get.
34677         Reported by Rainer Tammer <tammer@tammer.net>.
34678
34679 2008-10-12  Bruno Haible  <bruno@clisp.org>
34680
34681         Use msvcrt aware primitives for creation/termination of Win32 threads.
34682         * lib/glthread/thread.c: Include <process.h>.
34683         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34684         (wrapper_func): Update signature.
34685         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34686
34687 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34688             Bruno Haible  <bruno@clisp.org>
34689
34690         Provide a Win32 implementation of the 'cond' module.
34691         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34692         * lib/glthread/cond.c (glthread_cond_init_func,
34693         glthread_cond_wait_func, glthread_cond_timedwait_func,
34694         glthread_cond_signal_func, glthread_cond_broadcast_func,
34695         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34696         * modules/cond (Dependencies): Add gettimeofday.
34697
34698 2008-10-11  Bruno Haible  <bruno@clisp.org>
34699
34700         Make sleep work on older versions of mingw.
34701         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34702         only whether it exists.
34703         * doc/posix-functions/sleep.texi: Mention the problem with older
34704         versions of mingw.
34705
34706 2008-10-11  Bruno Haible  <bruno@clisp.org>
34707
34708         New module 'shutdown'.
34709         * modules/shutdown: New file.
34710         * lib/sys_socket.in.h (shutdown): New declaration.
34711         * lib/winsock.c (shutdown): New function.
34712         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34713         GNULIB_SHUTDOWN.
34714         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34715         * doc/posix-functions/shutdown.texi: Document the new module.
34716
34717 2008-10-11  Jim Meyering  <meyering@redhat.com>
34718
34719         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34720
34721 2008-10-11  Bruno Haible  <bruno@clisp.org>
34722
34723         New module 'fclose'.
34724         * modules/fclose: New file.
34725         * lib/stdio.in.h (fclose): New declaration.
34726         * lib/fclose.c: New file.
34727         * m4/fclose.m4: New file.
34728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34729         REPLACE_FCLOSE.
34730         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34731         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34732         REPLACE_FCLOSE.
34733         * modules/close (Depends-on): fclose.
34734         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34735
34736 2008-10-11  Bruno Haible  <bruno@clisp.org>
34737
34738         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34739         set errno and don't call _close.
34740
34741 2008-10-10  Bruno Haible  <bruno@clisp.org>
34742
34743         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34744         ACL, not afterwards. Fixes test failure on Cygwin.
34745
34746 2008-10-09  Ben Pfaff  <blp@gnu.org>
34747
34748         * build-aux/announce-gen: Fix gnulib version related part of usage
34749         message.  Die with a useful error message if no tarballs are
34750         found.
34751
34752 2008-10-10  Jim Meyering  <meyering@redhat.com>
34753
34754         bootstrap: use git's --depth=N option only if it's supported
34755         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34756         recognize the --depth option.  Reported by Pádraig Brady.
34757
34758 2008-10-09  Bruno Haible  <bruno@clisp.org>
34759
34760         New module 'ioctl'.
34761         * modules/ioctl: New file.
34762         * lib/sys_socket.in.h (ioctl): Remove declaration.
34763         * lib/winsock.c: Include <sys/ioctl.h>.
34764         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34765         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34766         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34767         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34768         * doc/posix-functions/ioctl.texi: Mention the new module.
34769
34770 2008-10-09  Bruno Haible  <bruno@clisp.org>
34771
34772         New module 'sys_ioctl'.
34773         * lib/sys_ioctl.in.h: New file.
34774         * m4/sys_ioctl_h.m4: New file.
34775         * modules/sys_ioctl: New file.
34776         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34777
34778 2008-10-09  Bruno Haible  <bruno@clisp.org>
34779
34780         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34781         * lib/winsock.c: Include <stdarg.h>.
34782         (rpl_ioctl): Change to second argument 'int' and then varargs.
34783
34784 2008-10-09  Bruno Haible  <bruno@clisp.org>
34785
34786         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34787         when the sys_socket module is present and the system has <winsock2.h>.
34788
34789 2008-10-09  Bruno Haible  <bruno@clisp.org>
34790
34791         * doc/posix-functions/close.texi: Mention module 'close' instead of
34792         module 'sys_socket'.
34793
34794 2008-10-09  Bruno Haible  <bruno@clisp.org>
34795
34796         * doc/glibc-headers/sys_ioctl.texi: New file.
34797         * doc/gnulib.texi: Include it.
34798
34799 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34800             Bruno Haible  <bruno@clisp.org>
34801
34802         Combine the two replacements of 'close'.
34803         * lib/sys_socket.in.h (close): Define to a reminder to include
34804         <unistd.h>.
34805         (_gl_close_fd_maybe_socket): New declaration.
34806         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34807         * lib/winsock.c (close): Remove undefinition.
34808         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34809         needed for the gnulib module 'close'.
34810         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34811         define to an error symbol or to a warning, if suitable.
34812         * lib/close.c: Include <sys/socket.h>.
34813         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34814         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34815         UNISTD_H_HAVE_WINSOCK2_H.
34816         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34818         UNISTD_H_HAVE_WINSOCK2_H.
34819         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34820         (configure.ac): Set a module indicator.
34821         (Makefile.am): Substitute GNULIB_CLOSE.
34822         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34823         * modules/poll-tests (Depends-on): Add close.
34824         * modules/select-tests (Depends-on): Likewise.
34825
34826 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34827             Bruno Haible  <bruno@clisp.org>
34828
34829         New module 'close'.
34830         * modules/close: New file.
34831         * lib/unistd.in.h (close): Move declaration out of the
34832         FCHDIR_REPLACEMENT scope.
34833         (_gl_unregister_fd): New declaration.
34834         * lib/close.c: New file.
34835         * lib/fchdir.c (rpl_close): Remove function.
34836         * m4/close.m4: New file.
34837         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34838         close.
34839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34840         REPLACE_CLOSE.
34841         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34842         REPLACE_CLOSE.
34843         * modules/fchdir (Depends-on): Add close.
34844
34845 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34846             Bruno Haible  <bruno@clisp.org>
34847
34848         * lib/fcntl.in.h (open): Simplify conditionals.
34849         (_gl_register_fd): New declaration.
34850         * lib/fchdir.c (rpl_open): Remove function.
34851         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34852         also.
34853         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34854         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34855         open.
34856
34857 2008-10-09  Jim Meyering  <meyering@redhat.com>
34858
34859         GNUmakefile: use the more name-space-friendly "_version"
34860         * top/GNUmakefile (_dummy): Update.
34861         (_version): Rename from "version".
34862
34863 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34864             Bruno Haible  <bruno@clisp.org>
34865
34866         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34867         rpl_close.
34868         (_gl_register_fd): New function, extracted from rpl_open.
34869         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34870         (rpl_open, rpl_opendir): Use _gl_register_fd.
34871
34872 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34873
34874         Fix organization of 'open' replacement.
34875         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34876         (gl_FUNC_OPEN): Use it.
34877         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34878
34879 2008-10-08  Bruno Haible  <bruno@clisp.org>
34880
34881         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34882
34883 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34884
34885         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34886         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34887         listen).
34888
34889 2008-10-08  Eric Blake  <ebb9@byu.net>
34890
34891         GNUmakefile: add 'make version' target
34892         * top/GNUmakefile (_curr-ver): Split version update rules...
34893         (version): ...into a target.
34894
34895 2008-10-07  Bruno Haible  <bruno@clisp.org>
34896
34897         Use a more portable replacement expression for -0.0L.
34898         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34899         instead of -0.0L. Fix m4 quotation.
34900
34901         * tests/test-signbit.c: Include <float.h>.
34902         (minus_zero): New variable.
34903         (test_signbitl): Use minus_zero instead of -zero.
34904         * modules/signbit-tests (Depends-on): Add float.
34905
34906         * tests/test-ceill.c: Include <float.h>.
34907         (zero): Remove variable.
34908         (minus_zero): New variable.
34909         (main): Use minus_zero instead of -zero.
34910         * modules/ceill-tests (Depends-on): Add float.
34911
34912         * tests/test-floorl.c: Include <float.h>.
34913         (zero): Remove variable.
34914         (minus_zero): New variable.
34915         (main): Use minus_zero instead of -zero.
34916         * modules/floorl-tests (Depends-on): Add float.
34917
34918         * tests/test-roundl.c: Include <float.h>.
34919         (zero): Remove variable.
34920         (minus_zero): New variable.
34921         (main): Use minus_zero instead of -zero.
34922         * modules/roundl-tests (Depends-on): Add float.
34923
34924         * tests/test-truncl.c: Include <float.h>.
34925         (zero): Remove variable.
34926         (minus_zero): New variable.
34927         (main): Use minus_zero instead of -zero.
34928         * modules/truncl-tests (Depends-on): Add float.
34929
34930         * tests/test-frexpl.c (zero): Remove variable.
34931         (minus_zero): New variable.
34932         (main): Use minus_zero instead of -zero.
34933         * modules/frexpl-tests (Depends-on): Add float.
34934
34935         * tests/test-isnan.c (zerol): Remove variable.
34936         (minus_zerol): New variable.
34937         (test_long_double): Use minus_zerol instead of -zerol.
34938         * modules/isnan-tests (Depends-on): Add float.
34939
34940         * tests/test-isnanl.h (zero): Remove variable.
34941         (minus_zero): New variable.
34942         (main): Use minus_zero instead of -zero.
34943         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34944         * modules/isnanl-tests (Depends-on): Add float.
34945
34946         * tests/test-ldexpl.c (zero): Remove variable.
34947         (minus_zero): New variable.
34948         (main): Use minus_zero instead of -zero.
34949         * modules/ldexpl-tests (Depends-on): Add float.
34950
34951         * tests/test-snprintf-posix.h (zerol): Remove variable.
34952         (minus_zerol): New variable.
34953         (test_function): Use minus_zerol instead of -zerol.
34954         * modules/snprintf-posix-tests (Depends-on): Add float.
34955         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34956
34957         * tests/test-sprintf-posix.h (zerol): Remove variable.
34958         (minus_zerol): New variable.
34959         (test_function): Use minus_zerol instead of -zerol.
34960         * modules/sprintf-posix-tests (Depends-on): Add float.
34961         * modules/vsprintf-posix-tests (Depends-on): Add float.
34962
34963         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34964         (minus_zerol): New variable.
34965         (test_function): Use minus_zerol instead of -zerol.
34966         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34967
34968         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34969         (minus_zerol): New variable.
34970         (test_function): Use minus_zerol instead of -zerol.
34971         * modules/vasprintf-posix-tests (Depends-on): Add float.
34972
34973 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34974
34975         * MODULES.html.sh (Support for building documentation): Mention
34976         pmccabe2html.  Sort entries.
34977
34978         Add pmccabe2html module, from gnupdf.
34979         * build-aux/pmccabe.css: New file.
34980         * build-aux/pmccabe2html: New file.
34981         * m4/pmccabe2html.m4: New file.
34982         * modules/pmccabe2html: New file.
34983
34984 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34985
34986         flock: new module
34987         * MODULES.html.sh: Add to list of modules.
34988         * lib/flock.c: flock implementation for Windows and Unix systems
34989         which have fcntl.
34990         * doc/glibc-functions/flock.texi: Update documentation.
34991         * lib/sys_file.in.h: <sys/file.h> header file.
34992         * m4/flock.m4: M4 macros.
34993         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34994         * modules/flock: flock module.
34995         * modules/flock-tests: flock tests module.
34996         * modules/sys_file: sys/file.h module.
34997         * tests/test-flock.c: test suite for flock.
34998
34999 2008-10-06  Jim Meyering  <meyering@redhat.com>
35000
35001         bootstrap: check for LT_INIT more portably still ;-)
35002         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35003         Spotted by Bruno Haible.
35004
35005 2008-10-06  Eric Blake  <ebb9@byu.net>
35006
35007         test-signbit: avoid tripping Irix cc bug on -0.0L
35008         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35009         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35010         entire testsuite consistent and avoids an Irix 6.2 bug.
35011
35012 2008-10-05  Bruno Haible  <bruno@clisp.org>
35013             Jim Meyering  <jim@meyering.net>
35014
35015         Add an option for ignoring EPIPE during close_stdout.
35016         * lib/closeout.h: Include <stdbool.h>.
35017         (close_stdout_set_ignore_EPIPE): New declaration.
35018         * lib/closeout.c: Include <stdbool.h>.
35019         (ignore_EPIPE): New variable.
35020         (close_stdout_set_ignore_EPIPE): New function.
35021         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35022         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35023         failure.
35024         * modules/closeout (Depends-on): Add stdbool.
35025
35026 2008-10-05  Bruno Haible  <bruno@clisp.org>
35027
35028         * modules/accept: New file.
35029         * modules/bind: New file.
35030         * modules/connect: New file.
35031         * modules/getpeername: New file.
35032         * modules/getsockname: New file.
35033         * modules/getsockopt: New file.
35034         * modules/listen: New file.
35035         * modules/recv: New file.
35036         * modules/recvfrom: New file.
35037         * modules/send: New file.
35038         * modules/sendto: New file.
35039         * modules/setsockopt: New file.
35040         * modules/socket: New file.
35041         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35042         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35043         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35044         the particular module is requested. Add a link warning when the
35045         particular module is not requested.
35046         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35047         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35048         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35049         the particular module is requested.
35050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35051         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35052         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35053         * modules/sys_socket (Depends-on): Add link-warning.
35054         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35055         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35056         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35057         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35058         GL_LINK_WARNING.
35059         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35060         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35061         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35062         * doc/posix-functions/getpeername.texi: Mention the new module
35063         'getpeername'.
35064         * doc/posix-functions/getsockname.texi: Mention the new module
35065         'getsockname'.
35066         * doc/posix-functions/getsockopt.texi: Mention the new module
35067         'getsockopt'.
35068         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35069         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35070         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35071         * doc/posix-functions/send.texi: Mention the new module 'send'.
35072         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35073         * doc/posix-functions/setsockopt.texi: Mention the new module
35074         'setsockopt'.
35075         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35076         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35077         listen, connect, accept.
35078         * modules/select-tests (Depends-on): Likewise.
35079
35080 2008-10-05  Bruno Haible  <bruno@clisp.org>
35081
35082         * lib/winsock.c (strerror): Remove unused #undef.
35083         (rpl_close): Remove unused local variable.
35084
35085         * modules/sys_socket (Depends-on); Add errno.
35086
35087 2008-10-05  Bruno Haible  <bruno@clisp.org>
35088
35089         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35090         (select): Add a link warning when the 'select' module is not used.
35091         * modules/sys_select (Depends-on): Add link-warning.
35092         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35093         Suggested by Paolo Bonzini.
35094
35095 2008-10-05  Jim Meyering  <meyering@redhat.com>
35096
35097         bootstrap: check for LT_INIT more portably
35098         * build-aux/bootstrap: Avoid using grep -E, since it's not
35099         portable enough.  Suggestion from Bruno Haible.
35100
35101 2008-10-05  Bruno Haible  <bruno@clisp.org>
35102
35103         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35104         as being fixed by gnulib.
35105
35106 2008-10-05  Bruno Haible  <bruno@clisp.org>
35107
35108         * modules/select-tests: New file, mostly copied from
35109         modules/sys_select-tests.
35110         * tests/test-select.c: New file, mostly copied from
35111         tests/test-sys_select.c.
35112         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35113         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35114         (Makefile.am): Remove test_sys_select_LDADD.
35115
35116         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35117         to an undefined symbol, for an error message.
35118         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35119         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35120         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35121         winsock-select.c here.
35122         * modules/sys_select (Files): Remove lib/winsock-select.c.
35123         (Depends-on): Remove alloca.
35124         (Makefile.am): Substitute GNULIB_SELECT.
35125         * modules/select: New file.
35126         * doc/posix-functions/select.texi: Update.
35127
35128 2008-10-05  Bruno Haible  <bruno@clisp.org>
35129
35130         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35131         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35132         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35133         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35134         getdtablesize.
35135         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35136         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35137
35138 2008-10-05  Bruno Haible  <bruno@clisp.org>
35139
35140         * modules/getdtablesize-tests: New file.
35141         * tests/test-getdtablesize.c: New file.
35142
35143         New module 'getdtablesize'.
35144         * lib/unistd.in.h (getdtablesize): New declaration.
35145         * lib/getdtablesize.c: New file.
35146         * m4/getdtablesize.m4: New file.
35147         * modules/getdtablesize: New file.
35148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35149         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35150         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35151         HAVE_GETDTABLESIZE.
35152         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35153
35154 2008-10-05  Bruno Haible  <bruno@clisp.org>
35155
35156         * modules/sched (Makefile.am): Fix typo.
35157         Reported by Simon Josefsson.
35158
35159 2008-10-05  Jim Meyering  <meyering@redhat.com>
35160
35161         bootstrap: check for LT_INIT, too
35162         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35163         are deprecated.  Suggestion from Ralf Wildenhues.
35164
35165 2008-10-05  Bruno Haible  <bruno@clisp.org>
35166
35167         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35168         overriding them by ours.
35169         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35170
35171 2008-10-05  Jim Meyering  <meyering@redhat.com>
35172
35173         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35174         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35175         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35176
35177 2008-10-04  Bruno Haible  <bruno@clisp.org>
35178
35179         * modules/dup2 (License): Change to LGPLv2+.
35180         * modules/sleep (License): Likewise.
35181         * modules/perror (License): Likewise.
35182         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35183         Blake.
35184         * modules/signal (License): Likewise.
35185         * modules/sigprocmask (License): Likewise.
35186         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35187         Meyering.
35188
35189 2008-10-04  Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35192         Reported by Rainer Tammer <tammer@tammer.net>.
35193
35194 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35195             Bruno Haible  <bruno@clisp.org>
35196
35197         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35198         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35199         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35200
35201 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35202
35203         filevercmp: new module
35204         * lib/filevercmp.h: New function filevercmp comparing version strings.
35205         * lib/filevercmp.c: Implementation of filevercmp function.
35206         * modules/filevercmp: Module metadata.
35207         * tests/test-filevercmp.c: Unit test for new module.
35208         * modules/filevercmp-tests: Unit test metadata.
35209         * MODULES.html.sh: Add filevercmp module.
35210
35211 2008-10-03  Bruno Haible  <bruno@clisp.org>
35212
35213         * lib/c-ctype.h: Add comment.
35214         Reported by Jim Meyering.
35215
35216 2008-10-02  Bruno Haible  <bruno@clisp.org>
35217
35218         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35219
35220 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35221
35222         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35223         name of bootstrap.conf accordingly.
35224
35225 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35226
35227         * build-aux/bootstrap: Install git-merge-changelog configuration
35228         items into .gitconfig if needed.
35229
35230 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35231
35232         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35233         git repository, and initialize/update it accordingly.
35234
35235 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35236
35237         * modules/fsync-tests: New file.
35238         * tests/test-fsync.c: New file.
35239
35240         New module 'fsync'.
35241         * lib/fsync.c: New file.
35242         * m4/fsync.m4: New file.
35243         * modules/fsync: New file.
35244         * lib/unistd.in.h (fsync): New declaration.
35245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35246         GNULIB_FSYNC and HAVE_FSYNC.
35247         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35248         * MODULES.html.sh (posix_functions): Add fsync.
35249         * doc/posix-functions/fsync.texi: Mention the new module.
35250
35251 2008-10-02  Jim Meyering  <meyering@redhat.com>
35252
35253         fts.c: sync with similar code from coreutils' remove.c
35254         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35255         Guard also with "#if defined __linux__", since for now at least,
35256         this code is Linux-kernel-specific.
35257
35258 2008-10-02  Jim Meyering  <meyering@redhat.com>
35259
35260         fts: bug fixes
35261         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35262         Include <sys/vfs.h>, not <sys/statfs.h>.
35263
35264         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35265         Include <sys/vfs.h>, not <sys/statfs.h>.
35266
35267 2008-10-01  Bruno Haible  <bruno@clisp.org>
35268
35269         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35270         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35271         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35272         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35273         * doc/posix-functions/posix_spawnp.texi: Likewise.
35274         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35275         whether posix_spawn actually works.
35276         * m4/pipe.m4 (gl_PIPE): Likewise.
35277         * modules/execute (Files): Add m4/posix_spawn.m4.
35278         * modules/pipe (Files): Add m4/posix_spawn.m4.
35279         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35280
35281 2008-10-01  Jim Meyering  <meyering@redhat.com>
35282
35283         remove trailing spaces
35284         * NEWS: Likewise.
35285         * lib/poll.c (poll): Likewise.
35286         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35287         * lib/winsock.c (rpl_close): Likewise.
35288         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35289         * modules/yield: Likewise.
35290         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35291         * tests/test-sys_select.c (connect_to_socket): Likewise.
35292
35293         fts.c: adjust a new interface to be more generally useful
35294         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35295         (fts_build): Adjust caller.
35296
35297 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35298
35299         * modules/cond-tests: New file.
35300         * tests/test-cond.c: New file.
35301
35302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35303             Bruno Haible  <bruno@clisp.org>
35304
35305         * modules/cond (Dependencies): Add errno, time.
35306         * lib/glthread/cond.h: Include <time.h>.
35307         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35308         across platforms.
35309
35310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35311             Bruno Haible  <bruno@clisp.org>
35312
35313         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35314
35315 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35316             Bruno Haible  <bruno@clisp.org>
35317
35318         * modules/tls-tests (Depends-on): Add thread, yield.
35319         (configure.ac): Remove all checks.
35320         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35321         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35322         gl_thread_self): Remove definitions. Include glthread/thread.h and
35323         glthread/yield.h instead.
35324         (test_tls): Pass an additional NULL argument to gl_thread_join.
35325
35326 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35327             Bruno Haible  <bruno@clisp.org>
35328
35329         * modules/lock-tests (Depends-on): Add thread, yield.
35330         (configure.ac): Remove all checks.
35331         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35332         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35333         gl_thread_self): Remove definitions. Include glthread/thread.h and
35334         glthread/yield.h instead.
35335         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35336         additional NULL argument to gl_thread_join.
35337
35338 2008-09-30  Bruno Haible  <bruno@clisp.org>
35339
35340         Fix the Win32 implementation of the 'thread' module.
35341         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35342         pointer type.
35343         (gl_thread_self): Invoke gl_thread_self_func.
35344         (gl_thread_self_func): New declaration.
35345         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35346         (do_init_self_key, init_self_key): New functions.
35347         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35348         Remove some fields.
35349         (running_threads, running_lock): Remove variables.
35350         (get_current_thread_handle): New function.
35351         (gl_thread_self_func, wrapper_func, glthread_create_func,
35352         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35353         simplified.
35354
35355 2008-09-30  Bruno Haible  <bruno@clisp.org>
35356
35357         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35358         files.
35359
35360 2008-09-30  Jim Meyering  <meyering@redhat.com>
35361
35362         fts.m4: correct the test for statfs.f_type
35363         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35364         when checking for statfs.f_type.
35365
35366 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35367
35368         tests: avoid some compiler warnings
35369         * tests/test-memchr.c (main): Pass NULL indirectly.
35370         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35371
35372 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35373
35374         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35375         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35376         exactly specified dayshifts.
35377         (dayshift): New rule.
35378         (rel): Add dayshift.
35379         (relative_time_table) [tomorrow, yesterday, today, now]:
35380         Use tDAY_SHIFT in place of tDAY_UNIT.
35381         * tests/test-getdate.c: Add tests for now-disallowed countable
35382         dayshifts, e.g., "4 yesterday ago".
35383
35384 2008-09-29  Bruno Haible  <bruno@clisp.org>
35385
35386         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35387         * tests/test-posix_spawn1.in.sh: Renamed from
35388         tests/test-posix_spawn.in.sh.
35389         * tests/test-posix_spawn2.c: New file.
35390         * tests/test-posix_spawn2.in.sh: New file.
35391         * modules/posix_spawnp-tests (Files): Update.
35392         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35393
35394 2008-09-29  Bruno Haible  <bruno@clisp.org>
35395
35396         Propagate effects of putenv/setenv/unsetenv to child processes.
35397         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35398         * lib/pipe.c (create_pipe): Likewise.
35399
35400 2008-09-29  Bruno Haible  <bruno@clisp.org>
35401
35402         Enable use of shell scripts as executables in mingw.
35403         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35404         run the program as a shell script.
35405         * lib/pipe.c (create_pipe): Likewise.
35406         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35407         resulting array.
35408
35409 2008-09-29  Eric Blake  <ebb9@byu.net>
35410
35411         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35412
35413 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35414
35415         * doc/posix-functions/accept.texi: Update mingw problems.
35416         * doc/posix-functions/bind.texi: Update mingw problems.
35417         * doc/posix-functions/close.texi: Update mingw problems.
35418         * doc/posix-functions/connect.texi: Update mingw problems.
35419         * doc/posix-functions/getpeername.texi: Update mingw problems.
35420         * doc/posix-functions/getsockname.texi: Update mingw problems.
35421         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35422         * doc/posix-functions/ioctl.texi: Update mingw problems.
35423         * doc/posix-functions/listen.texi: Update mingw problems.
35424         * doc/posix-functions/recv.texi: Update mingw problems.
35425         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35426         * doc/posix-functions/select.texi: Update mingw problems.
35427         * doc/posix-functions/send.texi: Update mingw problems.
35428         * doc/posix-functions/sendto.texi: Update mingw problems.
35429         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35430         * doc/posix-functions/socket.texi: Update mingw problems.
35431
35432 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35433             Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/sys_select.in.h: Include sys/time.h.
35436         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35437         * modules/sys_select: Depend on sys_time.
35438         * tests/test-sys_select.c: Test that sys/select.h defines struct
35439         timeval fully.
35440
35441 2008-09-29  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35444         * lib/sys_select.in.h: Likewise.
35445
35446 2008-09-29  Bruno Haible  <bruno@clisp.org>
35447
35448         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35449
35450 2008-09-29  Bruno Haible  <bruno@clisp.org>
35451
35452         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35453         Set LIBSOCKET instead of augmenting LIBS.
35454         * modules/sockets (Link): New section.
35455         * modules/sockets-tests (test_sockets_LDADD): New variable.
35456         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35457         * modules/poll-tests (test_poll_LDADD): New variable.
35458         * NEWS: Document the change.
35459
35460 2008-09-29  Bruno Haible  <bruno@clisp.org>
35461
35462         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35463         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35464         ARPA_INET_H directly.
35465         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35466
35467 2008-09-28  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35470         from gl_HEADER_SYS_SOCKET.
35471         (gl_HEADER_SYS_SOCKET): Invoke it.
35472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35473
35474 2008-09-28  Bruno Haible  <bruno@clisp.org>
35475
35476         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35477         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35478         Needed on OSF/1 4.0.
35479
35480 2008-09-28  Bruno Haible  <bruno@clisp.org>
35481
35482         Override open more carefully.
35483         * lib/open.c (orig_open): New function.
35484         (rpl_open): Use orig_open instead of open.
35485         * lib/fcntl.in.h: Add special invocation convention.
35486         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35487         (gl_FUNC_OPEN): Invoke it.
35488
35489         Override freopen more carefully.
35490         * lib/freopen.c (orig_freopen): New function.
35491         (rpl_freopen): Use orig_freopen instead of freopen.
35492         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35493         (gl_FUNC_FREOPEN): Invoke it.
35494
35495         Override fopen more carefully.
35496         * lib/fopen.c (orig_fopen): New function.
35497         (rpl_fopen): Use orig_fopen instead of fopen.
35498         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35499         (gl_FUNC_FOPEN): Invoke it.
35500         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35501
35502 2008-09-28  Bruno Haible  <bruno@clisp.org>
35503
35504         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35505         SIGPIPE.
35506
35507 2008-09-28  Bruno Haible  <bruno@clisp.org>
35508
35509         * tests/test-sigaction.c (handler, main): Disable the check whether
35510         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35511         glibc systems with LinuxThreads.
35512
35513 2008-09-28  Bruno Haible  <bruno@clisp.org>
35514
35515         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35516
35517         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35518         with AIX xlc.
35519         * lib/fcntl.in.h (open): Likewise.
35520         Reported by Rainer Tammer <tammer@tammer.net>.
35521
35522 2008-09-28  Bruno Haible  <bruno@clisp.org>
35523
35524         * modules/posix_spawnp-tests: New file.
35525         * tests/test-posix_spawn.c: New file.
35526         * tests/test-posix_spawn.in.sh: New file.
35527
35528         New module 'posix_spawnp'.
35529         * modules/posix_spawnp: New file.
35530         * lib/spawnp.c: New file, from GNU libc with modifications.
35531         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35532
35533         New module 'posix_spawn'.
35534         * modules/posix_spawn: New file.
35535         * lib/spawn.c: New file, from GNU libc with modifications.
35536         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35537
35538         New module 'posix_spawnattr_destroy'.
35539         * modules/posix_spawnattr_destroy: New file.
35540         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35541         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35542         module.
35543
35544         New module 'posix_spawnattr_setsigmask'.
35545         * modules/posix_spawnattr_setsigmask: New file.
35546         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35547         modifications.
35548         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35549         new module.
35550
35551         New module 'posix_spawnattr_getsigmask'.
35552         * modules/posix_spawnattr_getsigmask: New file.
35553         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35554         modifications.
35555         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35556         new module.
35557
35558         New module 'posix_spawnattr_setsigdefault'.
35559         * modules/posix_spawnattr_setsigdefault: New file.
35560         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35561         modifications.
35562         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35563         new module.
35564
35565         New module 'posix_spawnattr_getsigdefault'.
35566         * modules/posix_spawnattr_getsigdefault: New file.
35567         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35568         modifications.
35569         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35570         new module.
35571
35572         New module 'posix_spawnattr_setschedpolicy'.
35573         * modules/posix_spawnattr_setschedpolicy: New file.
35574         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35575         modifications.
35576         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35577         new module.
35578
35579         New module 'posix_spawnattr_getschedpolicy'.
35580         * modules/posix_spawnattr_getschedpolicy: New file.
35581         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35582         modifications.
35583         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35584         new module.
35585
35586         New module 'posix_spawnattr_setschedparam'.
35587         * modules/posix_spawnattr_setschedparam: New file.
35588         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35589         modifications.
35590         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35591         new module.
35592
35593         New module 'posix_spawnattr_getschedparam'.
35594         * modules/posix_spawnattr_getschedparam: New file.
35595         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35596         modifications.
35597         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35598         new module.
35599
35600         New module 'posix_spawnattr_setpgroup'.
35601         * modules/posix_spawnattr_setpgroup: New file.
35602         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35603         modifications.
35604         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35605         module.
35606
35607         New module 'posix_spawnattr_getpgroup'.
35608         * modules/posix_spawnattr_getpgroup: New file.
35609         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35610         modifications.
35611         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35612         module.
35613
35614         New module 'posix_spawnattr_setflags'.
35615         * modules/posix_spawnattr_setflags: New file.
35616         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35617         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35618         module.
35619
35620         New module 'posix_spawnattr_getflags'.
35621         * modules/posix_spawnattr_getflags: New file.
35622         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35623         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35624         module.
35625
35626         New module 'posix_spawnattr_init'.
35627         * modules/posix_spawnattr_init: New file.
35628         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35629         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35630         module.
35631
35632         New module 'posix_spawn_file_actions_destroy'.
35633         * modules/posix_spawn_file_actions_destroy: New file.
35634         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35635         modifications.
35636         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35637         the new module.
35638
35639         New module 'posix_spawn_file_actions_addopen'.
35640         * modules/posix_spawn_file_actions_addopen: New file.
35641         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35642         modifications.
35643         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35644         the new module.
35645
35646         New module 'posix_spawn_file_actions_adddup2'.
35647         * modules/posix_spawn_file_actions_adddup2: New file.
35648         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35649         modifications.
35650         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35651         the new module.
35652
35653         New module 'posix_spawn_file_actions_addclose'.
35654         * modules/posix_spawn_file_actions_addclose: New file.
35655         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35656         modifications.
35657         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35658         the new module.
35659
35660         New module 'posix_spawn_file_actions_init'.
35661         * modules/posix_spawn_file_actions_init: New file.
35662         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35663         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35664         new module.
35665
35666         New module 'posix_spawn-internal'.
35667         * modules/posix_spawn-internal: New file.
35668         * lib/spawn_int.h: New file, from GNU libc with modifications.
35669         * lib/spawni.c: New file, from GNU libc with modifications.
35670         * m4/posix_spawn.m4: New file.
35671
35672         New module 'spawn'.
35673         * modules/spawn: New file.
35674         * lib/spawn.in.h: New file, from GNU libc with modifications.
35675         * m4/spawn_h.m4: New file.
35676         * doc/posix-headers/spawn.texi: Mention the new module.
35677
35678 2008-09-28  Bruno Haible  <bruno@clisp.org>
35679
35680         * modules/sched-tests: New file.
35681         * tests/test-sched.c: New file.
35682
35683         New module 'sched'.
35684         * modules/sched: New file.
35685         * lib/sched.in.h: New file.
35686         * m4/sched_h.m4: New file.
35687         * doc/posix-headers/sched.texi: Mention the new module.
35688
35689 2008-09-27  Eric Blake  <ebb9@byu.net>
35690
35691         Fix previous patch, and tweak references to $0.
35692         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35693         (func_version, func_gnulib_dir): Don't call this program
35694         gnulib-tool.
35695         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35696         with using $0 in function.
35697         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35698         (func_fatal_error): Reuse the name the user invoked us with.
35699
35700 2008-09-27  Bruno Haible  <bruno@clisp.org>
35701
35702         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35703         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35704         (gl_ICONV_H): Not here.
35705         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35706         instead of assigning ICONV_H directly.
35707
35708         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35710         WCHAR_H directly.
35711
35712 2008-09-27  Bruno Haible  <bruno@clisp.org>
35713
35714         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35715         * modules/arpa_inet (Depends-on): Add link-warning.
35716         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35717         * modules/unistd (Makefile.am): Likewise.
35718
35719 2008-09-26  Bruno Haible  <bruno@clisp.org>
35720
35721         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35722         variables.
35723         (func_version): Essentially copied from gnulib-tool.
35724         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35725         func_readlink): Copied from gnulib-tool.
35726
35727 2008-09-26  Bruno Haible  <bruno@clisp.org>
35728
35729         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35730         invoking git-version-gen.
35731
35732 2008-09-26  Bruno Haible  <bruno@clisp.org>
35733
35734         * posix-modules: Update to directory names changed on 2008-01-19.
35735         Remove commas in output before splitting into words. No more need to
35736         avoid 'ftruncate' since 2007-02-19.
35737
35738 2008-09-26  Bruno Haible  <bruno@clisp.org>
35739
35740         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35741
35742 2008-09-26  Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35745         * modules/fwriteerror (Depends-on): Add errno.
35746
35747 2008-09-26  Bruno Haible  <bruno@clisp.org>
35748
35749         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35750         * tests/test-vc-list-files-cvs.sh: Likewise.
35751
35752 2008-09-26  Bruno Haible  <bruno@clisp.org>
35753
35754         * doc/posix-headers/sys_resource.texi: Reorder items.
35755
35756 2008-09-26  Jim Meyering  <meyering@redhat.com>
35757
35758         fts: tweak inode comparison function
35759         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35760         inode numbers, as documented.
35761
35762         fts: sort dirent entries on inode number before traversing
35763         This avoids a quadratic, seek-related performance penalty when
35764         operating on a directory containing many entries (measurable at 10k;
35765         3.5 hours at 2 million entries with a cold cache) on certain types
35766         of file systems, including ext3 and ext4, but not tmpfs.
35767         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35768         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35769         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35770         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35771         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35772         (fts_build): Set the stat.st_ino member from D_INO.
35773         If it is likely to be useful, sort dirent entries on inode number.
35774
35775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35776         and the struct statfs.f_type member.
35777         * modules/fts (Depends-on): Add d-ino.
35778
35779 2008-09-26  Bruno Haible  <bruno@clisp.org>
35780
35781         * modules/sigpipe-die (Depends-on): Add sigpipe.
35782
35783         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35784         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35785         and GNULIB_STDIO_H_SIGPIPE are set.
35786         * lib/stdio-write.c: New file.
35787         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35788         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35789         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35790         REPLACE_STDIO_WRITE_FUNCS.
35791         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35792         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35793         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35794         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35795         * modules/stdio (Files): Add lib/stdio-write.c.
35796         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35797         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35798         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35799         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35800         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35801         REPLACE_FPRINTF_POSIX.
35802         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35803         REPLACE_PRINTF_POSIX.
35804         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35805         REPLACE_VFPRINTF_POSIX.
35806         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35807         REPLACE_VPRINTF_POSIX.
35808         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35809         SIGPIPE issue.
35810         * doc/posix-functions/fputc.texi: Likewise.
35811         * doc/posix-functions/fputs.texi: Likewise.
35812         * doc/posix-functions/fwrite.texi: Likewise.
35813         * doc/posix-functions/printf.texi: Likewise.
35814         * doc/posix-functions/putc.texi: Likewise.
35815         * doc/posix-functions/putchar.texi: Likewise.
35816         * doc/posix-functions/puts.texi: Likewise.
35817         * doc/posix-functions/vfprintf.texi: Likewise.
35818         * doc/posix-functions/vprintf.texi: Likewise.
35819
35820         * modules/safe-write (Depends-on): Add write.
35821
35822         * modules/sigpipe-tests: New file.
35823         * tests/test-sigpipe.c: New file.
35824         * tests/test-sigpipe.sh: New file.
35825
35826         * modules/write: New file.
35827         * lib/unistd.in.h: Include <sys/types.h>.
35828         (write): New declaration.
35829         * lib/write.c: New file.
35830         * m4/write.m4: New file.
35831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35832         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35833         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35834         GNULIB_WRITE, REPLACE_WRITE.
35835         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35836         and the SIGPIPE issue.
35837
35838         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35839         (raise): New declaration.
35840         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35841         (ext_signal): New function.
35842         (rpl_raise): New function.
35843         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35844         GNULIB_SIGNAL_H_SIGPIPE.
35845         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35846         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35847
35848         * modules/sigpipe: New file.
35849         * m4/sigpipe.m4: New file.
35850
35851 2008-09-25  Derek Price  <derek@ximbiot.com>
35852             Bruno Haible  <bruno@clisp.org>
35853
35854         * gnulib-tool (func_import): Report all license incompatibilities, not
35855         just the first one.
35856
35857 2008-09-25  Bruno Haible  <bruno@clisp.org>
35858
35859         * gnulib-tool (func_import): When computing the edits, consider not
35860         only the Makefile.ams that exist but also those that will be generated.
35861
35862 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35863
35864         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35865         fixes gnulib-tool --test warning about duplicate dependency.
35866
35867 2008-09-25  Bruno Haible  <bruno@clisp.org>
35868
35869         * gnulib-tool: Don't ask the user to perform edits in the generated
35870         Makefile.ams.
35871         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35872         apply to the Makefile.am being generated.
35873         (func_emit_tests_Makefile_am): Execute edits that apply to the
35874         Makefile.am being generated.
35875         (func_import): Setup list of Makefile.am edits before emitting the
35876         Makefile.ams, not at the end.
35877         (func_create_testdir): Update.
35878         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35879
35880 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35881
35882         * gnulib-tool (func_import): Store the --tests-base option in the
35883         comment in gnulib-cache.m4.
35884
35885 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35886
35887         * NEWS: Document increased portability that sys_select now provides.
35888
35889         * lib/sys_select.in.h: Install select wrapper.
35890         * lib/sys_socket.in.h: Use more descriptive name when there is no
35891         select wrapper.
35892         * lib/winsock-select.c: New.
35893         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35894         Require gl_HEADER_SYS_SOCKET.
35895         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35896         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35897         * tests/test-sys_select.c: Add functional tests.
35898
35899 2008-09-24  Eric Blake  <ebb9@byu.net>
35900
35901         open, fopen: close fd leak in last patch
35902         * lib/open.c (rpl_open): Close fd before returning error.
35903         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35904         * doc/posix-functions/open.texi (open): Document that Irix also
35905         has the bug.
35906         * doc/posix-functions/fopen.texi (fopen): Likewise.
35907         Reported by Paolo Bonzini.
35908
35909 2008-09-24  Bruno Haible  <bruno@clisp.org>
35910
35911         Ensure that a filename ending in a slash cannot be used to access a
35912         non-directory.
35913         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35914         to check whether it's really a directory.
35915         * lib/fopen.c: Include fcntl.h, unistd.h.
35916         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35917         and fdopen().
35918         * modules/fopen (Depends-on): Add unistd.
35919         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35920         * tests/test-fopen.c (main): Likewise.
35921         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35922         * doc/posix-functions/fopen.texi: Likewise.
35923         Reported by Eric Blake.
35924
35925 2008-09-23  Eric Blake  <ebb9@byu.net>
35926
35927         c-stack: avoid compiler optimizations when provoking overflow
35928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35929         recursion harder to optimize, to ensure a stack overflow occurs.
35930         * tests/test-c-stack.c (recurse): Likewise.
35931         Borrowed from libsigsegv.
35932
35933         c-stack: work around Irix sigaltstack bug
35934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35935         whether sigaltstack uses wrong end of stack_t (copied in part from
35936         libsigsegv).
35937         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35938         Irix bug, without requiring an over-allocation.
35939         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35940         bug.
35941
35942         fopen: document mingw bug on directories
35943         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35944         not allowing a stream visiting a directory, even though reading
35945         from such a stream is not portable.
35946
35947 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35948
35949         * lib/poll.c: Rewrite.
35950         * modules/poll: Depend on alloca.
35951
35952 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35953
35954         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35955         instead define prototypes for a full set of wrappers.  Ensure
35956         that Cygwin does not use the compatibility code, which is only
35957         for MinGW.
35958         * lib/winsock.c: New.
35959         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35960         * modules/sys_socket: Add lib/winsock.c.
35961
35962         * modules/poll-tests: Add errno and perror.
35963         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35964
35965 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35966
35967         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35968
35969 2008-09-23  Bruno Haible  <bruno@clisp.org>
35970
35971         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35972         * doc/glibc-functions/*: Likewise.
35973
35974 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35975
35976         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35977         success.
35978
35979 2008-09-22  Eric Blake  <ebb9@byu.net>
35980             Bruno Haible  <bruno@clisp.org>
35981
35982         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35983         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35984         supply %A but mishandle pseudo-NaN.
35985         Reported by Simon Josefsson.
35986
35987 2008-09-21  Bruno Haible  <bruno@clisp.org>
35988
35989         * tests/test-lock.c (main): Tweak skip message.
35990         * tests/test-tls.c (main): Likewise.
35991
35992 2008-09-21  Bruno Haible  <bruno@clisp.org>
35993
35994         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35995         whether 'struct sigaction' has sa_sigaction here...
35996         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35997         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35998
35999 2008-09-21  Bruno Haible  <bruno@clisp.org>
36000
36001         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36002         section.
36003         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36004         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36005         the new section.
36006         (Support for obsolete systems lacking POSIX:2001): New section.
36007         (String handling <string.h>): Move strdup to the new section.
36008         Suggested by Simon Josefsson and Paolo Bonzini.
36009
36010 2008-09-21  Bruno Haible  <bruno@clisp.org>
36011
36012         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36013         exponents in %e and %g results on 'long double'. Needed for mingw's
36014         improved *printf functions.
36015         * tests/test-vasprintf-posix.c (test_function): Likewise.
36016         * tests/test-snprintf-posix.h (test_function): Likewise.
36017         * tests/test-sprintf-posix.h (test_function): Likewise.
36018         Reported by Eric Blake.
36019
36020 2008-09-21  Bruno Haible  <bruno@clisp.org>
36021
36022         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36023         * tests/test-sprintf-posix.h (test_function): Likewise.
36024
36025 2008-09-21  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/getpass (Depends-on): Add strdup-posix.
36028
36029         New module 'strdup-posix'.
36030         * modules/strdup-posix: New file.
36031         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36032         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36034         REPLACE_STRDUP.
36035         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36036         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36037         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36038         strdup-posix.
36039
36040         * modules/strdup (Depends-on): Remove malloc-posix.
36041
36042 2008-09-20  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36045         Wildenhues.
36046
36047 2008-09-20  Bruno Haible  <bruno@clisp.org>
36048
36049         Ensure that wint_t gets defined on IRIX 5.3.
36050         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36051         * lib/wctype.in.h (wint_t): Likewise.
36052         (__wctype_wint_t): Remove type.
36053         (isw*): Use wint_t instead of __wctype_wint_t.
36054         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36055         * modules/wchar (Files): Add m4/wint_t.m4.
36056         (Makefile.am): Substitute HAVE_WINT_T.
36057         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36058         * tests/test-wctype.c: Check that wint_t is defined.
36059         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36060         * doc/posix-headers/wctype.texi: Likewise.
36061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36062
36063 2008-09-18  Bruno Haible  <bruno@clisp.org>
36064
36065         * gnulib-tool (func_exit): Update comment.
36066
36067 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36068
36069         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36070         assumes strdup exists and does not depend on strdup to return
36071         ENOMEM on out of memory conditions.
36072
36073 2008-09-18  Bruno Haible  <bruno@clisp.org>
36074
36075         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36076         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36077         digits for the exponent.
36078
36079 2008-09-18  Jim Meyering  <meyering@redhat.com>
36080             Bruno Haible  <bruno@clisp.org>
36081
36082         * lib/vasnprintf.c (decimal_point_char): Define also if
36083         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36084
36085 2008-09-16  Bruno Haible  <bruno@clisp.org>
36086         and Eric Blake  <ebb9@byu.net>
36087
36088         vasnprintf: support Irix 5.3
36089         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36090         that mishandle long double infinity.
36091         Reported by Tom G. Christensen.
36092
36093 2008-09-16  Bruno Haible  <bruno@clisp.org>
36094
36095         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36096         Solaris 9.
36097         * doc/glibc-functions/alphasort.texi: Likewise.
36098         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36099
36100 2008-09-16  Jim Meyering  <meyering@redhat.com>
36101
36102         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36103         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36104         a umask modification leak out of a subshell.  Otherwise, the
36105         opensolaris /bin/sh would be accepted and thus cause unwarranted
36106         failures in the coreutils test suite.
36107
36108 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36109
36110         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36111         to succeed.
36112
36113 2008-09-16  Jim Meyering  <meyering@redhat.com>
36114
36115         avoid spurious test failure when library is built without ACL support
36116         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36117         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36118         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36119         * tests/test-copy-acl.sh: Likewise.
36120
36121 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36122
36123         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36124         based on character occurrence counts.
36125
36126 2008-09-15  Eric Blake  <ebb9@byu.net>
36127
36128         tests: avoid some compiler warnings
36129         * tests/test-memchr.c (main): Pass NULL indirectly.
36130         * tests/test-closein.c (main): Avoid unused variable.
36131
36132 2008-09-15  Bruno Haible  <bruno@clisp.org>
36133
36134         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36135         are missing on OpenBSD 4.0 individually.
36136         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36137
36138 2008-09-15  Bruno Haible  <bruno@clisp.org>
36139
36140         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36141         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36142         * doc/posix-functions/perror.texi: Likewise.
36143         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36144         is missing.
36145         Reported by Eric Blake.
36146
36147         * lib/errno.in.h: Use replacement values >= 2000.
36148         Reported by Eric Blake.
36149
36150 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36151
36152         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36153         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36154         limit.
36155         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36156         compareseq was aborted.
36157
36158 2008-09-14  Bruno Haible  <bruno@clisp.org>
36159
36160         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36161         yvec_edit_count.
36162         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36163         (fstrcmp_bounded): Simplify result computation accordingly.
36164
36165 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36166
36167         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36168         (fstrcmp): Define in terms of fstrcmp_bounded.
36169         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36170         lower_bound argument.
36171         Return quickly if the result is certainly < lower_bound.
36172         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36173
36174 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36175
36176         * lib/diffseq.h (EARLY_ABORT): New macro.
36177         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36178         evaluates to true.
36179
36180 2008-09-14  Bruno Haible  <bruno@clisp.org>
36181
36182         * modules/perror-tests: New file.
36183         * tests/test-perror.sh: New file.
36184         * tests/test-perror.c: New file.
36185
36186         New module 'perror'.
36187         * lib/stdio.in.h (perror): New declaration.
36188         * lib/perror.c: New file.
36189         * m4/perror.m4: New file.
36190         * modules/perror: New file.
36191         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36192         * doc/posix-functions/perror.texi: Mention the perror module.
36193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36194         REPLACE_PERROR.
36195         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36196         REPLACE_PERROR.
36197
36198 2008-09-14  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/stdio (Makefile.am): Reorder to match the order in
36201         lib/stdio.in.h.
36202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36203
36204 2008-09-13  Bruno Haible  <bruno@clisp.org>
36205
36206         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36207
36208 2008-09-13  Bruno Haible  <bruno@clisp.org>
36209
36210         Extend strerror to cover the added errno values.
36211         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36212         (rpl_strerror): Provide error messages for the added errno values and
36213         for the WSA* values.
36214         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36215         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36216         strerror.
36217         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36218         * modules/strerror (Depends-on): Add errno.
36219         * doc/posix-functions/strerror.texi: Document the change.
36220         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36221         and EOVERFLOW.
36222
36223 2008-09-13  Bruno Haible  <bruno@clisp.org>
36224
36225         * modules/EOVERFLOW: Remove file.
36226         * m4/eoverflow.m4: Remove file.
36227         * modules/EOVERFLOW-tests: Remove file.
36228         * tests/test-EOVERFLOW.c: Remove file.
36229         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36230         * modules/ftell (Depends-on): Likewise.
36231         * modules/getdelim (Depends-on): Likewise.
36232         * modules/getugroups (Depends-on): Likewise.
36233         * modules/poll (Depends-on): Likewise.
36234         * modules/snprintf (Depends-on): Likewise.
36235         * modules/sprintf-posix (Depends-on): Likewise.
36236         * modules/vasnprintf (Depends-on): Likewise.
36237         * modules/vasprintf (Depends-on): Likewise.
36238         * modules/vfprintf-posix (Depends-on): Likewise.
36239         * modules/vsnprintf (Depends-on): Likewise.
36240         * modules/vsprintf-posix (Depends-on): Likewise.
36241         * modules/xvasprintf (Depends-on): Likewise.
36242         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36243         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36244         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36245         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36247         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36248         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36249         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36250         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36251         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36252         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36253         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36254         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36255         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36256         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36257         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36258         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36259         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36260         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36261         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36263         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36264         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36265         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36266         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36268         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36269         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36270         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36271         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36272         * MODULES.html.sh: Remove EOVERFLOW.
36273         * NEWS: Mention the change.
36274
36275 2008-09-13  Bruno Haible  <bruno@clisp.org>
36276
36277         * modules/errno-tests: New file.
36278         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36279
36280         * lib/errno.in.h: New file.
36281         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36282         * modules/errno: New file.
36283         * doc/posix-headers/errno.texi: Update documentation.
36284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36285
36286 2008-09-13  Bruno Haible  <bruno@clisp.org>
36287
36288         * tests/test-poll.c: Use #if for native Windows, rather than testing
36289         __MSVCRT__.
36290
36291 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36292             Bruno Haible  <bruno@clisp.org>
36293
36294         * lib/glob.c: Don't include <pwd.h> on native Windows.
36295         (WINDOWS32): New macro.
36296         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36297
36298 2008-09-13  Bruno Haible  <bruno@clisp.org>
36299
36300         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36301         (ETIMEDOUT): Remove macro.
36302         (glthread_cond_timedwait_multithreaded): New declaration.
36303         (glthread_cond_timedwait): Use it.
36304         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36305         (glthread_cond_timedwait_multithreaded): New function.
36306
36307 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36308
36309         * modules/poll-tests: Do not check for io.h.
36310         * tests/test-poll.c: Check for __MSVCRT__ instead.
36311
36312 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36313
36314         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36315         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36316         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36317
36318 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36319
36320         * modules/poll-tests: New.
36321         * tests/test-poll.c: New.
36322
36323 2008-09-12  Eric Blake  <ebb9@byu.net>
36324
36325         frexp: test for NetBSD failure on -0.0
36326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36327         not all, bugs from NetBSD 3.0 have been fixed.
36328         * doc/posix-functions/frexp.texi (frexp): Document bug.
36329         Reported by Thomas Klausner.
36330
36331         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36333         literal -0.0.
36334         Reported by Jonathan C. Patschke <jp@centtech.com>.
36335
36336 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36337
36338         * lib/glthread/cond.h: Use dummy implementation also if
36339         USE_WIN32_THREADS.
36340
36341 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36342
36343         * modules/fnmatch-posix (License): Change to LGPLv2+.
36344         * modules/fnmatch-gnu (License): Likewise.
36345
36346 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36347
36348         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36349
36350 2008-09-11  Jim Meyering  <meyering@redhat.com>
36351
36352         * users.txt: Add gtk-vnc.
36353
36354 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36355
36356         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36357         rotate amounts.
36358
36359         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36360         required for 16-bit and 8-bit rotates.
36361         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36362         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36363         UINT8_MAX instead of hard-coded constants.
36364         Suggested by Paul Eggert.
36365
36366 2008-09-07  Bruno Haible  <bruno@clisp.org>
36367
36368         * tests/test-striconveh.c (main): Check behaviour when converting from
36369         UTF-7.
36370
36371         Make striconveh work better with stateful encodings.
36372         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36373         that iconv does not increment the inptr when returning -1/EINVAL.
36374
36375 2008-09-07  Bruno Haible  <bruno@clisp.org>
36376
36377         * build-aux/config.rpath: Update according to libtool-2.2.6.
36378         * build-aux/config.libpath: Likewise.
36379
36380 2008-09-06  Bruno Haible  <bruno@clisp.org>
36381
36382         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36383         * lib/freadptr.c (freadptr): Likewise.
36384         * lib/freadseek.c (freadptrinc): Likewise.
36385         Reported by Simon Josefsson.
36386
36387 2008-09-06  Bruno Haible  <bruno@clisp.org>
36388
36389         * modules/freadptr (License): Change to LGPLv2+.
36390         * modules/freadseek (License): Likewise.
36391         Suggested by Eric Blake.
36392
36393         * modules/memchr2 (License): Change to LGPLv2+.
36394         Approved by Eric Blake.
36395
36396 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36397             Bruno Haible  <bruno@clisp.org>
36398
36399         Make gnulib-tool work with native 'sed' on AIX.
36400         * gnulib-tool (sed_noop): New variable.
36401         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36402         func_add_or_update, func_create_testdir): Use it to initialize sed
36403         script variables.
36404         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36405
36406 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36407             Bruno Haible  <bruno@clisp.org>
36408
36409         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36410         also works after #include directives.
36411
36412 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
36413
36414         getdate.y: reject an out-of-range timezone value
36415         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36416         the range [-24...+24].  When specified with only one or two digits,
36417         * tests/test-getdate.c: Tests for the fix.
36418         * doc/getdate.texi: Document this change.
36419
36420 2008-09-03  Bruno Haible  <bruno@clisp.org>
36421
36422         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36423
36424 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36425
36426         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36427         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36428         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36429         Blake <ebb9@byu.net>.
36430
36431         * tests/test-bitrotate.c: Add more test vectors.
36432
36433 2008-09-02  Eric Blake  <ebb9@byu.net>
36434
36435         vasnprintf-posix: handle large precision via %.*d
36436         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36437         when handling it ourselves.
36438         * tests/test-vasnprintf-posix.c (test_function): Add test.
36439         * tests/test-snprintf-posix.h (test_function): Likewise.
36440         * tests/test-sprintf-posix.h (test_function): Likewise.
36441         * tests/test-vasprintf-posix.c (test_function): Likewise.
36442         Reported by Alain Guibert.
36443
36444 2008-09-01  Eric Blake  <ebb9@byu.net>
36445
36446         c-stack: make configure-time check more robust
36447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36448         successful sigaction call.
36449         Reported by Tom G. Christensen.
36450
36451 2008-09-01  Bruno Haible  <bruno@clisp.org>
36452
36453         New module 'findprog-lgpl'.
36454         * modules/findprog-lgpl: New file.
36455         * lib/findprog-lgpl.c: New file.
36456         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36457         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36458         to decide whether to use strdup or xstrdup, concatenated_filename or
36459         xconcatenated_filename.
36460
36461 2008-09-01  Bruno Haible  <bruno@clisp.org>
36462
36463         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36464         'xconcat-filename' (GPL).
36465         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36466         (License): Change to LGPLv2+.
36467         * modules/xconcat-filename: New file.
36468         * lib/concat-filename.h (concatenated_filename): Change specification.
36469         (xconcatenated_filename): New declaration.
36470         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36471         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36472         memory situations.
36473         * lib/xconcat-filename.c: New file.
36474         * NEWS: Mention the change.
36475         * lib/findprog.c: Include concat-filename.h, not filename.h.
36476         (find_in_path): Use xconcatenated_filename instead of
36477         concatenated_filename.
36478         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36479         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36480         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36481         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36482         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36483         instead of concatenated_filename.
36484         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36485         (execute_java_class): Use xconcatenated_filename instead of
36486         concatenated_filename.
36487         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36488         * modules/javacomp (Depends-on): Likewise.
36489         * modules/javaexec (Depends-on): Likewise.
36490
36491 2008-09-01  Bruno Haible  <bruno@clisp.org>
36492
36493         Split module 'filename' into 'filename' and 'concat-filename'.
36494         * modules/filename: Keep only lib/filename.h.
36495         (License): Change to LGPLv2+.
36496         * modules/concat-filename: New file, extracted from modules/filename.
36497         * lib/filename.h (concatenated_filename): Remove declaration.
36498         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36499         * lib/concat-filename.c: Include concat-filename.h.
36500         * NEWS: Mention the change.
36501
36502 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36503
36504         * lib/bitrotate.h (rotl8, rotr8): Add.
36505
36506         * modules/bitrotate (configure.ac): Need
36507         AC_REQUIRE([AC_C_INLINE]).
36508         (Description): Mention stdint.h.  Reported by Bruno Haible
36509         <bruno@clisp.org>.
36510
36511         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36512         Paolo Bonzini <bonzini@gnu.org>.
36513
36514 2008-08-31  Bruno Haible  <bruno@clisp.org>
36515
36516         Assume Solaris specific bi-arch conventions on Solaris systems.
36517         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36518         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36519         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36520         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36521         like acl_libdirstem.
36522         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36523         acl_libdirstem.
36524         * NEWS: Mention the change.
36525         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36526
36527 2008-08-31  Jim Meyering  <meyering@redhat.com>
36528
36529         * lib/strftime.h: Add comments describing the two added arguments.
36530
36531         remove duplicate #include directives
36532         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36533         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36534
36535 2008-08-31  Bruno Haible  <bruno@clisp.org>
36536
36537         New module 'sigpipe-die'.
36538         * modules/sigpipe-die: New file.
36539         * lib/sigpipe-die.h: New file.
36540         * lib/sigpipe-die.c: New file.
36541         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36542
36543 2008-08-31  Bruno Haible  <bruno@clisp.org>
36544
36545         Don't override previously installed signal handlers.
36546         * lib/fatal-signal.c (saved_sigactions): New variable.
36547         (uninstall_handlers): Reset the signal to the saved handler, not
36548         to SIG_DFL (except when ignored).
36549         (install_handlers): Save the previous handlers.
36550
36551 2008-08-30  Bruno Haible  <bruno@clisp.org>
36552
36553         * gnulib-tool (func_reset_sigpipe): New function.
36554         (func_get_automake_snippet, func_modules_transitive_closure,
36555         func_import): Invoke it before a join command that reads from stdin,
36556         to avoid "echo: write error: Broken pipe" error messages on stderr.
36557         Reported by Sam Steingold <sds@gnu.org>.
36558
36559 2008-08-30  Bruno Haible  <bruno@clisp.org>
36560
36561         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36562         Code copied from m4/open.m4.
36563         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36564         access and the filename ends in a slash. Code copied from lib/open.c.
36565         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36566         * tests/test-fopen.c (main): Check against bug with trailing slash.
36567
36568 2008-08-29  Bruno Haible  <bruno@clisp.org>
36569
36570         Avoid some "gcc -pedantic" warnings.
36571         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36572         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36573         * lib/dirent.in.h: Likewise.
36574         * lib/fcntl.in.h: Likewise.
36575         * lib/float.in.h: Likewise.
36576         * lib/iconv.in.h: Likewise.
36577         * lib/inttypes.in.h: Likewise.
36578         * lib/locale.in.h: Likewise.
36579         * lib/math.in.h: Likewise.
36580         * lib/netinet_in.in.h: Likewise.
36581         * lib/search.in.h: Likewise.
36582         * lib/signal.in.h: Likewise.
36583         * lib/stdarg.in.h: Likewise.
36584         * lib/stdint.in.h: Likewise.
36585         * lib/stdio.in.h: Likewise.
36586         * lib/stdlib.in.h: Likewise.
36587         * lib/string.in.h: Likewise.
36588         * lib/strings.in.h: Likewise.
36589         * lib/sys_select.in.h: Likewise.
36590         * lib/sys_socket.in.h: Likewise.
36591         * lib/sys_stat.in.h: Likewise.
36592         * lib/sys_time.in.h: Likewise.
36593         * lib/sysexits.in.h: Likewise.
36594         * lib/time.in.h: Likewise.
36595         * lib/unistd.in.h: Likewise.
36596         * lib/wchar.in.h: Likewise.
36597         * lib/wctype.in.h: Likewise.
36598         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36599         * modules/fchdir (Makefile.am): Likewise.
36600         * modules/fcntl (Makefile.am): Likewise.
36601         * modules/float (Makefile.am): Likewise.
36602         * modules/iconv_open (Makefile.am): Likewise.
36603         * modules/inttypes (Makefile.am): Likewise.
36604         * modules/locale (Makefile.am): Likewise.
36605         * modules/math (Makefile.am): Likewise.
36606         * modules/netinet_in (Makefile.am): Likewise.
36607         * modules/search (Makefile.am): Likewise.
36608         * modules/signal (Makefile.am): Likewise.
36609         * modules/stdarg (Makefile.am): Likewise.
36610         * modules/stdint (Makefile.am): Likewise.
36611         * modules/stdio (Makefile.am): Likewise.
36612         * modules/stdlib (Makefile.am): Likewise.
36613         * modules/string (Makefile.am): Likewise.
36614         * modules/strings (Makefile.am): Likewise.
36615         * modules/sys_select (Makefile.am): Likewise.
36616         * modules/sys_socket (Makefile.am): Likewise.
36617         * modules/sys_stat (Makefile.am): Likewise.
36618         * modules/sys_time (Makefile.am): Likewise.
36619         * modules/sysexits (Makefile.am): Likewise.
36620         * modules/time (Makefile.am): Likewise.
36621         * modules/unistd (Makefile.am): Likewise.
36622         * modules/wchar (Makefile.am): Likewise.
36623         * modules/wctype (Makefile.am): Likewise.
36624         Reported by Reuben Thomas <rrt@sc3d.org>.
36625
36626 2008-08-29  Bruno Haible  <bruno@clisp.org>
36627
36628         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36629         any more.
36630
36631 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36632
36633         * MODULES.html.sh (Misc): Add bitrotate.
36634
36635         * modules/bitrotate: New file.
36636
36637         * lib/bitrotate.h: New file.
36638
36639         * modules/bitrotate-tests: New file.
36640
36641         * tests/test-bitrotate.c: New file.
36642
36643         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36644         on the bitrotate module.
36645
36646         * lib/arctwo.c: Use new bitrotate module.
36647
36648 2008-08-29  Jim Meyering  <meyering@redhat.com>
36649
36650         bootstrap: merge changes from coreutils
36651         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36652         of copied files.  Remove a kludge, now that this is fixed.
36653         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36654         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36655         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36656
36657 2008-08-29  Bruno Haible  <bruno@clisp.org>
36658
36659         * MODULES.html.sh: Remove --cvs-urls option.
36660
36661 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36662
36663         maint.mk: adjust to file name change
36664         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36665
36666 2008-08-28  Jim Meyering  <meyering@redhat.com>
36667
36668         * modules/getndelim2 (License): Relicense to LGPLv2+.
36669         Approved by Richard Stallman for the version of 1995, and by
36670         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36671
36672 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36673
36674         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36675         dummy if one is not available.  Do not touch them if
36676         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36677         (getc_maybe_unlocked): New.
36678         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36679
36680 2008-08-26  Eric Blake  <ebb9@byu.net>
36681
36682         doc/INSTALL: resync from autoconf
36683         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36684         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36685         moving...
36686         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36687         * INSTALL: Regenerate.
36688         * INSTALL.ISO: New file.
36689         * INSTALL.UTF-8: Likewise.
36690
36691 2008-08-26  Jim Meyering  <meyering@redhat.com>
36692
36693         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36694         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36695         these definitions conditional, so that they may be overridden, too.
36696
36697 2008-08-26  Bruno Haible  <bruno@clisp.org>
36698
36699         Generate INSTALL file variants with prettier quotes.
36700         * doc/Makefile (INSTALL_PRELUDE): New macro.
36701         (INSTALL): Use it.
36702         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36703
36704 2008-08-26  Bruno Haible  <bruno@clisp.org>
36705
36706         Run makeinfo in an English locale.
36707         * doc/Makefile (MAKEINFO): New variable.
36708
36709 2008-08-26  Bruno Haible  <bruno@clisp.org>
36710
36711         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36712         Suggested by Eric Blake.
36713
36714 2008-08-25  Bruno Haible  <bruno@clisp.org>
36715
36716         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36717
36718 2008-08-25  Eric Blake  <ebb9@byu.net>
36719
36720         c-stack: test that stack overflow can be caught
36721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36722         that platform allows handling stack overflow; at least OS/2 EMX
36723         has sigaltstack, but crashes before transferring control to
36724         handler on stack overflow.
36725         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36726         check for HAVE_STACK_OVERFLOW_HANDLING.
36727         Reported by Elbert Pol.
36728
36729 2008-08-25  Bruno Haible  <bruno@clisp.org>
36730
36731         * doc/posix-functions/strftime.texi: Fix description of strftime
36732         module.
36733
36734 2008-08-24  Bruno Haible  <bruno@clisp.org>
36735
36736         * tests/uniwidth/test-uc_width2.c: New file.
36737         * tests/uniwidth/test-uc_width2.sh: New file.
36738         * modules/uniwidth/width-tests (Files): Add the new files.
36739         (TESTS): Add uniwidth/test-uc_width2.sh.
36740         (TESTS_ENVIRONMENT): New variable.
36741         (check_PROGRAMS): Add test-uc_width2.
36742         (test_uc_width2_SOURCES): New variable.
36743
36744         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36745         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36746         not 0x00AB.
36747         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36748
36749 2008-08-22  Eric Blake  <ebb9@byu.net>
36750
36751         test-lock, test-tls: mention why a test is skipped
36752         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36753         skipped.
36754         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36755
36756         count-one-bits: relax license
36757         * modules/count-one-bits (License): Relicense to LGPLv2+.
36758         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36759
36760 2008-08-22  Andreas Schwab  <schwab@suse.de>
36761
36762         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36763         Remove spurious space in assignment.
36764
36765 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36766
36767         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36768         Paul Eggert <eggert@CS.UCLA.EDU>.
36769
36770 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36771
36772         * modules/gettext: Add m4/threadlib.m4.
36773
36774 2008-08-19  Eric Blake  <ebb9@byu.net>
36775
36776         test-c-stack: fix compilation failure on FreeBSD 5.0
36777         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36778         headers before <sys/resource.h>.
36779         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36780         the bug.
36781         Reported by Nelson H. F. Beebe.
36782
36783         strverscmp: migrate from "strverscmp.h" to <string.h>
36784         * modules/string (Makefile.am): Add new hooks.
36785         * modules/strverscmp (Files): Remove strverscmp.h.
36786         (Depends-on): Add string.
36787         (configure.ac): Add indicator.
36788         (Include): Mention new header.
36789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36790         defaults.
36791         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36792         results.
36793         * lib/strverscmp.h: Delete.
36794         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36795         * tests/test-strverscmp.c (includes): Adjust client.
36796         * lib/check-version.c (includes): Likewise.
36797         * NEWS: Document the change.
36798
36799         strverscmp: add unit test
36800         * modules/strverscmp-tests: New file.
36801         * tests/test-strverscmp.c: Likewise.
36802
36803 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36804
36805         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36806         regarding Windows crypto stuff, from Mono.
36807
36808 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36809
36810         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36811         if present, for intel RND.  Return error on failures.
36812
36813 2008-08-18  Ben Pfaff  <blp@gnu.org>
36814
36815         gitlog-to-changelog: give better diagnostic for failed pipe-open
36816         * build-aux/gitlog-to-changelog: Improve error message: suggest
36817         that the version of Git may be too old.
36818
36819 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36820
36821         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36822         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36823
36824 2008-08-18  Bruno Haible  <bruno@clisp.org>
36825
36826         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36827         pthread_in_use().
36828
36829 2008-08-18  Bruno Haible  <bruno@clisp.org>
36830
36831         * lib/glthread/threadlib.c: Include <pthread.h>.
36832
36833 2008-08-18  Bruno Haible  <bruno@clisp.org>
36834
36835         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36836         glthread_recursive_lock_* macros.
36837         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36838         Fix syntax error.
36839
36840 2008-08-18  Bruno Haible  <bruno@clisp.org>
36841
36842         * lib/glthread/thread.c: Avoid forcing a context switch right after
36843         thread creation.
36844
36845 2008-08-17  Bruno Haible  <bruno@clisp.org>
36846
36847         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36848         * lib/glthread/thread.h: Provide Win32 specific implementation.
36849         * modules/thread (Files): Add lib/glthread/thread.c.
36850         (Depends-on): Add lock.
36851         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36852
36853 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36854
36855         New module 'yield'.
36856         * modules/yield: New file.
36857         * lib/glthread/yield.h: New file.
36858         * m4/yield.m4: New file.
36859         * MODULES.html.sh (Multithreading): Add yield.
36860
36861 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36862
36863         New module 'thread'.
36864         * modules/thread: New file.
36865         * lib/glthread/thread.h: New file.
36866         * m4/thread.m4: New file.
36867         * MODULES.html.sh (Multithreading): Add thread.
36868
36869 2008-08-17  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/glthread/lock.h: Include <stdlib.h> always.
36872         * lib/glthread/tls.h: Likewise.
36873         * lib/glthread/cond.h: Likewise.
36874
36875 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36876
36877         New module 'cond'.
36878         * modules/cond: New file.
36879         * lib/glthread/cond.h: New file.
36880         * lib/glthread/cond.c: New file.
36881         * m4/cond.m4: New file.
36882         * MODULES.html.sh (Multithreading): Add cond.
36883
36884 2008-08-16  Eric Blake  <ebb9@byu.net>
36885
36886         c-stack: fix regression on Irix 5.3 from 2008-06-21
36887         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36888         sa_sigaction...
36889         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36890         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36891         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36892         * modules/signal (Makefile.am): Use the value.
36893         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36894         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36895         * doc/posix-headers/signal.texi (signal.h): Document this
36896         portability issue.
36897         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36898         Reported by Tom G. Christensen.
36899
36900 2008-08-17  Bruno Haible  <bruno@clisp.org>
36901
36902         New module 'threadlib'.
36903         * modules/threadlib: New file.
36904         * lib/glthread/threadlib.c: New file, extracted from
36905         lib/glthread/lock.c.
36906         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36907         functions.
36908         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36909         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36910         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36911         macros.
36912         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36913         (gl_DISABLE_THREADS): Remove macro.
36914         * modules/lock (Files): Remove build-aux/config.rpath.
36915         (Depends-on): Remove havelib. Add threadlib.
36916         (configure.ac-early): Remove section.
36917         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36918         * modules/tls (Depends-on): Remove lock. Add threadlib.
36919         (Link): New section, copied from threadlib.
36920         * MODULES.html.sh (Multithreading): Add threadlib.
36921
36922 2008-08-14  Bruno Haible  <bruno@clisp.org>
36923
36924         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36925         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36926         glthread_rwlock_unlock, glthread_rwlock_destroy,
36927         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36928         glthread_recursive_lock_destroy): Define as macros always.
36929         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36930         glthread_lock_lock.
36931         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36932         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36933         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36934         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36935         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36936         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36937         (glthread_recursive_lock_lock_func): Renamed from
36938         glthread_recursive_lock_lock.
36939         (glthread_recursive_lock_unlock_func): Renamed from
36940         glthread_recursive_lock_unlock.
36941         (glthread_recursive_lock_destroy_func): Renamed from
36942         glthread_recursive_lock_destroy.
36943
36944 2008-08-14  Bruno Haible  <bruno@clisp.org>
36945
36946         * lib/glthread/lock.h: Renamed from lib/lock.h.
36947         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36948         * lib/glthread/tls.h: Renamed from lib/tls.h.
36949         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36950         * lib/fstrcmp.c: Update includes.
36951         * lib/strsignal.c: Update includes.
36952         * modules/lock (Files, Makefile.am): Update.
36953         (Include): Change to "glthread/lock.h".
36954         * modules/tls (Files, Makefile.am): Update.
36955         (Include): Change to "glthread/tls.h".
36956         * tests/test-lock.c: Update includes.
36957         * tests/test-tls.c: Update includes.
36958         * NEWS: Mention the renamed header files.
36959
36960 2008-08-11  Jim Meyering  <meyering@redhat.com>
36961
36962         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36963
36964 2008-08-11  Eric Blake  <ebb9@byu.net>
36965
36966         test-c-stack: avoid C99-ism
36967         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36968         before statement.
36969         Reported by Alain Guibert.
36970
36971 2008-08-10  Jim Meyering  <meyering@redhat.com>
36972
36973         ensure that return value of uinttostr et al are not ignored
36974         * lib/inttostr.h (__GNUC_PREREQ): Define.
36975         (__attribute_warn_unused_result__): Define.
36976         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36977
36978 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36979
36980         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36981         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36982
36983 2008-08-07  Jim Meyering  <meyering@redhat.com>
36984
36985         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36986
36987         * modules/mkstemp (License): Relicense under LGPLv2+.
36988         * modules/tempname (License): Likewise.
36989
36990 2008-08-06  Bruno Haible  <bruno@clisp.org>
36991
36992         * lib/poll.c (poll): Further micro-optimization.
36993
36994 2008-08-06  Jim Meyering  <meyering@redhat.com>
36995
36996         inet_pton.c: use locale-independent tolower
36997         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36998         (inet_pton6): Use c_tolower rather than tolower.
36999         * modules/inet_pton (Depends-on): Add c-ctype.
37000
37001 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37002
37003         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37004         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37005
37006 2008-08-06  Jim Meyering  <meyering@redhat.com>
37007
37008         * modules/inet_pton (License): Relicense under LGPLv2+.
37009
37010 2008-08-03  Bruno Haible  <bruno@clisp.org>
37011
37012         Additional non-aborting API for lock and tls.
37013         * lib/lock.h: Include <errno.h>.
37014         (glthread_lock_init): New macro/function.
37015         (gl_lock_init): Define as wrapper around glthread_lock_init.
37016         (glthread_lock_lock): New macro/function.
37017         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37018         (glthread_lock_unlock): New macro/function.
37019         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37020         (glthread_lock_destroy): New macro/function.
37021         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37022         (glthread_rwlock_init): New macro/function.
37023         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37024         (glthread_rwlock_rdlock): New macro/function.
37025         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37026         (glthread_rwlock_wrlock): New macro/function.
37027         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37028         (glthread_rwlock_unlock): New macro/function.
37029         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37030         (glthread_rwlock_destroy): New macro/function.
37031         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37032         (glthread_recursive_lock_init): New macro/function.
37033         (gl_recursive_lock_init): Define as wrapper around
37034         glthread_recursive_lock_init.
37035         (glthread_recursive_lock_lock): New macro/function.
37036         (gl_recursive_lock_lock): Define as wrapper around
37037         glthread_recursive_lock_lock.
37038         (glthread_recursive_lock_unlock): New macro/function.
37039         (gl_recursive_lock_unlock): Define as wrapper around
37040         glthread_recursive_lock_unlock.
37041         (glthread_recursive_lock_destroy): New macro/function.
37042         (gl_recursive_lock_destroy): Define as wrapper around
37043         glthread_recursive_lock_destroy.
37044         (glthread_once): New macro/function.
37045         (gl_once): Define as wrapper around glthread_once.
37046         Update function declarations.
37047         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37048         glthread_rwlock_init. Return error code.
37049         (glthread_rwlock_rdlock_multithreaded): Renamed from
37050         glthread_rwlock_rdlock. Return error code.
37051         (glthread_rwlock_wrlock_multithreaded): Renamed from
37052         glthread_rwlock_wrlock. Return error code.
37053         (glthread_rwlock_unlock_multithreaded): Renamed from
37054         glthread_rwlock_unlock. Return error code.
37055         (glthread_rwlock_destroy_multithreaded): Renamed from
37056         glthread_rwlock_destroy. Return error code.
37057         (glthread_recursive_lock_init_multithreaded): Renamed from
37058         glthread_recursive_lock_init. Return error code.
37059         (glthread_recursive_lock_lock_multithreaded): Renamed from
37060         glthread_recursive_lock_lock. Return error code.
37061         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37062         glthread_recursive_lock_unlock. Return error code.
37063         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37064         glthread_recursive_lock_destroy. Return error code.
37065         (glthread_once_call): Make static.
37066         (glthread_once_multithreaded): Renamed from glthread_once.
37067         * lib/tls.h: Include <errno.h>.
37068         (glthread_tls_key_init): New macro/function.
37069         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37070         (glthread_tls_set): New macro/function.
37071         (gl_tls_set): Define as wrapper around glthread_tls_set.
37072         (glthread_tls_key_destroy): New macro/function.
37073         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37074         Update function declarations.
37075         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37076         glthread_tls_get.
37077         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37078
37079 2008-08-04  Eric Blake  <ebb9@byu.net>
37080
37081         gnumakefile: use space, not TAB, outside of targets
37082         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37083
37084 2008-08-02  Jim Meyering  <meyering@redhat.com>
37085
37086         getdate.y: avoid locale-dependent date parsing failure
37087         In Turkish locales, getdate would fail to recognize keywords
37088         containing a lowercase "i".  The solution is not to rely on
37089         locale-sensitive case-conversion.
37090         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37091         (lookup_word): Use c_toupper in place of toupper.
37092         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37093         Reported by Vefa Bicakci <bicave@superonline.com> in
37094         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37095         * modules/getdate (Depends-on): Add c-ctype.
37096
37097 2008-08-02  Bruno Haible  <bruno@clisp.org>
37098
37099         * gnulib-tool (func_import): When updating or creating a .gitignore
37100         file, prepend each added line with a slash, and ignore leading slashes
37101         from the existing lines.
37102         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37103
37104 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37105
37106         Portability fix for GNU make 3.79.1.
37107         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37108         versions do not understand.
37109
37110 2008-08-01  Bruno Haible  <bruno@clisp.org>
37111
37112         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37113         * tests/test-isnanf.h (zero): New variable.
37114         (main): Avoid literal -0.0f.
37115         * tests/test-isnand.h (zero): New variable.
37116         (main): Avoid literal -0.0.
37117         * tests/test-isnanl.h (zero): New variable.
37118         (main): Avoid literal -0.0L.
37119         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37120         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37121         -0.0, -0.0L.
37122         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37123         (test_signbitd): Avoid literal -0.0.
37124         (test_signbitl): Avoid literal -0.0L.
37125         * tests/test-ceilf1.c (zero): New variable.
37126         (main): Avoid literal -0.0f.
37127         * tests/test-ceill.c (zero): New variable.
37128         (main): Avoid literal -0.0L.
37129         * tests/test-floorf1.c (zero): New variable.
37130         (main): Avoid literal -0.0f.
37131         * tests/test-floorl.c (zero): New variable.
37132         (main): Avoid literal -0.0L.
37133         * tests/test-roundf1.c (zero): New variable.
37134         (main): Avoid literal -0.0f.
37135         * tests/test-round1.c (zero): New variable.
37136         (main): Avoid literal -0.0.
37137         * tests/test-roundl.c (zero): New variable.
37138         (main): Avoid literal -0.0L.
37139         * tests/test-truncf1.c (zero): New variable.
37140         (main): Avoid literal -0.0f.
37141         * tests/test-trunc1.c (zero): New variable.
37142         (main): Avoid literal -0.0.
37143         * tests/test-truncl.c (zero): New variable.
37144         (main): Avoid literal -0.0L.
37145         * tests/test-frexp.c (zero): New variable.
37146         (main): Avoid literal -0.0.
37147         * tests/test-frexpl.c (zero): New variable.
37148         (main): Avoid literal -0.0L.
37149         * tests/test-ldexpl.c (zero): New variable.
37150         (main): Avoid literal -0.0L.
37151         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37152         (zerod, zerol): New variables.
37153         (test_function): Avoid literals -0.0, -0.0L.
37154         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37155         (zerod, zerol): New variables.
37156         (test_function): Avoid literals -0.0, -0.0L.
37157         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37158         (zerod, zerol): New variables.
37159         (test_function): Avoid literals -0.0, -0.0L.
37160         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37161         (zerod, zerol): New variables.
37162         (test_function): Avoid literals -0.0, -0.0L.
37163         * tests/test-strtod.c (zero): New variable.
37164         (main): Avoid literal -0.0.
37165         Reported by Jonathan C. Patschke <jp@centtech.com>.
37166
37167 2008-07-31  Jim Meyering  <meyering@redhat.com>
37168
37169         sha256.h: correct definition of SHA224_DIGEST_SIZE
37170         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37171         Reported by Paulie Pena IV <paulie4@gmail.com>.
37172         Define as 224 / 8, rather than as a literal.
37173         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37174         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37175         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37176
37177 2008-07-31  Bruno Haible  <bruno@clisp.org>
37178
37179         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37180         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37181         Reported by Jonathan Patschke <jp@centtech.com>.
37182
37183 2008-07-31  Bruno Haible  <bruno@clisp.org>
37184
37185         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37186         Reported by Paolo Bonzini <bonzini@gnu.org>.
37187
37188 2008-07-30  Eric Blake  <ebb9@byu.net>
37189
37190         test-strtod: allow compilation without -lm
37191         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37192         Reported by Dennis Clarke <blastwave@gmail.com>.
37193
37194 2008-07-28  Jim Meyering  <meyering@redhat.com>
37195
37196         bootstrap: work also when there are no .po files in po/
37197         * build-aux/bootstrap (update_po_files): Complete the change
37198         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37199
37200 2008-07-27  Jim Meyering  <meyering@redhat.com>
37201
37202         * users.txt: Add zile.
37203
37204 2008-07-26  Ben Pfaff  <blp@gnu.org>
37205
37206         Add missing dependencies on new m4/exponent[fdl].m4 files.
37207         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37208         * modules/isnand-nolibm: Add m4/exponentd.m4.
37209         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37210         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37211         m4/isnan[fdl].m4, because the macros actually used moved.
37212         Reported by Jim Meyering.
37213
37214 2008-07-14  Ben Pfaff  <blp@gnu.org>
37215
37216         Add isinf module.
37217         * lib/isinf.c: New file.
37218         * lib/math.in.h: Define isinf macro if we have decided to replace
37219         it.
37220         * m4/isinf.m4: New file.
37221         * m4/math_h.m4: Initialize and substitute variables for isinf
37222         module.
37223         * modules/isinf: New file.
37224         * modules/isinf-tests: New file.
37225         * modules/math: Add substitutions for new module.
37226         * tests/test-isinf.c: New file.
37227         * doc/posix-functions/isinf.texi: Mention new module.
37228         * MODULES.html.sh: Mention new module.
37229
37230 2008-07-14  Ben Pfaff  <blp@gnu.org>
37231
37232         Factor out some macros for use by additional modules.
37233         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37234         exponentf.m4.
37235         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37236         exponentd.m4.
37237         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37238         file exponentl.m4.
37239         * m4/exponentf.m4: New file.
37240         * m4/exponentd.m4: New file.
37241         * m4/exponentl.m4: New file.
37242         * modules/isnanf: Use new file m4/exponentf.m4.
37243         * modules/isnand: Use new file m4/exponentd.m4.
37244         * modules/isnanl: Use new file m4/exponentl.m4.
37245
37246 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37247
37248         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37249         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37250         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37251         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37252
37253         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37254         readlink on platforms without PATH_MAX.
37255
37256 2008-07-21  Eric Blake  <ebb9@byu.net>
37257
37258         Warn, not fail, on stale version.
37259         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37260
37261         Don't allow installation with stale devel version number.
37262         * top/GNUmakefile (_is-install-target): New macro.
37263         (_curr-ver): Forbid installation with stale version number.
37264
37265 2008-07-20  Bruno Haible  <bruno@clisp.org>
37266
37267         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37268         TESTS_ENVIRONMENT.
37269         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37270
37271 2008-07-20  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/c-stack.h (c_stack_action): Add documentation.
37274         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37275
37276 2008-07-20  Bruno Haible  <bruno@clisp.org>
37277
37278         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37279         * modules/readlink (License): Likewise.
37280
37281 2008-07-17  Eric Blake  <ebb9@byu.net>
37282
37283         * modules/c-stack (Link): Fix typo.
37284
37285         Make c-stack use libsigsegv, when available.
37286         * modules/c-stack (Depends-on): Add libsigsegv.
37287         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37288         needed.
37289         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37290         (segv_handler, overflow_handler, c_stack_action)
37291         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37292         implementation when libsigsegv is available, but only when using
37293         the library is necessary.
37294         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37295         comment, explaining why XSI check fails on Linux.
37296         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37297         * tests/test-c-stack2.sh: Tweak skip message.
37298         * NEWS: Document new link-time requirements.
37299
37300 2008-07-16  Eric Blake  <ebb9@byu.net>
37301
37302         c-stack: Expose false positives when not using libsigsegv.
37303         * modules/c-stack-tests (Files): Expand test.
37304         * tests/test-c-stack.c (main): Add means to conditionally trigger
37305         non-overflow SIGSEGV.
37306         * tests/test-c-stack2.sh: New file.
37307
37308 2008-07-14  Bruno Haible  <bruno@clisp.org>
37309
37310         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37311         Reported by Eric Blake.
37312
37313 2008-07-14  Sam Steingold  <sds@gnu.org>
37314             Bruno Haible  <bruno@clisp.org>
37315
37316         New module libsigsegv.
37317         * modules/libsigsegv: New file.
37318         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37319         modifications.
37320         * MODULES.html.sh (Signal handling): New section.
37321
37322 2008-07-14  Bruno Haible  <bruno@clisp.org>
37323
37324         * modules/unictype/ctype-* (Description): Add the word "function".
37325         Improves the resulting doc in MODULES.html.
37326
37327 2008-07-12  Ben Pfaff  <blp@gnu.org>
37328
37329         Add longlong module.
37330         * modules/longlong: New file.
37331
37332 2008-07-12  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37335         to empty.
37336
37337 2008-07-10  Ben Pfaff  <blp@gnu.org>
37338
37339         Add isnan module.
37340         * doc/posix-functions/isnan.texi: Mention new module.
37341         * lib/math.in.h: Define isnan macro if we have decided to replace
37342         it.
37343         * m4/isnan.m4: New file.
37344         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37345         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37346         also.
37347         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37348         redundancy.
37349         * m4/math_h.m4: Initialize and substitute variables for isnan
37350         module.
37351         * modules/isnan: New file.
37352         * modules/isnan-tests: New file.
37353         * modules/math: Add substitutions for new module.
37354         * tests/test-isnan.c: New file.
37355         * MODULES.html.sh: Mention new module.
37356
37357 2008-07-10  Ben Pfaff  <blp@gnu.org>
37358
37359         Add isnanf module.
37360         * lib/isnanf.m4: New file.
37361         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37362         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37363         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37364         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37365         * modules/isnanf: New file.
37366         * modules/isnanf-tests: New file.
37367         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37368         files.
37369         * tests/test-isnanf-nolibm.c: factored most of its contents into
37370         new file tests/test-isnanf.h.
37371         * tests/test-isnanf.h: New file.
37372         * tests/test-isnanf.c: New file.
37373         * MODULES.html.sh: Mention new module.
37374         * doc/glibc-functions/isnanf.texi: Mention new module.
37375
37376 2008-07-10  Ben Pfaff  <blp@gnu.org>
37377
37378         Add isnand module.
37379         * lib/isnand.h: New file.
37380         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37381         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37382         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37383         functionality also.
37384         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37385         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37386         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37387         * modules/isnand: New file.
37388         * modules/isnand-tests: New file.
37389         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37390         files.
37391         * tests/test-isnand-nolibm.c: factored most of its contents into
37392         new file tests/test-isnand.h.
37393         * tests/test-isnand.h: New file.
37394         * tests/test-isnand.c: New file.
37395         * MODULES.html.sh: Mention new module.
37396
37397 2008-07-10  Ben Pfaff  <blp@gnu.org>
37398
37399         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37400         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37401         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37402         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37403         * modules/isnanf-nolibm: Update references to renamed files.
37404         * modules/isnand-nolibm: Likewise.
37405         * modules/isnanf-nolibm-tests: Likewise.
37406         * modules/isnand-nolibm-tests: Likewise.
37407         * lib/frexp.c: Likewise.
37408         * lib/isfinite.c: Likewise.
37409         * lib/signbitd.c: Likewise.
37410         * lib/signbitf.c: Likewise.
37411         * lib/vasnprintf.c: Likewise.
37412         * tests/test-ceilf1.c: Likewise.
37413         * tests/test-ceilf2.c: Likewise.
37414         * tests/test-floorf1.c: Likewise.
37415         * tests/test-floorf2.c: Likewise.
37416         * tests/test-frexp.c: Likewise.
37417         * tests/test-round1.c: Likewise.
37418         * tests/test-round2.c: Likewise.
37419         * tests/test-roundf1.c: Likewise.
37420         * tests/test-strtod.c: Likewise.
37421         * tests/test-trunc1.c: Likewise.
37422         * tests/test-trunc2.c: Likewise.
37423         * tests/test-truncf1.c: Likewise.
37424         * tests/test-truncf2.c: Likewise.
37425         * NEWS: Mention the renamed header files.
37426
37427 2008-07-11  Jim Meyering  <meyering@redhat.com>
37428
37429         vc-list-files: make the last-resort awk code more portable
37430         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37431         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37432         does not support it.
37433
37434 2008-07-10  Eric Blake  <ebb9@byu.net>
37435
37436         Work with tar's bootstrap.
37437         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37438         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37439         an m4 comment.
37440
37441 2008-07-09  Jim Meyering  <meyering@redhat.com>
37442
37443         posix-shell.m4: fix typo that made this test malfunction
37444         * m4/posix-shell.m4: Remove capitalization in variable name.
37445
37446 2008-07-08  Bruno Haible  <bruno@clisp.org>
37447
37448         * m4/onceonly.m4: Update comments.
37449         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37450
37451 2008-07-04  Jim Meyering  <meyering@redhat.com>
37452
37453         * users.txt: Add vc-dwim.
37454         (bison, coreutils): Use the gitweb URL.
37455
37456 2008-07-03  Jim Meyering  <meyering@redhat.com>
37457
37458         * users.txt: Add libffcall.  From Sam Steingold.
37459
37460 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
37461
37462         getdate.y: do not ignore TZ with relative day, month or year offset
37463         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37464         relative-date-handling, since otherwise, the latter would clobber the
37465         sole output (an updated Start value) of the tz-handling block.
37466         * tests/test-getdate.c: Tests for the fix
37467
37468 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37469
37470         Recognize 'foo_LIBRARIES += libgnu.a'.
37471         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37472         makefile snippet has already specified an installation location,
37473         also using '+='.
37474
37475 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
37476
37477         getdate.y: factor out common actions
37478         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37479         Use them in place of open-coded actions.
37480
37481 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37482
37483         Add self-test for getdate module.
37484         * modules/getdate-tests: New file.
37485         * tests/test-getdate.c: New file.
37486
37487 2008-06-29  Bruno Haible  <bruno@clisp.org>
37488
37489         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37490         .gitignore.
37491         Reported by Sylvain Beucler <beuc@beuc.net>.
37492
37493 2008-06-29  Bruno Haible  <bruno@clisp.org>
37494
37495         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37496         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37497
37498 2008-06-29  Bruno Haible  <bruno@clisp.org>
37499
37500         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37501         EXTRA_DIST.
37502         Reported by Sylvain Beucler <beuc@beuc.net>.
37503
37504 2008-06-26  Jim Meyering  <meyering@redhat.com>
37505
37506         make several modules depend on the "open" module
37507         This provides slightly increased consistency when opening-for-write
37508         the name of a non-directory spelled with a trailing slash.
37509         * modules/chdir-safer: Likewise.
37510         * modules/chown: Likewise.
37511         * modules/clean-temp: Likewise.
37512         * modules/copy-file: Likewise.
37513         * modules/fchdir: Likewise.
37514         * modules/fcntl-safer: Likewise.
37515         * modules/pipe: Likewise.
37516         * modules/utime: Likewise.
37517         Prompted by Eric Blake and Bruno Haible.
37518
37519 2008-06-24  Andreas Schwab  <schwab@suse.de>
37520
37521         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37522         literals can be used as initializers for global variables.
37523
37524 2008-06-23  Eric Blake  <ebb9@byu.net>
37525
37526         Make gnulib-cache.m4 easier to diff.
37527         * gnulib-tool (func_import): Allow newlines when reading cached
37528         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37529
37530 2008-06-23  Bruno Haible  <bruno@clisp.org>
37531
37532         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37533         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37534         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37535         m4/signalblocking.m4.
37536         (gl_PREREQ_SIGACTION): Don't invoke it.
37537         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37538         gl_PREREQ_SIG_HANDLER_H.
37539         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37540         Don't check for sigaction here.
37541
37542 2008-06-23  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37545         (install_handlers): Don't set the SA_RESETHAND flag.
37546
37547 2008-06-23  Bruno Haible  <bruno@clisp.org>
37548
37549         * m4/sigaction.m4: Comment fixes.
37550         * lib/signal.in.h: Likewise.
37551
37552 2008-06-23  Eric Blake  <ebb9@byu.net>
37553
37554         Fix typo.
37555         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37556
37557         Avoid SA_ namespace.
37558         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37559         Reported by Ralf Wildenhues.
37560
37561         Avoid test failure due to SA_RESTORER.
37562         * tests/test-sigaction.c (SA_MASK): New macro.
37563         (main): Avoid failing due to extension flags being set.
37564         Reported by Jim Meyering.
37565
37566         Revert use of sig-handler.h in sigprocmask.c.
37567         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37568         it requires the existence of struct sigaction.
37569         * lib/sigprocmask.c (handler_t): Restore typedef.
37570         (rpl_signal, old_handlers): Use local type.
37571
37572 2008-06-22  Bruno Haible  <bruno@clisp.org>
37573
37574         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37575         conditionally.
37576         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37577
37578 2008-06-22  Bruno Haible  <bruno@clisp.org>
37579
37580         * doc/posix-functions/siginterrupt.texi: Move note.
37581
37582         * lib/signal.in.h (SA_RESTART): New macro.
37583         * lib/sigaction.c: Update comment.
37584
37585         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37586
37587         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37588         (gl_PREREQ_SIGPROCMASK): Invoke it.
37589         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37590
37591         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37592
37593         * lib/sigprocmask.c: Update a comment.
37594
37595 2008-06-21  Eric Blake  <ebb9@byu.net>
37596
37597         Use sigaction module rather than signal().
37598         * modules/c-stack (Depends-on): Add sigaction.
37599         * modules/fatal-signal (Depends-on): Likewise.
37600         * modules/nanosleep (Depends-on): Likewise.
37601         * modules/sigprocmask (Files): Add sig-handler.h.
37602         * modules/sigaction (Files): Likewise.
37603         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37604         Eggert.
37605         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37606         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37607         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37608         (init_fatal_signals): Likewise.
37609         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37610         (siginterrupt): Delete fallback.
37611         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37612         instead.
37613         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37614         siginterrupt.
37615
37616         New module sigaction, for mingw.
37617         * modules/sigaction: New module...
37618         * modules/sigaction-tests: ...and its test.
37619         * m4/sigaction.m4: New file.
37620         * lib/sigaction.c: Likewise.
37621         * tests/test-sigaction.c: Likewise.
37622         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37623         * modules/signal (Makefile.am): Likewise.
37624         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37625         needed.
37626         * doc/posix-headers/signal.texi (signal.h): Mention provided
37627         types.
37628         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37629         that sigaction is preferable.
37630         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37631         module.
37632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37633         sigaction.
37634
37635         Improve robustness of sigprocmask by overriding signal.
37636         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37637         is in use.
37638         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37639         (SIGKILL, SIGSTOP): Provide fallbacks.
37640         (rpl_signal): Implement.
37641         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37642         signal can be called inside handlers.
37643
37644         Fix nanosleep module on mingw.
37645         * modules/nanosleep (Depends-on): Add sys_select.
37646         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37647
37648         Fix licensing of sigprocmask.
37649         * modules/raise (License): Relicense as LGPL.
37650
37651 2008-06-21  Bruno Haible  <bruno@clisp.org>
37652
37653         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37654         result if it contains question marks.
37655         Reported by Michael Geng <linux@michaelgeng.de>.
37656
37657 2008-06-19  Bruno Haible  <bruno@clisp.org>
37658
37659         Fix CVS-ism.
37660         * doc/gnulib.texi: Include updated-stamp.texi.
37661         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37662         (updated-stamp.texi): New rule.
37663         (gnulib.info): Depend on it.
37664         * doc/.gitignore: Add updated-stamp.texi.
37665         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37666
37667 2008-06-19  Bruno Haible  <bruno@clisp.org>
37668
37669         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37670         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37671
37672 2008-06-19  Eric Blake  <ebb9@byu.net>
37673
37674         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37675         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37676         Reported by Stepan Kasal.
37677
37678 2008-06-18  Bruno Haible  <bruno@clisp.org>
37679
37680         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37681         Reported by Eric Blake.
37682
37683 2008-06-18  Eric Blake  <ebb9@byu.net>
37684
37685         Work around cygwin 1.5.25 strsignal bug.
37686         * tests/test-strsignal.c: Allow for const char *.
37687         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37688
37689 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37690
37691         * users.txt: Update URL to article and add author/date
37692         information.
37693
37694 2008-06-17  Bruno Haible  <bruno@clisp.org>
37695
37696         New macro gl_DISABLE_THREADS.
37697         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37698         if the user did not pass --enable-threads or --disable-threads option.
37699         (gl_DISABLE_THREADS): New macro.
37700         Reported by Eric Blake <ebb9@byu.net>.
37701
37702 2008-06-17  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37705         when the macro ignores it.
37706         Based on a patch by Eric Blake <ebb9@byu.net>.
37707
37708 2008-06-17  Bruno Haible  <bruno@clisp.org>
37709
37710         * modules/tls (License): Change to LGPLv2+.
37711         Reported by Eric Blake.
37712
37713 2008-06-17  Eric Blake  <ebb9@byu.net>
37714
37715         Simplify c-stack prerequisites.
37716         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37717         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37718         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37719         check.
37720         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37721         <sys/resource.h>.
37722
37723         Move c-stack test into testsuite.
37724         * modules/c-stack-tests: New file.
37725         * lib/c-stack.c [DEBUG]: Move test program...
37726         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37727         fail test if sigaltstack is lacking.
37728         * tests/test-c-stack.sh: New driver file.
37729
37730 2008-06-16  Eric Blake  <ebb9@byu.net>
37731
37732         Use raise module consistently.
37733         * modules/fatal-signal (Depends-on): Add raise.
37734         * modules/sigprocmask (Depends-on): Likewise.
37735         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37736         * lib/sigprocmask.c (sigprocmask): Likewise.
37737         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37738         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37739
37740         Fix compliance bug in sigpending.
37741         * lib/sigprocmask.c (sigpending): Return pending array via
37742         parameter, not return value.
37743
37744 2008-06-14  Eric Blake  <ebb9@byu.net>
37745
37746         Improve obstack-printf test code.
37747         * tests/test-obstack-printf.c (test_function): Fix comment, and
37748         simplify usage of obstack_* in macros.  Add a test for coverage.
37749         Reported by Bruno Haible.
37750
37751 2008-06-14  Bruno Haible  <bruno@clisp.org>
37752
37753         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37754         array size as a constant, not as a const variable.
37755         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37756         AC_USE_SYSTEM_EXTENSIONS.
37757         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37758         Test whether the obstack_printf function actually exists.
37759         * modules/obstack-printf (Depends-on): Add extensions.
37760         (Include): Remove obstack.h.
37761         * modules/obstack-printf-posix (Depends-on): Add extensions.
37762         (Include): Remove obstack.h.
37763
37764 2008-06-13  Eric Blake  <ebb9@byu.net>
37765
37766         Add obstack-printf and obstack-printf-posix modules.
37767         * modules/obstack-printf: New file.
37768         * modules/obstack-printf-posix: Likewise.
37769         * MODULES.html.sh (Misc): Mention them.
37770         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37771         Likewise.
37772         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37773         Likewise.
37774         * modules/stdio (Makefile.am): Accomodate new modules.
37775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37776         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37777         Declare.
37778         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37779         functions.
37780         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37781         (gl_REPLACE_OBSTACK_PRINTF): New macros
37782         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37783         * tests/test-obstack-printf.c: New file.
37784         * modules/obstack-printf-tests: Likewise.
37785         * modules/obstack-printf-posix-tests: Likewise.
37786
37787 2008-06-11  Bruno Haible  <bruno@clisp.org>
37788
37789         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37790         * lib/open.c: Include errno.h.
37791         (open): Fail when attempting to write to a file that has a trailing
37792         slash.
37793         * tests/test-open.c (main): Test against trailing slash bug.
37794         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37795
37796 2008-06-10  Bruno Haible  <bruno@clisp.org>
37797
37798         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37799         for $? to work inside the trap command, with various /bin/sh-s.
37800         * tests/test-vc-list-files-cvs.sh: Likewise.
37801
37802 2008-06-10  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/acl-internal.h: Don't include gettext.h here.
37805         * lib/set-mode-acl.c: Include gettext.h here.
37806         * lib/copy-acl.c: Likewise.
37807
37808 2008-06-10  Bruno Haible  <bruno@clisp.org>
37809
37810         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37811         * lib/wait-process.c (wait_subprocess): Likewise.
37812         * lib/execute.h (execute): Add termsigp argument.
37813         * lib/execute.c (execute): Likewise.
37814         * lib/csharpcomp.c (compile_csharp_using_pnet,
37815         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37816         * lib/csharpexec.c (execute_csharp_using_pnet,
37817         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37818         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37819         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37820         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37821         is_jikes_present): Update.
37822         * lib/javaexec.c (execute_java_class): Update.
37823         * lib/javaversion.c (execute_and_read_line): Update.
37824         * NEWS: Document the changes.
37825         Reported by Eric Blake.
37826
37827 2008-06-10  Eric Blake  <ebb9@byu.net>
37828
37829         Add missing include.
37830         * tests/test-strstr.c (includes): Add <signal.h>.
37831         * tests/test-strcasestr.c (includes): Likewise.
37832         * tests/test-memmem.c (includes): Likewise.
37833
37834 2008-06-10  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/wait-process.c (wait_subprocess): Add an assertion.
37837
37838 2008-06-10  Bruno Haible  <bruno@clisp.org>
37839
37840         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37841
37842 2008-06-10  Bruno Haible  <bruno@clisp.org>
37843
37844         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37845         using alarm().
37846         * tests/test-strcasestr.c (main): Likewise.
37847         * tests/test-strstr.c (main): Likewise.
37848
37849 2008-06-09  Bruno Haible  <bruno@clisp.org>
37850
37851         Work around the Solaris 10 ACE ACLs ABI change.
37852         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37853         declare if ACL_NO_TRIVIAL is present.
37854         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37855         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37856         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37857         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37858         define if ACL_NO_TRIVIAL is present.
37859         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37860         and use the current ABI.
37861         (file_has_acl): Use same #if condition as elsewhere.
37862         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37863         in use, and use the current ABI.
37864         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37865         Reported by Jim Meyering.
37866
37867 2008-06-09  Eric Blake  <ebb9@byu.net>
37868
37869         Work around environments that (stupidly) ignore SIGALRM.
37870         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37871         before using alarm().
37872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37874         Reported by Ian Beckwith <ianb@erislabs.net>.
37875
37876         Produce autobuild blurb earlier in log.
37877         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37878
37879 2008-06-09  Jim Meyering  <meyering@redhat.com>
37880         and OndÅ™ej Vašík  <ovasik@redhat.com>
37881
37882         utimens.c: correct kernel bug work-around
37883         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37884         failure, not success, and the kernel bug we're trying to work
37885         around affects not just the utimensat call, but also the fallback
37886         futimens call.
37887         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37888         not success.
37889         [HAVE_FUTIMENS]: Use the same work-around, here.
37890
37891 2008-06-09  Jim Meyering  <meyering@redhat.com>
37892
37893         add more guards around definition of ACE_-related code
37894         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37895         ALLOW and ACE_OWNER are also defined.
37896
37897 2008-06-08  Bruno Haible  <bruno@clisp.org>
37898
37899         * lib/acl-internal.h: Add me as co-author.
37900         * lib/file-has-acl.c: Likewise.
37901         * lib/set-mode-acl.c: Likewise.
37902         * lib/copy-acl.c: Likewise.
37903
37904 2008-06-08  Bruno Haible  <bruno@clisp.org>
37905
37906         Add support for AIX ACLs.
37907         * lib/acl-internal.h (acl_nontrivial): New declaration.
37908         * lib/file-has-acl.c (acl_nontrivial): New function.
37909         (file_has_acl): Add implementation using AIX 4 ACL API.
37910         * lib/set-mode-acl.c (qset_acl): Likewise.
37911         * lib/copy-acl.c (qcopy_acl): Likewise.
37912
37913 2008-06-08  Bruno Haible  <bruno@clisp.org>
37914
37915         Add support for HP-UX ACLs.
37916         * lib/acl-internal.h (acl_nontrivial): New declaration.
37917         * lib/file-has-acl.c (acl_nontrivial): New function.
37918         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37919         * lib/set-mode-acl.c (qset_acl): Likewise.
37920         * lib/copy-acl.c (qcopy_acl): Likewise.
37921
37922 2008-06-08  Bruno Haible  <bruno@clisp.org>
37923
37924         Add support for Cygwin ACLs.
37925         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37926         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37927         the chmod_or_fchmod call.
37928         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37929
37930 2008-06-08  Bruno Haible  <bruno@clisp.org>
37931
37932         Fix bug with setuid modes in Solaris 10+ code.
37933         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37934         succeeded, when the mode contains some special bits.
37935
37936 2008-06-08  Bruno Haible  <bruno@clisp.org>
37937
37938         Add support for Solaris 7..10 ACLs.
37939         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37940         declarations.
37941         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37942         functions.
37943         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37944         * lib/set-mode-acl.c (qset_acl): Likewise.
37945         * lib/copy-acl.c (qcopy_acl): Likewise.
37946
37947 2008-06-08  Bruno Haible  <bruno@clisp.org>
37948
37949         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37950         declaration.
37951         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37952         (acl_access_nontrivial): Remove MacOS X case.
37953         (file_has_acl): Use acl_extended_nontrivial.
37954         * lib/copy-acl.c (qcopy_acl): Likewise.
37955
37956 2008-06-08  Bruno Haible  <bruno@clisp.org>
37957
37958         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37959
37960 2008-06-08  Jim Meyering  <meyering@redhat.com>
37961
37962         * modules/acl (Maintainer): Add Bruno Haible.
37963
37964 2008-06-07  Bruno Haible  <bruno@clisp.org>
37965
37966         Improve support for Tru64 ACLs.
37967         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37968         ACL on OSF/1.
37969
37970 2008-06-07  Bruno Haible  <bruno@clisp.org>
37971
37972         Add support for MacOS X ACLs.
37973         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37974         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37975         * lib/set-mode-acl.c (qset_acl): Likewise.
37976         * lib/copy-acl.c (qcopy_acl): Likewise.
37977
37978 2008-06-07  Bruno Haible  <bruno@clisp.org>
37979
37980         Fix memory leak introduced on 2008-05-22.
37981         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37982         use.
37983
37984 2008-06-07  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37987         to construct an empty ACL.
37988
37989 2008-06-07  Bruno Haible  <bruno@clisp.org>
37990
37991         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37992         precisely.
37993         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37994
37995 2008-06-07  Bruno Haible  <bruno@clisp.org>
37996
37997         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37998         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37999
38000 2008-06-07  Bruno Haible  <bruno@clisp.org>
38001
38002         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38003         regardless of POSIX.
38004         * doc/posix-functions/_longjmp.texi: Likewise.
38005         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38006         SystemV platform in this case.
38007
38008 2008-06-06  Eric Blake  <ebb9@byu.net>
38009
38010         Document abort() bugs.
38011         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38012
38013         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38014         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38015         sigsetjmp.
38016         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38017         siglongjmp, but only as a macro.
38018         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38019         is obsolete.
38020         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38021
38022         Tweak documentation to cover cygwin argz bugs.
38023         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38024         argz bug fix; no code change needed since no cygwin releases
38025         occurred between the last fix and the bug being tested.
38026         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38027         module and recently fixed cygwin bugs.
38028         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38029         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38030         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38031         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38032         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38033         Likewise.
38034         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38035         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38036         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38037         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38038         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38039         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38040         Likewise.
38041
38042         Avoid gcc warning on cygwin.
38043         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38044         !ACL_NO_TRIVIAL]: Avoid unused variable.
38045
38046 2008-06-05  Eric Blake  <ebb9@byu.net>
38047
38048         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38049         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38050         git-version-gen fails to come up with a version.
38051         Reported by Simon Josefsson.
38052
38053 2008-06-05  Jim Meyering  <meyering@redhat.com>
38054             Paul Eggert  <eggert@cs.ucla.edu>
38055
38056         utimens.c: work around a probable Linux kernel bug
38057         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38058         appears to be a kernel bug that causes utimensat to return 280
38059         instead of 0, indicating success.
38060
38061 2008-06-04  Bruno Haible  <bruno@clisp.org>
38062
38063         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38064         2008-06-01 commit.
38065
38066 2008-06-04  Bruno Haible  <bruno@clisp.org>
38067
38068         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38069         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38070         (file_has_acl): Use it. Save errno afterwards.
38071         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38072
38073 2008-06-03  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38076         draft code. Simplify #ifs.
38077         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38078         Put Solaris code after POSIX-draft code. Fix comments regarding
38079         Solaris 10, HP-UX. Mention Cygwin.
38080         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38081
38082 2008-06-03  Eric Blake  <ebb9@byu.net>
38083
38084         Provide fallback for older kernels.
38085         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38086         Provide runtime fallback if kernel lacks support.
38087         Reported by Mike Frysinger.
38088
38089 2008-06-02  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38092         it exists.
38093
38094 2008-06-02  Bruno Haible  <bruno@clisp.org>
38095
38096         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38097         * lib/copy-acl.c (qcopy_acl): Update comment.
38098
38099 2008-06-02  Bruno Haible  <bruno@clisp.org>
38100
38101         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38102         like ACL APIs.
38103
38104 2008-06-02  Bruno Haible  <bruno@clisp.org>
38105
38106         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38107         * tests/test-set-mode-acl.sh: Likewise.
38108         * tests/test-copy-acl.sh: Likewise.
38109         * tests/test-copy-file.sh: Likewise.
38110
38111 2008-06-02  Bruno Haible  <bruno@clisp.org>
38112
38113         * tests/test-file-has-acl.sh: Remove unused code.
38114
38115 2008-06-01  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38118         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38119         messages.
38120         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38121
38122 2008-06-01  Bruno Haible  <bruno@clisp.org>
38123
38124         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38125         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38126         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38127         APIs.
38128         * modules/acl-tests (configure.ac): Remove tests now contained in
38129         m4/acl.m4.
38130
38131 2008-06-02  Jim Meyering  <meyering@redhat.com>
38132
38133         announce-gen: use a better key-server host name
38134         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38135         it may be more consistently reliable.  Suggested by Werner Koch
38136         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38137
38138 2008-06-01  Bruno Haible  <bruno@clisp.org>
38139
38140         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38141         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38142
38143 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38144
38145         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38146
38147 2008-06-01  Bruno Haible  <bruno@clisp.org>
38148
38149         New ACL tests.
38150         * tests/test-file-has-acl.sh: New file.
38151         * tests/test-file-has-acl.c: New file.
38152         * tests/test-set-mode-acl.sh: New file.
38153         * tests/test-set-mode-acl.c: New file.
38154         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38155         * tests/test-copy-acl.c: New file.
38156         * modules/acl-tests: New file, based on modules/copy-file-tests.
38157         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38158         (Depends-on): Add acl-tests.
38159         (configure.ac): Remove checks.
38160         (Makefile.am): Don't create test-sameacls program here any more.
38161
38162 2008-06-01  Bruno Haible  <bruno@clisp.org>
38163
38164         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38165         * tests/test-sameacls.c: Include progname.h.
38166         (main): Invoke set_program_name. Portability fixes for MacOS X,
38167         Solaris, HP-UX.
38168
38169 2008-06-01  Bruno Haible  <bruno@clisp.org>
38170
38171         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38172         function.
38173         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38174
38175 2008-06-01  Bruno Haible  <bruno@clisp.org>
38176
38177         * modules/rpmatch (Depends-on): Add strdup.
38178
38179 2008-06-01  Bruno Haible  <bruno@clisp.org>
38180
38181         * lib/pipe.c: Include unistd-safer.h.
38182         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38183         * modules/pipe (Depends-on): Add unistd-safer.
38184
38185 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38186
38187         * modules/autobuild (configure.ac): Call AB_INIT.
38188
38189 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38190
38191         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38192         Suggested by Bruno Haible <bruno@clisp.org>.
38193
38194 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38195
38196         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38197         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38198         <bruno@clisp.org>.
38199
38200 2008-05-29  Eric Blake  <ebb9@byu.net>
38201
38202         Prefer new POSIX 200x interfaces over futimesat.
38203         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38204         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38205         when available.
38206         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38207
38208 2008-05-28  Bruno Haible  <bruno@clisp.org>
38209
38210         * modules/stpcpy (License): Change to LGPLv2+.
38211         Requested by David Lutterkort <dlutter@redhat.com>.
38212
38213 2008-05-27  Bruno Haible  <bruno@clisp.org>
38214
38215         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38216         current mingw.
38217         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38218
38219 2008-05-27  Bruno Haible  <bruno@clisp.org>
38220
38221         * modules/iconv_open (Link): New section, from module 'iconv'.
38222         * modules/striconv (Link): Likewise.
38223         * modules/striconveh (Link): Likewise.
38224         * modules/xstriconv (Link): Likewise.
38225         * modules/unicodeio (Link): Likewise.
38226         * modules/propername (Link): Likewise.
38227         Reported by Jim Meyering.
38228
38229 2008-05-26  Jim Meyering  <meyering@redhat.com>
38230
38231         sha256: do not artificially restrict buffer length to be < 2^32
38232         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38233         uint32_t to size_t.
38234         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38235         to match.
38236
38237         avoid unaligned access errors, e.g., on sparc
38238         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38239         direct access through a possibly-unaligned uint64* pointer.
38240         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38241         direct access through a possibly-unaligned uint32* pointer.
38242         Prompted by this patch from Tom "spot" Callaway:
38243         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38244
38245         sha512.c: fix typo in comment
38246         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38247
38248 2008-05-25  Bruno Haible  <bruno@clisp.org>
38249
38250         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38251         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38252         (Makefile.am): Update lib_SOURCES.
38253
38254 2008-05-25  Bruno Haible  <bruno@clisp.org>
38255
38256         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38257
38258 2008-05-25  Jim Meyering  <meyering@redhat.com>
38259
38260         useless-if-before-free: freed expr may have white-space differences
38261         * build-aux/useless-if-before-free: Recognize cases in which the
38262         freed expression differs from the tested one in embedded white
38263         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38264         $1 was used, so we can't make any regexp shy.  Improved tests now
38265         detect this.
38266
38267         useless-if-before-free: accept white space in the expression.
38268         * build-aux/useless-if-before-free: For now, any white space
38269         in the expression must be identical in the free argument.
38270
38271         useless-if-before-free: efficiency tweak
38272         * build-aux/useless-if-before-free: Make the expression-matching
38273         regexp "shy".
38274         Make the *outer* regexp shy, not the expr-matching one.
38275
38276         update code-in-comment to accept cast of free arg
38277         * build-aux/useless-if-before-free: Update regexp.
38278
38279 2008-05-25  Bruno Haible  <bruno@clisp.org>
38280
38281         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38282         * modules/copy-file-tests (Files, Makefile.am): Update.
38283         * tests/test-copy-file.c (func_test_copy): Update.
38284
38285 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38286
38287         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38288
38289 2008-05-23  Bruno Haible  <bruno@clisp.org>
38290
38291         Improve support for ACLs on OSF/1.
38292         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38293         Remove fallback for unknown flavors of ACLs.
38294
38295 2008-05-22  Bruno Haible  <bruno@clisp.org>
38296
38297         Add support for ACLs on OSF/1.
38298         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38299         replacements.
38300         (acl_free_text): New macro fallback.
38301         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38302         acl_free.
38303         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38304         acl_free_text function. Require AC_C_INLINE.
38305
38306 2008-05-22  Bruno Haible  <bruno@clisp.org>
38307
38308         Make copy_acl work on MacOS X 10.5.
38309         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38310         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38311         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38312         If MODE_INSIDE_ACL, don't assume that every system has the same text
38313         representation for ACLs as FreeBSD.
38314         * lib/copy-acl.c (copy_acl): Add support for platforms with
38315         !MODE_INSIDE_ACL.
38316         * lib/file-has-acl.c (file_has_acl): Likewise.
38317         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38318         FreeBSD, MacOS X, or IRIX, respectively.
38319
38320 2008-05-22  Bruno Haible  <bruno@clisp.org>
38321
38322         * lib/acl.h: Don't include <sys/acl.h>.
38323         (GETACLCNT): Move fallback to lib/acl-internal.h.
38324         * lib/acl-internal.h: Include <sys/acl.h> here.
38325         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38326
38327 2008-05-22  Bruno Haible  <bruno@clisp.org>
38328
38329         Split off copy_acl function to separate file.
38330         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38331         * lib/acl.c (copy_acl): Moved function to separate file.
38332         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38333         * modules/acl (Files): Add lib/copy-acl.c.
38334         (Makefiles.am): Augment lib_SOURCES.
38335
38336 2008-05-22  Bruno Haible  <bruno@clisp.org>
38337
38338         * modules/copy-file-tests: New file.
38339         * tests/test-copy-file.sh: New file.
38340         * tests/test-copy-file.c: New file.
38341         * tests/test-copy-file-sameacls.c: New file.
38342
38343 2008-05-22  Eric Blake  <ebb9@byu.net>
38344
38345         Avoid gcc warning.
38346         * tests/test-memcmp.c (main): Pass NULL indirectly.
38347
38348 2008-05-21  Bruno Haible  <bruno@clisp.org>
38349
38350         Add reference doc about ACLs.
38351         * doc/acl-resources.txt: New file.
38352         * doc/acl-cygwin.txt: New file.
38353
38354 2008-05-21  Bruno Haible  <bruno@clisp.org>
38355
38356         Avoid one more warning from gcc.
38357         * lib/vasnprintf.c (IF_LINT): Update comments.
38358         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38359
38360 2008-05-21  Jim Meyering  <meyering@redhat.com>
38361
38362         avoid a warning from gcc
38363         * lib/vasnprintf.c (IF_LINT): Define.
38364         (scale10_round_decimal_long_double):
38365         Use it to avoid a "may be used uninitialized" warning.
38366         (scale10_round_decimal_double): Likewise.
38367
38368 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38369
38370         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38371         declared.
38372
38373 2008-05-20  Bruno Haible  <bruno@clisp.org>
38374
38375         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38376         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38377
38378 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38379
38380         * modules/memcmp-tests: New file.
38381         * tests/test-memcmp.c: New file.
38382
38383 2008-05-19  Bruno Haible  <bruno@clisp.org>
38384
38385         * modules/propername (Notice, configure.ac): Put quoted "..." into
38386         --keyword option.
38387         * lib/propername.h: Update comments accordingly.
38388         Reported by Eric Blake.
38389
38390 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38391
38392         * modules/getpass-gnu (Depends-on): Add fseeko.
38393
38394 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38395
38396         * modules/base64-tests: New file.
38397
38398 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38399
38400         * lib/base64.c (base64_decode_ctx): If a decode context structure
38401         was passed in use it to ignore newlines.  If a context structure
38402         was _not_ passed in, continue to treat newlines as garbage (this
38403         is the historical behavior).  Formerly base64_decode.
38404         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38405         takes a decode context structure.
38406         * lib/base64.h (base64_decode): Macro for four-argument calls.
38407         (base64_decode_alloc): Likewise.
38408         * lib/base64.c (base64_decode_ctx): If a decode context structure
38409         was passed in use it to ignore newlines.  If a context structure
38410         was _not_ passed in, continue to treat newlines as garbage (this
38411         is the historical behavior).  Formerly base64_decode.
38412         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38413         takes a decode context structure.
38414         * lib/base64.h (base64_decode): Macro for four-argument calls.
38415         (base64_decode_alloc): Likewise.
38416
38417 2008-05-19  Jim Meyering  <meyering@redhat.com>
38418
38419         avoid a warning from gcc
38420         * lib/trim.c (IF_LINT): Define.
38421         (trim2): Use it to avoid a "may be used uninitialized" warning.
38422
38423         Fix doc typo.
38424         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38425
38426 2008-05-19  Bruno Haible  <bruno@clisp.org>
38427
38428         * doc/glibc-functions/getpass.texi: Document limits of other
38429         implementations.
38430
38431 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38432             Bruno Haible <bruno@clisp.org>
38433
38434         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38435
38436 2008-05-18  Bruno Haible  <bruno@clisp.org>
38437
38438         * modules/propername: New file, from GNU gettext.
38439         * lib/propername.h: New file, from GNU gettext.
38440         * lib/propername.c: New file, from GNU gettext.
38441         * MODULES.html.sh (Internationalization functions): Add propername.
38442
38443 2008-05-16  Jim Meyering  <meyering@redhat.com>
38444             Bruno Haible  <bruno@clisp.org>
38445
38446         Avoid some warnings from "gcc -Wshadow".
38447         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38448
38449 2008-05-15  Eric Blake  <ebb9@byu.net>
38450
38451         Extend previous patch to cygwin 1.7.0.
38452         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38453         fast implementation in cygwin >= 1.7.0.
38454         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38456
38457 2008-05-15  Bruno Haible  <bruno@clisp.org>
38458
38459         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38460         implementation in glibc >= 2.9.
38461         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38462         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38463
38464 2008-05-15  Bruno Haible  <bruno@clisp.org>
38465
38466         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38467         (Unicode string functions): Add unilbrk/*.
38468         Reported by Karl Berry.
38469
38470 2008-05-15  Eric Blake  <ebb9@byu.net>
38471
38472         Fix violation of <stdbool.h> replacement in regex.
38473         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38474         * lib/regexec.c (re_search_internal): Likewise.
38475         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38476
38477 2008-05-15  Jim Meyering  <meyering@redhat.com>
38478
38479         avoid distracting test output when git or cvs is not found
38480         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38481         * tests/test-vc-list-files-git.sh: Likewise.
38482
38483 2008-05-15  Eric Blake  <ebb9@byu.net>
38484
38485         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38486         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38487         glibc version.
38488         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38489         * doc/posix-functions/strstr.texi (strstr): Likewise.
38490         * lib/str-two-way.h (MAX): Sychronize with glibc.
38491
38492 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38493
38494         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38495         opr.ctx_type.
38496         (calc_first): Initialize constraint field.
38497         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38498         Fix grammar.
38499         (duplicate_node): Merge constraint field for all node types.
38500         (calc_eclosure_iter): Look at constraint field for all node types.
38501         * lib/regex_internal.c (create_cd_newstate): Don't look at
38502         opr.ctx_type.
38503
38504 2008-05-14  Bruno Haible  <bruno@clisp.org>
38505
38506         Help GCC to do better code generation.
38507         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38508         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38509         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38510         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38511         Declare with attribute 'malloc' if supported.
38512
38513 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38514
38515         use "echo STR|wc -c" rather than unportable "expr length STR"
38516         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38517         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38518
38519 2008-05-14  Jim Meyering  <meyering@redhat.com>
38520
38521         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38522         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38523         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38524         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38525         via Collin Lasse.
38526
38527 2008-05-14  Eric Blake  <ebb9@byu.net>
38528
38529         Avoid quadratic growth in gl_LIBSOURCES.
38530         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38531         Suggested by Bruno Haible.
38532
38533         Test xmemdup0.
38534         * modules/xmemdup0-tests: New file.
38535         * tests/test-xmemdup0.c: Likewise.
38536
38537 2008-05-13  Eric Blake  <ebb9@byu.net>
38538
38539         Split xmemdup0 into its own module.
38540         * modules/xmemdup0: New file.
38541         * lib/xmemdup0.h: Likewise.
38542         * lib/xmemdup0.c: Likewise.
38543         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38544         * lib/xalloc.h (xmemdup0): Remove.
38545         * lib/xmalloc.c (xmemdup0): Likewise.
38546
38547 2008-05-13  Eric Blake  <ebb9@byu.net>
38548             Bruno Haible  <bruno@clisp.org>
38549
38550         Reduce number of forks required during autoconf.
38551         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38552         and gl_LIBSOURCES_DIR.
38553         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38554         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38555         m4_syscmd per file.
38556         <m4_foreach_w>: Move...
38557         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38558
38559 2008-05-13  Eric Blake  <ebb9@byu.net>
38560
38561         * gnulib-tool: Fix various comment typos.
38562
38563 2008-05-12  Bruno Haible  <bruno@clisp.org>
38564
38565         Tailor the linebreaking algorithm.
38566         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38567
38568 2008-05-12  Bruno Haible  <bruno@clisp.org>
38569
38570         Update to Unicode 5.0.0.
38571         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38572         LBP_JV, LBP_JT. Redistribute values.
38573         (unilbrk_table): Change size.
38574         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38575         Unicode TR#14 rev. 22.
38576         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38577         LBP_JV, LBP_JT. Redistribute values.
38578         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38579         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38580         Update.
38581         * lib/unilbrk/lbrkprop1.h: Regenerated.
38582         * lib/unilbrk/lbrkprop2.h: Regenerated.
38583         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38584         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38585         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38586         Likewise.
38587         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38588         Likewise.
38589         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38590         result.
38591         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38592         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38593         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38594         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38595         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38596         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38597
38598 2008-05-11  Bruno Haible  <bruno@clisp.org>
38599
38600         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38601
38602 2008-05-11  Bruno Haible  <bruno@clisp.org>
38603
38604         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38605         * modules/unilbrk/gen-lbrk: New file.
38606
38607 2008-05-11  Bruno Haible  <bruno@clisp.org>
38608
38609         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38610         * m4/sha512.m4 (gl_SHA512): Likewise.
38611
38612 2008-05-11  Jim Meyering  <meyering@redhat.com>
38613
38614         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38615         * modules/crypto/sha256: New file.
38616         * modules/crypto/sha512: Likewise.
38617         * lib/sha256.c: Likewise.
38618         * lib/sha256.h: Likewise.
38619         * lib/sha512.c: Likewise.
38620         * lib/sha512.h: Likewise.
38621         * lib/u64.h: Likewise.
38622         * m4/sha256.m4: Likewise.
38623         * m4/sha512.m4: Likewise.
38624         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38625
38626 2008-05-10  Bruno Haible  <bruno@clisp.org>
38627
38628         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38629         (Input/Output <stdio.h>): Add xprintf.
38630         (Signal handling <signal.h>): Add strsignal.
38631         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38632         (Core language properties): Add func.
38633         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38634         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38635         strings.
38636         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38637         (Input/output): New section.
38638         (File system functions): Add openat-die, stat-macros.
38639         (Networking functions): Add sockets.
38640         (Unicode string functions): Add unictype/*.
38641         (Support for building libraries and executables): Add gperf.
38642         (Support for building documentation): Add agpl-3.0.
38643         (Misc): Add nocrash.
38644
38645 2008-05-10  Bruno Haible  <bruno@clisp.org>
38646
38647         * modules/unictype/gen-ctype: New file.
38648
38649 2008-05-10  Jim Meyering  <meyering@redhat.com>
38650
38651         Make chdir-safer.c more efficient on a system with no symlinks.
38652         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38653         also if ELOOP is zero.  Suggested by Bruno Haible.
38654
38655         Make chdir-safer.c slightly safer.
38656         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38657         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38658
38659         Avoid compile failure on systems without ELOOP (like mingw).
38660         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38661         Reported by Bruno Haible.
38662
38663 2008-05-10  Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38666         (is_utf8_encoding): Use a case-insensitive comparison.
38667         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38668         streq.
38669
38670 2008-05-10  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38673         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38674         * lib/unilbrk/ulc-common.h (iconv_string_length,
38675         iconv_string_keeping_offsets): Remove declarations.
38676         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38677         Don't include <iconv.h>, streq.h, xsize.h.
38678         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38679         conversion.
38680         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38681         <iconv.h>, streq.h, xsize.h.
38682         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38683         conversion.
38684         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38685         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38686         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38687         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38688
38689 2008-05-10  Bruno Haible  <bruno@clisp.org>
38690
38691         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38692         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38693
38694         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38695         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38696
38697         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38698         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38699
38700         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38701         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38702
38703         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38704         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38705
38706         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38707         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38708
38709         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38710         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38711
38712         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38713         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38714
38715 2008-05-10  Bruno Haible  <bruno@clisp.org>
38716
38717         Split up 'linebreak' module.
38718         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38719         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38720         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38721         modifications.
38722         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38723         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38724         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38725         lib/linebreak.c.
38726         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38727         lib/linebreak.c.
38728         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38729         lib/linebreak.c.
38730         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38731         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38732         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38733         lib/linebreak.c.
38734         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38735         lib/linebreak.c.
38736         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38737         lib/linebreak.c.
38738         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38739         lib/linebreak.c.
38740         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38741         lib/linebreak.c.
38742         * modules/unilbrk/base: New file.
38743         * modules/unilbrk/tables: New file.
38744         * modules/unilbrk/u8-possible-linebreaks: New file.
38745         * modules/unilbrk/u16-possible-linebreaks: New file.
38746         * modules/unilbrk/u32-possible-linebreaks: New file.
38747         * modules/unilbrk/ulc-common: New file.
38748         * modules/unilbrk/ulc-possible-linebreaks: New file.
38749         * modules/unilbrk/u8-width-linebreaks: New file.
38750         * modules/unilbrk/u16-width-linebreaks: New file.
38751         * modules/unilbrk/u32-width-linebreaks: New file.
38752         * modules/unilbrk/ulc-width-linebreaks: New file.
38753         * lib/linebreak.h: Remove file.
38754         * lib/linebreak.c: Remove file.
38755         * m4/linebreak.m4: Remove file.
38756         * modules/linebreak: Remove file.
38757         * NEWS: Mention the changes.
38758
38759 2008-05-09  Eric Blake  <ebb9@byu.net>
38760
38761         Add xmemdup0.
38762         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38763         implementation.
38764         * lib/xmalloc.c (xmemdup0): New C implementation.
38765
38766 2008-05-08  Bruno Haible  <bruno@clisp.org>
38767
38768         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38769
38770 2008-05-07  Eric Blake  <ebb9@byu.net>
38771
38772         Support cross-compilation of <wctype.h>.
38773         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38774         AC_CACHE_CHECK.
38775
38776 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38777
38778         * build-aux/vc-list-files: Add support for bzr.
38779
38780 2008-05-03  Jim Meyering  <meyering@redhat.com>
38781
38782         avoid failed assertion with tight malloc
38783         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38784
38785 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38786
38787         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38788         are needed from arpa/inet.h.
38789         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38790         Reported by Bruno Haible.
38791
38792 2008-05-02  Jim Meyering  <meyering@redhat.com>
38793
38794         avoid compilation error on FreeBSD 6
38795         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38796
38797 2008-05-01  Jim Meyering  <meyering@redhat.com>
38798
38799         useless-if-before-free: correct --help's exit status description
38800         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38801         for one or more matches, etc.  Reported by Bruno Haible.
38802
38803         vc-list-files: make the stand-alone gnulib test work
38804         * modules/vc-list-files-tests (configure.ac):
38805         Define and AC_SUBST abs_aux_dir.
38806         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38807         $(abs_top_srcdir) to each script and having each of them
38808         duplicate the work of setting PATH, set PATH here, using
38809         the new variable, abs_aux_dir instead.
38810         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38811         * tests/test-vc-list-files-git.sh: Likewise.
38812         Reported by Bruno Haible.
38813
38814 2008-05-01  Bruno Haible  <bruno@clisp.org>
38815
38816         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38817         reallocation. Rename 'done' to 'found_delimiter'.
38818
38819 2008-05-01  Jim Meyering  <meyering@redhat.com>
38820
38821         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38822         * build-aux/vc-list-files: Use `...`, not $(...).
38823
38824 2008-04-30  Jim Meyering  <meyering@redhat.com>
38825
38826         add tests for vc-list-files
38827         * modules/vc-list-files-tests: New module.
38828         * tests/test-vc-list-files-cvs.sh: New file.
38829         * tests/test-vc-list-files-git.sh: New file.
38830
38831         avoid a warning from gcc
38832         * lib/getndelim2.c (IF_LINT): Define.
38833         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38834
38835         vc-list-files: work properly with build-aux/cvsu, too
38836         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38837         to all cvs-based clauses.
38838
38839         vc-list-files: work properly in the CVS+awk case, too
38840         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38841
38842         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38843         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38844         take more than one file argument, so .  Add quotes, just in case $dir
38845         ever contains a shell meta-character.  Prompted by Soren Hansen in
38846         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38847
38848 2008-04-29  Eric Blake  <ebb9@byu.net>
38849
38850         Optimize getndelim2 to use block operations when possible.
38851         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38852         freadseek, and memchr2.
38853         * lib/getndelim2.c (getndelim2): Use them for block reads.
38854
38855 2008-04-29  Bruno Haible  <bruno@clisp.org>
38856
38857         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38858         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38859         * modules/inet_ntop (Depends-on): Add extensions.
38860         * modules/inet_pton (Depends-on): Likewise.
38861         Reported by Simon Josefsson.
38862
38863 2008-04-29  Jim Meyering  <meyering@redhat.com>
38864
38865         When the is more than one match in a block, match all of them.
38866         * build-aux/useless-if-before-free: Iterate through each block
38867         until there are no more matches.
38868
38869         Fix broken useless-if-before-free script.
38870         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38871         the expression to match cast of argument to free-like function.
38872
38873 2008-04-29  Eric Blake  <ebb9@byu.net>
38874
38875         Use new header.
38876         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38877
38878 2008-04-29  Jim Meyering  <meyering@redhat.com>
38879
38880         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38881         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38882         by gnulib to exist and to declare e.g., inet_ntop.
38883         Don't include "inet_ntop.h", now removed.
38884
38885         * m4/arpa_inet_h.m4: Remove trailing blanks.
38886
38887 2008-04-29  Eric Blake  <ebb9@byu.net>
38888
38889         Silence valgrind on safe reads beyond potential array bounds.
38890         * lib/rawmemchr.valgrind: New file.
38891         * lib/strchrnul.valgrind: Likewise.
38892         * modules/rawmemchr (Files): Distribute new file.
38893         * modules/strchrnul (Files): Likewise.
38894         Suggested by Bruno Haible.
38895
38896 2008-04-29  Bruno Haible  <bruno@clisp.org>
38897
38898         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38899         (inet_ntop, inet_pton): Change portability warning's wording.
38900         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38901         Invoke gl_CHECK_NEXT_HEADERS.
38902         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38903         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38904         set ARPA_INET_H.
38905         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38906         * modules/arpa_inet (Description): No longer only for systems that
38907         lack it.
38908         (Depends-on): Add include_next.
38909         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38910         HAVE_ARPA_INET_H.
38911
38912 2008-04-29  Jim Meyering  <meyering@redhat.com>
38913
38914         * modules/mkdir (License): Re-license as LGPLv2+.
38915
38916 2008-04-29  Bruno Haible  <bruno@clisp.org>
38917
38918         * modules/rawmemchr (Maintainer): Set to Eric.
38919         * modules/strchrnul (Maintainer): Likewise.
38920
38921 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38922
38923         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38924         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38925
38926         * modules/arpa_inet (arpa/inet.h): Use them.
38927
38928 2008-04-28  Eric Blake  <ebb9@byu.net>
38929
38930         Test getndelim2.
38931         * modules/getndelim2-tests: New file.
38932         * tests/test-getndelim2.c: Likewise.
38933         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38934         stream.
38935         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38936
38937         * MODULES.html.sh: Document new module.
38938
38939 2008-04-20  Bruno Haible  <bruno@clisp.org>
38940
38941         * lib/c-stack.c (die): Use raise.
38942         * modules/c-stack (Depends-on): Add raise.
38943
38944 2008-04-28  Bruno Haible  <bruno@clisp.org>
38945
38946         Expect rpmatch to be declared.
38947         * lib/yesno.c (rpmatch): Remove declaration.
38948
38949         Declare rpmatch.
38950         * lib/stdlib.in.h (rpmatch): New declaration.
38951         * lib/rpmatch.c: Include <stdlib.h> first.
38952         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38953         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38955         HAVE_RPMATCH.
38956         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38957         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38958         (Include): Set to <stdlib.h>.
38959         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38960         HAVE_RPMATCH.
38961         * NEWS: Document the change.
38962
38963 2008-04-28  Bruno Haible  <bruno@clisp.org>
38964
38965         Change rpmatch to use nl_langinfo when appropriate.
38966         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38967         (N_): New macro.
38968         (localized_pattern): New function/macro.
38969         (try): Remove match, nomatch arguments. Copy the pattern into safe
38970         memory before caching it.
38971         (rpmatch): Use localized_pattern. Add translator comments.
38972         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38973         Suggested by Eric Blake.
38974         * modules/rpmatch (Depends-on): Add stdbool.
38975
38976 2008-04-28  Eric Blake  <ebb9@byu.net>
38977
38978         Add rawmemchr module, matching glibc.
38979         * modules/string (Makefile.am): New indicator.
38980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38981         * lib/string.in.h (rawmemchr): Declare when appropriate.
38982         * modules/rawmemchr: New file.
38983         * m4/rawmemchr.m4: Likewise.
38984         * lib/rawmemchr.c: Likewise.
38985         * modules/rawmemchr-tests: Likewise.
38986         * tests/test-rawmemchr.c: Likewise.
38987         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38988         module.
38989         * modules/strchrnul (Depends-on): Add rawmemchr.
38990         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38991
38992         Whitespace cleanup.
38993         * tests/test-strchrnul.c: Reindent.
38994         * lib/strchrnul.c: Likewise.
38995
38996         Optimize and test strchrnul.
38997         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38998         * modules/strchrnul-tests: New file.
38999         * tests/test-strchrnul.c: Likewise.
39000
39001         Remove intprops dependency.
39002         * modules/memchr (Depends-on): Remove intprops.
39003         * modules/memrchr (Depends-on): Likewise.
39004         * modules/memchr2 (Depends-on): Likewise.
39005         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39006         * lib/memrchr.c (__memrchr): Likewise.
39007         * lib/memrchr2.c (memchr2): Likewise.
39008         Reported by Simon Josefsson.
39009
39010 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39011
39012         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39013         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39014
39015 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39016
39017         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39018
39019         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39020
39021         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39022
39023         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39024         declarations.
39025         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39026
39027         * m4/inet_pton.m4: Don't check for header files.
39028
39029         * m4/inet_ntop.m4: Don't check for header files.
39030
39031 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39032
39033         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39034         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39035         trigger for cygwin).
39036         Reported by Bruno Haible  <bruno@clisp.org>.
39037
39038 2008-04-28  Bruno Haible  <bruno@clisp.org>
39039
39040         * doc/posix-functions/strdup.texi: Mention mingw problem.
39041
39042 2008-04-27  Bruno Haible  <bruno@clisp.org>
39043
39044         * modules/stat-time-tests (Depends-on): Add sleep.
39045         * tests/test-stat-time.c (force_unlink): New function.
39046         (cleanup): Use it.
39047         (test_mtime): Remove the ctime related tests.
39048         (test_ctime): New function, containing the ctime related tests.
39049         (main): Call test_ctime, except on native Windows platforms.
39050
39051 2008-04-27  Bruno Haible  <bruno@clisp.org>
39052
39053         * lib/rpmatch.c (rpmatch): Add some comments.
39054         Reported by James Youngman <jay@gnu.org>.
39055
39056 2008-04-27  Bruno Haible  <bruno@clisp.org>
39057
39058         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39059         quiet NaNs.
39060
39061 2008-04-27  Bruno Haible  <bruno@clisp.org>
39062
39063         Make test-yesno.sh work on mingw.
39064         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39065         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39066         (main): Set stdin to binary mode.
39067         * modules/yesno-tests (Depends-on): Add binary-io.
39068
39069 2008-04-27  Bruno Haible  <bruno@clisp.org>
39070
39071         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39072         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39073         argument that lie outside the IEEE 854 domain.
39074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39075         (gl_ISFINITE): Use it.
39076         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39077
39078 2008-04-27  Bruno Haible  <bruno@clisp.org>
39079
39080         Allow local renaming in config.h.
39081         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39082
39083 2008-04-27  Bruno Haible  <bruno@clisp.org>
39084
39085         * lib/memchr.c (__memchr): Change type of 'i'.
39086         * lib/memchr2.c (memchr2): Likewise.
39087
39088 2008-04-26  Eric Blake  <ebb9@byu.net>
39089         and Bruno Haible  <bruno@clisp.org>
39090
39091         Optimize and test memrchr.
39092         * modules/memrchr (Depends-on): Add intprops.
39093         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39094         * modules/memrchr-tests: New file.
39095         * tests/test-memrchr.c: New file.
39096
39097 2008-04-26  Bruno Haible  <bruno@clisp.org>
39098
39099         Add tentative support for DragonFly BSD.
39100         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39101         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39102         fp.
39103         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39104         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39105         * lib/fpurge.c (fpurge): Likewise.
39106         * lib/freadable.c (freaadable): Likewise.
39107         * lib/freadahead.c (freadahead): Likewise.
39108         * lib/freading.c (freading): Likewise.
39109         * lib/freadptr.c (freadptr): Likewise.
39110         * lib/freadseek.c (freadptrinc): Likewise.
39111         * lib/fseeko.c (fseeko): Likewise.
39112         * lib/fseterr.c (fseterr): Likewise.
39113         * lib/fwritable.c (fwritable): Likewise.
39114         * lib/fwriting.c (fwriting): Likewise.
39115
39116 2008-04-26  Bruno Haible  <bruno@clisp.org>
39117
39118         * lib/stdio-impl.h: New file.
39119         * lib/fbufmode.c: Include stdio-impl.h.
39120         (fbufmode): Use fp_, remove redundant #defines.
39121         * lib/fflush.c: Include stdio-impl.h.
39122         (clear_ungetc_buffer): Remove redundant #defines.
39123         * lib/fpurge.c: Include stdio-impl.h.
39124         (fpurge): Remove redundant #defines.
39125         * lib/freadable.c: Include stdio-impl.h.
39126         (freadable): Remove redundant #defines.
39127         * lib/freadahead.c: Include stdio-impl.h.
39128         (freadahead): Remove redundant #defines.
39129         * lib/freading.c: Include stdio-impl.h.
39130         (freading): Remove redundant #defines.
39131         * lib/freadptr.c: Include stdio-impl.h.
39132         (freadptr): Remove redundant #defines.
39133         * lib/freadseek.c: Include stdio-impl.h.
39134         (freadptrinc): Remove redundant #defines.
39135         * lib/fseeko.c: Include stdio-impl.h.
39136         (rpl_fseeko): Remove redundant #defines.
39137         * lib/fseterr.c: Include stdio-impl.h.
39138         (fseterr): Remove redundant #defines.
39139         * lib/fwritable.c: Include stdio-impl.h.
39140         (fwritable: Remove redundant #defines.
39141         * lib/fwriting.c: Include stdio-impl.h.
39142         (fwriting): Remove redundant #defines.
39143         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39144         * modules/fflush (Files): Likewise.
39145         * modules/fpurge (Files): Likewise.
39146         * modules/freadable (Files): Likewise.
39147         * modules/freadahead (Files): Likewise.
39148         * modules/freading (Files): Likewise.
39149         * modules/freadptr (Files): Likewise.
39150         * modules/freadseek (Files): Likewise.
39151         * modules/fseeko (Files): Likewise.
39152         * modules/fseterr (Files): Likewise.
39153         * modules/fwritable (Files): Likewise.
39154         * modules/fwriting (Files): Likewise.
39155
39156 2008-04-26  Bruno Haible  <bruno@clisp.org>
39157
39158         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39159         restore_seek_optimization, update_fpos_cache): New functions, extracted
39160         from rpl_fflush.
39161         (rpl_fflush): Use them.
39162         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39163         (gl_REPLACE_FFLUSH): Use it.
39164
39165 2008-04-26  Bruno Haible  <bruno@clisp.org>
39166
39167         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39168         on Solaris.
39169         * tests/test-xstrtoimax.sh: Likewise.
39170         * tests/test-xstrtoumax.sh: Likewise.
39171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39172
39173 2008-04-26  Bruno Haible  <bruno@clisp.org>
39174
39175         * modules/memchr-tests: New file.
39176         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39177
39178 2008-04-26  Eric Blake  <ebb9@byu.net>
39179             Bruno Haible  <bruno@clisp.org>
39180
39181         * lib/memchr.c: Include intprops.h.
39182         (__memchr): Optimize parallel detection of matching bytes. Rename local
39183         variables. Add explanatory comments.
39184
39185 2008-04-26  Bruno Haible  <bruno@clisp.org>
39186
39187         Fix module 'memchr', broken since 2000-10-28.
39188         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39189
39190 2008-04-26  Bruno Haible  <bruno@clisp.org>
39191
39192         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39193         comments.
39194
39195 2008-04-25  Eric Blake  <ebb9@byu.net>
39196
39197         Use native fstatat on cygwin 1.7.0.
39198         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39199         first.
39200
39201 2008-04-23  Eric Blake  <ebb9@byu.net>
39202
39203         Improve memchr2 performance.
39204         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39205         NUL bytes.
39206         * modules/memchr2 (Depends-on): Use intprops.h.
39207
39208 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39209
39210         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39211         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39212         <blp@cs.stanford.edu>.
39213
39214 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39215
39216         * lib/arpa_inet.in.h: New file.
39217
39218         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39219         (Makefile.am): Sed in substitute header file.
39220
39221         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39222         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39223
39224         * modules/inet_ntop (configure.ac): Use
39225         gl_ARPA_INET_MODULE_INDICATOR.
39226
39227         * modules/inet_pton (configure.ac): Use
39228         gl_ARPA_INET_MODULE_INDICATOR.
39229
39230 2008-04-22  Jim Meyering  <meyering@redhat.com>
39231
39232         * modules/verify (License): Re-license as LGPLv2+.
39233
39234 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39235
39236         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39237         parameter to void* as per POSIX standard (MinGW uses char*).
39238
39239 2008-04-21  Bruno Haible  <bruno@clisp.org>
39240
39241         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39242         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39243         Define to replacements if REPLACE_ISWCNTRL is 1.
39244         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39245         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39246         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39247         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39248         what it fixes.
39249         * doc/posix-functions/iswalpha.texi: Likewise.
39250         * doc/posix-functions/iswblank.texi: Likewise.
39251         * doc/posix-functions/iswcntrl.texi: Likewise.
39252         * doc/posix-functions/iswdigit.texi: Likewise.
39253         * doc/posix-functions/iswgraph.texi: Likewise.
39254         * doc/posix-functions/iswlower.texi: Likewise.
39255         * doc/posix-functions/iswprint.texi: Likewise.
39256         * doc/posix-functions/iswpunct.texi: Likewise.
39257         * doc/posix-functions/iswspace.texi: Likewise.
39258         * doc/posix-functions/iswupper.texi: Likewise.
39259         * doc/posix-functions/iswxdigit.texi: Likewise.
39260         Reported by Alain Guibert.
39261
39262 2008-04-21  Bruno Haible  <bruno@clisp.org>
39263
39264         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39265         Patch by Alain Guibert.
39266
39267 2008-04-21  Bruno Haible  <bruno@clisp.org>
39268
39269         Fix test failures on mingw.
39270         * tests/test-xstrtol.c (print_no_progname): New function.
39271         (main): Install it in error_print_progname hook.
39272         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39273         * tests/test-xstrtoimax.sh: Likewise.
39274         * tests/test-xstrtoumax.sh: Likewise.
39275
39276 2008-04-21  Bruno Haible  <bruno@clisp.org>
39277
39278         Fix test failure on mingw.
39279         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39280
39281 2008-04-21  Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39284         Actually assign a value.
39285
39286 2008-04-20  Bruno Haible  <bruno@clisp.org>
39287
39288         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39289         take 2.
39290         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39291         'canonicalize-lgpl' module is also used.
39292         * lib/canonicalize-lgpl.c: Undo last change.
39293         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39294
39295 2008-04-20  Bruno Haible  <bruno@clisp.org>
39296
39297         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39298         config.h. Provide _mkdir based fallback for mingw.
39299         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39300         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39302         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39303         rather than defining mkdir in config.h.
39304         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39305         (gl_SYS_STAT_H_DEFAULTS): New macro.
39306         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39307         HAVE_IO_H any more.
39308         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39309         HAVE_DECL_MKDIR and HAVE_IO_H.
39310
39311 2008-04-20  Bruno Haible  <bruno@clisp.org>
39312
39313         * lib/isapipe.c: Port to native Windows platforms.
39314
39315 2008-04-20  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39318
39319 2008-04-21  Eric Blake  <ebb9@byu.net>
39320
39321         Work around preprocessors that don't handle UINTMAX_MAX.
39322         * lib/memchr2.c (memchr2): Avoid embedded #if.
39323         Reported by Alain Guibert, fix suggested by Bruno Haible.
39324
39325 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39326
39327         * doc/posix-functions/strftime.texi (strftime): Explain better
39328         Windows incompatibility.  Suggested by Micah Cowan
39329         <micah@cowan.name>.
39330
39331 2008-04-20  Bruno Haible  <bruno@clisp.org>
39332
39333         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39334         unistr/u8-mblen.
39335
39336 2008-04-20  Bruno Haible  <bruno@clisp.org>
39337
39338         Fix test failure on platforms with non-GNU iconv.
39339         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39340         (U_TO_U8): Use it, rather than u16_to_u8.
39341         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39342         units at the end of the input string.
39343         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39344
39345 2008-04-20  Bruno Haible  <bruno@clisp.org>
39346
39347         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39348         when the resulting length is 0.
39349         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39350
39351 2008-04-20  Bruno Haible  <bruno@clisp.org>
39352
39353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39354         works.
39355         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39356
39357 2008-04-20  Bruno Haible  <bruno@clisp.org>
39358
39359         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39360         * modules/tsearch-tests (configure.ac): Test for initstate function.
39361
39362 2008-04-20  Bruno Haible  <bruno@clisp.org>
39363
39364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39365         for nlink_t if missing.
39366         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39367
39368 2008-04-19  Bruno Haible  <bruno@clisp.org>
39369
39370         Work around snprintf bug on Linux libc5.
39371         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39372         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39373         gl_SNPRINTF_SIZE1.
39374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39375         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39376         that test failed.
39377         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39378         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39379         * modules/snprintf (Files): Add m4/printf.m4.
39380         * modules/vsnprintf (Files): Likewise.
39381         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39382         * doc/posix-functions/vsnprintf.texi: Likewise.
39383
39384 2008-04-19  Bruno Haible  <bruno@clisp.org>
39385
39386         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39387         from 0.0058 to less than 10^-7.
39388
39389 2008-04-19  Bruno Haible  <bruno@clisp.org>
39390
39391         Fix rounding when a precision is given.
39392         * lib/vasnprintf.c (is_borderline): New function.
39393         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39394         9...9x.
39395         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39396         %e, %g.
39397         * tests/test-vasprintf-posix.c (test_function): Likewise.
39398         * tests/test-snprintf-posix.h (test_function): Likewise.
39399         * tests/test-sprintf-posix.h (test_function): Likewise.
39400         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39401         * tests/test-printf-posix.h (test_function): Likewise.
39402         * tests/test-printf-posix.output: Update.
39403         Reported by John Darrington <john@darrington.wattle.id.au> via
39404         Ben Pfaff <blp@cs.stanford.edu>.
39405
39406 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39407
39408         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39409         Suggested by Bruno Haible <bruno@clisp.org>.
39410
39411 2008-04-17  Bruno Haible  <bruno@clisp.org>
39412
39413         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39414         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39415         implementation.
39416         Patch by Bruce Merry <bmerry@gmail.com>.
39417
39418 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39419
39420         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39421         doesn't work under Windows.
39422
39423 2008-04-16  Bruno Haible  <bruno@clisp.org>
39424
39425         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39426         New macros.
39427         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39428         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39429         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39430         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39431         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39432         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39433         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39434         macros.
39435         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39436         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39437         Northern Sotho, Uighur.
39438
39439 2008-04-16  Bruno Haible  <bruno@clisp.org>
39440
39441         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39442         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39443         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39444         Reported by Daniel Bergström <daniel@octocode.com>.
39445
39446 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39447             Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39450         function.
39451         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39452         New functions, mostly extracted from gl_locale_name_default.
39453         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39454
39455 2008-04-16  Eric Blake  <ebb9@byu.net>
39456
39457         Adjust strtod detection to catch glibc 2.7 bug.
39458         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39459         Reported by John Gatewood Ham.
39460
39461 2008-04-16  Bruno Haible  <bruno@clisp.org>
39462
39463         Add tentative support for Linux libc5.
39464         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39465         * lib/fpurge.c (fpurge): Likewise.
39466         * lib/freadable.c (freadable): Likewise.
39467         * lib/freadahead.c (freadahead): Likewise.
39468         * lib/freading.c (freading): Likewise.
39469         * lib/freadptr.c (freadptr): Likewise.
39470         * lib/freadseek.c (freadptrinc): Likewise.
39471         * lib/fseeko.c (rpl_fseeko): Likewise.
39472         * lib/fseterr.c (fseterr): Likewise.
39473         * lib/fwritable.c (fwritable): Likewise.
39474         * lib/fwriting.c (fwriting): Likewise.
39475         Reported by Alain Guibert <alguibert+bts@free.fr>.
39476
39477 2008-04-15  Bruno Haible  <bruno@clisp.org>
39478
39479         * modules/mathl (configure.ac): Define module indicator.
39480
39481 2008-04-15  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/logl.c (logl): Remove unused variables.
39484
39485 2008-04-15  Bruno Haible  <bruno@clisp.org>
39486
39487         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39488         fails.
39489
39490 2008-04-15  Bruno Haible  <bruno@clisp.org>
39491
39492         * lib/trim.c (trim2): Fix argument of isspace() macro.
39493
39494 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39495
39496         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39497         to 0.
39498         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39499
39500 2008-04-14  Bruno Haible  <bruno@clisp.org>
39501
39502         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39503         AC_LANG_PROGRAM argument.
39504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39505         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39507         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39508         * m4/math_h.m4 (gl_MATH_H): Likewise.
39509         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39511         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39513         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39514         * m4/regex.m4 (gl_REGEX): Likewise.
39515         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39516         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39520         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39521         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39523
39524 2008-04-14  Jim Meyering  <meyering@redhat.com>
39525
39526         test-strtod: fix typos: s/abs/fabs/
39527         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39528
39529 2008-04-13  Bruno Haible  <bruno@clisp.org>
39530
39531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39532         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39533         module is also used and while not building the reloc-wrapper.
39534
39535 2008-04-13  Bruno Haible  <bruno@clisp.org>
39536
39537         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39538
39539 2008-04-13  Bruno Haible  <bruno@clisp.org>
39540
39541         Fix AIX compilation failure introduced on 2008-04-02.
39542         * tests/test-frexp.c (exp): Undefine before redefining.
39543         * tests/test-frexpl.c (exp): Likewise.
39544
39545 2008-04-13  Bruno Haible  <bruno@clisp.org>
39546
39547         Work around a HP-UX stdio bug.
39548         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39549         * tests/test-ftello.c (main): Likewise.
39550         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39551         * doc/posix-functions/ftello.texi: Likewise.
39552
39553 2008-04-13  Bruno Haible  <bruno@clisp.org>
39554
39555         Make test-signbit pass on HP-UX/hppa.
39556         * tests/test-signbit.c (minus_zerol): New variable.
39557         (test_signbitl): Use it.
39558
39559 2008-04-13  Bruno Haible  <bruno@clisp.org>
39560
39561         Make truncl work on OSF/1 4.0.
39562         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39563         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39564         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39566         HAVE_DECL_TRUNCL.
39567         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39568         HAVE_DECL_TRUNCL.
39569         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39570
39571 2008-04-13  Bruno Haible  <bruno@clisp.org>
39572
39573         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39574
39575 2008-04-13  Bruno Haible  <bruno@clisp.org>
39576
39577         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39578         expression, so as to avoid HP-UX 11 cc compiler bug.
39579
39580 2008-04-13  Bruno Haible  <bruno@clisp.org>
39581
39582         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39583
39584 2008-04-13  Bruno Haible  <bruno@clisp.org>
39585
39586         * lib/git-merge-changelog.c: Remove empty declaration outside of
39587         functions.
39588
39589 2008-04-13  Bruno Haible  <bruno@clisp.org>
39590
39591         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39592
39593 2008-04-13  Bruno Haible  <bruno@clisp.org>
39594
39595         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39596         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39597         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39598         also if it exists but lacks definitions of the SHUT_* macros.
39599         * modules/sys_socket (Description): Update.
39600         Reported by Elbert Pol <e.pol@chello.nl>.
39601
39602 2008-04-13  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/localcharset.c (OS2): Don't redefine if already defined.
39605         Reported by Elbert Pol <e.pol@chello.nl>.
39606
39607 2008-04-13  Bruno Haible  <bruno@clisp.org>
39608
39609         * lib/binary-io.h [__EMX__]: Include <io.h>.
39610         Reported by Elbert Pol <e.pol@chello.nl>.
39611
39612 2008-04-12  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/fpucw.h: Enable the definitions also for x86_64.
39615         Needed for NetBSD/x86_64.
39616         Reported by Thomas Klausner <tk@giga.or.at>.
39617
39618 2008-04-12  Bruno Haible  <bruno@clisp.org>
39619
39620         * tests/test-strtod.c: Include isnand.h.
39621         (main): Use isnand instead of isnan.
39622         Reported by Jim Meyering.
39623
39624 2008-04-12  Bruno Haible  <bruno@clisp.org>
39625
39626         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39627         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39628
39629 2008-04-12  Jim Meyering  <meyering@redhat.com>
39630
39631         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39632
39633 2008-04-12  Bruno Haible  <bruno@clisp.org>
39634
39635         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39636         Reported by Elbert Pol <e.pol@chello.nl>.
39637
39638 2008-04-12  Eric Blake  <ebb9@byu.net>
39639
39640         Work around Solaris 10 math.h bug.
39641         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39642         (gl_MATH_H_DEFAULTS): Set up default.
39643         * modules/math (Makefile.am): Replace new indicators.
39644         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39645         * tests/test-math.c (main): Test this.
39646         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39647         * doc/posix-headers/math.texi (math.h): Mention bug.
39648         Reported by Nelson H. F. Beebe and Jim Meyering.
39649
39650 2008-04-11  Bruno Haible  <bruno@clisp.org>
39651
39652         Adapt to future versions of Apple GCC.
39653         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39654         Reported by Peter O'Gorman <peter@pogma.com>.
39655
39656 2008-04-11  Bruno Haible  <bruno@clisp.org>
39657
39658         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39659
39660 2008-04-11  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39663
39664         * modules/getaddrinfo-tests (Makefile.am): Define
39665         test_getaddrinfo_LDADD.
39666
39667 2008-04-11  Bruno Haible  <bruno@clisp.org>
39668
39669         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39670         (init): Fix syntax error.
39671         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39672         is declared.
39673
39674 2008-04-11  Bruno Haible  <bruno@clisp.org>
39675
39676         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39677         * modules/glob (Depends-on): Add stdbool.
39678
39679 2008-04-11  Bruno Haible  <bruno@clisp.org>
39680
39681         * lib/trim.c: Include <string.h>.
39682
39683 2008-04-11  Eric Blake  <ebb9@byu.net>
39684
39685         Avoid compile failure on OS/2.
39686         * lib/regex_internal.h (internal_function): Disable optimization
39687         on OS/2 (__EMX__), where it caused compiler error.
39688         Reported by Elbert Pol.
39689
39690 2008-04-11  Bruno Haible  <bruno@clisp.org>
39691
39692         Flush the standard error stream before aborting. Needed on mingw.
39693         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39694         * tests/test-array_list.c (ASSERT): Likewise.
39695         * tests/test-array_oset.c (ASSERT): Likewise.
39696         * tests/test-avltree_list.c (ASSERT): Likewise.
39697         * tests/test-avltree_oset.c (ASSERT): Likewise.
39698         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39699         * tests/test-binary-io.c (ASSERT): Likewise.
39700         * tests/test-byteswap.c (ASSERT): Likewise.
39701         * tests/test-c-ctype.c (ASSERT): Likewise.
39702         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39703         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39704         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39705         * tests/test-c-strstr.c (ASSERT): Likewise.
39706         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39707         * tests/test-canonicalize.c (ASSERT): Likewise.
39708         * tests/test-carray_list.c (ASSERT): Likewise.
39709         * tests/test-ceilf1.c (ASSERT): Likewise.
39710         * tests/test-ceilf2.c (ASSERT): Likewise.
39711         * tests/test-ceill.c (ASSERT): Likewise.
39712         * tests/test-count-one-bits.c (ASSERT): Likewise.
39713         * tests/test-fbufmode.c (ASSERT): Likewise.
39714         * tests/test-fflush2.c (ASSERT): Likewise.
39715         * tests/test-floorf1.c (ASSERT): Likewise.
39716         * tests/test-floorf2.c (ASSERT): Likewise.
39717         * tests/test-floorl.c (ASSERT): Likewise.
39718         * tests/test-fopen.c (ASSERT): Likewise.
39719         * tests/test-fpending.c (ASSERT): Likewise.
39720         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39721         * tests/test-fpurge.c (ASSERT): Likewise.
39722         * tests/test-freadable.c (ASSERT): Likewise.
39723         * tests/test-freadahead.c (ASSERT): Likewise.
39724         * tests/test-freading.c (ASSERT): Likewise.
39725         * tests/test-freadptr.c (ASSERT): Likewise.
39726         * tests/test-freadptr2.c (ASSERT): Likewise.
39727         * tests/test-freadseek.c (ASSERT): Likewise.
39728         * tests/test-freopen.c (ASSERT): Likewise.
39729         * tests/test-frexp.c (ASSERT): Likewise.
39730         * tests/test-frexpl.c (ASSERT): Likewise.
39731         * tests/test-fseek.c (ASSERT): Likewise.
39732         * tests/test-fseeko.c (ASSERT): Likewise.
39733         * tests/test-fstrcmp.c (ASSERT): Likewise.
39734         * tests/test-ftell.c (ASSERT): Likewise.
39735         * tests/test-ftello.c (ASSERT): Likewise.
39736         * tests/test-func.c (ASSERT): Likewise.
39737         * tests/test-fwritable.c (ASSERT): Likewise.
39738         * tests/test-fwriting.c (ASSERT): Likewise.
39739         * tests/test-getdelim.c (ASSERT): Likewise.
39740         * tests/test-getline.c (ASSERT): Likewise.
39741         * tests/test-i-ring.c (ASSERT): Likewise.
39742         * tests/test-iconv-utf.c (ASSERT): Likewise.
39743         * tests/test-iconv.c (ASSERT): Likewise.
39744         * tests/test-isfinite.c (ASSERT): Likewise.
39745         * tests/test-isnand.c (ASSERT): Likewise.
39746         * tests/test-isnanf.c (ASSERT): Likewise.
39747         * tests/test-isnanl.h (ASSERT): Likewise.
39748         * tests/test-ldexpl.c (ASSERT): Likewise.
39749         * tests/test-linked_list.c (ASSERT): Likewise.
39750         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39751         * tests/test-localename.c (ASSERT): Likewise.
39752         * tests/test-lseek.c (ASSERT): Likewise.
39753         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39754         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39755         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39756         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39757         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39758         * tests/test-mbschr.c (ASSERT): Likewise.
39759         * tests/test-mbscspn.c (ASSERT): Likewise.
39760         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39761         * tests/test-mbspbrk.c (ASSERT): Likewise.
39762         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39763         * tests/test-mbsrchr.c (ASSERT): Likewise.
39764         * tests/test-mbsspn.c (ASSERT): Likewise.
39765         * tests/test-mbsstr1.c (ASSERT): Likewise.
39766         * tests/test-mbsstr2.c (ASSERT): Likewise.
39767         * tests/test-mbsstr3.c (ASSERT): Likewise.
39768         * tests/test-memchr2.c (ASSERT): Likewise.
39769         * tests/test-memmem.c (ASSERT): Likewise.
39770         * tests/test-open.c (ASSERT): Likewise.
39771         * tests/test-printf-frexp.c (ASSERT): Likewise.
39772         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39773         * tests/test-printf-posix.c (ASSERT): Likewise.
39774         * tests/test-quotearg.c (ASSERT): Likewise.
39775         * tests/test-rbtree_list.c (ASSERT): Likewise.
39776         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39777         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39778         * tests/test-round1.c (ASSERT): Likewise.
39779         * tests/test-roundf1.c (ASSERT): Likewise.
39780         * tests/test-roundl.c (ASSERT): Likewise.
39781         * tests/test-signbit.c (ASSERT): Likewise.
39782         * tests/test-sleep.c (ASSERT): Likewise.
39783         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39784         * tests/test-snprintf.c (ASSERT): Likewise.
39785         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39786         * tests/test-stat-time.c (ASSERT): Likewise.
39787         * tests/test-strcasestr.c (ASSERT): Likewise.
39788         * tests/test-strerror.c (ASSERT): Likewise.
39789         * tests/test-striconv.c (ASSERT): Likewise.
39790         * tests/test-striconveh.c (ASSERT): Likewise.
39791         * tests/test-striconveha.c (ASSERT): Likewise.
39792         * tests/test-strsignal.c (ASSERT): Likewise.
39793         * tests/test-strstr.c (ASSERT): Likewise.
39794         * tests/test-strtod.c (ASSERT): Likewise.
39795         * tests/test-trunc1.c (ASSERT): Likewise.
39796         * tests/test-trunc2.c (ASSERT): Likewise.
39797         * tests/test-truncf1.c (ASSERT): Likewise.
39798         * tests/test-truncf2.c (ASSERT): Likewise.
39799         * tests/test-truncl.c (ASSERT): Likewise.
39800         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39801         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39802         * tests/test-vasnprintf.c (ASSERT): Likewise.
39803         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39804         * tests/test-vasprintf.c (ASSERT): Likewise.
39805         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39806         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39807         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39808         * tests/test-vsnprintf.c (ASSERT): Likewise.
39809         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39810         * tests/test-wcwidth.c (ASSERT): Likewise.
39811         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39812         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39813         * tests/test-xvasprintf.c (ASSERT): Likewise.
39814         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39815         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39816         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39817         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39818         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39819         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39820         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39821         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39822         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39823         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39824         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39825         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39826         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39827         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39828         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39829         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39830         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39831         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39832         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39833         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39834         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39835         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39836         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39837         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39838         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39839         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39840         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39841         * tests/unictype/test-combining.c (ASSERT): Likewise.
39842         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39843         * tests/unictype/test-digit.c (ASSERT): Likewise.
39844         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39845         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39846         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39847         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39848         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39849         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39850         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39851         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39852         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39853         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39854         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39855         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39856         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39857         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39858         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39859         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39860         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39861         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39862         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39863         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39864         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39865         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39866         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39867         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39868         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39869         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39870         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39871         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39872         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39873         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39874         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39875         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39876         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39877         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39878         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39879         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39880         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39881         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39882         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39883         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39884         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39885         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39886         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39887         Reported by Eric Blake.
39888
39889 2008-04-11  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/wchar.in.h: Tweak comment.
39892
39893 2008-04-11  Bruno Haible  <bruno@clisp.org>
39894
39895         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39896         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39897         gl_COMMON.
39898         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39899
39900 2008-04-11  Bruno Haible  <bruno@clisp.org>
39901
39902         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39903
39904 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39905
39906         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39907         of attempting to use non-existing /dev/*random.  Based on patch
39908         from Adam Strzelecki <ono@java.pl> in
39909         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39910
39911 2008-04-08  Bruno Haible  <bruno@clisp.org>
39912
39913         Add tentative support for emx+gcc.
39914         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39915         * lib/fpurge.c (fpurge): Likewise.
39916         * lib/freadable.c (freadable): Likewise.
39917         * lib/freadahead.c (freadahead): Likewise.
39918         * lib/freading.c (freading): Likewise.
39919         * lib/freadptr.c (freadptr): Likewise.
39920         * lib/freadseek.c (freadptrinc): Likewise.
39921         * lib/fseeko.c (rpl_fseeko): Likewise.
39922         * lib/fseterr.c (fseterr): Likewise.
39923         * lib/fwritable.c (fwritable): Likewise.
39924         * lib/fwriting.c (fwriting): Likewise.
39925         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39926
39927 2008-04-09  Eric Blake  <ebb9@byu.net>
39928
39929         Avoid some autoconf warnings.
39930         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39931         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39932         * m4/afs.m4 (gl_AFS): Likewise.
39933         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39934         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39936         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39937         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39938         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39939         (AC_CHECK_DECLS_ONCE): Likewise.
39940         Rename file...
39941         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39942         gnulib-tool requires autoconf 2.59 or better.
39943         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39944
39945 2008-04-08  Eric Blake  <ebb9@byu.net>
39946
39947         Use 'git describe --match' if present (added in git 1.5.5).
39948         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39949         if possible.
39950
39951 2008-04-08  Bruno Haible  <bruno@clisp.org>
39952
39953         Add tentative support for OpenServer.
39954         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39955         _ptr, _cnt.
39956         * lib/fpurge.c (fpurge): Likewise.
39957         * lib/freadable.c (freadable): Likewise.
39958         * lib/freadahead.c (freadahead): Likewise.
39959         * lib/freading.c (freading): Likewise.
39960         * lib/freadptr.c (freadptr): Likewise.
39961         * lib/freadseek.c (freadptrinc): Likewise.
39962         * lib/fseeko.c (rpl_fseeko): Likewise.
39963         * lib/fseterr.c (fseterr): Likewise.
39964         * lib/fwritable.c (fwritable): Likewise.
39965         * lib/fwriting.c (fwriting): Likewise.
39966         Reported by Roger Cornelius <rac@tenzing.org> and
39967         Brian K. White <brian@aljex.com>.
39968
39969 2008-04-06  Jim Meyering  <meyering@redhat.com>
39970
39971         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39972
39973 2008-04-06  Bruno Haible  <bruno@clisp.org>
39974
39975         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39976         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39977         * tests/test-printf-posix.sh: Likewise.
39978         * tests/test-vfprintf-posix.sh: Likewise.
39979         * tests/test-vprintf-posix.sh: Likewise.
39980         * tests/test-xprintf-posix.sh: Likewise.
39981
39982 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39983
39984         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39985         hide error from 'ls', needed on OS/2.
39986         Report by Elbert Pol <elbert.pol@gmail.com>.
39987
39988 2008-04-04  Eric Blake  <ebb9@byu.net>
39989
39990         Make test-fseeko.c failures meaningful.
39991         * tests/test-fseeko.c: Print line number on failure.
39992         * tests/test-fseek.c: Likewise.
39993         Reported by Nelson H. F. Beebe.
39994
39995         Improve strtod bug detection check.
39996         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39997         required for Solaris 10.
39998         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39999
40000 2008-04-04  Bruno Haible  <bruno@clisp.org>
40001
40002         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40003         by m4/setenv.m4.
40004
40005 2008-04-03  Eric Blake  <ebb9@byu.net>
40006
40007         Ensure sane .version contents.
40008         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40009         version string.
40010         * build-aux/git-version-gen: Improve documentation.
40011
40012         Make GNU make output nicer.
40013         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40014         MAKECMDGOALS to enforce message for all command line targets.  Set
40015         srcdir for use in maint.mk.
40016
40017         Another maintainer tweak.
40018         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40019         a target that regenerates version.
40020
40021 2008-04-03  Jim Meyering  <meyering@redhat.com>
40022
40023         vc-list-files: don't cause coreutils "make po-check" failure
40024         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40025
40026 2008-04-03  Eric Blake  <ebb9@byu.net>
40027
40028         Allow VPATH usage of vc-list-files.
40029         * build-aux/vc-list-files (scriptversion): Add timestamp.
40030         (options): Add --help, --version, -C.
40031         (CVS): Support installed cvsu.
40032
40033 2008-04-02  Bruno Haible  <bruno@clisp.org>
40034
40035         Avoid some "statement with no effect" warnings from gcc.
40036         * tests/test-wctype.c (main): Explicitly ignore unused values.
40037         Reported by Jim Meyering.
40038
40039 2008-04-02  Jim Meyering  <meyering@redhat.com>
40040
40041         Avoid some warnings from "gcc -Wshadow".
40042         * tests/test-frexp.c (exp): Define to a different identifier.
40043         * tests/test-frexpl.c (exp): Likewise.
40044
40045 2008-04-03  Jim Meyering  <meyering@redhat.com>
40046
40047         bootstrap: remove dangling *.[ch] symlinks from lib
40048         * build-aux/bootstrap [dangling symlink removal]: Move find's
40049         -depth option to precede all others, to avoid a warning.
40050         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40051
40052 2008-04-02  Bruno Haible  <bruno@clisp.org>
40053
40054         Avoid some warnings from "gcc -Wshadow".
40055         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40056         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40057         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40058         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40059         Reported by Jim Meyering.
40060
40061 2008-04-01  Bruno Haible  <bruno@clisp.org>
40062
40063         Fix test to work on IRIX 6.5 with cc.
40064         * tests/test-math.c (numeric_equal): New function.
40065         (main): Use it.
40066
40067 2008-04-01  Bruno Haible  <bruno@clisp.org>
40068
40069         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40070
40071 2008-04-01  Bruno Haible  <bruno@clisp.org>
40072
40073         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40074         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40075         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40076         (Depends-on): Remove math.
40077
40078         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40079         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40080         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40081         (Depends-on): Remove math.
40082
40083         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40084         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40085         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40086         (Depends-on): Remove math.
40087         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40088         (Depends-on): Remove math.
40089
40090         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40091         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40092         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40093         (Depends-on): Remove math.
40094         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40095         (Depends-on): Remove math.
40096
40097         * tests/test-round1.c: Include nan.h.
40098         (main): Use NaNd instead of NAN.
40099         * modules/round-tests (Files): Add tests/nan.h.
40100
40101         * tests/test-trunc1.c: Include nan.h.
40102         (main): Use NaNd instead of NAN.
40103         * modules/trunc-tests (Files): Add tests/nan.h.
40104
40105         * tests/test-roundf1.c: Include nan.h.
40106         (main): Use NaNf instead of NAN.
40107         * modules/roundf-tests (Files): Add tests/nan.h.
40108
40109         * tests/test-truncf1.c: Include nan.h.
40110         (main): Use NaNf instead of NAN.
40111         * modules/truncf-tests (Files): Add tests/nan.h.
40112
40113         * tests/test-ceilf1.c: Include nan.h.
40114         (main): Use NaNf instead of NAN.
40115         * modules/ceilf-tests (Files): Add tests/nan.h.
40116
40117         * tests/test-floorf1.c: Include nan.h.
40118         (main): Use NaNf instead of NAN.
40119         * modules/floorf-tests (Files): Add tests/nan.h.
40120
40121         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40122         (main): Use NaNf instead of NAN.
40123         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40124
40125         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40126         (main): Use NaNd instead of NAN.
40127         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40128
40129         * tests/test-frexp.c: Include nan.h.
40130         (main): Use NaNd instead of NAN.
40131         * modules/frexp-tests (Files): Add tests/nan.h.
40132
40133         * lib/isnan.c: Don't include <math.h>.
40134         (FUNC): Don't use NAN macro.
40135         * modules/isnand-nolibm (Depends-on): Remove math.
40136         * modules/isnanf-nolibm (Depends-on): Remove math.
40137         * modules/isnanl (Depends-on): Remove math.
40138         * modules/isnanl-nolibm (Depends-on): Remove math.
40139
40140         * tests/nan.h: New file.
40141
40142 2008-04-01  Eric Blake  <ebb9@byu.net>
40143
40144         Fix typos.
40145         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40146         values to be the right type.
40147
40148         For now, cater to gnulib strtod inaccuracies.
40149         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40150         fractional results.  While not as nice from a QoI perspective, it
40151         is a quicker patch than correctly implementing decimal to binary
40152         rounding.
40153
40154 2008-03-31  Eric Blake  <ebb9@byu.net>
40155
40156         Guarantee a definition of NAN.
40157         * lib/math.in.h (NAN): Define if missing.
40158         * tests/test-math.c (main): Test it.
40159         * doc/posix-headers/math.texi (math.h): Document this.
40160         * lib/isnan.c (rpl_isnand): Use it.
40161         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40162         * tests/test-floorf1.c (NaN): Likewise.
40163         * tests/test-frexp.c (NaN): Likewise.
40164         * tests/test-isnand.c (NaN): Likewise.
40165         * tests/test-isnanf.c (NaN): Likewise.
40166         * tests/test-round1.c (NaN): Likewise.
40167         * tests/test-roundf1.c (NaN): Likewise.
40168         * tests/test-snprintf-posix.h (NaN): Likewise.
40169         * tests/test-sprintf-posix.h (NaN): Likewise.
40170         * tests/test-trunc1.c (NaN): Likewise.
40171         * tests/test-truncf1.c (NaN): Likewise.
40172         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40173         * tests/test-vasprintf-posix.c (NaN): Likewise.
40174         * modules/isnand-nolibm (Depends-on): Add math.
40175         * modules/isnanf-nolibm (Depends-on): Likewise.
40176         * modules/isnanl (Depends-on): Likewise.
40177         * modules/isnanl-nolibm (Depends-on): Likewise.
40178         * modules/snprintf-posix-tests (Depends-on): Likewise.
40179         * modules/sprintf-posix-tests (Depends-on): Likewise.
40180         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40181         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40182         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40183         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40184
40185 2008-03-31  Bruno Haible  <bruno@clisp.org>
40186
40187         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40188         * doc/posix-functions/strtod.texi: Likewise.
40189
40190 2008-03-31  Bruno Haible  <bruno@clisp.org>
40191
40192         * tests/test-strtod.c (main): Don't use C99 syntax.
40193
40194 2008-03-31  Bruno Haible  <bruno@clisp.org>
40195
40196         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40197         Reported by Eric Blake.
40198
40199 2008-03-31  Jim Meyering  <meyering@redhat.com>
40200
40201         Don't compare actual signbit return values.
40202         * tests/test-strtod.c (main): Rather, compare only their
40203         zero/non-zero nature.
40204
40205 2008-03-31  Eric Blake  <ebb9@byu.net>
40206
40207         More strtod documentation.
40208         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40209         failures as distinct bugs.
40210
40211 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40212
40213         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40214         Problem reported by Erik Benada in
40215         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40216
40217 2008-03-30  Bruno Haible  <bruno@clisp.org>
40218
40219         * tests/test-strtod.c: Add comments about which assertion fails on which
40220         platform.
40221         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40222
40223 2008-03-30  Eric Blake  <ebb9@byu.net>
40224
40225         Test signbit behavior on zeros.
40226         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40227         (test_signbitd, test_signbitl): Likewise.
40228
40229         More strtod touchups.
40230         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40231         sign of negative underflow, for now.  Use .5, not .1.
40232         * doc/posix-functions/strtod.texi (strtod): Mention these
40233         limitations.
40234         Reported by Jim Meyering.
40235
40236 2008-03-30  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40239         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40240
40241 2008-03-30  Bruno Haible  <bruno@clisp.org>
40242
40243         Avoid failure when attempting to return empty iconv results on some
40244         platforms.
40245         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40246         allocation, don't report ENOMEM when the resulting string is empty.
40247
40248 2008-03-30  Bruno Haible  <bruno@clisp.org>
40249
40250         Fix buffer overrun.
40251         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40252         Don't consider the width for tmp_length. Check count against tmp_length
40253         before doing the padding. Ensure enough allocation during padding.
40254
40255 2008-03-30  Eric Blake  <ebb9@byu.net>
40256
40257         strtod touchups.
40258         * lib/strtod.c (strtod): Avoid compiler warnings.
40259         Reported by Jim Meyering.
40260
40261 2008-03-30  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40264         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40265         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40266         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40267         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40268         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40269         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40270         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40271
40272         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40273         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40274         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40275         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40276         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40277         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40278         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40279         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40280
40281         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40282         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40283         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40284         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40285         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40286         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40287         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40288         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40289
40290         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40291         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40292
40293         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40294         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40295
40296         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40297         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40298
40299         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40300         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40301         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40302
40303         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40305         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40306
40307         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40309         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40310
40311         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40313         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40314
40315         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40316         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40318         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40319         (Depends-on): Add EOVERFLOW.
40320         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40321         (Depends-on): Add EOVERFLOW.
40322         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40323         (Depends-on): Add EOVERFLOW.
40324         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40325         (Depends-on): Add EOVERFLOW.
40326         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40327         (Depends-on): Add EOVERFLOW.
40328         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40329         (Depends-on): Add EOVERFLOW.
40330         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40331         (Depends-on): Add EOVERFLOW.
40332         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40333         (Depends-on): Add EOVERFLOW.
40334
40335         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40337         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40338
40339         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40341         * modules/snprintf (Depends-on): Add EOVERFLOW.
40342
40343         * lib/poll.c (EOVERFLOW): Remove fallback.
40344         * modules/poll (Depends-on): Add EOVERFLOW.
40345
40346         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40347         * modules/getugroups (Depends-on): Add EOVERFLOW.
40348
40349         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40350         * modules/getdelim (Depends-on): Add EOVERFLOW.
40351
40352         * lib/ftell.c (EOVERFLOW): Remove fallback.
40353         * modules/ftell (Depends-on): Add EOVERFLOW.
40354
40355         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40357         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40358
40359         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40360
40361         * modules/EOVERFLOW-tests: New file.
40362         * tests/test-EOVERFLOW.c: New file.
40363
40364         * modules/EOVERFLOW: New file.
40365         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40366
40367 2008-03-30  Bruno Haible  <bruno@clisp.org>
40368
40369         Fix bug introduced on 2007-06-10.
40370         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40371         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40372
40373 2008-03-30  Bruno Haible  <bruno@clisp.org>
40374
40375         Improve freadseek's efficiency after ungetc.
40376         * lib/freadseek.c: Include freadahead.h.
40377         (freadptrinc): New function, extracted from freadseek.
40378         (freadseek): Use it in a loop. Use freadahead to determine the number
40379         of loop iterations.
40380         * modules/freadseek (Depends-on): Add freadahead.
40381         (configure.ac): Require AC_C_INLINE.
40382
40383 2008-03-30  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/freadseek.c (freadseek): Don't ignore the return value of
40386         freadptr.
40387
40388 2008-03-29  Eric Blake  <ebb9@byu.net>
40389
40390         Add hex float support.
40391         * modules/strtod (Depends-on): Add c-ctype.
40392         (Link): Mention POW_LIB.
40393         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40394         whitespace between 'e' and exponent.
40395         * tests/test-strtod.c (main): Enable hex float tests.
40396         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40397         now provides.
40398
40399         Document various strtod bugs, with some fixes.
40400         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40401         "-0x", "inf", "nan", and hex constants.
40402         * doc/posix-functions/atof.texi (atof): Likewise.
40403         * modules/stdlib (Makefile.am): Support strtod.
40404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40405         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40406         detect additional strtod bugs.
40407         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40408         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40409         bool where appropriate.  Parse 'inf' and 'nan'.
40410         * tests/test-strtod.c: New file.
40411         * modules/strtod (Depends-on): Add stdbool, stdlib.
40412         (configure.ac): Turn on module indicator.
40413         * modules/strtod-tests: New module.
40414
40415 2008-03-29  Eric Blake  <ebb9@byu.net>
40416
40417         Fix ftell on mingw.
40418         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40419         * modules/ftell-tests (Depends-on): Add binary-io.
40420         * modules/ftello-tests (Depends-on): Likewise.
40421         * tests/test-ftell.c (main): Enhance test to cover behavior after
40422         ungetc.  Enforce binary mode.
40423         * tests/test-ftello.c (main): Likewise.
40424
40425         Pass test-freadseek on cygwin.
40426         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40427         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40428         ungetc buffer.
40429
40430         * tests/test-fflush2.c (main): Fix typo.
40431
40432 2008-03-29  Bruno Haible  <bruno@clisp.org>
40433
40434         * tests/test-fflush2.c (main): Temporarily disable the contents of
40435         this test.
40436         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40437         Reported by Eric Blake.
40438
40439 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40440
40441         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40442         (GC_SHA224_DIGEST_SIZE): Add.
40443
40444         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40445         (gc_hash_digest_length): Likewise.
40446         (gc_hash_buffer): Likewise.
40447
40448 2008-03-25  Bruno Haible  <bruno@clisp.org>
40449
40450         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40451         detail which gettext release to use.
40452         Reported by Simon Josefsson.
40453
40454 2008-03-26  Jim Meyering  <meyering@redhat.com>
40455
40456         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40457         * modules/gnumakefile (clean-GNUmakefile): Also, use
40458         test ... && ... || : syntax rather than if-then ... fi.
40459
40460         gnumakefile: Don't double-quote-expand $(VPATH) value.
40461         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40462
40463 2008-03-24  Eric Blake  <ebb9@byu.net>
40464
40465         Alter GNUmakefile to install into top directory.
40466         * modules/maintainer-makefile: Split, and add dependency...
40467         * modules/gnumakefile: to this new module.
40468         * build-aux/GNUmakefile: Move...
40469         * top/GNUmakefile: ...here.
40470         * build-aux/maint.mk: Move...
40471         * top/maint.mk: ...here.
40472         * MODULES.html.sh (Support for maintaining...): Document new
40473         module.
40474
40475 2008-03-23  Bruno Haible  <bruno@clisp.org>
40476
40477         * gnulib-tool: New options --vc-files, --no-vc-files.
40478         (func_usage): Document them.
40479         (vc_files): New variable.
40480         (func_import): Consider vc_files.
40481         (func_create_testdir): Set vc_files to empty.
40482         Suggested by Jim Meyering and Karl Berry.
40483
40484 2008-03-23  Bruno Haible  <bruno@clisp.org>
40485
40486         Fix regex compilation error on HP-UX 11.
40487         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40488         * modules/regex (Files): Add m4/mbstate_t.m4.
40489         Reported by Ton Voon <ton.voon@altinity.com>.
40490
40491 2008-03-23  Bruno Haible  <bruno@clisp.org>
40492
40493         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40494
40495 2008-03-23  Eric Blake  <ebb9@byu.net>
40496             Bruno Haible  <bruno@clisp.org>
40497
40498         Install files from top/ in the destination directory.
40499         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40500         augmentation also for the files from top/.
40501         (func_import, func_create_testdir): Rewrite file names:
40502         top/filename -> filename.
40503
40504 2008-03-23  Bruno Haible  <bruno@clisp.org>
40505
40506         Tweak "gnulib --version" output.
40507         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40508
40509 2008-03-23  Bruno Haible  <bruno@clisp.org>
40510
40511         Tweak "gnulib --version" output.
40512         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40513         rather than contents of ChangeLog, when possible.
40514
40515 2008-03-21  Eric Blake  <ebb9@byu.net>
40516
40517         More --version tweaks.
40518         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40519         date of last ChangeLog entry.
40520
40521 2008-03-21  Jim Meyering  <meyering@redhat.com>
40522
40523         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40524
40525 2008-03-20  Eric Blake  <ebb9@byu.net>
40526
40527         VPATH fix.
40528         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40529
40530 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40531
40532         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40533         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40534
40535 2008-03-20  Eric Blake  <ebb9@byu.net>
40536
40537         Sync GNUmakefile with coreutils.
40538         * build-aux/GNUmakefile (have-Makefile): Rename...
40539         (_have-Makefile): ...to this, for namespace consideration.
40540         (GNUmakefile.cfg): Include, if present.
40541         (_autoreconf): Define a default.
40542         (_is-dist-target): New rule for rebuilds to pick up intra-release
40543         version.
40544         (maint-cfg.mk): Rename...
40545         (cfg.mk): ...to this.
40546
40547 2008-03-18  Jim Meyering  <meyering@redhat.com>
40548
40549         New script and module: mktempd
40550         * MODULES.html.sh (maint+release support): Add mktempd.
40551         * build-aux/mktempd: New file.
40552         * modules/mktempd: New file.
40553
40554 2008-03-15  Jim Meyering  <meyering@redhat.com>
40555
40556         Undo last change.
40557         * lib/sha1.c, lib/md5.c: 63 != ~63.
40558         Reported by Andreas Schwab.
40559
40560         sha1.c, md5.c: Hoist a redundant expression.
40561         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40562         "ctx->buflen" only once, before calling *_process_block.
40563         * lib/md5.c (md5_process_bytes): Likewise.
40564
40565 2008-03-14  Eric Blake  <ebb9@byu.net>
40566
40567         Bump copyright year in files generated by gnulib-tool.
40568         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40569         gnulib-tool, rather than hard-coding it.
40570
40571         Fix 'gnulib-tool --version' output to work with git.
40572         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40573         (startup): ...here.
40574         (func_version): Use it to invoke git-version-gen, rather than
40575         relying on CVS keyword expansion.  Modernize wording.
40576         (cvsdatestamp, last_checkin_date, version): Kill unused
40577         variables.
40578
40579 2008-03-12  Jim Meyering  <meyering@redhat.com>
40580
40581         Recognize optional cast of the argument to free.
40582         * build-aux/useless-if-before-free: Update regexps.
40583
40584         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40585
40586 2008-03-11  Bruno Haible  <bruno@clisp.org>
40587
40588         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40589         by a single package.
40590         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40591         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40592         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40593         Reported by Sam Steingold <sds@gnu.org>.
40594
40595 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40596
40597         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40598         repositories.
40599
40600 2008-03-11  Bruno Haible  <bruno@clisp.org>
40601
40602         Avoid conflicts between local macro definitions.
40603         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40604         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40605
40606 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40607             Bruno Haible  <bruno@clisp.org>
40608
40609         Make va_copy work with some version of xlc on AIX 5.1.
40610         * lib/stdarg.in.h: New file.
40611         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40612         On AIX, use a <stdarg.h> file substitute.
40613         * modules/stdarg (Files): Add lib/stdarg.in.h.
40614         (Depends-on): Add include_next.
40615         (Makefile.am): Build a stdarg.h substitute if requested.
40616         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40617
40618 2008-03-10  Bruno Haible  <bruno@clisp.org>
40619
40620         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40621         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40622         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40623
40624 2008-03-10  Bruno Haible  <bruno@clisp.org>
40625
40626         * modules/stdlib (Depends-on): Add include_next, remove
40627         absolute-header.
40628
40629 2008-03-09  Bruno Haible  <bruno@clisp.org>
40630
40631         * lib/freadahead.h (freadahead): Document more precisely.
40632         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40633         the sum of both buffer sizes.
40634         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40635         * NEWS: Document the change.
40636
40637 2008-03-09  Bruno Haible  <bruno@clisp.org>
40638
40639         Extend freadptr to return also the buffer size.
40640         * lib/freadptr.h (freadptr): Add sizep argument.
40641         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40642         (freadptr): Add sizep argument. Determine buffer size like freadahead
40643         does.
40644         * tests/test-freadptr.c: Don't include freadahead.h.
40645         (main): Adapt for new calling convention of freadptr.
40646         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40647         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40648         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40649         tests/test-freadptr2.sh.
40650         (Depends): Remove freadahead.
40651         (TESTS): Add test-freadptr2.sh.
40652         (check_PROGRAMS): Add test-freadptr2.
40653
40654 2008-03-09  Bruno Haible  <bruno@clisp.org>
40655
40656         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40657         Report and solution by Simon Josefsson.
40658
40659 2008-03-06  Bruno Haible  <bruno@clisp.org>
40660
40661         Make fflush after ungetc work on BSD platforms.
40662         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40663         * tests/test-fflush2.c: New file.
40664         * tests/test-fflush2.sh: New file.
40665         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40666         tests/test-fflush2.c.
40667         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40668         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40669
40670 2008-03-06  Eric Blake  <ebb9@byu.net>
40671
40672         Likewise for ftello.
40673         * modules/ftello (Dependencies): Add extensions.
40674         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40675
40676 2008-03-06  Bruno Haible  <bruno@clisp.org>
40677
40678         * modules/fseeko (Dependencies): Add extensions.
40679         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40680         Needed on glibc systems.
40681
40682 2008-03-06  Bruno Haible  <bruno@clisp.org>
40683
40684         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40685         email address.
40686         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40687
40688 2008-03-06  Bruno Haible  <bruno@clisp.org>
40689
40690         * users.txt: Add libgnupdf.
40691
40692 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40693
40694         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40695         (Header File Substitutes, Function Substitutes,
40696         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40697         (Build robot for gnulib): Fix typo.
40698
40699 2008-03-06  Bruno Haible  <bruno@clisp.org>
40700
40701         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40702         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40703
40704 2008-03-06  Bruno Haible  <bruno@clisp.org>
40705
40706         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40707         * doc/gnulib.texi: Include it.
40708
40709 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40710
40711         * modules/func (License): Change license to unlimited; there was
40712         no LGPL parts in the module anyway.
40713
40714 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40715
40716         * modules/__func__: Renamed to modules/func.
40717         * modules/__func__-tests: Renamed to modules/func-tests.
40718         * tests/test-__func__.c: Renamed to tests/test-func.c.
40719         * m4/__func__.m4: Renamed to m4/func.m4.
40720         * doc/gnulib.texi (__func__): Section renamed to func.
40721         Suggested by Eric Blake <ebb9@byu.net>.
40722
40723 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40724
40725         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40726         about __func__.  Make example self-contained.  Suggested by Eric
40727         Blake <ebb9@byu.net>.
40728
40729         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40730         Suggested by Eric Blake <ebb9@byu.net>.
40731
40732 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40733
40734         * modules/__func__: New file.
40735         * modules/__func__-tests: New file.
40736         * tests/test-__func__.c: New file.
40737         * m4/__func__.m4: New file.
40738         * doc/gnulib.texi (__func__): Document __func__ module.
40739
40740 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40741
40742         * modules/byteswap (License): Re-license as LGPLv2+.
40743
40744 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40745
40746         * doc/Makefile: Add pdf target.
40747
40748 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40749
40750         * modules/inline (License): Use 'unlimited', since there are only
40751         *.m4 files in this module.
40752
40753 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40754             Bruno Haible  <bruno@clisp.org>
40755
40756         Add support for HP C 7.1 on OpenVMS 8.3.
40757         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40758
40759 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40760
40761         Update VMS specifics.
40762         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40763
40764 2008-03-02  Jim Meyering  <meyering@redhat.com>
40765
40766         Remove the last dependency on the "free" module.
40767         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40768         Reported by Bob Proulx.
40769
40770         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40771
40772         Remove useless "if" tests before free.  Deprecate "free" module.
40773         * doc/posix-functions/free.texi: Mention that this
40774         module is no longer useful.
40775         * modules/free (Notice): Say this module is obsolete.
40776         * modules/readutmp (Depends-on): Remove free.
40777         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40778         * lib/putenv.c (putenv): Likewise.
40779         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40780         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40781         * tests/test-c-strcasestr.c (main): Likewise.
40782         * tests/test-c-strstr.c (main): Likewise.
40783         * tests/test-mbscasestr1.c (main): Likewise.
40784         * tests/test-mbscasestr2.c (main): Likewise.
40785         * tests/test-mbsstr1.c (main): Likewise.
40786         * tests/test-mbsstr2.c (main): Likewise.
40787         * tests/test-memmem.c (main): Likewise.
40788         * tests/test-strcasestr.c (main): Likewise.
40789         * tests/test-striconv.c (main): Likewise.
40790         * tests/test-striconveh.c (main): Likewise.
40791         * tests/test-striconveha.c (main): Likewise.
40792         * tests/test-strstr.c (main): Likewise.
40793
40794         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40795
40796         bootstrap: sync from coreutils again
40797         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40798
40799 2008-03-01  Jim Meyering  <meyering@redhat.com>
40800
40801         bootstrap: sync from coreutils
40802         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40803         also when the target doesn't exist.
40804
40805 2008-03-01  Eric Blake  <ebb9@byu.net>
40806
40807         Fix bugs in last patch.
40808         * lib/memchr2.c (memchr2): Fix typo.
40809         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40810         extension.
40811         Reported by Bruce Korb.
40812
40813         New module 'memchr2'.
40814         * modules/memchr2: New file.
40815         * modules/memchr2-tests: Likewise.
40816         * lib/memchr2.h: Likewise.
40817         * lib/memchr2.c: Likewise, based on memchr.c.
40818         * tests/test-memchr2.c: New test.
40819         * MODULES.html.sh (String handling): Add memchr2.
40820
40821 2008-02-29  Bruno Haible  <bruno@clisp.org>
40822
40823         * modules/freadseek-tests: New file.
40824         * tests/test-freadseek.sh: New file.
40825         * tests/test-freadseek.c: New file.
40826
40827         New module 'freadseek'.
40828         * modules/freadseek: New file.
40829         * lib/freadseek.h: New file.
40830         * lib/freadseek.c: New file.
40831         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40832
40833 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40834
40835         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40836         wydawca.
40837
40838         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40839         program_invocation_name and program_invocation_short_name are
40840         present.
40841
40842 2008-02-28  Bruno Haible  <bruno@clisp.org>
40843
40844         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40845         * tests/test-freadptr.sh: Also test non-seekable stdin.
40846
40847 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40848
40849         * build-aux/bootstrap (source_base, m4_base)
40850         (doc_base, tests_base): New variables.
40851         (gnulib_tool_options): Do not hardcode base directories, use
40852         the above variables instead.
40853
40854 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40855
40856         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40857
40858 2008-02-28  Bruno Haible  <bruno@clisp.org>
40859
40860         * modules/freadptr-tests: New file.
40861         * tests/test-freadptr.sh: New file.
40862         * tests/test-freadptr.c: New file.
40863
40864         New module 'freadptr'.
40865         * modules/freadptr: New file.
40866         * lib/freadptr.h: New file.
40867         * lib/freadptr.c: New file.
40868         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40869
40870 2008-02-26  Karl Berry  <karl@freefriends.org>
40871
40872         Sync from Libtool:
40873         * libltdl/argz.c (argz_add, argz_count): New functions.
40874         * libltdl/argz.in.h: Declare them.
40875         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40876
40877 2008-02-22  Bruno Haible  <bruno@clisp.org>
40878
40879         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40880         is a pointer type.  Needed for HP-UX 10.
40881         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40882         * doc/posix-functions/gmtime_r.texi: Likewise.
40883         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40884
40885 2008-02-24  Bruno Haible  <bruno@clisp.org>
40886
40887         * modules/environ-tests: New file.
40888         * tests/test-environ.c: New file.
40889
40890         New module 'environ'.
40891         * modules/environ: New file.
40892         * lib/unistd.in.h (environ): New declaration.
40893         * m4/environ.m4: New file.
40894         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40895         after use.
40896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40897         HAVE_DECL_ENVIRON.
40898         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40899         HAVE_DECL_ENVIRON.
40900         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40901         wrong claim that 'environ' is missing on some systems.
40902         * modules/execute (Depends-on): Add environ.
40903         * lib/execute.c (environ): Remove fallback declaration.
40904         * modules/pipe (Depends-on): Add environ.
40905         * lib/pipe.c (environ): Remove fallback declaration.
40906         * modules/setenv (Depends-on): Add environ.
40907         * lib/setenv.c (environ): Remove fallback declaration.
40908         * modules/unsetenv (Depends-on): Add environ.
40909         * lib/unsetenv.c (environ): Remove fallback declaration.
40910         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40911         m4/environ.m4.
40912         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40913         (gl_PREREQ_UNSETENV): Likewise.
40914
40915 2008-02-24  Bruno Haible  <bruno@clisp.org>
40916
40917         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40918
40919 2008-02-20  Bob Proulx  <bob@proulx.com>
40920
40921         Enable use of older two part flavor 'git describe'.
40922         * build-aux/git-version-gen: If using the older two part flavor of
40923         git version then recreate the third part now present in the
40924         newer three part flavor of git describe.
40925
40926 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40927
40928         * lib/fts.c (fts_build): Typo correction to comment.
40929
40930 2008-02-17  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40933         generating no-op conflicts.
40934
40935 2008-02-17  Bruno Haible  <bruno@clisp.org>
40936
40937         Speed up by 10%.
40938         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40939         result_entries, rather than an index-based loop.
40940
40941 2008-02-17  Bruno Haible  <bruno@clisp.org>
40942
40943         Speed up by 25%.
40944         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40945         'hashcode_cached'.
40946         (entry_create): New function.
40947         (entry_hashcode): Use the cached hashcode if possible.
40948         (read_changelog_file, try_split_merged_entry): Use entry_create.
40949
40950 2008-02-17  Bruno Haible  <bruno@clisp.org>
40951
40952         Speed up from O(n^2) to O(n) for long ChangeLog files.
40953         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40954         (read_changelog_file): Change implementation of entries_reversed list
40955         to rbtreehash.
40956         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40957
40958 2008-02-17  Bruno Haible  <bruno@clisp.org>
40959
40960         New option --split-merged-entry.
40961         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40962         (find_paragraph_end, try_split_merged_entry): New functions.
40963         (long_options): Add option --split-merged-entry.
40964         (usage): Document option --split-merged-entry.
40965         (main): Implement option --split-merged-entry.
40966         Reported by Eric Blake.
40967
40968 2008-02-17  Bruno Haible  <bruno@clisp.org>
40969
40970         * lib/git-merge-changelog.c: Include c-strstr.h.
40971         (main): Support the "git pull --rebase" situation.
40972         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40973         Reported by Eric Blake.
40974
40975 2008-02-16  Eric Blake  <ebb9@byu.net>
40976
40977         Avoid doubling \ in common case of "c-maybe" quoting style.
40978         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40979         eliding outer quotes.
40980         * lib/quotearg.h: Document this.
40981         * tests/test-quotearg.c (result_strings, inputs, results_g)
40982         (flag_results, locale_results): Test it by adding a new string to
40983         each test group.
40984         (compare_strings): Test new string.
40985
40986 2008-02-13  Eric Blake  <ebb9@byu.net>
40987
40988         Avoid trigraph quoting in default output.
40989         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40990         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40991         unless explicitly requested.
40992         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40993
40994 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40995
40996         Don't rely on signed integer overflowing to negative value.
40997         * lib/getugroups.c (getugroups): Include <limits.h>.
40998         Instead, compare against INT_MAX, and increment only if the test passes.
40999
41000 2008-02-13  Jim Meyering  <meyering@redhat.com>
41001         and Eric Blake  <ebb9@byu.net>
41002
41003         Avoid shadowing warning and compile errors on Linux.
41004         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41005         forwarding macros on Linux.
41006         (dcgettext): Define a stub, for Linux.
41007         (results_g, main): Avoid warnings.
41008
41009 2008-02-12  Eric Blake  <ebb9@byu.net>
41010
41011         Silence warning in last patch.
41012         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41013
41014         Quotearg part 4: add tests, fix c-maybe colon quoting.
41015         * lib/quotearg.h: Improve documentation.
41016         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41017         escapes when adding outer quotes.  When quoting trigraphs, use
41018         valid C notation.  When quoting NUL, omit extra characters if next
41019         character is not digit.  Alter prototype.
41020         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41021         callers.
41022         * modules/quotearg-tests: New module.
41023         * tests/test-quotearg.c: New test.
41024
41025 2008-02-07  Eric Blake  <ebb9@byu.net>
41026
41027         Quotearg part 3: add flag to control outer quote elision.
41028         * lib/quotearg.h (c_maybe_quoting_style): New style.
41029         (enum quoting_flags): Better documentation of flags.
41030         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41031         c-maybe style.
41032         (quotearg_buffer_restyled): Handle new flag to elide outer
41033         quotes.
41034
41035         Quotearg part 2: add flag that can control NUL elision.
41036         * lib/quotearg.h (set_quoting_flags): New prototype.
41037         * lib/quotearg.c (struct quoting_options): Add flag field.
41038         (set_quoting_flags): New function.
41039         (quotearg_buffer_restyled): Add flags parameter.
41040         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41041         (quotearg_n_options): Set the flag, since length cannot be
41042         returned.
41043         (quoting_options_from_style): Default flags correctly.
41044
41045         Quotearg part 1: more wrappers, restore quotearg_char state.
41046         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41047         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41048         (quotearg_colon_mem): New wrappers.
41049         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41050         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41051         functions.
41052         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41053         (quotearg_colon_mem): New functions.
41054
41055 2008-02-11  Bruno Haible  <bruno@clisp.org>
41056
41057         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41058         library in the current directory: it does not work with parallel make.
41059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41060
41061 2008-02-11  Bruno Haible  <bruno@clisp.org>
41062
41063         * .gitattributes: New file.
41064
41065 2008-02-11  Jim Meyering  <meyering@redhat.com>
41066
41067         useless-if-before-free: Fix reversed exit values.
41068         * build-aux/useless-if-before-free: Use correct values
41069         for EXIT_MATCH and EXIT_NO_MATCH.
41070
41071         * build-aux/useless-if-before-free: Close stdout carefully.
41072
41073 2008-02-10  Bruno Haible  <bruno@clisp.org>
41074
41075         New module 'git-merge-changelog'.
41076         * modules/git-merge-changelog: New file.
41077         * lib/git-merge-changelog.c: New file.
41078
41079 2008-02-10  Jim Meyering  <meyering@redhat.com>
41080
41081         useless-if-before-free: New option: --list (-l).
41082
41083         useless-if-before-free: Don't exit immediately upon open failure.
41084         * build-aux/useless-if-before-free: Exit 2 for errors.
41085         Upon failure to open a file, don't exit immediately.
41086         Rather, just warn and continue with any remaining files.
41087
41088 2008-02-10  Bruno Haible  <bruno@clisp.org>
41089
41090         New abstract list operation 'node_set_value'.
41091         * lib/gl_list.h (gl_list_node_set_value): New function.
41092         (struct gl_list_implementation): New field node_set_value.
41093         * lib/gl_list.c (gl_list_node_set_value): New function.
41094         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41095         (gl_array_list_implementation): Update.
41096         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41097         (gl_carray_list_implementation): Update.
41098         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41099         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41100         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41101         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41102         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41103         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41104         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41105         Update.
41106         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41107         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41108         (gl_sublist_list_implementation): Update.
41109
41110 2008-02-10  Bruno Haible  <bruno@clisp.org>
41111
41112         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41113         Needed when ELEMENT is #defined to 'some_type *'.
41114
41115 2008-02-10  Jim Meyering  <meyering@redhat.com>
41116
41117         New script and module: useless-if-before-free
41118         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41119         * build-aux/useless-if-before-free: New file.
41120         * modules/useless-if-before-free: New file.
41121
41122         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41123
41124         xstrtol_error: Fix typo.
41125         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41126         s/exit_failure/exit_status/.
41127
41128 2008-02-09  Jim Meyering  <meyering@redhat.com>
41129
41130         New script and module: gitlog-to-changelog
41131         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41132         * modules/gitlog-to-changelog: New file.
41133         * build-aux/gitlog-to-changelog: New file.
41134
41135 2008-02-08  Jim Meyering  <meyering@redhat.com>
41136
41137         Avoid two "parameter unused" warnings.
41138         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41139         Mark "st" as used.
41140
41141         Use "git COMMAND", not "git-COMMAND".
41142         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41143         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41144         * build-aux/git-version-gen: Use "git status", not "git-status".
41145
41146 2008-02-07  Bruno Haible  <bruno@clisp.org>
41147
41148         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41149         Avoids a crash on Windows Vista.
41150         Reported by Adam Strzelecki <ono@java.pl> via
41151         Simon Josefsson <simon@josefsson.org>.
41152
41153 2008-02-06  Bruno Haible  <bruno@clisp.org>
41154
41155         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41156         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41157         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41159         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41161         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41162         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41164         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41170         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41171         left-adjust flag.
41172         * tests/test-snprintf-posix.h (test_function): Likewise.
41173         * tests/test-sprintf-posix.h (test_function): Likewise.
41174         * tests/test-vasprintf-posix.c (test_function): Likewise.
41175         * doc/posix-functions/fprintf.texi: Update.
41176         * doc/posix-functions/printf.texi: Update.
41177         * doc/posix-functions/snprintf.texi: Update.
41178         * doc/posix-functions/sprintf.texi: Update.
41179         * doc/posix-functions/vfprintf.texi: Update.
41180         * doc/posix-functions/vprintf.texi: Update.
41181         * doc/posix-functions/vsnprintf.texi: Update.
41182         * doc/posix-functions/vsprintf.texi: Update.
41183         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41184
41185 2008-02-06  Bruno Haible  <bruno@clisp.org>
41186
41187         Fix bug introduced on 2008-01-26.
41188         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41189
41190 2008-02-06  Bruno Haible  <bruno@clisp.org>
41191
41192         Fix bug introduced on 2007-06-10.
41193         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41194         !NEED_PRINTF_FLAG_ZERO.
41195
41196 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41197
41198         getloadavg: use libperfstat on AIX5
41199         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41200
41201 2008-02-03  Bruno Haible  <bruno@clisp.org>
41202
41203         * lib/diffseq.h: Add comments about required #includes.
41204         Reported by Michael Biggs <gnulib@doubleplum.net>.
41205
41206 2008-02-01  Bruno Haible  <bruno@clisp.org>
41207
41208         * users.txt: Add gnuit.
41209
41210 2008-01-31  Bruno Haible  <bruno@clisp.org>
41211
41212         * lib/md4.c (set_uint32): Mark as inline.
41213         * lib/md5.c (set_uint32): Likewise.
41214         * lib/sha1.c (set_uint32): Likewise.
41215         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41216         * m4/md5.m4 (gl_MD5): Likewise.
41217         * m4/sha1.m4 (gl_SHA1): Likewise.
41218
41219 2008-01-31  Jim Meyering  <meyering@redhat.com>
41220
41221         Use "sizeof VAR", rather than a literal "4".
41222         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41223         * lib/md4.c (md4_read_ctx): Likewise.
41224         * lib/sha1.c (sha1_read_ctx): Likewise.
41225
41226 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41227
41228         * tests/test-sha1.c: New file, based on test-md5.c.
41229
41230         * modules/crypto/sha1-tests: New file.
41231
41232 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41233
41234         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41235
41236 2008-01-31  Jim Meyering  <meyering@redhat.com>
41237
41238         Prefer "sizeof v" over the equivalent "4".
41239         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41240         * lib/md5.c (set_uint32): Likewise.
41241         * lib/sha1.c (set_uint32): Likewise.
41242
41243 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41244
41245         * lib/sha1.c (set_uint32): Mark function as static.
41246
41247 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41248
41249         md2: clarify comments to say that alignment is not required.
41250         * lib/md2.h: Remove warning about alignment in comment.
41251         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41252         never been required.
41253
41254 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41255
41256         md4: adapt alignment constraint fix from sha1.
41257         * lib/md4.c (set_uint32): New function, from sha1.c
41258         (md4_read_ctx): Use it.
41259         (md4_finish_ctx): Doc fix.
41260         * lib/md4.h: Doc fix.
41261
41262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41263
41264         md5: adapt alignment constraint fix from sha1.
41265         * lib/md5.c (set_uint32): New function, from sha1.c
41266         (md5_read_ctx): Use it.
41267         (md5_finish_ctx): Doc fix.
41268         * lib/md5.h: Doc fix.
41269
41270 2008-01-30  Peter Palfrader  <weasel@debian.org>
41271
41272         sha1: remove the result buffer alignment constraint
41273         * lib/sha1.c (set_uint32): New function.
41274         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41275         constraint.
41276         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41277         * lib/sha1.h: Likewise.
41278
41279 2008-01-30  Andreas Schwab  <schwab@suse.de>
41280             Bruno Haible  <bruno@clisp.org>
41281
41282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41283         correct definition of LDBL_MIN_EXP.
41284
41285 2008-01-30  Karl Berry  <karl@gnu.org>
41286
41287         * config/srclist-update: try to preserve x bit on updates.
41288         * config/srclistvars.sh: update for karl.
41289
41290 2008-01-29  Jim Meyering  <meyering@redhat.com>
41291
41292         vasnprintf.c: Avoid warning about unused label
41293         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41294         "overflow" label definition and associated code with the
41295         same cpp condition that guards the sole use of that label.
41296
41297 2008-01-26  Bruno Haible  <bruno@clisp.org>
41298
41299         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41300         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41301         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41302         * lib/isnanl-nolibm.h (isnanl): Likewise.
41303         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41304
41305 2008-01-26  Bruno Haible  <bruno@clisp.org>
41306
41307         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41308         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41309
41310 2008-01-26  Bruno Haible  <bruno@clisp.org>
41311
41312         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41313         GCC >= 4.0 built-in.
41314         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41315
41316 2008-01-26  Bruno Haible  <bruno@clisp.org>
41317
41318         Rename isnan, applicable to 'double' only, to isnand.
41319         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41320         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41321         (configure.ac): Update.
41322         (Include): Replace "isnan.h" with "isnand.h".
41323         * m4/isnand.m4: Renamed from m4/isnan.m4.
41324         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41325         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41326         instead of isnan.c.
41327         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41328         instead of HAVE_ISNAN_IN_LIBC.
41329         (isnand): Renamed from isnan.
41330         * lib/isnand.c: New file.
41331         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41332         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41333         (Makefile.am): Update.
41334         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41335         Include isnand.h instead of isnan.h.
41336         (main): Test isnand instead of isnan.
41337         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41338         isnan-nolibm.
41339         * modules/frexp (Depends-on): Likewise.
41340         * modules/frexp-tests (Depends-on): Likewise.
41341         * modules/frexp-nolibm (Depends-on): Likewise.
41342         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41343         * modules/isfinite (Depends-on): Likewise.
41344         * modules/round-tests (Depends-on): Likewise.
41345         * modules/signbit (Depends-on): Likewise.
41346         * modules/signbit-tests (Depends-on): Likewise.
41347         * modules/snprintf-posix (Depends-on): Likewise.
41348         * modules/sprintf-posix (Depends-on): Likewise.
41349         * modules/trunc-tests (Depends-on): Likewise.
41350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41357         * modules/vasnprintf-posix (Depends-on): Likewise.
41358         * modules/vasprintf-posix (Depends-on): Likewise.
41359         * modules/vfprintf-posix (Depends-on): Likewise.
41360         * modules/vsnprintf-posix (Depends-on): Likewise.
41361         * modules/vsprintf-posix (Depends-on): Likewise.
41362         * lib/frexp.c: Include isnand.h instead of isnan.h.
41363         (ISNAN): Set to isnand instead of isnan.
41364         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41365         (gl_isfinited): Use isnand instead of isnan.
41366         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41367         (gl_signbitd): Use isnand instead of isnan.
41368         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41369         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41370         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41371         (main): Use isnand instead of isnan.
41372         * tests/test-round1.c: Include isnand.h.
41373         (main): Use isnand instead of isnan.
41374         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41375         (ISNAN): Set to isnand instead of isnan.
41376         * tests/test-trunc1.c: Include isnand.h.
41377         (main): Use isnand instead of isnan.
41378         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41379         (equal): Use isnand instead of isnan.
41380         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41381         isnand-nolibm.
41382         * NEWS: Mention the change.
41383
41384 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41385             Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41388         the GCC builtins for signbits are present and set
41389         REPLACE_SIGNBIT_USING_GCC if so.
41390         * lib/math.in.h (signbit): Define using GCC builtins if
41391         REPLACE_SIGNBIT_USING_GCC is set.
41392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41393         REPLACE_SIGNBIT_USING_GCC.
41394         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41395
41396 2008-01-25  Jim Meyering  <meyering@redhat.com>
41397
41398         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41399         * lib/poll.c: Include <config.h>, not "config.h".
41400         * tests/test-getaddrinfo.c: Likewise.
41401
41402 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41403
41404         * modules/sockets-tests: New file.
41405
41406 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41407
41408         * modules/sockets: New module, can be used to call WSA_Startup and
41409         WSA_Cleanup when needed.
41410
41411         * lib/sockets.h, lib/sockets.c: New files.
41412
41413         * m4/sockets.m4: New file.
41414
41415         * tests/test-sockets.c: New file.
41416
41417 2008-01-19  Bruno Haible  <bruno@clisp.org>
41418
41419         * doc/posix-headers: Renamed from doc/headers.
41420         * doc/posix-functions: Renamed from doc/functions.
41421         * doc/gnulib.texi: Update.
41422
41423 2008-01-19  Bruno Haible  <bruno@clisp.org>
41424
41425         * doc/glibc-functions/strcasestr.texi: Include contents of
41426         doc/functions/strcasestr.texi, fixing the list of platforms.
41427         * doc/functions/strcasestr.texi: Remove file.
41428
41429 2008-01-19  Bruno Haible  <bruno@clisp.org>
41430
41431         * doc/glibc-functions/memmem.texi: Include contents of
41432         doc/functions/memmem.texi.
41433         * doc/functions/memmem.texi: Remove file.
41434
41435 2008-01-18  Bruno Haible  <bruno@clisp.org>
41436
41437         * doc/glibc-functions/*.texi: New files.
41438         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41439         to use the new files.
41440
41441 2008-01-17  Bruno Haible  <bruno@clisp.org>
41442
41443         * tests/test-gethostname.c (main): Fix printf statement.
41444
41445 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41446
41447         * modules/gethostname-tests: New file.
41448
41449         * tests/test-gethostname.c: New file.
41450
41451 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41452
41453         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41454         used by the UNAME case.  Reported by Bruno Haible
41455         <bruno@clisp.org>.
41456
41457 2008-01-17  Eric Blake  <ebb9@byu.net>
41458
41459         Convert c-strcasestr to be more efficient.
41460         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41461         (Depends-on): Add c-strcase, remove malloca, strnlen.
41462         * tests/test-c-strcasestr.c (main): Enhance test.
41463         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41464
41465 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41466
41467         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41468         Use it in creating po/Makevars.
41469
41470 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41471
41472         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41473         Applications that requires it should initialize libgcrypt
41474         manually.
41475
41476 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41477
41478         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41479
41480 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41481
41482         Fix problem with getdate on mingw32 reported by Simon Josefsson
41483         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41484         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41485         tzname", when deciding whether to declare tzname.
41486         * lib/strftime.c (tzname): Likewise.
41487
41488 2008-01-15  Bruno Haible  <bruno@clisp.org>
41489
41490         Work around a MacOS X 10.5 bug in frexpl().
41491         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41492         * doc/functions/frexpl.texi: Document the bug.
41493         Reported by Elias Pipping <pipping@gentoo.org>.
41494
41495 2008-01-14  Eric Blake  <ebb9@byu.net>
41496
41497         Touch up previous patch.
41498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41499         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41500
41501         Convert strcasestr module to use Two-Way algorithm.
41502         * modules/strcasestr-simple: New module, based on the old
41503         strcasestr, but with Two-Way rather than KMP.
41504         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41505         * lib/string.in.h (rpl_strcasestr): Declare.
41506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41507         performance.
41508         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41509         * modules/string (Makefile.am): Support strcasestr.
41510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41511         * modules/strcasestr-tests (Depends-on): Check for alarm.
41512         * tests/test-strcasestr.c: Augment test.
41513         * lib/str-two-way.h: Clean up stray macro.
41514         * NEWS: Document new module.
41515         * MODULES.html.sh (string handling): Likewise.
41516         * doc/functions/strcasestr.texi: New file.
41517         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41518         here, since it is not a POSIX function.
41519
41520 2008-01-14  Colin Watson  <cjwatson@debian.org>
41521             Bruno Haible  <bruno@clisp.org>
41522
41523         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41524         works fine; if not, set REPLACE_STRSIGNAL.
41525         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41527         REPLACE_STRSIGNAL.
41528         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41529         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41530         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41531
41532 2008-01-14  Bruno Haible  <bruno@clisp.org>
41533
41534         * modules/strsignal (Include): Change to <string.h>.
41535
41536 2008-01-14  Colin Watson  <cjwatson@debian.org>
41537
41538         * modules/argp (Notice): Add a notice recommending to change
41539         XGETTEXT_OPTIONS.
41540         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41541
41542 2008-01-13  Colin Watson  <cjwatson@debian.org>
41543
41544         * modules/strsignal-tests: New file.
41545         * tests/test-strsignal.c: New file.
41546
41547         * lib/strsignal.c: New file, from glibc with modifications.
41548         * lib/siglist.h: New file, from glibc with modifications.
41549         * lib/string.in.h (strsignal): New declaration.
41550         * m4/strsignal.m4: New file.
41551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41552         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41553         * modules/strsignal: New file.
41554         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41555         HAVE_DECL_STRSIGNAL.
41556
41557 2008-01-13  Bruno Haible  <bruno@clisp.org>
41558
41559         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41560         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41561         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41563
41564 2008-01-13  Bruno Haible  <bruno@clisp.org>
41565
41566         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41567         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41568         * lib/argp.h (__attribute__): Likewise.
41569         * lib/c-stack.c (__attribute__): Likewise.
41570         * lib/error.h (__attribute__): Likewise.
41571         * lib/fts.c (__attribute__): Likewise.
41572         * lib/openat.h (__attribute__): Likewise.
41573         * lib/stdio.in.h (__attribute__): Likewise.
41574         * lib/string.in.h (__attribute__): Likewise.
41575         * lib/utimens.c (__attribute__): Likewise.
41576         * lib/vasnprintf.h (__attribute__): Likewise.
41577         * lib/xalloc.h (__attribute__): Likewise.
41578         * lib/xprintf.h (__attribute__): Likewise.
41579         * lib/xstrtol.h (__attribute__): Likewise.
41580         * lib/xvasprintf.h (__attribute__): Likewise.
41581
41582 2008-01-12  Bruno Haible  <bruno@clisp.org>
41583
41584         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41585         * doc/glibc-headers/a.out.texi: New file.
41586         * doc/glibc-headers/aliases.texi: New file.
41587         * doc/glibc-headers/alloca.texi: New file.
41588         * doc/glibc-headers/ar.texi: New file.
41589         * doc/glibc-headers/argp.texi: New file.
41590         * doc/glibc-headers/argz.texi: New file.
41591         * doc/glibc-headers/byteswap.texi: New file.
41592         * doc/glibc-headers/crypt.texi: New file.
41593         * doc/glibc-headers/endian.texi: New file.
41594         * doc/glibc-headers/envz.texi: New file.
41595         * doc/glibc-headers/err.texi: New file.
41596         * doc/glibc-headers/error.texi: New file.
41597         * doc/glibc-headers/execinfo.texi: New file.
41598         * doc/glibc-headers/fpu_control.texi: New file.
41599         * doc/glibc-headers/fstab.texi: New file.
41600         * doc/glibc-headers/fts.texi: New file.
41601         * doc/glibc-headers/getopt.texi: New file.
41602         * doc/glibc-headers/ieee754.texi: New file.
41603         * doc/glibc-headers/ifaddrs.texi: New file.
41604         * doc/glibc-headers/libintl.texi: New file.
41605         * doc/glibc-headers/mcheck.texi: New file.
41606         * doc/glibc-headers/mntent.texi: New file.
41607         * doc/glibc-headers/obstack.texi: New file.
41608         * doc/glibc-headers/paths.texi: New file.
41609         * doc/glibc-headers/printf.texi: New file.
41610         * doc/glibc-headers/pty.texi: New file.
41611         * doc/glibc-headers/resolv.texi: New file.
41612         * doc/glibc-headers/shadow.texi: New file.
41613         * doc/glibc-headers/sysexits.texi: New file.
41614         * doc/glibc-headers/ttyent.texi: New file.
41615
41616 2008-01-12  Jim Meyering  <meyering@redhat.com>
41617
41618         announce-gen: emit Gnulib's git-based version string.
41619         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41620         New option --gnulib-version=V, where V is expected to be
41621         the output of running git describe in the gnulib directory.
41622         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41623         not useful, and plan to stop publishing an xdelta file with each
41624         coreutils release.
41625
41626         * build-aux/announce-gen: Also check for lzma-compressed files.
41627
41628 2008-01-11  Bruno Haible  <bruno@clisp.org>
41629
41630         * tests/test-memmem.c (main): Increase maximum allowed time.
41631         * tests/test-strstr.c (main): Likewise.
41632
41633 2008-01-11  Bruno Haible  <bruno@clisp.org>
41634
41635         * doc/functions/memmem.texi: Add more precisions about platforms.
41636         * doc/functions/strstr.texi: Likewise.
41637
41638 2008-01-10  Eric Blake  <ebb9@byu.net>
41639
41640         * m4/strstr.m4: Delete cruft from copy-n-paste.
41641         Reported by Bruno Haible.
41642
41643 2008-01-10  Bruno Haible  <bruno@clisp.org>
41644
41645         Make c-strstr rely on strstr.
41646         * lib/c-strstr.c: Don't include str-kmp.h.
41647         (c_strstr): Define in terms of strstr.
41648         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41649         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41650
41651 2008-01-10  Bruno Haible  <bruno@clisp.org>
41652
41653         * doc/gnulib.texi (String Functions in C Locale): New section.
41654         * doc/c-ctype.texi: New file.
41655         * doc/c-strcase.texi: New file.
41656         * doc/c-strcaseeq.texi: New file.
41657         * doc/c-strcasestr.texi: New file.
41658         * doc/c-strstr.texi: New file.
41659         * doc/c-strtod.texi: New file.
41660         * doc/c-strtold.texi: New file.
41661
41662 2008-01-10  Eric Blake  <ebb9@byu.net>
41663
41664         * lib/relocatable.h: Fix a comment.
41665
41666 2008-01-10  Eric Blake  <ebb9@byu.net>
41667
41668         Share two-way algorithm.
41669         * lib/str-two-way.h: New file, merged from...
41670         * lib/memmem.c: ...here...
41671         * lib/strstr.c: ...and here.
41672         * modules/memmem (Files): Use it.
41673         * modules/strstr (Files): Likewise.
41674
41675         Avoid quadratic strstr implementations.
41676         * lib/strstr.c: New file.
41677         * m4/strstr.m4: Likewise.
41678         * modules/strstr: Likewise.
41679         * modules/strstr-tests: Likewise.
41680         * tests/test-strstr.c: Likewise.
41681         * lib/string.in.h (rpl_strstr): Declare.
41682         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41684         * modules/string (Makefile.am): Likewise.
41685         * MODULES.html.sh (string handling): Mention new module.
41686         * doc/functions/strstr.texi (strstr): Document the bug.
41687
41688 2008-01-10  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/relocatable.h (relocate): State whether result is freshly
41691         allocated or not.
41692         * lib/relocatable.c (relocate): Return a freshly allocated string
41693         instead of a pointer to a privately held string.
41694         Reported by Sylvain Beucler <beuc@gnu.org>.
41695
41696 2008-01-10  Colin Watson  <cjwatson@debian.org>
41697
41698         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41699         s/S_ISNLK/S_ISLNK/.
41700
41701 2008-01-09  Bruno Haible  <bruno@clisp.org>
41702
41703         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41704         and other files.
41705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41706         if it's only a guess.
41707         * modules/memmem: Simplify by depending on memmem-simple.
41708
41709 2008-01-09  Bruno Haible  <bruno@clisp.org>
41710
41711         Work around OpenBSD 4.0 tdelete() bug.
41712         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41713         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41714         macros and don't redefine the enum values.
41715         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41716         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41717         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41718
41719 2008-01-09  Bruno Haible  <bruno@clisp.org>
41720
41721         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41722         (main): Don't perform the tests if setlocale did not install a UTF-8
41723         locale. Needed on OpenBSD 4.0.
41724         * modules/wcwidth-tests (Depends-on): Add localcharset.
41725
41726 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41727
41728         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41729         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41730         * NEWS: announce this.
41731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41732
41733 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41734         and Eric Blake  <ebb9@byu.net>
41735
41736         Add memmem-simple module.
41737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41738         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41739         * modules/memmem-simple: New file.
41740         * modules/memmem (Description): Tweak.
41741         * MODULES.html.sh (string handling): Mention new module.
41742         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41743         addressed by memmem-simple.
41744         * NEWS: Document the difference.
41745
41746 2008-01-09  Eric Blake  <ebb9@byu.net>
41747
41748         Give gcc some memmem optimization hints.
41749         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41750         (strcasestr): Declare as pure.
41751         * modules/memmem (Maintainer): Claim my implementation.
41752
41753 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41754
41755         Support AIX 6.1 and higher.
41756         * build-aux/config.libpath: Likewise.
41757         * build-aux/config.rpath: Likewise.
41758
41759 2008-01-08  Jim Meyering  <meyering@redhat.com>
41760             Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41763         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41764         Reported by Peter Fales in
41765         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41766
41767 2008-01-08  Bruno Haible  <bruno@clisp.org>
41768
41769         * modules/unictype/category-of (Depends-on): Add
41770         unictype/category-none.
41771         * modules/unictype/category-and-tests (Depends-on): Add
41772         unictype/category-{L,N,Lu,Nd}.
41773         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41774         * modules/unictype/category-or-tests (Depends-on): Add
41775         unictype/category-{L,N}.
41776         * modules/unictype/category-name-tests (Depends-on): Add
41777         unictype/category-{Z,Nl}.
41778         Reported by Simon Josefsson.
41779
41780 2008-01-08  Bruno Haible  <bruno@clisp.org>
41781
41782         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41783         convention better.
41784         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41785         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41786         Reported by Peter Miller <millerp@canb.auug.org.au>.
41787
41788 2008-01-08  Eric Blake  <ebb9@byu.net>
41789
41790         Rewrite memmem to guarantee linear complexity without malloc.
41791         * lib/memmem.c (memmem): Use Two-Way rather than
41792         Knuth-Morris-Pratt, to allow O(1) space usage.
41793         (critical_factorization, two_way_short_needle)
41794         (two_way_long_needle): New functions.
41795         (knuth_morris_pratt): Delete.
41796         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41797         Add stdint.
41798         * tests/test-memmem.c (main): Add tests for periodic needle and
41799         sublinear performance.
41800         * doc/functions/memmem.texi (memmem): Document other deficiencies
41801         in cygwin and older glibc.
41802
41803 2008-01-08  Bruno Haible  <bruno@clisp.org>
41804
41805         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41806         augmentation.
41807
41808 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41809
41810         Add a configure time option: --disable-acl.
41811         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41812         AC_ARG_ENABLE(acl).
41813
41814 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41815
41816         * tests/test-localename.c: Don't include obsolete "setenv.h".
41817
41818         * modules/localename-tests (Depends-on): Need unsetenv.
41819
41820 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41821
41822         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41823
41824 2008-01-06  Colin Watson  <cjwatson@debian.org>
41825
41826         * users.txt: Add man-db.
41827
41828 2008-01-07  Bruno Haible  <bruno@clisp.org>
41829
41830         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41831         previous section name.
41832
41833 2008-01-07  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/progname.c (set_program_name): Don't strip off a leading
41836         "lt-" prefix outside a .libs directory.
41837         Suggested by Paul Eggert.
41838
41839 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41840             Bruno Haible  <bruno@clisp.org>
41841
41842         Improve memory cleanup in 'relocatable' module.
41843         * lib/relocatable.h (compute_curr_prefix): Change return type to
41844         'char *'.
41845         * lib/relocatable.c (compute_curr_prefix): Change return type to
41846         'char *'. Free curr_installdir after use.
41847         (relocate): Free curr_prefix_better after use.
41848         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41849
41850 2008-01-01  Bruno Haible  <bruno@clisp.org>
41851
41852         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41853         failure on older glibc systems.
41854         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41855
41856 2008-01-05  Eric Blake  <ebb9@byu.net>
41857
41858         Avoid quadratic system memmem.
41859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41860         Reported by Ralf Wildenhues.
41861
41862         Fix memmem test for mingw.
41863         * modules/memmem-tests (configure.ac): Check for alarm.
41864         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41865         it.
41866         * doc/functions/memmem.texi: New file.
41867         * doc/gnulib.texi (Function Substitutes): Add memmem.
41868         Reported by Bruno Haible.
41869
41870 2008-01-04  Bruno Haible  <bruno@clisp.org>
41871
41872         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41873         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41874         gl_HEADER_STRING_H_DEFAULTS.
41875
41876 2008-01-04  Eric Blake  <ebb9@byu.net>
41877
41878         Shorten duration of memmem test.
41879         * tests/test-memmem.c (main): Use alarm to declare failure if test
41880         is taking too long.
41881         Reported by Ralf Wildenhues.
41882
41883 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41884
41885         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41886         string, needed by strerror.
41887
41888 2008-01-03  Colin Watson  <cjwatson@debian.org>
41889             Bruno Haible  <bruno@clisp.org>
41890
41891         * doc/gnulib-tool.texi (Localization): New section.
41892
41893 2008-01-02  Bruno Haible  <bruno@clisp.org>
41894
41895         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41896         variables to 'unsigned char *' type.
41897         Reported by Paul Eggert.
41898
41899 2008-01-02  Jim Meyering  <jim@meyering.net>
41900
41901         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41902
41903 2007-12-31  Jim Meyering  <jim@meyering.net>
41904
41905         Avoid use of private FTS type name.
41906         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41907
41908 2007-12-30  Karl Berry  <karl@gnu.org>
41909
41910         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41911         work around defect in Texinfo and/or the standalone Info browser.
41912
41913 2007-12-30  Bruno Haible  <bruno@clisp.org>
41914
41915         Unify 5 copies of the KMP code.
41916         * lib/str-kmp.h: New file.
41917         * lib/c-strcasestr.c: Include str-kmp.h.
41918         (knuth_morris_pratt): Remove function.
41919         (c_strcasestr): Update.
41920         * lib/c-strstr.c: Include str-kmp.h.
41921         (knuth_morris_pratt): Remove function.
41922         (c_strcasestr): Update.
41923         * lib/mbscasestr.c: Include str-kmp.h.
41924         (knuth_morris_pratt_unibyte): Remove function.
41925         * lib/mbsstr.c: Include str-kmp.h.
41926         (knuth_morris_pratt_unibyte): Remove function.
41927         * lib/strcasestr.c: Include str-kmp.h.
41928         (knuth_morris_pratt): Remove function.
41929         (strcasestr): Update.
41930         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41931         * modules/c-strstr (Files): Likewise.
41932         * modules/mbscasestr (Files): Likewise.
41933         * modules/mbsstr (Files): Likewise.
41934         * modules/strcasestr (Files): Likewise.
41935         Suggested by Paul Eggert.
41936
41937 2007-12-30  Bruno Haible  <bruno@clisp.org>
41938
41939         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41940         defined.
41941
41942 2007-12-30  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/xmalloca.h: Include xalloc.h.
41945         (xnmalloca): New macro.
41946
41947 2007-12-30  Bruno Haible  <bruno@clisp.org>
41948
41949         * lib/malloca.h (nmalloca): New macro.
41950         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41951         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41952         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41953         knuth_morris_pratt_multibyte): Likewise.
41954         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41955         knuth_morris_pratt_multibyte): Likewise.
41956         * lib/memmem.c (knuth_morris_pratt): Likewise.
41957         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41958
41959 2007-12-25  Bruno Haible  <bruno@clisp.org>
41960
41961         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41962         * lib/glob.c: Don't include openat.h.
41963         (link_exists2_p): Add back the code that deals with the
41964         !GLOB_ALTDIRFUNC case.
41965         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41966         let it do the filename concatenation.
41967         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41968         * modules/glob (Depends-on): Remove openat.
41969
41970 2007-12-31  Bruno Haible  <bruno@clisp.org>
41971
41972         * modules/dirfd (License): Change to LGPLv2+.
41973         Approved by Jim Meyering.
41974
41975 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41976
41977         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41978         when multiplying M by sizeof (size_t).
41979
41980 2007-12-10  Martin Lambers  <marlam@marlam.de>
41981
41982         Override getpagesize on mingw.
41983         * lib/getpagesize.c: New file.
41984         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41985         * modules/getpagesize (Files): Add lib/getpagesize.c.
41986         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41988         REPLACE_GETPAGESIZE.
41989         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41990
41991 2007-12-25  Bruno Haible  <bruno@clisp.org>
41992
41993         * modules/localcharset (Notice): New field.
41994         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41995         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41996
41997 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41998             Bruno Haible  <bruno@clisp.org>
41999
42000         Avoid using the syntax symbol() in formatted documentation.
42001         * MODULES.html.sh (func_module): When replacing symbol() with a
42002         hyperlink, remove the parentheses. Show an error if some remain.
42003         Recognize and render the '...' syntax.
42004         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42005         Rework. Add paragraph about GCC's inlining.
42006         * doc/alloca.texi: Likewise.
42007         * doc/error.texi: Remove parentheses from symbol reference.
42008         * doc/gnulib-intro.texi: Likewise.
42009         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42010         * modules/fnmatch (Description): Reword to say "the ... function".
42011         * modules/full-read (Description): Likewise.
42012         * modules/full-write (Description): Likewise.
42013         * modules/safe-read (Description): Likewise.
42014         * modules/safe-write (Description): Likewise.
42015         * modules/strchrnul (Description): Likewise.
42016         * modules/trim (Description): Likewise.
42017         * modules/error (Description): Remove parentheses from symbol
42018         references.
42019         * modules/verror (Description): Likewise.
42020         Reported by Karl Berry.
42021
42022 2007-12-25  Bruno Haible  <bruno@clisp.org>
42023
42024         Fixup after 2007-10-16 commit.
42025         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42026
42027 2007-12-24  Bruno Haible  <bruno@clisp.org>
42028
42029         Make --enable-relocatable work with DESTDIR.
42030         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42031         to compute installdir from destprog.
42032         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42033         also set the RELOC_DESTDIR variable.
42034         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42035
42036 2007-12-24  Bruno Haible  <bruno@clisp.org>
42037
42038         Fix link error due to xalloc_die().
42039         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42040         of xreadlink.
42041         * lib/relocwrapper.c: Update comments.
42042         * build-aux/install-reloc: Remove xreadlink.c from file list.
42043         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42044         xreadlink.c.
42045         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42046
42047 2007-12-24  Bruno Haible  <bruno@clisp.org>
42048
42049         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42050         * lib/setenv.h: Remove file.
42051         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42052         lib/setenv.h.
42053         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42054         (Depends-on): Add stdlib.
42055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42056         gl_FUNC_UNSETENV.
42057         (Include): Replace setenv.h with <stdlib.h>.
42058         * modules/unsetenv: New file.
42059         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42060         * lib/unsetenv.c: Include <stdlib.h> first.
42061         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42062         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42063         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42064         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42065         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42066         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42068         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42069         * doc/functions/unsetenv.texi: Update.
42070         * modules/xsetenv (Depends-on): Add unsetenv.
42071         * modules/getdate (Depends-on): Likewise.
42072         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42073         * lib/xsetenv.c: Don't include setenv.h.
42074         * lib/getdate.y: Likewise.
42075         * lib/relocwrapper.c: Likewise.
42076         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42077         (Depends-on): Add stdlib.
42078         * NEWS: Mention the changes.
42079         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42080
42081 2007-12-23  Bruno Haible  <bruno@clisp.org>
42082
42083         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42084         indentation.
42085
42086 2007-12-23  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/c-strcasestr.c: Add more comments.
42089         * lib/c-strstr.c: Likewise.
42090         * lib/mbscasestr.c: Likewise.
42091         * lib/mbsstr.c: Likewise.
42092         * lib/strcasestr.c: Likewise.
42093         * lib/memmem.c: Likewise.
42094
42095 2007-12-23  Bruno Haible  <bruno@clisp.org>
42096
42097         * tests/test-memmem.c: Include <string.h> first.
42098
42099 2007-12-22  Bruno Haible  <bruno@clisp.org>
42100
42101         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42102         the contents of $testsbase.
42103         Reported by Ralf Wildenhues.
42104
42105 2007-12-22  Bruno Haible  <bruno@clisp.org>
42106
42107         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42108         two variables local_ldadd_before, local_ldadd_last.
42109
42110 2007-12-20  Eric Blake  <ebb9@byu.net>
42111
42112         Work around circular library issue when cross-compiling.
42113         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42114         that progname.o does not need to pull in rpl_memcmp.
42115
42116 2007-12-19  Eric Blake  <ebb9@byu.net>
42117
42118         Fix memmem to avoid O(n^2) worst-case complexity.
42119         * lib/memmem.c (knuth_morris_pratt): New function.
42120         (memmem): Use it if first few naive iterations fail.
42121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42122         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42123         * modules/memchr (License): Likewise.
42124         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42125         malloca.
42126         * tests/test-memmem.c: Rewrite, borrowing ideas from
42127         test-mbsstr1.c; the old version wouldn't even compile!
42128         * modules/memmem-tests: New file.
42129         * lib/string.in.h (rpl_memmem): Add declaration.
42130         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42132         REPLACE_MEMMEM.
42133
42134 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42135
42136         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42137         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42138         before any system include files, and undef after them all.  This
42139         should fix a problem on VMS reported by John E. Malmberg in
42140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42141
42142 2007-12-17  Eric Blake  <ebb9@byu.net>
42143
42144         Revert addition of verify, for BSD/OS.
42145         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42146         can't handle large files, for the sake of obsolete platforms.
42147         * modules/fseeko (Depends-on): Remove verify.
42148         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42149         * doc/functions/ftello.texi (ftello): Likewise.
42150         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42151         Reported by Larry Jones.
42152
42153 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42154
42155         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42156         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42157
42158 2007-12-17  Jim Meyering  <meyering@redhat.com>
42159
42160         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42161         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42162         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42163         * modules/getcwd (Depends-on): Add openat.
42164         Reported by Petr Salinger.
42165
42166 2007-12-17  Bruno Haible  <bruno@clisp.org>
42167
42168         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42169         avoid a segmentation fault of the configure test on x86_64 systems.
42170
42171 2007-12-15  Jim Meyering  <meyering@redhat.com>
42172
42173         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42174
42175 2007-12-13  Eric Blake  <ebb9@byu.net>
42176
42177         Another fseek test.
42178         * tests/test-fseek.c (main): Also test ungetc handling.
42179         * tests/test-fseeko.c (main): Likewise.
42180         * modules/fseeko (Depends-on): Add verify.
42181         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42182         large.
42183         Reported by Larry Jones.
42184
42185         Fix fseeko on mingw.
42186         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42187         seek.
42188
42189         Beef up fseek tests.
42190         * tests/test-fseek.c (main): Also test eof handling.
42191         * tests/test-fseeko.c (main): Likewise.
42192         Reported by Larry Jones.
42193
42194 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42195
42196         Fix fseeko on BSD-based platforms.
42197         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42198         successful seek.
42199
42200 2007-12-12  Eric Blake  <ebb9@byu.net>
42201
42202         Allow circular dependency of separate libtests.a
42203         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42204         when use_libtests.
42205
42206 2007-12-11  Eric Blake  <ebb9@byu.net>
42207
42208         Fix bug with -0.0L in previous patch.
42209         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42210         * tests/test-isnan.c (main): Also test on zeroes.
42211         * tests/test-isnanf.c (main): Likewise.
42212         * tests/test-isnanl.h (main): Likewise.
42213
42214         Detect pseudo-denormals on x86 even when cross-compiling.
42215         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42216         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42217         invalid bit patterns that happen to satisfy ==.
42218
42219         Avoid link failures with separate libtests.a.
42220         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42221         last, to satisfy circular dependencies.
42222
42223 2007-12-11  Eric Blake  <ebb9@byu.net>
42224         and Bruno Haible  <bruno@clisp.org>
42225
42226         Fix OpenBSD 4.0 <float.h> handling of long double.
42227         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42228         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42229         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42230
42231 2007-12-11  Jim Meyering  <meyering@redhat.com>
42232
42233         * users.txt: Add libvirt.
42234
42235         Support versions of autoconf prior to 2.59c.
42236         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42237         if it is not already defined.
42238
42239 2007-12-09  Bruno Haible  <bruno@clisp.org>
42240
42241         Let 'gnulib-tool --import' collect sources needed for the tests in
42242         tests/ rather than in lib/.
42243         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42244         argument. If true, add rules to generate libtests.a, and put libtests.a
42245         into $(LDADD). Consider source files in subdirectories and set
42246         uses_subdirs.
42247         (func_emit_initmacro_start, func_emit_initmacro_end,
42248         func_emit_initmacro_done): Pass all arguments explicitly.
42249         (func_import): Determine two module lists main_modules,
42250         testsrelated_modules. Determine use_libtests. Determine two variables
42251         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42252         instead of just sed_transform_lib_file. Determine two variables
42253         main_files and testsrelated_files. Compute 'files' as the union of
42254         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42255         func_add_or_update. In the generated gnulib-comp.m4, collect the
42256         object files for tests/ in different variables than those for lib/.
42257         Substitute LIBTESTS_LIBDEPS.
42258         (func_create_testdir): Combine the uses_subdirs results from
42259         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42260
42261 2007-12-09  Bruno Haible  <bruno@clisp.org>
42262
42263         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42264         the build-aux directory.
42265
42266 2007-12-09  Bruno Haible  <bruno@clisp.org>
42267
42268         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42269         introduced on 2006-09-09.
42270
42271 2007-12-07  Jim Meyering  <meyering@redhat.com>
42272
42273         Let these macros work also with autoconf-2.59.
42274         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42275         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42276         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42277
42278 2007-12-06  Jim Meyering  <meyering@redhat.com>
42279
42280         Avoid a configure-time syntax error in gl_FUNC_ACL.
42281         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42282         function in each branch, before testing the cache variable.
42283
42284 2007-12-04  Eric Blake  <ebb9@byu.net>
42285
42286         Make scripts executable.
42287         * build-aux/config.guess: Add execute permissions.
42288         * build-aux/config.sub: Likewise.
42289         * build-aux/gendocs.sh: Likewise.
42290
42291         Fix frexp on mingw.
42292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42293         cross-compiling.
42294         * doc/functions/frexp.texi (frexp): Document the bug.
42295
42296         Make cygwin fseeko check more reliable.
42297         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42298         version numbers, rather than unrelated feature check.
42299         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42300         * doc/functions/ftello.texi (ftello): Likewise.
42301         Reported by Bruno Haible.
42302
42303         * m4/strerror.m4: Bump version number.
42304
42305 2007-12-03  Bruno Haible  <bruno@clisp.org>
42306
42307         * doc/functions/mprotect.texi: Mention the mingw problem.
42308
42309 2007-12-03  Eric Blake  <ebb9@byu.net>
42310
42311         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42312         REPLACE_STRERROR is initialized before this macro.
42313
42314 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42315
42316         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42317         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42318         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42319         put -lsec in even for programs other than 'ls'.  This fixes a problem
42320         for gettext reported by Bruno Haible in
42321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42322         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42323         Add support for Solaris 10.  This isn't efficient, but should get the
42324         job done for now.
42325
42326 2007-12-03  James Youngman  <jay@gnu.org>
42327
42328         * doc/regexprops-generic.texi: change "an close-group" to "a
42329         close-group" and "illegal" to "not allowed".
42330
42331 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42332
42333         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42334         pr_byname.h. Needed for the rare case when the maintainer has done
42335         "make maintainer-clean" in the source directory and then attempts a
42336         build outside the source directory.
42337         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42338         scripts_byname.h.
42339
42340 2007-12-02  Martin Lambers <marlam@marlam.de>
42341             Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/getpagesize.h: Remove file.
42344         * lib/unistd.in.h: Include declaration of getpagesize here.
42345         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42346         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42347         HAVE_SYS_PARAM_H.
42348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42349         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42350         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42351         (Depends-on): Add unistd.
42352         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42353         (Include): Use <unistd.h> instead of getpagesize.h.
42354         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42355         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42356         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42357         gl_GETPAGESIZE invocation, already handled by module dependency.
42358         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42359
42360 2007-12-02  Bruno Haible  <bruno@clisp.org>
42361
42362         * modules/strings-tests: New file.
42363         * tests/test-strings.c: New file.
42364
42365         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42366         * lib/strings.in.h: New file.
42367         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42368         * m4/strings_h.m4: New file.
42369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42370         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42371         * modules/strings: New file.
42372         * modules/string (Makefile.am): Update.
42373         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42374         Reported by Karl Berry.
42375
42376 2007-12-01  Eric Blake  <ebb9@byu.net>
42377
42378         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42379         accomodate fix in cygwin 1.5.25.
42380
42381 2007-12-01  Jim Meyering  <meyering@redhat.com>
42382
42383         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42384         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42385         that would inhibit utf8-optimization of a regexp containing line-
42386         or buffer-anchors, e.g., `^', `$'.
42387
42388 2007-11-30  Bruno Haible  <bruno@clisp.org>
42389
42390         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42391         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42392         glthread_recursive_lock_init.
42393         * lib/lock.c (glthread_recursive_lock_init)
42394         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42395         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42396
42397 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42398
42399         New function qset_acl, like set_acl but with syscall semantics.
42400         * lib/acl.h (qset_acl): New decl.
42401         * lib/acl.c (qset_acl): New function.
42402         (set_acl): Use new function.  Use more-consistent diagnostics.
42403
42404 2007-11-28  Jim Meyering  <meyering@redhat.com>
42405
42406         * modules/physmem (License): Change from GPL to LGPLv2+.
42407
42408 2007-11-26  Bruno Haible  <bruno@clisp.org>
42409
42410         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42411         'long double' type has excess precision.
42412         Reported by Jim Meyering in
42413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42414
42415 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42416
42417         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42418         Sync from <http://gnu.org/licenses>.
42419         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42420         with license text from same location.
42421         * doc/maintain.texi, doc/standards.texi:  Sync from
42422         <http://savannah.gnu.org/projects/gnustandards>.
42423
42424 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
42425         and Jim Meyering  <meyering@redhat.com>
42426
42427         Adjust getdate' grammar to accept a slightly more regular language.
42428         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42429         Before, the former was rejected.
42430         * lib/getdate.y (digits_to_date_time): New function, factored
42431         out of ...
42432         (number): ...here.  Just call digits_to_date_time.
42433         (hybrid): New non-terminal to handle an <unsigned number,
42434         signed relative offset> sequence consistently.
42435
42436 2007-11-18  Jim Meyering  <meyering@redhat.com>
42437
42438         Pull my changes from coreutils:
42439         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42440         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42441         use of $gnulib_tool_option_extras, so that it's separated from the
42442         preceding argument.
42443
42444         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42445         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42446         parent destination directories before copying a file into place.
42447
42448 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42449
42450         bootstrap: work also with 4-argument variant of AC_INIT
42451         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42452
42453 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         Port test-getaddrinfo to Solaris.
42456         Problem reported by Bruno Haible in
42457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42458         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42459         explanation of setting 'hints'.
42460         Don't reject an implementation merely because it returns EAI_SERVICE.
42461         (EAI_SERVICE): Define to 0 if not defined.
42462
42463 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42464
42465         The license of gnu-make and posix-shell is now "GPLed build tool".
42466         * modules/gnu-make (License): Likewise.
42467         * modules/posix-shell (License): Likewise.
42468
42469         New module posix-shell, for determining a POSIX shell
42470         or perhaps something that is close enough to a POSIX shell.
42471         * m4/posix-shell.m4: New file.
42472         * modules/posix-shell: New file.
42473
42474         * MODULES.html.sh: Mention new module.
42475
42476         New module gnu-make, for determining whether we're using GNU Make.
42477         * m4/gnu-make.m4: New file.
42478         * modules/gnu-make: New file.
42479         * MODULES.html.sh: Mention new module.
42480
42481 2007-11-14  Jim Meyering  <meyering@redhat.com>
42482
42483         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42484         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42485         use this macro to create a function _definition_.
42486         Remove useless "#undef ARGMATCH_DIE".
42487
42488 2007-11-14  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/config.charset: Update for OpenBSD 4.1.
42491         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42492
42493 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42494
42495         Document 64-bit #if problems in stdint.texi.
42496         * doc/headers/stdint.texi (stdint.h): Mention problems with
42497         64-bit-#if, and how to work around them.
42498
42499         Don't insist on 'long long int' support in the preprocessor.  It
42500         breaks too many things.  For example, PRIdMAX still uses a 'long
42501         long int' format with the latest Sun compiler, even though
42502         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42503         preprocessor problem.  This causes the latest coreutils to dump
42504         core on Solaris 10 sparc with the Sun C compiler.
42505         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42506         the troublesome expressions at configure-time, not at #if-time.
42507         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42508         preprocessor.
42509         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42510         compile-time C checks, done at 'configure'-time.
42511         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42512         * modules/inttypes (Makefile): Substitute the new symbols that
42513         gl_INTTYPES_H now generates.
42514         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42515
42516 2007-11-12  Bruno Haible  <bruno@clisp.org>
42517
42518         Tests for Unicode character classification functions.
42519
42520         * modules/unictype/bidicategory-byname-tests: New file.
42521         * modules/unictype/bidicategory-name-tests: New file.
42522         * modules/unictype/bidicategory-of-tests: New file.
42523         * modules/unictype/bidicategory-test-tests: New file.
42524         * modules/unictype/block-list-tests: New file.
42525         * modules/unictype/block-of-tests: New file.
42526         * modules/unictype/block-test-tests: New file.
42527         * modules/unictype/category-C-tests: New file.
42528         * modules/unictype/category-Cc-tests: New file.
42529         * modules/unictype/category-Cf-tests: New file.
42530         * modules/unictype/category-Cn-tests: New file.
42531         * modules/unictype/category-Co-tests: New file.
42532         * modules/unictype/category-Cs-tests: New file.
42533         * modules/unictype/category-L-tests: New file.
42534         * modules/unictype/category-Ll-tests: New file.
42535         * modules/unictype/category-Lm-tests: New file.
42536         * modules/unictype/category-Lo-tests: New file.
42537         * modules/unictype/category-Lt-tests: New file.
42538         * modules/unictype/category-Lu-tests: New file.
42539         * modules/unictype/category-M-tests: New file.
42540         * modules/unictype/category-Mc-tests: New file.
42541         * modules/unictype/category-Me-tests: New file.
42542         * modules/unictype/category-Mn-tests: New file.
42543         * modules/unictype/category-N-tests: New file.
42544         * modules/unictype/category-Nd-tests: New file.
42545         * modules/unictype/category-Nl-tests: New file.
42546         * modules/unictype/category-No-tests: New file.
42547         * modules/unictype/category-P-tests: New file.
42548         * modules/unictype/category-Pc-tests: New file.
42549         * modules/unictype/category-Pd-tests: New file.
42550         * modules/unictype/category-Pe-tests: New file.
42551         * modules/unictype/category-Pf-tests: New file.
42552         * modules/unictype/category-Pi-tests: New file.
42553         * modules/unictype/category-Po-tests: New file.
42554         * modules/unictype/category-Ps-tests: New file.
42555         * modules/unictype/category-S-tests: New file.
42556         * modules/unictype/category-Sc-tests: New file.
42557         * modules/unictype/category-Sk-tests: New file.
42558         * modules/unictype/category-Sm-tests: New file.
42559         * modules/unictype/category-So-tests: New file.
42560         * modules/unictype/category-Z-tests: New file.
42561         * modules/unictype/category-Zl-tests: New file.
42562         * modules/unictype/category-Zp-tests: New file.
42563         * modules/unictype/category-Zs-tests: New file.
42564         * modules/unictype/category-and-not-tests: New file.
42565         * modules/unictype/category-and-tests: New file.
42566         * modules/unictype/category-byname-tests: New file.
42567         * modules/unictype/category-name-tests: New file.
42568         * modules/unictype/category-none-tests: New file.
42569         * modules/unictype/category-of-tests: New file.
42570         * modules/unictype/category-or-tests: New file.
42571         * modules/unictype/category-test-withtable-tests: New file.
42572         * modules/unictype/combining-class-tests: New file.
42573         * modules/unictype/ctype-alnum-tests: New file.
42574         * modules/unictype/ctype-alpha-tests: New file.
42575         * modules/unictype/ctype-blank-tests: New file.
42576         * modules/unictype/ctype-cntrl-tests: New file.
42577         * modules/unictype/ctype-digit-tests: New file.
42578         * modules/unictype/ctype-graph-tests: New file.
42579         * modules/unictype/ctype-lower-tests: New file.
42580         * modules/unictype/ctype-print-tests: New file.
42581         * modules/unictype/ctype-punct-tests: New file.
42582         * modules/unictype/ctype-space-tests: New file.
42583         * modules/unictype/ctype-upper-tests: New file.
42584         * modules/unictype/ctype-xdigit-tests: New file.
42585         * modules/unictype/decimal-digit-tests: New file.
42586         * modules/unictype/digit-tests: New file.
42587         * modules/unictype/mirror-tests: New file.
42588         * modules/unictype/numeric-tests: New file.
42589         * modules/unictype/property-alphabetic-tests: New file.
42590         * modules/unictype/property-ascii-hex-digit-tests: New file.
42591         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42592         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42593         * modules/unictype/property-bidi-block-separator-tests: New file.
42594         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42595         * modules/unictype/property-bidi-common-separator-tests: New file.
42596         * modules/unictype/property-bidi-control-tests: New file.
42597         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42598         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42599         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42600         * modules/unictype/property-bidi-european-digit-tests: New file.
42601         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42602         * modules/unictype/property-bidi-left-to-right-tests: New file.
42603         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42604         * modules/unictype/property-bidi-other-neutral-tests: New file.
42605         * modules/unictype/property-bidi-pdf-tests: New file.
42606         * modules/unictype/property-bidi-segment-separator-tests: New file.
42607         * modules/unictype/property-bidi-whitespace-tests: New file.
42608         * modules/unictype/property-byname-tests: New file.
42609         * modules/unictype/property-combining-tests: New file.
42610         * modules/unictype/property-composite-tests: New file.
42611         * modules/unictype/property-currency-symbol-tests: New file.
42612         * modules/unictype/property-dash-tests: New file.
42613         * modules/unictype/property-decimal-digit-tests: New file.
42614         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42615         * modules/unictype/property-deprecated-tests: New file.
42616         * modules/unictype/property-diacritic-tests: New file.
42617         * modules/unictype/property-extender-tests: New file.
42618         * modules/unictype/property-format-control-tests: New file.
42619         * modules/unictype/property-grapheme-base-tests: New file.
42620         * modules/unictype/property-grapheme-extend-tests: New file.
42621         * modules/unictype/property-grapheme-link-tests: New file.
42622         * modules/unictype/property-hex-digit-tests: New file.
42623         * modules/unictype/property-hyphen-tests: New file.
42624         * modules/unictype/property-id-continue-tests: New file.
42625         * modules/unictype/property-id-start-tests: New file.
42626         * modules/unictype/property-ideographic-tests: New file.
42627         * modules/unictype/property-ids-binary-operator-tests: New file.
42628         * modules/unictype/property-ids-trinary-operator-tests: New file.
42629         * modules/unictype/property-ignorable-control-tests: New file.
42630         * modules/unictype/property-iso-control-tests: New file.
42631         * modules/unictype/property-join-control-tests: New file.
42632         * modules/unictype/property-left-of-pair-tests: New file.
42633         * modules/unictype/property-line-separator-tests: New file.
42634         * modules/unictype/property-logical-order-exception-tests: New file.
42635         * modules/unictype/property-lowercase-tests: New file.
42636         * modules/unictype/property-math-tests: New file.
42637         * modules/unictype/property-non-break-tests: New file.
42638         * modules/unictype/property-not-a-character-tests: New file.
42639         * modules/unictype/property-numeric-tests: New file.
42640         * modules/unictype/property-other-alphabetic-tests: New file.
42641         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42642         * modules/unictype/property-other-grapheme-extend-tests: New file.
42643         * modules/unictype/property-other-id-continue-tests: New file.
42644         * modules/unictype/property-other-id-start-tests: New file.
42645         * modules/unictype/property-other-lowercase-tests: New file.
42646         * modules/unictype/property-other-math-tests: New file.
42647         * modules/unictype/property-other-uppercase-tests: New file.
42648         * modules/unictype/property-paired-punctuation-tests: New file.
42649         * modules/unictype/property-paragraph-separator-tests: New file.
42650         * modules/unictype/property-pattern-syntax-tests: New file.
42651         * modules/unictype/property-pattern-white-space-tests: New file.
42652         * modules/unictype/property-private-use-tests: New file.
42653         * modules/unictype/property-punctuation-tests: New file.
42654         * modules/unictype/property-quotation-mark-tests: New file.
42655         * modules/unictype/property-radical-tests: New file.
42656         * modules/unictype/property-sentence-terminal-tests: New file.
42657         * modules/unictype/property-soft-dotted-tests: New file.
42658         * modules/unictype/property-space-tests: New file.
42659         * modules/unictype/property-terminal-punctuation-tests: New file.
42660         * modules/unictype/property-test-tests: New file.
42661         * modules/unictype/property-titlecase-tests: New file.
42662         * modules/unictype/property-unassigned-code-value-tests: New file.
42663         * modules/unictype/property-unified-ideograph-tests: New file.
42664         * modules/unictype/property-uppercase-tests: New file.
42665         * modules/unictype/property-variation-selector-tests: New file.
42666         * modules/unictype/property-white-space-tests: New file.
42667         * modules/unictype/property-xid-continue-tests: New file.
42668         * modules/unictype/property-xid-start-tests: New file.
42669         * modules/unictype/property-zero-width-tests: New file.
42670         * modules/unictype/scripts-tests: New file.
42671         * modules/unictype/syntax-c-ident-tests: New file.
42672         * modules/unictype/syntax-c-whitespace-tests: New file.
42673         * modules/unictype/syntax-java-ident-tests: New file.
42674         * modules/unictype/syntax-java-whitespace-tests: New file.
42675         * tests/unictype/test-bidi_byname.c: New file.
42676         * tests/unictype/test-bidi_name.c: New file.
42677         * tests/unictype/test-bidi_of.c: New file.
42678         * tests/unictype/test-bidi_test.c: New file.
42679         * tests/unictype/test-block_list.c: New file.
42680         * tests/unictype/test-block_of.c: New file.
42681         * tests/unictype/test-block_test.c: New file.
42682         * tests/unictype/test-categ_and.c: New file.
42683         * tests/unictype/test-categ_and_not.c: New file.
42684         * tests/unictype/test-categ_byname.c: New file.
42685         * tests/unictype/test-categ_name.c: New file.
42686         * tests/unictype/test-categ_none.c: New file.
42687         * tests/unictype/test-categ_of.c: New file.
42688         * tests/unictype/test-categ_or.c: New file.
42689         * tests/unictype/test-categ_test_withtable.c: New file.
42690         * tests/unictype/test-combining.c: New file.
42691         * tests/unictype/test-decdigit.c: New file.
42692         * tests/unictype/test-digit.c: New file.
42693         * tests/unictype/test-mirror.c: New file.
42694         * tests/unictype/test-numeric.c: New file.
42695         * tests/unictype/test-pr_byname.c: New file.
42696         * tests/unictype/test-pr_test.c: New file.
42697         * tests/unictype/test-predicate-part1.h: New file.
42698         * tests/unictype/test-predicate-part2.h: New file.
42699         * tests/unictype/test-scripts.c: New file.
42700         * tests/unictype/test-sy_c_ident.c: New file.
42701         * tests/unictype/test-sy_java_ident.c: New file.
42702
42703         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42704         for Unicode 5.0.0.
42705         * tests/unictype/test-categ_Cc.c: Likewise.
42706         * tests/unictype/test-categ_Cf.c: Likewise.
42707         * tests/unictype/test-categ_Cn.c: Likewise.
42708         * tests/unictype/test-categ_Co.c: Likewise.
42709         * tests/unictype/test-categ_Cs.c: Likewise.
42710         * tests/unictype/test-categ_L.c: Likewise.
42711         * tests/unictype/test-categ_Ll.c: Likewise.
42712         * tests/unictype/test-categ_Lm.c: Likewise.
42713         * tests/unictype/test-categ_Lo.c: Likewise.
42714         * tests/unictype/test-categ_Lt.c: Likewise.
42715         * tests/unictype/test-categ_Lu.c: Likewise.
42716         * tests/unictype/test-categ_M.c: Likewise.
42717         * tests/unictype/test-categ_Mc.c: Likewise.
42718         * tests/unictype/test-categ_Me.c: Likewise.
42719         * tests/unictype/test-categ_Mn.c: Likewise.
42720         * tests/unictype/test-categ_N.c: Likewise.
42721         * tests/unictype/test-categ_Nd.c: Likewise.
42722         * tests/unictype/test-categ_Nl.c: Likewise.
42723         * tests/unictype/test-categ_No.c: Likewise.
42724         * tests/unictype/test-categ_P.c: Likewise.
42725         * tests/unictype/test-categ_Pc.c: Likewise.
42726         * tests/unictype/test-categ_Pd.c: Likewise.
42727         * tests/unictype/test-categ_Pe.c: Likewise.
42728         * tests/unictype/test-categ_Pf.c: Likewise.
42729         * tests/unictype/test-categ_Pi.c: Likewise.
42730         * tests/unictype/test-categ_Po.c: Likewise.
42731         * tests/unictype/test-categ_Ps.c: Likewise.
42732         * tests/unictype/test-categ_S.c: Likewise.
42733         * tests/unictype/test-categ_Sc.c: Likewise.
42734         * tests/unictype/test-categ_Sk.c: Likewise.
42735         * tests/unictype/test-categ_Sm.c: Likewise.
42736         * tests/unictype/test-categ_So.c: Likewise.
42737         * tests/unictype/test-categ_Z.c: Likewise.
42738         * tests/unictype/test-categ_Zl.c: Likewise.
42739         * tests/unictype/test-categ_Zp.c: Likewise.
42740         * tests/unictype/test-categ_Zs.c: Likewise.
42741         * tests/unictype/test-ctype_alnum.c: Likewise.
42742         * tests/unictype/test-ctype_alpha.c: Likewise.
42743         * tests/unictype/test-ctype_blank.c: Likewise.
42744         * tests/unictype/test-ctype_cntrl.c: Likewise.
42745         * tests/unictype/test-ctype_digit.c: Likewise.
42746         * tests/unictype/test-ctype_graph.c: Likewise.
42747         * tests/unictype/test-ctype_lower.c: Likewise.
42748         * tests/unictype/test-ctype_print.c: Likewise.
42749         * tests/unictype/test-ctype_punct.c: Likewise.
42750         * tests/unictype/test-ctype_space.c: Likewise.
42751         * tests/unictype/test-ctype_upper.c: Likewise.
42752         * tests/unictype/test-ctype_xdigit.c: Likewise.
42753         * tests/unictype/test-decdigit.h: Likewise.
42754         * tests/unictype/test-digit.h: Likewise.
42755         * tests/unictype/test-numeric.h: Likewise.
42756         * tests/unictype/test-pr_alphabetic.c: Likewise.
42757         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42758         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42759         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42760         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42761         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42762         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42763         * tests/unictype/test-pr_bidi_control.c: Likewise.
42764         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42765         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42766         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42767         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42768         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42769         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42770         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42771         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42772         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42773         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42774         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42775         * tests/unictype/test-pr_combining.c: Likewise.
42776         * tests/unictype/test-pr_composite.c: Likewise.
42777         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42778         * tests/unictype/test-pr_dash.c: Likewise.
42779         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42780         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42781         * tests/unictype/test-pr_deprecated.c: Likewise.
42782         * tests/unictype/test-pr_diacritic.c: Likewise.
42783         * tests/unictype/test-pr_extender.c: Likewise.
42784         * tests/unictype/test-pr_format_control.c: Likewise.
42785         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42786         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42787         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42788         * tests/unictype/test-pr_hex_digit.c: Likewise.
42789         * tests/unictype/test-pr_hyphen.c: Likewise.
42790         * tests/unictype/test-pr_id_continue.c: Likewise.
42791         * tests/unictype/test-pr_id_start.c: Likewise.
42792         * tests/unictype/test-pr_ideographic.c: Likewise.
42793         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42794         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42795         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42796         * tests/unictype/test-pr_iso_control.c: Likewise.
42797         * tests/unictype/test-pr_join_control.c: Likewise.
42798         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42799         * tests/unictype/test-pr_line_separator.c: Likewise.
42800         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42801         * tests/unictype/test-pr_lowercase.c: Likewise.
42802         * tests/unictype/test-pr_math.c: Likewise.
42803         * tests/unictype/test-pr_non_break.c: Likewise.
42804         * tests/unictype/test-pr_not_a_character.c: Likewise.
42805         * tests/unictype/test-pr_numeric.c: Likewise.
42806         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42807         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42808         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42809         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42810         * tests/unictype/test-pr_other_id_start.c: Likewise.
42811         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42812         * tests/unictype/test-pr_other_math.c: Likewise.
42813         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42814         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42815         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42816         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42817         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42818         * tests/unictype/test-pr_private_use.c: Likewise.
42819         * tests/unictype/test-pr_punctuation.c: Likewise.
42820         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42821         * tests/unictype/test-pr_radical.c: Likewise.
42822         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42823         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42824         * tests/unictype/test-pr_space.c: Likewise.
42825         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42826         * tests/unictype/test-pr_titlecase.c: Likewise.
42827         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42828         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42829         * tests/unictype/test-pr_uppercase.c: Likewise.
42830         * tests/unictype/test-pr_variation_selector.c: Likewise.
42831         * tests/unictype/test-pr_white_space.c: Likewise.
42832         * tests/unictype/test-pr_xid_continue.c: Likewise.
42833         * tests/unictype/test-pr_xid_start.c: Likewise.
42834         * tests/unictype/test-pr_zero_width.c: Likewise.
42835         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42836         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42837
42838 2007-11-12  Bruno Haible  <bruno@clisp.org>
42839
42840         Unicode character classification functions.
42841         * lib/unictype.h: New file.
42842         * modules/unictype/base: New file.
42843         * modules/unictype/category-L: New file.
42844         * modules/unictype/category-Lu: New file.
42845         * modules/unictype/category-Ll: New file.
42846         * modules/unictype/category-Lt: New file.
42847         * modules/unictype/category-Lm: New file.
42848         * modules/unictype/category-Lo: New file.
42849         * modules/unictype/category-M: New file.
42850         * modules/unictype/category-Mn: New file.
42851         * modules/unictype/category-Mc: New file.
42852         * modules/unictype/category-Me: New file.
42853         * modules/unictype/category-N: New file.
42854         * modules/unictype/category-Nd: New file.
42855         * modules/unictype/category-Nl: New file.
42856         * modules/unictype/category-No: New file.
42857         * modules/unictype/category-P: New file.
42858         * modules/unictype/category-Pc: New file.
42859         * modules/unictype/category-Pd: New file.
42860         * modules/unictype/category-Ps: New file.
42861         * modules/unictype/category-Pe: New file.
42862         * modules/unictype/category-Pi: New file.
42863         * modules/unictype/category-Pf: New file.
42864         * modules/unictype/category-Po: New file.
42865         * modules/unictype/category-S: New file.
42866         * modules/unictype/category-Sm: New file.
42867         * modules/unictype/category-Sc: New file.
42868         * modules/unictype/category-Sk: New file.
42869         * modules/unictype/category-So: New file.
42870         * modules/unictype/category-Z: New file.
42871         * modules/unictype/category-Zs: New file.
42872         * modules/unictype/category-Zl: New file.
42873         * modules/unictype/category-Zp: New file.
42874         * modules/unictype/category-C: New file.
42875         * modules/unictype/category-Cc: New file.
42876         * modules/unictype/category-Cf: New file.
42877         * modules/unictype/category-Cs: New file.
42878         * modules/unictype/category-Co: New file.
42879         * modules/unictype/category-Cn: New file.
42880         * modules/unictype/category-or: New file.
42881         * modules/unictype/category-of: New file.
42882         * modules/unictype/category-test: New file.
42883         * modules/unictype/category-test-withtable: New file.
42884         * modules/unictype/category-byname: New file.
42885         * modules/unictype/category-none: New file.
42886         * modules/unictype/category-and: New file.
42887         * modules/unictype/category-and-not: New file.
42888         * modules/unictype/category-name: New file.
42889         * modules/unictype/combining-class: New file.
42890         * modules/unictype/category-all: New file.
42891         * modules/unictype/bidicategory-all: New file.
42892         * modules/unictype/bidicategory-byname: New file.
42893         * modules/unictype/bidicategory-name: New file.
42894         * modules/unictype/bidicategory-of: New file.
42895         * modules/unictype/bidicategory-test: New file.
42896         * modules/unictype/decimal-digit: New file.
42897         * modules/unictype/digit: New file.
42898         * modules/unictype/numeric: New file.
42899         * modules/unictype/mirror: New file.
42900         * modules/unictype/property-white-space: New file.
42901         * modules/unictype/property-alphabetic: New file.
42902         * modules/unictype/property-other-alphabetic: New file.
42903         * modules/unictype/property-not-a-character: New file.
42904         * modules/unictype/property-default-ignorable-code-point: New file.
42905         * modules/unictype/property-other-default-ignorable-code-point: New
42906         file.
42907         * modules/unictype/property-deprecated: New file.
42908         * modules/unictype/property-logical-order-exception: New file.
42909         * modules/unictype/property-variation-selector: New file.
42910         * modules/unictype/property-private-use: New file.
42911         * modules/unictype/property-unassigned-code-value: New file.
42912         * modules/unictype/property-uppercase: New file.
42913         * modules/unictype/property-other-uppercase: New file.
42914         * modules/unictype/property-lowercase: New file.
42915         * modules/unictype/property-other-lowercase: New file.
42916         * modules/unictype/property-titlecase: New file.
42917         * modules/unictype/property-soft-dotted: New file.
42918         * modules/unictype/property-id-start: New file.
42919         * modules/unictype/property-other-id-start: New file.
42920         * modules/unictype/property-id-continue: New file.
42921         * modules/unictype/property-other-id-continue: New file.
42922         * modules/unictype/property-xid-start: New file.
42923         * modules/unictype/property-xid-continue: New file.
42924         * modules/unictype/property-pattern-white-space: New file.
42925         * modules/unictype/property-pattern-syntax: New file.
42926         * modules/unictype/property-join-control: New file.
42927         * modules/unictype/property-grapheme-base: New file.
42928         * modules/unictype/property-grapheme-extend: New file.
42929         * modules/unictype/property-other-grapheme-extend: New file.
42930         * modules/unictype/property-grapheme-link: New file.
42931         * modules/unictype/property-bidi-control: New file.
42932         * modules/unictype/property-bidi-left-to-right: New file.
42933         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42934         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42935         * modules/unictype/property-bidi-european-digit: New file.
42936         * modules/unictype/property-bidi-eur-num-separator: New file.
42937         * modules/unictype/property-bidi-eur-num-terminator: New file.
42938         * modules/unictype/property-bidi-arabic-digit: New file.
42939         * modules/unictype/property-bidi-common-separator: New file.
42940         * modules/unictype/property-bidi-block-separator: New file.
42941         * modules/unictype/property-bidi-segment-separator: New file.
42942         * modules/unictype/property-bidi-whitespace: New file.
42943         * modules/unictype/property-bidi-non-spacing-mark: New file.
42944         * modules/unictype/property-bidi-boundary-neutral: New file.
42945         * modules/unictype/property-bidi-pdf: New file.
42946         * modules/unictype/property-bidi-embedding-or-override: New file.
42947         * modules/unictype/property-bidi-other-neutral: New file.
42948         * modules/unictype/property-hex-digit: New file.
42949         * modules/unictype/property-ascii-hex-digit: New file.
42950         * modules/unictype/property-ideographic: New file.
42951         * modules/unictype/property-unified-ideograph: New file.
42952         * modules/unictype/property-radical: New file.
42953         * modules/unictype/property-ids-binary-operator: New file.
42954         * modules/unictype/property-ids-trinary-operator: New file.
42955         * modules/unictype/property-zero-width: New file.
42956         * modules/unictype/property-space: New file.
42957         * modules/unictype/property-non-break: New file.
42958         * modules/unictype/property-iso-control: New file.
42959         * modules/unictype/property-format-control: New file.
42960         * modules/unictype/property-dash: New file.
42961         * modules/unictype/property-hyphen: New file.
42962         * modules/unictype/property-punctuation: New file.
42963         * modules/unictype/property-line-separator: New file.
42964         * modules/unictype/property-paragraph-separator: New file.
42965         * modules/unictype/property-quotation-mark: New file.
42966         * modules/unictype/property-sentence-terminal: New file.
42967         * modules/unictype/property-terminal-punctuation: New file.
42968         * modules/unictype/property-currency-symbol: New file.
42969         * modules/unictype/property-math: New file.
42970         * modules/unictype/property-other-math: New file.
42971         * modules/unictype/property-paired-punctuation: New file.
42972         * modules/unictype/property-left-of-pair: New file.
42973         * modules/unictype/property-combining: New file.
42974         * modules/unictype/property-composite: New file.
42975         * modules/unictype/property-decimal-digit: New file.
42976         * modules/unictype/property-numeric: New file.
42977         * modules/unictype/property-diacritic: New file.
42978         * modules/unictype/property-extender: New file.
42979         * modules/unictype/property-ignorable-control: New file.
42980         * modules/unictype/property-test: New file.
42981         * modules/unictype/property-byname: New file.
42982         * modules/unictype/property-all: New file.
42983         * modules/unictype/scripts: New file.
42984         * modules/unictype/scripts-all: New file.
42985         * modules/unictype/block-of: New file.
42986         * modules/unictype/block-test: New file.
42987         * modules/unictype/block-list: New file.
42988         * modules/unictype/block-all: New file.
42989         * modules/unictype/syntax-c-whitespace: New file.
42990         * modules/unictype/syntax-java-whitespace: New file.
42991         * modules/unictype/syntax-c-ident: New file.
42992         * modules/unictype/syntax-java-ident: New file.
42993         * modules/unictype/ctype-alnum: New file.
42994         * modules/unictype/ctype-alpha: New file.
42995         * modules/unictype/ctype-cntrl: New file.
42996         * modules/unictype/ctype-digit: New file.
42997         * modules/unictype/ctype-graph: New file.
42998         * modules/unictype/ctype-lower: New file.
42999         * modules/unictype/ctype-print: New file.
43000         * modules/unictype/ctype-punct: New file.
43001         * modules/unictype/ctype-space: New file.
43002         * modules/unictype/ctype-upper: New file.
43003         * modules/unictype/ctype-xdigit: New file.
43004         * modules/unictype/ctype-blank: New file.
43005         * lib/unictype/bidi_byname.c: New file.
43006         * lib/unictype/bidi_name.c: New file.
43007         * lib/unictype/bidi_of.c: New file.
43008         * lib/unictype/bidi_test.c: New file.
43009         * lib/unictype/bitmap.h: New file.
43010         * lib/unictype/block_test.c: New file.
43011         * lib/unictype/blocks.c: New file.
43012         * lib/unictype/categ_C.c: New file.
43013         * lib/unictype/categ_Cc.c: New file.
43014         * lib/unictype/categ_Cf.c: New file.
43015         * lib/unictype/categ_Cn.c: New file.
43016         * lib/unictype/categ_Co.c: New file.
43017         * lib/unictype/categ_Cs.c: New file.
43018         * lib/unictype/categ_L.c: New file.
43019         * lib/unictype/categ_Ll.c: New file.
43020         * lib/unictype/categ_Lm.c: New file.
43021         * lib/unictype/categ_Lo.c: New file.
43022         * lib/unictype/categ_Lt.c: New file.
43023         * lib/unictype/categ_Lu.c: New file.
43024         * lib/unictype/categ_M.c: New file.
43025         * lib/unictype/categ_Mc.c: New file.
43026         * lib/unictype/categ_Me.c: New file.
43027         * lib/unictype/categ_Mn.c: New file.
43028         * lib/unictype/categ_N.c: New file.
43029         * lib/unictype/categ_Nd.c: New file.
43030         * lib/unictype/categ_Nl.c: New file.
43031         * lib/unictype/categ_No.c: New file.
43032         * lib/unictype/categ_P.c: New file.
43033         * lib/unictype/categ_Pc.c: New file.
43034         * lib/unictype/categ_Pd.c: New file.
43035         * lib/unictype/categ_Pe.c: New file.
43036         * lib/unictype/categ_Pf.c: New file.
43037         * lib/unictype/categ_Pi.c: New file.
43038         * lib/unictype/categ_Po.c: New file.
43039         * lib/unictype/categ_Ps.c: New file.
43040         * lib/unictype/categ_S.c: New file.
43041         * lib/unictype/categ_Sc.c: New file.
43042         * lib/unictype/categ_Sk.c: New file.
43043         * lib/unictype/categ_Sm.c: New file.
43044         * lib/unictype/categ_So.c: New file.
43045         * lib/unictype/categ_Z.c: New file.
43046         * lib/unictype/categ_Zl.c: New file.
43047         * lib/unictype/categ_Zp.c: New file.
43048         * lib/unictype/categ_Zs.c: New file.
43049         * lib/unictype/categ_and.c: New file.
43050         * lib/unictype/categ_and_not.c: New file.
43051         * lib/unictype/categ_byname.c: New file.
43052         * lib/unictype/categ_name.c: New file.
43053         * lib/unictype/categ_none.c: New file.
43054         * lib/unictype/categ_of.c: New file.
43055         * lib/unictype/categ_or.c: New file.
43056         * lib/unictype/categ_test.c: New file.
43057         * lib/unictype/combining.c: New file.
43058         * lib/unictype/ctype_alnum.c: New file.
43059         * lib/unictype/ctype_alpha.c: New file.
43060         * lib/unictype/ctype_blank.c: New file.
43061         * lib/unictype/ctype_cntrl.c: New file.
43062         * lib/unictype/ctype_digit.c: New file.
43063         * lib/unictype/ctype_graph.c: New file.
43064         * lib/unictype/ctype_lower.c: New file.
43065         * lib/unictype/ctype_print.c: New file.
43066         * lib/unictype/ctype_punct.c: New file.
43067         * lib/unictype/ctype_space.c: New file.
43068         * lib/unictype/ctype_upper.c: New file.
43069         * lib/unictype/ctype_xdigit.c: New file.
43070         * lib/unictype/decdigit.c: New file.
43071         * lib/unictype/digit.c: New file.
43072         * lib/unictype/identsyntaxmap.h: New file.
43073         * lib/unictype/mirror.c: New file.
43074         * lib/unictype/numeric.c: New file.
43075         * lib/unictype/pr_alphabetic.c: New file.
43076         * lib/unictype/pr_ascii_hex_digit.c: New file.
43077         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43078         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43079         * lib/unictype/pr_bidi_block_separator.c: New file.
43080         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43081         * lib/unictype/pr_bidi_common_separator.c: New file.
43082         * lib/unictype/pr_bidi_control.c: New file.
43083         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43084         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43085         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43086         * lib/unictype/pr_bidi_european_digit.c: New file.
43087         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43088         * lib/unictype/pr_bidi_left_to_right.c: New file.
43089         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43090         * lib/unictype/pr_bidi_other_neutral.c: New file.
43091         * lib/unictype/pr_bidi_pdf.c: New file.
43092         * lib/unictype/pr_bidi_segment_separator.c: New file.
43093         * lib/unictype/pr_bidi_whitespace.c: New file.
43094         * lib/unictype/pr_byname.c: New file.
43095         * lib/unictype/pr_byname.gperf: New file.
43096         * lib/unictype/pr_combining.c: New file.
43097         * lib/unictype/pr_composite.c: New file.
43098         * lib/unictype/pr_currency_symbol.c: New file.
43099         * lib/unictype/pr_dash.c: New file.
43100         * lib/unictype/pr_decimal_digit.c: New file.
43101         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43102         * lib/unictype/pr_deprecated.c: New file.
43103         * lib/unictype/pr_diacritic.c: New file.
43104         * lib/unictype/pr_extender.c: New file.
43105         * lib/unictype/pr_format_control.c: New file.
43106         * lib/unictype/pr_grapheme_base.c: New file.
43107         * lib/unictype/pr_grapheme_extend.c: New file.
43108         * lib/unictype/pr_grapheme_link.c: New file.
43109         * lib/unictype/pr_hex_digit.c: New file.
43110         * lib/unictype/pr_hyphen.c: New file.
43111         * lib/unictype/pr_id_continue.c: New file.
43112         * lib/unictype/pr_id_start.c: New file.
43113         * lib/unictype/pr_ideographic.c: New file.
43114         * lib/unictype/pr_ids_binary_operator.c: New file.
43115         * lib/unictype/pr_ids_trinary_operator.c: New file.
43116         * lib/unictype/pr_ignorable_control.c: New file.
43117         * lib/unictype/pr_iso_control.c: New file.
43118         * lib/unictype/pr_join_control.c: New file.
43119         * lib/unictype/pr_left_of_pair.c: New file.
43120         * lib/unictype/pr_line_separator.c: New file.
43121         * lib/unictype/pr_logical_order_exception.c: New file.
43122         * lib/unictype/pr_lowercase.c: New file.
43123         * lib/unictype/pr_math.c: New file.
43124         * lib/unictype/pr_non_break.c: New file.
43125         * lib/unictype/pr_not_a_character.c: New file.
43126         * lib/unictype/pr_numeric.c: New file.
43127         * lib/unictype/pr_other_alphabetic.c: New file.
43128         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43129         * lib/unictype/pr_other_grapheme_extend.c: New file.
43130         * lib/unictype/pr_other_id_continue.c: New file.
43131         * lib/unictype/pr_other_id_start.c: New file.
43132         * lib/unictype/pr_other_lowercase.c: New file.
43133         * lib/unictype/pr_other_math.c: New file.
43134         * lib/unictype/pr_other_uppercase.c: New file.
43135         * lib/unictype/pr_paired_punctuation.c: New file.
43136         * lib/unictype/pr_paragraph_separator.c: New file.
43137         * lib/unictype/pr_pattern_syntax.c: New file.
43138         * lib/unictype/pr_pattern_white_space.c: New file.
43139         * lib/unictype/pr_private_use.c: New file.
43140         * lib/unictype/pr_punctuation.c: New file.
43141         * lib/unictype/pr_quotation_mark.c: New file.
43142         * lib/unictype/pr_radical.c: New file.
43143         * lib/unictype/pr_sentence_terminal.c: New file.
43144         * lib/unictype/pr_soft_dotted.c: New file.
43145         * lib/unictype/pr_space.c: New file.
43146         * lib/unictype/pr_terminal_punctuation.c: New file.
43147         * lib/unictype/pr_test.c: New file.
43148         * lib/unictype/pr_titlecase.c: New file.
43149         * lib/unictype/pr_unassigned_code_value.c: New file.
43150         * lib/unictype/pr_unified_ideograph.c: New file.
43151         * lib/unictype/pr_uppercase.c: New file.
43152         * lib/unictype/pr_variation_selector.c: New file.
43153         * lib/unictype/pr_white_space.c: New file.
43154         * lib/unictype/pr_xid_continue.c: New file.
43155         * lib/unictype/pr_xid_start.c: New file.
43156         * lib/unictype/pr_zero_width.c: New file.
43157         * lib/unictype/scripts.c: New file.
43158         * lib/unictype/sy_c_ident.c: New file.
43159         * lib/unictype/sy_c_whitespace.c: New file.
43160         * lib/unictype/sy_java_ident.c: New file.
43161         * lib/unictype/sy_java_whitespace.c: New file.
43162
43163         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43164         Unicode 5.0.0.
43165         * lib/unictype/blocks.h: Likewise.
43166         * lib/unictype/categ_C.h: Likewise.
43167         * lib/unictype/categ_Cc.h: Likewise.
43168         * lib/unictype/categ_Cf.h: Likewise.
43169         * lib/unictype/categ_Cn.h: Likewise.
43170         * lib/unictype/categ_Co.h: Likewise.
43171         * lib/unictype/categ_Cs.h: Likewise.
43172         * lib/unictype/categ_L.h: Likewise.
43173         * lib/unictype/categ_Ll.h: Likewise.
43174         * lib/unictype/categ_Lm.h: Likewise.
43175         * lib/unictype/categ_Lo.h: Likewise.
43176         * lib/unictype/categ_Lt.h: Likewise.
43177         * lib/unictype/categ_Lu.h: Likewise.
43178         * lib/unictype/categ_M.h: Likewise.
43179         * lib/unictype/categ_Mc.h: Likewise.
43180         * lib/unictype/categ_Me.h: Likewise.
43181         * lib/unictype/categ_Mn.h: Likewise.
43182         * lib/unictype/categ_N.h: Likewise.
43183         * lib/unictype/categ_Nd.h: Likewise.
43184         * lib/unictype/categ_Nl.h: Likewise.
43185         * lib/unictype/categ_No.h: Likewise.
43186         * lib/unictype/categ_P.h: Likewise.
43187         * lib/unictype/categ_Pc.h: Likewise.
43188         * lib/unictype/categ_Pd.h: Likewise.
43189         * lib/unictype/categ_Pe.h: Likewise.
43190         * lib/unictype/categ_Pf.h: Likewise.
43191         * lib/unictype/categ_Pi.h: Likewise.
43192         * lib/unictype/categ_Po.h: Likewise.
43193         * lib/unictype/categ_Ps.h: Likewise.
43194         * lib/unictype/categ_S.h: Likewise.
43195         * lib/unictype/categ_Sc.h: Likewise.
43196         * lib/unictype/categ_Sk.h: Likewise.
43197         * lib/unictype/categ_Sm.h: Likewise.
43198         * lib/unictype/categ_So.h: Likewise.
43199         * lib/unictype/categ_Z.h: Likewise.
43200         * lib/unictype/categ_Zl.h: Likewise.
43201         * lib/unictype/categ_Zp.h: Likewise.
43202         * lib/unictype/categ_Zs.h: Likewise.
43203         * lib/unictype/categ_of.h: Likewise.
43204         * lib/unictype/combining.h: Likewise.
43205         * lib/unictype/ctype_alnum.h: Likewise.
43206         * lib/unictype/ctype_alpha.h: Likewise.
43207         * lib/unictype/ctype_blank.h: Likewise.
43208         * lib/unictype/ctype_cntrl.h: Likewise.
43209         * lib/unictype/ctype_digit.h: Likewise.
43210         * lib/unictype/ctype_graph.h: Likewise.
43211         * lib/unictype/ctype_lower.h: Likewise.
43212         * lib/unictype/ctype_print.h: Likewise.
43213         * lib/unictype/ctype_punct.h: Likewise.
43214         * lib/unictype/ctype_space.h: Likewise.
43215         * lib/unictype/ctype_upper.h: Likewise.
43216         * lib/unictype/ctype_xdigit.h: Likewise.
43217         * lib/unictype/decdigit.h: Likewise.
43218         * lib/unictype/digit.h: Likewise.
43219         * lib/unictype/mirror.h: Likewise.
43220         * lib/unictype/numeric.h: Likewise.
43221         * lib/unictype/pr_alphabetic.h: Likewise.
43222         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43223         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43224         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43225         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43226         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43227         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43228         * lib/unictype/pr_bidi_control.h: Likewise.
43229         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43230         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43231         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43232         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43233         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43234         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43235         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43236         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43237         * lib/unictype/pr_bidi_pdf.h: Likewise.
43238         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43239         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43240         * lib/unictype/pr_combining.h: Likewise.
43241         * lib/unictype/pr_composite.h: Likewise.
43242         * lib/unictype/pr_currency_symbol.h: Likewise.
43243         * lib/unictype/pr_dash.h: Likewise.
43244         * lib/unictype/pr_decimal_digit.h: Likewise.
43245         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43246         * lib/unictype/pr_deprecated.h: Likewise.
43247         * lib/unictype/pr_diacritic.h: Likewise.
43248         * lib/unictype/pr_extender.h: Likewise.
43249         * lib/unictype/pr_format_control.h: Likewise.
43250         * lib/unictype/pr_grapheme_base.h: Likewise.
43251         * lib/unictype/pr_grapheme_extend.h: Likewise.
43252         * lib/unictype/pr_grapheme_link.h: Likewise.
43253         * lib/unictype/pr_hex_digit.h: Likewise.
43254         * lib/unictype/pr_hyphen.h: Likewise.
43255         * lib/unictype/pr_id_continue.h: Likewise.
43256         * lib/unictype/pr_id_start.h: Likewise.
43257         * lib/unictype/pr_ideographic.h: Likewise.
43258         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43259         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43260         * lib/unictype/pr_ignorable_control.h: Likewise.
43261         * lib/unictype/pr_iso_control.h: Likewise.
43262         * lib/unictype/pr_join_control.h: Likewise.
43263         * lib/unictype/pr_left_of_pair.h: Likewise.
43264         * lib/unictype/pr_line_separator.h: Likewise.
43265         * lib/unictype/pr_logical_order_exception.h: Likewise.
43266         * lib/unictype/pr_lowercase.h: Likewise.
43267         * lib/unictype/pr_math.h: Likewise.
43268         * lib/unictype/pr_non_break.h: Likewise.
43269         * lib/unictype/pr_not_a_character.h: Likewise.
43270         * lib/unictype/pr_numeric.h: Likewise.
43271         * lib/unictype/pr_other_alphabetic.h: Likewise.
43272         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43273         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43274         * lib/unictype/pr_other_id_continue.h: Likewise.
43275         * lib/unictype/pr_other_id_start.h: Likewise.
43276         * lib/unictype/pr_other_lowercase.h: Likewise.
43277         * lib/unictype/pr_other_math.h: Likewise.
43278         * lib/unictype/pr_other_uppercase.h: Likewise.
43279         * lib/unictype/pr_paired_punctuation.h: Likewise.
43280         * lib/unictype/pr_paragraph_separator.h: Likewise.
43281         * lib/unictype/pr_pattern_syntax.h: Likewise.
43282         * lib/unictype/pr_pattern_white_space.h: Likewise.
43283         * lib/unictype/pr_private_use.h: Likewise.
43284         * lib/unictype/pr_punctuation.h: Likewise.
43285         * lib/unictype/pr_quotation_mark.h: Likewise.
43286         * lib/unictype/pr_radical.h: Likewise.
43287         * lib/unictype/pr_sentence_terminal.h: Likewise.
43288         * lib/unictype/pr_soft_dotted.h: Likewise.
43289         * lib/unictype/pr_space.h: Likewise.
43290         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43291         * lib/unictype/pr_titlecase.h: Likewise.
43292         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43293         * lib/unictype/pr_unified_ideograph.h: Likewise.
43294         * lib/unictype/pr_uppercase.h: Likewise.
43295         * lib/unictype/pr_variation_selector.h: Likewise.
43296         * lib/unictype/pr_white_space.h: Likewise.
43297         * lib/unictype/pr_xid_continue.h: Likewise.
43298         * lib/unictype/pr_xid_start.h: Likewise.
43299         * lib/unictype/pr_zero_width.h: Likewise.
43300         * lib/unictype/scripts.h: Likewise.
43301         * lib/unictype/scripts_byname.gperf: Likewise.
43302         * lib/unictype/sy_c_ident.h: Likewise.
43303         * lib/unictype/sy_c_whitespace.h: Likewise.
43304         * lib/unictype/sy_java_ident.h: Likewise.
43305         * lib/unictype/sy_java_whitespace.h: Likewise.
43306
43307         * lib/unictype/Makefile: New file.
43308         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43309         glibc.
43310         * lib/unictype/3level.h: New file, copied from glibc.
43311         * lib/unictype/3levelbit.h: New file.
43312
43313 2007-11-11  Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/gperf: New file.
43316         * modules/iconv_open (Depends-on): Add it.
43317         (Makefile.am): Remove the GPERF definition.
43318
43319 2007-11-11  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43322         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43323
43324 2007-11-11  Bruno Haible  <bruno@clisp.org>
43325
43326         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43327         (usage): Remove function.
43328
43329 2007-11-11  Bruno Haible  <bruno@clisp.org>
43330
43331         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43332         gl_FUNC_CEILF_LIBS.
43333         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43334         gl_FUNC_CEIL_LIBS.
43335         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43336         gl_FUNC_CEILL_LIBS.
43337         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43338         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43339         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43340
43341 2007-11-11  Bruno Haible  <bruno@clisp.org>
43342
43343         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43344         roundf were declared but do not exist on functions.
43345         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43346         roundl were declared but do not exist on functions.
43347         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43348         HAVE_FLOORL_AND_CEILL, respectively.
43349         Needed for Sun C on Solaris 10.
43350
43351 2007-11-11  Bruno Haible  <bruno@clisp.org>
43352
43353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43354         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43355         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43356         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43358         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43359         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43360         HAVE_DECL_ROUNDF.
43361         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43362         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43364         of HAVE_DECL_ROUND*.
43365         * modules/math (Makefile.am): Update.
43366
43367 2007-11-10  Bruno Haible  <bruno@clisp.org>
43368
43369         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43370         ptrdiff_t as m4/intl.m4.
43371
43372 2007-11-10  Jim Meyering  <meyering@redhat.com>
43373
43374         Avoid link failure for the argmatch test.
43375         * tests/test-argmatch.c (usage): Define function to avoid a link
43376         failure: argmatch_die requires a usage function.
43377
43378 2007-11-09  Bruno Haible  <bruno@clisp.org>
43379
43380         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43381         * doc/functions/vsnprintf.texi: Likewise.
43382         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43383         with a size argument < 2.
43384
43385 2007-11-09  Bruno Haible  <bruno@clisp.org>
43386
43387         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43388         buffer. Fixes an inefficiency introduced on 2007-11-03.
43389
43390 2007-11-09  Bruno Haible  <bruno@clisp.org>
43391
43392         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43393         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43394
43395 2007-11-08  Jim Meyering  <meyering@redhat.com>
43396
43397         Change cache variable name prefix "jm_" to "gl_" everywhere.
43398         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43399         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43400         * m4/uptime.m4: s/gl_/jm_/
43401
43402 2007-11-07  Bruno Haible  <bruno@clisp.org>
43403
43404         Update to GNU gettext 0.17.
43405         * m4/intl.m4: Update to GNU gettext 0.17.
43406         * m4/po.m4: Likewise.
43407         * modules/gettext (Files): Remove m4/ulonglong.m4.
43408         (configure.ac): Require gettext infrastructure from version 0.17.
43409
43410 2007-11-06  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43413         symbolic values are not defined in a public header.
43414         * lib/freadable.c (freadable) [QNX]: Likewise.
43415         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43416         * lib/freading.c (freading) [QNX]: Likewise.
43417         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43418         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43419         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43420         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43421         Reported by Alain Magloire.
43422
43423         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43424
43425 2007-11-05  Bruno Haible  <bruno@clisp.org>
43426
43427         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43428         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43429         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43430         Reported by Eric Blake.
43431
43432 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43433             Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43436         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43437         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43438         (malloc): Undefine also before including <stdlib.h>.
43439         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43440         Needed on OSF/1 4.0.
43441
43442 2007-11-05  Jim Meyering  <meyering@redhat.com>
43443
43444         git-version-gen: sync from coreutils.
43445         * build-aux/git-version-gen: Add comments.
43446         Change the first '-' to '.' in the snapshot version string,
43447         e.g., 6.9-377-08144 -> 6.9.377-08144
43448         Remove first parameter.
43449         Don't declare a version "-dirty" merely because a time
43450         stamp has changed.
43451
43452 2007-11-04  Bruno Haible  <bruno@clisp.org>
43453
43454         * lib/lock.h: Protect all macro definitions containing an 'if'
43455         statement through a "do { ... } while (0)".
43456         * lib/tls.h: Likewise.
43457
43458 2007-11-04  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43461
43462 2007-11-04  Bruno Haible  <bruno@clisp.org>
43463
43464         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43465         * modules/fprintf-posix (Depends-on): Add nocrash.
43466         * modules/snprintf-posix (Depends-on): Likewise.
43467         * modules/sprintf-posix (Depends-on): Likewise.
43468         * modules/vasnprintf-posix (Depends-on): Likewise.
43469         * modules/vasprintf-posix (Depends-on): Likewise.
43470         * modules/vfprintf-posix (Depends-on): Likewise.
43471         * modules/vsnprintf-posix (Depends-on): Likewise.
43472         * modules/vsprintf-posix (Depends-on): Likewise.
43473         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43474         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43475         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43476         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43477         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43478         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43479         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43480
43481 2007-11-04  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/nocrash: New file.
43484         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43485         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43486
43487 2007-11-04  Bruno Haible  <bruno@clisp.org>
43488
43489         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43490         precision handling.
43491         * tests/test-vasprintf-posix.c (test_function): Likewise.
43492         * tests/test-snprintf-posix.h (test_function): Likewise.
43493         * tests/test-sprintf-posix.h (test_function): Likewise.
43494
43495         Fix *printf behaviour for large precisions on mingw and BeOS.
43496         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43497         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43499         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43500         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43501         gl_PRINTF_PRECISION and test its result. Invoke
43502         gl_PREREQ_VASNPRINTF_PRECISION.
43503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43510         * doc/functions/fprintf.texi: Update.
43511         * doc/functions/printf.texi: Update.
43512         * doc/functions/snprintf.texi: Update.
43513         * doc/functions/sprintf.texi: Update.
43514         * doc/functions/vfprintf.texi: Update.
43515         * doc/functions/vprintf.texi: Update.
43516         * doc/functions/vsnprintf.texi: Update.
43517         * doc/functions/vsprintf.texi: Update.
43518
43519 2007-11-04  Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43522
43523 2007-11-04  Bruno Haible  <bruno@clisp.org>
43524
43525         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43526         Reported by Sylvain Beucler <beuc@gnu.org>.
43527
43528 2007-11-03  Bruno Haible  <bruno@clisp.org>
43529
43530         * tests/test-fprintf-posix2.sh: New file.
43531         * tests/test-fprintf-posix2.c: New file.
43532         * modules/fprintf-posix-tests (Files): Add them.
43533         (TESTS): Add test-fprintf-posix2.sh.
43534         (configure.ac): Check for getrlimit and setrlimit.
43535         (check_PROGRAMS): Add test-fprintf-posix2.
43536
43537         * tests/test-printf-posix2.sh: New file.
43538         * tests/test-printf-posix2.c: New file.
43539         * modules/printf-posix-tests (Files): Add them.
43540         (TESTS): Add test-printf-posix2.sh.
43541         (configure.ac): Check for getrlimit and setrlimit.
43542         (check_PROGRAMS): Add test-printf-posix2.
43543
43544         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43545         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43546         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43547         (decode_double): New function, copied from decode_long_double.
43548         (scale10_round_decimal_decoded): New function, extracted from
43549         scale10_round_decimal_long_double.
43550         (scale10_round_decimal_long_double): Use it.
43551         (scale10_round_decimal_double): New function.
43552         (floorlog10): New function.
43553         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43554         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43555         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43557         gl_PRINTF_ENOMEM and test its result. Invoke
43558         gl_PREREQ_VASNPRINTF_ENOMEM.
43559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43566         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43567         * modules/snprintf-posix (Depends-on): Likewise.
43568         * modules/sprintf-posix (Depends-on): Likewise.
43569         * modules/vasnprintf-posix (Depends-on): Likewise.
43570         * modules/vasprintf-posix (Depends-on): Likewise.
43571         * modules/vfprintf-posix (Depends-on): Likewise.
43572         * modules/vsnprintf-posix (Depends-on): Likewise.
43573         * modules/vsprintf-posix (Depends-on): Likewise.
43574         * doc/functions/fprintf.texi: Update.
43575         * doc/functions/printf.texi: Update.
43576         * doc/functions/snprintf.texi: Update.
43577         * doc/functions/sprintf.texi: Update.
43578         * doc/functions/vfprintf.texi: Update.
43579         * doc/functions/vprintf.texi: Update.
43580         * doc/functions/vsnprintf.texi: Update.
43581         * doc/functions/vsprintf.texi: Update.
43582
43583 2007-11-03  Bruno Haible  <bruno@clisp.org>
43584
43585         * modules/frexp-nolibm-tests: New file.
43586
43587         * modules/frexp-nolibm: New file.
43588         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43589
43590 2007-11-03  Bruno Haible  <bruno@clisp.org>
43591
43592         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43593         value is C99 compliant.
43594         Needed for OSF/1 5.1.
43595
43596 2007-11-03  Bruno Haible  <bruno@clisp.org>
43597
43598         Fix out-of-memory handling of vasnprintf.
43599         * lib/printf-parse.c: Include <errno.h>.
43600         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43601         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43602         is already set.
43603
43604 2007-11-02  Eric Blake  <ebb9@byu.net>
43605
43606         Fix tests on cygwin.
43607         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43608
43609 2007-11-01  Bruno Haible  <bruno@clisp.org>
43610
43611         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43612         warning.
43613         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43614         needed for POSIX compatibility.
43615
43616 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43617
43618         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43619         for compatibility with GNU.
43620
43621 2007-11-01  Bruno Haible  <bruno@clisp.org>
43622
43623         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43624         (putenv): Renamed from rpl_putenv. Change argument type from
43625         'const char *' to 'char *'.
43626         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43627         of defining putenv in config.h, just set REPLACE_PUTENV.
43628         * modules/putenv (Depends-on): Add stdlib.
43629         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43630         (Include): Use <stdlib.h>.
43631         * lib/stdlib.in.h (putenv): New declaration.
43632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43633         REPLACE_PUTENV.
43634         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43635         REPLACE_PUTENV.
43636         Needed for MacOS X 10.5.0.
43637         Reported by Peter O'Gorman <peter@pogma.com>.
43638
43639 2007-11-01  Jim Meyering  <meyering@redhat.com>
43640
43641         Treat an empty date string exactly like "0".
43642         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43643         if the remaining date string (to be parsed) is empty, use "0".
43644         Reported by Mischa Molhoek and discussed in this thread:
43645         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43646
43647 2007-10-31  Bruno Haible  <bruno@clisp.org>
43648
43649         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43650         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43651         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43652         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43653         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43654         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43655
43656 2007-10-31  Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43659         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43660         (AC_TYPE_LONG_LONG_INT): Use it.
43661         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43662         it as well.
43663         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43664         to m4/longlong.m4.
43665         * modules/stdint (Files): Remove m4/ulonglong.m4.
43666         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43667         m4/ulonglong.m4.
43668         * modules/strtoumax (Files): Likewise.
43669
43670 2007-10-30  Bruno Haible  <bruno@clisp.org>
43671
43672         * modules/xvasprintf-posix: New file.
43673         Suggested by Eric Blake.
43674
43675 2007-10-30  Bruno Haible  <bruno@clisp.org>
43676
43677         * modules/xprintf-posix-tests: New file.
43678         * tests/test-xprintf-posix.sh: New file.
43679         * tests/test-xprintf-posix.c: New file.
43680         * tests/test-xfprintf-posix.c: New file.
43681
43682         * modules/xprintf-posix: New file.
43683
43684 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43685
43686         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43687         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43688         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43689
43690 2007-10-29  Bruno Haible  <bruno@clisp.org>
43691
43692         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43693         contain the special marker '_cv_'.
43694         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43695         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43696         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43697         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43698         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43699         Reported by Ralf Wildenhues.
43700
43701 2007-10-29  Bruno Haible  <bruno@clisp.org>
43702
43703         * gnulib-tool (func_import): When --lgpl is not specified, set
43704         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43705         GPLv3.
43706         Reported by Simon Josefsson.
43707
43708 2007-10-28  Bruno Haible  <bruno@clisp.org>
43709
43710         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43711         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43712         HAVE_DECL_ISFINITE.
43713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43714         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43715         HAVE_DECL_ISFINITE.
43716
43717 2007-10-28  Bruno Haible  <bruno@clisp.org>
43718
43719         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43720         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43721
43722 2007-10-28  Bruno Haible  <bruno@clisp.org>
43723
43724         Fix link errors with Sun C 5.0 on Solaris 10.
43725         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43726         function is declared but not present in the compiler's libm.
43727         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43728         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43729         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43730         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43731         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43732         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43733         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43735         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43736         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43737         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43738         HAVE_DECL_FLOORL.
43739
43740 2007-10-28  Bruno Haible  <bruno@clisp.org>
43741
43742         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43743         gl_FUNC_FLOORL. Cache the result.
43744         (gl_FUNC_FLOORL): Use it.
43745         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43746         gl_FUNC_CEILL. Cache the result.
43747         (gl_FUNC_CEILL): Use it.
43748
43749         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43750         gl_FUNC_FLOOR. Cache the result.
43751         (gl_FUNC_FLOOR): Use it.
43752         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43753         gl_FUNC_CEIL. Cache the result.
43754         (gl_FUNC_CEIL): Use it.
43755
43756         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43757         gl_FUNC_FLOORF. Cache the result.
43758         (gl_FUNC_FLOORF): Use it.
43759         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43760         gl_FUNC_CEILF. Cache the result.
43761         (gl_FUNC_CEILF): Use it.
43762
43763 2007-10-28  Bruno Haible  <bruno@clisp.org>
43764
43765         * gnulib-tool: Allow specifying the LGPL version number through
43766         --lgpl=2 or --lgpl=3.
43767         (func_usage): Document --lgpl with argument.
43768         Handle --lgpl=... arguments.
43769         (func_import): Recognize also gl_LGPL calls with an argument. When
43770         --lgpl=2 is used and the module's license is just LGPL, report an
43771         error. Set sed_transform_lib_file according to the lgpl variable. In
43772         the generated files, use --lgpl or gl_LGPL invocations with argument,
43773         if necessary.
43774         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43775         an LGPv2+ license.
43776         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43777         gl_LGPL macro.
43778
43779 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43780             Bruno Haible  <bruno@clisp.org>
43781
43782         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43783         (u16_uctomb_aux): Likewise.
43784         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43785         !HAVE_INLINE.
43786         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43787
43788 2007-10-28  Bruno Haible  <bruno@clisp.org>
43789
43790         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43791         Invoke AM_GETTEXT_OPTION if it exists.
43792         * modules/vasprintf: Likewise.
43793         * modules/verror: Likewise.
43794         * modules/xprintf: Likewise.
43795         * modules/xvasprintf: Likewise.
43796
43797 2007-10-27  Ben Pfaff  <blp@gnu.org>
43798
43799         * lib/math.in.h: Define isfinite macro and prototypes for
43800         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43801         implementations.
43802         * m4/math_h.m4: New substitutions for isfinite module.
43803         * lib/isfinite.c: New file.
43804         * m4/isfinite.m4: New file.
43805         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43806         * modules/isfinite: New file.
43807         * modules/isfinite-tests: New file.
43808         * tests/tests-isfinite.c: New file.
43809         * doc/functions/isfinite.texi: Mention isfinite module.
43810         * MODULES.html.sh: Mention new module.
43811
43812 2007-10-27  Ben Pfaff  <blp@gnu.org>
43813
43814         Ralf Wildenhues reported that Tru64 4.0D declares the round
43815         functions but does not have definitions.
43816         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43817         cannot be found in any library, set the output variable to
43818         "missing" instead of "".
43819         * m4/round.m4: Also use our substitute if we cannot find round in
43820         any library, even if it is declared.
43821         * m4/roundf.m4: Likewise for roundf.
43822         * m4/roundl.m4: Likewise for roundl.
43823         * lib/math.in.h: Undefine roundf, round, roundl before defining
43824         their replacements, to allow for hypothetical systems where these
43825         may be defined as macros but not available in libraries.
43826
43827 2007-10-27  Bruno Haible  <bruno@clisp.org>
43828
43829         * doc/gnulib.texi: Invoke @firstparagraphindent.
43830         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43831         changes in gnulib.
43832         (Source changes): New section.
43833
43834 2007-10-26  Bruno Haible  <bruno@clisp.org>
43835
43836         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43837         borrowed from autoconf.
43838
43839 2007-10-26  Bruno Haible  <bruno@clisp.org>
43840
43841         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43842         strerror returned the empty string. Needed on HP-UX 11.00.
43843
43844 2007-10-24  Micah Cowan  <micah@cowan.name>
43845
43846         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43847         * build-aux/bootstrap: Remove support for now-unnecessary option,
43848         --cvs-user, and envvars CVS_USER, CVS_RSH.
43849
43850 2007-10-24  Jim Meyering  <meyering@redhat.com>
43851
43852         Avoid diagnostics from sha1sum when there is no cached checksum.
43853         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43854         if the po.s1 file hasn't been created yet.
43855
43856         * build-aux/bootstrap: Sync from coreutils:
43857         2007-10-24  Jim Meyering  <meyering@redhat.com>
43858         Get gnulib from the git repository, not from an obsolete cvs one.
43859         * build-aux/bootstrap: Suggestion from Micah Cowan.
43860         2007-10-04  Jim Meyering  <jim@meyering.net>
43861         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43862         (update_po_files): Work also when there are no .po files in po/.
43863
43864 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43865
43866         * README: Append ".git" to git and cg examples.
43867         Problem reported by Benoit Sigoure.
43868
43869 2007-10-23  Micah Cowan  <micah@cowan.name>
43870
43871         * users.txt: Add wget.
43872
43873 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43874
43875         Fix linking of some unistdio tests on FreeBSD.
43876         * modules/unistdio/u16-vsnprintf-tests
43877         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43878         * modules/unistdio/u16-vsprintf-tests
43879         (test_u16_vsnprintf1_LDADD): Likewise.
43880         * modules/unistdio/u32-vsnprintf-tests
43881         (test_u32_vsnprintf1_LDADD): Likewise.
43882         * modules/unistdio/u32-vsprintf-tests
43883         (test_u32_vsprintf1_LDADD): Likewise.
43884         * modules/unistdio/u8-vsnprintf-tests
43885         (test_u8_vsnprintf1_LDADD): Likewise.
43886         * modules/unistdio/u8-vsprintf-tests
43887         (test_u8_vsprintf1_LDADD): Likewise.
43888         * modules/unistdio/ulc-vsnprintf-tests
43889         (test_ulc_vsnprintf1_LDADD): Likewise.
43890         * modules/unistdio/ulc-vsprintf-tests
43891         (test_ulc_vsprintf1_LDADD): Likewise.
43892
43893         Fix linking of some uniconv tests on FreeBSD.
43894         * modules/uniconv/u16-conv-from-enc-tests
43895         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43896         * modules/uniconv/u16-conv-to-enc-tests
43897         (test_u16_conv_to_enc_LDADD): Likewise.
43898         * modules/uniconv/u16-strconv-from-enc-tests
43899         (test_u16_strconv_from_enc_LDADD): Likewise.
43900         * modules/uniconv/u16-strconv-to-enc-tests
43901         (test_u16_strconv_to_enc_LDADD): Likewise.
43902         * modules/uniconv/u32-conv-from-enc-tests
43903         (test_u32_conv_from_enc_LDADD): Likewise.
43904         * modules/uniconv/u32-conv-to-enc-tests
43905         (test_u32_conv_to_enc_LDADD): Likewise.
43906         * modules/uniconv/u32-strconv-from-enc-tests
43907         (test_u32_strconv_from_enc_LDADD): Likewise.
43908         * modules/uniconv/u32-strconv-to-enc-tests
43909         (test_u32_strconv_to_enc_LDADD): Likewise.
43910         * modules/uniconv/u8-conv-from-enc-tests
43911         (test_u8_conv_from_enc_LDADD): Likewise.
43912         * modules/uniconv/u8-conv-to-enc-tests
43913         (test_u8_conv_to_enc_LDADD): Likewise.
43914         * modules/uniconv/u8-strconv-from-enc-tests
43915         (test_u8_strconv_from_enc_LDADD): Likewise.
43916         * modules/uniconv/u8-strconv-to-enc-tests
43917         (test_u8_strconv_to_enc_LDADD): Likewise.
43918
43919 2007-10-22  Bruno Haible  <bruno@clisp.org>
43920
43921         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43922         size.
43923
43924 2007-10-22  Eric Blake  <ebb9@byu.net>
43925
43926         Tweak x*printf documentation.
43927         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43928         variable name and comments.
43929         Suggested by Bruno Haible.
43930
43931 2007-10-22  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/acl.c (copy_acl): Fix file name in comment.
43934
43935 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43936
43937         Fix Tru64 problem with stdbool.h.
43938         * lib/stdbool.in.h (false, true):
43939         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43940         Don't declare as an enum in this situation; it runs afoul of Tru64.
43941         Problem reported by Steven M. Schweda in
43942         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43943
43944 2007-10-22  Eric Blake  <ebb9@byu.net>
43945
43946         Also wrap vf?printf.
43947         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43948         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43949         (xvprintf, xvfprintf): New functions.
43950
43951 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43952
43953         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43954         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43955
43956         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43957         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43958
43959 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43960
43961         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43962         by Bruno Haible.
43963
43964 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43965
43966         * lib/getloadavg.c
43967         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43968         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43969
43970         * tests/test-i-ring.c: Work for C89.
43971
43972 2007-10-22  Bruno Haible  <bruno@clisp.org>
43973
43974         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43975         -1u, in preprocessor expression, so that we don't test for the bug
43976         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43977         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43978
43979 2007-10-22  Eric Blake  <ebb9@byu.net>
43980
43981         * tests/test-yesno.sh: Silence stderr during test.
43982
43983 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43984
43985         * modules/crypto/gc-camellia: New file.
43986
43987         * m4/gc-camellia.m4: New file.
43988
43989         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43990
43991         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43992
43993 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43994
43995         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43996         --help to stdout.  Reported by sms@antinode.org (Steven
43997         M. Schweda).
43998
43999 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44000
44001         * users.txt: Fix link to libksba.
44002
44003 2007-10-21  Ben Pfaff  <blp@gnu.org>
44004
44005         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44006         round.c roundf implementation that depends on floorf and ceilf to
44007         be tested unconditionally.
44008
44009 2007-10-21  Ben Pfaff  <blp@gnu.org>
44010
44011         * m4/check-libm-func.m4: Removed.
44012         * m4/check-math-lib.m4: New file.
44013         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44014         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44015         definition and lack of AC_LIBOBJ([roundf]).
44016         * m4/roundl.m4: Ditto, and similarly for roundl.
44017         * modules/round: Reference new m4 file.
44018         * modules/roundf: Ditto.
44019         * modules/roundl: Ditto.
44020         * tests/test-round2.c (main): Use ROUND instead of round.
44021         Bug report from Bruno Haible.
44022
44023 2007-10-21  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44026         context.
44027
44028 2007-10-21  Bruno Haible  <bruno@clisp.org>
44029
44030         * tests/test-wcwidth.c (main): Allow negative result for some control
44031         characters.
44032
44033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44034         Needed on OSF/1 5.1.
44035
44036 2007-10-21  Bruno Haible  <bruno@clisp.org>
44037
44038         * tests/test-floorf1.c: Include isnanf.h.
44039         (main): Use isnanf() instead of isnan().
44040         * tests/test-ceilf1.c: Include isnanf.h.
44041         (main): Use isnanf() instead of isnan().
44042         * tests/test-truncf1.c: Include isnanf.h.
44043         (main): Use isnanf() instead of isnan().
44044         * tests/test-roundf1.c: Include isnanf.h.
44045         (main): Use isnanf() instead of isnan().
44046
44047 2007-10-21  Eric Blake  <ebb9@byu.net>
44048
44049         * users.txt: Update URL for m4.
44050
44051 2007-10-21  Bruno Haible  <bruno@clisp.org>
44052
44053         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44054
44055 2007-10-21  Bruno Haible  <bruno@clisp.org>
44056
44057         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44058         Git's management files if the CVS files are not present.
44059
44060 2007-10-20  Bruno Haible  <bruno@clisp.org>
44061
44062         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44063         gcc-3.4.x.
44064
44065 2007-10-20  Ben Pfaff  <blp@gnu.org>
44066
44067         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44068         implementations.
44069         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44070         * lib/round.c: New file.
44071         * lib/roundf.c: New file.
44072         * lib/roundl.c: New file.
44073         * m4/round.m4: New file.
44074         * m4/roundf.m4: New file.
44075         * m4/roundl.m4: New file.
44076         * m4/check-libm-func-m4: New file.
44077         * modules/math: Replace round, roundf, roundl related @VARS@ in
44078         math.in.h.
44079         * modules/round: New file.
44080         * modules/round-tests: New file.
44081         * modules/roundf: New file.
44082         * modules/roundf-tests: New file.
44083         * modules/roundl: New file.
44084         * modules/roundl-tests: New file.
44085         * tests/test-round1.c: New file.
44086         * tests/test-round2.c: New file.
44087         * tests/test-roundf1.c: New file.
44088         * tests/test-roundf2.c: New file.
44089         * tests/test-roundl.c: New file.
44090         * doc/functions/round.texi: Mention round module.
44091         * doc/functions/roundf.texi: Mention roundf module.
44092         * doc/functions/roundl.texi: Mention roundl module.
44093         * MODULES.html.sh: Mention new modules.
44094         Thanks to Bruno Haible for suggestions.
44095
44096 2007-10-20  Jim Meyering  <meyering@redhat.com>
44097
44098         * lib/xprintf.c: Include <config.h> unconditionally.
44099
44100         Change xprintf's license to GPL.
44101         * modules/xprintf (License): s/LGPL/GPL/, since this module
44102         depends on modules (exit and exitfail) which are GPL.
44103         Suggestion from Bruno Haible.
44104
44105         xprintf fixes.
44106         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44107         Use a clearer diagnostic.
44108         Patch from Bruno Haible.
44109
44110 2007-10-20  Bruno Haible  <bruno@clisp.org>
44111
44112         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44113         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44115
44116 2007-10-20  Bruno Haible  <bruno@clisp.org>
44117
44118         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44119         precision in the comparison result > x - 1 or similar.
44120         * tests/test-ceilf2.c (correct_result_p): Likewise.
44121         * tests/test-truncf2.c (correct_result_p): Likewise.
44122         * tests/test-trunc2.c (correct_result_p): Likewise.
44123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44124
44125 2007-10-20  Bruno Haible  <bruno@clisp.org>
44126
44127         * modules/ceil: New file.
44128         * m4/ceil.m4: New file.
44129         * doc/functions/ceil.texi: Mention the 'ceil' module.
44130
44131 2007-10-20  Bruno Haible  <bruno@clisp.org>
44132
44133         * modules/floor: New file.
44134         * m4/floor.m4: New file.
44135         * doc/functions/floor.texi: Mention the 'floor' module.
44136
44137 2007-10-20  Bruno Haible  <bruno@clisp.org>
44138
44139         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44140         of %a.
44141         * modules/floorf-tests (Depends-on): Likewise.
44142         * modules/truncf-tests (Depends-on): Likewise.
44143         * modules/trunc-tests (Depends-on): Likewise.
44144         Reported by Ben Pfaff.
44145
44146 2007-10-19  Jim Meyering  <meyering@redhat.com>
44147
44148         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44149         Don't bother testing specific errno values.  Just test ferror.
44150
44151         New module: xprintf
44152         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44153
44154 2007-10-19  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44157         syntax.
44158         * modules/javaexec (Makefile.am): Likewise.
44159         * modules/relocatable-prog (Makefile.am): Likewise.
44160         Suggested by Jim Meyering.
44161
44162 2007-10-18  Bruno Haible  <bruno@clisp.org>
44163
44164         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44165         Reported by Jim Meyering.
44166
44167 2007-10-18  Eric Blake  <ebb9@byu.net>
44168
44169         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44170
44171 2007-10-18  Bruno Haible  <bruno@clisp.org>
44172
44173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44174         the format string into writable memory. Needed in Fortify conditions.
44175
44176 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44177             Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44180         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44181         * modules/trim (Depends-on): Add mbchar.
44182         (configure.ac): Add gl_FUNC_MBRTOWC.
44183         (Makefile.am): Augment lib_SOURCES.
44184
44185 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44186
44187         Modify glob.c to use fstatat and dirfd, to simplify it.
44188         Suggested by Eric Blake.
44189         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44190         Don't include <stdbool.h>; not used.
44191         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44192         (link_exists_p): Simplify implementation, since we can now assume
44193         dirfd and fstatat.
44194         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44195
44196 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44197
44198         * gnulib-tool (func_get_dependencies): Fix sed script to
44199         match only tests.
44200
44201 2007-10-17  Bruno Haible  <bruno@clisp.org>
44202
44203         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44204         allow locale names without encoding suffix.
44205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44206         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44207
44208 2007-10-16  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44211         * lib/getgroups.c (getgroups): Likewise.
44212         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44213
44214 2007-10-16  Bruno Haible  <bruno@clisp.org>
44215
44216         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44217         * modules/malloc-posix (License): Likewise.
44218         * modules/realloc-posix (License): Likewise.
44219         * modules/calloc-posix (License): Likewise.
44220         * modules/intprops (License): Change from GPL to LGPL, with
44221         Paul Eggert's approval.
44222
44223 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44224
44225         Merge glibc changes into lib/glob.c.
44226
44227         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44228         2007-10-15 04:59:03 UTC.  Here are the changes:
44229
44230         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44231
44232         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44233
44234         * lib/glob.c: Add some branch prediction throughout.
44235
44236         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44237
44238         [BZ #5103]
44239         * lib/glob.c (glob): Recognize patterns starting \/.
44240
44241         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44242
44243         [BZ #3996]
44244         * lib/glob.c (attribute_hidden): Define if not defined.
44245         (glob): Unescape dirname, filename or username when needed and not
44246         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44247         is NULL.  Handle unescaped [ in pattern without closing ].
44248         Don't pass GLOB_CHECK down to recursive glob for directories.
44249         (__glob_pattern_type): New function.
44250         (__glob_pattern_p): Implement using __glob_pattern_type.
44251         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44252         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44253         Remove unreachable code.
44254
44255         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44256
44257         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44258         explain why there are no leaks.
44259
44260         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44261
44262         [BZ #3253]
44263         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44264         time, rather allocate increasingly bigger arrays of pointers, if
44265         possible with alloca, if too large with malloc.
44266
44267 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44268
44269         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44270         Problem reported by H.Merijn Brand in
44271         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44272         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44273         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44274
44275 2007-10-15  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44278         with explicit rpl_ prefix.
44279         * lib/fopen.c (fopen): Likewise.
44280         * lib/freopen.c (freopen): Likewise.
44281         * lib/iconv.c (iconv): Likewise.
44282         * lib/iconv_close.c (iconv_close): Likewise.
44283
44284 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44285
44286         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44287
44288 2007-10-15  Bruno Haible  <bruno@clisp.org>
44289
44290         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44291         <stddef.h> instead of <stdlib.h> since we only need NULL.
44292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44293
44294 2007-10-15  Bruno Haible  <bruno@clisp.org>
44295
44296         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44297         Replace paragraph talking about LIBOBJS.
44298         Reported by Colin Watson <cjwatson@debian.org>.
44299
44300 2007-10-15  Bruno Haible  <bruno@clisp.org>
44301
44302         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44303         <stdlib.h> before using NULL.
44304
44305 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44306
44307         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44308         Reported by Albert Chin <china@thewrittenword.com>.
44309
44310 2007-10-14  Bruno Haible  <bruno@clisp.org>
44311
44312         * modules/iconv_open-utf-tests: New file.
44313         * tests/test-iconv-utf.c: New file.
44314
44315         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44316         * modules/iconv_open-utf: New file.
44317         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44318         (iconv, iconv_close): New declarations.
44319         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44320         be defined.
44321         (iconv_open): Add special handling of conversion between UTF-8 and
44322         UTF-{16,32}{BE,LE}.
44323         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44324         * lib/iconv_close.c: New file.
44325         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44326         gl_FUNC_ICONV_OPEN.
44327         (gl_FUNC_ICONV_OPEN): Use it.
44328         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44329         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44330         and REPLACE_ICONV_UTF.
44331         * modules/iconv_open (Depends-on): Add c-strcase.
44332         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44333         ICONV_CONST.
44334         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44335
44336 2007-10-13  Albert Chin  <china@thewrittenword.com>
44337             Bruno Haible  <bruno@clisp.org>
44338
44339         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44340         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44341
44342 2007-10-13  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44345         defined, use the ISO C99 inline semantics.
44346         * lib/argp.h (ARGP_EI): Likewise.
44347
44348 2007-10-13  Bruno Haible  <bruno@clisp.org>
44349
44350         Handle 'inline' change in gcc 4.3.0.
44351         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44352         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44353         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44354         argp_fmtstream_point): Disable 'extern' declaration if the function
44355         definition is going to be provided inline.
44356         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44357         semantics, not the ISO C99 inline semantics.
44358         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44359         'extern' declaration if the function definition is going to be provided
44360         inline.
44361         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44362         the GNU C inline semantics, not the ISO C99 inline semantics. With
44363         GCC 4.2, avoid a warning.
44364
44365 2007-10-13  Bruno Haible  <bruno@clisp.org>
44366
44367         * lib/freading.h (freading): Enable the use of __freading for
44368         glibc >= 2.7.
44369         * lib/freading.c (freading): Likewise.
44370
44371 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44372
44373         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44374         "warning: C99 inline functions are not supported; using GNU89".
44375
44376 2007-10-12  Bruno Haible  <bruno@clisp.org>
44377
44378         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44379         of 2.
44380         * tests/test-ceilf2.c: New file.
44381         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44382
44383         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44384         * modules/ceilf-tests: Update.
44385
44386 2007-10-12  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44389         of 2.
44390         * tests/test-floorf2.c: New file.
44391         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44392
44393         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44394         * modules/floorf-tests: Update.
44395
44396 2007-10-12  Bruno Haible  <bruno@clisp.org>
44397
44398         * tests/test-trunc2.c: New file.
44399         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44400
44401         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44402         * modules/trunc-tests: Update.
44403
44404 2007-10-12  Bruno Haible  <bruno@clisp.org>
44405
44406         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44407         of 2.
44408         * tests/test-truncf2.c: New file.
44409         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44410
44411         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44412         * modules/truncf-tests: Update.
44413
44414 2007-10-11  Eric Blake  <ebb9@byu.net>
44415
44416         Don't claim strerror is broken on Interix.
44417         * doc/functions/strerror.texi (strerror): Known broken systems are
44418         now Solaris 8, and not Interix.
44419         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44420         Interix on cross-compile.
44421         Reported by Martin Koeppe in
44422         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44423
44424 2007-10-11  Bruno Haible  <bruno@clisp.org>
44425
44426         * modules/i-ring-tests: New file.
44427         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44428         instead of assert.
44429
44430 2007-10-11  Bruno Haible  <bruno@clisp.org>
44431
44432         * modules/filenamecat-tests: New file.
44433         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44434         * lib/filenamecat.c: Remove test code.
44435
44436 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44437
44438         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44439
44440         * lib/strerror.c: Include <string.h> always, to test interface,
44441         and to remove the need for the dummy.
44442         Include intprops.h to compute width instead of doing it ourselves
44443         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44444         (strerror): Define it to return NULL if there's no system strerror.
44445         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44446         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44447         ancient pre-strerror Unix systems well any more.  Saying "unknown
44448         system error" is enough.
44449         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44450         simpler strerror.c implementation.
44451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44452         Simplify the tests to reflect the simpler strerror implementation.
44453         * modules/strerror (Depends-on): Add intprops.
44454
44455 2007-10-09  Eric Blake  <ebb9@byu.net>
44456
44457         Silence test-fpending.
44458         * modules/fpending-tests (Files): Add wrapper script.
44459         * tests/test-fpending.sh: New file.
44460
44461 2007-10-09  Bruno Haible  <bruno@clisp.org>
44462
44463         * MODULES.html.sh (func_module): Don't create a hyperlink for
44464         function names like 'printf_frexp'.
44465         (Misc): Add crc, memxor.
44466         (Characteristics of floating types): New section.
44467         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44468         isnanf-nolibm, signbit, trunc, truncf, truncl.
44469         (Enhancements for ISO C 99 functions): New subsection Input/output.
44470         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44471         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44472         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44473         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44474         (Enhancements for POSIX:2001 functions): Add chdir-long.
44475         (File system functions): Add areadlink, chdir-safer, read-file.
44476         Remove cycle-check.
44477         (File system as inode set): New section.
44478         (Date and time): Add gethrxtime.
44479         (Multithreading): Add openmp.
44480         (Internationalization functions): Add localename.
44481         (Unicode string functions): Add unistr/u*-mbsnlen.
44482         (Support for maintaining and releasing projects): Add git-version-gen.
44483         (Lone files): Remove directories.
44484
44485 2007-10-08  Ben Pfaff  <blp@gnu.org>
44486
44487         * lib/xmalloca.h: Fix typo in comment.
44488
44489 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44490
44491         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44492         when avoiding problems with integer overflow.  Use a portable test
44493         instead.
44494
44495 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44496
44497         * modules/dummy (License): Change to LGPLv2+.
44498         * modules/float (License): Likewise
44499         * modules/realloc (License): Likewise
44500         * modules/stdlib (License): Likewise
44501
44502 2007-10-07  Bruno Haible  <bruno@clisp.org>
44503
44504         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44505         * floor.c (TWO_MANT_DIG): Likewise.
44506         * ceil.c (TWO_MANT_DIG): Likewise.
44507         Reported by Ben Pfaff.
44508
44509 2007-10-07  Bruno Haible  <bruno@clisp.org>
44510
44511         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44512         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44513         * lib/frexp.c (FUNC): Likewise.
44514         * lib/printf-frexp.h (printf_frexp): Likewise.
44515         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44516         * lib/printf-frexp.c (FUNC): Likewise.
44517         Suggested by Jim Meyering.
44518
44519 2007-10-07  Jim Meyering  <meyering@redhat.com>
44520
44521         Make xnanosleep's integer overflow test more robust.
44522         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44523         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44524
44525 2007-10-07  Bruno Haible  <bruno@clisp.org>
44526
44527         * NEWS: Mention the license change.
44528
44529         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44530         abbreviations in the modules files.
44531
44532         Change copyright notice from GPLv2+ to GPLv3+.
44533         * README: Change copyright notice.
44534         * MODULES.html.sh: Likewise.
44535         * build-aux/bootstrap.conf: Likewise.
44536         * build-aux/config.libpath: Likewise.
44537         * build-aux/csharpcomp.sh.in: Likewise.
44538         * build-aux/csharpexec.sh.in: Likewise.
44539         * build-aux/install-reloc: Likewise.
44540         * build-aux/javacomp.sh.in: Likewise.
44541         * build-aux/javaexec.sh.in: Likewise.
44542         * build-aux/ldd.sh.in: Likewise.
44543         * build-aux/reloc-ldflags: Likewise.
44544         * build-aux/relocatable.sh.in: Likewise.
44545         * build-aux/x-to-1.in: Likewise.
44546         * check-module: Likewise.
44547         * config/srclistvars.sh: Likewise.
44548         * gnulib-tool: Likewise.
44549         * lib/acl-internal.h: Likewise.
44550         * lib/acl.c: Likewise.
44551         * lib/acl.h: Likewise.
44552         * lib/acl_entries.c: Likewise.
44553         * lib/areadlink-with-size.c: Likewise.
44554         * lib/areadlink.c: Likewise.
44555         * lib/areadlink.h: Likewise.
44556         * lib/argmatch.c: Likewise.
44557         * lib/argmatch.h: Likewise.
44558         * lib/argp-ba.c: Likewise.
44559         * lib/argp-eexst.c: Likewise.
44560         * lib/argp-fmtstream.c: Likewise.
44561         * lib/argp-fmtstream.h: Likewise.
44562         * lib/argp-fs-xinl.c: Likewise.
44563         * lib/argp-help.c: Likewise.
44564         * lib/argp-namefrob.h: Likewise.
44565         * lib/argp-parse.c: Likewise.
44566         * lib/argp-pin.c: Likewise.
44567         * lib/argp-pv.c: Likewise.
44568         * lib/argp-pvh.c: Likewise.
44569         * lib/argp-xinl.c: Likewise.
44570         * lib/argp.h: Likewise.
44571         * lib/at-func.c: Likewise.
44572         * lib/atanl.c: Likewise.
44573         * lib/backupfile.c: Likewise.
44574         * lib/backupfile.h: Likewise.
44575         * lib/basename.c: Likewise.
44576         * lib/binary-io.h: Likewise.
44577         * lib/byteswap.in.h: Likewise.
44578         * lib/c-stack.c: Likewise.
44579         * lib/c-stack.h: Likewise.
44580         * lib/c-strcasestr.c: Likewise.
44581         * lib/c-strcasestr.h: Likewise.
44582         * lib/c-strstr.c: Likewise.
44583         * lib/c-strstr.h: Likewise.
44584         * lib/c-strtod.c: Likewise.
44585         * lib/calloc.c: Likewise.
44586         * lib/canon-host.c: Likewise.
44587         * lib/canon-host.h: Likewise.
44588         * lib/canonicalize-lgpl.c: Likewise.
44589         * lib/canonicalize.c: Likewise.
44590         * lib/canonicalize.h: Likewise.
44591         * lib/ceil.c: Likewise.
44592         * lib/ceilf.c: Likewise.
44593         * lib/ceill.c: Likewise.
44594         * lib/chdir-long.c: Likewise.
44595         * lib/chdir-long.h: Likewise.
44596         * lib/chdir-safer.c: Likewise.
44597         * lib/chdir-safer.h: Likewise.
44598         * lib/chown.c: Likewise.
44599         * lib/classpath.c: Likewise.
44600         * lib/classpath.h: Likewise.
44601         * lib/clean-temp.c: Likewise.
44602         * lib/clean-temp.h: Likewise.
44603         * lib/cloexec.c: Likewise.
44604         * lib/close-stream.c: Likewise.
44605         * lib/closein.c: Likewise.
44606         * lib/closein.h: Likewise.
44607         * lib/closeout.c: Likewise.
44608         * lib/closeout.h: Likewise.
44609         * lib/concat-filename.c: Likewise.
44610         * lib/copy-file.c: Likewise.
44611         * lib/copy-file.h: Likewise.
44612         * lib/count-one-bits.h: Likewise.
44613         * lib/crc.c: Likewise.
44614         * lib/crc.h: Likewise.
44615         * lib/creat-safer.c: Likewise.
44616         * lib/csharpcomp.c: Likewise.
44617         * lib/csharpcomp.h: Likewise.
44618         * lib/csharpexec.c: Likewise.
44619         * lib/csharpexec.h: Likewise.
44620         * lib/cycle-check.c: Likewise.
44621         * lib/cycle-check.h: Likewise.
44622         * lib/diacrit.c: Likewise.
44623         * lib/diacrit.h: Likewise.
44624         * lib/diffseq.h: Likewise.
44625         * lib/dirchownmod.c: Likewise.
44626         * lib/dirent.in.h: Likewise.
44627         * lib/dirfd.c: Likewise.
44628         * lib/dirfd.h: Likewise.
44629         * lib/dirname.c: Likewise.
44630         * lib/dirname.h: Likewise.
44631         * lib/dummy.c: Likewise.
44632         * lib/dup-safer.c: Likewise.
44633         * lib/dup2.c: Likewise.
44634         * lib/eealloc.h: Likewise.
44635         * lib/error.c: Likewise.
44636         * lib/error.h: Likewise.
44637         * lib/euidaccess.c: Likewise.
44638         * lib/exclude.c: Likewise.
44639         * lib/exclude.h: Likewise.
44640         * lib/execute.c: Likewise.
44641         * lib/execute.h: Likewise.
44642         * lib/exitfail.c: Likewise.
44643         * lib/exitfail.h: Likewise.
44644         * lib/expl.c: Likewise.
44645         * lib/fatal-signal.c: Likewise.
44646         * lib/fatal-signal.h: Likewise.
44647         * lib/fbufmode.c: Likewise.
44648         * lib/fbufmode.h: Likewise.
44649         * lib/fchdir.c: Likewise.
44650         * lib/fchmodat.c: Likewise.
44651         * lib/fchownat.c: Likewise.
44652         * lib/fcntl--.h: Likewise.
44653         * lib/fcntl-safer.h: Likewise.
44654         * lib/fcntl.in.h: Likewise.
44655         * lib/fd-safer.c: Likewise.
44656         * lib/fflush.c: Likewise.
44657         * lib/file-has-acl.c: Likewise.
44658         * lib/file-set.c: Likewise.
44659         * lib/file-type.c: Likewise.
44660         * lib/file-type.h: Likewise.
44661         * lib/fileblocks.c: Likewise.
44662         * lib/filemode.c: Likewise.
44663         * lib/filemode.h: Likewise.
44664         * lib/filename.h: Likewise.
44665         * lib/filenamecat.c: Likewise.
44666         * lib/filenamecat.h: Likewise.
44667         * lib/findprog.c: Likewise.
44668         * lib/findprog.h: Likewise.
44669         * lib/float.in.h: Likewise.
44670         * lib/floor.c: Likewise.
44671         * lib/floorf.c: Likewise.
44672         * lib/floorl.c: Likewise.
44673         * lib/fopen-safer.c: Likewise.
44674         * lib/fopen.c: Likewise.
44675         * lib/fpending.c: Likewise.
44676         * lib/fpending.h: Likewise.
44677         * lib/fprintf.c: Likewise.
44678         * lib/fprintftime.h: Likewise.
44679         * lib/fpucw.h: Likewise.
44680         * lib/fpurge.c: Likewise.
44681         * lib/fpurge.h: Likewise.
44682         * lib/freadable.c: Likewise.
44683         * lib/freadable.h: Likewise.
44684         * lib/freadahead.c: Likewise.
44685         * lib/freadahead.h: Likewise.
44686         * lib/freading.c: Likewise.
44687         * lib/freading.h: Likewise.
44688         * lib/free.c: Likewise.
44689         * lib/freopen.c: Likewise.
44690         * lib/frexp.c: Likewise.
44691         * lib/frexpl.c: Likewise.
44692         * lib/fseek.c: Likewise.
44693         * lib/fseterr.c: Likewise.
44694         * lib/fseterr.h: Likewise.
44695         * lib/fstatat.c: Likewise.
44696         * lib/fstrcmp.c: Likewise.
44697         * lib/fstrcmp.h: Likewise.
44698         * lib/fsusage.c: Likewise.
44699         * lib/fsusage.h: Likewise.
44700         * lib/ftell.c: Likewise.
44701         * lib/ftello.c: Likewise.
44702         * lib/fts-cycle.c: Likewise.
44703         * lib/fts.c: Likewise.
44704         * lib/fts_.h: Likewise.
44705         * lib/full-read.c: Likewise.
44706         * lib/full-read.h: Likewise.
44707         * lib/full-write.c: Likewise.
44708         * lib/full-write.h: Likewise.
44709         * lib/fwritable.c: Likewise.
44710         * lib/fwritable.h: Likewise.
44711         * lib/fwriteerror.c: Likewise.
44712         * lib/fwriteerror.h: Likewise.
44713         * lib/fwriting.c: Likewise.
44714         * lib/fwriting.h: Likewise.
44715         * lib/gcd.c: Likewise.
44716         * lib/gcd.h: Likewise.
44717         * lib/getcwd.c: Likewise.
44718         * lib/getdate.h: Likewise.
44719         * lib/getdate.y: Likewise.
44720         * lib/getdomainname.c: Likewise.
44721         * lib/getdomainname.h: Likewise.
44722         * lib/getgroups.c: Likewise.
44723         * lib/gethostname.c: Likewise.
44724         * lib/gethrxtime.c: Likewise.
44725         * lib/gethrxtime.h: Likewise.
44726         * lib/getloadavg.c: Likewise.
44727         * lib/getndelim2.c: Likewise.
44728         * lib/getndelim2.h: Likewise.
44729         * lib/getnline.c: Likewise.
44730         * lib/getnline.h: Likewise.
44731         * lib/getopt.c: Likewise.
44732         * lib/getopt.in.h: Likewise.
44733         * lib/getopt1.c: Likewise.
44734         * lib/getopt_int.h: Likewise.
44735         * lib/getpagesize.h: Likewise.
44736         * lib/getsubopt.c: Likewise.
44737         * lib/gettime.c: Likewise.
44738         * lib/getugroups.c: Likewise.
44739         * lib/getugroups.h: Likewise.
44740         * lib/getusershell.c: Likewise.
44741         * lib/gl_anyavltree_list1.h: Likewise.
44742         * lib/gl_anyavltree_list2.h: Likewise.
44743         * lib/gl_anyhash_list1.h: Likewise.
44744         * lib/gl_anyhash_list2.h: Likewise.
44745         * lib/gl_anylinked_list1.h: Likewise.
44746         * lib/gl_anylinked_list2.h: Likewise.
44747         * lib/gl_anyrbtree_list1.h: Likewise.
44748         * lib/gl_anyrbtree_list2.h: Likewise.
44749         * lib/gl_anytree_list1.h: Likewise.
44750         * lib/gl_anytree_list2.h: Likewise.
44751         * lib/gl_anytree_oset.h: Likewise.
44752         * lib/gl_anytreehash_list1.h: Likewise.
44753         * lib/gl_anytreehash_list2.h: Likewise.
44754         * lib/gl_array_list.c: Likewise.
44755         * lib/gl_array_list.h: Likewise.
44756         * lib/gl_array_oset.c: Likewise.
44757         * lib/gl_array_oset.h: Likewise.
44758         * lib/gl_avltree_list.c: Likewise.
44759         * lib/gl_avltree_list.h: Likewise.
44760         * lib/gl_avltree_oset.c: Likewise.
44761         * lib/gl_avltree_oset.h: Likewise.
44762         * lib/gl_avltreehash_list.c: Likewise.
44763         * lib/gl_avltreehash_list.h: Likewise.
44764         * lib/gl_carray_list.c: Likewise.
44765         * lib/gl_carray_list.h: Likewise.
44766         * lib/gl_linked_list.c: Likewise.
44767         * lib/gl_linked_list.h: Likewise.
44768         * lib/gl_linkedhash_list.c: Likewise.
44769         * lib/gl_linkedhash_list.h: Likewise.
44770         * lib/gl_list.c: Likewise.
44771         * lib/gl_list.h: Likewise.
44772         * lib/gl_oset.c: Likewise.
44773         * lib/gl_oset.h: Likewise.
44774         * lib/gl_rbtree_list.c: Likewise.
44775         * lib/gl_rbtree_list.h: Likewise.
44776         * lib/gl_rbtree_oset.c: Likewise.
44777         * lib/gl_rbtree_oset.h: Likewise.
44778         * lib/gl_rbtreehash_list.c: Likewise.
44779         * lib/gl_rbtreehash_list.h: Likewise.
44780         * lib/gl_sublist.c: Likewise.
44781         * lib/gl_sublist.h: Likewise.
44782         * lib/group-member.c: Likewise.
44783         * lib/group-member.h: Likewise.
44784         * lib/hard-locale.c: Likewise.
44785         * lib/hard-locale.h: Likewise.
44786         * lib/hash-pjw.c: Likewise.
44787         * lib/hash-pjw.h: Likewise.
44788         * lib/hash-triple.c: Likewise.
44789         * lib/hash.c: Likewise.
44790         * lib/hash.h: Likewise.
44791         * lib/human.c: Likewise.
44792         * lib/human.h: Likewise.
44793         * lib/i-ring.c: Likewise.
44794         * lib/i-ring.h: Likewise.
44795         * lib/idcache.c: Likewise.
44796         * lib/imaxabs.c: Likewise.
44797         * lib/imaxdiv.c: Likewise.
44798         * lib/inet_pton.c: Likewise.
44799         * lib/inet_pton.h: Likewise.
44800         * lib/intprops.h: Likewise.
44801         * lib/inttostr.c: Likewise.
44802         * lib/inttostr.h: Likewise.
44803         * lib/inttypes.in.h: Likewise.
44804         * lib/isapipe.c: Likewise.
44805         * lib/isdir.c: Likewise.
44806         * lib/isnan.c: Likewise.
44807         * lib/isnan.h: Likewise.
44808         * lib/isnanf.c: Likewise.
44809         * lib/isnanf.h: Likewise.
44810         * lib/isnanl-nolibm.h: Likewise.
44811         * lib/isnanl.c: Likewise.
44812         * lib/isnanl.h: Likewise.
44813         * lib/javacomp.c: Likewise.
44814         * lib/javacomp.h: Likewise.
44815         * lib/javaexec.c: Likewise.
44816         * lib/javaexec.h: Likewise.
44817         * lib/javaversion.c: Likewise.
44818         * lib/javaversion.h: Likewise.
44819         * lib/javaversion.java: Likewise.
44820         * lib/lbrkprop.h: Likewise.
44821         * lib/lchmod.h: Likewise.
44822         * lib/lchown.c: Likewise.
44823         * lib/ldexpl.c: Likewise.
44824         * lib/linebreak.c: Likewise.
44825         * lib/linebreak.h: Likewise.
44826         * lib/linebuffer.c: Likewise.
44827         * lib/linebuffer.h: Likewise.
44828         * lib/locale.in.h: Likewise.
44829         * lib/logl.c: Likewise.
44830         * lib/long-options.c: Likewise.
44831         * lib/long-options.h: Likewise.
44832         * lib/lstat.c: Likewise.
44833         * lib/lstat.h: Likewise.
44834         * lib/math.in.h: Likewise.
44835         * lib/mbchar.c: Likewise.
44836         * lib/mbchar.h: Likewise.
44837         * lib/mbfile.h: Likewise.
44838         * lib/mbiter.h: Likewise.
44839         * lib/mbscasecmp.c: Likewise.
44840         * lib/mbscasestr.c: Likewise.
44841         * lib/mbschr.c: Likewise.
44842         * lib/mbscspn.c: Likewise.
44843         * lib/mbslen.c: Likewise.
44844         * lib/mbsncasecmp.c: Likewise.
44845         * lib/mbsnlen.c: Likewise.
44846         * lib/mbspbrk.c: Likewise.
44847         * lib/mbspcasecmp.c: Likewise.
44848         * lib/mbsrchr.c: Likewise.
44849         * lib/mbssep.c: Likewise.
44850         * lib/mbsspn.c: Likewise.
44851         * lib/mbsstr.c: Likewise.
44852         * lib/mbstok_r.c: Likewise.
44853         * lib/mbswidth.c: Likewise.
44854         * lib/mbswidth.h: Likewise.
44855         * lib/mbuiter.h: Likewise.
44856         * lib/memcasecmp.c: Likewise.
44857         * lib/memcasecmp.h: Likewise.
44858         * lib/memchr.c: Likewise.
44859         * lib/memcmp.c: Likewise.
44860         * lib/memcoll.c: Likewise.
44861         * lib/memcoll.h: Likewise.
44862         * lib/memcpy.c: Likewise.
44863         * lib/memrchr.c: Likewise.
44864         * lib/mkancesdirs.c: Likewise.
44865         * lib/mkdir-p.c: Likewise.
44866         * lib/mkdir-p.h: Likewise.
44867         * lib/mkdir.c: Likewise.
44868         * lib/mkdirat.c: Likewise.
44869         * lib/mkdtemp.c: Likewise.
44870         * lib/mkstemp-safer.c: Likewise.
44871         * lib/mkstemp.c: Likewise.
44872         * lib/modechange.c: Likewise.
44873         * lib/modechange.h: Likewise.
44874         * lib/mountlist.c: Likewise.
44875         * lib/mountlist.h: Likewise.
44876         * lib/mpsort.c: Likewise.
44877         * lib/nanosleep.c: Likewise.
44878         * lib/obstack.c: Likewise.
44879         * lib/obstack.h: Likewise.
44880         * lib/open-safer.c: Likewise.
44881         * lib/open.c: Likewise.
44882         * lib/openat-die.c: Likewise.
44883         * lib/openat-priv.h: Likewise.
44884         * lib/openat-proc.c: Likewise.
44885         * lib/openat.c: Likewise.
44886         * lib/openat.h: Likewise.
44887         * lib/pagealign_alloc.c: Likewise.
44888         * lib/pagealign_alloc.h: Likewise.
44889         * lib/physmem.c: Likewise.
44890         * lib/physmem.h: Likewise.
44891         * lib/pipe-safer.c: Likewise.
44892         * lib/pipe.c: Likewise.
44893         * lib/pipe.h: Likewise.
44894         * lib/posixtm.c: Likewise.
44895         * lib/posixtm.h: Likewise.
44896         * lib/posixver.c: Likewise.
44897         * lib/printf-frexp.c: Likewise.
44898         * lib/printf-frexp.h: Likewise.
44899         * lib/printf-frexpl.c: Likewise.
44900         * lib/printf-frexpl.h: Likewise.
44901         * lib/printf.c: Likewise.
44902         * lib/progname.c: Likewise.
44903         * lib/progname.h: Likewise.
44904         * lib/progreloc.c: Likewise.
44905         * lib/putenv.c: Likewise.
44906         * lib/quote.c: Likewise.
44907         * lib/quote.h: Likewise.
44908         * lib/quotearg.c: Likewise.
44909         * lib/quotearg.h: Likewise.
44910         * lib/raise.c: Likewise.
44911         * lib/readline.c: Likewise.
44912         * lib/readline.h: Likewise.
44913         * lib/readlink.c: Likewise.
44914         * lib/readtokens.c: Likewise.
44915         * lib/readtokens.h: Likewise.
44916         * lib/readtokens0.c: Likewise.
44917         * lib/readtokens0.h: Likewise.
44918         * lib/readutmp.c: Likewise.
44919         * lib/readutmp.h: Likewise.
44920         * lib/realloc.c: Likewise.
44921         * lib/relocwrapper.c: Likewise.
44922         * lib/rename-dest-slash.c: Likewise.
44923         * lib/rename.c: Likewise.
44924         * lib/rmdir.c: Likewise.
44925         * lib/rpmatch.c: Likewise.
44926         * lib/safe-read.c: Likewise.
44927         * lib/safe-read.h: Likewise.
44928         * lib/safe-write.c: Likewise.
44929         * lib/safe-write.h: Likewise.
44930         * lib/same-inode.h: Likewise.
44931         * lib/same.c: Likewise.
44932         * lib/same.h: Likewise.
44933         * lib/save-cwd.c: Likewise.
44934         * lib/save-cwd.h: Likewise.
44935         * lib/savedir.c: Likewise.
44936         * lib/savedir.h: Likewise.
44937         * lib/savewd.c: Likewise.
44938         * lib/savewd.h: Likewise.
44939         * lib/search.in.h: Likewise.
44940         * lib/setenv.c: Likewise.
44941         * lib/setenv.h: Likewise.
44942         * lib/settime.c: Likewise.
44943         * lib/sh-quote.c: Likewise.
44944         * lib/sh-quote.h: Likewise.
44945         * lib/sig2str.c: Likewise.
44946         * lib/sig2str.h: Likewise.
44947         * lib/signal.in.h: Likewise.
44948         * lib/signbitd.c: Likewise.
44949         * lib/signbitf.c: Likewise.
44950         * lib/signbitl.c: Likewise.
44951         * lib/sigprocmask.c: Likewise.
44952         * lib/sincosl.c: Likewise.
44953         * lib/sleep.c: Likewise.
44954         * lib/sprintf.c: Likewise.
44955         * lib/sqrtl.c: Likewise.
44956         * lib/stat-time.h: Likewise.
44957         * lib/stdio--.h: Likewise.
44958         * lib/stdio-safer.h: Likewise.
44959         * lib/stdlib--.h: Likewise.
44960         * lib/stdlib-safer.h: Likewise.
44961         * lib/stdlib.in.h: Likewise.
44962         * lib/stpcpy.c: Likewise.
44963         * lib/stpncpy.c: Likewise.
44964         * lib/strchrnul.c: Likewise.
44965         * lib/strcspn.c: Likewise.
44966         * lib/strerror.c: Likewise.
44967         * lib/strftime.c: Likewise.
44968         * lib/strftime.h: Likewise.
44969         * lib/striconveh.c: Likewise.
44970         * lib/striconveh.h: Likewise.
44971         * lib/striconveha.c: Likewise.
44972         * lib/striconveha.h: Likewise.
44973         * lib/stripslash.c: Likewise.
44974         * lib/strnlen1.c: Likewise.
44975         * lib/strnlen1.h: Likewise.
44976         * lib/strtod.c: Likewise.
44977         * lib/strtoimax.c: Likewise.
44978         * lib/strtok_r.c: Likewise.
44979         * lib/strtol.c: Likewise.
44980         * lib/strtoll.c: Likewise.
44981         * lib/strtoul.c: Likewise.
44982         * lib/strtoull.c: Likewise.
44983         * lib/sysexits.in.h: Likewise.
44984         * lib/tempname.c: Likewise.
44985         * lib/tempname.h: Likewise.
44986         * lib/timespec.h: Likewise.
44987         * lib/tls.c: Likewise.
44988         * lib/tls.h: Likewise.
44989         * lib/tmpdir.c: Likewise.
44990         * lib/tmpdir.h: Likewise.
44991         * lib/tmpfile-safer.c: Likewise.
44992         * lib/tmpfile.c: Likewise.
44993         * lib/trigl.c: Likewise.
44994         * lib/trigl.h: Likewise.
44995         * lib/trim.c: Likewise.
44996         * lib/trim.h: Likewise.
44997         * lib/trunc.c: Likewise.
44998         * lib/truncf.c: Likewise.
44999         * lib/truncl.c: Likewise.
45000         * lib/tsearch.c: Likewise.
45001         * lib/unicodeio.c: Likewise.
45002         * lib/unicodeio.h: Likewise.
45003         * lib/unistd--.h: Likewise.
45004         * lib/unistd-safer.h: Likewise.
45005         * lib/unistdio/ulc-fprintf.c: Likewise.
45006         * lib/unistdio/ulc-vfprintf.c: Likewise.
45007         * lib/unlinkdir.c: Likewise.
45008         * lib/unlinkdir.h: Likewise.
45009         * lib/unlocked-io.h: Likewise.
45010         * lib/unsetenv.c: Likewise.
45011         * lib/userspec.c: Likewise.
45012         * lib/utime.c: Likewise.
45013         * lib/utimecmp.c: Likewise.
45014         * lib/utimecmp.h: Likewise.
45015         * lib/utimens.c: Likewise.
45016         * lib/verify.h: Likewise.
45017         * lib/verror.c: Likewise.
45018         * lib/verror.h: Likewise.
45019         * lib/version-etc-fsf.c: Likewise.
45020         * lib/version-etc.c: Likewise.
45021         * lib/version-etc.h: Likewise.
45022         * lib/vfprintf.c: Likewise.
45023         * lib/vprintf.c: Likewise.
45024         * lib/vsprintf.c: Likewise.
45025         * lib/w32spawn.h: Likewise.
45026         * lib/wait-process.c: Likewise.
45027         * lib/wait-process.h: Likewise.
45028         * lib/wcwidth.c: Likewise.
45029         * lib/write-any-file.c: Likewise.
45030         * lib/xalloc-die.c: Likewise.
45031         * lib/xalloc.h: Likewise.
45032         * lib/xasprintf.c: Likewise.
45033         * lib/xgetcwd.c: Likewise.
45034         * lib/xgetcwd.h: Likewise.
45035         * lib/xgetdomainname.c: Likewise.
45036         * lib/xgetdomainname.h: Likewise.
45037         * lib/xgethostname.c: Likewise.
45038         * lib/xmalloc.c: Likewise.
45039         * lib/xmalloca.c: Likewise.
45040         * lib/xmalloca.h: Likewise.
45041         * lib/xmemcoll.c: Likewise.
45042         * lib/xnanosleep.c: Likewise.
45043         * lib/xreadlink.c: Likewise.
45044         * lib/xreadlink.h: Likewise.
45045         * lib/xsetenv.c: Likewise.
45046         * lib/xsetenv.h: Likewise.
45047         * lib/xstriconv.c: Likewise.
45048         * lib/xstriconv.h: Likewise.
45049         * lib/xstrndup.c: Likewise.
45050         * lib/xstrndup.h: Likewise.
45051         * lib/xstrtod.c: Likewise.
45052         * lib/xstrtod.h: Likewise.
45053         * lib/xstrtol-error.c: Likewise.
45054         * lib/xstrtol.c: Likewise.
45055         * lib/xstrtol.h: Likewise.
45056         * lib/xtime.h: Likewise.
45057         * lib/xvasprintf.c: Likewise.
45058         * lib/xvasprintf.h: Likewise.
45059         * lib/yesno.c: Likewise.
45060         * lib/yesno.h: Likewise.
45061         * posix-modules: Likewise.
45062         * tests/test-alloca-opt.c: Likewise.
45063         * tests/test-arcfour.c: Likewise.
45064         * tests/test-arctwo.c: Likewise.
45065         * tests/test-argmatch.c: Likewise.
45066         * tests/test-argp-2.sh: Likewise.
45067         * tests/test-argp.c: Likewise.
45068         * tests/test-arpa_inet.c: Likewise.
45069         * tests/test-array_list.c: Likewise.
45070         * tests/test-array_oset.c: Likewise.
45071         * tests/test-atexit.c: Likewise.
45072         * tests/test-avltree_list.c: Likewise.
45073         * tests/test-avltree_oset.c: Likewise.
45074         * tests/test-avltreehash_list.c: Likewise.
45075         * tests/test-base64.c: Likewise.
45076         * tests/test-binary-io.c: Likewise.
45077         * tests/test-byteswap.c: Likewise.
45078         * tests/test-c-ctype.c: Likewise.
45079         * tests/test-c-strcasecmp.c: Likewise.
45080         * tests/test-c-strcasestr.c: Likewise.
45081         * tests/test-c-strncasecmp.c: Likewise.
45082         * tests/test-c-strstr.c: Likewise.
45083         * tests/test-canonicalize-lgpl.c: Likewise.
45084         * tests/test-canonicalize.c: Likewise.
45085         * tests/test-carray_list.c: Likewise.
45086         * tests/test-ceilf.c: Likewise.
45087         * tests/test-ceill.c: Likewise.
45088         * tests/test-count-one-bits.c: Likewise.
45089         * tests/test-crc.c: Likewise.
45090         * tests/test-dirname.c: Likewise.
45091         * tests/test-fbufmode.c: Likewise.
45092         * tests/test-fcntl.c: Likewise.
45093         * tests/test-fflush.c: Likewise.
45094         * tests/test-floorf.c: Likewise.
45095         * tests/test-floorl.c: Likewise.
45096         * tests/test-fopen.c: Likewise.
45097         * tests/test-fprintf-posix.c: Likewise.
45098         * tests/test-fprintf-posix.h: Likewise.
45099         * tests/test-fpurge.c: Likewise.
45100         * tests/test-freadable.c: Likewise.
45101         * tests/test-freadahead.c: Likewise.
45102         * tests/test-freading.c: Likewise.
45103         * tests/test-freopen.c: Likewise.
45104         * tests/test-frexp.c: Likewise.
45105         * tests/test-frexpl.c: Likewise.
45106         * tests/test-fseek.c: Likewise.
45107         * tests/test-fseeko.c: Likewise.
45108         * tests/test-fseterr.c: Likewise.
45109         * tests/test-fstrcmp.c: Likewise.
45110         * tests/test-ftell.c: Likewise.
45111         * tests/test-ftello.c: Likewise.
45112         * tests/test-fwritable.c: Likewise.
45113         * tests/test-fwriting.c: Likewise.
45114         * tests/test-getaddrinfo.c: Likewise.
45115         * tests/test-getpass.c: Likewise.
45116         * tests/test-gettimeofday.c: Likewise.
45117         * tests/test-hmac-md5.c: Likewise.
45118         * tests/test-hmac-sha1.c: Likewise.
45119         * tests/test-iconv.c: Likewise.
45120         * tests/test-iconvme.c: Likewise.
45121         * tests/test-inttypes.c: Likewise.
45122         * tests/test-isnan.c: Likewise.
45123         * tests/test-isnanf.c: Likewise.
45124         * tests/test-isnanl-nolibm.c: Likewise.
45125         * tests/test-isnanl.c: Likewise.
45126         * tests/test-isnanl.h: Likewise.
45127         * tests/test-ldexpl.c: Likewise.
45128         * tests/test-linked_list.c: Likewise.
45129         * tests/test-linkedhash_list.c: Likewise.
45130         * tests/test-locale.c: Likewise.
45131         * tests/test-localename.c: Likewise.
45132         * tests/test-lock.c: Likewise.
45133         * tests/test-lseek.c: Likewise.
45134         * tests/test-malloca.c: Likewise.
45135         * tests/test-math.c: Likewise.
45136         * tests/test-mbscasecmp.c: Likewise.
45137         * tests/test-mbscasestr1.c: Likewise.
45138         * tests/test-mbscasestr2.c: Likewise.
45139         * tests/test-mbscasestr3.c: Likewise.
45140         * tests/test-mbscasestr4.c: Likewise.
45141         * tests/test-mbschr.c: Likewise.
45142         * tests/test-mbscspn.c: Likewise.
45143         * tests/test-mbsncasecmp.c: Likewise.
45144         * tests/test-mbspbrk.c: Likewise.
45145         * tests/test-mbspcasecmp.c: Likewise.
45146         * tests/test-mbsrchr.c: Likewise.
45147         * tests/test-mbsspn.c: Likewise.
45148         * tests/test-mbsstr1.c: Likewise.
45149         * tests/test-mbsstr2.c: Likewise.
45150         * tests/test-mbsstr3.c: Likewise.
45151         * tests/test-md5.c: Likewise.
45152         * tests/test-memmem.c: Likewise.
45153         * tests/test-netinet_in.c: Likewise.
45154         * tests/test-open.c: Likewise.
45155         * tests/test-printf-frexp.c: Likewise.
45156         * tests/test-printf-frexpl.c: Likewise.
45157         * tests/test-printf-posix.c: Likewise.
45158         * tests/test-printf-posix.h: Likewise.
45159         * tests/test-rbtree_list.c: Likewise.
45160         * tests/test-rbtree_oset.c: Likewise.
45161         * tests/test-rbtreehash_list.c: Likewise.
45162         * tests/test-read-file.c: Likewise.
45163         * tests/test-rijndael.c: Likewise.
45164         * tests/test-search.c: Likewise.
45165         * tests/test-signbit.c: Likewise.
45166         * tests/test-sleep.c: Likewise.
45167         * tests/test-snprintf-posix.c: Likewise.
45168         * tests/test-snprintf-posix.h: Likewise.
45169         * tests/test-snprintf.c: Likewise.
45170         * tests/test-sprintf-posix.c: Likewise.
45171         * tests/test-sprintf-posix.h: Likewise.
45172         * tests/test-stat-time.c: Likewise.
45173         * tests/test-stdbool.c: Likewise.
45174         * tests/test-stdint.c: Likewise.
45175         * tests/test-stdio.c: Likewise.
45176         * tests/test-stdlib.c: Likewise.
45177         * tests/test-stpncpy.c: Likewise.
45178         * tests/test-strcasestr.c: Likewise.
45179         * tests/test-striconv.c: Likewise.
45180         * tests/test-striconveh.c: Likewise.
45181         * tests/test-striconveha.c: Likewise.
45182         * tests/test-string.c: Likewise.
45183         * tests/test-sys_select.c: Likewise.
45184         * tests/test-sys_socket.c: Likewise.
45185         * tests/test-sys_stat.c: Likewise.
45186         * tests/test-sys_time.c: Likewise.
45187         * tests/test-sysexits.c: Likewise.
45188         * tests/test-time.c: Likewise.
45189         * tests/test-tls.c: Likewise.
45190         * tests/test-trunc.c: Likewise.
45191         * tests/test-truncf.c: Likewise.
45192         * tests/test-truncl.c: Likewise.
45193         * tests/test-unistd.c: Likewise.
45194         * tests/test-vasnprintf-posix.c: Likewise.
45195         * tests/test-vasnprintf-posix2.c: Likewise.
45196         * tests/test-vasnprintf.c: Likewise.
45197         * tests/test-vasprintf-posix.c: Likewise.
45198         * tests/test-vasprintf.c: Likewise.
45199         * tests/test-verify.c: Likewise.
45200         * tests/test-vfprintf-posix.c: Likewise.
45201         * tests/test-vprintf-posix.c: Likewise.
45202         * tests/test-vsnprintf-posix.c: Likewise.
45203         * tests/test-vsnprintf.c: Likewise.
45204         * tests/test-vsprintf-posix.c: Likewise.
45205         * tests/test-wchar.c: Likewise.
45206         * tests/test-wctype.c: Likewise.
45207         * tests/test-wcwidth.c: Likewise.
45208         * tests/test-xstrtol.c: Likewise.
45209         * tests/test-xvasprintf.c: Likewise.
45210         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45211         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45212         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45213         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45214         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45215         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45216         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45217         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45218         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45219         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45220         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45221         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45222         * tests/uniname/test-uninames.c: Likewise.
45223         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45224         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45225         * tests/unistdio/test-u16-printf1.h: Likewise.
45226         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45227         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45228         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45229         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45230         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45231         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45232         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45233         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45234         * tests/unistdio/test-u32-printf1.h: Likewise.
45235         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45236         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45237         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45238         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45239         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45240         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45241         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45242         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45243         * tests/unistdio/test-u8-printf1.h: Likewise.
45244         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45245         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45246         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45247         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45248         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45249         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45250         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45251         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45252         * tests/unistdio/test-ulc-printf1.h: Likewise.
45253         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45254         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45255         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45256         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45257         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45258         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45259         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45260         * tests/uniwidth/test-u16-width.c: Likewise.
45261         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45262         * tests/uniwidth/test-u32-width.c: Likewise.
45263         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45264         * tests/uniwidth/test-u8-width.c: Likewise.
45265         * tests/uniwidth/test-uc_width.c: Likewise.
45266         * config/srclist-update: Likewise.
45267         (fixlicense): Update to GPLv3+.
45268
45269         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45270         * tests/test-tsearch.c: Change copyright notice.
45271
45272         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45273         * lib/c-strcaseeq.h: Change copyright notice.
45274         * lib/streq.h: Likewise.
45275         * lib/uniconv.h: Likewise.
45276         * lib/uniconv/u-conv-from-enc.h: Likewise.
45277         * lib/uniconv/u-conv-to-enc.h: Likewise.
45278         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45279         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45280         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45281         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45282         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45283         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45284         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45285         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45286         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45287         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45288         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45289         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45290         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45291         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45292         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45293         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45294         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45295         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45296         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45297         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45298         * lib/uniname.h: Likewise.
45299         * lib/uniname/uniname.c: Likewise.
45300         * lib/unistdio.h: Likewise.
45301         * lib/unistdio/u-asnprintf.h: Likewise.
45302         * lib/unistdio/u-asprintf.h: Likewise.
45303         * lib/unistdio/u-printf-args.c: Likewise.
45304         * lib/unistdio/u-printf-args.h: Likewise.
45305         * lib/unistdio/u-printf-parse.h: Likewise.
45306         * lib/unistdio/u-snprintf.h: Likewise.
45307         * lib/unistdio/u-sprintf.h: Likewise.
45308         * lib/unistdio/u-vasprintf.h: Likewise.
45309         * lib/unistdio/u-vsnprintf.h: Likewise.
45310         * lib/unistdio/u-vsprintf.h: Likewise.
45311         * lib/unistdio/u16-asnprintf.c: Likewise.
45312         * lib/unistdio/u16-asprintf.c: Likewise.
45313         * lib/unistdio/u16-printf-parse.c: Likewise.
45314         * lib/unistdio/u16-snprintf.c: Likewise.
45315         * lib/unistdio/u16-sprintf.c: Likewise.
45316         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45317         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45318         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45319         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45320         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45321         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45322         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45323         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45324         * lib/unistdio/u16-vasnprintf.c: Likewise.
45325         * lib/unistdio/u16-vasprintf.c: Likewise.
45326         * lib/unistdio/u16-vsnprintf.c: Likewise.
45327         * lib/unistdio/u16-vsprintf.c: Likewise.
45328         * lib/unistdio/u32-asnprintf.c: Likewise.
45329         * lib/unistdio/u32-asprintf.c: Likewise.
45330         * lib/unistdio/u32-printf-parse.c: Likewise.
45331         * lib/unistdio/u32-snprintf.c: Likewise.
45332         * lib/unistdio/u32-sprintf.c: Likewise.
45333         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45334         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45335         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45336         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45337         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45338         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45339         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45340         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45341         * lib/unistdio/u32-vasnprintf.c: Likewise.
45342         * lib/unistdio/u32-vasprintf.c: Likewise.
45343         * lib/unistdio/u32-vsnprintf.c: Likewise.
45344         * lib/unistdio/u32-vsprintf.c: Likewise.
45345         * lib/unistdio/u8-asnprintf.c: Likewise.
45346         * lib/unistdio/u8-asprintf.c: Likewise.
45347         * lib/unistdio/u8-printf-parse.c: Likewise.
45348         * lib/unistdio/u8-snprintf.c: Likewise.
45349         * lib/unistdio/u8-sprintf.c: Likewise.
45350         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45351         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45352         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45353         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45354         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45355         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45356         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45357         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45358         * lib/unistdio/u8-vasnprintf.c: Likewise.
45359         * lib/unistdio/u8-vasprintf.c: Likewise.
45360         * lib/unistdio/u8-vsnprintf.c: Likewise.
45361         * lib/unistdio/u8-vsprintf.c: Likewise.
45362         * lib/unistdio/ulc-asnprintf.c: Likewise.
45363         * lib/unistdio/ulc-asprintf.c: Likewise.
45364         * lib/unistdio/ulc-printf-parse.c: Likewise.
45365         * lib/unistdio/ulc-snprintf.c: Likewise.
45366         * lib/unistdio/ulc-sprintf.c: Likewise.
45367         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45368         * lib/unistdio/ulc-vasprintf.c: Likewise.
45369         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45370         * lib/unistdio/ulc-vsprintf.c: Likewise.
45371         * lib/unistr.h: Likewise.
45372         * lib/unistr/u-cpy-alloc.h: Likewise.
45373         * lib/unistr/u-cpy.h: Likewise.
45374         * lib/unistr/u-endswith.h: Likewise.
45375         * lib/unistr/u-move.h: Likewise.
45376         * lib/unistr/u-set.h: Likewise.
45377         * lib/unistr/u-startswith.h: Likewise.
45378         * lib/unistr/u-stpcpy.h: Likewise.
45379         * lib/unistr/u-stpncpy.h: Likewise.
45380         * lib/unistr/u-strcat.h: Likewise.
45381         * lib/unistr/u-strcpy.h: Likewise.
45382         * lib/unistr/u-strcspn.h: Likewise.
45383         * lib/unistr/u-strdup.h: Likewise.
45384         * lib/unistr/u-strlen.h: Likewise.
45385         * lib/unistr/u-strncat.h: Likewise.
45386         * lib/unistr/u-strncpy.h: Likewise.
45387         * lib/unistr/u-strnlen.h: Likewise.
45388         * lib/unistr/u-strpbrk.h: Likewise.
45389         * lib/unistr/u-strspn.h: Likewise.
45390         * lib/unistr/u-strstr.h: Likewise.
45391         * lib/unistr/u-strtok.h: Likewise.
45392         * lib/unistr/u16-check.c: Likewise.
45393         * lib/unistr/u16-chr.c: Likewise.
45394         * lib/unistr/u16-cmp.c: Likewise.
45395         * lib/unistr/u16-cpy-alloc.c: Likewise.
45396         * lib/unistr/u16-cpy.c: Likewise.
45397         * lib/unistr/u16-endswith.c: Likewise.
45398         * lib/unistr/u16-mblen.c: Likewise.
45399         * lib/unistr/u16-mbsnlen.c: Likewise.
45400         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45401         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45402         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45403         * lib/unistr/u16-mbtouc.c: Likewise.
45404         * lib/unistr/u16-mbtoucr.c: Likewise.
45405         * lib/unistr/u16-move.c: Likewise.
45406         * lib/unistr/u16-next.c: Likewise.
45407         * lib/unistr/u16-prev.c: Likewise.
45408         * lib/unistr/u16-set.c: Likewise.
45409         * lib/unistr/u16-startswith.c: Likewise.
45410         * lib/unistr/u16-stpcpy.c: Likewise.
45411         * lib/unistr/u16-stpncpy.c: Likewise.
45412         * lib/unistr/u16-strcat.c: Likewise.
45413         * lib/unistr/u16-strchr.c: Likewise.
45414         * lib/unistr/u16-strcmp.c: Likewise.
45415         * lib/unistr/u16-strcpy.c: Likewise.
45416         * lib/unistr/u16-strcspn.c: Likewise.
45417         * lib/unistr/u16-strdup.c: Likewise.
45418         * lib/unistr/u16-strlen.c: Likewise.
45419         * lib/unistr/u16-strmblen.c: Likewise.
45420         * lib/unistr/u16-strmbtouc.c: Likewise.
45421         * lib/unistr/u16-strncat.c: Likewise.
45422         * lib/unistr/u16-strncmp.c: Likewise.
45423         * lib/unistr/u16-strncpy.c: Likewise.
45424         * lib/unistr/u16-strnlen.c: Likewise.
45425         * lib/unistr/u16-strpbrk.c: Likewise.
45426         * lib/unistr/u16-strrchr.c: Likewise.
45427         * lib/unistr/u16-strspn.c: Likewise.
45428         * lib/unistr/u16-strstr.c: Likewise.
45429         * lib/unistr/u16-strtok.c: Likewise.
45430         * lib/unistr/u16-to-u32.c: Likewise.
45431         * lib/unistr/u16-to-u8.c: Likewise.
45432         * lib/unistr/u16-uctomb-aux.c: Likewise.
45433         * lib/unistr/u16-uctomb.c: Likewise.
45434         * lib/unistr/u32-check.c: Likewise.
45435         * lib/unistr/u32-chr.c: Likewise.
45436         * lib/unistr/u32-cmp.c: Likewise.
45437         * lib/unistr/u32-cpy-alloc.c: Likewise.
45438         * lib/unistr/u32-cpy.c: Likewise.
45439         * lib/unistr/u32-endswith.c: Likewise.
45440         * lib/unistr/u32-mblen.c: Likewise.
45441         * lib/unistr/u32-mbsnlen.c: Likewise.
45442         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45443         * lib/unistr/u32-mbtouc.c: Likewise.
45444         * lib/unistr/u32-mbtoucr.c: Likewise.
45445         * lib/unistr/u32-move.c: Likewise.
45446         * lib/unistr/u32-next.c: Likewise.
45447         * lib/unistr/u32-prev.c: Likewise.
45448         * lib/unistr/u32-set.c: Likewise.
45449         * lib/unistr/u32-startswith.c: Likewise.
45450         * lib/unistr/u32-stpcpy.c: Likewise.
45451         * lib/unistr/u32-stpncpy.c: Likewise.
45452         * lib/unistr/u32-strcat.c: Likewise.
45453         * lib/unistr/u32-strchr.c: Likewise.
45454         * lib/unistr/u32-strcmp.c: Likewise.
45455         * lib/unistr/u32-strcpy.c: Likewise.
45456         * lib/unistr/u32-strcspn.c: Likewise.
45457         * lib/unistr/u32-strdup.c: Likewise.
45458         * lib/unistr/u32-strlen.c: Likewise.
45459         * lib/unistr/u32-strmblen.c: Likewise.
45460         * lib/unistr/u32-strmbtouc.c: Likewise.
45461         * lib/unistr/u32-strncat.c: Likewise.
45462         * lib/unistr/u32-strncmp.c: Likewise.
45463         * lib/unistr/u32-strncpy.c: Likewise.
45464         * lib/unistr/u32-strnlen.c: Likewise.
45465         * lib/unistr/u32-strpbrk.c: Likewise.
45466         * lib/unistr/u32-strrchr.c: Likewise.
45467         * lib/unistr/u32-strspn.c: Likewise.
45468         * lib/unistr/u32-strstr.c: Likewise.
45469         * lib/unistr/u32-strtok.c: Likewise.
45470         * lib/unistr/u32-to-u16.c: Likewise.
45471         * lib/unistr/u32-to-u8.c: Likewise.
45472         * lib/unistr/u32-uctomb.c: Likewise.
45473         * lib/unistr/u8-check.c: Likewise.
45474         * lib/unistr/u8-chr.c: Likewise.
45475         * lib/unistr/u8-cmp.c: Likewise.
45476         * lib/unistr/u8-cpy-alloc.c: Likewise.
45477         * lib/unistr/u8-cpy.c: Likewise.
45478         * lib/unistr/u8-endswith.c: Likewise.
45479         * lib/unistr/u8-mblen.c: Likewise.
45480         * lib/unistr/u8-mbsnlen.c: Likewise.
45481         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45482         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45483         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45484         * lib/unistr/u8-mbtouc.c: Likewise.
45485         * lib/unistr/u8-mbtoucr.c: Likewise.
45486         * lib/unistr/u8-move.c: Likewise.
45487         * lib/unistr/u8-next.c: Likewise.
45488         * lib/unistr/u8-prev.c: Likewise.
45489         * lib/unistr/u8-set.c: Likewise.
45490         * lib/unistr/u8-startswith.c: Likewise.
45491         * lib/unistr/u8-stpcpy.c: Likewise.
45492         * lib/unistr/u8-stpncpy.c: Likewise.
45493         * lib/unistr/u8-strcat.c: Likewise.
45494         * lib/unistr/u8-strchr.c: Likewise.
45495         * lib/unistr/u8-strcmp.c: Likewise.
45496         * lib/unistr/u8-strcpy.c: Likewise.
45497         * lib/unistr/u8-strcspn.c: Likewise.
45498         * lib/unistr/u8-strdup.c: Likewise.
45499         * lib/unistr/u8-strlen.c: Likewise.
45500         * lib/unistr/u8-strmblen.c: Likewise.
45501         * lib/unistr/u8-strmbtouc.c: Likewise.
45502         * lib/unistr/u8-strncat.c: Likewise.
45503         * lib/unistr/u8-strncmp.c: Likewise.
45504         * lib/unistr/u8-strncpy.c: Likewise.
45505         * lib/unistr/u8-strnlen.c: Likewise.
45506         * lib/unistr/u8-strpbrk.c: Likewise.
45507         * lib/unistr/u8-strrchr.c: Likewise.
45508         * lib/unistr/u8-strspn.c: Likewise.
45509         * lib/unistr/u8-strstr.c: Likewise.
45510         * lib/unistr/u8-strtok.c: Likewise.
45511         * lib/unistr/u8-to-u16.c: Likewise.
45512         * lib/unistr/u8-to-u32.c: Likewise.
45513         * lib/unistr/u8-uctomb-aux.c: Likewise.
45514         * lib/unistr/u8-uctomb.c: Likewise.
45515         * lib/unitypes.h: Likewise.
45516         * lib/uniwidth.h: Likewise.
45517         * lib/uniwidth/cjk.h: Likewise.
45518         * lib/uniwidth/u16-strwidth.c: Likewise.
45519         * lib/uniwidth/u16-width.c: Likewise.
45520         * lib/uniwidth/u32-strwidth.c: Likewise.
45521         * lib/uniwidth/u32-width.c: Likewise.
45522         * lib/uniwidth/u8-strwidth.c: Likewise.
45523         * lib/uniwidth/u8-width.c: Likewise.
45524         * lib/uniwidth/width.c: Likewise.
45525
45526 2007-10-07  Bruno Haible  <bruno@clisp.org>
45527
45528         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45529         The file is still under LGPL (see modules/inttypes).
45530
45531 2007-10-06  Bruno Haible  <bruno@clisp.org>
45532
45533         * modules/trunc (Dependencies): Add 'extensions'.
45534         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45535         Reported by Ben Pfaff <blp@gnu.org>.
45536
45537 2007-10-06  Bruno Haible  <bruno@clisp.org>
45538
45539         * modules/freopen-tests: New file.
45540         * tests/test-freopen.c: New file.
45541
45542         * modules/fopen-tests: New file.
45543         * tests/test-fopen.c: New file.
45544
45545         * modules/fopen: New file.
45546         * lib/fopen.c: New file.
45547         * m4/fopen.m4: New file.
45548         * modules/freopen: New file.
45549         * lib/freopen.c: New file.
45550         * m4/freopen.m4: New file.
45551         * lib/stdio.in.h (fopen, freopen): New declarations.
45552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45553         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45554         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45555         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45556         * doc/functions/fopen.texi: Mention the 'fopen' module.
45557         * doc/functions/freopen.texi: Mention the 'freopen' module.
45558
45559 2007-10-06  Bruno Haible  <bruno@clisp.org>
45560
45561         * modules/open-tests: New file.
45562         * tests/test-open.c: New file.
45563
45564         * modules/open: New file.
45565         * lib/open.c: New file.
45566         * m4/open.m4: New file.
45567         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45568         lib/open.c does.
45569         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45570         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45571         macros.
45572         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45573         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45574         REPLACE_OPEN.
45575         * doc/functions/open.texi: Mention the 'open' module.
45576
45577 2007-10-04  Bruno Haible  <bruno@clisp.org>
45578
45579         * modules/ceill-tests: New file.
45580         * tests/test-ceill.c: New file.
45581
45582         * modules/ceill: New file.
45583         * lib/ceill.c: Replace entire file.
45584         * m4/ceill.m4: New file.
45585         * lib/math.in.h (ceill): Replace declaration.
45586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45587         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45588         * doc/functions/ceill.texi: Mention the 'ceill' module.
45589         * modules/mathl (Files): Remove lib/ceill.c.
45590         (Depends-on): Add ceill.
45591
45592 2007-10-04  Bruno Haible  <bruno@clisp.org>
45593
45594         * modules/ceilf-tests: New file.
45595         * tests/test-ceilf.c: New file.
45596
45597         * modules/ceilf: New file.
45598         * lib/ceil.c: New file.
45599         * lib/ceilf.c: New file.
45600         * m4/ceilf.m4: New file.
45601         * lib/math.in.h (ceilf): New declaration.
45602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45603         HAVE_DECL_CEILF.
45604         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45605         HAVE_DECL_CEILF.
45606         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45607
45608 2007-10-04  Bruno Haible  <bruno@clisp.org>
45609
45610         * modules/floorl-tests: New file.
45611         * tests/test-floorl.c: New file.
45612
45613         * modules/floorl: New file.
45614         * lib/floorl.c: Replace entire file.
45615         * m4/floorl.m4: New file.
45616         * lib/math.in.h (floorl): Replace declaration.
45617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45618         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45619         * doc/functions/floorl.texi: Mention the 'floorl' module.
45620         * modules/mathl (Files): Remove lib/floorl.c.
45621         (Depends-on): Add floorl.
45622
45623 2007-10-04  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/floorf-tests: New file.
45626         * tests/test-floorf.c: New file.
45627
45628         * modules/floorf: New file.
45629         * lib/floor.c: New file.
45630         * lib/floorf.c: New file.
45631         * m4/floorf.m4: New file.
45632         * lib/math.in.h (floorf): New declaration.
45633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45634         HAVE_DECL_FLOORF.
45635         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45636         HAVE_DECL_FLOORF.
45637         * doc/functions/floorf.texi: Mention the 'floorf' module.
45638
45639 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45640             Bruno Haible  <bruno@clisp.org>
45641
45642         Advertise for the Git server instead of the CVS server.
45643         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45644         repository instead of the CVS one.
45645         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45646         about all VCS systems generically.
45647         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45648
45649 2007-10-04  Bruno Haible  <bruno@clisp.org>
45650
45651         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45652         means.
45653         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45654
45655 2007-10-04  Bruno Haible  <bruno@clisp.org>
45656
45657         * modules/truncl-tests: New file.
45658         * tests/test-truncl.c: New file.
45659
45660         * modules/truncl: New file.
45661         * lib/truncl.c: New file.
45662         * m4/truncl.m4: New file.
45663         * lib/math.in.h (truncl): New declaration.
45664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45665         HAVE_DECL_TRUNCL.
45666         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45667         HAVE_DECL_TRUNCL.
45668         * doc/functions/truncl.texi: Mention the 'truncl' module.
45669
45670 2007-10-04  Bruno Haible  <bruno@clisp.org>
45671
45672         * modules/truncf-tests: New file.
45673         * tests/test-truncf.c: New file.
45674
45675         * modules/truncf: New file.
45676         * lib/trunc.c: Make paramerizable through USE_* macros.
45677         * lib/truncf.c: New file.
45678         * m4/truncf.m4: New file.
45679         * lib/math.in.h (truncf): New declaration.
45680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45681         HAVE_DECL_TRUNCF.
45682         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45683         HAVE_DECL_TRUNCF.
45684         * doc/functions/truncf.texi: Mention the 'truncf' module.
45685
45686 2007-10-03  Bruno Haible  <bruno@clisp.org>
45687
45688         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45689         augmentation also for tests modules.
45690         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45691         * modules/atexit-tests (Makefile.am): Likewise.
45692         * modules/binary-io-tests (Makefile.am): Likewise.
45693         * modules/c-strcase-tests (Makefile.am): Likewise.
45694         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45695         * modules/canonicalize-tests (Makefile.am): Likewise.
45696         * modules/closein-tests (Makefile.am): Likewise.
45697         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45698         * modules/freadahead-tests (Makefile.am): Likewise.
45699         * modules/fseek-tests (Makefile.am): Likewise.
45700         * modules/fseeko-tests (Makefile.am): Likewise.
45701         * modules/ftell-tests (Makefile.am): Likewise.
45702         * modules/ftello-tests (Makefile.am): Likewise.
45703         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45704         * modules/isnanl-tests (Makefile.am): Likewise.
45705         * modules/lseek-tests (Makefile.am): Likewise.
45706         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45707         * modules/mbscasestr-tests (Makefile.am): Likewise.
45708         * modules/mbschr-tests (Makefile.am): Likewise.
45709         * modules/mbscspn-tests (Makefile.am): Likewise.
45710         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45711         * modules/mbspbrk-tests (Makefile.am): Likewise.
45712         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45713         * modules/mbsrchr-tests (Makefile.am): Likewise.
45714         * modules/mbsspn-tests (Makefile.am): Likewise.
45715         * modules/mbsstr-tests (Makefile.am): Likewise.
45716         * modules/printf-posix-tests (Makefile.am): Likewise.
45717         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45718         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45719         * modules/tsearch-tests (Makefile.am): Likewise.
45720         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45721         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45722         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45723         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45724         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45725         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45726         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45727         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45728         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45729         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45730         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45731         * modules/xstrtol-tests (Makefile.am): Likewise.
45732         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45733         * modules/yesno-tests (Makefile.am): Likewise.
45734
45735 2007-10-03  Bruno Haible  <bruno@clisp.org>
45736
45737         * modules/trunc-tests: New file.
45738         * tests/test-trunc.c: New file.
45739
45740         * modules/trunc: New file.
45741         * lib/trunc.c: New file.
45742         * m4/trunc.m4: New file.
45743         * lib/math.in.h (trunc): New declaration.
45744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45745         HAVE_DECL_TRUNC.
45746         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45747         HAVE_DECL_TRUNC.
45748         * doc/functions/trunc.texi: Mention the 'trunc' module.
45749
45750 2007-10-03  Bruno Haible  <bruno@clisp.org>
45751
45752         * tests/test-fpending.c: New file, mostly copied
45753         from coreutils/lib/t-fpending.c.
45754         * modules/fpending-tests: New file.
45755
45756 2007-10-03  Bruno Haible  <bruno@clisp.org>
45757
45758         Port the stdio extensions to QNX (untested).
45759         * lib/fseterr.c (fseterr): Add support for QNX.
45760         * lib/fbufmode.c (fbufmode): Likewise.
45761         * lib/freadable.c (freadable): Likewise.
45762         * lib/fwritable.c (fwritable): Likewise.
45763         * lib/freading.c (freading): Likewise.
45764         * lib/fwriting.c (fwriting): Likewise.
45765         * lib/freadahead.c (freadahed): Likewise.
45766         * lib/fpurge.c (fpurge): Likewise.
45767         * lib/fseeko.c (rpl_fseeko): Likewise.
45768
45769 2007-10-03  Bruno Haible  <bruno@clisp.org>
45770             Jim Meyering  <jim@meyering.net>
45771             Eric Blake  <ebb9@byu.net>
45772
45773         * doc/relocatable.texi: Use @command instead of @program.
45774
45775 2007-10-02  Jim Meyering  <jim@meyering.net>
45776
45777         Perform one more "_.h" -> ".in.h" substitution.
45778         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45779         instead of unistd_.h here, too.
45780
45781 2007-10-01  Bruno Haible  <bruno@clisp.org>
45782
45783         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45784         Needed for the alloca-opt module.
45785
45786 2007-09-30  Bruno Haible  <bruno@clisp.org>
45787
45788         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45789         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45790         alloca_.h.
45791         * lib/argz.in.h: Renamed from lib/argz_.h.
45792         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45793         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45794         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45795         byteswap_.h.
45796         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45797         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45798         dirent_.h.
45799         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45800         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45801         fcntl_.h.
45802         * lib/float.in.h: Renamed from lib/float_.h.
45803         * modules/float (Files, Makefile.am): Use float.in.h instead of
45804         float_.h.
45805         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45806         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45807         fnmatch_.h.
45808         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45809         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45810         getopt_.h.
45811         * lib/glob.in.h: Renamed from lib/glob_.h.
45812         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45813         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45814         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45815         iconv_.h.
45816         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45817         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45818         inttypes_.h.
45819         * lib/locale.in.h: Renamed from lib/locale_.h.
45820         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45821         locale_.h.
45822         * lib/math.in.h: Renamed from lib/math_.h.
45823         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45824         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45825         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45826         of netinet_in_.h. Add dependency.
45827         * lib/poll.in.h: Renamed from lib/poll_.h.
45828         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45829         * lib/search.in.h: Renamed from lib/search_.h.
45830         * modules/search (Files, Makefile.am): Use search.in.h instead of
45831         search_.h.
45832         * lib/signal.in.h: Renamed from lib/signal_.h.
45833         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45834         _signal.h.
45835         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45836         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45837         stdbool_.h.
45838         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45839         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45840         stdint_.h.
45841         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45842         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45843         stdio_.h.
45844         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45845         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45846         stdlib_.h.
45847         * lib/string.in.h: Renamed from lib/string_.h.
45848         * modules/string (Files, Makefile.am): Use string.in.h instead of
45849         string_.h.
45850         * doc/gnulib-tool.texi (Initial import): Update.
45851         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45852         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45853         of sys_select_.h. Add dependency.
45854         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45855         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45856         of sys_socket_.h.
45857         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45858         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45859         sys_stat_.h.
45860         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45861         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45862         sys_time_.h.
45863         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45864         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45865         sysexits_.h.
45866         * lib/time.in.h: Renamed from lib/time_.h.
45867         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45868         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45869         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45870         unistd_.h.
45871         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45872         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45873         wchar_.h.
45874         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45875         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45876         wctype_.h.
45877         * build-aux/bootstrap (slurp): Update.
45878         * lib/.cppi-disable: Update.
45879
45880 2007-09-30  Bruno Haible  <bruno@clisp.org>
45881
45882         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45883         Needed on BeOS.
45884
45885 2007-09-30  Bruno Haible  <bruno@clisp.org>
45886
45887         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45888
45889 2007-09-29  Bruno Haible  <bruno@clisp.org>
45890
45891         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45892
45893 2007-09-29  Bruno Haible  <bruno@clisp.org>
45894
45895         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45896         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45897         * build-aux/install-reloc: Compile also areadlink.c.
45898         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45899
45900 2007-09-29  Bruno Haible  <bruno@clisp.org>
45901
45902         * gnulib-tool (func_emit_initmacro_done): Indentation.
45903
45904 2007-09-29  Bruno Haible  <bruno@clisp.org>
45905
45906         * README: Add CVS checkout update instructions.
45907         Info from Bob Proulx <bob@proulx.com>.
45908
45909 2007-09-28  Eric Blake  <ebb9@byu.net>
45910
45911         Provide move-if-change.
45912         * build-aux/move-if-change: New file, based on best practice
45913         rather than any canonical upstream location.
45914
45915 2007-09-28  Jim Meyering  <jim@meyering.net>
45916
45917         Fix canonicalize loop-detection corner case.
45918         Do not attempt to stat the symlink values stored via seen_triple.
45919         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45920         on linux-2.6.18, (but not 2.6.22).
45921         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45922         triple_compare.  The former compares dev,ino,filename, while the latter
45923         would actually stat dirname(filename) when dev and ino were equal.
45924         * lib/hash-triple.c: Install <string.h>.
45925         (STREQ): Define.
45926         (triple_compare_ino_str): New function.
45927         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45928
45929 2007-09-28  Eric Blake  <ebb9@byu.net>
45930
45931         Enforce that AC_REPLACE_FUNCS files exist.
45932         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45933         override check for typos.
45934
45935         Fix test-closein on Solaris 10.
45936         * tests/test-closein.c (main): Don't assume stdin can be inherited
45937         closed on all systems.
45938         * tests/test-closein.sh: Likewise.
45939         Reported by Piotr Tarnowski.
45940
45941 2007-09-28  Jim Meyering  <jim@meyering.net>
45942
45943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45944
45945 2007-09-27  Jim Meyering  <jim@meyering.net>
45946
45947         canonicalize: Avoid a false-positive cycle failure.
45948         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45949         Sort.  Remove cycle-check.
45950         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45951         not cycle-check.h.
45952         (seen_triple): New function.
45953         (canonicalize_filename_mode): Use it instead of cycle-check.
45954         * tests/test-canonicalize.c: Add a test for this bug.
45955         * tests/test-canonicalize.sh: Set up and run the test.
45956
45957         New module, file-set, from coreutils.
45958         * modules/file-set: Define it.
45959         * lib/file-set.c, lib/file-set.h: Implement.
45960
45961         New module, hash-triple, from coreutils.
45962         * modules/hash-triple: Define it.
45963         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45964
45965 2007-09-25  Eric Blake  <ebb9@byu.net>
45966
45967         Fix strerror on Interix.
45968         * lib/string_.h (strerror): Declare replacement.
45969         * doc/functions/strerror.texi (strerror): Document the Interix
45970         shortcoming.
45971         * modules/string (Makefile.am): Support new hooks.
45972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45973         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45974         gl_FUNC_STRERROR_SEPARATE.
45975         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45976         * lib/strerror.c (rpl_strerror): Provide replacement.
45977         * modules/strerror (Depends-on): Add string.
45978         (configure.ac): Detect use of module.
45979         * tests/test-strerror.c: New file.
45980         * modules/strerror-tests: New test module.
45981         * modules/argp (Depends-on): Add strerror.
45982         * modules/error (Depends-on): Likewise.
45983         Reported by Martin Koeppe.
45984
45985 2007-09-24  Bruno Haible  <bruno@clisp.org>
45986
45987         * README: Update git instructions.
45988
45989 2007-09-24  Eric Blake  <ebb9@byu.net>
45990
45991         Revert fpending breakage from 2007-09-08.
45992         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45993         __fpending.c.
45994
45995 2007-09-24  Jim Meyering  <jim@meyering.net>
45996
45997         filenamecat.c: Add a test.
45998         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45999         showing how the function works when DIR is the empty string.
46000
46001 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46002
46003         * tests/test-canonicalize.sh: Turn on executable bit.
46004
46005 2007-09-19  Eric Blake  <ebb9@byu.net>
46006
46007         * README: Update CVS instructions.
46008
46009 2007-09-18  Bruno Haible  <bruno@clisp.org>
46010
46011         * modules/areadlink: New file.
46012         * lib/areadlink.h (areadlink): New declaration.
46013         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46014
46015 2007-09-17  Jim Meyering  <jim@meyering.net>
46016
46017         * lib/savewd.c (ESTALE) [!defined]: Define.
46018         Reported to be required on Interix by Martin Koeppe.
46019
46020 2007-09-17  Bruno Haible  <bruno@clisp.org>
46021
46022         * gnulib-tool (func_version): Use $version.
46023
46024 2007-09-16  Bruno Haible  <bruno@clisp.org>
46025
46026         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46027         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46028         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46029         Reported by Greg Schafer <gschafer@zip.com.au>.
46030
46031 2007-09-15  Bruno Haible  <bruno@clisp.org>
46032
46033         * gnulib-tool (sed): Try a little harder to make bash understand the
46034         alias.
46035         Reported by Bruce Korb <bruce.korb@gmail.com>.
46036
46037 2007-09-13  Eric Blake  <ebb9@byu.net>
46038
46039         * ChangeLog: Remove conflict markers.
46040
46041 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46042
46043         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46044         Reported by Bruno Haible <bruno@clisp.org>.
46045
46046 2007-09-12  Bruno Haible  <bruno@clisp.org>
46047
46048         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46049         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46050         is not defined.
46051
46052 2007-09-12  Eric Blake  <ebb9@byu.net>
46053
46054         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46056         Autoconf definition.
46057         * modules/euidaccess (Depends-on): Add extensions, for
46058         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46059         * modules/fnmatch (Depends-on): Likewise.
46060         * modules/getaddrinfo (Depends-on): Likewise.
46061         * modules/getdelim (Depends-on): Likewise.
46062         * modules/getline (Depends-on): Likewise.
46063         * modules/getsubopt (Depends-on): Likewise.
46064         * modules/gettext (Depends-on): Likewise.
46065         * modules/group-member (Depends-on): Likewise.
46066         * modules/mbchar (Depends-on): Likewise.
46067         * modules/memmem (Depends-on): Likewise.
46068         * modules/mempcpy (Depends-on): Likewise.
46069         * modules/memrchr (Depends-on): Likewise.
46070         * modules/pagealign_alloc (Depends-on): Likewise.
46071         * modules/readutmp (Depends-on): Likewise.
46072         * modules/stpcpy (Depends-on): Likewise.
46073         * modules/stpncpy (Depends-on): Likewise.
46074         * modules/strchrnul (Depends-on): Likewise.
46075         * modules/strndup (Depends-on): Likewise.
46076         * modules/strsep (Depends-on): Likewise.
46077         * modules/strverscmp (Depends-on): Likewise.
46078         * modules/vasprintf (Depends-on): Likewise.
46079         * modules/wcwidth (Depends-on): Likewise.
46080         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46081         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46083         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46084         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46085         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46086         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46087         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46088         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46089         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46090         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46091         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46092         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46093         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46094         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46095         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46096         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46097         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46098         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46101         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46102         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46103         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46104         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46106         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46107         so that lock.m4 can be used in gettext without extensions module.
46108
46109 2007-09-11  Bruno Haible  <bruno@clisp.org>
46110
46111         * m4/isc-posix.m4: Remove file.
46112         Suggested by Eric Blake.
46113
46114 2007-09-11  Eric Blake  <ebb9@byu.net>
46115
46116         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46117
46118 2007-09-10  Bruno Haible  <bruno@clisp.org>
46119
46120         * posix-modules: Fix typo in error message.
46121         Reported by Matt <mkraai@beckman.com>.
46122
46123 2007-09-09  Bruno Haible  <bruno@clisp.org>
46124
46125         * doc/functions/getdelim.texi: Update list of platforms lacking the
46126         function.
46127         * doc/functions/getline.texi: Likewise.
46128
46129 2007-09-09  Jim Meyering  <jim@meyering.net>
46130
46131         * lib/hash.c (hash_initialize): Detect calloc failure.
46132         Reported by Bruno Haible.
46133
46134 2007-09-09  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46137         malloc or realloc fails.
46138
46139 2007-09-09  Bruno Haible  <bruno@clisp.org>
46140
46141         * modules/getcwd (Depends-on): Add malloc-posix.
46142         * modules/glob (Depends-on): Likewise.
46143         * modules/putenv (Depends-on): Likewise.
46144         * modules/strdup (Depends-on): Likewise.
46145         * modules/getdelim (Depends-on): Add realloc-posix.
46146         * modules/read-file (Depends-on): Likewise.
46147
46148 2007-09-09  Bruno Haible  <bruno@clisp.org>
46149
46150         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46151         (gl_FUNC_MALLOC_POSIX): Require it.
46152         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46153         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46154         * modules/realloc (Files): Add m4/malloc.m4.
46155         * modules/calloc (Files): Likewise.
46156
46157 2007-09-09  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/malloc-posix: New file.
46160         * modules/malloc (Depends-on): Add malloc-posix.
46161         * lib/malloc.c: Include errno.h.
46162         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46163         and a POSIX-compatible malloc into a single function. Set ENOMEM
46164         when returning NULL.
46165         * m4/malloc.m4: New file.
46166         * doc/functions/malloc.texi: Mention the malloc-posix module.
46167         * lib/stdlib_.h (malloc): New declaration.
46168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46169         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46170         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46171         and HAVE_MALLOC_POSIX.
46172
46173 2007-09-09  Bruno Haible  <bruno@clisp.org>
46174
46175         * modules/realloc-posix: New file.
46176         * modules/realloc (Depends-on): Add realloc-posix.
46177         * lib/realloc.c: Include errno.h.
46178         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46179         and a POSIX-compatible realloc into a single function. Set ENOMEM
46180         when returning NULL.
46181         * m4/realloc.m4: New file.
46182         * doc/functions/realloc.texi: Mention the realloc-posix module.
46183         * lib/stdlib_.h (realloc): New declaration.
46184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46185         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46186         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46187         and HAVE_REALLOC_POSIX.
46188
46189 2007-09-09  Bruno Haible  <bruno@clisp.org>
46190
46191         * modules/calloc-posix: New file.
46192         * modules/calloc (Depends-on): Add calloc-posix.
46193         * lib/calloc.c: Include errno.h.
46194         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46195         and a POSIX-compatible calloc into a single function. Set ENOMEM
46196         when returning NULL.
46197         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46198         * doc/functions/calloc.texi: Mention the calloc-posix module.
46199         * lib/stdlib_.h (calloc): New declaration.
46200         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46201         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46202         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46203         and HAVE_CALLOC_POSIX.
46204
46205 2007-09-09  Bruno Haible  <bruno@clisp.org>
46206
46207         Allow for modules to show an arbitrary notice.
46208         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46209         * gnulib-tool: New option --extract-notice.
46210         (func_usage): Document it.
46211         (sed_extract_prog): Update.
46212         (func_get_notice): New function.
46213         (func_modules_notice): New function.
46214         (func_import, func_create_testdir): Invoke it.
46215         Suggested by Jim Meyering.
46216
46217 2007-09-09  Bruno Haible  <bruno@clisp.org>
46218
46219         * gnulib-tool: New options --verbose, --quiet.
46220         (func_usage): Document them.
46221         (verbose): New variable.
46222         (func_execute_command): New function.
46223         (func_import): Don't show the module list and the file list if
46224         $verbose < 0.
46225         (func_create_testdir): Likewise. Use func_execute_command.
46226         (func_create_megatestdir): Use func_execute_command.
46227
46228 2007-09-08  Bruno Haible  <bruno@clisp.org>
46229
46230         * gnulib-tool (func_import): Prefer rsync over wget when available,
46231         for fetching the PO files.
46232
46233 2007-09-08  Bruno Haible  <bruno@clisp.org>
46234
46235         * posix-modules: New file. Portions copied from gnulib-tool.
46236         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46237
46238 2007-09-08  Jim Meyering  <jim@meyering.net>
46239
46240         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46241         * lib/fpending.h: Rename from __fpending.h.
46242         * lib/fpending.c: Rename from __fpending.c.
46243         Include "fpending.h", not "__fpending.h".
46244         * lib/__fpending.h, lib/__fpending.c: Remove files.
46245         * modules/fpending (Files): Reflect new file names.
46246         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46247
46248 2007-09-08  Bruno Haible  <bruno@clisp.org>
46249
46250         * m4/inttypes-h.m4: Remove stub file.
46251
46252 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46253
46254         * doc/headers/stdint.texi: Discuss #include_next issue.
46255
46256 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46257
46258         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46259
46260 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46261
46262         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46263         in variable name.
46264
46265 2007-09-03  Jim Meyering  <jim@meyering.net>
46266
46267         New module: git-version-gen.
46268         * modules/git-version-gen: New file.
46269
46270         Import changes from coreutils for bootstrap script.
46271
46272         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46273
46274         bootstrap: uses rsync to download the .po files
46275         * build-aux/bootstrap (po_download_command_format): New global.
46276         (download_po_files): Use rsync.
46277         (update_po_files): Don't remove .po files after download,
46278         so future rsync runs can take advantage of the copies.
46279
46280         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46281
46282         Solve the unnecessary-.po-file-regeneration problem once and for all.
46283         * build-aux/bootstrap (download_po_files): New function, renamed from
46284         get_translations.  Now, downloads, but doesn't update LINGUAS.
46285         (update_po_files): New function.
46286
46287         bootstrap: Ignore more.
46288         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46289         uniwidth to e.g., lib/.gitignore.
46290         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46291
46292         * build-aux/bootstrap: New setting: vc_ignore.
46293         (insert_sorted_if_absent): Create $file if absent.
46294         Adapt to new, possibly empty, list: $vc_ignore.
46295
46296         bootstrap: generate more ignorable names
46297         * build-aux/bootstrap (slurp): When generating ignorable names,
46298         also map .sin to .sed, .gperf to .c, and .y to .c.
46299
46300 2007-09-03  Jim Meyering  <jim@meyering.net>
46301
46302         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46303         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46304
46305 2007-09-02  Bruno Haible  <bruno@clisp.org>
46306
46307         Fix mis-recognition of 'mcs' on QNX 6.
46308         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46309         output contains the string "Mono".
46310         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46311         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46312
46313 2007-09-01  Bruno Haible  <bruno@clisp.org>
46314
46315         Fix collision between uniwidth/* and linebreak modules.
46316         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46317         u32_width): Remove declarations.
46318         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46319         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46320         streq3, streq2, streq1, streq0): Remove functions.
46321         (STREQ): Remove macro.
46322         (is_cjk_encoding): Remove function.
46323         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46324         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46325         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46326         * NEWS: Document the change.
46327
46328 2007-09-01  Bruno Haible  <bruno@clisp.org>
46329
46330         * lib/streq.h: Add double-inclusion guard.
46331
46332 2007-09-01  Karl Berry  <karl@gnu.org>
46333
46334         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46335
46336 2007-08-28  Jim Meyering  <jim@meyering.net>
46337
46338         Rename mreadlink_with_size to areadlink_with_size.
46339         * NEWS: Document the change.
46340         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46341         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46342         * lib/mreadlink.h: Rename this to...
46343         * lib/areadlink.h: ...this.
46344         * modules/mreadlink-with-size: Rename this to...
46345         * modules/areadlink-with-size: ...this.
46346         * lib/canonicalize.c: Reflect the renaming.
46347         * modules/canonicalize: Likewise.
46348
46349 2007-08-26  Bruno Haible  <bruno@clisp.org>
46350
46351         * gnulib-tool (func_import): When deciding which files to remove,
46352         consider also dangling symbolic links.
46353         Reported by Eric Blake.
46354
46355 2007-08-26  Bruno Haible  <bruno@clisp.org>
46356
46357         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46358
46359 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46360
46361         * lib/readline.c: Don't include getline.h, the prototype is now
46362         found in stdio.h.
46363
46364 2007-08-23  Jim Meyering  <jim@meyering.net>
46365
46366         Getdelim touchup.
46367         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46368         around the funlockfile call, since funlockfile never sets errno.
46369         Don't set errno upon failed realloc.
46370
46371 2007-08-22  Eric Blake  <ebb9@byu.net>
46372
46373         Getline touchups.
46374         * lib/getdelim.c (getdelim): Revert regression that required *n to
46375         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46376         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46377         getdelim, rather than whether implementation is missing.
46378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46379         * lib/stdio_.h (getline): Also declare if replacement is
46380         required.
46381         * doc/functions/getdelim.texi: New file.
46382         * doc/functions/getline.texi: Likewise.
46383         * doc/gnulib.texi (Function Substitutes): Add new files.
46384         Reported by Bruno Haible.
46385
46386 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46387
46388         * users.txt: Add Guile.
46389
46390 2007-08-22  Eric Blake  <ebb9@byu.net>
46391
46392         * tests/test-getdelim.c (main): Use remove, not unlink.
46393         * tests/test-getline.c (main): Likewise.
46394
46395         Move getline and getdelim into stdio.h, per POSIX 200x.
46396         * modules/getline (Files): Remove getline.h.
46397         (Depends-on): Add stdio.
46398         (configure.ac): Add module indicator.
46399         * modules/getdelim (Files): Remove getdelim.h.
46400         (Depends-on): Add stdio.
46401         (configure.ac): Add module indicator.
46402         * modules/stdio (Makefile.am): Work with new indicators.
46403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46404         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46405         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46406         * lib/getdelim.h: Delete.
46407         * lib/getline.h: Delete.
46408         * lib/stdio_.h (getdelim, getline): Declare.
46409         * modules/getdelim-tests: New module.
46410         * modules/getline-tests: Likewise.
46411         * tests/test-getdelim.c: New file.
46412         * tests/test-getline.c: Likewise.
46413         * NEWS: Document the change.
46414         * lib/getline.c: Update choice of header.
46415         * lib/csharpcomp.c: Likewise.
46416         * lib/getpass.c: Likewise.
46417         * lib/javacomp.c: Likewise.
46418         * lib/javaversion.c: Likewise.
46419         * lib/yesno.c: Likewise.
46420         * lib/getdelim.c: Likewise.
46421         (getdelim): Set errno on failure, and avoid memory leak.
46422
46423 2007-08-19  Bruno Haible  <bruno@clisp.org>
46424
46425         * modules/closein (Depends-on): Add freadahead.
46426         * lib/closein.c: Include freadahead.h.
46427         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46428         is zero.
46429
46430 2007-08-19  Bruno Haible  <bruno@clisp.org>
46431
46432         * modules/freadahead-tests: New file.
46433         * tests/test-freadahead.sh: New file.
46434         * tests/test-freadahead.c: New file.
46435
46436         * modules/freadahead: New file.
46437         * lib/freadahead.h: New file.
46438         * lib/freadahead.c: New file.
46439         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46440         fbufmode, fpurge, freadable, fwritable.
46441
46442 2007-08-19  Eric Blake  <ebb9@byu.net>
46443
46444         Test yesno in combination with closein.
46445         * lib/yesno.c (yesno): Document use of stdin.
46446         * modules/yesno-tests (Files): New module.
46447         * tests/test-yesno.c (main): New file.
46448         * tests/test-yesno.sh: Likewise.
46449
46450 2007-08-19  Bruno Haible  <bruno@clisp.org>
46451
46452         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46453         * lib/fseeko.c (rpl_fseeko): Likewise.
46454         * lib/fseterr.c (fseterr): Likewise.
46455
46456 2007-08-19  Bruno Haible  <bruno@clisp.org>
46457
46458         * tests/test-lseek.c (main): Disable a test for BeOS.
46459         * doc/functions/lseek.texi: Document the BeOS bug.
46460
46461 2007-08-19  Bruno Haible  <bruno@clisp.org>
46462             Eric Blake  <ebb9@byu.net>
46463
46464         * lib/lseek.c: Include <sys/stat.h>.
46465         (rpl_lseek): Add workaround code also for Unix platforms.
46466         Needed for BeOS.
46467         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46468         * doc/functions/lseek.texi: Document BeOS definiency.
46469
46470 2007-08-18  Bruno Haible  <bruno@clisp.org>
46471
46472         * modules/fstrcmp-tests: New file.
46473         * tests/test-fstrcmp.c: New file.
46474
46475 2007-08-18  Bruno Haible  <bruno@clisp.org>
46476
46477         * modules/fstrcmp: New file, from GNU gettext with modifications.
46478         * lib/fstrcmp.h: New file, from GNU gettext.
46479         * lib/fstrcmp.c: New file, from GNU gettext.
46480         * MODULES.html.sh (String handling): Add fstrcmp.
46481
46482 2007-08-18  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46485         'bool'.
46486         (diag, compareseq): Remove const from the ctxt argument.
46487         (USE_HEURISTIC): Undefine at the end.
46488
46489 2007-08-18  Jim Meyering  <jim@meyering.net>
46490
46491         New file: lib/idcache.h
46492         * NEWS: Mention the addition.
46493         * modules/idcache (Files): Add lib/idcache.h
46494         * lib/idcache.c: Include "idcache.h".
46495         Don't include <sys/types.h>.
46496         Add a FIXME comment.
46497         Move file-scoped "static" declarations to the top.
46498         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46499
46500 2007-08-17  Bruno Haible  <bruno@clisp.org>
46501         and Paul Eggert  <eggert@cs.ucla.edu>
46502
46503         * MODULES.html.sh: Add diffseq.
46504         * modules/diffseq: New file.
46505         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46506         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46507
46508 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46509
46510         Import changes from coreutils for bootstrap script.
46511
46512         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         * build-aux/bootstrap (slurp): Work even in environments where
46515         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46516         current code does not slurp files whose names start with ".", and
46517         this looks like it might be a troublesome area.
46518
46519         2007-07-11  Jim Meyering  <jim@meyering.net>
46520
46521         If there's a GPL vN copyright comment, require that N == 3.
46522
46523         2007-07-08  Jim Meyering  <jim@meyering.net>
46524
46525         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46526         * build-aux/bootstrap (mam_template): Move definition out of loop.
46527
46528         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46529
46530         * build-aux/bootstrap (symlink_to_dir): Rename function from
46531         symlink_to_gnulib.  Add a directory parameter.  Update all
46532         callers.
46533         (cp_mark_as_generated): Also check for -- and link to -- files in
46534         gl/.
46535
46536         2007-07-08  Jim Meyering  <jim@meyering.net>
46537
46538         Adapt to deeper hierarchy in gnulib.
46539         * build-aux/bootstrap (symlink_to_dir): If the destination
46540         directory doesn't exist, create it. This is required at least for
46541         "lib/uniwidth/cjk.h".
46542
46543         2007-05-15  Jim Meyering  <jim@meyering.net>
46544
46545         * build-aux/bootstrap: Now that generated Makefile.am files
46546         are no longer under version control, they must be created at
46547         bootstrap time.
46548
46549 2007-08-14  Ben Pfaff  <blp@gnu.org>
46550
46551         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46552
46553 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46554
46555         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46556         given the changes below.
46557         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46558         even on hosts that have padding bits beyond the supported 64.
46559
46560 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46561
46562         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46563         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46564         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46565         depends on it.
46566         (xstrtol_error): Remove.
46567         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46568         but with a different signature.
46569         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46570         * lib/xstrtol-error.c: Include exitfail.h.
46571         (xstrtol_fatal): New function, with a different signature from the
46572         old xstrtol_error, so that the caller need not worry about passing
46573         in an exit status, or about storage management of the option argument.
46574         (xstrtol_error): Now a static function.  Redo signature to
46575         implement xstrtol_fatal.  Output the correct number of hyphens in
46576         front of the option so that the caller need not worry about
46577         storage management.
46578         (N_): New macro.
46579         (_): Remove; not used now.
46580         * modules/xstrtol: Depend on getopt.
46581         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46582         of old STRTOL_FATAL_ERROR macro.
46583         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46584         of test program.
46585         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46586         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46587
46588 2007-08-08  Eric Blake  <ebb9@byu.net>
46589
46590         * lib/xstrtol-error.c: Add missing include.
46591
46592         Move xstrtol messages into gnulib domain, when --pobase is used.
46593         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46594         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46595         * modules/xstrtol (Files): Distribute new file.
46596         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46597         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46598         * tests/test-xstrtol.c: ...into new file.
46599         * tests/test-xstrtoul.c: Also test xstrtoul.
46600         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46601         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46602         * tests/test-xstrtol.sh: Drive the tests.
46603         * tests/test-xstrtoimax.sh: Likewise.
46604         * tests/test-xstrtoumax.sh: Likewise.
46605         * modules/xstrtol-tests: New module.
46606         * modules/xstrtoimax-tests: Likewise.
46607         * modules/xstrtoumax-tests: Likewise.
46608
46609 2007-08-08  Jim Meyering  <jim@meyering.net>
46610
46611         New function: mfile_name_concat.
46612         * lib/filenamecat.c (mfile_name_concat): New function, just like
46613         file_name_concat, but return NULL upon failure rather than exiting
46614         with a diagnostic.
46615         * lib/filenamecat.h: Declare it.
46616
46617 2007-08-07  Bruno Haible  <bruno@clisp.org>
46618
46619         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46620         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46621         warning from gcc.
46622         Reported by Eric Blake.
46623
46624 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46625
46626         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46627         * modules/crypto/arcfour (License): Likewise.
46628         * modules/crypto/des-tests (License): Likewise.
46629         * modules/crypto/gc-arctwo-tests (License): Likewise.
46630         * modules/crypto/gc-des-tests (License): Likewise.
46631         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46632         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46633         * modules/crypto/gc-md2-tests (License): Likewise.
46634         * modules/crypto/gc-md4-tests (License): Likewise.
46635         * modules/crypto/gc-md5-tests (License): Likewise.
46636         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46637         * modules/crypto/gc-rijndael-tests (License): Likewise.
46638         * modules/crypto/gc-sha1-tests (License): Likewise.
46639         * modules/crypto/gc-tests (License): Likewise.
46640         * modules/crypto/hmac-md5 (License): Likewise.
46641         * modules/crypto/hmac-sha1 (License): Likewise.
46642         * modules/crypto/md2-tests (License): Likewise.
46643         * modules/crypto/md4-tests (License): Likewise.
46644         * modules/crypto/md5 (License): Likewise.
46645         * modules/crypto/rijndael (License): Likewise.
46646         * modules/crypto/sha1 (License): Likewise.
46647         * modules/memxor (License): Likewise.
46648
46649 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46650         and Bruno Haible  <bruno@clisp.org>
46651
46652         * NEWS: Describe interface changes to human, xstrtol.
46653         * lib/human.h: Include <xstrtol.h>.
46654         (human_options): Return enum strtol_error, not int.  Remove
46655         bool arg; take int * instead.
46656         * lib/human.c: Don't include "gettext.h".
46657         (_): Remove; no longer used.
46658         Don't include <xstrtol.h>, since human.h does it.
46659         (human_options): Adjust to abovementioned interface changes.
46660         Do not report error to stderr; that's now the caller's
46661         responsibility.
46662         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46663         interface change.
46664         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46665         Str, Argument_type_string.  All uses changed.  Put " argument"
46666         in diagnostics to make them clearer.  Change wording of suffix
46667         message for clarity.
46668         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46669         Argument_type_string.
46670         (STRTOL_FATAL_WARN): Remove; no longer used.
46671         * modules/human (Depends-on): Remove gettext-h.
46672
46673 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46674
46675         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46676
46677 2007-07-31  Bruno Haible  <bruno@clisp.org>
46678
46679         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46680         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46681         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46682
46683 2007-07-31  Bruno Haible  <bruno@clisp.org>
46684
46685         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46686         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46687
46688 2007-07-30  Bruno Haible  <bruno@clisp.org>
46689
46690         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46691         * modules/c-ctype (License): Likewise.
46692         * modules/c-strcase (License): Likewise.
46693         * modules/check-version (License): Likewise.
46694         * modules/iconv (License): Likewise.
46695         * modules/iconv_open (License): Likewise.
46696         * modules/read-file (License): Likewise.
46697         * modules/striconv (License): Likewise.
46698         * modules/strverscmp (License): Likewise.
46699         * modules/vasprintf (License): Likewise.
46700         * modules/crypto/des (License): Likewise.
46701         * modules/crypto/gc (License): Likewise.
46702         * modules/crypto/gc-arcfour (License): Likewise.
46703         * modules/crypto/gc-arctwo (License): Likewise.
46704         * modules/crypto/gc-des (License): Likewise.
46705         * modules/crypto/gc-hmac-md5 (License): Likewise.
46706         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46707         * modules/crypto/gc-md2 (License): Likewise.
46708         * modules/crypto/gc-md4 (License): Likewise.
46709         * modules/crypto/gc-md5 (License): Likewise.
46710         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46711         * modules/crypto/gc-random (License): Likewise.
46712         * modules/crypto/gc-rijndael (License): Likewise.
46713         * modules/crypto/gc-sha1 (License): Likewise.
46714         * modules/crypto/md2 (License): Likewise.
46715         * modules/crypto/md4 (License): Likewise.
46716
46717 2007-07-30  Jim Meyering  <jim@meyering.net>
46718
46719         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46720         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46721         it has valid stat data.  This bug would cause du not to count the
46722         sizes of inaccessible directories.
46723         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46724         in <http://bugzilla.redhat.com/250077>.
46725
46726 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46727             Bruno Haible  <bruno@clisp.org>
46728
46729         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46730         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46731         #include_next, gives a diagnostic about it, but reports no error in
46732         the exit code.
46733         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46734
46735 2007-07-24  Ben Pfaff  <blp@gnu.org>
46736
46737         Improve name: "count-one-bits" is better than "popcount".
46738         * MODULES.html.sh: Update name.
46739         * lib/popcount.h: Renamed lib/count-one-bits.h.
46740         (popcount): Renamed count_one_bits.
46741         (popcountl): Renamed count_one_bits_l.
46742         (popcountll): Renamed count_one_bits_ll.
46743         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46744         * modules/popcount: Renamed module/count-one-bits.
46745         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46746         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46747
46748 2007-07-23  Ben Pfaff  <blp@gnu.org>
46749
46750         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46751         better code generation, and add U to large constants to avoid
46752         warnings, in non-GCC case.
46753         Suggested by Bruno Haible.
46754
46755 2007-07-23  Ben Pfaff  <blp@gnu.org>
46756
46757         * lib/popcount.h: Use verify_true instead of if...abort.
46758         * modules/popcount: Depend on verify module.
46759         Suggested by Jim Meyering.
46760
46761 2007-07-23  Bruno Haible  <bruno@clisp.org>
46762
46763         * gnulib-tool (func_import): Create a .cvsignore file also when the
46764         directory is not yet in CVS but the toplevel directory is. When
46765         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46766         Reported by Karl Berry.
46767
46768 2007-07-22  Ben Pfaff  <blp@gnu.org>
46769
46770         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46771         case.
46772         Suggested by Eric Blake.
46773
46774 2007-07-22  Ben Pfaff  <blp@gnu.org>
46775
46776         New module: popcount.
46777         * MODULES.html.sh: Add popcount.
46778         * modules/popcount: New file.
46779         * modules/popcount-tests: New file.
46780         * tests/test-popcount.c: New file.
46781         * lib/popcount.h: New file.
46782         * m4/popcount.m4: New file.
46783
46784 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46785
46786         * build-aux/announce-gen: Update to GPLv3.
46787
46788         * build-aux/config.guess: Update from config.
46789
46790 2007-07-21  Bruno Haible  <bruno@clisp.org>
46791
46792         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46793         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46794
46795 2007-07-20  Jim Meyering  <jim@meyering.net>
46796
46797         * check-module: Diagnose a self-dependency.
46798
46799 2007-07-19  Bruno Haible  <bruno@clisp.org>
46800
46801         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46802         empty.
46803         Reported by Eric Blake.
46804
46805 2007-07-18  Bruno Haible  <bruno@clisp.org>
46806
46807         * gnulib-tool: New options --po-base, --po-domain.
46808         (func_usage): Document them.
46809         (pobase, po_domain): New variables.
46810         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46811         DEFAULT_TEXT_DOMAIN.
46812         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46813         (func_import): Consider pobase and po_domain. Create a po/ directory.
46814         (func_create_testdir): Set pobase and po_domain to empty.
46815         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46816         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46817
46818 2007-07-18  Bruno Haible  <bruno@clisp.org>
46819
46820         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46821         EXTRA_DIST augmentation for files in build-aux/.
46822
46823 2007-07-16  Bruno Haible  <bruno@clisp.org>
46824
46825         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46826         * modules/getdelim (License): Likewise.
46827
46828 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46829
46830         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46831         * modules/d-type (License): Likewise.
46832         * modules/extensions (License): Likewise.
46833         * modules/fnmatch (License): Likewise.
46834         * modules/fseeko (License): Likewise.
46835         * modules/getaddrinfo (License): Likewise.
46836         * modules/getline (License): Likewise.
46837         * modules/getlogin_r (License): Likewise.
46838         * modules/getpass (License): Likewise.
46839         * modules/gettimeofday (License): Likewise.
46840         * modules/glob (License): Likewise.
46841         * modules/inet_ntop (License): Likewise.
46842         * modules/malloc (License): Likewise.
46843         * modules/malloca (License): Likewise.
46844         * modules/memmem (License): Likewise.
46845         * modules/mempcpy (License): Likewise.
46846         * modules/memset (License): Likewise.
46847         * modules/minmax (License): Likewise.
46848         * modules/mktime (License): Likewise.
46849         * modules/netinet_in (License): Likewise.
46850         * modules/pathmax (License): Likewise.
46851         * modules/poll (License): Likewise.
46852         * modules/regex (License): Likewise.
46853         * modules/snprintf (License): Likewise.
46854         * modules/stdbool (License): Likewise.
46855         * modules/stdint (License): Likewise.
46856         * modules/stdio (License): Likewise.
46857         * modules/strcase (License): Likewise.
46858         * modules/strcasestr (License): Likewise.
46859         * modules/strdup (License): Likewise.
46860         * modules/string (License): Likewise.
46861         * modules/strndup (License): Likewise.
46862         * modules/strnlen (License): Likewise.
46863         * modules/strpbrk (License): Likewise.
46864         * modules/strptime (License): Likewise.
46865         * modules/strsep (License): Likewise.
46866         * modules/sys_select (License): Likewise.
46867         * modules/sys_socket (License): Likewise.
46868         * modules/sys_stat (License): Likewise.
46869         * modules/sys_time (License): Likewise.
46870         * modules/time (License): Likewise.
46871         * modules/time_r (License): Likewise.
46872         * modules/timegm (License): Likewise.
46873         * modules/unistd (License): Likewise.
46874         * modules/vsnprintf (License): Likewise.
46875         * modules/wctype (License): Likewise.
46876
46877 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46878
46879         * modules/argz (License): LGPLv2+.
46880
46881 2007-07-15  Karl Berry  <karl@gnu.org>
46882
46883         * doc/gnulib.texi: revise node structure per new fdl.texi.
46884
46885 2007-07-14  Bruno Haible  <bruno@clisp.org>
46886
46887         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46888         the output file.
46889         * lib/uniname/uninames.h: Regenerated.
46890
46891 2007-07-14  Karl Berry  <karl@gnu.org>
46892
46893         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46894         omitting sectioning and index commands.
46895
46896 2007-07-13  Bruno Haible  <bruno@clisp.org>
46897
46898         New gnulib-tool option --more-symlinks.
46899         * gnulib-tool (func_usage): Document --more-symlinks.
46900         (do_copyrights): New variable.
46901         Recognize option --more-symlinks.
46902         (func_import): Don't add a copyright notice transform to
46903         sed_transform_lib_file if do_copyrights is empty.
46904
46905 2007-07-13  Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/vasnprintf.c (decimal_point_char): Define also if
46908         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46909         && !NEED_PRINTF_DIRECTIVE_A.
46910         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46911         Gary V. Vaughan <gary@gnu.org>.
46912
46913 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46914
46915         * lib/inttypes_.h: Undo previous change, since it was fixed
46916         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46917
46918 2007-07-13  Bruno Haible  <bruno@clisp.org>
46919
46920         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46921         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46922
46923 2007-07-13  Jim Meyering  <jim@meyering.net>
46924
46925         df: Don't fail for Tru64's "file-on-file mount".
46926         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46927         so we fall through and use statfs instead.  Details here:
46928         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46929         Reported by Albert Chin.
46930
46931 2007-07-13  Bruno Haible  <bruno@clisp.org>
46932
46933         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46934         * modules/configmake (License): Likewise.
46935         * modules/gettext (License): Likewise.
46936         * modules/gettext-h (License): Likewise.
46937         * modules/include_next (License): Likewise.
46938         * modules/link-warning (License): Likewise.
46939         * modules/localcharset (License): Likewise.
46940         * modules/localename (License): Likewise.
46941         * modules/lock (License): Likewise.
46942         * modules/relocatable-lib-lgpl (License): Likewise.
46943         * modules/size_max (License): Likewise.
46944         * modules/vasnprintf (License): Likewise.
46945         * modules/wchar (License): Likewise.
46946         * modules/xsize (License): Likewise.
46947
46948 2007-07-13  Bruno Haible  <bruno@clisp.org>
46949
46950         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46951         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46952
46953 2007-07-12  Bruno Haible  <bruno@clisp.org>
46954
46955         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46956         in the modules files.
46957
46958 2007-07-11  Karl Berry  <karl@gnu.org>
46959
46960         * MODULES.html.sh (func_module): use
46961          sed -e '\|^'"${includefile}"'$|d'
46962          instead of /.../d, to avoid errors on $includefile's containing /.
46963
46964 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46965
46966         * gnulib-tool (func_import): Avoid duplication of --avoid
46967         statements
46968         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46969         names to `_' in variable names.
46970
46971 2007-07-10  Eric Blake  <ebb9@byu.net>
46972
46973         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46974         * NEWS: Document this change.
46975
46976 2007-07-08  Bruno Haible  <bruno@clisp.org>
46977
46978         Update to Unicode 5.0.
46979         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46980         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46981         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46982         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46983         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46984         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46985         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46986         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46987         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46988         U+10A3F, U+1D242..U+1D244.
46989         (nonspacing_table_ind): Update.
46990         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46991         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46992
46993 2007-07-08  Bruno Haible  <bruno@clisp.org>
46994
46995         Update to Unicode 5.0.
46996         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46997         code transform. Extend the name index field of unicode_name_to_code and
46998         unicode_code_to_name from 16 to 24 bits.
46999         * lib/uniname/uniname.c (unicode_character_name,
47000         unicode_name_character): Add the range 0x12xxx to the code transform.
47001         * lib/uniname/uninames.h: Regenerated.
47002         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47003
47004 2007-07-07  Bruno Haible  <bruno@clisp.org>
47005
47006         * modules/wcwidth-tests: New file.
47007         * tests/test-wcwidth.c: New file.
47008
47009         Work around MacOS X wcwidth() bug.
47010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47011         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47012         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47013         original wcwidth in non-UTF-8 locales.
47014         * modules/wcwidth (Depends-on): Add localcharset, streq,
47015         uniwidth/width.
47016         * doc/functions/wcwidth.texi: Update.
47017
47018 2007-07-07  Bruno Haible  <bruno@clisp.org>
47019
47020         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47021         (wcwidth): New declaration.
47022         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47023         macros.
47024         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47025         here. Prepare for creating <wchar.h> unconditionally.
47026         * modules/wchar (Depends-on): Add link-warning.
47027         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47028         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47029         * lib/wcwidth.h: Remove file.
47030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47031         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47032         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47033         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47034         (Include): Replace wcwidth.h with <wchar.h>.
47035         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47036         * lib/mbchar.h: Don't include wcwidth.h.
47037         * lib/mbswidth.c: Likewise.
47038         * NEWS: Mention the change.
47039
47040 2007-07-07  Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47043         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47044         definition with an external declaration.
47045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47046         defined as a function. Remove AC_C_INLINE requirement.
47047         * modules/wcwidth (Files): Add lib/wcwidth.c.
47048         (Makefile.am): Remove redundant statement.
47049
47050 2007-07-07  Bruno Haible  <bruno@clisp.org>
47051
47052         * MODULES.html.sh (Unicode string functions): Add the new modules.
47053
47054         * tests/uniwidth/test-u32-strwidth.c: New file.
47055         * modules/uniwidth/u32-strwidth-tests: New file.
47056
47057         * lib/uniwidth/u32-strwidth.c: New file.
47058         * modules/uniwidth/u32-strwidth: New file.
47059
47060         * tests/uniwidth/test-u16-strwidth.c: New file.
47061         * modules/uniwidth/u16-strwidth-tests: New file.
47062
47063         * lib/uniwidth/u16-strwidth.c: New file.
47064         * modules/uniwidth/u16-strwidth: New file.
47065
47066         * tests/uniwidth/test-u8-strwidth.c: New file.
47067         * modules/uniwidth/u8-strwidth-tests: New file.
47068
47069         * lib/uniwidth/u8-strwidth.c: New file.
47070         * modules/uniwidth/u8-strwidth: New file.
47071
47072         * tests/uniwidth/test-u32-width.c: New file.
47073         * modules/uniwidth/u32-width-tests: New file.
47074
47075         * lib/uniwidth/u32-width.c: New file.
47076         * modules/uniwidth/u32-width: New file.
47077
47078         * tests/uniwidth/test-u16-width.c: New file.
47079         * modules/uniwidth/u16-width-tests: New file.
47080
47081         * lib/uniwidth/u16-width.c: New file.
47082         * modules/uniwidth/u16-width: New file.
47083
47084         * tests/uniwidth/test-u8-width.c: New file.
47085         * modules/uniwidth/u8-width-tests: New file.
47086
47087         * lib/uniwidth/u8-width.c: New file.
47088         * modules/uniwidth/u8-width: New file.
47089
47090         * tests/uniwidth/test-uc_width.c: New file.
47091         * modules/uniwidth/width-tests: New file.
47092
47093         * lib/uniwidth/width.c: New file, from GNU libiconv.
47094         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47095         * modules/uniwidth/width: New file.
47096
47097         * lib/uniwidth.h: New file, from GNU libiconv.
47098         * modules/uniwidth/base: New file.
47099
47100 2007-07-07  Bruno Haible  <bruno@clisp.org>
47101
47102         * lib/uniname.h: New file, from GNU gettext.
47103         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47104         * lib/uniname/uninames.h: New file, from GNU gettext.
47105         * lib/uniname/uniname.c: New file, from GNU gettext.
47106         * tests/uniname/test-uninames.sh: New file.
47107         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47108         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47109         * modules/uniname/base: New file.
47110         * modules/uniname/uniname: New file.
47111         * modules/uniname/uniname-tests: New file.
47112         * MODULES.html.sh (Unicode string functions): Add the new modules.
47113
47114 2007-07-06  Bruno Haible  <bruno@clisp.org>
47115
47116         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47117
47118 2007-07-06  Bruno Haible  <bruno@clisp.org>
47119
47120         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47121         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47122         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47123         include <sys/time.h>.
47124         Reported by Eric Blake.
47125
47126 2007-07-06  Eric Blake  <ebb9@byu.net>
47127
47128         Fix testing canonicalize on cygwin.
47129         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47130         Revert patch from 2007-06-19.
47131         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47132         canonicalize module is also in use.
47133         * tests/test-canonicalize.c: New file.
47134         * tests/test-canonicalize.sh: Likewise.
47135         * modules/canonicalize-tests: Likewise.
47136
47137 2007-07-06  Jim Meyering  <jim@meyering.net>
47138
47139         * lib/getugroups.c (getugroups): Detect getgrent failure.
47140         Adjust comment to reflect reality: this function may return -1.
47141
47142 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47143
47144         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47145         the new TP address.
47146         (usage): Fix typo
47147         (gnulib_mk): New variable.
47148
47149 2007-07-05  Jim Meyering  <jim@meyering.net>
47150
47151         Don't let endgrent clobber errno, no matter how improbable.
47152         * lib/getugroups.c (getugroups): Save and restore errno around
47153         endgrent call.
47154
47155         Close the group DB even when failing with 2^31 or more members.
47156         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47157
47158 2007-07-04  Jim Meyering  <jim@meyering.net>
47159
47160         * lib/getugroups.h: New file.
47161         * lib/getugroups.c: Include "getugroups.h".
47162         Remove uses of "register" keyword.
47163         Move local variable, "cp", down into scope where used.
47164         Give "username" parameter the "const" attribute.
47165         * modules/getugroups (Files): Add lib/getugroups.h
47166
47167 2007-07-04  Karl Berry  <karl@gnu.org>
47168
47169         * MODULES.html.sh (func_all_modules): Complete rename of
47170         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47171
47172 2007-07-02  Bruno Haible  <bruno@clisp.org>
47173
47174         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47175         mode, when inttypes.h comes from gnulib.
47176         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47177
47178 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47179
47180         * NEWS: Mention lgpl module name change.
47181
47182         * modules/lgpl-2.1: Renamed from lgpl.
47183
47184         * NEWS: Mention gpl module name change.
47185
47186         * modules/gpl-3.0: New file, based on gpl-2.0.
47187
47188         * modules/gpl-2.0: Renamed from gpl.
47189
47190         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47191         doc/gpl-2.0.texi.
47192
47193 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47194
47195         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47196         #define __STDC_LIMIT_MACROS temporarily while including
47197         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47198         Problem reported by Joel E. Denny in
47199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47200
47201 2007-07-01  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/unistdio.h: New file.
47204         * lib/unistdio/u-asnprintf.h: New file.
47205         * lib/unistdio/u-asprintf.h: New file.
47206         * lib/unistdio/u-printf-args.c: New file.
47207         * lib/unistdio/u-printf-args.h: New file.
47208         * lib/unistdio/u-printf-parse.h: New file.
47209         * lib/unistdio/u-snprintf.h: New file.
47210         * lib/unistdio/u-sprintf.h: New file.
47211         * lib/unistdio/u-vasprintf.h: New file.
47212         * lib/unistdio/u-vsnprintf.h: New file.
47213         * lib/unistdio/u-vsprintf.h: New file.
47214         * lib/unistdio/ulc-asnprintf.c: New file.
47215         * lib/unistdio/ulc-asprintf.c: New file.
47216         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47217         * lib/unistdio/ulc-printf-parse.c: New file.
47218         * lib/unistdio/ulc-snprintf.c: New file.
47219         * lib/unistdio/ulc-sprintf.c: New file.
47220         * lib/unistdio/ulc-vasnprintf.c: New file.
47221         * lib/unistdio/ulc-vasprintf.c: New file.
47222         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47223         * lib/unistdio/ulc-vsnprintf.c: New file.
47224         * lib/unistdio/ulc-vsprintf.c: New file.
47225         * lib/unistdio/u8-asnprintf.c: New file.
47226         * lib/unistdio/u8-asprintf.c: New file.
47227         * lib/unistdio/u8-printf-parse.c: New file.
47228         * lib/unistdio/u8-snprintf.c: New file.
47229         * lib/unistdio/u8-sprintf.c: New file.
47230         * lib/unistdio/u8-vasnprintf.c: New file.
47231         * lib/unistdio/u8-vasprintf.c: New file.
47232         * lib/unistdio/u8-vsnprintf.c: New file.
47233         * lib/unistdio/u8-vsprintf.c: New file.
47234         * lib/unistdio/u8-u8-asnprintf.c: New file.
47235         * lib/unistdio/u8-u8-asprintf.c: New file.
47236         * lib/unistdio/u8-u8-snprintf.c: New file.
47237         * lib/unistdio/u8-u8-sprintf.c: New file.
47238         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47239         * lib/unistdio/u8-u8-vasprintf.c: New file.
47240         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47241         * lib/unistdio/u8-u8-vsprintf.c: New file.
47242         * lib/unistdio/u16-asnprintf.c: New file.
47243         * lib/unistdio/u16-asprintf.c: New file.
47244         * lib/unistdio/u16-printf-parse.c: New file.
47245         * lib/unistdio/u16-snprintf.c: New file.
47246         * lib/unistdio/u16-sprintf.c: New file.
47247         * lib/unistdio/u16-vasnprintf.c: New file.
47248         * lib/unistdio/u16-vasprintf.c: New file.
47249         * lib/unistdio/u16-vsnprintf.c: New file.
47250         * lib/unistdio/u16-vsprintf.c: New file.
47251         * lib/unistdio/u16-u16-asnprintf.c: New file.
47252         * lib/unistdio/u16-u16-asprintf.c: New file.
47253         * lib/unistdio/u16-u16-snprintf.c: New file.
47254         * lib/unistdio/u16-u16-sprintf.c: New file.
47255         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47256         * lib/unistdio/u16-u16-vasprintf.c: New file.
47257         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47258         * lib/unistdio/u16-u16-vsprintf.c: New file.
47259         * lib/unistdio/u32-asnprintf.c: New file.
47260         * lib/unistdio/u32-asprintf.c: New file.
47261         * lib/unistdio/u32-printf-parse.c: New file.
47262         * lib/unistdio/u32-snprintf.c: New file.
47263         * lib/unistdio/u32-sprintf.c: New file.
47264         * lib/unistdio/u32-vasnprintf.c: New file.
47265         * lib/unistdio/u32-vasprintf.c: New file.
47266         * lib/unistdio/u32-vsnprintf.c: New file.
47267         * lib/unistdio/u32-vsprintf.c: New file.
47268         * lib/unistdio/u32-u32-asnprintf.c: New file.
47269         * lib/unistdio/u32-u32-asprintf.c: New file.
47270         * lib/unistdio/u32-u32-snprintf.c: New file.
47271         * lib/unistdio/u32-u32-sprintf.c: New file.
47272         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47273         * lib/unistdio/u32-u32-vasprintf.c: New file.
47274         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47275         * lib/unistdio/u32-u32-vsprintf.c: New file.
47276         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47277         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47278         * tests/unistdio/test-ulc-printf1.h: New file.
47279         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47280         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47281         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47282         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47283         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47284         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47285         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47286         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47287         * tests/unistdio/test-u8-asnprintf1.c: New file.
47288         * tests/unistdio/test-u8-asnprintf1.h: New file.
47289         * tests/unistdio/test-u8-printf1.h: New file.
47290         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47291         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47292         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47293         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47294         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47295         * tests/unistdio/test-u8-vasprintf1.c: New file.
47296         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47297         * tests/unistdio/test-u8-vsprintf1.c: New file.
47298         * tests/unistdio/test-u16-asnprintf1.c: New file.
47299         * tests/unistdio/test-u16-asnprintf1.h: New file.
47300         * tests/unistdio/test-u16-printf1.h: New file.
47301         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47302         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47303         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47304         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47305         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47306         * tests/unistdio/test-u16-vasprintf1.c: New file.
47307         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47308         * tests/unistdio/test-u16-vsprintf1.c: New file.
47309         * tests/unistdio/test-u32-asnprintf1.c: New file.
47310         * tests/unistdio/test-u32-asnprintf1.h: New file.
47311         * tests/unistdio/test-u32-printf1.h: New file.
47312         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47313         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47314         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47315         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47316         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47317         * tests/unistdio/test-u32-vasprintf1.c: New file.
47318         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47319         * tests/unistdio/test-u32-vsprintf1.c: New file.
47320         * modules/unistdio/base: New file.
47321         * modules/unistdio/u-printf-args: New file.
47322         * modules/unistdio/ulc-asnprintf: New file.
47323         * modules/unistdio/ulc-asprintf: New file.
47324         * modules/unistdio/ulc-fprintf: New file.
47325         * modules/unistdio/ulc-printf-parse: New file.
47326         * modules/unistdio/ulc-snprintf: New file.
47327         * modules/unistdio/ulc-sprintf: New file.
47328         * modules/unistdio/ulc-vasnprintf: New file.
47329         * modules/unistdio/ulc-vasprintf: New file.
47330         * modules/unistdio/ulc-vfprintf: New file.
47331         * modules/unistdio/ulc-vsnprintf: New file.
47332         * modules/unistdio/ulc-vsprintf: New file.
47333         * modules/unistdio/u8-asnprintf: New file.
47334         * modules/unistdio/u8-asprintf: New file.
47335         * modules/unistdio/u8-printf-parse: New file.
47336         * modules/unistdio/u8-snprintf: New file.
47337         * modules/unistdio/u8-sprintf: New file.
47338         * modules/unistdio/u8-vasnprintf: New file.
47339         * modules/unistdio/u8-vasprintf: New file.
47340         * modules/unistdio/u8-vsnprintf: New file.
47341         * modules/unistdio/u8-vsprintf: New file.
47342         * modules/unistdio/u8-u8-asnprintf: New file.
47343         * modules/unistdio/u8-u8-asprintf: New file.
47344         * modules/unistdio/u8-u8-snprintf: New file.
47345         * modules/unistdio/u8-u8-sprintf: New file.
47346         * modules/unistdio/u8-u8-vasnprintf: New file.
47347         * modules/unistdio/u8-u8-vasprintf: New file.
47348         * modules/unistdio/u8-u8-vsnprintf: New file.
47349         * modules/unistdio/u8-u8-vsprintf: New file.
47350         * modules/unistdio/u16-asnprintf: New file.
47351         * modules/unistdio/u16-asprintf: New file.
47352         * modules/unistdio/u16-printf-parse: New file.
47353         * modules/unistdio/u16-snprintf: New file.
47354         * modules/unistdio/u16-sprintf: New file.
47355         * modules/unistdio/u16-vasnprintf: New file.
47356         * modules/unistdio/u16-vasprintf: New file.
47357         * modules/unistdio/u16-vsnprintf: New file.
47358         * modules/unistdio/u16-vsprintf: New file.
47359         * modules/unistdio/u16-u16-asnprintf: New file.
47360         * modules/unistdio/u16-u16-asprintf: New file.
47361         * modules/unistdio/u16-u16-snprintf: New file.
47362         * modules/unistdio/u16-u16-sprintf: New file.
47363         * modules/unistdio/u16-u16-vasnprintf: New file.
47364         * modules/unistdio/u16-u16-vasprintf: New file.
47365         * modules/unistdio/u16-u16-vsnprintf: New file.
47366         * modules/unistdio/u16-u16-vsprintf: New file.
47367         * modules/unistdio/u32-asnprintf: New file.
47368         * modules/unistdio/u32-asprintf: New file.
47369         * modules/unistdio/u32-printf-parse: New file.
47370         * modules/unistdio/u32-snprintf: New file.
47371         * modules/unistdio/u32-sprintf: New file.
47372         * modules/unistdio/u32-vasnprintf: New file.
47373         * modules/unistdio/u32-vasprintf: New file.
47374         * modules/unistdio/u32-vsnprintf: New file.
47375         * modules/unistdio/u32-vsprintf: New file.
47376         * modules/unistdio/u32-u32-asnprintf: New file.
47377         * modules/unistdio/u32-u32-asprintf: New file.
47378         * modules/unistdio/u32-u32-snprintf: New file.
47379         * modules/unistdio/u32-u32-sprintf: New file.
47380         * modules/unistdio/u32-u32-vasnprintf: New file.
47381         * modules/unistdio/u32-u32-vasprintf: New file.
47382         * modules/unistdio/u32-u32-vsnprintf: New file.
47383         * modules/unistdio/u32-u32-vsprintf: New file.
47384         * modules/unistdio/ulc-asnprintf-tests: New file.
47385         * modules/unistdio/ulc-vasnprintf-tests: New file.
47386         * modules/unistdio/ulc-vasprintf-tests: New file.
47387         * modules/unistdio/ulc-vsnprintf-tests: New file.
47388         * modules/unistdio/ulc-vsprintf-tests: New file.
47389         * modules/unistdio/u8-asnprintf-tests: New file.
47390         * modules/unistdio/u8-vasnprintf-tests: New file.
47391         * modules/unistdio/u8-vasprintf-tests: New file.
47392         * modules/unistdio/u8-vsnprintf-tests: New file.
47393         * modules/unistdio/u8-vsprintf-tests: New file.
47394         * modules/unistdio/u16-asnprintf-tests: New file.
47395         * modules/unistdio/u16-vasnprintf-tests: New file.
47396         * modules/unistdio/u16-vasprintf-tests: New file.
47397         * modules/unistdio/u16-vsnprintf-tests: New file.
47398         * modules/unistdio/u16-vsprintf-tests: New file.
47399         * modules/unistdio/u32-asnprintf-tests: New file.
47400         * modules/unistdio/u32-vasnprintf-tests: New file.
47401         * modules/unistdio/u32-vasprintf-tests: New file.
47402         * modules/unistdio/u32-vsnprintf-tests: New file.
47403         * modules/unistdio/u32-vsprintf-tests: New file.
47404         * MODULES.html.sh (Unicode string functions): Add the new modules.
47405
47406 2007-07-01  Bruno Haible  <bruno@clisp.org>
47407
47408         * lib/sprintf.c (sprintf): Limit the available length estimation,
47409         to avoid address wraparound.
47410         * lib/vsprintf.c (vsprintf): Likewise.
47411         * modules/sprintf-posix (Dependencies): Add stdint.
47412         * modules/vsprintf-posix (Dependencies): Likewise.
47413
47414 2007-07-01  Bruno Haible  <bruno@clisp.org>
47415
47416         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47417         Windows PATH as well. Conservative double-quoting. Comments.
47418
47419 2007-07-01  Bruno Haible  <bruno@clisp.org>
47420             Eric Blake  <ebb9@byu.net>
47421             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47422
47423         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47424         empty components in $PATH, denoting '.'.
47425
47426 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47427
47428         * gnulib-tool: Fix indentation.
47429         (func_create_megatestdir): Likewise.
47430         Report by Bruno Haible.
47431
47432 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47433
47434         Sync from Automake.
47435         * build-aux/gnupload: Fix shell portability issues with for loops.
47436         Report by Karl Berry.
47437
47438 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47439
47440         * build-aux/maint.mk (POURL): Use translationproject.org.
47441
47442 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47443             Bruno Haible  <bruno@clisp.org>
47444
47445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47446         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47447         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47448         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47449         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47450
47451 2007-06-27  Bruno Haible  <bruno@clisp.org>
47452
47453         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47454         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47455
47456 2007-06-26  Karl Berry  <karl@gnu.org>
47457
47458         * MODULES.html.sh: remove xreadlink-with-size.
47459
47460 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47461
47462         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47463         method that I hope also handles the double-include problem noted
47464         by Bruno Haible in
47465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47466
47467 2007-06-23  Bruno Haible  <bruno@clisp.org>
47468
47469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47470         Don't let the 'mostlyclean' target fail if the last subdirectory could
47471         not be removed.
47472         Reported by Karl Berry.
47473
47474 2007-06-23  Bruno Haible  <bruno@clisp.org>
47475
47476         * gnulib-tool (echo): Add a speedier workaround for ksh.
47477         * tests/test-echo.sh: Likewise.
47478
47479 2007-06-23  Bruno Haible  <bruno@clisp.org>
47480
47481         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47482         * tests/test-echo.sh: Likewise.
47483
47484 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47485
47486         * gnulib-tool (IFS): Initialize early, so we don't set it to
47487         empty later.
47488         (self_abspathname): Rewrite algorithm to set it, reindent.
47489         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47490         (func_create_megatestdir): Merge some sed scripts.
47491
47492 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47493
47494         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47495         exposed by Sun Studio 11 cc on Solaris 8.
47496
47497 2007-06-22  Bruno Haible  <bruno@clisp.org>
47498
47499         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47500         backslashes.
47501         * tests/test-echo.sh: New file.
47502
47503 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47504
47505         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47506         simplify `sed_replace_build_aux' scripts, they are portable but
47507         echoing them with `echo' is not.
47508         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47509
47510 2007-06-21  Karl Berry  <karl@gnu.org>
47511
47512         * config/srclist.txt: guess we can't handle the licenses via
47513         srclist at the moment.
47514
47515 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47516
47517         * MODULES.html.sh: Add include_next.
47518         * modules/include_next: New file.
47519
47520 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47521
47522         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47523         INCLUDE_NEXT.
47524         (gl_CHECK_NEXT_HEADERS): New macro.
47525         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47526         the obsolescent gl_ABSOLUTE_HEADER.
47527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47528         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47529         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47530         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47531         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47532         * m4/math_h.m4 (gl_MATH_H): Likewise.
47533         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47534         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47535         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47536         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47537         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47538         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47539         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47543         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47544         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47545         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47546         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47547         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47548         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47549         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47550         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47551         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47552         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47553         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47554         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47555         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47556         * lib/float_.h: Likewise.
47557         * lib/inttypes_.h: Likewise.
47558         * lib/math_.h: Likewise.
47559         * lib/search_.h: Likewise.
47560         * lib/signal_.h: Likewise.
47561         * lib/stdint_.h: Likewise.
47562         * lib/stdio_.h: Likewise.
47563         * lib/stdlib_.h: Likewise.
47564         * lib/string_.h: Likewise.
47565         * lib/sys_stat_.h: Likewise.
47566         * lib/sys_time_.h: Likewise.
47567         * lib/time_.h: Likewise.
47568         * lib/unistd_.h: Likewise.
47569         * lib/wchar_.h: Likewise.
47570         * lib/wctype_.h: Likewise.
47571         * lib/dirent_.h: Likewise.
47572         * lib/iconv_.h: Likewise.
47573         * lib/locale_.h: Likewise.
47574         * lib/netinet_in_.h: Likewise.
47575         * lib/sys_select_.h: Likewise.
47576         * lib/sys_socket_.h: Likewise.
47577         * lib/sysexits_.h: Likewise.
47578         * modules/fcntl (Depends-on): Depend on include_next, not
47579         absolute_header.
47580         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47581         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47582         * modules/fchdir: Likewise.
47583         * modules/float: Likewise.
47584         * modules/iconv_open: Likewise.
47585         * modules/inttypes: Likewise.
47586         * modules/locale: Likewise.
47587         * modules/math: Likewise.
47588         * modules/netinet_in: Likewise.
47589         * modules/search: Likewise.
47590         * modules/signal: Likewise.
47591         * modules/stdint: Likewise.
47592         * modules/stdio: Likewise.
47593         * modules/stdlib: Likewise.
47594         * modules/string: Likewise.
47595         * modules/sys_select: Likewise.
47596         * modules/sys_socket: Likewise.
47597         * modules/sys_stat: Likewise.
47598         * modules/sys_time: Likewise.
47599         * modules/sysexits: Likewise.
47600         * modules/time: Likewise.
47601         * modules/unistd: Likewise.
47602         * modules/wchar: Likewise.
47603         * modules/wctype: Likewise.
47604         * modules/sys_stat: Change maintainer to "all".
47605         * modules/unistd: Likewise.
47606
47607 2007-06-20  Karl Berry  <karl@gnu.org>
47608
47609         * config/srclist.txt: track www changes in license files.
47610
47611 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47612
47613         * build-aux/bootstrap: Remove stray dot.
47614         Make sure build_aux settings are honored when linking
47615         gnulib_extra_files.
47616
47617 2007-06-19  Eric Blake  <ebb9@byu.net>
47618
47619         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47620         Allow compilation on cygwin.
47621
47622 2007-06-19  Jim Meyering  <jim@meyering.net>
47623
47624         xreadlink-with-size: Remove module.  No longer used.
47625         Ex-callers now use xreadlink or mreadlink-with-size.
47626         * modules/xreadlink-with-size: Remove module.
47627         * lib/xreadlink-with-size.c: Remove file.
47628         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47629         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47630         just before the function definition *is* accurate.
47631
47632         Eliminate one way canonicalize_filename_mode could exit.
47633         * lib/canonicalize.c (canonicalize_filename_mode):
47634         Use mreadlink_with_size, not xreadlink_with_size.
47635
47636 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47637
47638         Detect porting problems to FreeBSD/arm, which has time_t wider than
47639         long int.  Original problem reported for GNU diff by Xin Li in
47640         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47641         * modules/getdate (Depends-on): Add intprops, verify.
47642         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47643         is an integer type no wider than long int.
47644
47645 2007-06-18  Jim Meyering  <jim@meyering.net>
47646
47647         New module: mreadlink-with-size.
47648         * MODULES.html.sh: Add mreadlink-with-size.
47649         * modules/mreadlink-with-size: New module
47650         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47651         not xreadlink-with-size.
47652         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47653
47654 2007-06-16  Bruno Haible  <bruno@clisp.org>
47655
47656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47657         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47658         Reported by Gary V. Vaughan <gary@gnu.org>.
47659
47660 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47661
47662         Revamp lchown so that it lives in unistd.h where it belongs.
47663         * lib/lchown.h: Remove.
47664         * lib/dirchownmod.c: Don't include lib/lchown.h.
47665         * lib/fchownat.c: Likewise.
47666         * lib/openat.c: Likewise.
47667         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47668         does not follow symlinks.
47669         (EOPNOTSUPP): Define if not defined.
47670         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47671         is defined to 0.
47672         (lchown): New decl.
47673         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47674         Do not check for lchown decl.
47675         Set REPLACE_LCHOWN.
47676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47677         REPLACE_LCHOWN.
47678         * modules/chown: Make it clear it follows symlinks.
47679         * modules/lchown: Make it clear it doesn't follow symlinks.
47680         (Files): Remove lib/lchown.h
47681         (Depends-on): Add unistd.
47682         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47683         (Include): Include <unistd.h>, not "lchown.h".
47684         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47685         REPLACE_LCHOWN.
47686
47687 2007-06-15  Jim Meyering  <jim@meyering.net>
47688
47689         Change license (GPL to LGPL) of fsusage and dependents.
47690         * modules/fsusage (License): Change to LGPL.
47691         * modules/full-read (License): Likewise.
47692         * modules/full-write (License): Likewise.
47693         * modules/safe-read (License): Likewise.
47694         * modules/safe-write (License): Likewise.
47695
47696 2007-06-14  Ben Pfaff  <blp@gnu.org>
47697
47698         Missing part of allocsa -> malloca transition.
47699         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47700         gl_MALLOCA.
47701
47702 2007-06-12  Bruno Haible  <bruno@clisp.org>
47703
47704         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47705         to ia64, x86_64, i386.
47706         Reported by Eric Blake.
47707
47708 2007-06-12  Bruno Haible  <bruno@clisp.org>
47709
47710         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47711         cross-compiling to x86_64.
47712
47713 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47716         glitch reported by Ralf Wildenhues in
47717         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47718
47719         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47720         Vin Shelton.
47721
47722 2007-06-11  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47725         replacement string.
47726         Reported by Eric Blake.
47727
47728 2007-06-10  Bruno Haible  <bruno@clisp.org>
47729
47730         Prepare vasnprintf code for use with Unicode strings.
47731         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47732         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47733         TYPE_U32_STRING.
47734         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47735         a_u32_string variants.
47736         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47737         * lib/printf-args.c: Don't include config.h and the specification
47738         header if PRINTF_FETCHARGS is already defined.
47739         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47740         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47741         TYPE_U16_STRING, TYPE_U32_STRING.
47742         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47743         u16_directive, u16_directives, u32_directive, u32_directives): New
47744         types.
47745         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47746         New declarations.
47747         * lib/printf-parse.c: Don't include config.h and the specification
47748         header if PRINTF_PARSE is already defined. Eliminate the set of
47749         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47750         them now. Include c-ctype.h.
47751         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47752         directive and CHAR_T_ONLY_ASCII.
47753         * lib/vasnprintf.c: Don't include config.h and the specification header
47754         if VASNPRINTF is already defined.
47755         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47756         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47757         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47758         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47759         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47760         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47761         code accordingly.
47762         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47763         pad_ourselves also in this case, with the 'c' and 's' directives, and
47764         with a different notion of "width".
47765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47766
47767 2007-06-10  Bruno Haible  <bruno@clisp.org>
47768
47769         * modules/unistr/u32-mbsnlen: New file.
47770         * lib/unistr/u32-mbsnlen.c: New file.
47771
47772         * modules/unistr/u16-mbsnlen: New file.
47773         * lib/unistr/u16-mbsnlen.c: New file.
47774
47775         * modules/unistr/u8-mbsnlen: New file.
47776         * lib/unistr/u8-mbsnlen.c: New file.
47777
47778         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47779         declarations.
47780
47781 2007-06-10  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/string_.h (mbsnlen): New declaration.
47784         * lib/mbsnlen.c: New file.
47785         * m4/mbsnlen.m4: New file.
47786         * modules/mbsnlen: New file.
47787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47788         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47789         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47790
47791 2007-06-10  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47794
47795 2007-06-10  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47798         * lib/mbuiter.h: Likewise.
47799
47800 2007-06-10  Bruno Haible  <bruno@clisp.org>
47801
47802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47803         declaration.
47804
47805 2007-06-10  Karl Berry  <karl@gnu.org>
47806
47807         * config/srclist.txt: remove gettext entries, Bruno prefers
47808         to update individually.
47809
47810 2007-06-10  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47813         'maxlen'. Ensure only length + width bytes are allocated, not
47814         length + 1 + width.
47815
47816 2007-06-09  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47819         (CHAR_T): Remove macro.
47820         (VASNPRINTF): Update.
47821
47822 2007-06-09  Bruno Haible  <bruno@clisp.org>
47823
47824         * MODULES.html.sh (Unicode string functions): Add the new modules.
47825
47826         * modules/uniconv/u32-conv-to-enc: New file.
47827         * lib/uniconv/u32-conv-to-enc.c: New file.
47828         * modules/uniconv/u32-conv-to-enc-tests: New file.
47829         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47830
47831         * modules/uniconv/u16-conv-to-enc: New file.
47832         * lib/uniconv/u16-conv-to-enc.c: New file.
47833         * lib/uniconv/u-conv-to-enc.h: New file.
47834         * modules/uniconv/u16-conv-to-enc-tests: New file.
47835         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47836
47837         * modules/uniconv/u8-conv-to-enc: New file.
47838         * lib/uniconv/u8-conv-to-enc.c: New file.
47839         * modules/uniconv/u8-conv-to-enc-tests: New file.
47840         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47841
47842         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47843         u32_conv_to_encoding): New declarations.
47844
47845 2007-06-09  Bruno Haible  <bruno@clisp.org>
47846
47847         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47848
47849 2007-06-09  Bruno Haible  <bruno@clisp.org>
47850
47851         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47852         * modules/malloca: Renamed from modules/allocsa, updated.
47853         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47854         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47855         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47856         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47857         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47858         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47859         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47860         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47861         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47862         * modules/c-strcasestr (Depends-on): Update.
47863         * lib/c-strcasestr.c: Update.
47864         * modules/c-strstr (Depends-on): Update.
47865         * lib/c-strstr.c: Update.
47866         * modules/canonicalize-lgpl (Depends-on): Update.
47867         * lib/canonicalize-lgpl.c: Update.
47868         * modules/clean-temp (Depends-on): Update.
47869         * lib/clean-temp.c: Update.
47870         * modules/csharpcomp (Depends-on): Update.
47871         * lib/csharpcomp.c: Update.
47872         * modules/csharpexec (Depends-on): Update.
47873         * lib/csharpexec.c: Update.
47874         * modules/javacomp (Depends-on): Update.
47875         * lib/javacomp.c: Update.
47876         * modules/javaexec (Depends-on): Update.
47877         * lib/javaexec.c: Update.
47878         * modules/mbscasestr (Depends-on): Update.
47879         * lib/mbscasestr.c: Update.
47880         * modules/mbsstr (Depends-on): Update.
47881         * lib/mbsstr.c: Update.
47882         * modules/setenv (Depends-on): Update.
47883         * lib/setenv.c: Update.
47884         * modules/strcasestr (Depends-on): Update.
47885         * lib/strcasestr.c: Update.
47886         * modules/striconveha (Depends-on): Update.
47887         * lib/striconveha.c: Update.
47888         * modules/relocatable-prog-wrapper (Files): Update.
47889         * lib/relocwrapper.c: Update.
47890         * build-aux/install-reloc: Update.
47891         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47892
47893 2007-06-08  Bruno Haible  <bruno@clisp.org>
47894
47895         Port to uClibc.
47896         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47897         * lib/fpurge.c (fpurge): Likewise.
47898         * lib/freading.c (freading): Likewise.
47899         * lib/fseeko.c (rpl_fseeko): Likewise.
47900         * lib/fseterr.c (fseterr): Likewise.
47901         * lib/fwriting.c (fwriting): Likewise.
47902         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47903
47904 2007-06-08  Bruno Haible  <bruno@clisp.org>
47905
47906         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47907         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47908         * modules/gettext (Files): Add m4/intlmacosx.m4.
47909
47910 2007-06-07  Bruno Haible  <bruno@clisp.org>
47911
47912         * modules/localename-tests: New file.
47913         * tests/test-localename.c: New file.
47914
47915         New module 'localename'.
47916         * lib/localename.h: New file.
47917         * lib/localename.c: New file, from GNU gettext.
47918         * m4/localename.m4: New file.
47919         * modules/localename: New file.
47920
47921 2007-06-07  Bruno Haible  <bruno@clisp.org>
47922
47923         Work around the lack of <wchar.h> on some builds of uClibc.
47924         * doc/headers/wchar.texi: Update.
47925         * lib/wchar_.h: Include <wchar.h> only if it exists.
47926         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47927         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47928         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47929         doesn't exist.
47930         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47931         * modules/mbfile (Depends-on): Add wchar.
47932         * modules/mbiter (Depends-on): Likewise.
47933         * modules/mbuiter (Depends-on): Likewise.
47934         Reported by Simon Josefsson.
47935
47936 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47937
47938         Work around problem reported by Steven M. Schweda in
47939         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47940         Tru64 5.1B with the Compaq compiler environment installed declares
47941         an 'isblank' function but does not define it in the C library.
47942         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47943         * lib/regex_internal.h (isblank): Likewise.
47944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47946
47947 2007-06-05  Bruno Haible  <bruno@clisp.org>
47948
47949         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47950         ia64.
47951         * modules/printf-safe: New file.
47952         * modules/fprintf-posix (Depends-on): Add printf-safe.
47953         * modules/printf-posix (Depends-on): Likewise.
47954         * modules/snprintf-posix (Depends-on): Likewise.
47955         * modules/sprintf-posix (Depends-on): Likewise.
47956         * modules/vasnprintf-posix (Depends-on): Likewise.
47957         * modules/vasprintf-posix (Depends-on): Likewise.
47958         * modules/vfprintf-posix (Depends-on): Likewise.
47959         * modules/vprintf-posix (Depends-on): Likewise.
47960         * modules/vsnprintf-posix (Depends-on): Likewise.
47961         * modules/vsprintf-posix (Depends-on): Likewise.
47962         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47963         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47964         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47965         "no" on i386, x86_64, ia64.
47966         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47967         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47968         on i386, x86_64, ia64.
47969         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47971         on i386, x86_64, ia64.
47972         * tests/test-vasnprintf-posix.c: Include float.h.
47973         (LDBL80_WORDS): New macro.
47974         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47975         on i386, x86_64, ia64.
47976         * tests/test-vasprintf-posix.c: Include float.h.
47977         (LDBL80_WORDS): New macro.
47978         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47979         on i386, x86_64, ia64.
47980         * tests/test-snprintf-posix.c: Include float.h.
47981         * tests/test-sprintf-posix.c: Likewise.
47982         * tests/test-vsnprintf-posix.c: Likewise.
47983         * tests/test-vsprintf-posix.c: Likewise.
47984
47985 2007-06-05  Bruno Haible  <bruno@clisp.org>
47986
47987         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47988         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47989         non-IEEE numbers on i386, x86_64, ia64.
47990         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47991         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47992         * tests/test-isnanl.h: Include float.h.
47993         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47994
47995 2007-06-05  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47998         also the %a / %A. Handle the %a / %A code before this extra handling.
47999
48000 2007-06-05  Bruno Haible  <bruno@clisp.org>
48001
48002         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48003         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48004
48005 2007-06-05  Bruno Haible  <bruno@clisp.org>
48006
48007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48008         typo in variable name.
48009
48010 2007-06-05  Eric Blake  <ebb9@byu.net>
48011
48012         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48013         Reported by Simon Josefsson.
48014
48015 2007-06-04  Bruno Haible  <bruno@clisp.org>
48016
48017         Avoid test failures on some PowerPC platforms.
48018         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48019         Define differently for PowerPC.
48020         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48021         Reported by Gary V. Vaughan <gary@gnu.org>.
48022
48023 2007-06-02  Bruno Haible  <bruno@clisp.org>
48024
48025         Fix test-stdint failure on FreeBSD/ia64.
48026         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48027         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48028         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48029         * doc/headers/stdint.texi: Update.
48030
48031 2007-06-01  Bruno Haible  <bruno@clisp.org>
48032
48033         * tests/test-binary-io.c (main): Pass a third argument to open().
48034         Reported by Gary V. Vaughan <gary@gnu.org>.
48035
48036 2007-06-01  Bruno Haible  <bruno@clisp.org>
48037
48038         * doc/functions/frexpl.texi: Update for mingw.
48039
48040 2007-06-01  Bruno Haible  <bruno@clisp.org>
48041
48042         * tests/test-lseek.c (main): Disable test of errno for invalid third
48043         argument.
48044         * doc/functions/lseek.texi: Update.
48045         Reported by Gary V. Vaughan <gary@gnu.org>.
48046
48047 2007-05-28  Bruno Haible  <bruno@clisp.org>
48048
48049         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48050
48051 2007-05-31  Eric Blake  <ebb9@byu.net>
48052
48053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48054         cross compiling.
48055
48056 2007-05-30  Eric Blake  <ebb9@byu.net>
48057         and Bruno Haible  <bruno@clisp.org>
48058
48059         Work around mingw test failures exposed by m4-1.4.9b.
48060         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48061         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48062         moment.
48063
48064 2007-05-30  Bruno Haible  <bruno@clisp.org>
48065
48066         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48067         assuming that they are closed. Needed on HP-UX 11.
48068
48069 2007-05-29  Bruno Haible  <bruno@clisp.org>
48070
48071         Fix a problem with #include_next.
48072         * lib/dirent_.h: Split the double-inclusion guard.
48073         * lib/fcntl_.h: Likewise.
48074         * lib/float_.h: Likewise.
48075         * lib/iconv_.h: Likewise.
48076         * lib/inttypes_.h: Likewise.
48077         * lib/locale_.h: Likewise.
48078         * lib/math_.h: Likewise.
48079         * lib/netinet_in_.h: Likewise.
48080         * lib/search_.h: Likewise.
48081         * lib/signal_.h: Likewise.
48082         * lib/stdint_.h: Likewise.
48083         * lib/stdio_.h: Likewise.
48084         * lib/stdlib_.h: Likewise.
48085         * lib/string_.h: Likewise.
48086         * lib/sys_select_.h: Likewise.
48087         * lib/sys_socket_.h: Likewise.
48088         * lib/sys_stat_.h: Likewise.
48089         * lib/sys_time_.h: Likewise.
48090         * lib/sysexits_.h: Likewise.
48091         * lib/time_.h: Likewise.
48092         * lib/unistd_.h: Likewise.
48093         * lib/wchar_.h: Likewise.
48094         * lib/wctype_.h: Likewise.
48095
48096 2007-05-29  Bruno Haible  <bruno@clisp.org>
48097
48098         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48099         for the moment.
48100
48101 2007-05-29  Bruno Haible  <bruno@clisp.org>
48102
48103         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48104         invocation.
48105         Reported by Eric Blake.
48106
48107 2007-05-29  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48110         compiling case.
48111
48112 2007-05-29  Eric Blake  <ebb9@byu.net>
48113             Bruno Haible  <bruno@clisp.org>
48114
48115         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48116         cross compiles.
48117
48118 2007-05-28  Eric Blake  <ebb9@byu.net>
48119
48120         * modules/closein-tests (test_closein_LDADD): Support test on
48121         cygwin with libtool.
48122
48123 2007-05-28  Bruno Haible  <bruno@clisp.org>
48124
48125         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48126         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48127         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48128         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48129         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48130         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48131         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48132         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48133         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48134
48135 2007-05-28  Eric Blake  <ebb9@byu.net>
48136
48137         Unconditionally include <config.h> in unit tests.
48138         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48139         * tests/test-allocsa.c, tests/test-arcfour.c,
48140         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48141         tests/test-array_list.c, tests/test-array_oset.c,
48142         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48143         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48144         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48145         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48146         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48147         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48148         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48149         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48150         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48151         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48152         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48153         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48154         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48155         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48156         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48157         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48158         test-md5.c, test-memmem.c, test-printf-posix.c,
48159         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48160         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48161         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48162         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48163         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48164         test-vasnprintf-posix2.c, test-vasnprintf.c,
48165         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48166         test-vfprintf-posix.c, test-vprintf-posix.c,
48167         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48168         test-xvasprintf.c: Likewise.
48169
48170 2007-05-28  Bruno Haible  <bruno@clisp.org>
48171
48172         * gnulib-tool (func_import): Remember the --with-tests command-line
48173         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48174         Reported by Eric Blake.
48175
48176 2007-05-28  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/ftell-tests: New file.
48179         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48180         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48181
48182         * lib/ftell.c: New file.
48183         * modules/ftell: New file.
48184         * m4/ftell.m4: New file.
48185         * doc/functions/ftell.texi: Update.
48186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48187         REPLACE_FTELL.
48188         * lib/stdio_.h (rpl_ftell): New declaration.
48189         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48190         REPLACE_FTELL.
48191
48192 2007-05-28  Eric Blake  <ebb9@byu.net>
48193
48194         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48195
48196 2007-05-28  Bruno Haible  <bruno@clisp.org>
48197
48198         * modules/fseek-tests: New file.
48199         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48200         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48201
48202         * lib/fseek.c: New file.
48203         * modules/fseek: New file.
48204         * m4/fseek.m4: New file.
48205         * doc/functions/fseek.texi: Update.
48206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48207         REPLACE_FSEEK.
48208         * lib/stdio_.h (rpl_fseek): New declaration.
48209         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48210         REPLACE_FSEEK.
48211
48212 2007-05-28  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/stdio_.h (fflush): More comments.
48215
48216 2007-05-28  Bruno Haible  <bruno@clisp.org>
48217
48218         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48219         runtime test.
48220
48221 2007-05-28  Eric Blake  <ebb9@byu.net>
48222
48223         Improve lseek module.
48224         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48225         * lib/unistd_.h (lseek): Scale back link warning message.
48226         * tests/test-lseek.c: Beef up test.
48227         * tests/test-lseek.sh: Exercise more facets of lseek.
48228         Reported by Bruno Haible.
48229
48230 2007-05-28  Bruno Haible  <bruno@clisp.org>
48231
48232         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48233         to define.
48234
48235 2007-05-27  Bruno Haible  <bruno@clisp.org>
48236
48237         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48238
48239 2007-05-27  Bruno Haible  <bruno@clisp.org>
48240
48241         * modules/openmp: New file.
48242         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48243         Noah Misch.
48244
48245 2007-05-26  Bruno Haible  <bruno@clisp.org>
48246
48247         * modules/chdir-long (Depends-on): Add fchdir.
48248         * modules/chdir-safer (Depends-on): Likewise.
48249         * modules/fts (Depends-on): Likewise.
48250         * modules/fts-lgpl (Depends-on): Likewise.
48251         * modules/openat (Depends-on): Likewise.
48252         * modules/savewd (Depends-on): Likewise.
48253
48254 2007-05-24  Eric Blake  <ebb9@byu.net>
48255
48256         Fix lseek on mingw.
48257         * modules/lseek: New module.
48258         * m4/lseek.m4: New file.
48259         * lib/lseek.c: New file.
48260         * modules/lseek-tests: New file.
48261         * tests/test-lseek.c: New file.
48262         * tests/test-lseek.sh: New file.
48263         * MODULES.html.sh: Document lseek module.
48264         * modules/fflush (Depends-on): Add lseek, fseeko.
48265         * modules/fseeko (Depends-on): Likewise.
48266         * modules/ftello (Depends-on): Likewise.
48267         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48268         broken.
48269         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48270         broken.
48271         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48272         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48273         * lib/ftello.c (rpl_ftello): Likewise.
48274         * tests/test-fseeko.c (main): Test this.
48275         * tests/test-fseeko.sh: Likewise.
48276         * tests/test-ftello.c (main): Likewise.
48277         * tests/test-ftello.sh: Likewise.
48278         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48279         implies replacing fseek.
48280         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48281         HAVE_FTELLO.
48282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48283         * modules/unistd (Makefile.am): Likewise.
48284         * lib/unistd_.h (lseek): Declare a replacement.
48285         * doc/functions/lseek.texi (lseek): Document this fix.
48286         * doc/functions/fseek.texi (fseek): Likewise.
48287         * doc/functions/ftell.texi (ftell): Likewise.
48288
48289 2007-05-24  Bruno Haible  <bruno@clisp.org>
48290
48291         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48292         in the printed representation of a NaN.
48293         * tests/test-vasprintf-posix.c (test_function): Likewise.
48294         * tests/test-snprintf-posix.h (test_function): Likewise.
48295         * tests/test-sprintf-posix.h (test_function): Likewise.
48296         Reported by Eric Blake.
48297
48298 2007-05-23  Eric Blake  <ebb9@byu.net>
48299
48300         Fix fseeko/ftello on cygwin 1.5.24.
48301         * doc/functions/fseeko.texi (fseeko): Document the fix.
48302         * doc/functions/ftello.texi (ftello): Document the fix.
48303         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48304         * doc/functions/stdout.text (stdout): New file.
48305         * doc/functions/stderr.text (stderr): New file.
48306         * doc/gnulib.texi (Function Substitutes): Use new files.
48307         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48308         prior to 1.7.0.
48309         * tests/test-ftello.c (main): Likewise for ftello.
48310         * tests/test-fseeko.sh: New file.
48311         * tests/test-ftello.sh: New file.
48312         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48313         with seekable stdin.
48314         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48316         (gl_REPLACE_FSEEKO): New macro.
48317         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48318         * modules/fseeko (Files): Distribute fseeko.c.
48319         * modules/ftello (Files): Distribute ftello.c.
48320         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48321         mode.
48322         * lib/ftello.c (rpl_ftello): New file.
48323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48324         fseeko, ftello.
48325         (gl_STDIN_LARGE_OFFSET): New macro.
48326         * modules/stdio (Makefile.am): Perform the replacement.
48327         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48328
48329 2007-05-23  Bruno Haible  <bruno@clisp.org>
48330
48331         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48332         GNULIB_POSIXCHECK is defined.
48333
48334 2007-05-21  Bruno Haible  <bruno@clisp.org>
48335
48336         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48337         Check also the output for NaN arguments. When cross-compiling, guess
48338         no on IRIX.
48339         * lib/vasnprintf.c: Update comments.
48340         * tests/test-vasnprintf-posix.c (strisnan): New function.
48341         (test_function): Use it.
48342         * tests/test-vasprintf-posix.c (strisnan): New function.
48343         (test_function): Use it.
48344         * tests/test-snprintf-posix.h (strisnan): New function.
48345         (test_function): Use it.
48346         * tests/test-sprintf-posix.h (strisnan): New function.
48347         (test_function): Use it.
48348         Reported by Eric Blake.
48349
48350 2007-05-20  Bruno Haible  <bruno@clisp.org>
48351
48352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48353         numbers that fails on BeOS.
48354         * doc/functions/frexpl.texi: Update.
48355
48356 2007-05-20  Jim Meyering  <jim@meyering.net>
48357
48358         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48359         forced upon us by glibc-2.6.
48360
48361 2007-05-20  Bruno Haible  <bruno@clisp.org>
48362
48363         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48364         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48365         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48366         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48367         NEED_PRINTF_INFINITE.
48368         (is_infinitel): New function.
48369         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48371         gl_PREREQ_VASNPRINTF_INFINITE.
48372         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48374         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48375         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48376         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48377         gl_PREREQ_VASNPRINTF_INFINITE.
48378         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48379         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48380         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48381         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48382         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48383         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48384         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48385         * doc/functions/fprintf.texi: Update.
48386         * doc/functions/printf.texi: Update.
48387         * doc/functions/snprintf.texi: Update.
48388         * doc/functions/sprintf.texi: Update.
48389         * doc/functions/vfprintf.texi: Update.
48390         * doc/functions/vprintf.texi: Update.
48391         * doc/functions/vsnprintf.texi: Update.
48392         * doc/functions/vsprintf.texi: Update.
48393
48394 2007-05-20  Bruno Haible  <bruno@clisp.org>
48395
48396         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48397         was not found in libc.
48398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48399
48400 2007-05-20  Bruno Haible  <bruno@clisp.org>
48401
48402         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48403         printed as "-nan" instead of "nan".
48404         * tests/test-vasprintf-posix.c (test_function): Likewise.
48405         * tests/test-snprintf-posix.h (test_function): Likewise.
48406         * tests/test-sprintf-posix.h (test_function): Likewise.
48407         Needed for HP-UX 11.
48408
48409 2007-05-20  Jim Meyering  <jim@meyering.net>
48410
48411         Fix buggy test for the fchownat-deref bug.
48412         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48413         symlink required for the run-test.  Without it, this test would
48414         always declare that fchownat doesn't work, and client code would
48415         unnecessarily use the replacement function with fixed libc.
48416         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48417         Reported by Greg Schafer.
48418
48419 2007-05-19  Bruno Haible  <bruno@clisp.org>
48420
48421         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48422         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48423         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48424         Needed for IRIX 6.5 and Solaris 2.5.1.
48425
48426 2007-05-19  Bruno Haible  <bruno@clisp.org>
48427
48428         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48429         (test_function): Skip tests involving -0.0 on platforms where
48430         -0.0 = 0.0.
48431         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48432         (test_function): Skip tests involving -0.0 on platforms where
48433         -0.0 = 0.0.
48434         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48435         (test_function): Skip tests involving -0.0 on platforms where
48436         -0.0 = 0.0.
48437         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48438         (test_function): Skip tests involving -0.0 on platforms where
48439         -0.0 = 0.0.
48440         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48441         tests.
48442         * tests/test-printf-posix.h (test_function): Likewise.
48443         * tests/test-printf-posix.output: Remove all -0.0 related results.
48444         Needed for IRIX 6.5.
48445
48446 2007-05-19  Bruno Haible  <bruno@clisp.org>
48447
48448         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48449         printed as "nan0x7fffffff" instead of "nan".
48450         * tests/test-vasprintf-posix.c (test_function): Likewise.
48451         * tests/test-snprintf-posix.h (test_function): Likewise.
48452         * tests/test-sprintf-posix.h (test_function): Likewise.
48453         * tests/test-fprintf-posix.h (NaN): Remove macro.
48454         (test_function): Remove all NaN related tests.
48455         * tests/test-printf-posix.h (NaN): Remove macro.
48456         (test_function): Remove all NaN related tests.
48457         * tests/test-printf-posix.output: Remove all NaN related results.
48458         Needed for IRIX 6.5.
48459
48460 2007-05-19  Bruno Haible  <bruno@clisp.org>
48461
48462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48464
48465 2007-05-19  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/float_.h: New file.
48468         * m4/float_h.m4: New file.
48469         * modules/float: New file.
48470         * modules/isnanl (Dependencies): Add float.
48471         * modules/isnanl-nolibm (Dependencies): Likewise.
48472         * modules/mathl (Dependencies): Likewise.
48473         * modules/printf-frexpl (Dependencies): Likewise.
48474         * modules/signbit (Dependencies): Likewise.
48475         * modules/vasnprintf (Dependencies): Likewise.
48476         * doc/headers/float.texi: Update.
48477
48478 2007-05-19  Jim Meyering  <jim@meyering.net>
48479
48480         * lib/utimens.c (gl_futimens): Rename from futimens,
48481         now that glibc-2.6 declares futimens.
48482         * lib/utimens.h: Likewise.
48483
48484 2007-05-19  Bruno Haible  <bruno@clisp.org>
48485
48486         Avoid test failures on mingw.
48487         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48488         * tests/test-printf-posix.sh: Likewise.
48489         * tests/test-vfprintf-posix.sh: Likewise.
48490         * tests/test-vprintf-posix.sh: Likewise.
48491
48492 2007-05-19  Bruno Haible  <bruno@clisp.org>
48493
48494         Fix *printf result for NaN, Inf, -0.0 on mingw.
48495         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48496         * lib/vasnprintf.c: Include math.h and isnan.h.
48497         (is_infinite_or_zero): New function.
48498         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48499         values in the %f, %F, %e, %E, %g, %G directives.
48500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48502         gl_PRINTF_INFINITE and test its result. Invoke
48503         gl_PREREQ_VASNPRINTF_INFINITE.
48504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48511         * doc/functions/fprintf.texi: Update.
48512         * doc/functions/printf.texi: Update.
48513         * doc/functions/snprintf.texi: Update.
48514         * doc/functions/sprintf.texi: Update.
48515         * doc/functions/vfprintf.texi: Update.
48516         * doc/functions/vprintf.texi: Update.
48517         * doc/functions/vsnprintf.texi: Update.
48518         * doc/functions/vsprintf.texi: Update.
48519
48520 2007-05-19  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48523         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48524         Instead of multiplying with 10^k, set extra_zeroes to k.
48525         (scale10_round_long_double): Remove function.
48526
48527 2007-05-18  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48530         introduced on 2007-05-06.
48531
48532 2007-05-18  Bruno Haible  <bruno@clisp.org>
48533
48534         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48535         %g directives.
48536         * tests/test-vasprintf-posix.c (test_function): Likewise.
48537         * tests/test-snprintf-posix.h (test_function): Likewise.
48538         * tests/test-sprintf-posix.h (test_function): Likewise.
48539
48540 2007-05-18  Bruno Haible  <bruno@clisp.org>
48541
48542         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48543         (strmatch): New function.
48544         (test_function): Test the %f directive on numbers of various exponents.
48545         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48546         (strmatch): New function.
48547         (test_function): Test the %f directive on numbers of various exponents.
48548         * tests/test-snprintf-posix.h (strmatch): New function.
48549         (test_function): Test the %f directive on numbers of various exponents.
48550         * tests/test-sprintf-posix.h (strmatch): New function.
48551         (test_function): Test the %f directive on numbers of various exponents.
48552         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48553         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48554         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48555         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48556
48557 2007-05-18  Bruno Haible  <bruno@clisp.org>
48558
48559         Add support for 'long double' number output.
48560         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48561         * lib/vasnprintf.c: Include math.h and float+.h.
48562         (mp_limb_t): New type.
48563         (GMP_LIMB_BITS): New macro.
48564         (mp_twolimb_t): New type.
48565         (GMP_TWOLIMB_BITS): New macro.
48566         (mpn_t): New type.
48567         (multiply, divide, convert_to_decimal, decode_long_double,
48568         scale10_round_long_double, scale10_round_decimal_long_double,
48569         floorlog10l): New functions.
48570         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48571         for the %f, %F, %e, %E, %g, %G directives.
48572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48574         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48575         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48583         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48584         * modules/snprintf-posix (Depends-on): Likewise.
48585         * modules/sprintf-posix (Depends-on): Likewise.
48586         * modules/vasnprintf-posix (Depends-on): Likewise.
48587         * modules/vasprintf-posix (Depends-on): Likewise.
48588         * modules/vfprintf-posix (Depends-on): Likewise.
48589         * modules/vsnprintf-posix (Depends-on): Likewise.
48590         * modules/vsprintf-posix (Depends-on): Likewise.
48591         * modules/vasnprintf (Files): Add lib/float+.h.
48592         * doc/functions/fprintf.texi: Update.
48593         * doc/functions/printf.texi: Update.
48594         * doc/functions/snprintf.texi: Update.
48595         * doc/functions/sprintf.texi: Update.
48596         * doc/functions/vfprintf.texi: Update.
48597         * doc/functions/vprintf.texi: Update.
48598         * doc/functions/vsnprintf.texi: Update.
48599         * doc/functions/vsprintf.texi: Update.
48600
48601 2007-05-18  Bruno Haible  <bruno@clisp.org>
48602
48603         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48604
48605 2007-05-18  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48608         for printing 64-bit integers. Needed for mingw.
48609
48610 2007-05-18  Bruno Haible  <bruno@clisp.org>
48611
48612         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48613         gl_FUNC_FREXPL_WORKS.
48614         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48615
48616 2007-05-18  Bruno Haible  <bruno@clisp.org>
48617
48618         * modules/frexpl-nolibm-tests: New file.
48619
48620         * modules/frexpl-nolibm: New file.
48621         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48622
48623 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48624
48625         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48626         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48627         GCC 4.2, which otherwise issues a lot of warnings.
48628         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48629         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48630         Likewise.
48631         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48632         * modules/iconv_open (iconv.h): Likewise.
48633         * modules/locale (locale.h): Likewise.
48634         * modules/netinet_in (netinet/in.h): Likewise.
48635         * modules/sys_select (sys_select.h): Likewise.
48636         * modules/sys_socket (sys/socket.h): Likewise.
48637         * modules/sys_stat (sys/stat.h): Likewise.
48638         * modules/sysexits (sysexits.h): Likewise.
48639         * modules/unistd (unistd.h): Likewise.
48640
48641 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48642
48643         * modules/closein-tests (Makefile.am): Distribute
48644         `test-closein.sh'.
48645
48646 2007-05-17  Bruno Haible  <bruno@clisp.org>
48647
48648         * tests/test-printf-posix.output: Renamed from
48649         tests/test-fprintf-posix.out.
48650         * modules/fprintf-posix-tests: Update.
48651         * modules/printf-posix-tests: Update.
48652         * modules/vfprintf-posix-tests: Update.
48653         * modules/vprintf-posix-tests: Update.
48654         * tests/test-fprintf-posix.sh: Update.
48655         * tests/test-printf-posix.sh: Update.
48656         * tests/test-vfprintf-posix.sh: Update.
48657         * tests/test-vprintf-posix.sh: Update.
48658         Reported by Ralf Wildenhues.
48659
48660 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48661
48662         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48663         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48664         GCC 4.2, which otherwise issues a lot of warnings.
48665         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48666         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48667         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48668         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48669         it should no longer be needed.
48670         * lib/string_.h: Likewise.
48671         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48672         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48673         * modules/inttypes (inttypes.h): Likewise.
48674         * modules/math (math.h): Likewise.
48675         * modules/search (search.h): Likewise.
48676         * modules/signal (signal.h): Likewise.
48677         * modules/stdint (stdint.h): Likewise.
48678         * modules/stdio (stdio.h): Likewise.
48679         * modules/stdlib (stdlib.h): Likewise.
48680         * modules/string (string.h): Likewise.
48681         * modules/sys_time (sys/time.h): Likewise.
48682         * modules/time (time.h): Likewise.
48683         * modules/wchar (wchar.h): Likewise.
48684         * modules/wctype (wtype.h): Likewise.
48685
48686 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48687
48688         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48689
48690 2007-05-13  Bruno Haible  <bruno@clisp.org>
48691
48692         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48693         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48694         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48695         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48696         (gl_PREREQ_STRTOK_R): Don't require it here.
48697
48698 2007-05-13  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48701         when used in C++ mode.
48702
48703 2007-05-12  Bruno Haible  <bruno@clisp.org>
48704
48705         * lib/linebuffer.h: Tweak doc.
48706         * lib/linebuffer.c: Likewise.
48707
48708 2007-05-12  James Youngman  <jay@gnu.org>
48709
48710         * lib/linebuffer.c (readlinebuffer_delim): New function,
48711         like readlinebuffer, but use a caller-specified delimiter.
48712         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48713         as the delimiter.
48714         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48715
48716 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48717
48718         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48719         * modules/openat (Files): Remove openat-die.c.
48720         (Depends-on): Add openat-die.
48721         * modules/openat-die: New module.
48722
48723 2007-05-06  Bruno Haible  <bruno@clisp.org>
48724
48725         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48726         Update with info about Cygwin.
48727         * doc/functions/fprintf.texi: Update.
48728         * doc/functions/printf.texi: Update.
48729         * doc/functions/snprintf.texi: Update.
48730         * doc/functions/sprintf.texi: Update.
48731         * doc/functions/vfprintf.texi: Update.
48732         * doc/functions/vprintf.texi: Update.
48733         * doc/functions/vsnprintf.texi: Update.
48734         * doc/functions/vsprintf.texi: Update.
48735         Reported by Eric Blake.
48736
48737 2007-05-06  Bruno Haible  <bruno@clisp.org>
48738
48739         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48740         padding ourselves for the floating-point directives.
48741         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48744         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48745         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48747         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48753         * tests/test-snprintf-posix.h (test_function): Also check the width
48754         and some flags in the %f directive.
48755         * tests/test-sprintf-posix.h (test_function): Likewise.
48756         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48757         * tests/test-vasprintf-posix.c (test_function): Likewise.
48758         * doc/functions/fprintf.texi: Update.
48759         * doc/functions/printf.texi: Update.
48760         * doc/functions/snprintf.texi: Update.
48761         * doc/functions/sprintf.texi: Update.
48762         * doc/functions/vfprintf.texi: Update.
48763         * doc/functions/vprintf.texi: Update.
48764         * doc/functions/vsnprintf.texi: Update.
48765         * doc/functions/vsprintf.texi: Update.
48766
48767 2007-05-06  Bruno Haible  <bruno@clisp.org>
48768
48769         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48770         pass the ' flag character to sprintf or snprintf.
48771         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48773         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48774         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48775         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48783         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48784         flag.
48785         * tests/test-sprintf-posix.h (test_function): Likewise.
48786         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48787         * tests/test-vasprintf-posix.c (test_function): Likewise.
48788         * doc/functions/fprintf.texi: Update.
48789         * doc/functions/printf.texi: Update.
48790         * doc/functions/snprintf.texi: Update.
48791         * doc/functions/sprintf.texi: Update.
48792         * doc/functions/vfprintf.texi: Update.
48793         * doc/functions/vprintf.texi: Update.
48794         * doc/functions/vsnprintf.texi: Update.
48795         * doc/functions/vsprintf.texi: Update.
48796
48797 2007-05-01  Bruno Haible  <bruno@clisp.org>
48798
48799         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48800
48801 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48802
48803         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48804         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48805
48806 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48807
48808         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48809         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48811
48812 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48813
48814         * lib/argp-help.c (struct hol_entry): New member `ord'.
48815         (HOL_ENTRY_PTRCMP): Use ord for comparison
48816         (hol_sort): Initialize ord.
48817
48818 2007-05-01  Bruno Haible  <bruno@clisp.org>
48819
48820         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48821         Reported by Eric Blake.
48822         * doc/gnulib.texi (Function Substitutes): Update.
48823
48824 2007-05-01  Bruno Haible  <bruno@clisp.org>
48825
48826         * doc/functions.texi: Remove file, now redundant through
48827         doc/functions/*.texi.
48828
48829 2007-05-01  Bruno Haible  <bruno@clisp.org>
48830
48831         * modules/argp (Depends-on): Add sleep.
48832
48833 2007-05-01  Bruno Haible  <bruno@clisp.org>
48834
48835         * modules/sleep-tests: New file.
48836         * tests/test-sleep.c: New file.
48837
48838         * modules/sleep: New file.
48839         * lib/sleep.c: New file.
48840         * m4/sleep.m4: New file.
48841         * lib/unistd_.h (sleep): New declaration.
48842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48843         HAVE_SLEEP.
48844         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48845         * doc/functions/sleep.texi: Document the sleep module.
48846
48847 2007-05-01  Bruno Haible  <bruno@clisp.org>
48848
48849         * lib/sigprocmask.h: Remove file.
48850         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48851         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48852         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48853         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48854         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48855         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48856         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48857         HAVE_SIGSET_T as a shell variable.
48858         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48859         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48860         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48861         (Depends-on): Add signal. Remove verify.
48862         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48863         (Include): Mention <signal.h> instead of sigprocmask.h.
48864         * NEWS: Mention the change.
48865         * lib/fatal-signal.c: Don't include sigprocmask.h.
48866
48867 2007-05-01  Bruno Haible  <bruno@clisp.org>
48868
48869         * modules/signal: New file.
48870         * lib/signal_.h: New file.
48871         * m4/signal_h.m4: New file.
48872
48873 2007-05-01  Bruno Haible  <bruno@clisp.org>
48874
48875         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48876         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48877         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48878         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48879
48880 2007-05-01  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48883         configure time.
48884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48885         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48886         * modules/sys_stat (Makefile.am): Substitute their values into
48887         sys/stat.h.
48888
48889 2007-05-01  Bruno Haible  <bruno@clisp.org>
48890
48891         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48892         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48893         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48894
48895 2007-05-01  Bruno Haible  <bruno@clisp.org>
48896
48897         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48898         'assert' module here.
48899
48900 2007-05-01  Bruno Haible  <bruno@clisp.org>
48901
48902         * doc/functions/*.texi: New files.
48903         * doc/functions/google-ranking.txt: New file.
48904         * doc/gnulib.texi (Function Substitutes): New chapter.
48905         (ctime, inet_ntoa): Remove sections.
48906         * doc/ctime.texi: Remove file.
48907         * doc/inet_ntoa.texi: Remove file.
48908         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48909         dependencies.
48910         (%.info): New rule, specifying a --reference-limit.
48911
48912 2007-05-01  Bruno Haible  <bruno@clisp.org>
48913
48914         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48915
48916 2007-05-01  Bruno Haible  <bruno@clisp.org>
48917
48918         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48919         the portability of 'mkdir' to mingw systems.
48920
48921 2007-05-01  Bruno Haible  <bruno@clisp.org>
48922
48923         * doc/headers/google-ranking.txt: New file.
48924
48925 2007-04-30  Eric Blake  <ebb9@byu.net>
48926
48927         Prefer fseeko to fseek.
48928         * modules/getpass (Depends-on): Add fseeko.
48929         * lib/getpass.c (getpass): Use fseeko, not fseek.
48930
48931 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48932
48933         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48934         assumes the sorting is stable, while most qsort implementations
48935         are not.  Use argument addresses to ensure they never compare as
48936         equal.
48937
48938         * tests/test-argp-2.sh (usage-indent test): Fix output
48939         (func_compare): Restore diff options
48940         * tests/test-argp.c: Restore #include "progname.h"
48941
48942 2007-04-29  Bruno Haible  <bruno@clisp.org>
48943
48944         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48945         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48946         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48948         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48949         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48950         (TESTS, check_PROGRAMS): Add test-snprintf.
48951         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48952         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48953         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48954         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48955         assertions that fail on HP-UX, OSF/1, or IRIX.
48956         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48957
48958 2007-04-29  Bruno Haible  <bruno@clisp.org>
48959
48960         * MODULES.html.sh (posix_functions): Remove 'contents'.
48961
48962 2007-04-29  Karl Berry  <karl@gnu.org>
48963
48964         * config/srclist.txt (gendocs_template_min): new entry.
48965
48966 2007-04-29  Bruno Haible  <bruno@clisp.org>
48967
48968         Work around fpurge bug on BSD systems.
48969         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48971         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48972         fpurge to rpl_fpurge if the system already has this function.
48973         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48974         the case where the system already has this function. Correct invariants
48975         on BSD systems.
48976         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48977         BSD systems.
48978
48979 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48980
48981         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48982         proposed by Sven Verdoolaege.
48983
48984         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48985         options.
48986         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48987         (usage and help tests): Update
48988
48989 2007-04-29  Bruno Haible  <bruno@clisp.org>
48990
48991         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48992         Print more information in case of failure. Disable a test on BeOS.
48993
48994 2007-04-29  Bruno Haible  <bruno@clisp.org>
48995
48996         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48997         This helps debugging on systems on which no gdb is available.
48998
48999 2007-04-29  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/freading.h: Improve comments.
49002         * lib/fwriting.h: Likewise.
49003         * tests/test-freading.c (main): Don't check freading immediately after
49004         repositioning. Needed for glibc.
49005
49006 2007-04-29  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/freading.c (freading): Trivial simplification.
49009
49010 2007-04-28  Bruno Haible  <bruno@clisp.org>
49011
49012         * tests/test-fwriting.c (main): Also test the interaction between
49013         fflush and fwriting.
49014         * modules/fwriting-tests (Depends-on): Add fflush.
49015
49016         * tests/test-freading.c (main): Also test the interaction between
49017         fflush and freading.
49018         * modules/freading-tests (Depends-on): Add fflush.
49019
49020 2007-04-28  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49023         fseeko and ftello.
49024         Suggested by Eric Blake.
49025
49026 2007-04-28  Jim Meyering  <jim@meyering.net>
49027
49028         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49029         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49030         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49031
49032 2007-04-27  Eric Blake  <ebb9@byu.net>
49033
49034         * doc/headers/assert.texi (assert.h): Document assert module use.
49035
49036 2007-04-27  Bruno Haible  <bruno@clisp.org>
49037
49038         * doc/headers/*.texi: New files.
49039         * doc/gnulib.texi (Header File Substitutes): New chapter.
49040         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49041         dependencies.
49042         (standards.info ,standards.html, standards.dvi): Update dependencies.
49043         (mostlyclean, clean): New targets.
49044
49045 2007-04-27  Bruno Haible  <bruno@clisp.org>
49046
49047         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49048         * modules/sysexits (Files, Makefile.am): Update.
49049
49050         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49051         * modules/sys_socket (Files, Makefile.am): Update.
49052
49053         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49054         * modules/sys_stat (Files, Makefile.am): Update.
49055
49056 2007-04-27  Eric Blake  <ebb9@byu.net>
49057
49058         * lib/freading.h: Improve comments.
49059         * lib/fwriting.h: Likewise.
49060         * lib/fflush.c: Likewise.
49061
49062         Fix closein for mingw.
49063         * modules/closein-tests: Add tests for closein.
49064         * tests/test-closein.c: New file.
49065         * tests/test-closein.sh: Likewise.
49066         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49067         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49068
49069 2007-04-27  Bruno Haible  <bruno@clisp.org>
49070
49071         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49072         version is < 6.
49073         * lib/math_.h [__DECC]: Likewise.
49074         * lib/stdio_.h [__DECC]: Likewise.
49075         * lib/stdlib_.h [__DECC]: Likewise.
49076         * lib/string_.h [__DECC]: Likewise.
49077         * lib/time_.h [__DECC]: Likewise.
49078         * lib/wchar_.h [__DECC]: Likewise.
49079         * lib/wctype_.h [__DECC]: Likewise.
49080
49081 2007-04-27  Bruno Haible  <bruno@clisp.org>
49082
49083         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49084
49085 2007-04-27  Bruno Haible  <bruno@clisp.org>
49086
49087         * lib/fflush.c: Add comments.
49088         * modules/fpurge-tests (Depends-on): Add fflush.
49089         * modules/freadable-tests (Depends-on): Likewise.
49090         * modules/fwritable-tests (Depends-on): Likewise.
49091
49092 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49093
49094         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49095         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49096         Report by Bruno Haible <bruno@clisp.org>.
49097
49098 2007-04-26  Eric Blake  <ebb9@byu.net>
49099
49100         Fix fflush on mingw.
49101         * modules/fflush (Depends-on): Add freading.
49102         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49103         but unread data.
49104
49105 2007-04-26  Eric Blake  <ebb9@byu.net>
49106         and Bruno Haible  <bruno@clisp.org>
49107
49108         Implement freading and fwriting.
49109         * lib/freading.c: New file.
49110         * lib/freading.h: Likewise.
49111         * m4/freading.m4: Likewise.
49112         * modules/freading: Likewise.
49113         * modules/freading-tests: Likewise.
49114         * tests/test-freading.c: Likewise.
49115         * lib/fwriting.c: New file.
49116         * lib/fwriting.h: Likewise.
49117         * m4/fwriting.m4: Likewise.
49118         * modules/fwriting: Likewise.
49119         * modules/fwriting-tests: Likewise.
49120         * tests/test-fwriting.c: Likewise.
49121         * MODULES.html.sh (File stream based Input/Output): Mention them.
49122
49123 2007-04-26  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49126         'long' when we assume it.
49127         Suggested by Eric Blake.
49128
49129 2007-04-26  Bruno Haible  <bruno@clisp.org>
49130
49131         Ensure fseeko, ftello are declared on glibc systems.
49132         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49133         * modules/fseeko (configure.ac-early): Likewise.
49134         * modules/ftello (configure.ac-early): Likewise.
49135         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49136         AC_FUNC_FSEEKO for this.
49137         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49138         (gl_CHECK_FSEEKO): Remove macro.
49139
49140 2007-04-26  Bruno Haible  <bruno@clisp.org>
49141
49142         * tests/test-fflush.c (main): Also check the ftell result after
49143         fflush and fseek/fseeko.
49144         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49145         file descriptor position cache in the stream.
49146         * lib/fseeko.c (rpl_fseeko): Likewise.
49147
49148 2007-04-26  Bruno Haible  <bruno@clisp.org>
49149
49150         * modules/fflush-tests (Depends-on): Add fseeko.
49151
49152 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49153             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49154
49155         * lib/argz_.h: ensure error_t definition is obtained in same
49156         mechanism system argz.h would have.
49157         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49158         argz facilities are known bad.  Err on the side of caution if
49159         cross-compiling.
49160
49161 2007-04-25  Eric Blake  <ebb9@byu.net>
49162
49163         * lib/fpurge.c (includes): Use stdlib.h for free.
49164         * tests/test-fflush.c (main): Also test fflush-fseeko.
49165
49166 2007-04-25  Bruno Haible  <bruno@clisp.org>
49167
49168         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49169         * lib/fseeko.c: New file.
49170         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49171         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49172         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49173         gl_FUNC_FSEEKO.
49174         (gl_FUNC_FSEEKO): Invoke it.
49175         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49176         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49177         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49178
49179 2007-04-25  Bruno Haible  <bruno@clisp.org>
49180
49181         * modules/fflush (Depends-on): Add ftello.
49182
49183 2007-04-25  Bruno Haible  <bruno@clisp.org>
49184
49185         * modules/ftello-tests: New file.
49186         * tests/test-ftello.c: New file.
49187
49188         * modules/ftello: New file.
49189         * m4/ftello.m4: New file.
49190         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49191         HAVE_FTELLO.
49192         * lib/stdio_.h (ftello): New declaration.
49193         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49194         HAVE_FTELLO.
49195
49196 2007-04-25  Bruno Haible  <bruno@clisp.org>
49197
49198         * modules/fseeko-tests: New file.
49199         * tests/test-fseeko.c: New file.
49200
49201         * modules/fseeko: New file.
49202         * m4/fseeko.m4: New file.
49203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49204         HAVE_FSEEKO.
49205         * lib/stdio_.h (fseeko): New declaration.
49206         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49207         HAVE_FSEEKO.
49208
49209 2007-04-25  Bruno Haible  <bruno@clisp.org>
49210
49211         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49212
49213 2007-04-25  Bruno Haible  <bruno@clisp.org>
49214
49215         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49216         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49217         * tests/test-unistd.c: Likewise.
49218         * tests/test-fcntl.c: Likewise.
49219
49220 2007-04-23  Eric Blake  <ebb9@byu.net>
49221
49222         * lib/fflush.c: Fix missing include.
49223         Reported by Bruno Haible.
49224
49225 2007-04-23  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49228         Reported by Eric Blake.
49229
49230 2007-04-23  Bruno Haible  <bruno@clisp.org>
49231
49232         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49233
49234 2007-04-23  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49237
49238 2007-04-23  Bruno Haible  <bruno@clisp.org>
49239
49240         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49241         Needed on HP-UX 11.
49242
49243 2007-04-16  Eric Blake  <ebb9@byu.net>
49244
49245         Make fflush rely on fpurge.
49246         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49247         open coding all variants.
49248         * modules/fflush (Depends-on): Add fpurge and unistd.
49249         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49250         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49251
49252         Fix --with-tests compilation on cygwin.
49253         * modules/argmatch-tests (Makefile.am): List gnulib library first
49254         in LDADD.
49255         * modules/argp-tests (Makefile.am): Likewise.
49256         * modules/array-list-tests (Makefile.am): Likewise.
49257         * modules/array-oset-tests (Makefile.am): Likewise.
49258         * modules/avltree-list-tests (Makefile.am): Likewise.
49259         * modules/avltree-oset-tests (Makefile.am): Likewise.
49260         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49261         * modules/carray-list-tests (Makefile.am): Likewise.
49262         * modules/dirname-tests (Makefile.am): Likewise.
49263         * modules/frexp-tests (Makefile.am): Likewise.
49264         * modules/isnanl-tests (Makefile.am): Likewise.
49265         * modules/linked-list-tests (Makefile.am): Likewise.
49266         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49267         * modules/lock-tests (Makefile.am): Likewise.
49268         * modules/rbtree-list-tests (Makefile.am): Likewise.
49269         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49270         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49271         * modules/tls-tests (Makefile.am): Likewise.
49272         * modules/tsearch-tests (Makefile.am): Likewise.
49273         * modules/xvasprintf-tests (Makefile.am): Likewise.
49274
49275         Fix fpurge for cygwin.
49276         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49277         value.
49278         * modules/fpurge-tests (Depends-on): Clean up trash.
49279
49280 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49281
49282         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49283
49284         * m4/autobuild.m4: Re-indent.
49285
49286 2007-04-13  Bruno Haible  <bruno@clisp.org>
49287
49288         * modules/fpurge-tests: New file.
49289         * tests/test-fpurge.c: New file.
49290
49291         * modules/fpurge: New file.
49292         * lib/fpurge.h: New file.
49293         * lib/fpurge.c: New file.
49294         * m4/fpurge.m4: New file.
49295
49296 2007-04-13  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/fbufmode-tests: New file.
49299         * tests/test-fbufmode.c: New file.
49300
49301         * modules/fbufmode: New file.
49302         * lib/fbufmode.h: New file.
49303         * lib/fbufmode.c: New file.
49304         * m4/fbufmode.m4: New file.
49305
49306 2007-04-13  Bruno Haible  <bruno@clisp.org>
49307
49308         * modules/fwritable-tests: New file.
49309         * tests/test-fwritable.c: New file.
49310
49311         * modules/fwritable: New file.
49312         * lib/fwritable.h: New file.
49313         * lib/fwritable.c: New file.
49314         * m4/fwritable.m4: New file.
49315
49316 2007-04-13  Bruno Haible  <bruno@clisp.org>
49317
49318         * modules/freadable-tests: New file.
49319         * tests/test-freadable.c: New file.
49320
49321         * modules/freadable: New file.
49322         * lib/freadable.h: New file.
49323         * lib/freadable.c: New file.
49324         * m4/freadable.m4: New file.
49325
49326 2007-04-13  Bruno Haible  <bruno@clisp.org>
49327
49328         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49329         MOSTLYCLEANFILES.
49330
49331 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49334         gzip bootstrap.conf to avoid dragging in i18n machinery.
49335         (gnulib_tool_option): Use it.
49336
49337 2007-04-13  Bruno Haible  <bruno@clisp.org>
49338
49339         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49340         %F directives.
49341         * tests/test-vasprintf-posix.c (test_function): Likewise.
49342         * tests/test-snprintf-posix.h (test_function): Likewise.
49343         * tests/test-sprintf-posix.h (test_function): Likewise.
49344         * tests/test-fprintf-posix.h (test_function): Likewise.
49345         * tests/test-printf-posix.h (test_function): Likewise.
49346         * tests/test-fprintf-posix.out: Likewise.
49347
49348 2007-04-13  Bruno Haible  <bruno@clisp.org>
49349
49350         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49351         * modules/tls-tests (configure.ac): Likewise.
49352         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49353
49354 2007-04-13  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/tls.c (glthread_tls_get): Fix return type.
49357         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49358
49359 2007-04-12  Eric Blake  <ebb9@byu.net>
49360
49361         * modules/gettime (Depends-on): Remove gettime.
49362         Reported by Dmitry V. Levin.
49363
49364 2007-04-12  Bruno Haible  <bruno@clisp.org>
49365
49366         * modules/fflush (Include): Mention <stdio.h>.
49367         * modules/strtoimax (Include): Mention <inttypes.h>.
49368         * modules/strtoumax (Include): Likewise.
49369
49370 2007-04-12  Eric Blake  <ebb9@byu.net>
49371
49372         * .cvsignore: New file.
49373         * .gitignore: Likewise.
49374
49375 2007-04-12  Bruno Haible  <bruno@clisp.org>
49376
49377         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49378         not before, since $(LDADD) often contains libgnu.a.
49379         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49380         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49381         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49382         Needed on Cygwin.
49383
49384 2007-04-12  Eric Blake  <ebb9@byu.net>
49385
49386         Work around glibc's failure to flush stdin on fclose.
49387         * lib/closein.c (close_stdin): Flush stdin before closing.
49388
49389         Work around glibc's failure to reset seekable stdin on exit.
49390         * modules/closein: New module.
49391         * lib/closein.c: New file.
49392         * lib/closein.h: Likewise.
49393         * m4/closein.m4: Likewise.
49394         * MODULES.html.sh (File stream based Input/Output): Document it.
49395
49396 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49397
49398         * gnulib-tool: Rename generated 'autobuild' script to
49399         'do-autobuild' in --create-megatestdir output.
49400
49401         * doc/gnulib.texi (Build robot for gnulib): Fix.
49402
49403 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49404
49405         * modules/sysexits (Depends-on): Add absolute-header.
49406
49407 2007-04-12  Eric Blake  <ebb9@byu.net>
49408
49409         No need to preserve errno on success.
49410         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49411         Reported by Bruno Haible.
49412
49413 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49414
49415         * MODULES.html.sh (Support for maintaining and releasing
49416         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49417
49418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49419
49420         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49421
49422 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49423
49424         * modules/autobuild: New module.
49425
49426         * m4/autobuild.m4: New file.
49427
49428 2007-04-11  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49431         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49435         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49436         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49438         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49439         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49441         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49442         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49444         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49445         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49446         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49447         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49448         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49450         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49451         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49452         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49453         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49454         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49456         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49457         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49458         Reported by Eric Blake.
49459
49460 2007-04-11  Bruno Haible  <bruno@clisp.org>
49461
49462         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49463
49464 2007-04-10  Bruno Haible  <bruno@clisp.org>
49465
49466         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49467         for NaN and Infinity. Needed on FreeBSD 6.1.
49468         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49469         regarding results for "%010a" of Infinity and NaN.
49470         * tests/test-vasprintf-posix.c (test_function): Likewise.
49471         * tests/test-snprintf-posix.h (test_function): Likewise.
49472         * tests/test-sprintf-posix.h (test_function): Likewise.
49473         * tests/test-fprintf-posix.h (test_function): Likewise.
49474         * tests/test-printf-posix.h (test_function): Likewise.
49475         * tests/test-fprintf-posix.out: Likewise.
49476
49477 2007-04-10  Bruno Haible  <bruno@clisp.org>
49478
49479         * modules/locale-tests: New file.
49480         * tests/test-locale.c: New file.
49481
49482         * modules/locale: New file.
49483         * lib/locale_.h: New file.
49484         * m4/locale_h.m4: New file.
49485
49486 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49487             Bruno Haible  <bruno@clisp.org>
49488
49489         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49490         be determined, test for availability of the copysignf, copysign,
49491         copysignl functions.
49492         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49493         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49494         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49495
49496 2007-04-09  Eric Blake  <ebb9@byu.net>
49497
49498         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49499         * modules/stdio (Makefile.am): Support fflush.
49500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49501         * modules/fflush: New file.
49502         * lib/fflush.c: Likewise.
49503         * m4/fflush.m4: Likewise.
49504         * modules/fflush-tests: New test.
49505         * tests/test-fflush.c: Likewise.
49506         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49507
49508 2007-04-06  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49511         (VASNPRINTF): Use signbit for faster determination whether to print a
49512         minus sign.
49513         * modules/vasnprintf (Files): Remove lib/float+.h.
49514         * modules/fprintf-posix (Depends-on): Add signbit.
49515         * modules/snprintf-posix (Depends-on): Likewise.
49516         * modules/sprintf-posix (Depends-on): Likewise.
49517         * modules/vasnprintf-posix (Depends-on): Likewise.
49518         * modules/vasprintf-posix (Depends-on): Likewise.
49519         * modules/vfprintf-posix (Depends-on): Likewise.
49520         * modules/vsnprintf-posix (Depends-on): Likewise.
49521         * modules/vsprintf-posix (Depends-on): Likewise.
49522
49523 2007-04-06  Bruno Haible  <bruno@clisp.org>
49524
49525         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49526         * tests/test-frexpl.c (main): Likewise.
49527         * tests/test-ldexpl.c (main): Likewise.
49528         * modules/frexp-tests (Depends-on): Add signbit.
49529         * modules/frexpl-tests (Depdends-on): Likewise.
49530         * modules/ldexpl-tests (Depdends-on): Likewise.
49531
49532 2007-04-06  Bruno Haible  <bruno@clisp.org>
49533
49534         * modules/signbit-tests: New file.
49535         * tests/test-signbit.c: New file.
49536
49537         * modules/signbit: New file.
49538         * lib/signbitf.c: New file.
49539         * lib/signbitd.c: New file.
49540         * lib/signbitl.c: New file.
49541         * m4/signbit.m4: New file.
49542         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49543         (signbit): New macro.
49544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49545         REPLACE_SIGNBIT.
49546         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49547         REPLACE_FREXPL into math.h.
49548
49549 2007-04-06  Bruno Haible  <bruno@clisp.org>
49550
49551         * modules/isnanf-nolibm-tests: New file.
49552         * tests/test-isnanf.c: New file.
49553
49554         * modules/isnanf-nolibm: New file.
49555         * lib/isnanf.h: New file.
49556         * lib/isnanf.c: New file.
49557         * lib/isnan.c: Consider the USE_FLOAT macro.
49558         * m4/isnanf.m4: New file.
49559
49560 2007-04-06  Bruno Haible  <bruno@clisp.org>
49561
49562         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49563         (Link): New section.
49564
49565         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49566
49567 2007-04-06  Bruno Haible  <bruno@clisp.org>
49568
49569         Assume the 'long double' type.
49570         * m4/longdouble.m4: Remove file.
49571         * config/srclist.txt: Don't mention longdouble.m4.
49572         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49573         * lib/float+.h: Likewise.
49574         * lib/frexp.c: Likewise.
49575         * lib/printf-args.h: Likewise.
49576         * lib/printf-args.c: Likewise.
49577         * lib/printf-frexp.c: Likewise.
49578         * lib/printf-parse.c: Likewise.
49579         * lib/vasnprintf.c: Likewise.
49580         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49581         * m4/intl.m4: Likewise.
49582         * m4/isnanl.m4: Likewise.
49583         * m4/printf.m4: Likewise.
49584         * m4/printf-frexpl.m4: Likewise.
49585         * m4/vasnprintf.m4: Likewise.
49586         * modules/allocsa (Files): Remove m4/longdouble.m4.
49587         * modules/gettext (Files): Likewise.
49588         * modules/relocatable-prog-wrapper (Files): Likewise.
49589         * modules/vasnprintf (Files): Likewise.
49590         * modules/isnanl (Files): Likewise.
49591         (Include): Simplify.
49592         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49593         (Include): Simplify.
49594         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49595         (Include): Simplify.
49596         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49597         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49598         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49599         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49600         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49601         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49602         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49603         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49604         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49605         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49606         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49607         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49608         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49609         * tests/test-isnanl.c: Likewise.
49610         * tests/test-snprintf-posix.h: Likewise.
49611         * tests/test-sprintf-posix.h: Likewise.
49612         * tests/test-vasnprintf-posix.c: Likewise.
49613         * tests/test-vasnprintf-posix2.c: Likewise.
49614         * tests/test-vasprintf-posix.c: Likewise.
49615
49616 2007-04-06  Bruno Haible  <bruno@clisp.org>
49617
49618         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49619         * lib/math_.h [__DECC]: Include the overridden include file through
49620         #include_next, outside the double-inclusion guard.
49621         * lib/stdio_.h [__DECC]: Likewise.
49622         * lib/stdlib_.h [__DECC]: Likewise.
49623         * lib/string_.h [__DECC]: Likewise.
49624         * lib/time_.h [__DECC]: Likewise.
49625         * lib/wchar_.h [__DECC]: Likewise.
49626         * lib/wctype_.h [__DECC]: Likewise.
49627         * lib/inttypes_.h [__DECC]: Likewise.
49628         Reported by Albert Chin <china@thewrittenword.com> in
49629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49630
49631 2007-04-04  Eric Blake  <ebb9@byu.net>
49632
49633         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49634         1.5.x.
49635
49636 2007-04-04  Bruno Haible  <bruno@clisp.org>
49637
49638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49639         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49640
49641 2007-04-04  Bruno Haible  <bruno@clisp.org>
49642
49643         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49644         results for "%010a" of Infinity and NaN.
49645         * tests/test-vasprintf-posix.c (test_function): Likewise.
49646         * tests/test-snprintf-posix.h (test_function): Likewise.
49647         * tests/test-sprintf-posix.h (test_function): Likewise.
49648         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49649         * tests/test-printf-posix.h (test_function): Likewise.
49650         * tests/test-fprintf-posix.out: Update.
49651         Needed for FreeBSD 6.1.
49652
49653 2007-04-04  Bruno Haible  <bruno@clisp.org>
49654
49655         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49656         directly used by the gnulib modules nor by gnulib-tool.
49657
49658 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49659
49660         * DEPENDENCIES: Give overall description of version dependency
49661         desirability.  Use more-typical names for apps.
49662         Add shell, coreutils, diffutils, grep, tar, gzip.
49663
49664 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49665
49666         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49667
49668 2007-04-04  Karl Berry  <karl@gnu.org>
49669
49670         * MODULES.html.sh (func_module): missing '.
49671
49672 2007-04-03  Bruno Haible  <bruno@clisp.org>
49673
49674         * modules/argmatch-tests (Makefile.am): New variable
49675         test_argmatch_LDADD.
49676         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49677         * modules/array-list-tests (Makefile.am): New variable
49678         test_array_list_LDADD.
49679         * modules/array-oset-tests (Makefile.am): New variable
49680         test_array_oset_LDADD.
49681         * modules/avltree-list-tests (Makefile.am): New variable
49682         test_avltree_list_LDADD.
49683         * modules/avltree-oset-tests (Makefile.am): New variable
49684         test_avltree_oset_LDADD.
49685         * modules/avltreehash-list-tests (Makefile.am): New variable
49686         test_avltreehash_list_LDADD.
49687         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49688         test_canonicalize_lgpl_LDADD.
49689         * modules/carray-list-tests (Makefile.am): New variable
49690         test_carray_list_LDADD.
49691         * modules/dirname-tests (Makefile.am): New variable
49692         test_dirname_LDADD.
49693         * modules/linked-list-tests (Makefile.am): New variable
49694         test_linked_list_LDADD.
49695         * modules/linkedhash-list-tests (Makefile.am): New variable
49696         test_linkedhash_list_LDADD.
49697         * modules/rbtree-list-tests (Makefile.am): New variable
49698         test_rbtree_list_LDADD.
49699         * modules/rbtree-oset-tests (Makefile.am): New variable
49700         test_rbtree_oset_LDADD.
49701         * modules/rbtreehash-list-tests (Makefile.am): New variable
49702         test_rbtreehash_list_LDADD.
49703         * modules/xvasprintf-tests (Makefile.am): New variable
49704         test_xvasprintf_LDADD.
49705         Reported by Eric Blake.
49706
49707 2007-04-03  Eric Blake  <ebb9@byu.net>
49708
49709         * DEPENDENCIES: Weaken m4 requirements.
49710
49711 2007-04-03  Bruno Haible  <bruno@clisp.org>
49712
49713         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49714         * modules/isnanl-tests (configure.ac): Likewise.
49715
49716 2007-04-03  Ben Pfaff  <blp@gnu.org>
49717
49718         * modules/iconv_open: Add $(srcdir)/ to source directory
49719         references in Makefile fragments that call gperf, to fix VPATH
49720         builds.
49721
49722 2007-04-03  Bruno Haible  <bruno@clisp.org>
49723
49724         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49725         * lib/ldexpl.c: Undo last change.
49726
49727 2007-04-03  Bruno Haible  <bruno@clisp.org>
49728
49729         * modules/printf-frexpl (Depends-on): Undo last change.
49730         (Files): Add m4/ldexpl.m4.
49731
49732 2007-04-03  Bruno Haible  <bruno@clisp.org>
49733
49734         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49735         * modules/isnanl (Link): New section.
49736
49737         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49738         * modules/frexp (Link): New section.
49739
49740         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49741         * modules/frexpl (Link): New section.
49742
49743         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49744         * modules/ldexpl (Link): New section.
49745
49746 2007-04-03  Bruno Haible  <bruno@clisp.org>
49747
49748         * modules/TEMPLATE-EXTENDED: New file.
49749         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49750
49751 2007-04-03  Bruno Haible  <bruno@clisp.org>
49752
49753         * DEPENDENCIES: New file.
49754         Suggested by Simon Josefsson.
49755
49756 2007-04-03  Bruno Haible  <bruno@clisp.org>
49757
49758         * doc/gnulib.texi: Escape @.
49759
49760 2007-04-03  James Youngman  <jay@gnu.org>
49761         and Paul Eggert  <eggert@cs.ucla.edu>
49762
49763         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49764         birthtime on all systems that have birthtime, not just those which
49765         use st_birthtimensec rather than st_birthtim.  Putting zero in
49766         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49767         that the birth time is not available for files on an NFS mount.
49768
49769 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49770
49771         * modules/memxor: Move back from crypto/, suggested by Bruno.
49772         * modules/crypto/hmac-sha1: Fix memxor dependency.
49773
49774         * modules/crypto/gc: Moved from ../.
49775
49776 2007-04-02  Eric Blake  <ebb9@byu.net>
49777
49778         * lib/ldexpl.c (includes): Avoid libm.
49779
49780         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49781
49782 2007-04-02  Bruno Haible  <bruno@clisp.org>
49783
49784         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49785         on IRIX.
49786
49787 2007-04-02  Bruno Haible  <bruno@clisp.org>
49788
49789         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49790         x86 or x86_64 platforms running MacOS X.
49791         Reported by Ryan Schmidt <@ryandesign.com>.
49792
49793 2007-04-02  Bruno Haible  <bruno@clisp.org>
49794
49795         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49796         i386.
49797
49798 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49799
49800         * modules/crypto/arcfour: Moved from ../.
49801         * modules/crypto/arcfour-tests: Moved from ../.
49802         * modules/crypto/arctwo: Moved from ../.
49803         * modules/crypto/arctwo-tests: Moved from ../.
49804         * modules/crypto/des: Moved from ../.
49805         * modules/crypto/des-tests: Moved from ../.
49806         * modules/crypto/gc-arcfour: Moved from ../.
49807         * modules/crypto/gc-arcfour-tests: Moved from ../.
49808         * modules/crypto/gc-arctwo: Moved from ../.
49809         * modules/crypto/gc-arctwo-tests: Moved from ../.
49810         * modules/crypto/gc-des: Moved from ../.
49811         * modules/crypto/gc-des-tests: Moved from ../.
49812         * modules/crypto/gc-hmac-md5: Moved from ../.
49813         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49814         * modules/crypto/gc-hmac-sha1: Moved from ../.
49815         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49816         * modules/crypto/gc-md2: Moved from ../.
49817         * modules/crypto/gc-md2-tests: Moved from ../.
49818         * modules/crypto/gc-md4: Moved from ../.
49819         * modules/crypto/gc-md4-tests: Moved from ../.
49820         * modules/crypto/gc-md5: Moved from ../.
49821         * modules/crypto/gc-md5-tests: Moved from ../.
49822         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49823         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49824         * modules/crypto/gc-random: Moved from ../.
49825         * modules/crypto/gc-rijndael: Moved from ../.
49826         * modules/crypto/gc-rijndael-tests: Moved from ../.
49827         * modules/crypto/gc-sha1: Moved from ../.
49828         * modules/crypto/gc-sha1-tests: Moved from ../.
49829         * modules/crypto/gc-tests: Moved from ../.
49830         * modules/crypto/hmac-md5: Moved from ../.
49831         * modules/crypto/hmac-md5-tests: Moved from ../.
49832         * modules/crypto/hmac-sha1: Moved from ../.
49833         * modules/crypto/hmac-sha1-tests: Moved from ../.
49834         * modules/crypto/md2: Moved from ../.
49835         * modules/crypto/md2-tests: Moved from ../.
49836         * modules/crypto/md4: Moved from ../.
49837         * modules/crypto/md4-tests: Moved from ../.
49838         * modules/crypto/md5: Moved from ../.
49839         * modules/crypto/md5-tests: Moved from ../.
49840         * modules/crypto/memxor: Moved from ../.
49841         * modules/crypto/rijndael: Moved from ../.
49842         * modules/crypto/rijndael-tests: Moved from ../.
49843         * modules/crypto/sha1: Moved from ../.
49844
49845 2007-03-30  James Youngman  <jay@gnu.org>
49846
49847         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49848         rename() to change the ctime of a file (because ctime is unaffected
49849         by rename on jfs2 on AIX 5.1).
49850         (main): Start by doing cleanup, in case a previous run failed leaving
49851         test files behind.
49852
49853 2007-03-31  Bruno Haible  <bruno@clisp.org>
49854
49855         Support old proprietary implementations of iconv.
49856         * modules/iconv_open: New file.
49857         * lib/iconv_.h: New file.
49858         * m4/iconv_h.m4: New file.
49859         * lib/iconv_open.c: New file.
49860         * lib/iconv_open-aix.gperf: New file.
49861         * lib/iconv_open-hpux.gperf: New file.
49862         * lib/iconv_open-irix.gperf: New file.
49863         * lib/iconv_open-osf.gperf: New file.
49864         * m4/iconv_open.m4: New file.
49865         * modules/linebreak (Depends-on): Add iconv_open.
49866         * modules/striconv (Depends-on): Likewise.
49867         * modules/striconveh (Depends-on): Likewise.
49868         * modules/unicodeio (Depends-on): Likewise.
49869         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49870         (iconv_t)(-1).
49871         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49872         conversion if cd is (iconv_t)(-1).
49873         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49874         is not possible.
49875
49876 2007-03-31  Bruno Haible  <bruno@clisp.org>
49877
49878         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49879         work on Solaris either. Protect also second use of "autodetect_jp".
49880
49881 2007-03-31  Bruno Haible  <bruno@clisp.org>
49882
49883         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49884         the function is not present.
49885
49886 2007-03-31  Bruno Haible  <bruno@clisp.org>
49887
49888         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49889         the function is not present.
49890
49891 2007-03-31  Bruno Haible  <bruno@clisp.org>
49892
49893         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49894         a bug in HP-UX iconv_open().
49895
49896 2007-03-31  Bruno Haible  <bruno@clisp.org>
49897
49898         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49899         (Mathematics <math.h>): New section, add fpieee.
49900         (Input/output <stdio.h>): Add fseterr.
49901         (Mathematics <math.h>): New section, add printf-frexp.
49902         (Container data structures): Add sublist.
49903         (Core language properties): Add fpucw, inline.
49904         (Functions for greatest-width integer types <inttypes.h>): Add
49905         imaxabs, imaxdiv, inttypes.
49906         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49907         isnanl-nolibm, ldexp.
49908         (Mathematics <math.h>): New section, add printf-frexpl.
49909         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49910         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49911         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49912         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49913         (Unicode string functions): Add unistr/u*-mbtoucr.
49914         (Java): Add javacomp-script, javaexec-script.
49915         (C#): Add csharpcomp-script, csharpexec-script.
49916         (Support for building libraries and executables): Add havelib,
49917         relocatable-*.
49918         (Support for maintaining and releasing projects): Renamed from
49919         'Support for maintaining and release projects'. Add announce-gen.
49920
49921 2007-03-31  Bruno Haible  <bruno@clisp.org>
49922
49923         * README: Talk primarily about git.
49924         (git and CVS): Renamed from CVS.
49925         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49926         gnulib is available through git.
49927         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49928
49929 2007-03-30  Bruno Haible  <bruno@clisp.org>
49930
49931         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49932         * lib/poll_.h: Likewise.
49933         * lib/stat_.h: Likewise.
49934         * lib/sys_time_.h: Likewise.
49935         * lib/sysexit_.h: Likewise.
49936         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49937         * lib/stdbool_.h: Likewise.
49938         * lib/byteswap_.h: Add double-inclusion guard.
49939
49940 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49941
49942         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49943
49944 2007-03-30  Karl Berry  <karl@gnu.org>
49945
49946         * config/srclist-update: double space after USA in the license
49947         substitution, since that's how it's usually (?) written.
49948
49949 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49952         reported by Bruno Haible.
49953
49954 2007-03-29  Bruno Haible  <bruno@clisp.org>
49955
49956         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49957         a bug in AIX iconv().
49958
49959 2007-03-29  Bruno Haible  <bruno@clisp.org>
49960
49961         * modules/ldexpl-tests: New file.
49962         * tests/test-ldexpl.c: New file.
49963
49964 2007-03-29  Bruno Haible  <bruno@clisp.org>
49965
49966         * lib/ldexpl.c: Include fpucw.h.
49967         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49968         multiplication.
49969         * modules/ldexpl (Depends-on): Add fpucw.
49970
49971 2007-03-29  Bruno Haible  <bruno@clisp.org>
49972
49973         * modules/ldexpl: New file.
49974         * m4/ldexpl.m4: New file.
49975         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49976         set.
49977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49978         REPLACE_LDEXPL.
49979         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49980         REPLACE_LDEXPL.
49981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49982         gl_FUNC_LDEXPL_WORKS.
49983         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49984         * modules/mathl (Files): Remove lib/ldexpl.c.
49985         (Depends-on): Add ldexpl.
49986
49987 2007-03-29  Bruno Haible  <bruno@clisp.org>
49988
49989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49990
49991 2007-03-29  Bruno Haible  <bruno@clisp.org>
49992
49993         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49994         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49995         and possibly also HP-UX.
49996         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49997         work on AIX, IRIX, HP-UX, OSF/1.
49998         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49999         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50000         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50001         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50002         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50003         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50004
50005 2007-03-29  Bruno Haible  <bruno@clisp.org>
50006
50007         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50008
50009 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50010
50011         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50012         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50013
50014 2007-03-29  Eric Blake  <ebb9@byu.net>
50015
50016         * lib/acl-internal.h: Remove redundant include.
50017         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50018         Cygwin when a file is locked.
50019
50020 2007-03-29  Bruno Haible  <bruno@clisp.org>
50021
50022         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50023         file.
50024         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50025
50026 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50027
50028         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50029         try to remove a parent directory if the child couldn't be removed
50030         (except for the first rmdir, which could fail because the child
50031         doesn't exist).  Problem reported by Jeff Blaine in
50032         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50033
50034 2007-03-28  Bruno Haible  <bruno@clisp.org>
50035
50036         * lib/striconveh.c (utf8conv_carefully): New function.
50037         (mem_cd_iconveh_internal): Invoke it.
50038
50039 2007-03-28  Bruno Haible  <bruno@clisp.org>
50040
50041         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50042         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50043         input.
50044         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50045         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50046         unistr/u8-uctomb.
50047
50048 2007-03-28  Bruno Haible  <bruno@clisp.org>
50049
50050         * modules/unistr/u8-mbtoucr: New file.
50051         * lib/unistr/u8-mbtoucr.c: New file.
50052         * modules/unistr/u16-mbtoucr: New file.
50053         * lib/unistr/u16-mbtoucr.c: New file.
50054         * modules/unistr/u16-mbtoucr: New file.
50055         * lib/unistr/u16-mbtoucr.c: New file.
50056         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50057
50058 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50059             Bruno Haible  <bruno@clisp.org>
50060
50061         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50062         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50063         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50064
50065         * m4/stdio_h.m4: Add stubs for vasprintf too.
50066
50067         * modules/stdio: Support vasprintf in sed command.
50068
50069         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50070         vasprintf.h.  Add stdio module indicator.
50071
50072         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50073         vasprintf.h.
50074
50075         * lib/vasprintf.h: File removed.
50076
50077         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50078         * lib/vasprintf.c: Ditto.
50079         * lib/xvasprintf.c: Ditto.
50080         * tests/test-vasprintf-posix.c: Ditto.
50081         * tests/test-vasprintf.c: Ditto.
50082
50083 2007-03-27  Bruno Haible  <bruno@clisp.org>
50084
50085         Make vasnprintf multithread-safe.
50086         * lib/vasnprintf.c (decimal_point_char): New function.
50087         (VASNPRINTF): Use it.
50088         Suggested by Simon Josefsson.
50089
50090 2007-03-27  Eric Blake  <ebb9@byu.net>
50091
50092         Support sub-second birthtime on cygwin.
50093         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50094         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50095         (get_stat_birthtime): Also work with st_birthtim.
50096
50097 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50100         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50101         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50102         (get_stat_birthtime_ns): Simplify compile-time tests.
50103         (get_stat_birthtime): Change the API to look like
50104         get_stat_mtime etc., except return a negative tv_nsec on error.
50105         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50106         Don't check for "spare" fields.
50107         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50108         or for struct stat.st_birthtime, as these tests aren't used.
50109         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50110
50111 2007-03-27  Bruno Haible  <bruno@clisp.org>
50112
50113         * lib/stat-time.h: Include <sys/stat.h>.
50114
50115 2007-03-27  James Youngman  <jay@gnu.org>
50116
50117         * lib/stat-time.h (get_stat_birthtime): New function for
50118           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50119         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50120           and its variants.
50121         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50122         * modules/stat-time-test: New file.
50123         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50124
50125 2007-03-26  Bruno Haible  <bruno@clisp.org>
50126
50127         Better support of signalling NaNs.
50128         * lib/atanl.c: Include isnanl.h.
50129         (atanl): Perform test for NaN at the beginning of the function and
50130         through a call to isnanl.
50131         * lib/cosl.c: Include isnanl.h.
50132         (cosl): Perform test for NaN at the beginning of the function and
50133         through a call to isnanl.
50134         * lib/ldexpl.c: Include isnanl.h.
50135         (ldexpl): Perform test for NaN through a call to isnanl.
50136         * lib/logl.c: Include isnanl.h.
50137         (logl): Perform test for NaN at the beginning of the function and
50138         through a call to isnanl.
50139         * lib/sinl.c: Include isnanl.h.
50140         (sinl): Perform test for NaN at the beginning of the function and
50141         through a call to isnanl.
50142         * lib/sqrtl.c: Include isnanl.h.
50143         (sqrtl): Perform test for NaN at the beginning of the function and
50144         through a call to isnanl.
50145         * lib/tanl.c: Include isnanl.h.
50146         (tanl): Perform test for NaN at the beginning of the function and
50147         through a call to isnanl.
50148         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50149         * modules/mathl (Depends-on): Add isnanl.
50150
50151 2007-03-26  Eric Blake  <ebb9@byu.net>
50152
50153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50154         regression in logic sense of previous patch.
50155
50156 2007-03-26  Bruno Haible  <bruno@clisp.org>
50157
50158         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50159         unportable shell command "if ! ...".
50160         Reported by Ralf Wildenhues.
50161
50162 2007-03-25  Bruno Haible  <bruno@clisp.org>
50163
50164         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50165         <sysexits.h> file, and only add EX_CONFIG.
50166         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50167         absolute file name and whether it is sufficient. Substitute also
50168         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50169         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50170         ABSOLUTE_SYSEXITS_H into sysexits.h.
50171
50172 2007-03-25  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50175         hints is NULL.
50176
50177 2007-03-25  Bruno Haible  <bruno@clisp.org>
50178
50179         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50180         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50181
50182 2007-03-25  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/vasnprintf.c: Include langinfo.h.
50185         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50186         multithread-safe.
50187         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50196         Reported by Simon Josefsson.
50197
50198 2007-03-25  Bruno Haible  <bruno@clisp.org>
50199
50200         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50201         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50202         * modules/vasnprintf (Depends-on): Add stdint.
50203
50204 2007-03-25  Bruno Haible  <bruno@clisp.org>
50205
50206         * modules/fpieee: New file.
50207         * m4/fpieee.m4: New file.
50208         * modules/isnan-nolibm (Depends-on): Add fpieee.
50209         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50210         * modules/isnanl (Depends-on): Add fpieee.
50211
50212 2007-03-25  Bruno Haible  <bruno@clisp.org>
50213
50214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50215
50216 2007-03-25  Bruno Haible  <bruno@clisp.org>
50217
50218         Avoid test failures on IRIX 6.5.
50219         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50220         (main): Use it.
50221         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50222         macros.
50223         (main): Use them.
50224
50225 2007-03-25  Bruno Haible  <bruno@clisp.org>
50226
50227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50228         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50229         exists but doesn't work.
50230         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50231         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50233         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50234
50235 2007-03-25  Bruno Haible  <bruno@clisp.org>
50236
50237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50238         returns inf. Needed on IRIX 6.5.
50239
50240 2007-03-25  Bruno Haible  <bruno@clisp.org>
50241
50242         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50243         (main): Use isnanl instead of x != x idiom.
50244         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50245
50246         * tests/test-frexp.c: Include isnan.h.
50247         (main): Use isnan instead of x != x idiom.
50248         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50249
50250 2007-03-25  Bruno Haible  <bruno@clisp.org>
50251
50252         * tests/test-frexp.c (NaN): New function/macro.
50253         (main): Use it instead of 0.0 / 0.0.
50254         * tests/test-isnan.c (NaN): New function/macro.
50255         (main): Use it instead of 0.0 / 0.0.
50256         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50257         (test_function): Use it instead of 0.0 / 0.0.
50258         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50259         (test_function): Use it instead of 0.0 / 0.0.
50260         * tests/test-snprintf-posix.h (NaN): New function/macro.
50261         (test_function): Use it instead of 0.0 / 0.0.
50262         * tests/test-sprintf-posix.h (NaN): New function/macro.
50263         (test_function): Use it instead of 0.0 / 0.0.
50264         * tests/test-fprintf-posix.h (NaN): New function/macro.
50265         (test_function): Use it instead of 0.0 / 0.0.
50266         * tests/test-printf-posix.h (NaN): New function/macro.
50267         (test_function): Use it instead of 0.0 / 0.0.
50268
50269         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50270
50271 2007-03-25  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50274
50275 2007-03-25  Bruno Haible  <bruno@clisp.org>
50276
50277         * lib/regexec.c (merge_state_with_log): Make static.
50278
50279 2007-03-25  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/trigl.c (kernel_rem_pio2): Make static.
50282
50283 2007-03-25  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/sincosl.c (sincosl_table): Make static.
50286
50287 2007-03-25  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50290         if the compiler does not support C99.
50291
50292 2007-03-25  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/time (Makefile.am): Ensure all rule action lines start with a
50295         tab.
50296
50297 2007-03-24  Bruno Haible  <bruno@clisp.org>
50298
50299         * modules/tsearch-tests: New file.
50300         * tests/test-tsearch.sh: New file.
50301         * tests/test-tsearch.c: New file, mostly copied from glibc.
50302
50303         * modules/search-tests: New file.
50304         * tests/test-search.c: New file.
50305
50306         * modules/search: New file.
50307         * lib/search_.h: New file, incorporating lib/tsearch.h.
50308         * m4/search_h.m4: New file.
50309         * lib/tsearch.h: Remove file.
50310         * lib/tsearch.c: Include search.h instead of tsearch.h.
50311         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50312         HAVE_TSEARCH.
50313         * modules/tsearch (Files): Remove lib/tsearch.h.
50314         (Depends-on): Add search.
50315         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50316         (Include): Change tsearch.h into search.h.
50317
50318 2007-03-24  Bruno Haible  <bruno@clisp.org>
50319
50320         * modules/fpucw: New file.
50321         * lib/fpucw.h: New file.
50322         * lib/frexp.c: Include fpucw.h.
50323         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50324         (FUNC): Use them.
50325         * lib/printf-frexp.c: Include fpucw.h.
50326         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50327         (FUNC): Use them.
50328         * lib/vasnprintf.c: Include fpucw.h.
50329         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50330         'long double' calculations.
50331         * tests/test-frexpl.c: Include fpucw.h.
50332         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50333         * tests/test-printf-frexpl.c: Include fpucw.h.
50334         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50335         * modules/frexpl (Depends-on): Add fpucw.
50336         * modules/printf-frexpl (Depends-on): Likewise.
50337         * modules/fprintf-posix (Depends-on): Likewise.
50338         * modules/snprintf-posix (Depends-on): Likewise.
50339         * modules/sprintf-posix (Depends-on): Likewise.
50340         * modules/vasnprintf-posix (Depends-on): Likewise.
50341         * modules/vasprintf-posix (Depends-on): Likewise.
50342         * modules/vfprintf-posix (Depends-on): Likewise.
50343         * modules/vsnprintf-posix (Depends-on): Likewise.
50344         * modules/vsprintf-posix (Depends-on): Likewise.
50345         * modules/frexpl-tests (Depends-on): Likewise.
50346         * modules/printf-frexpl-tests (Depends-on): Likewise.
50347
50348 2007-03-24  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/float+.h: New file.
50351         * lib/isnan.c: Include float+.h.
50352         (SIZE): New macro.
50353         (FUNC): Compare only SIZE bytes of the value.
50354         * lib/vasnprintf.c: Include float+.h.
50355         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50356         SIZEOF_LDBL or SIZEOF_DBL bytes.
50357         * modules/isnan-nolibm (Files): Add lib/float+.h.
50358         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50359         * modules/isnanl (Files): Add lib/float+.h.
50360         * modules/vasnprintf (Files): Add lib/float+.h.
50361
50362 2007-03-24  Bruno Haible  <bruno@clisp.org>
50363
50364         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50365         include isnanl-nolibm.h.
50366
50367 2007-03-24  Bruno Haible  <bruno@clisp.org>
50368
50369         * tests/test-read-file.c (main): Don't produce spurious output for
50370         expected situations. Make the test fail if it encountered unexpected
50371         results.
50372
50373 2007-03-24  Bruno Haible  <bruno@clisp.org>
50374
50375         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50376         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50377
50378 2007-03-24  Bruno Haible  <bruno@clisp.org>
50379
50380         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50381
50382 2007-03-24  Bruno Haible  <bruno@clisp.org>
50383
50384         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50385         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50386
50387         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50388         * modules/utf8-ucs4: Turn into a symbolic link to module
50389         unistr/u8-mbtouc.
50390
50391         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50392         utf8-ucs4-unsafe.
50393         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50394         unistr/u8-mbtouc-unsafe.
50395
50396         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50397         * modules/utf16-ucs4: Turn into a symbolic link to module
50398         unistr/u16-mbtouc.
50399
50400         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50401         utf16-ucs4-unsafe.
50402         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50403         unistr/u16-mbtouc-unsafe.
50404
50405         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50406         * modules/ucs4-utf8: Turn into a symbolic link to module
50407         unistr/u8-ubtomb.
50408
50409         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50410         * modules/ucs4-utf16: Turn into a symbolic link to module
50411         unistr/u16-ubtomb.
50412
50413 2007-03-24  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50416         Enable the function only if HAVE_INLINE.
50417         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50418         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50419         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50420         Enable the function only if HAVE_INLINE.
50421         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50422         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50423         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50424         Enable the function only if HAVE_INLINE.
50425         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50426         Enable the function only if HAVE_INLINE.
50427         * modules/utf8-ucs4: Update.
50428         * modules/utf8-ucs4-unsafe: Update.
50429         * modules/utf16-ucs4: Update.
50430         * modules/utf16-ucs4-unsafe: Update.
50431         * modules/ucs4-utf8: Update.
50432         * modules/ucs4-utf16: Update.
50433
50434 2007-03-24  Bruno Haible  <bruno@clisp.org>
50435
50436         * lib/utf8-ucs4.h: Remove file.
50437         * lib/utf8-ucs4-unsafe.h: Remove file.
50438         * lib/utf16-ucs4.h: Remove file.
50439         * lib/utf16-ucs4-unsafe.h: Remove file.
50440         * lib/ucs4-utf8.h: Remove file.
50441         * lib/ucs4-utf16.h: Remove file.
50442         * lib/unistr.h: Include their previous contents.
50443         * m4/utf-ucs4.m4: Remove file.
50444         * m4/ucs4-utf.m4: Remove file.
50445         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50446         (Depends-on): Add unistr/base.
50447         (configure.ac): Remove gl_UTF_UCS4.
50448         (Makefile.am): Update.
50449         (Include): Change to unistr.h.
50450         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50451         (Depends-on): Add unistr/base.
50452         (configure.ac): Remove gl_UTF_UCS4.
50453         (Makefile.am): Update.
50454         (Include): Change to unistr.h.
50455         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50456         (Depends-on): Add unistr/base.
50457         (configure.ac): Remove gl_UTF_UCS4.
50458         (Makefile.am): Update.
50459         (Include): Change to unistr.h.
50460         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50461         (Depends-on): Add unistr/base.
50462         (configure.ac): Remove gl_UTF_UCS4.
50463         (Makefile.am): Update.
50464         (Include): Change to unistr.h.
50465         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50466         (Depends-on): Add unistr/base.
50467         (configure.ac): Remove gl_UCS4_UTF.
50468         (Makefile.am): Update.
50469         (Include): Change to unistr.h.
50470         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50471         (Depends-on): Add unistr/base.
50472         (configure.ac): Remove gl_UCS4_UTF.
50473         (Makefile.am): Update.
50474         (Include): Change to unistr.h.
50475         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50476         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50477         utf8-ucs4-unsafe.h.
50478         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50479         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50480         utf16-ucs4-unsafe.h.
50481         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50482         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50483         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50484         * lib/unistr/u8-strchr.c: Likewise.
50485         * lib/unistr/u8-strrchr.c: Likewise.
50486         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50487         * lib/unistr/u16-strchr.c: Likewise.
50488         * lib/unistr/u16-strrchr.c: Likewise.
50489         * lib/striconveh.c: Update.
50490         * lib/linebreak.c: Update.
50491
50492 2007-03-24  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50495         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50496
50497 2007-03-22  Bruno Haible  <bruno@clisp.org>
50498
50499         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50500
50501 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50502
50503         * MODULES.html.sh (File system functions): New module write-any-file.
50504         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50505         * m4/write-any-file.m4: New files.
50506
50507 2007-03-23  Eric Blake  <ebb9@byu.net>
50508
50509         * gnulib-tool: Rearrange space-tab sequences, since some editors
50510         like to eat them.
50511
50512 2007-03-23  Eric Blake  <ebb9@byu.net>
50513
50514         * lib/version-etc.c (version_etc_va): Update license wording to
50515         be more concise.  Recommended by Richard Stallman.
50516
50517 2007-03-22  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/poll.c (MSG_PEEK): New fallback definition.
50520
50521 2007-03-22  Bruno Haible  <bruno@clisp.org>
50522
50523         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50524         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50525         (main): Update.
50526         Fixes a compilation error on BeOS.
50527
50528 2007-03-22  Bruno Haible  <bruno@clisp.org>
50529
50530         * modules/frexpl-tests: New file.
50531         * tests/test-frexpl.c: New file.
50532
50533         * modules/frexpl: New file.
50534         * m4/frexpl.m4: New file.
50535         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50536         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50538         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50539         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50540         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50541
50542 2007-03-22  Bruno Haible  <bruno@clisp.org>
50543
50544         * lib/frexpl.c: Share code with lib/frexp.c.
50545         * modules/mathl (Files): Add lib/frexp.c.
50546         (Depends-on): Add isnanl-nolibm.
50547
50548 2007-03-22  Bruno Haible  <bruno@clisp.org>
50549
50550         * modules/printf-frexp (Files): Add m4/frexp.m4.
50551         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50552         only if the found frexp function actually works.
50553
50554 2007-03-22  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/frexp.c: Remove older implementation that uses divisions.
50557
50558 2007-03-21  Bruno Haible  <bruno@clisp.org>
50559
50560         * modules/frexp-tests: New file.
50561         * tests/test-frexp.c: New file.
50562
50563         * modules/frexp: New file.
50564         * lib/frexp.c: New file.
50565         * m4/frexp.m4: New file.
50566         * lib/math_.h (frexp): New declaration.
50567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50568         REPLACE_FREXP.
50569         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50570
50571 2007-03-21  Bruno Haible  <bruno@clisp.org>
50572
50573         * modules/isnanl-tests: New file.
50574         * tests/test-isnanl.c: New file.
50575
50576         * modules/isnanl: New file.
50577         * lib/isnanl.h: New file.
50578         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50579         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50580         gl_FUNC_ISNANL_WORKS.
50581         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50582         New macros.
50583
50584 2007-03-21  Bruno Haible  <bruno@clisp.org>
50585
50586         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50587         lib/isnanl.h.
50588         (Include): Update.
50589         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50590         * lib/vasnprintf.c: Update.
50591         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50592         tests/test-isnanl.h, remove tests/test-isnanl.c.
50593         (Makefile.am): Update.
50594         * tests/test-isnanl-nolibm.c: New file.
50595         * tests/test-isnanl.h: New file.
50596         * tests/test-isnanl.c: Remove file.
50597
50598 2007-03-21  Jim Meyering  <jim@meyering.net>
50599
50600         When trying to open ".", treat ESTALE like EACCES.
50601         * lib/savewd.c (savewd_save): Resort to forking not just upon
50602         failure with EACCES, but also when errno is ESTALE.
50603
50604 2007-03-20  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50607         Needed on AIX 5.1. Reported by Matthew Woehlke.
50608
50609 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50610
50611         Suggestions by Bruno Haible:
50612         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50613         our own.
50614         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50615         * modules/acl (Depends-on): Add gettext.
50616
50617 2007-03-19  Bruno Haible  <bruno@clisp.org>
50618
50619         * modules/iconvme: Remove file.
50620         * lib/iconvme.h: Remove file.
50621         * lib/iconvme.c: Remove file.
50622         * m4/iconvme.m4: Remove file.
50623
50624 2007-03-19  Bruno Haible  <bruno@clisp.org>
50625
50626         * doc/relocatable-maint.texi: Break long shell script line.
50627         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50628
50629 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50632         handle file_has_acl.
50633         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50634         * lib/acl.c: Move header inclusions and related macro defns into
50635         lib/acl-internal.h.
50636         (S_ISLNK): Remove defn, since that's now done for us.
50637         (file_has_acl): Move to lib/file-has-acl.c.
50638         Call acl_trivial if available.  This is the crucial part of the fix.
50639         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50640         shared within the library.  Rewrite a bit, partly to make it compatible
50641         with the GNU coding style.
50642         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50643         Remove unnecessary double-quotes.
50644         Don't test for acl_to_text; the build will catch that.
50645         Replace acl_entries if it doesn't exist and it is needed.
50646         Check for -lsec and acl_trivial (as used on Solaris 10).
50647         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50648         lib/file-has-acl.c.
50649         (Depends-on): Add sys_stat, for S_ISLNK.
50650
50651 2007-03-19  Ben Pfaff  <blp@gnu.org>
50652
50653         * doc/gnulib.texi: Fix typos.
50654         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50655
50656 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50659         If size is zero here, buf must be zero.
50660
50661 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50662
50663         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50664         <bruno@clisp.org>.
50665
50666 2007-03-18  Bruno Haible  <bruno@clisp.org>
50667
50668         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50669         Suggested by Eric Blake.
50670
50671 2007-03-18  Ben Pfaff  <blp@gnu.org>
50672
50673         * doc/relocatable.texi: Recommend using as prefix a directory
50674         that does not exist and will never be created.  Based on
50675         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50676         and others.
50677
50678 2007-03-17  Bruno Haible  <bruno@clisp.org>
50679
50680         * lib/fchownat.c: Include lchown.h.
50681
50682 2007-03-17  Bruno Haible  <bruno@clisp.org>
50683
50684         Fix endless loop when the given allocated size was > INT_MAX.
50685         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50686         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50687         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50688         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50689         * lib/sprintf.c (sprintf): Likewise.
50690
50691 2007-03-17  Bruno Haible  <bruno@clisp.org>
50692
50693         * tests/test-argp-2.sh (func_compare): Output a context diff.
50694
50695 2007-03-17  Bruno Haible  <bruno@clisp.org>
50696
50697         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50698         locale's decimal-point character.
50699
50700 2007-03-17  Bruno Haible  <bruno@clisp.org>
50701
50702         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50703         before comparing it. Needed because on some platforms (e.g. x86) a
50704         'long double' occupies less bytes than sizeof (long double).
50705
50706 2007-03-17  Bruno Haible  <bruno@clisp.org>
50707
50708         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50709         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50710         * tests/test-getaddrinfo.c (simple): Likewise.
50711         * tests/test-read-file.c (main): Likewise.
50712
50713 2007-03-17  Bruno Haible  <bruno@clisp.org>
50714
50715         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50716
50717 2007-03-17  Bruno Haible  <bruno@clisp.org>
50718
50719         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50720         unused variable.
50721
50722 2007-03-17  Bruno Haible  <bruno@clisp.org>
50723
50724         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50725         * tests/test-c-strncasecmp.c: Likewise.
50726
50727 2007-03-17  Bruno Haible  <bruno@clisp.org>
50728
50729         * modules/stdlib (Depends-on): Add unistd.
50730         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50731         Needed for MacOS X 10.3.
50732
50733 2007-03-17  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50736
50737 2007-03-17  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50740
50741 2007-03-17  Bruno Haible  <bruno@clisp.org>
50742
50743         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50744         to reflect files copied from gnulib (with or without modifications).
50745         Suggested by Jim Meyering.
50746
50747 2007-03-17  Eric Blake  <ebb9@byu.net>
50748
50749         * NEWS: Document stdlib change from 2007-02-18.
50750
50751 2007-03-17  Jim Meyering  <jim@meyering.net>
50752
50753         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50754         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50755         someone uses a name containing shell meta-characters.
50756         Reported by Alfred M. Szmidt.
50757
50758         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50759
50760 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50761
50762         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50763         and copy gettext configuration files only if configure.ac contains
50764         a use of AM_GNU_GETTEXT_VERSION.
50765
50766 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50767
50768         * build-aux/bootstrap (gnulib_name): New variable.
50769         (gnulib_tool_options): Use it.
50770
50771 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50772
50773         * tests/test-des.c: Use new namespace.
50774
50775 2007-03-15  Bruno Haible  <bruno@clisp.org>
50776
50777         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50778         Reported by James Youngman <jay@gnu.org>.
50779
50780 2007-03-15  Bruno Haible  <bruno@clisp.org>
50781
50782         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50783         declared prototype. Needed with cc on OSF/1 5.1.
50784
50785 2007-03-15  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50788         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50789         (struct gl_list_implementation): Add dispose_fn argument to the
50790         'create_empty', 'create' methods.
50791         (struct gl_list_impl_base): Add field 'dispose_fn'.
50792         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50793         argument.
50794         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50795         dispose_fn argument.
50796         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50797         dispose_fn on the dropped values.
50798         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50799         dispose_fn argument.
50800         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50801         dropped values.
50802         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50803         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50804         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50805         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50806         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50807         argument.
50808         (gl_tree_list_free): Call dispose_fn on the dropped values.
50809         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50810         the dropped values.
50811         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50812         Add dispose_fn argument.
50813         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50814         Call dispose_fn on the dropped values.
50815         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50816         Add dispose_fn argument.
50817         (gl_sublist_create): Initialize the 'dispose_fn' field.
50818         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50819         * tests/test-array_list.c (main): Update.
50820         * tests/test-carray_list.c (main): Update.
50821         * tests/test-avltree_list.c (main): Update.
50822         * tests/test-rbtree_list.c (main): Update.
50823         * tests/test-avltreehash_list.c (main): Update.
50824         * tests/test-rbtreehash_list.c (main): Update.
50825         * tests/test-linked_list.c (main): Update.
50826         * tests/test-linkedhash_list.c (main): Update.
50827         * tests/test-array_oset.c (main): Update.
50828
50829 2007-03-15  Bruno Haible  <bruno@clisp.org>
50830
50831         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50832         (gl_oset_create_empty): Add dispose_fn argument.
50833         (struct gl_oset_implementation): Add dispose_fn argument to
50834         'create_empty' method.
50835         (struct gl_oset_impl_base): Add dispose_fn field.
50836         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50837         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50838         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50839         values.
50840         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50841         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50842         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50843         dropped value.
50844         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50845         dropped value.
50846         * tests/test-array_oset.c (main): Update.
50847         * tests/test-avltree_oset.c (main): Update.
50848         * tests/test-rbtree_oset.c (main): Update.
50849         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50850
50851 2007-03-13  Bruno Haible  <bruno@clisp.org>
50852
50853         * tests/test-stdbool.c (i): Update after last patch.
50854
50855 2007-03-12  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50858         the iswprint macro. Needed on Solaris 2.5.1.
50859
50860 2007-03-12  Bruno Haible  <bruno@clisp.org>
50861
50862         * tests/test-printf-frexp.c (main): Declare x as volatile.
50863
50864 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50865
50866         * doc/gnulib.texi (Build robot for gnulib): New section.
50867
50868 2007-03-12  Jim Meyering  <jim@meyering.net>
50869
50870         * build-aux/bootstrap: New file.
50871         * build-aux/bootstrap.conf: New file, from coreutils.
50872
50873 2007-03-11  Bruno Haible  <bruno@clisp.org>
50874
50875         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50876
50877 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50878
50879         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50880         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50881         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50882
50883 2007-03-11  Bruno Haible  <bruno@clisp.org>
50884
50885         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50886         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50887
50888 2007-03-11  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50891         formula. Needed for SunPRO C 5.0.
50892
50893 2007-03-11  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/long-options (Depends-on): Add getopt.
50896
50897 2007-03-11  Bruno Haible  <bruno@clisp.org>
50898
50899         * modules/modechange (Depends-on): Add stdbool.
50900
50901 2007-03-11  Bruno Haible  <bruno@clisp.org>
50902
50903         * modules/i-ring (Depends-on): Add stdbool.
50904
50905 2007-03-11  Bruno Haible  <bruno@clisp.org>
50906
50907         * modules/gc-des (Depends-on): Add stdbool.
50908
50909 2007-03-11  Bruno Haible  <bruno@clisp.org>
50910
50911         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50912
50913 2007-03-11  Bruno Haible  <bruno@clisp.org>
50914
50915         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50916
50917 2007-03-11  Bruno Haible  <bruno@clisp.org>
50918
50919         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50920
50921 2007-03-11  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/vasnprintf.c (sprintf): Undefine.
50924
50925 2007-03-11  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50928         initializers in SunPRO C and Compaq C compilers.
50929
50930 2007-03-11  Bruno Haible  <bruno@clisp.org>
50931
50932         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50933         decrementing code ANSI C compliant.
50934
50935 2007-03-11  Bruno Haible  <bruno@clisp.org>
50936
50937         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50938         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50939
50940 2007-03-11  Bruno Haible  <bruno@clisp.org>
50941
50942         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50943         <stdbool.h> substitute doesn't pass.
50944
50945 2007-03-11  Bruno Haible  <bruno@clisp.org>
50946
50947         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50948
50949 2007-03-11  Bruno Haible  <bruno@clisp.org>
50950
50951         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50952         script, for submission to autobuild.josefsson.org.
50953
50954 2007-03-10  Bruno Haible  <bruno@clisp.org>
50955
50956         * modules/canonicalize-lgpl-tests: New file.
50957         * tests/test-canonicalize-lgpl.sh: New file.
50958         * tests/test-canonicalize-lgpl.c: New file.
50959
50960         * modules/c-strcase-tests: New file.
50961         * tests/test-c-strcase.sh: New file.
50962         * tests/test-c-strcasecmp.c: New file.
50963         * tests/test-c-strncasecmp.c: New file.
50964
50965         * modules/atexit-tests: New file.
50966         * tests/test-atexit.sh: New file.
50967         * tests/test-atexit.c: New file.
50968
50969 2007-03-10  Bruno Haible  <bruno@clisp.org>
50970
50971         * tests/test-binary-io.sh: Use temporary filenames that are not so
50972         likely to clash with those of other tests (in a parallel make).
50973         * tests/test-binary-io.c: Likewise.
50974
50975 2007-03-10  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50978         fallback; use #error instead.
50979         Suggested by Simon Josefsson.
50980
50981 2007-03-10  Bruno Haible  <bruno@clisp.org>
50982
50983         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50984         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50985         first and the last.
50986
50987 2007-03-10  Bruno Haible  <bruno@clisp.org>
50988
50989         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50990
50991 2007-03-10  Bruno Haible  <bruno@clisp.org>
50992
50993         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50994         "make distcheck".
50995         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50996         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50997         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50998
50999 2007-03-10  Bruno Haible  <bruno@clisp.org>
51000
51001         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51002         variable.
51003         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51004         variable.
51005
51006 2007-03-09  Eric Blake  <ebb9@byu.net>
51007         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51008
51009         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51010         types are not being provided by gnulib.
51011         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51012         types are supported.
51013
51014 2007-03-10  Bruno Haible  <bruno@clisp.org>
51015
51016         * lib/stdio_.h (__attribute__): New macro.
51017         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51018         vsprintf): Specify __attribute__ __format__ for GCC.
51019         Suggested by Eric Blake.
51020
51021 2007-03-09  Bruno Haible  <bruno@clisp.org>
51022
51023         * modules/printf-posix-tests: New file.
51024         * tests/test-printf-posix.sh: New file.
51025         * tests/test-printf-posix.c: New file.
51026
51027         * modules/printf-posix: New file.
51028         * lib/printf.c: New file.
51029         * m4/printf-posix-rpl.m4: New file.
51030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51031         REPLACE_PRINTF.
51032         * lib/stdio_.h (printf): New declaration.
51033         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51034         ____strfmon____): New macros.
51035         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51036         REPLACE_PRINTF.
51037
51038 2007-03-09  Bruno Haible  <bruno@clisp.org>
51039
51040         * tests/test-vasnprintf-posix2.sh: New file.
51041         * tests/test-vasnprintf-posix2.c: New file.
51042         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51043         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51044         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51045
51046         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51047         a locale dependent decimal point, rather than always '.'.
51048
51049 2007-03-09  Eric Blake  <ebb9@byu.net>
51050
51051         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51052         spite of platforms like Tandem/NSK that define it to -1.
51053
51054 2007-03-08  Bruno Haible  <bruno@clisp.org>
51055
51056         * modules/vprintf-posix-tests: New file.
51057         * tests/test-vprintf-posix.sh: New file.
51058         * tests/test-vprintf-posix.c: New file.
51059         * tests/test-printf-posix.h: New file.
51060
51061         * modules/vprintf-posix: New file.
51062         * lib/vprintf.c: New file.
51063         * m4/vprintf-posix.m4: New file.
51064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51065         REPLACE_VPRINTF.
51066         * lib/stdio_.h (vprintf): New declaration.
51067         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51068         REPLACE_VPRINTF.
51069
51070 2007-03-08  Bruno Haible  <bruno@clisp.org>
51071
51072         * modules/fprintf-posix-tests: New file.
51073         * tests/test-fprintf-posix.sh: New file.
51074         * tests/test-fprintf-posix.c: New file.
51075
51076         * modules/fprintf-posix: New file.
51077         * lib/fprintf.c: New file.
51078         * m4/fprintf-posix.m4: New file.
51079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51080         REPLACE_FPRINTF.
51081         * lib/stdio_.h (fprintf): New declaration.
51082         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51083         REPLACE_FPRINTF.
51084
51085 2007-03-08  Bruno Haible  <bruno@clisp.org>
51086
51087         * modules/vfprintf-posix-tests: New file.
51088         * tests/test-vfprintf-posix.sh: New file.
51089         * tests/test-vfprintf-posix.c: New file.
51090         * tests/test-fprintf-posix.h: New file.
51091         * tests/test-fprintf-posix.out: New file.
51092
51093         * modules/vfprintf-posix: New file.
51094         * lib/vfprintf.c: New file.
51095         * m4/vfprintf-posix.m4: New file.
51096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51097         REPLACE_VFPRINTF.
51098         * lib/stdio_.h (vfprintf): New declaration.
51099         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51100         REPLACE_VFPRINTF.
51101
51102 2007-03-08  Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51105
51106 2007-03-08  Bruno Haible  <bruno@clisp.org>
51107
51108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51109         instead of 'expr' invocations.
51110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51114         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51115         Suggested by Paul Eggert.
51116
51117 2007-03-08  Bruno Haible  <bruno@clisp.org>
51118
51119         * modules/fseterr-tests: New file.
51120         * tests/test-fseterr.c: New file.
51121
51122         * modules/fseterr: New file.
51123         * lib/fseterr.h: New file.
51124         * lib/fseterr.c: New file.
51125
51126 2007-03-08  Bruno Haible  <bruno@clisp.org>
51127
51128         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51129         * lib/getopt_.h: Likewise.
51130         * lib/mbswidth.h: Likewise.
51131         * lib/setenv.h: Likewise.
51132         * lib/vasnprintf.h: Likewise.
51133         * lib/vasprintf.h: Likewise.
51134         * lib/verror.h: Likewise.
51135         * lib/xsetenv.h: Likewise.
51136         * lib/xvasprintf.h: Likewise.
51137
51138 2007-03-08  Jim Meyering  <jim@meyering.net>
51139
51140         * users.txt: Add parted.
51141
51142         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51143
51144 2007-03-07  Bruno Haible  <bruno@clisp.org>
51145
51146         * m4/printf.m4: Make the shell script snippets copy&pastable.
51147
51148 2007-03-02  Bruno Haible  <bruno@clisp.org>
51149
51150         * lib/netinet_in_.h: New file.
51151         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51152         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51153         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51154         (Depends-on): Add absolute-header.
51155         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51156         into netinet/in.h.
51157
51158 2007-03-03  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/sys_select_.h: New file.
51161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51162         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51163         * modules/sys_select (Files): Add lib/sys_select_.h.
51164         (Depends-on): Add absolute-header.
51165         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51166         into sys/select.h.
51167
51168 2007-03-02  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51171         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51172         values.
51173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51174         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51175         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51176         * modules/sys_socket (Depends-on): Add absolute-header.
51177         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51178         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51179         (Include): Remove requirement of inclusion of <sys/types.h>.
51180
51181 2007-03-02  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/byteswap_.h (bswap_32): Fix formula.
51184
51185 2007-03-06  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/sprintf-posix-tests: New file.
51188         * tests/test-sprintf-posix.c: New file.
51189
51190         * modules/sprintf-posix: New file.
51191         * lib/sprintf.c: New file.
51192         * m4/sprintf-posix.m4: New file.
51193         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51194         REPLACE_SPRINTF.
51195         * lib/stdio_.h (sprintf): New declaration.
51196         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51197         REPLACE_SPRINTF.
51198
51199 2007-03-06  Bruno Haible  <bruno@clisp.org>
51200
51201         * modules/vsprintf-posix-tests: New file.
51202         * tests/test-vsprintf-posix.c: New file.
51203         * tests/test-sprintf-posix.h: New file.
51204
51205         * modules/vsprintf-posix: New file.
51206         * lib/vsprintf.c: New file.
51207         * m4/vsprintf-posix.m4: New file.
51208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51209         REPLACE_VSPRINTF.
51210         * lib/stdio_.h (vsprintf): New declaration.
51211         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51212         REPLACE_VSPRINTF.
51213
51214 2007-03-06  Bruno Haible  <bruno@clisp.org>
51215
51216         * modules/vsnprintf (Depend-on): Remove minmax.
51217
51218 2007-03-06  Bruno Haible  <bruno@clisp.org>
51219
51220         * modules/snprintf-posix-tests: New file.
51221         * tests/test-snprintf-posix.c: New file.
51222
51223         * modules/snprintf-posix: New file.
51224         * m4/snprintf-posix.m4: New file.
51225         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51226         gl_FUNC_SNPRINTF.
51227         (gl_FUNC_SNPRINTF): Invoke it.
51228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51229         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51230         is set.
51231         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51232
51233 2007-03-06  Bruno Haible  <bruno@clisp.org>
51234
51235         * modules/vsnprintf-posix-tests: New file.
51236         * tests/test-vsnprintf-posix.c: New file.
51237         * tests/test-snprintf-posix.h: New file.
51238
51239         * modules/vsnprintf-posix: New file.
51240         * m4/vsnprintf-posix.m4: New file.
51241         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51242         gl_FUNC_VSNPRINTF.
51243         (gl_FUNC_VSNPRINTF): Invoke it.
51244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51245         * lib/stdio_.h (vsnprintf): Define as a replacement if
51246         REPLACE_VSNPRINTF is set.
51247         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51248
51249 2007-03-06  Bruno Haible  <bruno@clisp.org>
51250
51251         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51252         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51253
51254 2007-03-06  Bruno Haible  <bruno@clisp.org>
51255
51256         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51257         (asinl): Declare also if HAVE_DECL_ASINL is set.
51258         (atanl): Declare also if HAVE_DECL_ATANL is set.
51259         (ceill): Declare also if HAVE_DECL_CEILL is set.
51260         (cosl): Declare also if HAVE_DECL_COSL is set.
51261         (expl): Declare also if HAVE_DECL_EXPL is set.
51262         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51263         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51264         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51265         (logl): Declare also if HAVE_DECL_LOGL is set.
51266         (sinl): Declare also if HAVE_DECL_SINL is set.
51267         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51268         (tanl): Declare also if HAVE_DECL_TANL is set.
51269         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51271         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51272         declaration of frexpl, ldexpl.
51273         * modules/printf-frexpl (Depends-on): Add math.
51274         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51275
51276 2007-03-05  Bruno Haible  <bruno@clisp.org>
51277
51278         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51279         frexpl and ldexpl are declared.
51280         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51281
51282 2007-03-05  Bruno Haible  <bruno@clisp.org>
51283
51284         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51285         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51286
51287 2007-03-05  Bruno Haible  <bruno@clisp.org>
51288
51289         * lib/stdio_.h: Include <stddef.h>.
51290
51291 2007-03-05  Bruno Haible  <bruno@clisp.org>
51292
51293         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51294
51295 2007-03-05  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51298         NetBSD 4, from Ralf Wildenhues.
51299
51300 2007-03-04  Bruno Haible  <bruno@clisp.org>
51301
51302         * lib/vasprintf.h: Update #if logic for the case when the functions
51303         exist but are overridden.
51304
51305 2007-03-04  Bruno Haible  <bruno@clisp.org>
51306
51307         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51308         implementations: glibc-2.4 and MacOS X 10.3.
51309         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51310         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51311         * tests/test-vasprintf-posix.c (test_function): Likewise.
51312
51313 2007-03-04  Bruno Haible  <bruno@clisp.org>
51314
51315         * modules/vasprintf-posix-tests: New file.
51316         * tests/test-vasprintf-posix.c: New file.
51317
51318         * modules/vasprintf-posix: New file.
51319         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51320         defined.
51321         * m4/vasprintf-posix.m4: New file.
51322         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51323         gl_FUNC_VASPRINTF.
51324         (gl_FUNC_VASPRINTF): Invoke it.
51325         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51326         here.
51327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51328
51329 2007-03-04  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51332         REPLACE_GETTIMEOFDAY.
51333         * modules/sys_time (Makefile.am): Likewise.
51334         * m4/sys_time_h.m4: Likewise.
51335         * m4/gettimeofday.m4: Likewise.
51336
51337 2007-03-04  Bruno Haible  <bruno@clisp.org>
51338
51339         * modules/vasnprintf-posix-tests: New file.
51340         * tests/test-vasnprintf-posix.c: New file.
51341
51342         * modules/vasnprintf-posix: New file.
51343         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51344         printf-frexpl.h.
51345         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51346         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51347         REPLACE_VASNPRINTF is defined.
51348         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51349         gl_FUNC_VASNPRINTF.
51350         (gl_FUNC_VASNPRINTF): Invoke it.
51351         * m4/vasnprintf-posix.m4: New file.
51352         * m4/printf.m4: New file.
51353
51354 2007-03-04  Bruno Haible  <bruno@clisp.org>
51355
51356         Compile progreloc.c only if --enable-relocatable is specified.
51357         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51358         if --enable-relocatable was specified.
51359         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51360         lib_SOURCES.
51361
51362 2007-03-04  Jim Meyering  <jim@meyering.net>
51363
51364         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51365         Use it consistently, rather than enumerating errno constants.
51366
51367 2007-03-04  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/xvasprintf-tests: New file.
51370         * tests/test-xvasprintf.c: New file.
51371
51372         * modules/vasprintf-tests: New file.
51373         * tests/test-vasprintf.c: New file.
51374
51375         * modules/vasnprintf-tests: New file.
51376         * tests/test-vasnprintf.c: New file.
51377
51378         * modules/vsnprintf-tests: New file.
51379         * tests/test-vsnprintf.c: New file.
51380
51381         * modules/snprintf-tests: New file.
51382         * tests/test-snprintf.c: New file.
51383
51384 2007-03-04  Bruno Haible  <bruno@clisp.org>
51385
51386         Compile relocatable.c only if --enable-relocatable is specified.
51387         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51388         gl_RELOCATABLE_LIBRARY.
51389         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51390         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51391         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51392         gl_RELOCATABLE_LIBRARY.
51393         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51394         (Makefile.am): Remove lib_SOURCES.
51395         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51396         gl_RELOCATABLE_LIBRARY.
51397         (Makefile.am): Remove lib_SOURCES.
51398         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51399         always.
51400         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51401         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51402
51403 2007-03-04  Bruno Haible  <bruno@clisp.org>
51404
51405         * modules/argmatch-tests: New file.
51406         * tests/test-argmatch.c: New file.
51407
51408         * tests/test-allocsa.c (main): Halve the number of loop runs.
51409
51410         * modules/alloca-opt-tests: New file.
51411         * tests/test-alloca-opt.c: New file.
51412
51413 2007-03-04  Jim Meyering  <jim@meyering.net>
51414
51415         Work around difference between Linux ACLs and Solaris 10 ZFS.
51416         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51417         for EINVAL.
51418
51419 2007-03-03  Bruno Haible  <bruno@clisp.org>
51420
51421         * modules/relocatable-prog (Depends-on): Add back progreloc's
51422         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51423
51424 2007-03-03  Bruno Haible  <bruno@clisp.org>
51425
51426         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51427         * modules/relocatable-lib: New file.
51428
51429 2007-03-03  Bruno Haible  <bruno@clisp.org>
51430
51431         * modules/relocatable-prog: Renamed from modules/relocatable.
51432         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51433
51434 2007-03-03  Bruno Haible  <bruno@clisp.org>
51435
51436         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51437         m4/relocatable-lib.m4.
51438         (Depends-on): Remove 'relocatable'.
51439         (configure.ac): Add gl_RELOCATABLE_NOP.
51440
51441 2007-03-03  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/relocatable-prog-wrapper: New file.
51444         * modules/relocatable (Depends-on): Add it. Remove all other
51445         dependencies except progname.
51446         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51447
51448         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51449         (gl_FUNC_STRERROR): Nop.
51450         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51451
51452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51453         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51454
51455         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51456         (gl_FUNC_READLINK): Update.
51457
51458         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51459
51460 2007-03-03  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51463         * modules/xreadlink (Depends-on): Add unistd.
51464         * modules/xreadlink-with-size (Depends-on): Likewise.
51465
51466 2007-03-03  Bruno Haible  <bruno@clisp.org>
51467
51468         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51469         extracted from gt_FUNC_SETENV.
51470         (gt_FUNC_SETENV): Remove macro.
51471         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51472         remove gt_FUNC_SETENV.
51473
51474 2007-03-03  Bruno Haible  <bruno@clisp.org>
51475
51476         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51477         ENABLE_RELOCATABLE here.
51478         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51479
51480 2007-03-03  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51483         * tests/test-rbtreehash_list.c: Include progname.h.
51484         (main): Call set_program_name.
51485
51486         * modules/rbtree-oset-tests (Depends-on): Add progname.
51487         * tests/test-rbtree_oset.c: Include progname.h.
51488         (main): Call set_program_name.
51489
51490         * modules/rbtree-list-tests (Depends-on): Add progname.
51491         * tests/test-rbtree_list.c: Include progname.h.
51492         (main): Call set_program_name.
51493
51494         * modules/linked-list-tests (Depends-on): Add progname.
51495         * tests/test-linked_list.c: Include progname.h.
51496         (main): Call set_program_name.
51497
51498 2007-03-03  Bruno Haible  <bruno@clisp.org>
51499
51500         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51501         All uses of __restrict changed to _Restrict_.
51502         * lib/glob_.h (__restrict): Remove macro.
51503
51504 2007-03-02  Bruno Haible  <bruno@clisp.org>
51505
51506         * modules/gettext (configure.ac): Require gettext infrastructure
51507         from version 0.16.1.
51508
51509 2007-03-02  Bruno Haible  <bruno@clisp.org>
51510
51511         * modules/linkedhash-list-tests (Depends-on): Add progname.
51512         * tests/test-linkedhash_list.c: Include progname.h.
51513         (main): Call set_program_name.
51514
51515         * modules/carray-list-tests (Depends-on): Add progname.
51516         * tests/test-carray_list.c: Include progname.h.
51517         (main): Call set_program_name.
51518
51519         * modules/avltreehash-list-tests (Depends-on): Add progname.
51520         * tests/test-avltreehash_list.c: Include progname.h.
51521         (main): Call set_program_name.
51522
51523         * modules/avltree-oset-tests (Depends-on): Add progname.
51524         * tests/test-avltree_oset.c: Include progname.h.
51525         (main): Call set_program_name.
51526
51527         * modules/avltree-list-tests (Depends-on): Add progname.
51528         * tests/test-avltree_list.c: Include progname.h.
51529         (main): Call set_program_name.
51530
51531         * modules/array-oset-tests (Depends-on): Add progname.
51532         * tests/test-array_oset.c: Include progname.h.
51533         (main): Call set_program_name.
51534
51535         * modules/array-list-tests (Depends-on): Add progname.
51536         * tests/test-array_list.c: Include progname.h.
51537         (main): Call set_program_name.
51538
51539         * modules/argp-tests (Depends-on): Add progname.
51540         * tests/test-argp.c: Include argp.h first. Include progname.h.
51541         (main): Call set_program_name.
51542
51543 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         * doc/gnulib-tool.texi (Initial import): Reword description of
51546         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51547         limited effect even if defined after the first system include.
51548
51549 2007-03-01  Bruno Haible  <bruno@clisp.org>
51550
51551         * build-aux/config.libpath: Update to libtool-1.5.22.
51552         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51553
51554 2007-03-01  Bruno Haible  <bruno@clisp.org>
51555
51556         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51557         foo_CFLAGS.
51558         Reported by Ralf Wildenhues.
51559
51560 2007-03-01  Bruno Haible  <bruno@clisp.org>
51561
51562         * build-aux/install-reloc: Remove object files left over by some
51563         compilers.
51564         Reported by Ralf Wildenhues.
51565
51566 2007-03-01  Bruno Haible  <bruno@clisp.org>
51567
51568         * build-aux/install-reloc: Break long lines.
51569
51570 2007-03-01  Bruno Haible  <bruno@clisp.org>
51571
51572         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51573         Reported by Ralf Wildenhues.
51574
51575 2007-03-01  Bruno Haible  <bruno@clisp.org>
51576
51577         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51578         include ordering constraints.
51579
51580 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51581
51582         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51584         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51585         as another example.
51586         * lib/time_.h: Fix misspelling.
51587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51588         Require gl_HEADER_TIME_H_DEFAULTS.
51589         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51590         * m4/time_r.m4 (gl_TIME_R): Likewise.
51591         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51592
51593 2007-03-01  Bruno Haible  <bruno@clisp.org>
51594
51595         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51596         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51597
51598 2007-03-01  Jim Meyering  <jim@meyering.net>
51599
51600         * modules/xreadlink (Maintainer): Add my name.
51601         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51602
51603 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51604             Bruno Haible  <bruno@clisp.org>
51605
51606         * build-aux/install-reloc: Compile also c-ctype.c.
51607         * build-aux/relocatable.sh.in: New file.
51608         * doc/relocatable.texi: New file.
51609         * doc/relocatable-maint.texi: New file.
51610         * doc/gnulib.texi: Include relocatable-maint.texi.
51611         * lib/progreloc.c: Include unistd.h unconditionally.
51612         * lib/relocwrapper.c: Include unistd.h unconditionally.
51613         Include c-ctype.h.
51614         (add_dotbin): Use c_tolower.
51615         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51616         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51617         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51618         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51619         to m4/relocatable-lib.m4.
51620         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51621         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51622         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51623         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51624         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51625         * modules/relocatable: New file.
51626         * modules/relocatable-lib: New file.
51627         * modules/relocatable-script: New file.
51628
51629 2007-02-28  Bruno Haible  <bruno@clisp.org>
51630
51631         Import --enable-relocatable infrastructure.
51632         * build-aux/config.libpath: New file, from GNU gettext.
51633         * build-aux/install-reloc: New file, from GNU gettext.
51634         * build-aux/reloc-ldflags: New file, from GNU gettext.
51635         * lib/relocatable.h: New file, from GNU gettext.
51636         * lib/relocatable.c: New file, from GNU gettext.
51637         * lib/relocwrapper.c: New file, from GNU gettext.
51638         * m4/relocatable.m4: New file, from GNU gettext.
51639
51640 2007-02-28  Bruno Haible  <bruno@clisp.org>
51641
51642         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51643
51644         * modules/xreadlink: New file, from GNU gettext with modifications.
51645         * lib/xreadlink.c: New file, from GNU gettext.
51646         * lib/xreadlink.h: Add comments.
51647         (xreadlink): New declaration.
51648
51649         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51650         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51651         lib/xreadlink-with-size.c.
51652         (configure.ac): Remove gl_XREADLINK invocation.
51653         (Makefile.am): Augment lib_SOURCES.
51654         * m4/xreadlink.m4: Remove file.
51655         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51656         (xreadlink_with_size): Renamed from xreadink.
51657         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51658         * modules/canonicalize (Depends-on): Replace xreadlink with
51659         xreadlink-with-size.
51660         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51661
51662 2007-02-25  Jim Meyering  <jim@meyering.net>
51663
51664         * build-aux/announce-gen: When complaining about excess arguments,
51665         list them.
51666
51667 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51668
51669         * README: Document signed integer overflow situation more
51670         accurately.
51671
51672 2007-02-25  Bruno Haible  <bruno@clisp.org>
51673
51674         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51675         'a' or 'A' conversion.
51676
51677 2007-02-25  Bruno Haible  <bruno@clisp.org>
51678
51679         * modules/filename: Renamed from modules/pathname.
51680         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51681         lib/concatpath.c with lib/concat-filename.c.
51682         (Makefile.am): Update.
51683         (Include): Replace pathname.h with filename.h.
51684         * lib/filename.h: Renamed from lib/pathname.h.
51685         (concatenated_filename): Renamed from concatenated_pathname.
51686         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51687         (concatenated_filename): Renamed from concatenated_pathname.
51688         * lib/findprog.c: Include filename.h instead of pathname.h.
51689         (find_in_path): Update.
51690         * lib/javacomp.c: Include filename.h instead of pathname.h.
51691         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51692         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51693         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51694         is_oldgcj_14_13_usable, is_javac_usable): Update.
51695         * lib/javaexec.c: Include filename.h instead of pathname.h.
51696         (execute_java_class): Update.
51697         * modules/findprog: Update.
51698         * modules/javacomp: Update.
51699         * modules/javaexec: Update.
51700         * MODULES.html.sh (File system functions): Add 'filename', remove
51701         'pathname'.
51702
51703 2007-02-25  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/printf-frexpl-tests: New file.
51706         * tests/test-printf-frexpl.c: New file.
51707
51708         * modules/printf-frexpl: New file.
51709         * lib/printf-frexpl.h: New file.
51710         * lib/printf-frexpl.c: New file.
51711         * m4/printf-frexpl.m4: New file.
51712
51713 2007-02-25  Bruno Haible  <bruno@clisp.org>
51714
51715         * modules/printf-frexp-tests: New file.
51716         * tests/test-printf-frexp.c: New file.
51717
51718         * modules/printf-frexp: New file.
51719         * lib/printf-frexp.h: New file.
51720         * lib/printf-frexp.c: New file.
51721         * m4/printf-frexp.m4: New file.
51722
51723 2007-02-25  Bruno Haible  <bruno@clisp.org>
51724
51725         Assume automake >= 1.10 for the tests.
51726         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51727         * modules/arctwo-tests: Likewise.
51728         * modules/argp-tests: Likewise.
51729         * modules/avltree-list-tests: Likewise.
51730         * modules/avltree-oset-tests: Likewise.
51731         * modules/avltreehash-list-tests: Likewise.
51732         * modules/carray-list-tests: Likewise.
51733         * modules/crc-tests: Likewise.
51734         * modules/des-tests: Likewise.
51735         * modules/gc-arcfour-tests: Likewise.
51736         * modules/gc-arctwo-tests: Likewise.
51737         * modules/gc-des-tests: Likewise.
51738         * modules/gc-hmac-md5-tests: Likewise.
51739         * modules/gc-hmac-sha1-tests: Likewise.
51740         * modules/gc-md2-tests: Likewise.
51741         * modules/gc-md4-tests: Likewise.
51742         * modules/gc-md5-tests: Likewise.
51743         * modules/gc-pbkdf2-sha1-tests: Likewise.
51744         * modules/gc-rijndael-tests: Likewise.
51745         * modules/gc-sha1-tests: Likewise.
51746         * modules/gc-tests: Likewise.
51747         * modules/getaddrinfo-tests: Likewise.
51748         * modules/hmac-md5-tests: Likewise.
51749         * modules/hmac-sha1-tests: Likewise.
51750         * modules/linked-list-tests: Likewise.
51751         * modules/linkedhash-list-tests: Likewise.
51752         * modules/lock-tests: Likewise.
51753         * modules/md2-tests: Likewise.
51754         * modules/md4-tests: Likewise.
51755         * modules/md5-tests: Likewise.
51756         * modules/rbtree-list-tests: Likewise.
51757         * modules/rbtree-oset-tests: Likewise.
51758         * modules/rbtreehash-list-tests: Likewise.
51759         * modules/read-file-tests: Likewise.
51760         * modules/rijndael-tests: Likewise.
51761         * modules/stdint-tests: Likewise.
51762         * modules/tls-tests: Likewise.
51763
51764 2007-02-24  Bruno Haible  <bruno@clisp.org>
51765
51766         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51767         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51768         function; instead check whether isnan with a double argument links.
51769         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51770         function; instead check whether isnan with a 'long double' argument
51771         links.
51772         Reported by Eric Blake <ebb9@byu.net>.
51773
51774 2007-02-24  Bruno Haible  <bruno@clisp.org>
51775
51776         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51777         defined.
51778         * lib/isnanl.c: Remove all code. Just include isnan.c.
51779         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51780
51781 2007-02-25  Jim Meyering  <jim@meyering.net>
51782
51783         Avoid conflicting types for 'unsetenv' on FreeBSD.
51784         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51785         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51786         in stdlib.h.
51787
51788 2007-02-24  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/isnanl-nolibm-tests: New file.
51791         * tests/test-isnanl.c: New file.
51792
51793         * modules/isnanl-nolibm: New file.
51794         * lib/isnanl.h: New file.
51795         * lib/isnanl.c: New file.
51796         * m4/isnanl.m4: New file.
51797
51798 2007-02-24  Bruno Haible  <bruno@clisp.org>
51799
51800         * modules/isnan-nolibm-tests: New file.
51801         * tests/test-isnan.c: New file.
51802
51803         * modules/isnan-nolibm: New file.
51804         * lib/isnan.h: New file.
51805         * lib/isnan.c: New file.
51806         * m4/isnan.m4: New file.
51807
51808 2007-02-24  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51811         assume that an exponent fits in 20 bits.
51812
51813 2007-02-24  Jim Meyering  <jim@meyering.net>
51814
51815         * m4/regex.m4: Update the description of the configure-time option,
51816         --without-included-regex, to state accurately what the defaults are,
51817         and perhaps to give people an idea why using this option is risky.
51818
51819 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51820
51821         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51822         loops on small arguments.  This attempts to avoid the problem
51823         Bruno Haible reported for AIX 4.3.2 in
51824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51825
51826 2007-02-23  Bruno Haible  <bruno@clisp.org>
51827
51828         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51829         Needed for help2man.
51830
51831 2007-02-23  Karl Berry  <karl@gnu.org>
51832
51833         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51834         exists, foo.h should be cvs-ignored, not committed.
51835
51836 2007-02-23  Eric Blake  <ebb9@byu.net>
51837
51838         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51839         * lib/stat-time.h (includes): Likewise.
51840         * lib/utimecmp.c (includes): Likewise.
51841         * lib/utimens.h (includes): Likewise.
51842         * lib/getdate.y (includes): Also include "timespec.h" for use
51843         internal to the module.
51844         * modules/utimens (Depends-on): Revert yesterday's patch.
51845         * modules/nanosleep (Depends-on): Add missing dependency.
51846
51847 2007-02-22  Bruno Haible  <bruno@clisp.org>
51848
51849         * lib/glob.c: Don't include getlogin_r.h.
51850
51851 2007-02-22  Jim Meyering  <jim@meyering.net>
51852
51853         * modules/utimens (Depends-on): Add timespec, required for
51854         utimens.h's inclusion of timespec.h.
51855
51856 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51857
51858         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51859         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51860         Schwab in
51861         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51862         I'll try to think of a better way to fix the Solaris problem.
51863
51864         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51865         like glibc; on Solaris 10, it fails with errno == EINVAL.
51866         POSIX says the behavior is unspecified if the first argument is NULL,
51867         so play it safe and never pass NULL to the system getcwd.
51868
51869 2007-02-21  Jim Meyering  <jim@meyering.net>
51870
51871         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51872         of gettimeofday.  It would conflict with the one now always
51873         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51874         an IRIX 6.5 build failure.
51875
51876 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51877
51878         Minor fixups to port to Solaris 10 with Sun C 5.8.
51879         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51880         * modules/getcwd (Depends-on): Add dirfd.
51881         * lib/putenv.c (putenv): #undef it.
51882         (rpl_putenv): New decl.
51883         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51884
51885 2007-02-20  Bruno Haible  <bruno@clisp.org>
51886
51887         * modules/stdio-tests: New file.
51888         * tests/test-stdio.c: New file.
51889
51890         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51891         (Depends-on): Add stdio.
51892         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51893         (Include): Use <stdio.h> instead of vsnprintf.h.
51894         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51895         HAVE_DECL_VSNPRINTF.
51896         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51897
51898         * modules/snprintf (Files): Remove lib/snprintf.h.
51899         (Depends-on): Add stdio.
51900         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51901         (Include): Use <stdio.h> instead of snprintf.h.
51902         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51903         HAVE_DECL_SNPRINTF.
51904         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51905         * lib/getaddrinfo.c: Likewise.
51906
51907         * modules/stdio: New file.
51908         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51909         * lib/snprintf.h: Remove file.
51910         * lib/vsnprintf.h: Remove file.
51911         * lib/.cppi-disable: Remove snprintf.h.
51912         * m4/stdio_h.m4: New file.
51913         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51914
51915 2007-02-20  Jim Meyering  <jim@meyering.net>
51916
51917         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51918         used by e.g., mingw.  From Bruno Haible.
51919
51920 2007-02-19  Bruno Haible  <bruno@clisp.org>
51921
51922         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51923         warnings.
51924         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51925
51926 2007-02-19  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51929         from mingw users.
51930
51931 2007-02-19  Bruno Haible  <bruno@clisp.org>
51932
51933         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51934         warnings.
51935         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51936
51937 2007-02-19  Jim Meyering  <jim@meyering.net>
51938
51939         Don't use FD after a successful "fdopendir (fd)".
51940         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51941         Reset it by calling dirfd on the just-obtained DIR*.
51942
51943         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51944         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51945
51946 2007-02-18  Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/readlink.c: Include <unistd.h>.
51949         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51950         HAVE_READLINK.
51951         * modules/readlink (Depends-on): Add unistd.
51952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51953         (Include): Add <unistd.h>.
51954
51955         * lib/getlogin_r.h: Remove file.
51956         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51957         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51958         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51959         HAVE_DECL_GETLOGIN_R.
51960         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51962         (Include): Use <unistd.h> instead of getlogin_r.h.
51963
51964         * lib/getcwd.h: Remove file.
51965         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51966         * lib/xgetcwd.c: Likewise.
51967         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51968         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51969         * modules/getcwd (Files): Remove lib/getcwd.h.
51970         (Depends-on): Add unistd.
51971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51972         (Include): Use <unistd.h> instad of getcwd.h.
51973
51974         * lib/ftruncate.c: Include <unistd.h> first.
51975         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51976         Set HAVE_FTRUNCATE.
51977         * modules/ftruncate (Depends-on): Add unistd.
51978         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51979
51980         * lib/fchdir.c: Include <unistd.h> first.
51981         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51983         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51984         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51985         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51986
51987         * lib/dup2.c: Include <unistd.h> first.
51988         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51989         HAVE_DUP2.
51990         * modules/dup2 (Depends-on): Add unistd.
51991         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51992
51993         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51994         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51995         REPLACE_CHOWN. Don't define chown as a macro here.
51996         * modules/chown (Depends-on): Add unistd.
51997         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51998
51999         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52000         Add definition for GL_LINK_WARNING.
52001         (chown, dup2): New declarations.
52002         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52003         link warning.
52004         (ftruncate): New declaration.
52005         (getcwd): New declaration, taken from old getcwd.h.
52006         (getlogin_r): New declaration, taken from old getlogin_r.h.
52007         (readlink): New declaration.
52008         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52009         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52010         (gl_PREREQ_UNISTD): Remove macro.
52011         (gl_UNISTD_MODULE_INDICATOR): New macro.
52012         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52013         many new variables. Don't set UNISTD_H.
52014         * modules/unistd (Description): Change.
52015         (Depends-on): Add link-warning.
52016         (configure.ac): Update.
52017         (Makefile.am): Create unistd.h always. Substitute many new variables
52018         into it.
52019
52020 2007-02-18  Bruno Haible  <bruno@clisp.org>
52021
52022         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52023         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52024         HAVE_GETSUBOPT.
52025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52026         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52027         * lib/getsubopt.h: Remove file.
52028         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52029         (Depends-on): Add stdlib.
52030         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52031         (Includes): Use <stdlib.h> instead of getsubopt.h.
52032         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52033         Set HAVE_GETSUBOPT.
52034         * lib/getsubopt.c: Don't include getsubopt.h.
52035
52036 2007-02-18  Bruno Haible  <bruno@clisp.org>
52037
52038         * modules/fchdir (Depends-on): Add dup2.
52039
52040 2007-02-18  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/stdlib_.h: Handle glibc's special invocation convention
52043         specially.
52044
52045 2007-02-18  Bruno Haible  <bruno@clisp.org>
52046
52047         * modules/stdlib-tests: New file.
52048         * tests/test-stdlib.c: New file.
52049
52050         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52051         (Depends-on): Add stdlib.
52052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52053         (Includes): Use <stdlib.h> instead of mkstemp.h.
52054         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52055         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52056         * lib/mkstemp.c: Don't include mkstemp.h.
52057         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52058         * lib/stdlib--.h: Don't include mkstemp.h.
52059
52060         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52061         (Depends-on): Add stdlib.
52062         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52063         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52064         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52065         HAVE_MKDTEMP.
52066         * lib/mkdtemp.c: Don't include mkdtemp.h.
52067         * lib/clean-temp.c: Don't include mkdtemp.h.
52068
52069         * modules/exit (Files): Remove lib/exit.h.
52070         (Depends-on): Add stdlib.
52071         (Makefile.am): Remove lib_SOURCES.
52072         (Include): Use <stdlib.h> instead of exit.h.
52073         * lib/argmatch.c: Don't include exit.h.
52074         * lib/execute.c: Likewise.
52075         * lib/pagealign_alloc.c: Likewise.
52076         * lib/pipe.c: Likewise.
52077         * lib/wait-process.c: Likewise.
52078         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52079         * lib/exitfail.c: Likewise.
52080         * lib/savewd.c: Likewise.
52081         * lib/xsetenv.c: Likewise.
52082
52083         * modules/stdlib: New file.
52084         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52085         and extra comments about mkstemp().
52086         * lib/exit.h: Remove file.
52087         * lib/mkdtemp.h: Remove file.
52088         * lib/mkstemp.h: Remove file.
52089         * m4/stdlib_h.m4: New file.
52090         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52091
52092 2007-02-18  Bruno Haible  <bruno@clisp.org>
52093
52094         * modules/math-tests: New file.
52095         * tests/test-math.c: New file.
52096
52097         * modules/math: New file.
52098         * modules/mathl (Files): Remove lib/mathl.h.
52099         (Depends-on): Add math.
52100         (Makefile.am): Don't mention mathl.h.
52101         (Include): Use <math.h> instead of mathl.h.
52102         * lib/math_.h: New file.
52103         * lib/mathl.h: Remove file.
52104         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52105         mathl.h.
52106         * lib/asinl.c: Likewise.
52107         * lib/atanl.c: Likewise.
52108         * lib/ceill.c: Likewise.
52109         * lib/cosl.c: Likewise.
52110         * lib/expl.c: Likewise.
52111         * lib/floorl.c: Likewise.
52112         * lib/frexpl.c: Likewise.
52113         * lib/ldexpl.c: Likewise.
52114         * lib/logl.c: Likewise.
52115         * lib/sincosl.c: Likewise.
52116         * lib/sinl.c: Likewise.
52117         * lib/sqrtl.c: Likewise.
52118         * lib/tanl.c: Likewise.
52119         * lib/trigl.c: Likewise.
52120         * m4/math_h.m4: New file.
52121         * MODULES.html.sh (Mathematics): Add math.
52122
52123 2007-02-17  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/wctype-tests: New file.
52126         * tests/test-wctype.c: New file.
52127
52128         * modules/wchar-tests: New file.
52129         * tests/test-wchar.c: New file.
52130
52131         * modules/unistd-tests: New file.
52132         * tests/test-unistd.c: New file.
52133
52134         * modules/time-tests: New file.
52135         * tests/test-time.c: New file.
52136
52137         * modules/sysexits-tests: New file.
52138         * tests/test-sysexits.c: New file.
52139
52140         * modules/sys_time-tests: New file.
52141         * tests/test-sys_time.c: New file.
52142
52143         * modules/sys_stat-tests: New file.
52144         * tests/test-sys_stat.c: New file.
52145
52146         * modules/sys_socket-tests: New file.
52147         * tests/test-sys_socket.c: New file.
52148
52149         * modules/sys_select-tests: New file.
52150         * tests/test-sys_select.c: New file.
52151
52152         * modules/string-tests: New file.
52153         * tests/test-string.c: New file.
52154
52155         * modules/stdbool-tests: New file.
52156         * tests/test-stdbool.c: New file.
52157
52158         * modules/netinet_in-tests: New file.
52159         * tests/test-netinet_in.c: New file.
52160
52161         * modules/inttypes-tests: New file.
52162         * tests/test-inttypes.c: New file.
52163
52164         * modules/fcntl-tests: New file.
52165         * tests/test-fcntl.c: New file.
52166
52167         * modules/byteswap-tests: New file.
52168         * tests/test-byteswap.c: New file.
52169
52170         * modules/arpa_inet-tests: New file.
52171         * tests/test-arpa_inet.c: New file.
52172
52173 2007-02-17  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52176         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52177         if the corresponding module is not enabled. Emit link warnings if
52178         the function is used nevertheless.
52179         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52180         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52181         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52182         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52183         * modules/inttypes (Depends-on): Add link-warning.
52184         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52185         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52186         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52187         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52188         * modules/imaxdiv (configure.ac): Likewise.
52189         * modules/strtoimax (configure.ac): Likewise.
52190         * modules/strtoumax (configure.ac): Likewise.
52191
52192 2007-02-17  Bruno Haible  <bruno@clisp.org>
52193
52194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52195         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52196         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52197         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52198
52199 2007-02-17  Bruno Haible  <bruno@clisp.org>
52200
52201         * modules/link-warning: New file.
52202         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52203         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52204         * modules/string (Depends-on): Add link-warning.
52205         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52206         string.h.
52207         * MODULES.html.sh (Support for building libraries and executables): Add
52208         link-warning.
52209
52210 2007-02-17  Bruno Haible  <bruno@clisp.org>
52211
52212         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52213         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52214         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52215         long lines.
52216
52217 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52218             Bruno Haible  <bruno@clisp.org>
52219
52220         * modules/tmpfile: New file.
52221         * lib/tmpfile.c: New file.
52222         * m4/tmpfile.m4: New file.
52223         * MODULES.html.sh (func_all_modules): New section "Input/output".
52224
52225 2007-02-15  Bruno Haible  <bruno@clisp.org>
52226
52227         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52228         (supports_delete_on_close): New function.
52229         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52230
52231 2007-02-14  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/mbspcasecmp-tests: New file.
52234         * tests/test-mbspcasecmp.sh: New file.
52235         * tests/test-mbspcasecmp.c: New file.
52236
52237         New module mbspcasecmp.
52238         * modules/mbspcasecmp: New file.
52239         * lib/mbspcasecmp.c: New file.
52240         * lib/string_.h (strncasecmp): Change warning message.
52241         (mbspcasecmp): New declaration.
52242         * m4/mbspcasecmp.m4: New file.
52243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52244         GNULIB_MBSPCASECMP.
52245         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52246         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52247
52248 2007-02-14  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/mbsncasecmp-tests: New file.
52251         * tests/test-mbsncasecmp.sh: New file.
52252         * tests/test-mbsncasecmp.c: New file.
52253
52254         New module mbsncasecmp.
52255         * modules/mbsncasecmp: New file.
52256         * lib/mbsncasecmp.c: New file.
52257         * lib/string_.h (mbsncasecmp): New declaration.
52258         * m4/mbsncasecmp.m4: New file.
52259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52260         GNULIB_MBSNCASECMP.
52261         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52262         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52263
52264 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52265
52266         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52267         Verify that it doesn't overlap with our flags.
52268         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52269         do not have the desired effect in multibyte locales; instead, use
52270         mbscasecmp.
52271         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52272         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52273         we don't require GNU fnmatch ourselves (if our users require it, they
52274         should do so explicitly).
52275
52276         Fix regex code so it doesn't rely on strcasecmp.
52277         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52278         Otherwise, include gnulib's langinfo.h.
52279         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52280         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52281         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52282         * modules/regex (FILES): Remove m4/codeset.m4.
52283         (Depends-on): Add localcharset.  Remove strcase.
52284
52285 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52286
52287         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52288         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52289
52290 2007-02-13  Bruno Haible  <bruno@clisp.org>
52291
52292         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52294
52295 2007-02-12  Bruno Haible  <bruno@clisp.org>
52296
52297         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52298         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52299         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52300         time warning rather than a link error.
52301
52302 2007-02-12  Bruno Haible  <bruno@clisp.org>
52303
52304         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52305         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52307
52308 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52309
52310         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52311         args, not 2.
52312
52313 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         New module 'time', so that apps can include <time.h> as per
52316         POSIX and GNU instead of separate include files like time_r.h
52317         and timegm.h.  This implementation tries out a simpler approach
52318         for replacing decls in standard include files (as compared to
52319         the string module), somewhat as an experiment.
52320
52321         * config/srclist.txt: Comment out mktime.c for now.
52322         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52323         since it doesn't apply any more.  Use generic wording instead.
52324         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52325         'time'.
52326         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52327         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52328         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52329         Don't include <sys/types.h>; no longer needed since we assume C89.
52330         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52331         * lib/strftime.c: Likewise.
52332         * lib/time_r.c: Likewise.
52333         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52334         * lib/nanosleep.c: Include <time.h> first, to check interface.
52335         * lib/strptime.c: Likewise.
52336         * lib/time_r.c: Likewise.
52337         * lib/timegm.c: Likewise.
52338         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52339         needed.
52340         * lib/timegm.c: Don't include timegm.h; no longer needed.
52341         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52342         time.h now handles any problems in that area.
52343         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52344         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52345         that time.h defines struct timespec.
52346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52347         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52348         handles that.
52349         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52350         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52351         needed.  Set REPLACE_LOCALTIME.
52352         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52353         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52354         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52355         nanosleep; time_h.m4 now does that.  Don't require
52356         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52357         module handles this now.
52358         * modules/getdate (Depends-on): Remove timespec.  Add time.
52359         * modules/nanosleep (Depends-on): Likewise.
52360         * modules/stat-time (Depends-on): Likewise.
52361         * modules/nanosleep (Include): Include time.h, not timespec.h.
52362         * modules/strptime (Files): Remove lib/strptime.h.
52363         (Depends-on): Add extensions, time.
52364         (Include): Include time.h, not strptime.h.
52365         * modules/time_r (Files): Remove lib/time_r.h.
52366         (Depends-on): Add time.
52367         (Include): Include time.h, not time_r.h.
52368         * modules/timegm: Likewise.
52369         * modules/timespec (Description): Now does timespec-related decls
52370         of our own, instead of struct timespec itself.
52371         (Depends-on): Add time; remove extensions.
52372         (Maintainer): Add self.
52373         * modules/utimecmp (Depends-on): Add time; remove timespec.
52374         * modules/utimens (Depends-on): Likewise.
52375         * modules/xnanosleep (Depends-on): Likewise.
52376
52377 2007-02-11  Bruno Haible  <bruno@clisp.org>
52378
52379         * lib/c-strstr.c: Include allocsa.h.
52380         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52381         * lib/c-strcasestr.c: Include allocsa.h.
52382         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52383         * lib/strcasestr.c: Include allocsa.h.
52384         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52385         * lib/mbsstr.c: Include allocsa.h.
52386         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52387         allocsa/freesa instead of malloc/free.
52388         * lib/mbscasestr.c: Include allocsa.h.
52389         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52390         allocsa/freesa instead of malloc/free.
52391         * modules/c-strstr (Depends-on): Add allocsa.
52392         * modules/c-strcasestr (Depends-on): Likewise.
52393         * modules/strcasestr (Depends-on): Likewise.
52394         * modules/mbsstr (Depends-on): Likewise.
52395         * modules/mbscasestr (Depends-on): Likewise.
52396
52397 2007-02-11  Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52400
52401         * modules/mbsspn-tests: New file.
52402         * tests/test-mbsspn.sh: New file.
52403         * tests/test-mbsspn.c: New file.
52404
52405 2007-02-11  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52408
52409         * modules/mbspbrk-tests: New file.
52410         * tests/test-mbspbrk.sh: New file.
52411         * tests/test-mbspbrk.c: New file.
52412
52413 2007-02-11  Bruno Haible  <bruno@clisp.org>
52414
52415         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52416         unneeded cast.
52417
52418         * modules/mbscspn-tests: New file.
52419         * tests/test-mbscspn.sh: New file.
52420         * tests/test-mbscspn.c: New file.
52421
52422 2007-02-11  Bruno Haible  <bruno@clisp.org>
52423
52424         * modules/mbscasecmp-tests: New file.
52425         * tests/test-mbscasecmp.sh: New file.
52426         * tests/test-mbscasecmp.c: New file.
52427
52428 2007-02-11  Bruno Haible  <bruno@clisp.org>
52429
52430         Ensure O(n) worst-case complexity of mbscasestr.
52431         * lib/mbscasestr.c: Include stdbool.h.
52432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52433         functions.
52434         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52435         the bookkeeping indicates that it's worth it.
52436         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52437
52438         * modules/mbscasestr-tests: New file.
52439         * tests/test-mbscasestr1.c: New file.
52440         * tests/test-mbscasestr2.sh: New file.
52441         * tests/test-mbscasestr2.c: New file.
52442         * tests/test-mbscasestr3.sh: New file.
52443         * tests/test-mbscasestr3.c: New file.
52444         * tests/test-mbscasestr4.sh: New file.
52445         * tests/test-mbscasestr4.c: New file.
52446         * m4/locale-tr.m4: New file.
52447
52448 2007-02-11  Bruno Haible  <bruno@clisp.org>
52449
52450         Ensure O(n) worst-case complexity of mbsstr.
52451         * lib/mbsstr.c: Include stdbool.h.
52452         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52453         functions.
52454         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52455         bookkeeping indicates that it's worth it.
52456         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52457
52458         * modules/mbsstr-tests: New file.
52459         * tests/test-mbsstr1.c: New file.
52460         * tests/test-mbsstr2.sh: New file.
52461         * tests/test-mbsstr2.c: New file.
52462         * tests/test-mbsstr3.sh: New file.
52463         * tests/test-mbsstr3.c: New file.
52464         * m4/locale-fr.m4: New file.
52465
52466 2007-02-11  Bruno Haible  <bruno@clisp.org>
52467
52468         * lib/mbsrchr.c (mbsrchr): Fix bug.
52469
52470         * modules/mbsrchr-tests: New file.
52471         * tests/test-mbsrchr.sh: New file.
52472         * tests/test-mbsrchr.c: New file.
52473
52474 2007-02-11  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/mbschr.c (mbschr): Fix bug.
52477
52478         * modules/mbschr-tests: New file.
52479         * tests/test-mbschr.sh: New file.
52480         * tests/test-mbschr.c: New file.
52481         * m4/locale-zh.m4: New file.
52482
52483 2007-02-11  Bruno Haible  <bruno@clisp.org>
52484
52485         Support for copying multibyte string iterators.
52486         * lib/mbiter.h: Include <string.h>.
52487         (mbiter_multi_copy): New function.
52488         (mbi_copy): New macro.
52489         * lib/mbuiter.h: Include <string.h>.
52490         (mbuiter_multi_copy): New function.
52491         (mbui_copy): New macro.
52492
52493 2007-02-11  Bruno Haible  <bruno@clisp.org>
52494
52495         New module mbslen.
52496         * modules/mbslen: New file.
52497         * lib/mbslen.c: New file.
52498         * lib/string_.h (mbslen): New declaration.
52499         * m4/mbslen.m4: New file.
52500         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52501         GNULIB_MBSLEN.
52502         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52503         * MODULES.html.sh (Internationalization functions): Add mbslen.
52504
52505 2007-02-11  Bruno Haible  <bruno@clisp.org>
52506
52507         Ensure O(n) worst-case complexity of strcasestr substitute.
52508         * lib/strcasestr.c: Include stdbool.h.
52509         (knuth_morris_pratt): New function.
52510         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52511         bookkeeping indicates that it's worth it.
52512         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52513
52514         * modules/strcasestr-tests: New file.
52515         * tests/test-strcasestr.c: New file.
52516
52517 2007-02-11  Bruno Haible  <bruno@clisp.org>
52518
52519         Ensure O(n) worst-case complexity of c_strcasestr.
52520         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52521         (knuth_morris_pratt): New function.
52522         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52523         the bookkeeping indicates that it's worth it.
52524         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52525
52526         * modules/c-strcasestr-tests: New file.
52527         * tests/test-c-strcasestr.c: New file.
52528
52529 2007-02-11  Bruno Haible  <bruno@clisp.org>
52530
52531         Ensure O(n) worst-case complexity of c_strstr.
52532         * lib/c-strstr.c: Include stdbool.h, string.h.
52533         (knuth_morris_pratt): New function.
52534         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52535         bookkeeping indicates that it's worth it.
52536         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52537
52538         * lib/c-strstr.c: Complete rewrite for maintainability.
52539
52540         * modules/c-strstr-tests: New file.
52541         * tests/test-c-strstr.c: New file.
52542
52543 2007-02-11  Bruno Haible  <bruno@clisp.org>
52544
52545         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52546         5.2.1 and earlier, whereby \055 was treated just like the range
52547         delimiter '-'.
52548         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52549
52550 2007-02-08  Bruno Haible  <bruno@clisp.org>
52551
52552         * modules/regex (Depends-on): Add stdbool.
52553         Reported by Dalibor Topic <robilad@kaffe.org>.
52554
52555 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52556
52557         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52558         Prefer returning from main to exiting from it.
52559         Remove unnecessary parens after sizeof.
52560
52561 2007-02-05  Bruno Haible  <bruno@clisp.org>
52562
52563         New module mbssep.
52564         * modules/mbssep: New file.
52565         * lib/mbssep.c: New file.
52566         * lib/string_.h (strsep): Add a conditional link warning.
52567         (mbssep): New declaration.
52568         * m4/mbssep.m4: New file.
52569         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52570         GNULIB_MBSSEP.
52571         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52572         * MODULES.html.sh (Internationalization functions): Add mbssep.
52573
52574 2007-02-05  Bruno Haible  <bruno@clisp.org>
52575
52576         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52577         Optimize search in case of 1 delimiter.
52578
52579 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52580
52581         * lib/acl.h: Include sys/types.h before sys/acl.h.
52582
52583 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52584
52585         Merge upstream fix for glibc bugzilla #3957:
52586
52587         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52588
52589         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52590         bit for RE_HAT_LISTS_NOT_NEWLINE.
52591         (build_charclass_op): Remove bogus comment.
52592
52593 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52594
52595         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52596
52597 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52598
52599         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52600         * lib/memmem.c [!defined _LIBC]: Include config.h.
52601
52602 2007-02-04  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52605         warning message.
52606
52607 2007-02-04  Bruno Haible  <bruno@clisp.org>
52608
52609         New module mbstok_r.
52610         * modules/mbstok_r: New file.
52611         * lib/mbstok_r.c: New file.
52612         * lib/string_.h (strtok_r): Change argument names to match the
52613         comments. Add a conditional link warning.
52614         (mbstok_r): New declaration.
52615         * m4/mbstok_r.m4: New file.
52616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52617         GNULIB_MBSTOK_R.
52618         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52619         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52620
52621 2007-02-04  Bruno Haible  <bruno@clisp.org>
52622
52623         New module mbsspn.
52624         * modules/mbsspn: New file.
52625         * lib/mbsspn.c: New file.
52626         * lib/string_.h (strspn): Add a conditional link warning.
52627         (mbsspn): New declaration.
52628         * m4/mbsspn.m4: New file.
52629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52630         GNULIB_MBSSPN.
52631         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52632         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52633
52634 2007-02-04  Bruno Haible  <bruno@clisp.org>
52635
52636         New module mbspbrk.
52637         * modules/mbspbrk: New file.
52638         * lib/mbspbrk.c: New file.
52639         * lib/string_.h (strpbrk): Add a conditional link warning.
52640         (mbspbrk): New declaration.
52641         * m4/mbspbrk.m4: New file.
52642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52643         GNULIB_MBSPBRK.
52644         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52645         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52646
52647 2007-02-04  Bruno Haible  <bruno@clisp.org>
52648
52649         New module mbscspn.
52650         * modules/mbscspn: New file.
52651         * lib/mbscspn.c: New file.
52652         * lib/string_.h (strcspn): Add a conditional link warning.
52653         (mbscspn): New declaration.
52654         * m4/mbscspn.m4: New file.
52655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52656         GNULIB_MBSCSPN.
52657         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52658         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52659
52660 2007-02-04  Bruno Haible  <bruno@clisp.org>
52661
52662         New module mbscasestr, reduced goal of strcasestr.
52663         * modules/mbscasestr: New file.
52664         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52665         (mbscasestr): Renamed from strcasestr.
52666         * lib/strcasestr.c: Don't include mbuiter.h.
52667         (strcasestr): Remove support for multibyte locales.
52668         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52669         Change the conditional link warning.
52670         (mbscasestr): New declaration.
52671         * m4/mbscasestr.m4: New file.
52672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52673         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52674         REPLACE_STRCASESTR.
52675         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52677         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52679         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52680         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52681         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52682         (Depends-on): Remove mbuiter.
52683         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52684
52685 2007-02-04  Bruno Haible  <bruno@clisp.org>
52686
52687         Simplify handling of strncasecmp.
52688         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52689         the conditional link warning.
52690         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52691         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52692         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52693         * modules/strcase (configure.ac): Don't invoke
52694         gl_STRING_MODULE_INDICATOR.
52695         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52696
52697 2007-02-04  Bruno Haible  <bruno@clisp.org>
52698
52699         New module mbscasecmp, reduced goal of strcasecmp.
52700         * modules/mbscasecmp: New file.
52701         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52702         (mbscasecmp): Renamed from strcasecmp.
52703         * lib/strcasecmp.c: Don't include mbuiter.h.
52704         (strcasecmp): Remove support for multibyte locales.
52705         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52706         Change the conditional link warning.
52707         (mbscasecmp): New declaration.
52708         * m4/mbscasecmp.m4: New file.
52709         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52710         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52711         REPLACE_STRCASECMP.
52712         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52714         GNULIB_MBSCASECMP.
52715         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52716         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52717         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52718         (Depends-on): Remove mbuiter.
52719         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52720
52721 2007-02-04  Bruno Haible  <bruno@clisp.org>
52722
52723         New module mbsstr. Remove module strstr.
52724         * modules/mbsstr: New file.
52725         * modules/strstr: Remove file.
52726         * lib/mbsstr.c: Renamed from lib/strstr.c.
52727         (mbsstr): Renamed from strstr.
52728         * lib/string_.h (strstr): Remove declaration. Change the conditional
52729         link warning.
52730         (mbsstr): New declaration.
52731         * m4/mbsstr.m4: New file.
52732         * m4/strstr.m4: Remove file.
52733         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52734         REPLACE_STRSTR.
52735         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52736         Don't initialize GNULIB_STRSTR.
52737         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52738         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52739         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52740         (Support for systems lacking ANSI C 89): Remove strstr.
52741
52742 2007-02-04  Bruno Haible  <bruno@clisp.org>
52743
52744         New module mbsrchr.
52745         * modules/mbsrchr: New file.
52746         * lib/mbsrchr.c: New file.
52747         * lib/string_.h (strrchr): Add a conditional link warning.
52748         (mbsrchr): New declaration.
52749         * m4/mbsrchr.m4: New file.
52750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52751         GNULIB_MBSRCHR.
52752         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52753         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52754
52755 2007-02-04  Bruno Haible  <bruno@clisp.org>
52756
52757         New module mbschr.
52758         * modules/mbschr: New file.
52759         * lib/mbschr.c: New file.
52760         * lib/string_.h (strchr): Add a conditional link warning.
52761         (mbschr): New declaration.
52762         * m4/mbschr.m4: New file.
52763         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52764         GNULIB_MBSCHR.
52765         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52766         * MODULES.html.sh (Internationalization functions): Add mbschr.
52767
52768 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52771
52772         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52773
52774 2007-02-04  Bruno Haible  <bruno@clisp.org>
52775
52776         New module description section 'configure.ac-early'.
52777         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52778         (func_get_autoconf_early_snippet): New function.
52779         (func_import, func_create_testdir): Use it. Remove special cases for
52780         modules 'extensions' and 'lock'.
52781         * modules/extensions (configure.ac-early): Require
52782         gl_USE_SYSTEM_EXTENSIONS.
52783         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52784
52785 2007-02-04  Bruno Haible  <bruno@clisp.org>
52786
52787         Make use of gcj-4.3's -fsource and -ftarget option.
52788         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52789         and if so try the options -fsource and -ftarget.
52790         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52791         source_version, ftarget_option, target_version arguments.
52792         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52793         (is_envjavac_oldgcj_14_14_usable): Renamed from
52794         is_envjavac_gcj_14_14_usable.
52795         (is_envjavac_oldgcj_14_13_usable): Renamed from
52796         is_envjavac_gcj_14_13_usable.
52797         (is_gcj_present): Update.
52798         (is_gcj_43, is_gcj43_usable): New functions.
52799         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52800         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52801         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52802         try the options -fsource and -ftarget.
52803
52804 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52805
52806         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52807         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52808         larger value.
52809
52810 2007-02-03  Jim Meyering  <jim@meyering.net>
52811
52812         Give tools a better chance to allocate space for very large buffers.
52813         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52814
52815         Make pwd and readlink work also when run with an unreadable parent dir
52816         on systems with openat support.
52817         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52818         provided getcwd function, even when we have openat support.
52819         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52820
52821 2007-02-02  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52824         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52825         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52826         portability problems if one of these functions is only used on specific
52827         platforms.
52828         Reported by Paul Eggert.
52829
52830 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52831
52832         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52833         is causing more trouble than it's curing.
52834         * lib/regex_internal.h (__mempcpy): Remove.
52835         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52836         (and make the code a tad smaller to boot).
52837         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52838
52839 2007-02-02  Jim Meyering  <jim@meyering.net>
52840
52841         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52842         section, not in the Makefile.am: one.
52843
52844 2007-02-02  Eric Blake  <ebb9@byu.net>
52845
52846         * lib/strchrnul.c: Always include config.h first.
52847
52848         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52849         gnulib strstr is not necessary here.
52850
52851 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52852
52853         * m4/socklen.m4: Fix typo.
52854
52855 2007-02-02  Eric Blake  <ebb9@byu.net>
52856
52857         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52858         * modules/netinet_in (Makefile.am): Likewise.
52859
52860 2007-02-01  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/string_.h (GL_LINK_WARNING): New macro.
52863         (strcasecmp, strstr, strcasestr): If provided by the system,
52864         conditionally define as a macro that leads to a warning instead of to
52865         an error.
52866         (strncasecmp): Conditionally define as a macro that leads to a warning.
52867
52868 2007-02-01  Karl Berry  <karl@gnu.org>
52869
52870         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52871
52872 2007-02-01  Bruno Haible  <bruno@clisp.org>
52873
52874         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52875         renamings.
52876
52877 2007-02-01  Eric Blake  <ebb9@byu.net>
52878
52879         * modules/regex (Depends-on): Revert dependence on mempcpy.
52880         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52881         module's definition of mempcpy.
52882         Reported by Paul Eggert.
52883
52884 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52887         the symbol XYZ before redefining it.  This fixes a problem with
52888         programs that don't use XYZ, when compiled on systems that define
52889         XYZ to something else.
52890
52891 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52892
52893         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52894         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52895         writeable to group or other and (2) is intended to have a special
52896         mode bit that is set or cleared.  In such a case, the directory
52897         should be neither group- nor other-writeable until the special
52898         mode bits are right.
52899
52900 2007-01-31  Eric Blake  <ebb9@byu.net>
52901
52902         * modules/mountlist (Depends-on): Add strstr.
52903
52904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52905         bug.
52906         * modules/string (Makefile.am): Remove redundant replacement.
52907         * modules/regex (Depends-on): Add mempcpy.
52908
52909 2007-01-31  Bruno Haible  <bruno@clisp.org>
52910
52911         New module description field 'Link'.
52912         * gnulib-tool (func_usage): Document --extract-link-directive.
52913         (sed_extract_prog): Recognize 'Link' directive.
52914         (func_get_link_directive): New function.
52915         (func_import): Show summary of link directives.
52916         Handle --extract-link-directive option.
52917         * modules/acl (Link): New section.
52918         * modules/clock-time (Link): New section.
52919         * modules/euidaccess (Link): New section.
52920         * modules/gettext (Link): New section.
52921         * modules/iconv (Link): New section.
52922         * modules/lock (Link): New section.
52923         * modules/nanosleep (Link): New section.
52924         * modules/readline (Link): New section.
52925
52926 2007-01-27  Bruno Haible  <bruno@clisp.org>
52927
52928         Enforce the use of gnulib modules for unportable <string.h> functions.
52929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52930         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52931         (gl_HEADER_STRING_H_BODY): Require it.
52932         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52933         the symbol XYZ to one that gives a link error.
52934         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52935         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52936         * modules/mempcpy (configure.ac): Likewise.
52937         * modules/memrchr (configure.ac): Likewise.
52938         * modules/stpcpy (configure.ac): Likewise.
52939         * modules/stpncpy (configure.ac): Likewise.
52940         * modules/strcase (configure.ac): Likewise.
52941         * modules/strcasestr (configure.ac): Likewise.
52942         * modules/strchrnul (configure.ac): Likewise.
52943         * modules/strdup (configure.ac): Likewise.
52944         * modules/strndup (configure.ac): Likewise.
52945         * modules/strnlen (configure.ac): Likewise.
52946         * modules/strpbrk (configure.ac): Likewise.
52947         * modules/strsep (configure.ac): Likewise.
52948         * modules/strstr (configure.ac): Likewise.
52949         * modules/strtok_r (configure.ac): Likewise.
52950
52951 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52952
52953         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52954
52955 2007-01-30  Jim Meyering  <jim@meyering.net>
52956
52957         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52958
52959 2007-01-29  Bruno Haible  <bruno@clisp.org>
52960
52961         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52962         * lib/execute.c: Likewise.
52963         * lib/pipe.c: Likewise.
52964         * lib/printf-args.h: Likewise.
52965         * lib/printf-args.c: Likewise.
52966         * lib/printf-parse.c: Likewise.
52967         * lib/vasnprintf.c: Likewise.
52968
52969 2007-01-29  Eric Blake  <ebb9@byu.net>
52970
52971         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52972         declaration.
52973
52974 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52975
52976         * lib/strptime.h (strptime): Use 'restrict' for args where
52977         POSIX requires this.
52978         * lib/strptime.c (strptime): Likewise.
52979         Change license notice from LGPL to GPL, since gnulib-tool will
52980         change this as needed.
52981         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52982         defined.
52983         Include "strptime.h" first, to check interface.
52984         Do not #undef _LIBC and _NL_CURRENT.
52985         Do not include <stdlib.h>; no longer needed.
52986         Include "time_r.h" and declare ptime_locale_status
52987         only if _LIBC is not defined.
52988         (__P): Remove unused macro.
52989         (match_string): Bring back glibc version, but use it only if _LIBC
52990         is defined.
52991         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52992         Remove unnecessary assertion and abort() call.
52993         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52994         * m4/strptime.m4: Fix serial number comment.
52995         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52996         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52997         (Depends-on): Add time_r.
52998
52999 2007-01-29  Bruno Haible  <bruno@clisp.org>
53000
53001         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53002         strptime.
53003         * modules/strptime (Depends-on): Add stdbool.
53004         * lib/strptime.h: Include <time.h> always. Add comments.
53005
53006 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53007
53008         * modules/strptime: New file.
53009         * lib/strptime.h: New file.
53010         * lib/strptime.c: New file.
53011         * m4/strptime.m4: New file.
53012
53013 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * MODULES.html.sh: New module mpsort.
53016         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53017
53018         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53019         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53021         All uses changed.
53022         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53023         All uses changed.
53024         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53025         to _Restrict_.
53026         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53027         the parameter matches the prototype.
53028
53029 2007-01-28  Jim Meyering  <jim@meyering.net>
53030
53031         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53032         sys/time.h here, reverting that part of the previous patch:
53033         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53034
53035 2007-01-28  Bruno Haible  <bruno@clisp.org>
53036
53037         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53038         value of $(SYS_TIME_H).
53039         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53040         remove it conditionally, too. [added by Jim Meyering]
53041         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53042         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53043         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53044         GETTIMEOFDAY_REPLACEMENT to 1.
53045
53046 2007-01-28  Bruno Haible  <bruno@clisp.org>
53047
53048         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53049         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53051         Set UNISTD_H instead of UNISTD_H2.
53052         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53053
53054 2007-01-28  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53057         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53058
53059 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53060
53061         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53062         (func_create_testdir): Ensure C locale for `grep' and `tr'
53063         character ranges.
53064         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53065         ACLOCAL_AMFLAGS parsing state machine.
53066
53067 2007-01-27  Bruno Haible  <bruno@clisp.org>
53068
53069         * modules/unistr/base: Update.
53070
53071 2007-01-27  Bruno Haible  <bruno@clisp.org>
53072
53073         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53074         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53075         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53076         modules/unistr/u32-mbtouc.
53077         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53078         * lib/unistr.h: Update.
53079         * lib/linebreak.c: Update.
53080         * modules/unistr/u32-mbtouc: Renamed from
53081         modules/unistr/u32-mbtouc-safe.
53082         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53083         * lib/unistr.h: Update.
53084         * lib/unistr/u32-to-u8.c: Update.
53085         * lib/unistr/u32-to-u16.c: Update.
53086
53087 2007-01-27  Bruno Haible  <bruno@clisp.org>
53088
53089         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53090         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53091         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53092         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53093         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53094         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53095         modules/unistr/u16-mbtouc.
53096         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53097         * lib/unistr.h: Update.
53098         * lib/linebreak.c: Update.
53099         * modules/linebreak: Update.
53100         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53101         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53102         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53103         * modules/unistr/u16-mbtouc: Renamed from
53104         modules/unistr/u16-mbtouc-safe.
53105         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53106         * lib/unistr.h: Update.
53107         * lib/unistr/u16-to-u8.c: Update.
53108         * modules/unistr/u16-to-u8: Update.
53109         * lib/unistr/u16-to-u32.c: Update.
53110         * modules/unistr/u16-to-u32: Update.
53111
53112 2007-01-27  Bruno Haible  <bruno@clisp.org>
53113
53114         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53115         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53116         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53117         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53118         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53119         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53120         modules/unistr/u8-mbtouc.
53121         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53122         * lib/unistr.h: Update.
53123         * lib/striconveh.c: Update.
53124         * modules/striconveh: Update.
53125         * lib/linebreak.c: Update.
53126         * modules/linebreak: Update.
53127         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53128         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53129         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53130         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53131         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53132         * lib/unistr.h: Update.
53133         * lib/striconveh.c: Update.
53134         * modules/striconveh: Update.
53135         * lib/unistr/u8-to-u16.c: Update.
53136         * modules/unistr/u8-to-u16: Update.
53137         * lib/unistr/u8-to-u32.c: Update.
53138         * modules/unistr/u8-to-u32: Update.
53139
53140 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53141
53142         Sync from Libtool.
53143         * lib/argz.c: Do not include strings.h nor memory.h, include
53144         string.h unconditionally.  Patch by Simon Josefsson.
53145
53146 2007-01-27  Bruno Haible  <bruno@clisp.org>
53147
53148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53149         from gl_HEADER_STRING_H_BODY.
53150         (gl_HEADER_STRING_H_BODY): Require it.
53151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53155         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53156         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53158         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53159         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53160         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53161         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53162         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53163         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53166
53167 2007-01-27  Bruno Haible  <bruno@clisp.org>
53168
53169         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53170         check_PROGRAMS into noinst_PROGRAMS.
53171         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53172         check_PROGRAMS in this case.
53173         (func_import): Set for_test to false.
53174         (func_create_testdir): Set for_test to true.
53175
53176 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53177             Bruno Haible  <bruno@clisp.org>
53178
53179         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53180         (Depends-on): Add string.
53181         (Includes): Use <string.h> instead of strcasestr.h.
53182         * modules/string (Makefile.am): Also substitute the value of
53183         REPLACE_STRCASESTR.
53184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53185         assume strcasestr is declared in <string.h> not <strings.h>. Also
53186         set REPLACE_STRCASESTR.
53187         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53188         REPLACE_STRCASESTR.
53189         * lib/strcasestr.h: Remove file.
53190         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53191         * lib/string_.h (strcasestr): New declaration.
53192
53193 2007-01-27  Bruno Haible  <bruno@clisp.org>
53194
53195         * lib/string_.h: Use 'extern'.
53196
53197 2007-01-27  Jim Meyering  <jim@meyering.net>
53198
53199         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53200         of set-but-not-used local, "q".
53201
53202         * lib/mempcpy.c: Include <config.h> before <string.h>.
53203         This fixes a compilation error on HP-UX, due to the system's
53204         "restrict"-using mempcpy prototype.
53205
53206 2007-01-26  Bruno Haible  <bruno@clisp.org>
53207
53208         Small optimization.
53209         * lib/javacomp.c: Include c-strstr.h.
53210          (is_envjavac_gcj): Use c_strstr instead of strstr.
53211         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53212
53213 2007-01-26  Bruno Haible  <bruno@clisp.org>
53214
53215         * MODULES.html.sh (Unicode string functions): Add the new modules.
53216
53217         * modules/uniconv/u32-strconv-to-locale: New file.
53218         * lib/uniconv/u32-strconv-to-locale.c: New file.
53219
53220         * modules/uniconv/u16-strconv-to-locale: New file.
53221         * lib/uniconv/u16-strconv-to-locale.c: New file.
53222
53223         * modules/uniconv/u8-strconv-to-locale: New file.
53224         * lib/uniconv/u8-strconv-to-locale.c: New file.
53225
53226         * modules/uniconv/u32-strconv-from-locale: New file.
53227         * lib/uniconv/u32-strconv-from-locale.c: New file.
53228
53229         * modules/uniconv/u16-strconv-from-locale: New file.
53230         * lib/uniconv/u16-strconv-from-locale.c: New file.
53231
53232         * modules/uniconv/u8-strconv-from-locale: New file.
53233         * lib/uniconv/u8-strconv-from-locale.c: New file.
53234
53235         * modules/uniconv/u32-strconv-to-enc: New file.
53236         * lib/uniconv/u32-strconv-to-enc.c: New file.
53237         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53238         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53239
53240         * modules/uniconv/u16-strconv-to-enc: New file.
53241         * lib/uniconv/u16-strconv-to-enc.c: New file.
53242         * lib/uniconv/u-strconv-to-enc.h: New file.
53243         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53244         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53245
53246         * modules/uniconv/u8-strconv-to-enc: New file.
53247         * lib/uniconv/u8-strconv-to-enc.c: New file.
53248         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53249         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53250
53251         * modules/uniconv/u32-strconv-from-enc: New file.
53252         * lib/uniconv/u32-strconv-from-enc.c: New file.
53253         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53254         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53255
53256         * modules/uniconv/u16-strconv-from-enc: New file.
53257         * lib/uniconv/u16-strconv-from-enc.c: New file.
53258         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53259         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53260
53261         * modules/uniconv/u8-strconv-from-enc: New file.
53262         * lib/uniconv/u8-strconv-from-enc.c: New file.
53263         * lib/uniconv/u-strconv-from-enc.h: New file.
53264         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53265         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53266
53267         * modules/uniconv/u32-conv-from-enc: New file.
53268         * lib/uniconv/u32-conv-from-enc.c: New file.
53269         * modules/uniconv/u32-conv-from-enc-tests: New file.
53270         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53271
53272         * modules/uniconv/u16-conv-from-enc: New file.
53273         * lib/uniconv/u16-conv-from-enc.c: New file.
53274         * lib/uniconv/u-conv-from-enc.h: New file.
53275         * modules/uniconv/u16-conv-from-enc-tests: New file.
53276         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53277
53278         * modules/uniconv/u8-conv-from-enc: New file.
53279         * lib/uniconv/u8-conv-from-enc.c: New file.
53280         * modules/uniconv/u8-conv-from-enc-tests: New file.
53281         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53282
53283         * modules/uniconv/base: New file.
53284         * lib/uniconv.h: New file.
53285
53286 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53287
53288         * doc/gnulib-tool.texi (Initial import): Update to match current
53289         behavior with strdup module.
53290         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53291         * lib/memmem.h: Remove; all uses removed.  This is now done
53292         by <string.h>.
53293         * lib/mempcpy.h: Likewise.
53294         * lib/memrchr.h: Likewise.
53295         * lib/stpcpy.h: Likewise.
53296         * lib/stpncpy.h: Likewise.
53297         * lib/strcase.h: Likewise.
53298         * lib/strchrnul.h: Likewise.
53299         * lib/strdup.h: Likewise.
53300         * lib/strndup.h: Likewise.
53301         * lib/strnlen.h: Likewise.
53302         * lib/strpbrk.h: Likewise.
53303         * lib/strsep.h: Likewise.
53304         * lib/strstr.h: Likewise.
53305         * lib/strtok_r.h: Likewise.
53306         * lib/string_.h: New file.
53307         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53308         Rely on <string.h> instead.
53309         * lib/canon-host.c: Likewise.
53310         * lib/chdir-long.c: Likewise.
53311         * lib/concatpath.c: Likewise.
53312         * lib/exclude.c: Likewise.
53313         * lib/fchdir.c: Likewise.
53314         * lib/getaddrinfo.c: Likewise.
53315         * lib/getcwd.c: Likewise.
53316         * lib/getsubopt.c: Likewise.
53317         * lib/glob.c: Likewise.
53318         * lib/hard-locale.c: Likewise.
53319         * lib/iconvme.c: Likewise.
53320         * lib/javacomp.c: Likewise.
53321         * lib/mempcpy.c: Likewise.
53322         * lib/memrchr.c: Likewise.
53323         * lib/regex_internal.h: Likewise.
53324         * lib/stpncpy.c: Likewise.
53325         * lib/strcasecmp.c: Likewise.
53326         * lib/strchrnul.c: Likewise.
53327         * lib/strdup.c: Likewise.
53328         * lib/striconv.c: Likewise.
53329         * lib/striconveh.c: Likewise.
53330         * lib/striconveha.c: Likewise.
53331         * lib/strncasecmp.c: Likewise.
53332         * lib/strndup.c: Likewise.
53333         * lib/strnlen.c: Likewise.
53334         * lib/strsep.c: Likewise.
53335         * lib/strstr.c: Likewise.
53336         * lib/strtok_r.c: Likewise.
53337         * lib/userspec.c: Likewise.
53338         * lib/w32spawn.h: Likewise.
53339         * lib/xstrndup.c: Likewise.
53340         * lib/mountlist.c (strstr): Remove decl.
53341         * m4/string_h.m4: New file.
53342         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53343         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53344         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53345         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53346         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53347         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53348         Set REPLACE_STRCASECMP if necessary.
53349         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53350         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53351         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53352         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53353         HAVE_DECL_STRDUP if necessary.
53354         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53355         since gl_FUNC_STRNDUP does that now.
53356         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53357         Check for decl here...
53358         (gl_PREREQ_STRNLEN): ... not here.
53359         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53360         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53361         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53362         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53363         necessary.
53364         * modules/string: New file.
53365         * modules/memmem (Files): Remove special-purpose include file.
53366         (Depends-on): Add string.
53367         (Include): Include <string.h>, not the removed file.
53368         * modules/mempcpy: Likewise.
53369         * modules/memrchr: Likewise.
53370         * modules/stpcpy: Likewise.
53371         * modules/stpncpy: Likewise.
53372         * modules/strcase: Likewise.
53373         * modules/strchrnul: Likewise.
53374         * modules/strdup: Likewise.
53375         * modules/strndup: Likewise.
53376         * modules/strnlen: Likewise.
53377         * modules/strpbrk: Likewise.
53378         * modules/strsep: Likewise.
53379         * modules/strstr: Likewise.
53380         * modules/strtok_r: Likewise.
53381         * tests/test-dirname.c: Don't include "strdup.h", since
53382         <string.h> now suffices.
53383         * tests/test-memmem.c: Don't include "memmem.h", since
53384         <string.h> now suffices.
53385
53386 2007-01-25  Bruno Haible  <bruno@clisp.org>
53387
53388         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53389         *resultp is 0.
53390
53391         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53392         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53393         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53394         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53395
53396         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53397         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53398         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53399         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53400         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53401         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53402
53403 2007-01-24  Bruno Haible  <bruno@clisp.org>
53404
53405         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53406         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53407         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53408         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53409         gl_FUNC_FTS_CORE.
53410         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53411         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53413         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53414         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53415         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53416         gl_FUNC_FCHOWNAT.
53417         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53418         gl_FUNC_STRFTIME.
53419         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53420         Reported by Ralf Wildenhues.
53421
53422 2007-01-24  Bruno Haible  <bruno@clisp.org>
53423
53424         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53425         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53426         gl_GETADDRINFO.
53427         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53428         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53429         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53430
53431 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53432
53433         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53434         Don't use 'exit'; just return from 'main'.
53435         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53436
53437         * lib/fnmatch_.h: Readjust white space and comments to match
53438         glibc, to avoid spurious diffs.
53439
53440 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53443         2004-12-01 change by Jakub Jelinek, since this code won't compile
53444         if !LIBC.  Problem reported by Bob Proulx.
53445
53446 2007-01-23  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/striconveh.c: Include c-strcaseeq.h.
53449         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53450         * modules/striconveh (Depends-on): Add c-strcaseeq.
53451
53452 2007-01-23  Bruno Haible  <bruno@clisp.org>
53453
53454         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53455
53456         * modules/c-strcaseeq: New file.
53457         * lib/c-strcaseeq.h: New file.
53458
53459         * modules/streq: New file.
53460         * lib/streq.h: New file.
53461
53462 2007-01-23  Bruno Haible  <bruno@clisp.org>
53463
53464         * modules/striconveha-tests: New file.
53465         * tests/test-striconveha.c: New file.
53466
53467         * lib/striconveha.h: Include <stdbool.h>.
53468         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53469         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53470         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53471         (mem_iconveha): New function.
53472         (str_iconveha_notranslit): Renamed from str_iconveha.
53473         (str_iconveha): New function.
53474         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53475         c-strcase.
53476
53477 2007-01-23  Bruno Haible  <bruno@clisp.org>
53478
53479         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53480         encodings without forgiving before trying any encoding with handler.
53481         (str_iconveha): Try all encodings without forgiving before trying any
53482         encoding with handler.
53483
53484 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53485
53486         Import the following changes from libc.
53487
53488         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53489
53490         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53491
53492         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53493
53494         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53495         normal_bracket label.
53496
53497         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53498
53499         [BZ #361]
53500         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53501         to normal_bracket after fetching the next character.
53502
53503 2007-01-22  Bruno Haible  <bruno@clisp.org>
53504
53505         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53506         argument.
53507         * lib/striconveh.c (iconv_carefully_1): New function.
53508         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53509         argument.
53510         (str_cd_iconveh): Update.
53511         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53512         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53513         * tests/test-striconveh.c (MAGIC): New macro.
53514         (new_offsets): New function.
53515         (main): Test call with and without offsets.
53516
53517 2007-01-22  Bruno Haible  <bruno@clisp.org>
53518
53519         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53520         * modules/sys_select (Makefile.am): Likewise.
53521         * modules/sys_socket (Makefile.am): Likewise.
53522         * modules/sys_time (Makefile.am): Likewise.
53523
53524 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53525
53526         * modules/gettimeofday (License): Change from GPL to LGPL, since
53527         gettimeofday is a library function.
53528
53529 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53530
53531         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53532
53533 2007-01-21  Bruno Haible  <bruno@clisp.org>
53534
53535         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53536
53537 2007-01-21  Bruno Haible  <bruno@clisp.org>
53538
53539         * modules/striconveha: New file.
53540         * lib/striconveha.h: New file.
53541         * lib/striconveha.c: New file.
53542         * MODULES.html.sh (Internationalization functions): Add striconveha.
53543         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53544         string.
53545         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53546
53547 2007-01-21  Bruno Haible  <bruno@clisp.org>
53548
53549         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53550         * lib/striconveh.c (str_iconveh): Likewise.
53551
53552 2007-01-21  Bruno Haible  <bruno@clisp.org>
53553
53554         * lib/striconveh.h (mem_iconveh): New declaration.
53555         * lib/striconveh.c (mem_iconveh): New function.
53556         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53557
53558 2007-01-21  Bruno Haible  <bruno@clisp.org>
53559
53560         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53561
53562         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53563         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53564         original result buffer.
53565         (str_cd_iconveh): Update.
53566         * tests/test-striconveh.c (main): Update.
53567
53568         * lib/striconv.h (mem_cd_iconv): Change specification.
53569         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53570         result buffer.
53571         (str_cd_iconv): Update.
53572         * tests/test-striconv.c (main): Update.
53573
53574 2007-01-21  Bruno Haible  <bruno@clisp.org>
53575
53576         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53577
53578 2007-01-20  Jim Meyering  <jim@meyering.net>
53579
53580         * lib/userspec.c (parse_with_separator): If a user or group string
53581         starts with "+", skip the corresponding name-to-ID look-up, since
53582         such a look-up must fail: user and group names may not include "+".
53583
53584 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53587         since we now assume the sys_time module.
53588         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53589         check for sys/time.h; no longer needed.
53590         * modules/poll (Depends-on): Depend on sys_time.
53591
53592 2007-01-18  Bruno Haible  <bruno@clisp.org>
53593
53594         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53595         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53596
53597         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53598         gettimeofday.
53599
53600         * tests/test-gettimeofday.c: Include <time.h>.
53601         (dummy): Remove variable.
53602
53603         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53604         gl_HEADER_SYS_TIME_H.
53605         (gl_HEADER_SYS_TIME_H): New macro.
53606
53607         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53608         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53609         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53610         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53611         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53612         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53613         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53614         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53615         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53616         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53617         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53618
53619         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53620         last change; it caused a compilation error when cross-compiling to
53621         Cygwin.
53622
53623 2007-01-18  Jim Meyering  <jim@meyering.net>
53624
53625         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53626         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53627         than the race-prone "test -d sys || mkdir sys".
53628         (configure.ac): Use AC_PROG_MKDIR_P.
53629         * modules/sys_select: Likewise.
53630         * modules/sys_socket: Likewise.
53631         * modules/sys_time: Likewise.
53632
53633 2007-01-18  Eric Blake  <ebb9@byu.net>
53634
53635         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53636         replace gettimeofday.
53637         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53638         name, to avoid infinite recursion.
53639
53640 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53641
53642         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53643         module sys_time.
53644         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53645         assume timespec.h defines struct timeval.
53646         * lib/settime.c: Likewise.
53647         * lib/utimens.c: Likewise.
53648         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53649         since we now assume the gettimeofday module.
53650         * lib/tempname.c (__gen_tempname): Likewise.
53651         * lib/gettimeofday.h: Remove.
53652         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53653         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53654         Include <time.h>, for 'time()'.
53655         (localtime_buffer_addr): Also use this workaround if
53656         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53657         to simplify the uses.  All uses changed.
53658         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53659         that #undef is inside {}, and 'const' follows type name consistently.
53660         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53661         (gettimeofday): Do not use the maximum possible value for
53662         tv->tv_usec, since that might break usages other than ls.c.
53663         Instead, we'll leave ls.c alone.  This undoes today's patch
53664         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53665         we've never observed the problem but might as well keep the
53666         canary.
53667         * lib/nanosleep.c: Include timespec.h first, for interface check.
53668         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53669         now assume the sys_time module.
53670         * lib/tempname.c: Likewise.
53671         * lib/timespec.h: Likewise.
53672         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53673         needed.
53674         * lib/strftime.c: Likewise.
53675         * lib/timespec.h: Likewise.
53676         * lib/posixtm.c: Include posixtm.h first, for interface check.
53677         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53678         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53679         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53680         * lib/sys_time_.h: New file.
53681         * lib/timespec.h (struct timespec): Use long int, not long.
53682         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53683         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53684         Remove obsolescent call to AC_HEADER_TIME.
53685         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53688         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53689         Likewise.
53690         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53691         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53692         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53693         into the sys_time module.  Check for gettimeofday just once.
53694         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53695         for gettimeofday signature to just check the signature.  Merely
53696         compile it, since linking doesn't test signature.  Improve test for
53697         whether gettimeofday.o is actually needed.
53698         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53699         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53700         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53701         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53702         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53703         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53704         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53705         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53706         than worrying about sys/time.h.
53707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53708         Don't bother worrying about TIME_WITH_SYS_TIME.
53709         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53710         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53711         * m4/sys_time_h.m4: New file.
53712         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53713         Don't include sys/time.h.  Return from main rather than exiting.
53714         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53715         all uses changed.
53716         * modules/gethrxtime (Depends-on): Add sys_time.
53717         * modules/gettime (Depends-on): Likewise.
53718         * modules/gettimeofday (Depends-on): Likewise.
53719         * modules/nanosleep (Depends-on): Likewise.
53720         * modules/settime (Depends-on): Likewise.
53721         * modules/tempname (Depends-on): Likewise.
53722         * modules/utimens (Depends-on): Likewise.
53723         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53724         (Include:) Change back to <sys/time.h>.
53725         (Maintainer:) Add self.
53726         * modules/sys_time: New file.
53727         * modules/tempname (Depends-on): Add gettimeofday.
53728         * tests/test-gettimeofday.c: Include <sys/time.h>
53729         rather than gettimeofday.h.
53730
53731 2007-01-17  Bruno Haible  <bruno@clisp.org>
53732
53733         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53734         the license default to GPL.
53735         (func_create_testdir): Don't complain if a module is LGPL and its
53736         tests module depends on GPLed modules.
53737
53738 2007-01-17  Bruno Haible  <bruno@clisp.org>
53739
53740         * lib/gettimeofday.c (gettimeofday): Add code for the case
53741         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53742         maximum possible value for tv->tv_usec, rather than the minimum one.
53743
53744 2005-10-08  Martin Lambers  <marlam@marlam.de>
53745 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53746 2007-01-16  Bruno Haible  <bruno@clisp.org>
53747
53748         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53749         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53750         gl_FUNC_GETTIMEOFDAY.
53751         (Include): Add gettimeofday.h.
53752         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53753         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53754         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53755         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53756         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53757         * lib/gettimeofday.h: New file.
53758         * lib/gettimeofday.c: Include <sys/timeb.h>.
53759         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53760         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53761         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53762         fall back on time().
53763
53764         * tests/test-gettimeofday.c: New file.
53765         * modules/gettimeofday-tests: New file.
53766
53767 2007-01-16  Eric Blake  <ebb9@byu.net>
53768
53769         * modules/fnmatch (Depends-on): Depend on wchar.
53770         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53771         * m4/fnmatch.m4: Likewise.
53772         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53773         * m4/mbchar.m4: Likewise.
53774         * modules/mbswidth (Depends-on): Depend on wchar.
53775         * lib/mbswidth.c: Assume <wchar.h>.
53776         * m4/mbswidth.m4: Likewise.
53777         * modules/quotearg (Depends-on): Depend on wchar.
53778         * lib/quotearg.c: Assume <wchar.h>.
53779         * m4/quotearg.m4: Likewise.
53780         * modules/regex (Depends-on): Depend on wchar.
53781         * lib/regex_internal.h: Assume <wchar.h>.
53782         * m4/regex.m4: Likewise.
53783         * modules/stdint (Depends-on): Depend on wchar.
53784         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53785         * m4/stdint.m4: Likewise.
53786         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53787         * modules/strftime (Depends-on): Depend on wchar.
53788         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53789         * modules/strtol (Depends-on): Depend on wchar.
53790         * lib/strtol.c: Assume <wchar.h>.
53791         * modules/wcwidth (Depends-on): Depend on wchar.
53792         * lib/wcwidth.h: Assume <wchar.h>.
53793         * m4/wcwidth.m4: Likewise.
53794
53795 2007-01-16  Bruno Haible  <bruno@clisp.org>
53796
53797         * modules/csharpexec-script: New, created from...
53798         * modules/csharpexec: ... this.
53799
53800 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53801
53802         * modules/javaexec-script: New, created from...
53803         * modules/javaexec: ... this.
53804
53805 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53806
53807         * modules/poll (Dependencies): Add sys_select.
53808
53809 2007-01-15  Jim Meyering  <jim@meyering.net>
53810
53811         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53812         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53813         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53814         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53815
53816 2007-01-15  Bruno Haible  <bruno@clisp.org>
53817
53818         * modules/striconveh: New file.
53819         * lib/striconveh.h: New file.
53820         * lib/striconveh.c: New file.
53821         * MODULES.html.sh (Internationalization functions): Add striconveh.
53822
53823         * modules/striconveh-tests: New file.
53824         * tests/test-striconveh.c: New file.
53825
53826 2007-01-15  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53829         not from GNU libiconv or GNU libc.
53830
53831 2007-01-15  Bruno Haible  <bruno@clisp.org>
53832
53833         * doc/gnulib-intro.texi (Copyright): Explain the different license
53834         terms for module descriptions, autoconf macros, tests, documentation.
53835
53836 2007-01-14  Bruno Haible  <bruno@clisp.org>
53837
53838         * modules/striconv-tests: New file.
53839         * tests/test-striconv.c: New file.
53840
53841 2007-01-14  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/iconv-tests: New file.
53844         * tests/test-iconv.c: New file.
53845
53846 2007-01-14  Bruno Haible  <bruno@clisp.org>
53847
53848         * gnulib-tool (func_get_license): For test modules, use the license of
53849         the main module.
53850
53851 2007-01-14  Bruno Haible  <bruno@clisp.org>
53852
53853         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53854         if iconv is found to exist.
53855
53856 2007-01-14  Bruno Haible  <bruno@clisp.org>
53857
53858         * modules/c-ctype-tests: New file.
53859         * tests/test-c-ctype.c: New file.
53860
53861 2007-01-14  Bruno Haible  <bruno@clisp.org>
53862
53863         * modules/binary-io-tests: New file.
53864         * tests/test-binary-io.sh: New file.
53865         * tests/test-binary-io.c: New file.
53866
53867 2007-01-14  Bruno Haible  <bruno@clisp.org>
53868
53869         * modules/array-oset-tests: New file.
53870         * tests/test-array_oset.c: New file.
53871
53872 2007-01-14  Bruno Haible  <bruno@clisp.org>
53873
53874         * modules/array-list-tests: New file.
53875         * tests/test-array_list.c: New file.
53876
53877 2007-01-14  Bruno Haible  <bruno@clisp.org>
53878
53879         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53880         and make.
53881         Reported by Simon Josefsson in
53882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53883
53884 2007-01-14  Bruno Haible  <bruno@clisp.org>
53885
53886         * modules/allocsa-tests: New file.
53887         * tests/test-allocsa.c: New file.
53888
53889 2007-01-14  Bruno Haible  <bruno@clisp.org>
53890
53891         * modules/fchdir (Depends-on): Add absolute-header.
53892         * modules/unistd (Depends-on): Likewise.
53893
53894 2006-12-30  Bruno Haible  <bruno@clisp.org>
53895
53896         * modules/fchdir: New file.
53897         * modules/unistd (Files): Add lib/unistd_.h.
53898         (Makefile.am): Generate unistd.h from unistd_.h.
53899         * lib/fchdir.c: New file.
53900         * lib/dirent_.h: New file.
53901         * lib/unistd_.h: New file.
53902         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53903         * m4/fchdir.m4: New file.
53904         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53905         (gl_HEADER_UNISTD): Invoke it.
53906         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53907         function.
53908         * lib/backupfile.c (opendir, closedir): Undefine.
53909         * lib/chown.c (open, close): Undefine.
53910         * lib/clean-temp.c (open, close): Undefine.
53911         * lib/copy-file.c (open, close): Undefine.
53912         * lib/execute.c (open, close): Undefine.
53913         * lib/fsusage.c (open, close): Undefine.
53914         * lib/gc-gnulib.c (open, close): Undefine.
53915         * lib/getcwd.c (opendir, closedir): Undefine.
53916         * lib/glob.c (opendir, closedir): Undefine.
53917         * lib/javacomp.c (open, close): Undefine.
53918         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53919         * lib/openat-proc.c (open, close): Undefine.
53920         * lib/pagealign_alloc.c (open, close): Undefine.
53921         * lib/pipe.c (open, close): Undefine.
53922         * lib/progreloc.c (open, close): Undefine.
53923         * lib/savedir.c (opendir, closedir): Undefine.
53924         * lib/utime.c (open, close): Undefine.
53925         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53926
53927 2007-01-10  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53930
53931 2007-01-12  Eric Blake  <ebb9@byu.net>
53932
53933         Provide a robust <wchar.h>.  Further simplifications are now
53934         possible in other modules, but not included here.
53935         * modules/wchar: New module.
53936         * m4/wchar.m4: New file.
53937         * lib/wchar_.h: Likewise.
53938         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53939         of the new module.
53940         * MODULES.html.sh (Extended multibyte and wide character utilities):
53941         New section.
53942
53943 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53946         to a reasonable default for memory allocation.
53947         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53948         file system that reports garbage st_size values for symlinks.
53949         Problem reported by Liyang Hu.
53950
53951 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53952
53953         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53954         Emacs .#* auto-save files).
53955
53956 2007-01-11  Bruno Haible  <bruno@clisp.org>
53957
53958         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53959         directory.
53960
53961 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         Use @...@ consistently in lib/wctype_.h.
53964         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53965         on it being set to 1 or 0.
53966         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53967         go back to AC_SUBSTing it.
53968         * modules/wctype (Makefile.am): Undo previous change.
53969
53970 2007-01-10  Eric Blake  <ebb9@byu.net>
53971
53972         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53973         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53974         * modules/wctype (Makefile.am): Likewise.
53975         Reported by Chris McGuire.
53976
53977 2007-01-10  Jim Meyering  <jim@meyering.net>
53978
53979         fts.c: a small readability/maintainability improvement
53980         * lib/fts.c (fts_read): Make this code slightly more readable and
53981         maintainable by hoisting the "sp->fts_cur = p" assignments to
53982         immediately follow the statements that set P.  Derived from
53983         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53984
53985 2007-01-10  Eric Blake  <ebb9@byu.net>
53986
53987         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53988         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53990         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53991         Reported by Chris McGuire.
53992
53993 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53994
53995         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53996         in sed script.
53997
53998 2007-01-09  Bruno Haible  <bruno@clisp.org>
53999
54000         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54001         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54002         variables.
54003         (func_module): Use them.
54004
54005 2007-01-09  Bruno Haible  <bruno@clisp.org>
54006
54007         * modules/unistr/base: New file.
54008         * lib/unistr.h: New file.
54009
54010         * modules/unistr/u8-to-u16: New file.
54011         * lib/unistr/u8-to-u16.c: New file.
54012
54013         * modules/unistr/u8-to-u32: New file.
54014         * lib/unistr/u8-to-u32.c: New file.
54015
54016         * modules/unistr/u16-to-u8: New file.
54017         * lib/unistr/u16-to-u8.c: New file.
54018
54019         * modules/unistr/u16-to-u32: New file.
54020         * lib/unistr/u16-to-u32.c: New file.
54021
54022         * modules/unistr/u32-to-u8: New file.
54023         * lib/unistr/u32-to-u8.c: New file.
54024
54025         * modules/unistr/u32-to-u16: New file.
54026         * lib/unistr/u32-to-u16.c: New file.
54027
54028         * modules/unistr/u8-check: New file.
54029         * modules/unistr/u16-check: New file.
54030         * modules/unistr/u32-check: New file.
54031         * lib/unistr/u8-check.c: New file.
54032         * lib/unistr/u16-check.c: New file.
54033         * lib/unistr/u32-check.c: New file.
54034
54035         * modules/unistr/u8-chr: New file.
54036         * modules/unistr/u16-chr: New file.
54037         * modules/unistr/u32-chr: New file.
54038         * lib/unistr/u8-chr.c: New file.
54039         * lib/unistr/u16-chr.c: New file.
54040         * lib/unistr/u32-chr.c: New file.
54041
54042         * modules/unistr/u8-cmp: New file.
54043         * modules/unistr/u16-cmp: New file.
54044         * modules/unistr/u32-cmp: New file.
54045         * lib/unistr/u8-cmp.c: New file.
54046         * lib/unistr/u16-cmp.c: New file.
54047         * lib/unistr/u32-cmp.c: New file.
54048
54049         * modules/unistr/u8-cpy: New file.
54050         * modules/unistr/u16-cpy: New file.
54051         * modules/unistr/u32-cpy: New file.
54052         * lib/unistr/u8-cpy.c: New file.
54053         * lib/unistr/u16-cpy.c: New file.
54054         * lib/unistr/u32-cpy.c: New file.
54055         * lib/unistr/u-cpy.h: New file.
54056
54057         * modules/unistr/u8-cpy-alloc: New file.
54058         * modules/unistr/u16-cpy-alloc: New file.
54059         * modules/unistr/u32-cpy-alloc: New file.
54060         * lib/unistr/u8-cpy-alloc.c: New file.
54061         * lib/unistr/u16-cpy-alloc.c: New file.
54062         * lib/unistr/u32-cpy-alloc.c: New file.
54063         * lib/unistr/u-cpy-alloc.h: New file.
54064
54065         * modules/unistr/u8-endswith: New file.
54066         * modules/unistr/u16-endswith: New file.
54067         * modules/unistr/u32-endswith: New file.
54068         * lib/unistr/u8-endswith.c: New file.
54069         * lib/unistr/u16-endswith.c: New file.
54070         * lib/unistr/u32-endswith.c: New file.
54071         * lib/unistr/u-endswith.h: New file.
54072
54073         * modules/unistr/u8-mblen: New file.
54074         * modules/unistr/u16-mblen: New file.
54075         * modules/unistr/u32-mblen: New file.
54076         * lib/unistr/u8-mblen.c: New file.
54077         * lib/unistr/u16-mblen.c: New file.
54078         * lib/unistr/u32-mblen.c: New file.
54079
54080         * modules/unistr/u8-mbtouc: New file.
54081         * modules/unistr/u16-mbtouc: New file.
54082         * modules/unistr/u32-mbtouc: New file.
54083         * lib/unistr/u8-mbtouc.c: New file.
54084         * lib/unistr/u16-mbtouc.c: New file.
54085         * lib/unistr/u32-mbtouc.c: New file.
54086
54087         * modules/unistr/u8-mbtouc-safe: New file.
54088         * modules/unistr/u16-mbtouc-safe: New file.
54089         * modules/unistr/u32-mbtouc-safe: New file.
54090         * lib/unistr/u8-mbtouc-safe.c: New file.
54091         * lib/unistr/u16-mbtouc-safe.c: New file.
54092         * lib/unistr/u32-mbtouc-safe.c: New file.
54093
54094         * modules/unistr/u8-move: New file.
54095         * modules/unistr/u16-move: New file.
54096         * modules/unistr/u32-move: New file.
54097         * lib/unistr/u8-move.c: New file.
54098         * lib/unistr/u16-move.c: New file.
54099         * lib/unistr/u32-move.c: New file.
54100         * lib/unistr/u-move.h: New file.
54101
54102         * modules/unistr/u8-next: New file.
54103         * modules/unistr/u16-next: New file.
54104         * modules/unistr/u32-next: New file.
54105         * lib/unistr/u8-next.c: New file.
54106         * lib/unistr/u16-next.c: New file.
54107         * lib/unistr/u32-next.c: New file.
54108
54109         * modules/unistr/u8-prev: New file.
54110         * modules/unistr/u16-prev: New file.
54111         * modules/unistr/u32-prev: New file.
54112         * lib/unistr/u8-prev.c: New file.
54113         * lib/unistr/u16-prev.c: New file.
54114         * lib/unistr/u32-prev.c: New file.
54115
54116         * modules/unistr/u8-set: New file.
54117         * modules/unistr/u16-set: New file.
54118         * modules/unistr/u32-set: New file.
54119         * lib/unistr/u8-set.c: New file.
54120         * lib/unistr/u16-set.c: New file.
54121         * lib/unistr/u32-set.c: New file.
54122         * lib/unistr/u-set.h: New file.
54123
54124         * modules/unistr/u8-startswith: New file.
54125         * modules/unistr/u16-startswith: New file.
54126         * modules/unistr/u32-startswith: New file.
54127         * lib/unistr/u8-startswith.c: New file.
54128         * lib/unistr/u16-startswith.c: New file.
54129         * lib/unistr/u32-startswith.c: New file.
54130         * lib/unistr/u-startswith.h: New file.
54131
54132         * modules/unistr/u8-stpcpy: New file.
54133         * modules/unistr/u16-stpcpy: New file.
54134         * modules/unistr/u32-stpcpy: New file.
54135         * lib/unistr/u8-stpcpy.c: New file.
54136         * lib/unistr/u16-stpcpy.c: New file.
54137         * lib/unistr/u32-stpcpy.c: New file.
54138         * lib/unistr/u-stpcpy.h: New file.
54139
54140         * modules/unistr/u8-stpncpy: New file.
54141         * modules/unistr/u16-stpncpy: New file.
54142         * modules/unistr/u32-stpncpy: New file.
54143         * lib/unistr/u8-stpncpy.c: New file.
54144         * lib/unistr/u16-stpncpy.c: New file.
54145         * lib/unistr/u32-stpncpy.c: New file.
54146         * lib/unistr/u-stpncpy.h: New file.
54147
54148         * modules/unistr/u8-strcat: New file.
54149         * modules/unistr/u16-strcat: New file.
54150         * modules/unistr/u32-strcat: New file.
54151         * lib/unistr/u8-strcat.c: New file.
54152         * lib/unistr/u16-strcat.c: New file.
54153         * lib/unistr/u32-strcat.c: New file.
54154         * lib/unistr/u-strcat.h: New file.
54155
54156         * modules/unistr/u8-strchr: New file.
54157         * modules/unistr/u16-strchr: New file.
54158         * modules/unistr/u32-strchr: New file.
54159         * lib/unistr/u8-strchr.c: New file.
54160         * lib/unistr/u16-strchr.c: New file.
54161         * lib/unistr/u32-strchr.c: New file.
54162
54163         * modules/unistr/u8-strcmp: New file.
54164         * modules/unistr/u16-strcmp: New file.
54165         * modules/unistr/u32-strcmp: New file.
54166         * lib/unistr/u8-strcmp.c: New file.
54167         * lib/unistr/u16-strcmp.c: New file.
54168         * lib/unistr/u32-strcmp.c: New file.
54169
54170         * modules/unistr/u8-strcpy: New file.
54171         * modules/unistr/u16-strcpy: New file.
54172         * modules/unistr/u32-strcpy: New file.
54173         * lib/unistr/u8-strcpy.c: New file.
54174         * lib/unistr/u16-strcpy.c: New file.
54175         * lib/unistr/u32-strcpy.c: New file.
54176         * lib/unistr/u-strcpy.h: New file.
54177
54178         * modules/unistr/u8-strcspn: New file.
54179         * modules/unistr/u16-strcspn: New file.
54180         * modules/unistr/u32-strcspn: New file.
54181         * lib/unistr/u8-strcspn.c: New file.
54182         * lib/unistr/u16-strcspn.c: New file.
54183         * lib/unistr/u32-strcspn.c: New file.
54184         * lib/unistr/u-strcspn.h: New file.
54185
54186         * modules/unistr/u8-strdup: New file.
54187         * modules/unistr/u16-strdup: New file.
54188         * modules/unistr/u32-strdup: New file.
54189         * lib/unistr/u8-strdup.c: New file.
54190         * lib/unistr/u16-strdup.c: New file.
54191         * lib/unistr/u32-strdup.c: New file.
54192         * lib/unistr/u-strdup.h: New file.
54193
54194         * modules/unistr/u8-strlen: New file.
54195         * modules/unistr/u16-strlen: New file.
54196         * modules/unistr/u32-strlen: New file.
54197         * lib/unistr/u8-strlen.c: New file.
54198         * lib/unistr/u16-strlen.c: New file.
54199         * lib/unistr/u32-strlen.c: New file.
54200         * lib/unistr/u-strlen.h: New file.
54201
54202         * modules/unistr/u8-strmblen: New file.
54203         * modules/unistr/u16-strmblen: New file.
54204         * modules/unistr/u32-strmblen: New file.
54205         * lib/unistr/u8-strmblen.c: New file.
54206         * lib/unistr/u16-strmblen.c: New file.
54207         * lib/unistr/u32-strmblen.c: New file.
54208
54209         * modules/unistr/u8-strmbtouc: New file.
54210         * modules/unistr/u16-strmbtouc: New file.
54211         * modules/unistr/u32-strmbtouc: New file.
54212         * lib/unistr/u8-strmbtouc.c: New file.
54213         * lib/unistr/u16-strmbtouc.c: New file.
54214         * lib/unistr/u32-strmbtouc.c: New file.
54215
54216         * modules/unistr/u8-strncat: New file.
54217         * modules/unistr/u16-strncat: New file.
54218         * modules/unistr/u32-strncat: New file.
54219         * lib/unistr/u8-strncat.c: New file.
54220         * lib/unistr/u16-strncat.c: New file.
54221         * lib/unistr/u32-strncat.c: New file.
54222         * lib/unistr/u-strncat.h: New file.
54223
54224         * modules/unistr/u8-strncmp: New file.
54225         * modules/unistr/u16-strncmp: New file.
54226         * modules/unistr/u32-strncmp: New file.
54227         * lib/unistr/u8-strncmp.c: New file.
54228         * lib/unistr/u16-strncmp.c: New file.
54229         * lib/unistr/u32-strncmp.c: New file.
54230
54231         * modules/unistr/u8-strncpy: New file.
54232         * modules/unistr/u16-strncpy: New file.
54233         * modules/unistr/u32-strncpy: New file.
54234         * lib/unistr/u8-strncpy.c: New file.
54235         * lib/unistr/u16-strncpy.c: New file.
54236         * lib/unistr/u32-strncpy.c: New file.
54237         * lib/unistr/u-strncpy.h: New file.
54238
54239         * modules/unistr/u8-strnlen: New file.
54240         * modules/unistr/u16-strnlen: New file.
54241         * modules/unistr/u32-strnlen: New file.
54242         * lib/unistr/u8-strnlen.c: New file.
54243         * lib/unistr/u16-strnlen.c: New file.
54244         * lib/unistr/u32-strnlen.c: New file.
54245         * lib/unistr/u-strnlen.h: New file.
54246
54247         * modules/unistr/u8-strpbrk: New file.
54248         * modules/unistr/u16-strpbrk: New file.
54249         * modules/unistr/u32-strpbrk: New file.
54250         * lib/unistr/u8-strpbrk.c: New file.
54251         * lib/unistr/u16-strpbrk.c: New file.
54252         * lib/unistr/u32-strpbrk.c: New file.
54253         * lib/unistr/u-strpbrk.h: New file.
54254
54255         * modules/unistr/u8-strrchr: New file.
54256         * modules/unistr/u16-strrchr: New file.
54257         * modules/unistr/u32-strrchr: New file.
54258         * lib/unistr/u8-strrchr.c: New file.
54259         * lib/unistr/u16-strrchr.c: New file.
54260         * lib/unistr/u32-strrchr.c: New file.
54261
54262         * modules/unistr/u8-strspn: New file.
54263         * modules/unistr/u16-strspn: New file.
54264         * modules/unistr/u32-strspn: New file.
54265         * lib/unistr/u8-strspn.c: New file.
54266         * lib/unistr/u16-strspn.c: New file.
54267         * lib/unistr/u32-strspn.c: New file.
54268         * lib/unistr/u-strspn.h: New file.
54269
54270         * modules/unistr/u8-strstr: New file.
54271         * modules/unistr/u16-strstr: New file.
54272         * modules/unistr/u32-strstr: New file.
54273         * lib/unistr/u8-strstr.c: New file.
54274         * lib/unistr/u16-strstr.c: New file.
54275         * lib/unistr/u32-strstr.c: New file.
54276         * lib/unistr/u-strstr.h: New file.
54277
54278         * modules/unistr/u8-strtok: New file.
54279         * modules/unistr/u16-strtok: New file.
54280         * modules/unistr/u32-strtok: New file.
54281         * lib/unistr/u8-strtok.c: New file.
54282         * lib/unistr/u16-strtok.c: New file.
54283         * lib/unistr/u32-strtok.c: New file.
54284         * lib/unistr/u-strtok.h: New file.
54285
54286         * modules/unistr/u8-uctomb: New file.
54287         * modules/unistr/u16-uctomb: New file.
54288         * modules/unistr/u32-uctomb: New file.
54289         * lib/unistr/u8-uctomb.c: New file.
54290         * lib/unistr/u16-uctomb.c: New file.
54291         * lib/unistr/u32-uctomb.c: New file.
54292
54293         * MODULES.html.sh (Unicode string functions): Add the new modules.
54294
54295 2007-01-08  Bruno Haible  <bruno@clisp.org>
54296
54297         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54298         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54299         subdirectories.
54300
54301 2007-01-08  Karl Berry  <karl@gnu.org>
54302
54303         * doc/error.texi: mention that main() fns must set program_name
54304         when progname is used.
54305
54306 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54307
54308         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54309         WCTYPE_H is empty, for the benefit of builds from non-distclean
54310         directories.  Problem reported by Eric Blake in
54311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54312
54313 2007-01-08  Bruno Haible  <bruno@clisp.org>
54314
54315         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54316         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54317         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54318         PROVIDE_CANONICALIZE_FILENAME_MODE.
54319         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54320
54321 2007-01-08  Bruno Haible  <bruno@clisp.org>
54322
54323         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54324         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54325         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54326         * lib/fts.c: Likewise.
54327         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54328
54329 2006-12-25  Bruno Haible  <bruno@clisp.org>
54330
54331         * modules/utf8-ucs4-safe: New file.
54332         * lib/utf8-ucs4-safe.h: New file.
54333         * lib/unistr/utf8-ucs4-safe.c: New file.
54334
54335         * modules/utf16-ucs4-safe: New file.
54336         * lib/utf16-ucs4-safe.h: New file.
54337         * lib/unistr/utf16-ucs4-safe.c: New file.
54338
54339         * MODULES.html.sh (Unicode string functions): Add the new modules.
54340
54341 2007-01-08  Bruno Haible  <bruno@clisp.org>
54342
54343         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54344         (Depends-on): Add unitypes.
54345         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54346         (u8_mbtouc_aux): Move out to separate file.
54347         (u8_mbtouc): Use ucs4_t, uint8_t types.
54348         * lib/unistr/utf8-ucs4.c: New file.
54349
54350         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54351         (Depends-on): Add unitypes.
54352         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54353         (u16_mbtouc_aux): Move out to separate file.
54354         (u16_mbtouc): Use ucs4_t, uint16_t types.
54355         * lib/unistr/utf16-ucs4.c: New file.
54356
54357         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54358         (Depends-on): Add unitypes.
54359         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54360         (u8_uctomb_aux): Move out to separate file.
54361         (u8_uctomb): Use ucs4_t, uint8_t types.
54362         * lib/unistr/ucs4-utf8.c: New file.
54363
54364         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54365         (Depends-on): Add unitypes.
54366         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54367         (u16_uctomb_aux): Move out to separate file.
54368         (u16_uctomb): Use ucs4_t, uint16_t types.
54369         * lib/unistr/ucs4-utf16.c: New file.
54370
54371 2006-12-25  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/unitypes: New file.
54374         * lib/unitypes.h: New file.
54375         * MODULES.html.sh (func_all_modules): New section "Unicode string
54376         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54377         this section. Add unitypes.
54378
54379 2007-01-08  Bruno Haible  <bruno@clisp.org>
54380
54381         Avoid variable names that conflict with those from libtool.
54382         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54383         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54384         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54385         library_names_spec to acl_library_names_spec, hardcode_* to
54386         acl_hardcode_*.
54387         Reported by Ralf Wildenhues.
54388
54389 2007-01-08  Bruno Haible  <bruno@clisp.org>
54390
54391         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54392         definition.
54393         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54394         definition.
54395         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54396         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54397         definition.
54398         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54399         definition.
54400         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54401         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54402         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54403         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54404         definition.
54405         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54406         definition.
54407         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54408         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54409         GC_USE_<algorithm>.
54410         * lib/gc-libgcrypt.c: Likewise.
54411         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54412         * modules/gc-arctwo (configure.ac): Likewise.
54413         * modules/gc-des (configure.ac): Likewise.
54414         * modules/gc-hmac-md5 (configure.ac): Likewise.
54415         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54416         * modules/gc-md2 (configure.ac): Likewise.
54417         * modules/gc-md4 (configure.ac): Likewise.
54418         * modules/gc-md5 (configure.ac): Likewise.
54419         * modules/gc-random (configure.ac): Likewise.
54420         * modules/gc-rijndael (configure.ac): Likewise.
54421         * modules/gc-sha1 (configure.ac): Likewise.
54422
54423 2007-01-08  Bruno Haible  <bruno@clisp.org>
54424
54425         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54426         macro definition.
54427         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54428         definition.
54429         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54430         definition.
54431         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54432         * modules/fcntl-safer (configure.ac): Likewise.
54433         * modules/fopen-safer (configure.ac): Likewise.
54434         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54435         GNULIB_FWRITEERROR macro definition.
54436
54437 2007-01-08  Bruno Haible  <bruno@clisp.org>
54438
54439         * m4/gnulib-common.m4: New file.
54440         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54441         (func_get_filelist): Add m4/gnulib-common.m4.
54442
54443 2007-01-08  Bruno Haible  <bruno@clisp.org>
54444
54445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54446         command.
54447
54448 2007-01-08  Jim Meyering  <jim@meyering.net>
54449
54450         Use a more robust test for a "can't happen" condition.
54451         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54452         narrowed the st_size value.  Presuming the "can't happen" condition
54453         is true, that narrowing could conceivably convert an invalid st_size
54454         value into a valid one.  Instead, use a change based on Matthew
54455         Woehlke's original patch.
54456
54457         Slight readability improvement: use an assert-like macro
54458         in place of literal "abort ()" uses.
54459         * lib/fts.c (fts_assert): Define.
54460         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54461         Use this macro instead of a bare 'abort'.
54462
54463 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54466         simply work around them.
54467         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54468         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54469         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54470         declaring.
54471         Don't bother to define as macros, since the standard doesn't require it.
54472         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54473         longer worry about IRIX 5.3.
54474         (HAVE_WCTYPE_CTMP_BUG): Remove.
54475
54476 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54479         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54480         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54481         Problems reported by Georg Schwarz for IRIX 5.3.
54482
54483         * gnulib-tool (autoconf_minversion): Take the maximum version number
54484         found, not the minimum.  Problem reported by James Youngman.
54485
54486 2007-01-03  Karl Berry  <karl@gnu.org>
54487
54488         * doc/error.texi: new file, explaining interaction with progname.
54489         * doc/gnulib.texi: include it.  Update copyright.
54490
54491 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54492
54493         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54494         AC_CANONICAL_HOST, to improve autobuild outputs.
54495
54496 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54497             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54498
54499         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54500         sockets, server sockets, and other file descriptors.  Count errors
54501         to compute the return value.  Reorder the code a bit to be easier
54502         to follow.  Don't set event bits that were not requested (except
54503         POLLERR and POLLHUP).
54504
54505 2007-01-01  Bruno Haible  <bruno@clisp.org>
54506
54507         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54508
54509 2007-01-03  Jim Meyering  <jim@meyering.net>
54510
54511         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54512
54513 2007-01-02  Bruno Haible  <bruno@clisp.org>
54514
54515         * modules/settime (Include): Require timespec.h.
54516         * modules/nanosleep (Include): Likewise.
54517
54518 2007-01-01  Bruno Haible  <bruno@clisp.org>
54519
54520         * gnulib-tool (func_emit_copyright_notice): Bump year.
54521         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54522
54523 2007-01-01  Bruno Haible  <bruno@clisp.org>
54524
54525         Improve support for OpenBSD.
54526         * build-aux/config.rpath (libname_spec): Export.
54527         (library_names_spec): New variable. Export.
54528         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54529         library_names_spec from the config.rpath output. Locate shared library
54530         through the name pattern in library_names_spec.
54531
54532 2007-01-01  Eric Blake  <ebb9@byu.net>
54533
54534         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54535
54536 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54537
54538         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54539         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54540         assume the C locale, and avoid an "eval" that could cause trouble.
54541         Problem with SORT reported by Bob Proulx.
54542
54543         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54544         Define.  Trivial patch from Henning Nielsen Lund, originally
54545         sent to bug-grep@gnu.org today.
54546
54547 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54548
54549         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54550         struct stat.  Problem reported by Henning Nielsen Lund.
54551         * lib/acl.c: Include acl.h first, to check interface.  Don't
54552         bother to include sys/types.h and sys/stat.h again.
54553
54554 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54555
54556         Import the following change from libc; problem reported by
54557         Sven Verdoolaege.
54558
54559         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54560
54561         [BZ #1373]
54562         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54563
54564 2006-12-28  Jim Meyering  <jim@meyering.net>
54565
54566         * build-aux/announce-gen: Do not assume that the package
54567         builds any of tar.gz, tar.bz2, and .xdelta files.
54568         Suggestion from Simon Josefsson.
54569
54570 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54571
54572         * modules/announce-gen: New file.
54573
54574 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54577         handles its gotchas now.
54578         * lib/mbswidth.c: Likewise.
54579         * lib/wcwidth.h: Likewise.
54580         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54581         and iswcntrl; the wctype module does this stuff now.
54582         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54584         * modules/mbchar (Depends-on): Add wctype.
54585         * modules/mbswidth (Depends-on): Likewise.
54586         * modules/wcwidth (Depends-on): Likewise.
54587
54588 2006-12-27  Eric Blake  <ebb9@byu.net>
54589
54590         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54591         module uses more than what <wctype.h> is required to provide.
54592
54593 2006-12-26  Eric Blake  <ebb9@byu.net>
54594
54595         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54596
54597 2006-12-26  Eric Blake  <ebb9@byu.net>
54598
54599         * modules/absolute-header: New module.
54600         * modules/fcntl (Depends-on): Depend on it.
54601         * modules/inttypes (Depends-on): Likewise.
54602         * modules/stdint (Depends-on): Likewise.
54603         * modules/sys_stat (Depends-on): Likewise.
54604         * modules/wctype (Depends-on): Likewise.
54605         * MODULES.html.sh (Support for building libraries and
54606         executables): Document it.
54607
54608 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54609
54610         * gnulib-tool (SED): Remove, undoing previous change.
54611         The problem was that it broke coreutils on Solaris, because
54612         "sed --posix" leaked into a makefile.
54613         (sed): New alias, if 'alias' and GNU sed.
54614
54615 2006-12-24  Jim Meyering  <jim@meyering.net>
54616
54617         Work around an fchownat bug in glibc-2.4:
54618         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54619         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54620         in spite of the -P option.
54621         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54622         New macros.
54623         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54624         * modules/openat (Files): Add lib/fchownat.c.
54625         * lib/openat.c (fchownat): Don't define here.  Move to...
54626         * lib/fchownat.c: ...this new file.
54627
54628 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54629
54630         Fix bug reported by Bruno Haible in
54631         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54632         where quotearg.c didn't compile on Mac OS X 10.2 because it
54633         lacks <wchar.h> and wint_t.
54634         * lib/wctype_.h (__wctype_wint_t): New type.
54635         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54636         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54637         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54638         Arg is now of type __wctype_wint_t, not wint_t.
54639         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54640         substitute HAVE_WINT_T.
54641         * modules/wctype (Files): Add m4/wint_t.m4.
54642         (wctype.h): Substitute HAVE_WINT_T.
54643
54644 2006-12-23  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54647
54648 2006-12-23  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54651         S_ISLNK.
54652         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54653         mingw.
54654
54655 2006-12-22  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/copy-file.c: Include acl.h.
54658         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54659         Close the file descriptors only after being done with copy_acl.
54660         * modules/copy-file (Depends-on): Add acl.
54661
54662 2006-12-22  Bruno Haible  <bruno@clisp.org>
54663
54664         * gnulib-tool (SED): New variable.
54665         Use $SED instead of sed everywhere.
54666
54667 2006-12-22  Bruno Haible  <bruno@clisp.org>
54668
54669         * modules/no-c++: New file.
54670         * m4/no-c++.m4: New file.
54671         * MODULES.html.sh (Support for building libraries and executables):
54672         Add no-c++.
54673
54674 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54675
54676         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54677         Include <limits.h>, and use its INT_MAX to rewrite the
54678         j loop so that it does not overflow 'int'.  Problem reported by
54679         Ralf Wildenhues in
54680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54681         Play it safe by shifting left by 1 rather than multiplying by 2,
54682         as GCC is less likely to optimize this away when the value
54683         is signed (when it assumes overflow leads to undefined behavior).
54684         Also, don't assume time_t uses two's complement.
54685
54686 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54687
54688         * MODULES.html.sh: New module wctype.
54689         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54690         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54691         <wctype.h>, since the new wctype module should fix this.
54692         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54693         the wctype module should arrange for it.
54694         * lib/regex_internal.h: Likewise.
54695         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54696         since the wctype module should handle this now.
54697         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54698         * modules/fnmatch (Depends-on): Add wctype.
54699         * modules/quotearg (Depends-on): Likewise.
54700         * modules/regex (Depends-on): Likewise.
54701
54702 2006-12-19  Bruno Haible  <bruno@clisp.org>
54703
54704         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54705         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54706
54707 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54708
54709         * modules/savewd (Depends-on): Fix dependency on fcntl.
54710
54711 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54714         conforms to C99, rather than relying on the user's environment
54715         setting of STDINT_H.
54716
54717 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54718         and Eric Blake  <ebb9@byu.net>
54719
54720         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54721         This is more consistent with the other defines here.
54722         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54723         Port to z/OS.  Problem reported by Paul Gilmartin.
54724         Change local vars to use gl_ prefix rather than ac_.
54725         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54726         with other defines.
54727         * modules/double-slash-root: New module.
54728         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54729         (Depends-on): Add double-slash-root.
54730         * MODULES.html.sh (File system functions): Mention new module.
54731
54732 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54733
54734         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54735         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54736         This is for the benefit of gzip, which doesn't do i18n.
54737
54738 2006-12-12  Jim Meyering  <jim@meyering.net>
54739
54740         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54741         Reported by Andreas Schwab <schwab@suse.de>.
54742
54743 2006-12-12  Bruno Haible  <bruno@clisp.org>
54744
54745         Merge these changes.
54746         2006-09-05  Bruno Haible  <bruno@clisp.org>
54747         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54748         iconv_alloc succeeded.
54749         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54750         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54751         test for " && dest " at the end - dest is always != NULL there. Call
54752         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54753         with 2xNULL arguments, also to flush the state storage. Handle the
54754         IRIX iconv behaviour. Realloc the final result, to throw away unused
54755         memory.
54756
54757 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54758
54759         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54760         and fchmodat unconditionally, since glibc 2.4 has them.
54761         Problem reported by Arkadiusz Miskiewicz.
54762
54763 2006-12-10  Bruno Haible  <bruno@clisp.org>
54764
54765         * gnulib-tool (func_import): Show the include files only for those
54766         modules that are copied and specified.
54767         Reported by Karl Berry.
54768
54769 2006-12-08  Jim Meyering  <jim@meyering.net>
54770
54771         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54772         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54773
54774         * build-aux/announce-gen: Add two new options, both optional:
54775         --bootstrap-tools=TOOL_LIST
54776               a comma-separated list of tools, e.g.,
54777               autoconf,automake,bison,gnulib
54778         --gnulib-snapshot-date=DATE
54779               if gnulib is in the bootstrap tool list,
54780               then report this as the snapshot date.
54781               If not specified, use the current date/time.
54782               If you specify a date here, be sure it's UTC.
54783
54784 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54785
54786         * tests/test-argp-2.sh: Fix test to match actual output.
54787         (func_compare): Fix sed script to be portable.
54788
54789 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54792         workaround for this case.  It is not autoconfigured now; offhand
54793         it's hard to see how to autoconfigure it.
54794
54795 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54796
54797         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54798         a directory that is about to be chowned.  Such a directory's
54799         initial file permissions should permit the owner only and this
54800         should not be changed until after the chown, since the group and
54801         other bits would be incorrect if they granted permission before
54802         the chown.
54803
54804         Fix porting problem for iswctype reported by Georg Schwarz in:
54805         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54806         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54807         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54808         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54810
54811 2006-12-03  Jim Meyering  <jim@meyering.net>
54812
54813         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54814         p->fts_statp may not yet be defined.
54815         (fts_read): Instead, set it in the caller, once p->fts_statp is
54816         sure to be defined, and corresponds to a top-level directory.
54817         This bug made du -x fail.  Here's the coreutils test case:
54818         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54819         Reported by Mike Frysinger.
54820
54821 2006-12-01  Jim Meyering  <jim@meyering.net>
54822
54823         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54824         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54825         Reported by Simon Josefsson.
54826
54827 2006-11-30  Jim Meyering  <jim@meyering.net>
54828
54829         * m4/warning.m4: Use the all-permissive copyright notice
54830         recommended by RMS (rather than LGPL).
54831         * m4/vararrays.m4: Likewise.
54832         * m4/flexmember.m4: Likewise.
54833
54834 2006-11-29  Bruno Haible  <bruno@clisp.org>
54835
54836         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54837         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54838         using +=.
54839         Reported by Simon Josefsson <simon@josefsson.org>.
54840
54841 2006-11-28  James Youngman <jay@gnu.org>
54842
54843         * README: Advise users that they might find the bug-gnulib@gnu.org
54844         and autotools-announce@gnu.org mailing lists useful.
54845
54846 2006-11-28  Bruno Haible  <bruno@clisp.org>
54847
54848         * m4/ptrdiff_max.m4: Remove file.
54849
54850 2006-11-21  Bruno Haible  <bruno@clisp.org>
54851
54852         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54853         _AC_COMPUTE_INT.
54854         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54855         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54856         _AC_COMPUTE_INT.
54857         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54858         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54859         _AC_COMPUTE_INT.
54860         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54861
54862 2006-11-28  Jim Meyering  <jim@meyering.net>
54863
54864         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54865         warning from "gcc -Wshadow" about shadowing the builtin.
54866
54867 2006-11-27  Bruno Haible  <bruno@clisp.org>
54868
54869         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54870         _AC_COMPUTE_INT.
54871         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54872
54873 2006-11-27  Bruno Haible  <bruno@clisp.org>
54874             Paul Eggert  <eggert@cs.ucla.edu>
54875
54876         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54877
54878 2006-11-26  Bruno Haible  <bruno@clisp.org>
54879
54880         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54881         noinst_LTLIBRARIES.
54882
54883 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54884             Bruno Haible  <bruno@clisp.org>
54885
54886         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54887         if compiling with "gcc -ansi".
54888
54889 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54890
54891         Fix some incompatibilities with gcc -ansi -pedantic.
54892         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54893         if compiling pedantically with GCC, unless it's C99 or later.
54894         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54895         it mishandles gcc -ansi -pedantic as well.
54896         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54897         if gcc -pedantic.
54898         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54899         initializers for struct if -pedantic, unless it's C99 or later.
54900
54901 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54902
54903         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54904         Don't close an fd more than once. Identical atimes indicate
54905         success, not failure.
54906
54907 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54908
54909         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54910
54911 2006-11-23  Jim Meyering  <jim@meyering.net>
54912
54913         * build-aux/announce-gen: New file.  From coreutils.
54914
54915 2006-11-22  Jim Meyering  <jim@meyering.net>
54916
54917         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54918         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54919         (fts_read): Use a temporary to narrow the overused st_size member
54920         before using it in a switch statement.  Reported by Matthew Woehlke.
54921
54922         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54923         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54924
54925 2006-11-20  Bruno Haible  <bruno@clisp.org>
54926
54927         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54928         changequote instead of pairs of brackets.
54929         Reported by Andreas Schwab <schwab@suse.de>.
54930
54931 2006-11-21  Jim Meyering  <jim@meyering.net>
54932
54933         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54934         so as to remain compatible with older compilers.
54935         Patch from Michael Deutschmann.
54936
54937 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * MODULES.html.sh (File system functions): Add openat.
54940
54941         * lib/openat.h (rpl_fstatat): New macro, if
54942         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54943         (fstatat): Define to rpl_fstatat under the same conditions,
54944         unless COMPILING_FSTATAT.
54945         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54946         seems to have the bug.
54947         * lib/fstatat.c: New file.
54948         * modules/openat (Files): Add it.
54949
54950 2006-11-20  Bruno Haible  <bruno@clisp.org>
54951
54952         * Makefile: New file.
54953
54954 2006-11-20  Jim Meyering  <jim@meyering.net>
54955
54956         The beginnings of syntax-related checks for gnulib.
54957         * lib/Makefile: New file.
54958         * lib/t-idcache: New script.  Ensure that the two halves of
54959         idcache.c stay in sync.
54960
54961         * lib/idcache.c: Adjust comments in user- and group- portions to
54962         be more accurate, and to be consistent with one another.
54963
54964 2006-11-20  Jim Meyering  <jim@meyering.net>
54965
54966         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54967         continue using the flexible array member (thus, this module performs
54968         half as many malloc calls), with the addition that...
54969         (getgroup, getuser): Consistently record a non-match via an empty
54970         "name" string, and map an empty string match to a NULL return value.
54971         * modules/idcache (Depends-on): Re-add flexmember.
54972
54973         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54974         (getuidbyname, getgroup, getgidbyname): Likewise.
54975
54976         Use cleaner syntax: NULL rather than 0.
54977         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54978
54979 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54982         It mishandled the case where the group was missing.
54983         Problem reported by Greg Schafer.
54984         * modules/idcache: Likewise.
54985
54986 2006-11-18  Jim Meyering  <jim@meyering.net>
54987
54988         * check-module (%exempt_header): Add exception for some
54989         conditionally-included headers.
54990
54991         * modules/i-ring (Depends-on): Add verify.
54992         (License): Change to LGPL.
54993
54994 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54997         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54998         and inttostr.h.  Use snprintf rather than uinttostr, so that
54999         LGPLed code doesn't depend on GPLed.
55000
55001 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         * modules/inline (License): Change from GPL to LGPL.
55004
55005 2006-11-17  Jim Meyering  <jim@meyering.net>
55006
55007         * modules/d-type (License): Switch to LGPL.
55008
55009 2006-11-15  Bruno Haible  <bruno@clisp.org>
55010
55011         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55012
55013 2006-11-15  Eric Blake  <ebb9@byu.net>
55014
55015         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55016         the module dependency.
55017
55018 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55019             Bruno Haible  <bruno@clisp.org>
55020
55021         * gnulib-tool (func_create_testdir): Add license consistency check.
55022
55023 2006-11-15  Eric Blake  <ebb9@byu.net>
55024
55025         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55026         random "(cached)" in configure output.
55027
55028 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55029
55030         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55031         test for conforming inttypes.h is both announced and cached.
55032
55033         * MODULES.html.sh (seen_modules, seen_files): New variables.
55034         (func_module): Rewrite to use a few less gnulib-tool and sed
55035         invocations.  Avoid a couple of quadratic algorithms for ...
55036         (missed_modules, missed_files): ... these, with ...
55037         (func_append, func_tmpdir): ... these new functions, from
55038         gnulib-tool.  Analogously, install traps for cleanup.
55039
55040         * tests/test-gc.c (main): Remove unused variables.
55041         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55042
55043 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55044
55045         * modules/inttostr (License): Change to LGPL.
55046
55047 2006-11-14  Eric Blake  <ebb9@byu.net>
55048
55049         * modules/tempname (License): Change to LGPL.
55050
55051 2006-11-14  Eric Blake  <ebb9@byu.net>
55052
55053         * doc/functions.texi (Function Portability): *printf functions on
55054         Cygwin now understand all POSIX size specifiers.
55055
55056 2006-11-14  Bruno Haible  <bruno@clisp.org>
55057
55058         * modules/c-ctype (License): Change to LGPL.
55059
55060 2006-11-12  Bruno Haible  <bruno@clisp.org>
55061
55062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55063         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55064         for GNOME libraries, for which the include files are installed in
55065         subdirectories of $prefix/include.
55066
55067 2006-11-12  Bruno Haible  <bruno@clisp.org>
55068
55069         * m4/lib-link.m4: Require at least autoconf-2.54.
55070         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55071         name to underscores for the --with option.
55072
55073 2006-11-13  Bruno Haible  <bruno@clisp.org>
55074
55075         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55076         the tests directory.
55077         Reported by Ralf Wildenhues.
55078
55079 2006-11-13  Bruno Haible  <bruno@clisp.org>
55080
55081         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55082         (func_emit_initmacro_end): Undo the override here.
55083         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55084         Works around the famous automake error in coreutils.
55085
55086 2006-11-13  Eric Blake  <ebb9@byu.net>
55087
55088         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55089         element, not its node.
55090
55091 2006-11-12  Bruno Haible  <bruno@clisp.org>
55092
55093         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55094         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55095
55096 2006-11-12  Bruno Haible  <bruno@clisp.org>
55097
55098         * gnulib-tool: New option --local-symlink.
55099         (func_usage): Document it.
55100         (lsymbolic): New variable.
55101         (func_import, func_create_testdir): If --symlink was not specified,
55102         test whether --local-symlink was specified and the file comes from
55103         the local_gnulib_dir.
55104
55105 2006-11-12  Bruno Haible  <bruno@clisp.org>
55106
55107         * gnulib-tool (func_ln): New function.
55108         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55109
55110 2006-11-12  Bruno Haible  <bruno@clisp.org>
55111
55112         Finish support for source files in subdirectories.
55113         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55114         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55115         AUTOMAKE_OPTIONS.
55116         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55117
55118 2006-11-12  Bruno Haible  <bruno@clisp.org>
55119
55120         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55121         EXTRA_lib_SOURCES augmentation.
55122         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55123
55124 2006-11-12  Jim Meyering  <jim@meyering.net>
55125
55126         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55127         file descriptors.  This also averts a failure on systems with
55128         native openat support when a traversed directory lacks "x" access.
55129         * lib/fts_.h: Include "i-ring.h"
55130         (struct FTS) [fts_fd_ring]: New member.
55131         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55132         (FCHDIR): Add parentheses.
55133         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55134         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55135         When descending, rather than simply closing the previous
55136         fts_cwd_fd value, push that file descriptor onto the ring.
55137         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55138         (fts_open): Initialize the new fd_ring member.
55139         (fts_close): Clear the ring.
55140         (fts_safe_changedir): When possible, use our new fd_ring to skip
55141         the diropen and fstat and dev/ino comparison that would normally
55142         accompany a virtual `chdir ("..")'.
55143
55144         * modules/fts (Depends-on): Add i-ring.
55145         * modules/i-ring: New module.
55146         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55147         * m4/i-ring.m4: New file.
55148
55149 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55150
55151         * gnulib-tool (func_create_testdir): Fix replacement of
55152         `build-aux' in configure.ac.  Run autotools in gltests
55153         subdirectory.
55154         (func_create_testdir, func_create_megatestdir, test): There is
55155         no need for '--force' in most autotool invocations in a new
55156         tree.  Actually fail the whole test if any of the tools, or the
55157         configure or make stages fail.
55158
55159         Sync from Automake.
55160         * build-aux/gnupload: Revert last change.  Add pointer to upload
55161         instructions of the GNU Maintenance Instructions.
55162         Suggestion by Karl Berry.
55163
55164 2006-11-10  Jim Meyering  <jim@meyering.net>
55165
55166         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55167
55168 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55169
55170         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55171         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55172         (bind_textdomain_codeset) [! ENABLE_NLS]:
55173         Evaluate all the arguments.  That way, callers get compatible behavior
55174         if the arguments have side effects.  Also, it avoids some GCC
55175         diagnostics in some cases; Joel E. Denny reported problems when Bison
55176         was configured with --enable-gcc-warnigs.
55177
55178 2006-11-10  Jim Meyering  <jim@meyering.net>
55179
55180         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55181         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55182         account.
55183
55184 2006-11-10  Jim Meyering  <jim@meyering.net>
55185
55186         * modules/inline: New file/module.
55187         * modules/xalloc (Files): Remove m4/inline.m4.
55188         (Depends-on): Add inline, instead.
55189         * modules/oset: Likewise.
55190         * modules/list: Likewise.
55191
55192 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55193
55194         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55195         Problem reported by Matthew Woehlke.
55196
55197 2006-11-09  Bruno Haible  <bruno@clisp.org>
55198
55199         * lib/tempname.c (gen_tempname): Remove variant that invokes
55200         __gen_tempname.
55201         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55202         __gen_tempname.
55203
55204 2006-11-08  Bruno Haible  <bruno@clisp.org>
55205
55206         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55207         to 'yes' instead of 'cross-compiling'.
55208
55209 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55210
55211         * lib/quotearg.h (quotearg_free): New decl.
55212         * lib/quotearg.c (quotearg_free): New function.
55213         (slot0, nslots, slotvec0, slotvec):
55214         Now file-scope so that quotearg_free can get at them.
55215
55216 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55217
55218         Sync from Automake.
55219         * build-aux/gnupload: Add missing 'gnu' to example URL.
55220         Report by Karl Berry.
55221
55222 2006-11-08  Bruno Haible  <bruno@clisp.org>
55223
55224         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55225         Suggested by Paul Eggert.
55226
55227 2006-11-08  Jim Meyering  <jim@meyering.net>
55228
55229         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55230         It's already included if !_LIBC.
55231         (fts_safe_changedir): Add a comment.
55232
55233 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55234
55235         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55236         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55237         Matthew Woehlke.
55238
55239         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55240         definitions up, to avoid colliding with change below.
55241         (static_inline) [HAVE_INLINE]: New macro.
55242         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55243         Provide extern decls when !HAVE_INLINE.  Do not define unless
55244         static_inline is defined, either by us or by xmalloc.c.  Use
55245         static_inline rather than static inline.
55246         (XCALLOC): Optimize sizeof(T) = 1 case.
55247         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55248
55249 2006-11-07  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55252         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55253         AC_C_INLINE.
55254         * modules/xalloc (Files): Add m4/inline.m4.
55255
55256 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55257
55258         * README: Fix typo.
55259         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55260         (Miscellanous Notes): ...from this.
55261
55262 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55265         Mention that offsetof should be used instead of sizeof.
55266         From Bruno Haible.
55267
55268 2006-11-07  Bruno Haible  <bruno@clisp.org>
55269
55270         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55271
55272 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55273
55274         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55275         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55276         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55277         (gl_tree_add_before, gl_tree_add_after):
55278         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55279         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55280         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55281         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55282         (gl_linked_add_after, gl_linked_add_at): Likewise.
55283         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55284         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55285         (gl_tree_add_before, gl_tree_add_after): Likewise.
55286         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55287         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55288         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55289
55290 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55291
55292         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55293
55294 2006-11-06  Bruno Haible  <bruno@clisp.org>
55295
55296         * m4/inline.m4: New file.
55297         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55298         * modules/list (Files): Add m4/inline.m4.
55299         * modules/oset (Files): Likewise.
55300
55301 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55302
55303         * lib/idcache.c: Include <stddef.h>, for offsetof.
55304         (struct userid.name): Change from char * to a flexible array member.
55305         All uses changed.
55306         * modules/idcache (Depends-on): Add flexmember.
55307
55308         * MODULES.html.sh (Core language properties): New module flexmember.
55309         * modules/flexmember, m4/flexmember.m4: New files.
55310
55311         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55312         inline functions that are identical with the old xnmalloc_inline,
55313         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55314         that we can avoid some unnecessary integer multiplications and
55315         divisions in the common case where the element size is known at
55316         compile time.
55317         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55318         needed.
55319         (xnboundedmalloc): Remove.
55320         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55321         arguments, for consistency with rest of this header.
55322         (xcharalloc): Rewrite using XNMALLOC.
55323         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55324         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55325         versions have been moved to lib/xalloc.h and renamed to be the
55326         non-*_inline versions.
55327         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55328         and xnrealloc functions, since those functions are now inline and
55329         now call us.
55330         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55331         renaming described above.
55332         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55333         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55334         captures the dependency in AC_C_INLINE.
55335
55336         New module canonicalize-lgpl, proposed by Charles Wilson in
55337         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55338         with a few small changes afterwards.
55339         * MODULES.html.sh (File system functions): New module
55340         canonicalize-lgpl.
55341         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55342         and canonicalize_file_name.
55343         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55344         * modules/canonicalize-lgpl: New files.
55345
55346 2006-11-05  Bruno Haible  <bruno@clisp.org>
55347
55348         * gnulib-tool (func_import, func_create_testdir): Create directories
55349         also for files in subdirectories of lib/.
55350
55351 2006-11-05  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55354         ANSI C compliant.
55355
55356 2006-11-03  Bruno Haible  <bruno@clisp.org>
55357
55358         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55359         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55360         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55361         (xnboundedmalloc): New inline function.
55362         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55363         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55364         xmalloc.
55365         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55366         xmalloc.
55367         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55368         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55369         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55370         xmalloc.
55371         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55372         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55373         xmalloc.
55374         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55375         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55376         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55377         xmalloc.
55378         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55379         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55380         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55381         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55382         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55383         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55384         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55385
55386 2006-11-03  Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/c-ctype.h [C++]: Define functions without name mangling.
55389         * lib/fwriteerror.h [C++]: Likewise.
55390         * lib/gcd.h [C++]: Likewise.
55391         * lib/linebreak.h [C++]: Likewise.
55392
55393 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55396         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55397         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55399         Check for functions and headers just once.
55400         Check for declaration of canonicalize_file_name.
55401         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55402
55403 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55404
55405         * gnulib-tool (func_import): Fix typo in actioncmd.
55406
55407 2006-11-02  Bruno Haible  <bruno@clisp.org>
55408
55409         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55410         newline sequence in the Makefile.am snippet as a space, like "make"
55411         does.
55412         Reported by Roger Persson <perrog@gmail.com>.
55413
55414 2006-11-01  Bruno Haible  <bruno@clisp.org>
55415
55416         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55417         already declared in <string.h>.
55418         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55419
55420 2006-11-01  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55423         * lib/strcase.h: Include <string.h>.
55424         (strcasecmp): Define to rpl_strcasecmp here.
55425
55426 2006-11-01  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55429
55430 2006-11-01  Eric Blake  <ebb9@byu.net>
55431
55432         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55433
55434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55435
55436 2006-10-29  Bruno Haible  <bruno@clisp.org>
55437
55438         Make it compile in C++ mode.
55439         * lib/full-write.c (full_rw): Add a cast.
55440
55441 2006-11-01  Bruno Haible  <bruno@clisp.org>
55442
55443         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55444         be POSIX compliant.
55445         Reported by Roger Persson <perrog@gmail.com>.
55446
55447 2006-11-01  Eric Blake  <ebb9@byu.net>
55448
55449         * lib/getopt_.h: Fix comments.
55450
55451 2006-10-31  Eric Blake  <ebb9@byu.net>
55452
55453         * modules/tmpdir (Depends-on): Add sys_stat.
55454         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55455         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55456         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55457         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55458         tempname.
55459
55460 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55461
55462         Avoid some C++ diagnostics reported by Bruno Haible.
55463         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55464         xmalloc.
55465         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55466         (struct slotvec): Move to top level.
55467         (quotearg_n_options): Rewrite to avoid xmalloc.
55468         * lib/xalloc.h (xcharalloc): New function.
55469         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55470         [defined __cplusplus]: Add function template that provides result
55471         type propagation.  This part of the change is from Bruno Haible.
55472
55473 2006-10-29  Bruno Haible  <bruno@clisp.org>
55474
55475         Make it compile in C++ mode.
55476         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55477         * lib/strnlen1.c (strnlen1): Cast memchr result.
55478         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55479         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55480         (create_temp_dir): Rename local variable 'template'.
55481         (compile_csharp_using_sscli): Add cast.
55482         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55483         * lib/findprog.c (find_in_path): Likewise.
55484         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55485         * lib/wait-process.c (register_slave_subprocess): Likewise.
55486
55487 2006-10-22  Bruno Haible  <bruno@clisp.org>
55488
55489         * modules/tsearch: New file.
55490         * lib/tsearch.h: New file.
55491         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55492         * m4/tsearch.m4: New file.
55493         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55494
55495 2006-10-29  Eric Blake  <ebb9@byu.net>
55496
55497         * lib/arcfour.c: Assume config.h.
55498         * lib/arctwo.c: Likewise.
55499         * lib/base64.c: Likewise.
55500         * lib/check-version.c: Likewise.
55501         * lib/crc.c: Likewise.
55502         * lib/des.c: Likewise.
55503         * lib/gc-gnulib.c: Likewise.
55504         * lib/gc-libgcrypt.c: Likewise.
55505         * lib/gc-pbkdf2-sha1.c: Likewise.
55506         * lib/getaddrinfo.c: Likewise.
55507         * lib/getdelim.c: Likewise.
55508         * lib/getline.c: Likewise.
55509         * lib/hmac-md5.c: Likewise.
55510         * lib/hmac-sha1.c: Likewise.
55511         * lib/iconvme.c: Likewise.
55512         * lib/md2.c: Likewise.
55513         * lib/md4.c: Likewise.
55514         * lib/memxor.c: Likewise.
55515         * lib/read-file.c: Likewise.
55516         * lib/readline.c: Likewise.
55517         * lib/rijndael-alg-fst.c: Likewise.
55518         * lib/rijndael-api-fst.c: Likewise.
55519         * lib/xgetdomainname.c: Likewise.
55520
55521 2006-10-28  Eric Blake  <ebb9@byu.net>
55522
55523         * lib/xstrndup.c: Assume config.h.
55524
55525 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55528         stat-macros.h is now for our own macros, whereas stat_h is for
55529         macros in the <sys/stat.h> name space.
55530         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55531         (STAT_MACROS_H): Remove.
55532         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55533         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55534         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55535         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55536         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55537         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55538         Move these macros to ...
55539         * lib/stat_.h: here.  Don't include stat-macros.h.
55540         * lib/canonicalize.c: Don't include stat-macros.h.
55541         * lib/chown.c: Likewise.
55542         * lib/euidaccess.c: Likewise.
55543         * lib/file-type.c: Likewise.
55544         * lib/filemode.c: Likewise.
55545         * lib/glob.c: Likewise.
55546         * lib/isapipe.c: Likewise.
55547         * lib/lchown.c: Likewise.
55548         * lib/lstat.c: Likewise.
55549         * lib/mkdir-p.c: Likewise.
55550         * lib/rmdir.c: Likewise.
55551         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55553         unless mkdir isn't declared, to speed up 'configure'.
55554         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55555         would define all the S_* symbols.
55556         * modules/canonicalize (Depends-on):
55557         Depend on sys_stat, not stat-macros.
55558         * modules/chown: Likewise.
55559         * modules/euidaccess: Likewise.
55560         * modules/filemode: Likewise.
55561         * modules/file-type: Likewise.
55562         * modules/glob: Likewise.
55563         * modules/isapipe: Likewise.
55564         * modules/lchown: Likewise.
55565         * modules/lstat: Likewise.
55566         * modules/mkancesdirs: Likewise.
55567         * modules/rmdir: Likewise.
55568         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55569         * modules/modechange: Likewise.
55570         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55571         (configure.ac): Remove gl_STAT_MACROS.
55572         * modules/sys_stat (Depends-on): Remove stat-macros.
55573
55574 2006-10-27  Bruno Haible  <bruno@clisp.org>
55575
55576         * m4/signed.m4: Remove file.
55577         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55578         invocation.
55579         * modules/vasnprintf (Files): Remove m4/signed.m4.
55580
55581 2006-10-27  Bruno Haible  <bruno@clisp.org>
55582
55583         Update to GNU gettext 0.16.
55584         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55585         m4/inttypes-h.m4, m4/signed.m4.
55586         * m4/gettext.m4: Update to GNU gettext 0.16.
55587         * m4/intl.m4: New file, from GNU gettext.
55588         * m4/intldir.m4: New file, from GNU gettext.
55589         * config/srclist.txt: Update
55590
55591 2006-10-27  Eric Blake  <ebb9@byu.net>
55592
55593         * MODULES.html.sh: Document tempname.
55594         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55595         dependencies.
55596         (Files): Move lib/tempname.c...
55597         * modules/tempname: ...to this new module.
55598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55599         (gl_PREREQ_TEMPNAME): Move...
55600         * m4/tempname.m4: ...to this new file.
55601         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55602         * modules/sys_stat (Depends-on): Add stat-macros.
55603         * lib/stat_.h (includes): Pick up stat macros.
55604         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55605         if stat macros are broken.
55606         * lib/tempname.c (includes): No need to include "stat-macros.h".
55607         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55608         (direxists, __path_search) [!_LIBC]: Don't compile these in
55609         gnulib; the tmpdir module covers that.
55610         * lib/tempname.h: New file.
55611
55612 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55613
55614         * COPYING: Explain how gnulib-tool converts licence headers.
55615         Almost all wording by Eric Blake.
55616
55617 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55618
55619         * lib/mbchar.h (is_basic_table): Make read-only.
55620         * lib/mbchar.c (is_basic_table): Likewise.
55621         Reported by John Darrington.
55622
55623 2006-10-25  Bruno Haible  <bruno@clisp.org>
55624
55625         * lib/progname.h (set_program_name): Undefine before defining.
55626
55627 2006-10-25  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55630         false for non-gcc C++ compilers.
55631         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55632
55633 2006-10-24  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55636         iconv implementations like Irix iconv.
55637
55638 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55639
55640         * modules/vararrays: New file.
55641         * m4/vararrays.m4: New file, taken from diffutils.
55642         * MODULES.html.sh: New module vararrays.
55643
55644 2006-10-24  Karl Berry  <karl@gnu.org>
55645
55646         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55647         Don't call GNU Unix.
55648
55649 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55650
55651         * users.txt: Add Libtool.
55652
55653         Sync from Libtool:
55654
55655         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55658         to gnulib's policy of including config.h unconditionally.
55659
55660 2006-10-24  Bruno Haible  <bruno@clisp.org>
55661
55662         * modules/wcwidth (Files): Add m4/wint_t.m4.
55663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55664         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55665
55666 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55669         to pacify GCC with some -W flags enabled.  Problem reported by
55670         Bruno Haible.
55671
55672 2006-10-24  Jim Meyering  <jim@meyering.net>
55673
55674         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55675         Reported by Karl Berry.
55676
55677 2006-10-23  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55680
55681 2006-10-24  Bruno Haible  <bruno@clisp.org>
55682
55683         * lib/gl_list.h: Use C comment style, not C++ comment style.
55684
55685 2006-10-23  Eric Blake  <ebb9@byu.net>
55686
55687         * lib/getaddrinfo.c (includes): Add missing include.
55688
55689 2006-10-23  Bruno Haible  <bruno@clisp.org>
55690             Paul Eggert  <eggert@cs.ucla.edu>
55691
55692         Ability to rename obstack_free.
55693         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55694         obstack_free.
55695         (obstack_free): Invoke the __obstack_free macro.
55696         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55697
55698 2006-10-23  Bruno Haible  <bruno@clisp.org>
55699             Paul Eggert  <eggert@cs.ucla.edu>
55700
55701         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55702         __argc, __argv from the declaration. (They are defined as macros on
55703         mingw.)
55704
55705 2006-10-22  Bruno Haible  <bruno@clisp.org>
55706
55707         * doc/gnulib-intro.texi: New file.
55708         * doc/gnulib.texi: Include it.
55709
55710 2006-10-21  Bruno Haible  <bruno@clisp.org>
55711
55712         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55713         "Introduction", "Miscellanous Notes", "Particular Modules".
55714
55715 2006-10-21  Bruno Haible  <bruno@clisp.org>
55716
55717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55718         Change mostlyclean-local rule to avoid sh syntax error from bash
55719         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55720
55721 2006-10-23  Jim Meyering  <jim@meyering.net>
55722
55723         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55724         in place of snprintf.
55725
55726         * modules/inttostr (Files): Add lib/uinttostr.c.
55727         * lib/uinttostr.c (inttostr): New file/function.
55728         * lib/inttostr.h (uinttostr): Declare.
55729         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55730         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55731         Add uinttostr.
55732         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55733
55734 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55735
55736         * lib/canonicalize.c (ELOOP): Define if not already defined.
55737         Problem reported by Bruno Haible in
55738         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55739
55740 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55743         Problem reported by Perry Smith and Ville Laurikari.
55744
55745         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55746         uses.
55747
55748 2006-10-19  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55751         for mingw.
55752
55753 2006-10-19  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55756         Needed for mingw.
55757
55758 2006-10-19  Bruno Haible  <bruno@clisp.org>
55759
55760         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55761
55762 2006-10-19  Bruno Haible  <bruno@clisp.org>
55763
55764         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55765         it.
55766
55767 2006-10-19  Bruno Haible  <bruno@clisp.org>
55768
55769         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55770         invocation.
55771
55772 2006-10-19  Bruno Haible  <bruno@clisp.org>
55773
55774         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55775         mountlist by default.
55776
55777 2006-10-16  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/c-strstr.c: Include c-strstr.h.
55780
55781 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55782
55783         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55784         in a slash.
55785
55786 2006-10-18  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/lock.h [C++]: Wrap definitions in extern "C".
55789
55790 2006-10-18  Bruno Haible  <bruno@clisp.org>
55791
55792         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55793         gl_LIBOBJS list.
55794
55795 2006-10-18  Bruno Haible  <bruno@clisp.org>
55796
55797         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55798
55799 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55800
55801         * lib/xstrtol.h: Include gettext.h.
55802         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55803         Problem reported by Eric Blake.
55804         * modules/xstrtol (Depends-on): Add gettext-h.
55805
55806 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55807
55808         * lib/strftime.c (advance): New macro.
55809         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55810         incomplete type, so you can't add 0 to it.  Problem and patch
55811         reported by Eelco Dolstra for dietlibc.
55812
55813 2006-10-18  Jim Meyering  <jim@meyering.net>
55814
55815         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55816         type for a local, and rename it: s/up/user_proc/.
55817
55818 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55819
55820         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55821         READ_UTMP_USER_PROCESS.
55822         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55823
55824 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55825
55826         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55827         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55828
55829 2006-10-17  Eric Blake  <ebb9@byu.net>
55830
55831         * lib/sigprocmask.c (sigprocmask): Fix typo.
55832
55833         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55834
55835         * modules/clean-temp (Makefile.am): Don't add to make output...
55836         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55837         config.h.
55838
55839 2006-10-17  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55842         differently if DEFAULT_TEXT_DOMAIN is set.
55843
55844 2006-10-16  Bruno Haible  <bruno@clisp.org>
55845
55846         * lib/clean-temp.c: Include fwriteerror.h.
55847
55848 2006-10-16  Bruno Haible  <bruno@clisp.org>
55849
55850         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55851
55852 2006-10-16  Bruno Haible  <bruno@clisp.org>
55853
55854         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55855         * lib/sigprocmask.h: Include <sys/types.h>.
55856         (sigset_t): Use the system's definition if present.
55857
55858 2006-10-17  Eric Blake  <ebb9@byu.net>
55859
55860         * lib/xvasprintf.c (includes): Assume config.h.
55861         * lib/xasprintf.c (includes): Likewise.
55862
55863 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55864
55865         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55866         at least as wide as intmax_t.
55867
55868 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55869
55870         (Imported from Automake.)
55871         * build-aux/gnupload: Update to version 1.1 of directive file.
55872
55873 2006-10-16  Eric Blake  <ebb9@byu.net>
55874
55875         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55876         match Automake 1.10a.
55877
55878 2006-10-14  Bruno Haible  <bruno@clisp.org>
55879
55880         * modules/sigprocmask: New file.
55881         * lib/sigprocmask.h: New file.
55882         * lib/sigprocmask.c: New file.
55883         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55884         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55885         request sigprocmask.o.
55886         (gl_PREREQ_SIGPROCMASK): New macro.
55887         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55888         (Depends-on): Add sigprocmask.
55889         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55890         gt_SIGNALBLOCKING. Test for 'raise' only once.
55891         * lib/fatal-signal.c: Include sigprocmask.h.
55892         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55893         unblock_fatal_signals): Define always.
55894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55895         sigprocmask.
55896
55897 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55898
55899         Sync from Automake.
55900         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55901         which incorrectly sets the mode of an existing destination
55902         directory.  In some cases the unpatched install-sh could do the
55903         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55904         system.  We hope this is rare in practice, but it's clearly worth
55905         fixing.  Problem reported by Alex Unleashed in
55906         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55907         Also, don't bother to check for -m bugs unless we're using -m;
55908         suggested by Stepan Kasal.
55909
55910 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55911
55912         Sync from Automake.
55913         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55914         `-c' flag, so they appear at the same position as in %FASTDEP%
55915         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55916         which ignores unknown options only after the first non-option.
55917         Bug report against M4 by Nelson H. F. Beebe.
55918
55919 2006-10-13  Jim Meyering  <jim@meyering.net>
55920
55921         Fix a bug in yesterday's change.
55922         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55923         p->fts_statp->st_dev would be used uninitialized.
55924         Ensures that we always call fts_stat on the very first entry.
55925         Miklos Szeredi reported that find -xdev stopped working.
55926
55927 2006-10-12  Bruno Haible  <bruno@clisp.org>
55928
55929         * gnulib-tool (func_get_automake_snippet): Append an automatically
55930         computed EXTRA_DIST augmentation.
55931         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55932         * modules/alloca-opt (Makefile.am): Likewise.
55933         * modules/allocsa (Makefile.am): Likewise.
55934         * modules/arcfour (Makefile.am): Likewise.
55935         * modules/arctwo (Makefile.am): Likewise.
55936         * modules/argmatch (Makefile.am): Likewise.
55937         * modules/argz (Makefile.am): Likewise.
55938         * modules/atexit (Makefile.am): Likewise.
55939         * modules/backupfile (Makefile.am): Likewise.
55940         * modules/byteswap (Makefile.am): Likewise.
55941         * modules/c-strtod (Makefile.am): Likewise.
55942         * modules/c-strtold (Makefile.am): Likewise.
55943         * modules/calloc (Makefile.am): Likewise.
55944         * modules/canon-host (Makefile.am): Likewise.
55945         * modules/canonicalize (Makefile.am): Likewise.
55946         * modules/chdir-long (Makefile.am): Likewise.
55947         * modules/chdir-safer (Makefile.am): Likewise.
55948         * modules/check-version (Makefile.am): Likewise.
55949         * modules/chown (Makefile.am): Likewise.
55950         * modules/cloexec (Makefile.am): Likewise.
55951         * modules/close-stream (Makefile.am): Likewise.
55952         * modules/closeout (Makefile.am): Likewise.
55953         * modules/crc (Makefile.am): Likewise.
55954         * modules/csharpexec (Makefile.am): Likewise.
55955         * modules/cycle-check (Makefile.am): Likewise.
55956         * modules/des (Makefile.am): Likewise.
55957         * modules/dev-ino (Makefile.am): Likewise.
55958         * modules/dirfd (Makefile.am): Likewise.
55959         * modules/dirname (Makefile.am): Likewise.
55960         * modules/dup2 (Makefile.am): Likewise.
55961         * modules/eealloc (Makefile.am): Likewise.
55962         * modules/error (Makefile.am): Likewise.
55963         * modules/euidaccess (Makefile.am): Likewise.
55964         * modules/exclude (Makefile.am): Likewise.
55965         * modules/exitfail (Makefile.am): Likewise.
55966         * modules/fcntl-safer (Makefile.am): Likewise.
55967         * modules/fcntl (Makefile.am): Likewise.
55968         * modules/file-type (Makefile.am): Likewise.
55969         * modules/fileblocks (Makefile.am): Likewise.
55970         * modules/filemode (Makefile.am): Likewise.
55971         * modules/filenamecat (Makefile.am): Likewise.
55972         * modules/fnmatch (Makefile.am): Likewise.
55973         * modules/fopen-safer (Makefile.am): Likewise.
55974         * modules/fpending (Makefile.am): Likewise.
55975         * modules/fprintftime (Makefile.am): Likewise.
55976         * modules/free (Makefile.am): Likewise.
55977         * modules/fsusage (Makefile.am): Likewise.
55978         * modules/ftruncate (Makefile.am): Likewise.
55979         * modules/fts (Makefile.am): Likewise.
55980         * modules/gc-arcfour (Makefile.am): Likewise.
55981         * modules/gc-des (Makefile.am): Likewise.
55982         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55983         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55984         * modules/gc-md4 (Makefile.am): Likewise.
55985         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55986         * modules/gc-sha1 (Makefile.am): Likewise.
55987         * modules/gc (Makefile.am): Likewise.
55988         * modules/getaddrinfo (Makefile.am): Likewise.
55989         * modules/getcwd (Makefile.am): Likewise.
55990         * modules/getdelim (Makefile.am): Likewise.
55991         * modules/getdomainname (Makefile.am): Likewise.
55992         * modules/getgroups (Makefile.am): Likewise.
55993         * modules/gethostname (Makefile.am): Likewise.
55994         * modules/gethrxtime (Makefile.am): Likewise.
55995         * modules/getline (Makefile.am): Likewise.
55996         * modules/getloadavg (Makefile.am): Likewise.
55997         * modules/getlogin_r (Makefile.am): Likewise.
55998         * modules/getndelim2 (Makefile.am): Likewise.
55999         * modules/getopt (Makefile.am): Likewise.
56000         * modules/getpagesize (Makefile.am): Likewise.
56001         * modules/getpass-gnu (Makefile.am): Likewise.
56002         * modules/getpass (Makefile.am): Likewise.
56003         * modules/getsubopt (Makefile.am): Likewise.
56004         * modules/gettime (Makefile.am): Likewise.
56005         * modules/gettimeofday (Makefile.am): Likewise.
56006         * modules/getugroups (Makefile.am): Likewise.
56007         * modules/getusershell (Makefile.am): Likewise.
56008         * modules/glob (Makefile.am): Likewise.
56009         * modules/group-member (Makefile.am): Likewise.
56010         * modules/hard-locale (Makefile.am): Likewise.
56011         * modules/hash (Makefile.am): Likewise.
56012         * modules/hmac-md5 (Makefile.am): Likewise.
56013         * modules/hmac-sha1 (Makefile.am): Likewise.
56014         * modules/human (Makefile.am): Likewise.
56015         * modules/idcache (Makefile.am): Likewise.
56016         * modules/imaxabs (Makefile.am): Likewise.
56017         * modules/imaxdiv (Makefile.am): Likewise.
56018         * modules/inet_ntop (Makefile.am): Likewise.
56019         * modules/inet_pton (Makefile.am): Likewise.
56020         * modules/intprops (Makefile.am): Likewise.
56021         * modules/inttostr (Makefile.am): Likewise.
56022         * modules/inttypes (Makefile.am): Likewise.
56023         * modules/isapipe (Makefile.am): Likewise.
56024         * modules/javaversion (Makefile.am): Likewise.
56025         * modules/lchmod (Makefile.am): Likewise.
56026         * modules/lchown (Makefile.am): Likewise.
56027         * modules/localcharset (Makefile.am): Likewise.
56028         * modules/long-options (Makefile.am): Likewise.
56029         * modules/lstat (Makefile.am): Likewise.
56030         * modules/malloc (Makefile.am): Likewise.
56031         * modules/mathl (Makefile.am): Likewise.
56032         * modules/mbchar (Makefile.am): Likewise.
56033         * modules/md2 (Makefile.am): Likewise.
56034         * modules/md4 (Makefile.am): Likewise.
56035         * modules/md5 (Makefile.am): Likewise.
56036         * modules/memcasecmp (Makefile.am): Likewise.
56037         * modules/memchr (Makefile.am): Likewise.
56038         * modules/memcmp (Makefile.am): Likewise.
56039         * modules/memcoll (Makefile.am): Likewise.
56040         * modules/memcpy (Makefile.am): Likewise.
56041         * modules/memmem (Makefile.am): Likewise.
56042         * modules/memmove (Makefile.am): Likewise.
56043         * modules/mempcpy (Makefile.am): Likewise.
56044         * modules/memrchr (Makefile.am): Likewise.
56045         * modules/memset (Makefile.am): Likewise.
56046         * modules/memxor (Makefile.am): Likewise.
56047         * modules/mkancesdirs (Makefile.am): Likewise.
56048         * modules/mkdir-p (Makefile.am): Likewise.
56049         * modules/mkdir (Makefile.am): Likewise.
56050         * modules/mkdtemp (Makefile.am): Likewise.
56051         * modules/mkstemp (Makefile.am): Likewise.
56052         * modules/mktime (Makefile.am): Likewise.
56053         * modules/modechange (Makefile.am): Likewise.
56054         * modules/mountlist (Makefile.am): Likewise.
56055         * modules/nanosleep (Makefile.am): Likewise.
56056         * modules/obstack (Makefile.am): Likewise.
56057         * modules/openat (Makefile.am): Likewise.
56058         * modules/pagealign_alloc (Makefile.am): Likewise.
56059         * modules/pathmax (Makefile.am): Likewise.
56060         * modules/physmem (Makefile.am): Likewise.
56061         * modules/poll (Makefile.am): Likewise.
56062         * modules/posixtm (Makefile.am): Likewise.
56063         * modules/posixver (Makefile.am): Likewise.
56064         * modules/putenv (Makefile.am): Likewise.
56065         * modules/quote (Makefile.am): Likewise.
56066         * modules/quotearg (Makefile.am): Likewise.
56067         * modules/raise (Makefile.am): Likewise.
56068         * modules/read-file (Makefile.am): Likewise.
56069         * modules/readline (Makefile.am): Likewise.
56070         * modules/readlink (Makefile.am): Likewise.
56071         * modules/readtokens (Makefile.am): Likewise.
56072         * modules/readutmp (Makefile.am): Likewise.
56073         * modules/realloc (Makefile.am): Likewise.
56074         * modules/regex (Makefile.am): Likewise.
56075         * modules/rename-dest-slash (Makefile.am): Likewise.
56076         * modules/rename (Makefile.am): Likewise.
56077         * modules/rijndael (Makefile.am): Likewise.
56078         * modules/rmdir (Makefile.am): Likewise.
56079         * modules/rpmatch (Makefile.am): Likewise.
56080         * modules/safe-read (Makefile.am): Likewise.
56081         * modules/safe-write (Makefile.am): Likewise.
56082         * modules/same-inode (Makefile.am): Likewise.
56083         * modules/same (Makefile.am): Likewise.
56084         * modules/save-cwd (Makefile.am): Likewise.
56085         * modules/savedir (Makefile.am): Likewise.
56086         * modules/setenv (Makefile.am): Likewise.
56087         * modules/settime (Makefile.am): Likewise.
56088         * modules/sha1 (Makefile.am): Likewise.
56089         * modules/sig2str (Makefile.am): Likewise.
56090         * modules/snprintf (Makefile.am): Likewise.
56091         * modules/stat-macros (Makefile.am): Likewise.
56092         * modules/stat-time (Makefile.am): Likewise.
56093         * modules/stdbool (Makefile.am): Likewise.
56094         * modules/stdint (Makefile.am): Likewise.
56095         * modules/stdlib-safer (Makefile.am): Likewise.
56096         * modules/stpcpy (Makefile.am): Likewise.
56097         * modules/stpncpy (Makefile.am): Likewise.
56098         * modules/strcase (Makefile.am): Likewise.
56099         * modules/strcasestr (Makefile.am): Likewise.
56100         * modules/strchrnul (Makefile.am): Likewise.
56101         * modules/strcspn (Makefile.am): Likewise.
56102         * modules/strdup (Makefile.am): Likewise.
56103         * modules/strerror (Makefile.am): Likewise.
56104         * modules/strftime (Makefile.am): Likewise.
56105         * modules/strndup (Makefile.am): Likewise.
56106         * modules/strnlen (Makefile.am): Likewise.
56107         * modules/strpbrk (Makefile.am): Likewise.
56108         * modules/strsep (Makefile.am): Likewise.
56109         * modules/strstr (Makefile.am): Likewise.
56110         * modules/strtod (Makefile.am): Likewise.
56111         * modules/strtoimax (Makefile.am): Likewise.
56112         * modules/strtok_r (Makefile.am): Likewise.
56113         * modules/strtol (Makefile.am): Likewise.
56114         * modules/strtoll (Makefile.am): Likewise.
56115         * modules/strtoul (Makefile.am): Likewise.
56116         * modules/strtoull (Makefile.am): Likewise.
56117         * modules/strtoumax (Makefile.am): Likewise.
56118         * modules/strverscmp (Makefile.am): Likewise.
56119         * modules/sys_socket (Makefile.am): Likewise.
56120         * modules/sys_stat (Makefile.am): Likewise.
56121         * modules/sysexits (Makefile.am): Likewise.
56122         * modules/time_r (Makefile.am): Likewise.
56123         * modules/timegm (Makefile.am): Likewise.
56124         * modules/timespec (Makefile.am): Likewise.
56125         * modules/tmpfile-safer (Makefile.am): Likewise.
56126         * modules/trim (Makefile.am): Likewise.
56127         * modules/unistd-safer (Makefile.am): Likewise.
56128         * modules/unlinkdir (Makefile.am): Likewise.
56129         * modules/unlocked-io (Makefile.am): Likewise.
56130         * modules/userspec (Makefile.am): Likewise.
56131         * modules/utime (Makefile.am): Likewise.
56132         * modules/utimecmp (Makefile.am): Likewise.
56133         * modules/utimens (Makefile.am): Likewise.
56134         * modules/vasnprintf (Makefile.am): Likewise.
56135         * modules/vasprintf (Makefile.am): Likewise.
56136         * modules/vsnprintf (Makefile.am): Likewise.
56137         * modules/xalloc (Makefile.am): Likewise.
56138         * modules/xgetcwd (Makefile.am): Likewise.
56139         * modules/xnanosleep (Makefile.am): Likewise.
56140         * modules/xreadlink (Makefile.am): Likewise.
56141         * modules/xstrtod (Makefile.am): Likewise.
56142         * modules/xstrtol (Makefile.am): Likewise.
56143         * modules/xstrtold (Makefile.am): Likewise.
56144         * modules/yesno (Makefile.am): Likewise.
56145         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56146
56147 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         * modules/error (Makefile.am): Distribute files through
56150         EXTRA_DIST, not lib_SOURCES.
56151
56152 2006-10-12  Eric Blake  <ebb9@byu.net>
56153
56154         * modules/error (Makefile.am): Distribute files in /lib.
56155         * modules/obstack (Makefile.am): Likewise.
56156
56157 2006-10-12  Bruno Haible  <bruno@clisp.org>
56158
56159         * modules/acl (Makefile.am): Distribute all files in lib/ through
56160         EXTRA_DIST.
56161         * modules/arcfour (Makefile.am): Likewise.
56162         * modules/arctwo (Makefile.am): Likewise.
56163         * modules/argmatch (Makefile.am): Likewise.
56164         * modules/argz (Makefile.am): Likewise.
56165         * modules/atexit (Makefile.am): Likewise.
56166         * modules/backupfile (Makefile.am): Likewise.
56167         * modules/c-strtod (Makefile.am): Likewise.
56168         * modules/c-strtold (Makefile.am): Likewise.
56169         * modules/calloc (Makefile.am): Likewise.
56170         * modules/canon-host (Makefile.am): Likewise.
56171         * modules/canonicalize (Makefile.am): Likewise.
56172         * modules/chdir-long (Makefile.am): Likewise.
56173         * modules/chdir-safer (Makefile.am): Likewise.
56174         * modules/check-version (Makefile.am): Likewise.
56175         * modules/chown (Makefile.am): Likewise.
56176         * modules/cloexec (Makefile.am): Likewise.
56177         * modules/close-stream (Makefile.am): Likewise.
56178         * modules/closeout (Makefile.am): Likewise.
56179         * modules/crc (Makefile.am): Likewise.
56180         * modules/cycle-check (Makefile.am): Likewise.
56181         * modules/des (Makefile.am): Likewise.
56182         * modules/dirfd (Makefile.am): Likewise.
56183         * modules/dirname (Makefile.am): Likewise.
56184         * modules/dup2 (Makefile.am): Likewise.
56185         * modules/euidaccess (Makefile.am): Likewise.
56186         * modules/exclude (Makefile.am): Likewise.
56187         * modules/exitfail (Makefile.am): Likewise.
56188         * modules/fcntl-safer (Makefile.am): Likewise.
56189         * modules/file-type (Makefile.am): Likewise.
56190         * modules/fileblocks (Makefile.am): Likewise.
56191         * modules/filemode (Makefile.am): Likewise.
56192         * modules/filenamecat (Makefile.am): Likewise.
56193         * modules/fnmatch (Makefile.am): Likewise.
56194         * modules/fopen-safer (Makefile.am): Likewise.
56195         * modules/fpending (Makefile.am): Likewise.
56196         * modules/fprintftime (Makefile.am): Likewise.
56197         * modules/free (Makefile.am): Likewise.
56198         * modules/fsusage (Makefile.am): Likewise.
56199         * modules/ftruncate (Makefile.am): Likewise.
56200         * modules/fts (Makefile.am): Likewise.
56201         * modules/gc (Makefile.am): Likewise.
56202         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56203         * modules/getaddrinfo (Makefile.am): Likewise.
56204         * modules/getcwd (Makefile.am): Likewise.
56205         * modules/getdelim (Makefile.am): Likewise.
56206         * modules/getdomainname (Makefile.am): Likewise.
56207         * modules/getgroups (Makefile.am): Likewise.
56208         * modules/gethostname (Makefile.am): Likewise.
56209         * modules/gethrxtime (Makefile.am): Likewise.
56210         * modules/getline (Makefile.am): Likewise.
56211         * modules/getloadavg (Makefile.am): Likewise.
56212         * modules/getlogin_r (Makefile.am): Likewise.
56213         * modules/getopt (Makefile.am): Likewise.
56214         * modules/getpass (Makefile.am): Likewise.
56215         * modules/getpass-gnu (Makefile.am): Likewise.
56216         * modules/getsubopt (Makefile.am): Likewise.
56217         * modules/gettime (Makefile.am): Likewise.
56218         * modules/gettimeofday (Makefile.am): Likewise.
56219         * modules/getugroups (Makefile.am): Likewise.
56220         * modules/getusershell (Makefile.am): Likewise.
56221         * modules/glob (Makefile.am): Likewise.
56222         * modules/group-member (Makefile.am): Likewise.
56223         * modules/hard-locale (Makefile.am): Likewise.
56224         * modules/hash (Makefile.am): Likewise.
56225         * modules/hmac-md5 (Makefile.am): Likewise.
56226         * modules/hmac-sha1 (Makefile.am): Likewise.
56227         * modules/human (Makefile.am): Likewise.
56228         * modules/idcache (Makefile.am): Likewise.
56229         * modules/imaxabs (Makefile.am): Likewise.
56230         * modules/imaxdiv (Makefile.am): Likewise.
56231         * modules/inet_ntop (Makefile.am): Likewise.
56232         * modules/inet_pton (Makefile.am): Likewise.
56233         * modules/inttostr (Makefile.am): Likewise.
56234         * modules/isapipe (Makefile.am): Likewise.
56235         * modules/lchown (Makefile.am): Likewise.
56236         * modules/long-options (Makefile.am): Likewise.
56237         * modules/lstat (Makefile.am): Likewise.
56238         * modules/malloc (Makefile.am): Likewise.
56239         * modules/mathl (Makefile.am): Likewise.
56240         * modules/mbchar (Makefile.am): Likewise.
56241         * modules/md2 (Makefile.am): Likewise.
56242         * modules/md4 (Makefile.am): Likewise.
56243         * modules/md5 (Makefile.am): Likewise.
56244         * modules/memcasecmp (Makefile.am): Likewise.
56245         * modules/memchr (Makefile.am): Likewise.
56246         * modules/memcmp (Makefile.am): Likewise.
56247         * modules/memcoll (Makefile.am): Likewise.
56248         * modules/memcpy (Makefile.am): Likewise.
56249         * modules/memmem (Makefile.am): Likewise.
56250         * modules/memmove (Makefile.am): Likewise.
56251         * modules/mempcpy (Makefile.am): Likewise.
56252         * modules/memrchr (Makefile.am): Likewise.
56253         * modules/memset (Makefile.am): Likewise.
56254         * modules/memxor (Makefile.am): Likewise.
56255         * modules/mkancesdirs (Makefile.am): Likewise.
56256         * modules/mkdir (Makefile.am): Likewise.
56257         * modules/mkdir-p (Makefile.am): Likewise.
56258         * modules/mkdtemp (Makefile.am): Likewise.
56259         * modules/mkstemp (Makefile.am): Likewise.
56260         * modules/mktime (Makefile.am): Likewise.
56261         * modules/modechange (Makefile.am): Likewise.
56262         * modules/mountlist (Makefile.am): Likewise.
56263         * modules/nanosleep (Makefile.am): Likewise.
56264         * modules/openat (Makefile.am): Likewise.
56265         * modules/pagealign_alloc (Makefile.am): Likewise.
56266         * modules/physmem (Makefile.am): Likewise.
56267         * modules/poll (Makefile.am): Likewise.
56268         * modules/posixtm (Makefile.am): Likewise.
56269         * modules/posixver (Makefile.am): Likewise.
56270         * modules/putenv (Makefile.am): Likewise.
56271         * modules/quote (Makefile.am): Likewise.
56272         * modules/quotearg (Makefile.am): Likewise.
56273         * modules/raise (Makefile.am): Likewise.
56274         * modules/read-file (Makefile.am): Likewise.
56275         * modules/readline (Makefile.am): Likewise.
56276         * modules/readlink (Makefile.am): Likewise.
56277         * modules/readtokens (Makefile.am): Likewise.
56278         * modules/readutmp (Makefile.am): Likewise.
56279         * modules/realloc (Makefile.am): Likewise.
56280         * modules/regex (Makefile.am): Likewise.
56281         * modules/rename (Makefile.am): Likewise.
56282         * modules/rename-dest-slash (Makefile.am): Likewise.
56283         * modules/rijndael (Makefile.am): Likewise.
56284         * modules/rmdir (Makefile.am): Likewise.
56285         * modules/rpmatch (Makefile.am): Likewise.
56286         * modules/safe-read (Makefile.am): Likewise.
56287         * modules/safe-write (Makefile.am): Likewise.
56288         * modules/same (Makefile.am): Likewise.
56289         * modules/save-cwd (Makefile.am): Likewise.
56290         * modules/savedir (Makefile.am): Likewise.
56291         * modules/setenv (Makefile.am): Likewise.
56292         * modules/settime (Makefile.am): Likewise.
56293         * modules/sha1 (Makefile.am): Likewise.
56294         * modules/sig2str (Makefile.am): Likewise.
56295         * modules/snprintf (Makefile.am): Likewise.
56296         * modules/stdlib-safer (Makefile.am): Likewise.
56297         * modules/stpcpy (Makefile.am): Likewise.
56298         * modules/stpncpy (Makefile.am): Likewise.
56299         * modules/strcase (Makefile.am): Likewise.
56300         * modules/strcasestr (Makefile.am): Likewise.
56301         * modules/strchrnul (Makefile.am): Likewise.
56302         * modules/strcspn (Makefile.am): Likewise.
56303         * modules/strdup (Makefile.am): Likewise.
56304         * modules/strerror (Makefile.am): Likewise.
56305         * modules/strftime (Makefile.am): Likewise.
56306         * modules/strndup (Makefile.am): Likewise.
56307         * modules/strnlen (Makefile.am): Likewise.
56308         * modules/strpbrk (Makefile.am): Likewise.
56309         * modules/strsep (Makefile.am): Likewise.
56310         * modules/strstr (Makefile.am): Likewise.
56311         * modules/strtod (Makefile.am): Likewise.
56312         * modules/strtoimax (Makefile.am): Likewise.
56313         * modules/strtok_r (Makefile.am): Likewise.
56314         * modules/strtol (Makefile.am): Likewise.
56315         * modules/strtoll (Makefile.am): Likewise.
56316         * modules/strtoul (Makefile.am): Likewise.
56317         * modules/strtoull (Makefile.am): Likewise.
56318         * modules/strtoumax (Makefile.am): Likewise.
56319         * modules/strverscmp (Makefile.am): Likewise.
56320         * modules/time_r (Makefile.am): Likewise.
56321         * modules/timegm (Makefile.am): Likewise.
56322         * modules/tmpfile-safer (Makefile.am): Likewise.
56323         * modules/unistd-safer (Makefile.am): Likewise.
56324         * modules/unlinkdir (Makefile.am): Likewise.
56325         * modules/userspec (Makefile.am): Likewise.
56326         * modules/utime (Makefile.am): Likewise.
56327         * modules/utimecmp (Makefile.am): Likewise.
56328         * modules/utimens (Makefile.am): Likewise.
56329         * modules/vasnprintf (Makefile.am): Likewise.
56330         * modules/vasprintf (Makefile.am): Likewise.
56331         * modules/vsnprintf (Makefile.am): Likewise.
56332         * modules/xalloc (Makefile.am): Likewise.
56333         * modules/xgetcwd (Makefile.am): Likewise.
56334         * modules/xnanosleep (Makefile.am): Likewise.
56335         * modules/xreadlink (Makefile.am): Likewise.
56336         * modules/xstrtod (Makefile.am): Likewise.
56337         * modules/xstrtol (Makefile.am): Likewise.
56338         * modules/xstrtold (Makefile.am): Likewise.
56339         * modules/yesno (Makefile.am): Likewise.
56340
56341 2006-10-12  Jim Meyering  <jim@meyering.net>
56342
56343         * m4/getloadavg.m4: Revert the change below.
56344
56345         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56346         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56347         fail with a symlink, which is what coreutils' ./bootstrap now
56348         creates by default.
56349
56350 2006-10-12  Bruno Haible  <bruno@clisp.org>
56351
56352         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56353         mingw.
56354         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56355         MSVC and mingw explicitly.
56356
56357 2006-10-11  Simon Josefsson  <jas@extundo.com>
56358             Bruno Haible  <bruno@clisp.org>
56359
56360         Add support for multiple gnulib-tool invocations in the scope of a
56361         single configure.ac file.
56362         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56363         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56364         with the same contents as the _LIBADD variable.
56365         (func_emit_initmacro_start, func_emit_initmacro_end,
56366         func_emit_initmacro_done): New functions.
56367         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56368         gl_LIBOBJS and gl_LTLIBOBJS.
56369
56370 2006-10-11  Bruno Haible  <bruno@clisp.org>
56371
56372         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56373         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56374         autoreconf. Instead, invoke autopoint explicitly but move back the
56375         *.m4 files from gnulib.
56376
56377 2006-10-11  Bruno Haible  <bruno@clisp.org>
56378
56379         * gnulib-tool (func_usage): Make module names after --create-testdir
56380         optional.
56381         (func_create_testdir): If no module was specified, use nearly all
56382         modules.
56383
56384 2006-10-12  Jim Meyering  <jim@meyering.net>
56385
56386         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56387         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56388         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56389         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56390         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56391         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56392         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56393         (fts_set_stat_required): New function.
56394         (fts_open): Defer the calls to fts_stat, if possible or requested.
56395         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56396         into fts_stat itself.
56397         (fts_read): Perform any required (deferred) fts_stat call.
56398         (fts_build): Likewise, for the directory we're about to open and read.
56399         In the readdir loop, carefully decide whether each entry will require
56400         an eventual call to fts_stat, using dirent.d_type info if available.
56401         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56402         a command line argument into this function.  Update all callers.
56403         Map a return value of FTS_DOT to FTS_D for a command line argument.
56404         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56405         Thanks to Miklos Szeredi for his tenacity and for the initial
56406         bug report about "find" failing on a FUSE-based file system.
56407
56408         * lib/fts.c (fts_open): Use consistent indentation.
56409
56410 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56413         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56414         reported by Jim Meyering.  All uses of cache variables renamed
56415         to match Autoconf's.
56416         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56417         the other one.
56418
56419         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56420         Fix misspelling in diagnostic.
56421
56422 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56425         defined.  Problem reported by Matthew Woehlke.
56426
56427         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56428         Add support for Tandem NonStop R series.
56429         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56430         Use new macro.
56431
56432         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56433         (has_trailing_slash): Omit size arg; all callers changed.
56434         Omit 'inline', since it doesn't help performance and we'd
56435         need to configure it.
56436         Don't count //, ///, etc. as having a trailing slash.
56437         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56438         (rpl_rename_dest_slash): On failure, use rename's errno rather
56439         than (in some cases) an incorrect or junk errno.
56440         Simplify code by removing need to compute length; this does
56441         cause it to make two passes instead of one over the file name,
56442         but it's worth it.
56443
56444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56445         change, since Autoconf's version may no longer be appropriate now
56446         that we are using CVS Autoconf's version.  Add support for Tandem.
56447
56448 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56449             Bruno Haible  <bruno@clisp.org>
56450
56451         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56452         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56453         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56454         gl_AC_TYPE_LONG_LONG.
56455
56456         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56457         instead of HAVE_LONG_LONG.
56458         * lib/printf-args.c (printf_fetchargs): Likewise.
56459         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56460         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56461         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56462         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56463         gl_AC_TYPE_LONG_LONG.
56464
56465 2006-10-11  Bruno Haible  <bruno@clisp.org>
56466
56467         * m4/longlong.m4: Add comments.
56468         * m4/ulonglong.m4: Likewise.
56469
56470 2006-10-10  Bruno Haible  <bruno@clisp.org>
56471
56472         Make it possible to #define stpcpy, strdup to aliases.
56473         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56474         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56475
56476 2006-10-10  Bruno Haible  <bruno@clisp.org>
56477
56478         Make it possible to #define gcd to an alias.
56479         * lib/gcd.c: Include config.h.
56480
56481 2006-10-10  Bruno Haible  <bruno@clisp.org>
56482
56483         Make it possible to #define c_isascii to an alias.
56484         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56485         defined. Undefine the macros before defining them, to avoid gcc
56486         warnings.
56487         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56488         define NO_C_CTYPE_MACROS early.
56489
56490 2006-10-10  Bruno Haible  <bruno@clisp.org>
56491
56492         Make it possible to #define set_program_name to an alias.
56493         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56494         ENABLE_RELOCATABLE early.
56495
56496 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56497
56498         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56499         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56500         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56501         More generally, don't assume that 64-bit signed int is available
56502         if unsigned int is, and vice versa.
56503         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56504         unsigned symbols, not on their signed counterparts.
56505         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56506         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56507         (UINT64_C, UINTMAX_C):
56508         Likewise.
56509         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56510         unsigned counterparts.
56511         (Have_long_long, Unsigned): New macros.
56512         (Int): Renamed from INT.
56513         (strtoimax): Use the new macros.
56514         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56515         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56516         * modules/inttypes (inttypes.h): Substitute
56517         HAVE_UNSIGNED_LONG_LONG_INT.
56518         * modules/stdint (stdint.h): Likewise.
56519         (Files): Add m4/ulonglong.m4.
56520
56521 2006-10-10  Bruno Haible  <bruno@clisp.org>
56522
56523         Fix a gcc -Wshadow warning.
56524         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56525         to 'bucket'.
56526         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56527         gl_linked_indexof_from_to): Likewise.
56528         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56529         Likewise.
56530         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56531         Likewise.
56532         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56533         Reported by Eric Blake.
56534
56535 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56536
56537         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56538         for NetBSD.  Problem reported by Bruno Haible.
56539
56540 2006-10-09  Jim Meyering  <jim@meyering.net>
56541
56542         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56543         Patch from Bruno Haible.
56544
56545 2006-10-09  Jim Meyering  <jim@meyering.net>
56546
56547         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56548         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56549         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56550
56551 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56552
56553         Don't include <config.h> twice; this doesn't work in some cases,
56554         e.g., when config.h has "#define intmax_t long long int" and
56555         we include <config.h>, <inttypes.h>, <config.h> in that order.
56556         Problem reported by Matthew Woehlke in:
56557         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56558         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56559         * lib/fts-cycle.c: Don't include config.h.
56560         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56561         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56562         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56563         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56564         inttypes.h.
56565         * lib/xstrtoumax.c: Likewise.
56566         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56567         __strtol and the like, so that this module is more like its siblings.
56568         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56569         Remove; no longer needed now that we assume gnulib inttypes.h.
56570
56571 2006-10-08  Bruno Haible  <bruno@clisp.org>
56572
56573         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56574         option.
56575
56576 2006-10-07  Jim Meyering  <jim@meyering.net>
56577
56578         * modules/inttypes (inttypes.h): Revert what seems to have been
56579         an inadvertent part of today's change: use "|", not "/" in the
56580         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56581
56582 2006-10-07  Bruno Haible  <bruno@clisp.org>
56583
56584         * modules/sublist: New file.
56585
56586 2006-10-07  Bruno Haible  <bruno@clisp.org>
56587
56588         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56589         * modules/argz (argz.h): Likewise.
56590         * modules/arpa_inet (arpa/inet.h): Likewise.
56591         * modules/byteswap (byteswap.h): Likewise.
56592         * modules/configmake (configmake.h): Likewise.
56593         * modules/fcntl (fcntl.h): Likewise.
56594         * modules/fnmatch (fnmatch.h): Likewise.
56595         * modules/getopt (getopt.h): Likewise.
56596         * modules/glob (glob.h): Likewise.
56597         * modules/inttypes (inttypes.h): Likewise.
56598         * modules/netinet_in (netinet/in.h): Likewise.
56599         * modules/poll (poll.h): Likewise.
56600         * modules/stdbool (stdbool.h): Likewise.
56601         * modules/stdint (stdint.h): Likewise.
56602         * modules/sys_select (sys/select.h): Likewise.
56603         * modules/sys_socket (sys/socket.h): Likewise.
56604         * modules/sys_stat (sys/stat.h): Likewise.
56605         * modules/sysexits (sysexits.h): Likewise.
56606         * modules/unistd (unistd.h): Likewise.
56607         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56608         Add a "DO NOT EDIT" comment to the generated file.
56609         (func_import): Likewise for gnulib-comp.m4.
56610
56611 2006-10-07  Bruno Haible  <bruno@clisp.org>
56612
56613         * lib/gl_sublist.h: New file.
56614         * lib/gl_sublist.c: New file.
56615
56616 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56617
56618         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56619         name (relative to the original working directory) and the file
56620         name component (relative to the temporary working directory).  All
56621         callers changed.
56622         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56623         * lib/mkdir-p.c (make_dir_parents): Likewise.
56624         * lib/mkdir-p.h (make_dir_parents): Likewise.
56625
56626 2006-10-06  Eric Blake  <ebb9@byu.net>
56627
56628         Define several macros for use by the clean-temp module.
56629         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56630         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56631         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56632
56633         * lib/clean-temp.h (close_stream_temp): New declaration.
56634         * lib/clean-temp.c (includes): Pull in headers according to what
56635         other modules are in use.
56636         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56637
56638 2006-10-06  Bruno Haible  <bruno@clisp.org>
56639
56640         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56641         instead of fopen, fwriteerror.
56642
56643 2006-10-06  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56646         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56647         int.
56648         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56649         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56650         Return an error indicator.
56651         Suggested by Eric Blake.
56652
56653 2006-10-06  Bruno Haible  <bruno@clisp.org>
56654
56655         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56656         Reported by Eric Blake.
56657
56658 2006-10-06  Bruno Haible  <bruno@clisp.org>
56659
56660         * modules/closeout (Description): Mention stderr too.
56661
56662 2006-10-06  Bruno Haible  <bruno@clisp.org>
56663         and Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         * lib/closeout.c (close_stdout): Also close stderr.
56666         * lib/closeout.h: Update comment.
56667
56668 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56669
56670         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56671         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56672         * lib/dirchownmod.c: Include lchown.h.
56673         * lib/lchown.c: Don't include files that lchown.h now includes.
56674         Don't declare chown, since lchown.h now does that.
56675         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56676         (lchown): Define to rpl_chown if lchown is declared but
56677         does not exist.  Declare using a prototype if lchown is not
56678         declared.  Add a copyright notice.
56679         * lib/mkstemp.h: Include <unistd.h>.
56680         * lib/openat.c: Include lchown.h.
56681
56682         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56683         we now test for that separately.
56684         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56685         rather than O_NOFOLLOW, when testing whether it's possible to
56686         avoid a race condition reliably.
56687         * lib/savewd.c (savewd_chdir): Likewise.
56688
56689         Remove macros that are no longer needed now that stdint.h is
56690         reliable.
56691         * lib/fsusage.c (UINTMAX_MAX): Remove.
56692         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56693         * lib/utimecmp.c (SIZE_MAX): Remove.
56694
56695         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56696
56697         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56698         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56699         O_NOATIME works.
56700
56701 2006-10-05  Bruno Haible  <bruno@clisp.org>
56702
56703         * lib/gl_list.h (gl_sortedlist_search_from_to,
56704         gl_sortedlist_indexof_from_to): New declarations.
56705         (gl_list_implementation): New fields sortedlist_search_from_to,
56706         sortedlist_indexof_from_to.
56707         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56708         inline functions.
56709         * lib/gl_list.c (gl_sortedlist_search_from_to,
56710         gl_sortedlist_indexof_from_to): New functions.
56711         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56712         function.
56713         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56714         (gl_array_sortedlist_search_from_to): New function.
56715         (gl_array_list_implementation): Update.
56716         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56717         function.
56718         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56719         (gl_carray_sortedlist_search_from_to): New function.
56720         (gl_carray_list_implementation): Update.
56721         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56722         gl_linked_sortedlist_indexof_from_to): New functions.
56723         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56724         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56725         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56726         gl_tree_sortedlist_indexof_from_to): New functions.
56727         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56728         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56729         Update.
56730         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56731         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56732         Update.
56733
56734 2006-10-05  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56737         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56738         (struct gl_list_implementation): Add fields search_from_to,
56739         indexof_from_to. Remove fields search, indexof.
56740         (gl_list_search): Use the search_from_to method.
56741         (gl_list_search_from, gl_list_search_from_to): New functions.
56742         (gl_list_indexof): Use the indexof_from_to method.
56743         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56744         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56745         (gl_list_search_from, gl_list_search_from_to): New functions.
56746         (gl_list_indexof): Use the indexof_from_to method.
56747         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56748         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56749         gl_array_indexof. Add start_index, end_index arguments.
56750         (gl_array_search_from_to): Renamed from gl_array_search. Add
56751         start_index, end_index arguments.
56752         (gl_array_remove, gl_array_list_implementation): Update.
56753         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56754         gl_carray_indexof. Add start_index, end_index arguments.
56755         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56756         start_index, end_index arguments.
56757         (gl_carray_remove, gl_carray_list_implementation): Update.
56758         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56759         gl_linked_search. Add start_index, end_index arguments.
56760         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56761         start_index, end_index arguments.
56762         (gl_linked_remove): Update.
56763         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56764         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56765         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56766         field to 'size_t'.
56767         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56768         gl_tree_search. Add start_index, end_index arguments.
56769         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56770         start_index, end_index arguments.
56771         (gl_tree_remove): Update.
56772         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56773         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56774         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56775         function.
56776         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56777         gl_tree_search. Add start_index, end_index arguments.
56778         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56779         start_index, end_index arguments.
56780         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56781         Update.
56782         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56783
56784 2006-10-05  Bruno Haible  <bruno@clisp.org>
56785
56786         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56787
56788         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56789         fwriteerror_temp): New declarations.
56790         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56791         (descriptors): New variable.
56792         (cleanup): First, close the descriptors.
56793         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56794         fclose_temp, fwriteerror_temp): New functions.
56795
56796 2006-10-04  Jim Meyering  <jim@meyering.net>
56797
56798         * lib/fts.c (fts_open): Tiny comment change.
56799
56800 2006-10-04  Bruno Haible  <bruno@clisp.org>
56801
56802         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56803         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56804         gl_LOCK_BODY.
56805         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56806         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56807         gl_LOCK_EARLY_BODY.
56808         (gl_LOCK): Require gl_LOCK_BODY.
56809
56810 2006-10-04  Bruno Haible  <bruno@clisp.org>
56811
56812         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56813         (gl_oset_search_atleast): New declaration.
56814         (struct gl_oset_implementation): Add field 'search_atleast'.
56815         (gl_oset_search_atleast): New inline function.
56816         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56817         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56818         (gl_array_oset_implementation): Update.
56819         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56820         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56821         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56822
56823 2006-10-04  Bruno Haible  <bruno@clisp.org>
56824
56825         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56826
56827 2006-10-03  Bruno Haible  <bruno@clisp.org>
56828
56829         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56830         from gl_avltreehash_list_implementation.
56831
56832 2006-10-03  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/gl_oset.c (gl_oset_add): Fix return type.
56835
56836 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56837
56838         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56839
56840 2006-10-02  Eric Blake  <ebb9@byu.net>
56841
56842         * modules/strnlen (Depends-on): Add extensions.
56843
56844 2006-10-02  Eric Blake  <ebb9@byu.net>
56845
56846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56847         definition in 2.60+.
56848
56849 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56850
56851         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56852         checks.
56853
56854 2006-10-02  Bruno Haible  <bruno@clisp.org>
56855
56856         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56857         to the AUTOMAKE_OPTIONS.
56858         Reported by Jim Meyering.
56859
56860 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         Work around bug in Solaris 10 /proc file system:
56863         /proc/self/fd/NNN/.. isn't the parent directory of
56864         the directory whose file descriptor is NNN.  This needs to
56865         be worked around at run time, not compile time, since a
56866         program might be built on Solaris 8, where things work, and
56867         run on Solaris 10.
56868         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56869         to use the following interface instead:
56870         (OPENAT_BUFFER_SIZE): New macro.
56871         (openat_proc_name): New function.
56872         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56873         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56874         Likewise.
56875         * lib/openat-proc.c: New file.
56876         * modules/openat (Files): Add lib/openat-proc.c.
56877         (Depends-on): Add same-inode, stdbool.
56878         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56879
56880 2006-09-29  Bruno Haible  <bruno@clisp.org>
56881
56882         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56883         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56884         argument. Set stdout_closed before testing for ferror, not after.
56885         (fwriteerror, fwriteerror_no_ebadf): New functions.
56886
56887 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56888
56889         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56890
56891 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56892
56893         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56894         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56895
56896 2006-09-28  Jim Meyering  <jim@meyering.net>
56897
56898         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56899         Include <unistd.h>.
56900
56901 2006-09-28  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56904         * modules/linkedhash-list (Depends-on): Likewise.
56905         * modules/rbtreehash-list (Depends-on): Likewise.
56906
56907 2006-09-28  Bruno Haible  <bruno@clisp.org>
56908
56909         * lib/strndup.h: Simplify the redefinition of strndup.
56910         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56911         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56912
56913 2006-09-28  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56916         * lib/gl_linkedhash_list.c: Likewise.
56917         * lib/gl_rbtreehash_list.c: Likewise.
56918
56919 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56920
56921         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56922         getaddrinfo.
56923
56924         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56925         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56926         it causes <stdio_ext.h> to cause a compile-time error.
56927         Problem reported by Nelson H. F. Beebe.
56928         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56929         of HAVE_DECL___PENDING.
56930
56931         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56933         declaration.
56934
56935 2006-09-27  Jim Meyering  <jim@meyering.net>
56936
56937         This file could end up with a definition for a function
56938         named __strndup, rather than rpl_strndup on a system with
56939         incomplete weak_alias support.
56940         * lib/strndup.c (strndup): Rename from __strndup.
56941         Remove #defines that used to map __strndup to strndup.
56942         Don't use K&R prototypes.
56943         Remove LIBC-related code, since this file is not sync'd with glibc.
56944         * lib/strndup.h: Revamp, accordingly.
56945         * m4/strndup.m4: Modernize.
56946
56947 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56948
56949         * modules/savewd (Depends-on): Add 'raise'.
56950         * lib/savewd.c: Include <signal.h>, for 'raise'.
56951
56952 2006-09-26  Jim Meyering  <jim@meyering.net>
56953
56954         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56955         when we detect Darwin 8.7.0's acl_get_file bug.
56956         Rearrange to perform the new (below) run-test while $LIBS
56957         contains any acl-related library.  Set USE_ACL at the end.
56958         (gl_ACL_GET_FILE): New function.
56959
56960 2006-09-26  Eric Blake  <ebb9@byu.net>
56961
56962         * lib/verror.c: Include <config.h> unconditionally.
56963
56964 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56965
56966         * modules/clock-time (Maintainer): Add self.
56967         * modules/getlogin_r (Depends-on): Add extensions.
56968
56969 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56970
56971         * modules/clock-time: New module.
56972         * modules/nanosleep (Depends-on): Add clock-time.
56973         * modules/gethrxtime (Depends-on): Likewise.
56974         * modules/gettime (Depends-on): Likewise.
56975         * modules/settime (Depends-on): Likewise.
56976
56977         * modules/fts-lgpl: Depend on openat.
56978         * modules/mkancesdirs: Depend on savewd.
56979         * modules/mkdir-p: Likewise.
56980
56981 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56982
56983         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56984
56985         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56986         `gl_have_arbitrary_file_name_length_limit' to
56987         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56988         actually works between configure runs.
56989
56990 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56991             Bruno Haible  <bruno@clisp.org>
56992
56993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56994
56995 2006-09-25  Jim Meyering  <jim@meyering.net>
56996
56997         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56998         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56999
57000 2006-09-25  Eric Blake  <ebb9@byu.net>
57001
57002         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57003         exec's in 2006-09-18 patch when shuffling fds.
57004
57005 2006-09-25  Bruno Haible  <bruno@clisp.org>
57006
57007         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57008         Reported by Jim Meyering.
57009
57010 2006-09-24  Jim Meyering  <jim@meyering.net>
57011
57012         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57013         compare a pointer against a literal "0".  That caused failures with
57014         at least HP-UX's hpcc.
57015
57016 2006-09-22  Simon Josefsson  <jas@extundo.com>
57017
57018         * modules/gc-sha1:
57019         * modules/gc-md4:
57020         * modules/gc-hmac-sha1:
57021         * modules/gc-hmac-md5:
57022         * modules/gc-des:
57023         * modules/gc-arcfour: Distribute more files.
57024
57025 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57026
57027         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57028         (gl_linked_iterator_from_to): Initialize struct completely.
57029         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57030         (gl_tree_iterator_from_to): Likewise
57031         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57032         * lib/gl_array_list.c [lint] (gl_array_iterator)
57033         (gl_array_iterator_from_to): Likewise.
57034         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57035         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57036         (gl_carray_iterator_from_to): Likewise.
57037
57038         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57039         * lib/md4.c (md4_process_block): Remove unused variable.
57040         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57041         parentheses for clarity.
57042
57043 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57044
57045         * modules/bison-i18n (Depends-on): Add gettext.
57046
57047 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57048
57049         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57050         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57051         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57052         also add missing comma that caused broken test.
57053         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57054         stdlib.h, for `abort'.
57055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57056         variables.
57057         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57058         include unistd.h if present, for `rmdir'.
57059         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57060         variables.
57061         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57062         in the process include standard headers for prototypes.
57063         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57064         gets declared on GNU/Linux.
57065         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57066         unistd.h, for `rmdir'.
57067         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57068
57069         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57070         always true.
57071         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57072
57073         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57074
57075 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57076
57077         * gnulib-tool (func_version): Create output all at once.  This
57078         may help avoid triggering unnecessary SIGPIPEs, and at any
57079         rate it doesn't hurt.
57080
57081 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57082             Bruno Haible  <bruno@clisp.org>
57083
57084         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57085         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57086         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57087
57088         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57089         (gl_FUNC_VASPRINTF): Invoke it.
57090
57091 2006-09-22  Bruno Haible  <bruno@clisp.org>
57092
57093         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57094         getloadavg.c as first argument.
57095
57096 2006-09-22  Bruno Haible  <bruno@clisp.org>
57097
57098         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57099         at the beginning of the gl_INIT macro.
57100         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57101         gl_GETLOADAVG.
57102
57103 2006-09-22  Bruno Haible  <bruno@clisp.org>
57104
57105         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57106         module.
57107         Suggested by Ralf Wildenhues.
57108
57109 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57110
57111         Import this patch from libc:
57112
57113         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57114
57115         * lib/regex_internal.c (re_string_reconstruct): Handle
57116         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57117         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57118         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57119         re_string_context_at.
57120
57121         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57122         now requires it.
57123         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57124         gl_REGEX now does it for us.
57125         (gl_REGEX): Add test taken from
57126         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57127
57128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57129         Check that large offsets work.  Modernize Autoconf usages.
57130         Prefer "yes" to mean a good thing rather than a bad.
57131         Don't put "#define mkstemp" in config.h, as this might interfere
57132         with standard system headers that "#define mkstemp mkstemp64".
57133
57134         * modules/mkstemp (Depends-on): Add extensions, so that
57135         mkstemp is visible on some platforms.
57136         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57137         (Include): Change to "mkstemp.h" from <stdlib.h>.
57138         (Files): Add mkstemp.h.
57139
57140         * lib/mkstemp.h: New file, since some standard headers
57141         #define mkstemp.
57142         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57143         Include "mkstemp.h".
57144         Make the _LIBC code resemble glibc original more,
57145         e.g., use K&R style.
57146         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57147         (mkstemp): Remove, since mkstemp.h does this for us.
57148         * lib/stdlib--.h: Include mkstemp.h.
57149
57150         Import this patch from libc:
57151
57152         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57153
57154         * lib/tempname.c (__gen_tempname): Change attempts_min
57155         into a macro.  Use preprocessor to decide how to initialize
57156         attempts [Coverity CID 67].
57157
57158 2006-09-20  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/mkdtemp.c: Import from libc.
57161         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57162                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57163                 attempts_min into a macro.  Use preprocessor to decide how to
57164                 initialize attempts [Coverity CID 67].
57165         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57166                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57167                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57168
57169 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57170
57171         * gnulib-tool (func_exit): New function, to allow to pass the
57172         exit status portably through the trap.  Use everywhere.
57173         (--help, --version): Signal a write error.
57174         (trap): catch SIGPIPE, for write errors.
57175         Exit at the end of the trap, with the correct exit status.
57176
57177 2006-09-19  Karl Berry  <karl@gnu.org>
57178
57179         * doc/gnulib.texi: note about the license texinfo files.
57180
57181 2006-09-19  Eric Blake  <ebb9@byu.net>
57182
57183         * gnulib-tool: Avoid space-tab.
57184
57185 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57188         that prevented coreutils 6.1 from building.  Problem reported
57189         by Petter Reinholdtsen.
57190
57191 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57192
57193         * gnulib-tool (avoidlist): Fix typo that broke options like
57194         --avoid=lock that are used by coreutils bootstrap.
57195
57196 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57197
57198         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57199         more systematically.
57200
57201 2006-09-18  Jim Meyering  <jim@meyering.net>
57202
57203         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57204
57205 2006-09-18  Bruno Haible  <bruno@clisp.org>
57206
57207         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57208
57209 2006-09-18  Bruno Haible  <bruno@clisp.org>
57210
57211         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57212         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57213         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57214         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57215         * m4/gettext.m4: Require autoconf >= 2.52.
57216         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57217         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57218         of gl_cv_header_inttypes_h.
57219
57220 2006-09-18  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/javaversion.c: Include configmake.h.
57223
57224 2006-09-18  Bruno Haible  <bruno@clisp.org>
57225
57226         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57227         avoid that the while loops be executed in a subshell.
57228
57229 2006-09-18  Bruno Haible  <bruno@clisp.org>
57230
57231         * MODULES.html.sh (func_module): Break long lines.
57232         Suggested by Bruce Korb <bkorb@gnu.org>.
57233
57234 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57235
57236         Speed up by a factor of 1.12.
57237         * gnulib-tool (nl): New variable.
57238         (func_import): Rewrite include directive extraction to only read each
57239         directive once.
57240
57241 2006-09-17  Bruno Haible  <bruno@clisp.org>
57242
57243         * modules/javaversion (Makefile.am): Remove DEFS setting.
57244         (Depends-on): Add configmake, for PKGDATADIR definition.
57245
57246 2006-09-17  Bruno Haible  <bruno@clisp.org>
57247
57248         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57249
57250 2006-09-17  Bruno Haible  <bruno@clisp.org>
57251
57252         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57253         (func_modules_transitive_closure, func_modules_add_dummy,
57254         func_modules_to_filelist, func_import, func_create_testdir,
57255         func_create_megatestdir, ...): Use it wherever possible.
57256         Suggested by Ralf Wildenhues.
57257
57258 2006-09-16  Karl Berry  <karl@gnu.org>
57259
57260         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57261         to avoid sectioning errors.
57262         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57263         [ifinfo]: blank line after @center-ed titles.
57264         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57265         Spell FSF address consistently with others.
57266         (These changes approved by rms.)
57267
57268 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57269
57270         Speed up by a factor of 1.61.
57271         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57272         already checked module names again.
57273
57274 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57275
57276         Speed up by a factor of 1.13.
57277         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57278         for new_files, and the input to func_add_or_update.
57279
57280 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57281
57282         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57283         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57284
57285 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57286
57287         * modules/mkancesdirs (Depends-on): Add fcntl.
57288         * modules/savewd: New file.
57289         * MODULES.html.sh (File system functions): Add savewd.
57290
57291         * modules/configmake (Makefile.am): Add support for the
57292         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57293
57294 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * m4/savewd.m4: New file.
57297
57298 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57299
57300         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57301         (dirchownmod): New arg FD.  All callers changed.
57302         Use FD rather than opening the directory ourself, as opening is
57303         now the caller's responsibility.
57304         * lib/dirchownmod.h: Likewise.
57305         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57306         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57307         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57308         (test_dir): Remove.
57309         (mkancesdirs): Return length of prefix of FILE that has already
57310         been made, or -2 if there is a child doing the work.  Redo
57311         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57312         ".", and treat ".." specially since it might stray back into
57313         already-created areas.  Use a subprocess if necessary.  New arg
57314         WD; all users changed.  MAKE_DIR function should now return 1
57315         if it creates a directory that is not readable.  Return -2 if
57316         a child process is spun off.
57317         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57318         Adjust signature to match code.
57319         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57320         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57321         all users changed.
57322         * lib/savewd.c, lib/savewd.h: New files.
57323
57324 2006-09-15  Jim Meyering  <jim@meyering.net>
57325
57326         * modules/rename-dest-slash: New module.
57327         * MODULES.html.sh (posix_compat): Add it here.
57328
57329         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57330
57331 2006-09-15  Jim Meyering  <jim@meyering.net>
57332
57333         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57334         file.
57335
57336         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57337
57338 2006-09-15  Jim Meyering  <jim@meyering.net>
57339
57340         * lib/rename-dest-slash.c (has_trailing_slash): Use
57341         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57342         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57343         test before testing whether SRC is a directory.
57344         Suggestions from Bruno Haible.
57345
57346         Avoid a warning about an unused variable.
57347         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57348         into the #ifdef block where it's used.
57349
57350         * lib/rename-dest-slash.c: New file.
57351
57352 2006-09-14  Bruno Haible  <bruno@clisp.org>
57353
57354         * lib/allocsa.c: Include <config.h> unconditionally.
57355         * lib/asnprintf.c: Likewise.
57356         * lib/asprintf.c: Likewise.
57357         * lib/c-strcasecmp.c: Likewise.
57358         * lib/c-strcasestr.c: Likewise.
57359         * lib/c-strncasecmp.c: Likewise.
57360         * lib/c-strstr.c: Likewise.
57361         * lib/classpath.c: Likewise.
57362         * lib/clean-temp.c: Likewise.
57363         * lib/concatpath.c: Likewise.
57364         * lib/copy-file.c: Likewise.
57365         * lib/csharpcomp.c: Likewise.
57366         * lib/csharpexec.c: Likewise.
57367         * lib/execute.c: Likewise.
57368         * lib/fatal-signal.c: Likewise.
57369         * lib/findprog.c: Likewise.
57370         * lib/fwriteerror.c: Likewise.
57371         * lib/gl_array_list.c: Likewise.
57372         * lib/gl_array_oset.c: Likewise.
57373         * lib/gl_avltree_list.c: Likewise.
57374         * lib/gl_avltree_oset.c: Likewise.
57375         * lib/gl_avltreehash_list.c: Likewise.
57376         * lib/gl_carray_list.c: Likewise.
57377         * lib/gl_linked_list.c: Likewise.
57378         * lib/gl_linkedhash_list.c: Likewise.
57379         * lib/gl_list.c: Likewise.
57380         * lib/gl_oset.c: Likewise.
57381         * lib/gl_rbtree_list.c: Likewise.
57382         * lib/gl_rbtree_oset.c: Likewise.
57383         * lib/gl_rbtreehash_list.c: Likewise.
57384         * lib/imaxabs.c: Likewise.
57385         * lib/imaxdiv.c: Likewise.
57386         * lib/javacomp.c: Likewise.
57387         * lib/javaexec.c: Likewise.
57388         * lib/javaversion.c: Likewise.
57389         * lib/linebreak.c: Likewise.
57390         * lib/localcharset.c: Likewise.
57391         * lib/lock.c: Likewise.
57392         * lib/mbchar.c: Likewise.
57393         * lib/mbswidth.c: Likewise.
57394         * lib/mkdtemp.c: Likewise.
57395         * lib/pipe.c: Likewise.
57396         * lib/printf-args.c: Likewise.
57397         * lib/printf-parse.c: Likewise.
57398         * lib/progname.c: Likewise.
57399         * lib/progreloc.c: Likewise.
57400         * lib/readlink.c: Likewise.
57401         * lib/sh-quote.c: Likewise.
57402         * lib/stpcpy.c: Likewise.
57403         * lib/stpncpy.c: Likewise.
57404         * lib/strcasecmp.c: Likewise.
57405         * lib/strcasestr.c: Likewise.
57406         * lib/strcspn.c: Likewise.
57407         * lib/striconv.c: Likewise.
57408         * lib/strncasecmp.c: Likewise.
57409         * lib/strnlen1.c: Likewise.
57410         * lib/strstr.c: Likewise.
57411         * lib/strtok_r.c: Likewise.
57412         * lib/tls.c: Likewise.
57413         * lib/tmpdir.c: Likewise.
57414         * lib/unicodeio.c: Likewise.
57415         * lib/unsetenv.c: Likewise.
57416         * lib/vasnprintf.c: Likewise.
57417         * lib/vasprintf.c: Likewise.
57418         * lib/wait-process.c: Likewise.
57419         * lib/xallocsa.c: Likewise.
57420         * lib/xsetenv.c: Likewise.
57421         * lib/xstriconv.c: Likewise.
57422
57423 2006-09-13  Simon Josefsson  <jas@extundo.com>
57424
57425         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57426         that internally, suggested by Ralf Wildenhues
57427         <Ralf.Wildenhues@gmx.de>.
57428
57429 2006-09-13  Simon Josefsson  <jas@extundo.com>
57430
57431         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57432         @LIBOBJS@.
57433         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57434
57435 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57436
57437         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57438         longer worry about uses that don't define HAVE_CONFIG_H.
57439         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57440         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57441         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57442         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57443         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57444         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57445         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57446         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57447         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57448         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57449         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57450         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57451         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57452         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57453         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57454         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57455         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57456         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57457         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57458         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57459         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57460         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57461         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57462         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57463         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57464         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57465         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57466         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57467         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57468         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57469         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57470         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57471         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57472         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57473         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57474         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57475         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57476         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57477         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57478         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57479         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57480         Likewise.
57481
57482 2006-09-13  Eric Blake  <ebb9@byu.net>
57483
57484         * lib/getopt.c: Fix typo in last commit.
57485
57486 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57487
57488         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57489         dgettext.
57490
57491 2006-09-12  Jim Meyering  <jim@meyering.net>
57492
57493         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57494         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57495         Reported by Nelson H. F. Beebe.
57496
57497 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57498
57499         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57500         program_invocation_name and program_invocation_short_name are
57501         initialized.
57502         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57503         and program_invocation_short_name to argp.h, so they are visible
57504         to user programs.
57505         * lib/argp.h: Likewise
57506
57507 2006-09-10  Bruno Haible  <bruno@clisp.org>
57508
57509         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57510         m4/inttypes_h.m4, m4/uintmax_t.m4.
57511
57512 2006-09-10  Bruno Haible  <bruno@clisp.org>
57513
57514         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57515         gl_AC_TYPE_UINTMAX_T.
57516
57517 2006-09-10  Bruno Haible  <bruno@clisp.org>
57518
57519         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57520
57521 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57522
57523         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57524         convention.  Text proposed by Bruno Haible.
57525         (struct argp_option): Document the use of N_() wrappers.
57526
57527         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57528         '\v', and translate the two parts separately, instead of feeding
57529         the whole string to gettext.  This allows to exclude
57530         '\v' from the strings visible to the translator by writing doc
57531         strings as N_("..") "\v" N_("..").
57532
57533 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57534
57535         * config/srclist.txt: Undo latest change; the bug was fixed.
57536
57537 2006-09-09  Bruno Haible  <bruno@clisp.org>
57538
57539         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57540         assignments if building a library without libtool.
57541         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57542         in func_emit_lib_Makefile_am.
57543         (func_import): When building a static library libfoo.a, arrange to
57544         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57545         (func_create_testdir): Likewise.
57546         * modules/gc (configure.ac, Makefile.am): If building statically,
57547         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57548         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57549         * modules/striconv (configure.ac, Makefile.am): Likewise.
57550         Based on a suggestion by Ralf Wildenhues.
57551
57552 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57553
57554         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57555         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57556         Also:
57557
57558         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57559         Add year_2050_test to catch glibc bug 2821
57560         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57561
57562         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57563         Prefer #ifdef to #if.
57564
57565         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57566         Return from 'main' instead of calling 'exit'.
57567
57568 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57571         returned the maximum time_t value rather than (time_t) -1.
57572         Problem originally reported by William Bardwell
57573         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57574
57575         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57576         Moved to here ...
57577         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57578         ... from here.
57579
57580 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57581
57582         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57583         2821 is fixed.
57584
57585 2006-09-08  Jim Meyering  <jim@meyering.net>
57586
57587         Don't make generated files read-only.  That would bother too many
57588         people.  However, do retain the ability to work when targets are
57589         read-only: remove the destination and temporary files before writing
57590         them (when generated via sed or echo), or by using the -f option for
57591         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57592         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57593         * modules/byteswap, modules/configmake, modules/fcntl:
57594         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57595         * modules/localcharset, modules/netinet_in, modules/poll:
57596         * modules/stdbool, modules/stdint, modules/sys_select:
57597         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57598
57599 2006-09-08  Jim Meyering  <jim@meyering.net>
57600
57601         Avoid new build failure on FreeBSD 6.0.
57602         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57603         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57604         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57605
57606 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57607
57608         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57609
57610 2006-09-07  Jim Meyering  <jim@meyering.net>
57611
57612         Fix global typo in last change: use chmod u-w, not chmod u-x.
57613         Spotted by Paul Eggert and Bruce Korb.
57614         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57615         * modules/byteswap, modules/configmake, modules/fcntl:
57616         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57617         * modules/localcharset, modules/netinet_in, modules/poll:
57618         * modules/stdbool, modules/stdint, modules/sys_select:
57619         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57620
57621 2006-09-06  Jim Meyering  <jim@meyering.net>
57622
57623         Make generated files be read-only.
57624         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57625         Ensure that each generated file is now read-only.
57626         * modules/argz: Likewise.
57627         * modules/arpa_inet: Likewise.
57628         * modules/byteswap: Likewise.
57629         * modules/configmake: Likewise.
57630         * modules/fcntl: Likewise.
57631         * modules/fnmatch: Likewise.
57632         * modules/getopt: Likewise.
57633         * modules/glob: Likewise.
57634         * modules/inttypes: Likewise.
57635         * modules/netinet_in: Likewise.
57636         * modules/poll: Likewise.
57637         * modules/stdbool: Likewise.
57638         * modules/stdint: Likewise.
57639         * modules/sys_select: Likewise.
57640         * modules/sys_socket: Likewise.
57641         * modules/sys_stat: Likewise.
57642         * modules/sysexits: Likewise.
57643         * modules/localcharset: Same as above, but continue using temporary
57644         file named "t-$@" (why different?) rather than the "$@-t" used
57645         everywhere else.
57646
57647         * modules/sysexits (Makefile.am): Replace literal occurrences
57648         of "sysexit.h" more readable, and more consistent, "$@".
57649
57650 2006-09-06  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/striconv: New file.
57653         * modules/xstriconv: New file.
57654         * MODULES.html.sh (Internationalization functions): Add striconv,
57655         xstriconv.
57656
57657 2006-09-06  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57660         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57661         not using libtool correctly.
57662
57663 2006-09-06  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/striconv.h: New file.
57666         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57667         iconvstring.c.
57668         * lib/xstriconv.h: New file.
57669         * lib/xstriconv.c: New file.
57670
57671 2006-09-06  Bruno Haible  <bruno@clisp.org>
57672
57673         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57674         lib_..._LDFLAGS.
57675
57676 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57677
57678         * lib/argz_.h: Sync from Libtool.
57679
57680         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57681                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57682
57683         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57684
57685 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57686
57687         * modules/trim: New file.
57688
57689 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57690
57691         * lib/trim.h: New file.
57692         * lib/trim.c: New file.
57693
57694 2006-09-05  Bruno Haible  <bruno@clisp.org>
57695
57696         * MODULES.html.sh (String handling): Add trim.
57697
57698 2006-09-04  Karl Berry  <karl@gnu.org>
57699
57700         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57701         until next release.
57702
57703 2006-09-03  Bruno Haible  <bruno@clisp.org>
57704
57705         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57706         correctly.
57707
57708 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57711         not gl_GETLOADAVG.  Omit unneeded semicolons.
57712         Problems reported by Ralf Wildenhues in
57713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57714         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57715         at the end, which is the usual gnulib style.
57716
57717         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57718         of doing all the work ourselves.
57719         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57720         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57721
57722 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57723
57724         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57725         Problem reported by Ralf Wildenhues in
57726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57727
57728         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57729         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57730
57731 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57734         yesterday's patch by changing test -n to test -z.
57735
57736 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57737
57738         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57739         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57740         the former is now obsolescent.
57741
57742         * modules/chdir-long (Depends-on): Add fcntl.
57743
57744 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57747         obsolescent, and programs should use gnulib instead.
57748         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57749         but with prefixes changed.
57750
57751 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57752
57753         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57754         or stdbool.h, because they might not exist while configuring.
57755
57756         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57757         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57758         does that for us.
57759         (O_DIRECTORY): Remove.
57760
57761 2006-08-31  Eric Blake  <ebb9@byu.net>
57762
57763         * gnulib-tool: Don't let emacs change spaces to TAB.
57764
57765 2006-08-31  Bruno Haible  <bruno@clisp.org>
57766
57767         * gnulib-tool: When calling func_import more than once, do it in a
57768         subshell.
57769         Reported by Eric Blake <ebb9@byu.net>.
57770
57771 2006-08-31  Bruno Haible  <bruno@clisp.org>
57772
57773         * gnulib-tool (nl): Remove variable.
57774         (sed_transform_lib_file): Use more robust test for config-h module.
57775         (func_import): Fix typo in 2006-08-25 patch.
57776
57777 2006-08-31  Bruno Haible  <bruno@clisp.org>
57778
57779         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57780         specified, augment Makefile.am variables instead of assigning them.
57781
57782 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         Work around a bug in both the Linux and SunOS 64-bit kernels:
57785         nanosleep mishandles sleeps for longer than 2**31 seconds.
57786         Problem reported by Frank v Waveren in
57787         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57788         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57789         Check for nanosleep bug.
57790         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57791
57792 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         Work around a bug in both the Linux and SunOS 64-bit kernels:
57795         nanosleep mishandles sleeps for longer than 2**31 seconds.
57796         Problem reported by Frank v Waveren in
57797         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57798         * lib/nanosleep.c (BILLION): New constant.
57799         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57800         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57801         implementation.
57802
57803 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57804
57805         * modules/nanosleep (Depends-on): Add gettime.
57806
57807 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57808         and Simon Josefsson  <jas@extundo.com>
57809         and Oskar Liljeblad  <oskar@osk.mine.nu>
57810
57811         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57812         * gnulib-tool (func_import): New license type 'unmodifiable license
57813         text'.
57814         * modules/fdl: Use it.  Longer description.
57815         * module/gpl, module/lgpl: New files.
57816
57817 2006-08-30  Jim Meyering  <jim@meyering.net>
57818
57819         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57820         shadowing the parameter.
57821
57822 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57823
57824         Sync from Libtool:
57825
57826         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57827
57828         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57829         sharing with gnulib.  Report by Eric Blake.
57830
57831 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57832
57833         * modules/isapipe: New file.
57834         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57835
57836 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * modules/configmake (Makefile.am): Add a comment, and omit
57839         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57840         by Bruno Haible.
57841
57842 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57843
57844         * m4/isapipe.m4: New file.
57845
57846 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57847
57848         * lib/isapipe.c, lib/isapipe.h: New files.
57849
57850 2006-08-29  Jim Meyering  <jim@meyering.net>
57851
57852         * modules/configmake (Makefile.am): Make configmake.h depend on
57853         Makefile.  Otherwise, a stale configmake.h could hang around.
57854
57855 2006-08-29  Eric Blake  <ebb9@byu.net>
57856
57857         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57858         resolution of upstream bug 3044.
57859
57860 2006-08-29  Bruno Haible  <bruno@clisp.org>
57861
57862         * modules/localcharset (Depends-on): Add configmake.
57863         (Makefile.am): Remove setting of LIBDIR through DEFS.
57864
57865 2006-08-29  Bruno Haible  <bruno@clisp.org>
57866
57867         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57868         defined.
57869
57870 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * modules/fcntl: New file.
57873         * modules/chdir-safer (Depends-on): Add fcntl.
57874         * modules/fts: Likewise.
57875         * modules/mkdir-p: Likewise.
57876
57877         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57878         This undoes the most recent change, since we're now addressing the
57879         problem in a different way.
57880
57881         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57882         into output, since the output might be called Makefile.am even
57883         if $makefile_name is something different.
57884         (func_import): Use $makefile_am rather than
57885         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57886         empty.
57887
57888         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57889
57890 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57891
57892         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57893         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57894         recent change to stdint.m4, since we're now addressing the problem in a
57895         different way.
57896
57897 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57898
57899         * m4/fcntl_h.m4: New file.
57900
57901 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * lib/fcntl_.h: New file.
57904         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57905         the fcntl module.
57906         * lib/dirchownmod.c: Likewise.
57907         * lib/fts.c: Likewise.
57908
57909         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57910         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57911         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57912         just before including <inttypes.h>, to avoid circular inclusion.
57913
57914 2006-08-28  Jim Meyering  <jim@meyering.net>
57915
57916         * doc/visibility.texi: Actually read and correct the grammar of the
57917         sentence affected by yesterday's change.
57918
57919 2006-08-28  Eric Blake  <ebb9@byu.net>
57920
57921         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57922         needs wrapper.
57923
57924 2006-08-28  Eric Blake  <ebb9@byu.net>
57925
57926         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57927
57928 2006-08-28  Eric Blake  <ebb9@byu.net>
57929
57930         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57931
57932 2006-08-28  Bruno Haible  <bruno@clisp.org>
57933
57934         * modules/c-strstr: New file, from GNU gettext.
57935         * MODULES.html.sh (String handling): Add c-strstr.
57936
57937 2006-08-28  Bruno Haible  <bruno@clisp.org>
57938
57939         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57940         macros.
57941         Reported by Eric Blake.
57942
57943 2006-08-28  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57946         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57947         * lib/vasprintf.c: Include errno.h, limits.h.
57948         (EOVERFLOW): New fallback definition.
57949         (vasprintf): Test here whether the string length is > INT_MAX.
57950         * lib/vsnprintf.c: Include errno.h, limits.h.
57951         (EOVERFLOW): New fallback definition.
57952         (vsnprintf): Fix bug when generated string was too long for the buffer.
57953         Test here whether the string length is > INT_MAX.
57954
57955 2006-08-28  Bruno Haible  <bruno@clisp.org>
57956
57957         * lib/inttypes_.h (SCNX*): Remove definitions.
57958         Reported by Eric Blake.
57959
57960 2006-08-28  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/c-strstr.h: New file, from GNU gettext.
57963         * lib/c-strstr.c: New file, from GNU gettext.
57964
57965 2006-08-28  Bruno Haible  <bruno@clisp.org>
57966
57967         * gnulib-tool: Reorder some statements.
57968
57969 2006-08-28  Bruno Haible  <bruno@clisp.org>
57970
57971         * gnulib-tool: New option --makefile-name.
57972         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57973         $makefile_name.
57974         (func_import): Write $makefile_name to the cache file, and read it from
57975         there unless explicitly specified. Use $makefile_name as file name
57976         instead of Makefile.am. Adjust the recommendations accordingly.
57977
57978 2006-08-28  Bruno Haible  <bruno@clisp.org>
57979
57980         * gnulib-tool (func_verify_module): Check against misapplying patch.
57981
57982 2006-08-28  Bruno Haible  <bruno@clisp.org>
57983
57984         * gnulib-tool (func_relativize, func_relconcat): New functions.
57985         Give an error if --local-dir is given with --update.
57986         Remove trailing slashes from $local_gnulib_dir.
57987         (func_import): Store the relativized $local_gnulib_dir in
57988         gnulib-cache.m4, and read it from there if not specified explicitly.
57989
57990 2006-08-28  Bruno Haible  <bruno@clisp.org>
57991
57992         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57993         is the current directory. Respect also $local_gnulib_dir.
57994
57995 2006-08-28  Bruno Haible  <bruno@clisp.org>
57996             Simon Josefsson  <jas@extundo.com>
57997
57998         BeOS portability.
57999         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58000
58001 2006-08-27  Jim Meyering  <jim@meyering.net>
58002
58003         * doc/visibility.texi: Remove duplicate word: "pointer".
58004
58005 2006-08-26  Bruno Haible  <bruno@clisp.org>
58006
58007         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58008         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58009         (Makefile.am): Create inttypes.h from inttypes_.h.
58010         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58011
58012         * modules/imaxabs: New file.
58013
58014         * modules/imaxdiv: New file.
58015
58016 2006-08-26  Bruno Haible  <bruno@clisp.org>
58017
58018         * m4/inttypes.m4: New file.
58019         * m4/_inttypes_h.m4: Remove file.
58020         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58021         PRI_MACROS_BROKEN.
58022         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58023
58024         * m4/imaxabs.m4: New file.
58025
58026         * m4/imaxdiv.m4: New file.
58027
58028 2006-08-26  Bruno Haible  <bruno@clisp.org>
58029
58030         * lib/inttypes_.h: New file.
58031         * lib/inttypes.h: Remove file.
58032         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58033
58034         * lib/imaxabs.c: New file.
58035
58036         * lib/imaxdiv.c: New file.
58037
58038 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         New config-h module, so that "make" output needn't be cluttered
58041         by -DHAVE_CONFIG_H.
58042         * MODULES.html.sh (Support for building libraries and executables):
58043         Add config-h.
58044         * modules/config-h: New file.
58045         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58046         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58047         the config-h module is used.
58048
58049         New configmake module, so that "make" output needn't be cluttered
58050         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58051         * MODULES.html.sh (Support for building libraries and executables):
58052         Add configmake.
58053         * modules/configmake: New file.
58054
58055 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58056
58057         * m4/config-h.m4: New file.
58058
58059 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58060
58061         * config/srclist.txt: Add elisp-comp.
58062
58063 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58064
58065         * MODULES.html.sh (Support for building libraries and executables):
58066         Add elisp-comp.
58067         * build-aux/elisp-comp: New file.
58068         * modules/elisp-comp: New file.
58069
58070 2006-08-24  Bruno Haible  <bruno@clisp.org>
58071
58072         * gnulib-tool (func_create_testdir): Use non-default values of
58073         sourcebase and m4base.
58074
58075 2006-08-24  Bruno Haible  <bruno@clisp.org>
58076
58077         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58078         HTML structure.
58079
58080 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         * modules/openat (Depends-on): Add lchown.
58083
58084 2006-08-23  Bruno Haible  <bruno@clisp.org>
58085
58086         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58087         of gl_LOCK_EARLY instead of gl_LOCK.
58088
58089 2006-08-23  Bruno Haible  <bruno@clisp.org>
58090
58091         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58092         on OSF/1 to no.
58093         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58094
58095 2006-08-23  Bruno Haible  <bruno@clisp.org>
58096
58097         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58098         as unusable.
58099
58100         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58101         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58102         (gl_LOCK): New macro.
58103
58104 2006-08-22  Simon Josefsson  <jas@extundo.com>
58105
58106         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58107         to md5 module.
58108
58109 2006-08-22  Simon Josefsson  <jas@extundo.com>
58110
58111         * MODULES.html.sh: Add "Support for maintaining and release
58112         projects".
58113
58114         * build-aux/gnupload: New file, from coreutils.
58115
58116 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         Avoid the need for AC_LIBSOURCES in m4 macros.
58119         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58120         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58121         * modules/check-version (EXTRA_DIST): Add check-version.h.
58122         * modules/crc (EXTRA_DIST): Add crc.h.
58123         * modules/des (EXTRA_DIST): Add des.h.
58124         * modules/gc (EXTRA_DIST): Add gc.h.
58125         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58126         * modules/getline (EXTRA_DIST): Add getline.h.
58127         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58128         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58129         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58130         * modules/md2 (EXTRA_DIST): Add md2.h.
58131         * modules/md4 (EXTRA_DIST): Add md4.h.
58132         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58133         * modules/read-file (EXTRA_DIST): Add read-file.h.
58134         * modules/readline (EXTRA_DIST): Add readline.h.
58135         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58136         rijndael-api-fst.h.
58137
58138 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         * m4/rijndael.m4 (gl_ARCFOUR):
58141         * m4/arctwo.m4 (gl_ARCTWO):
58142         * m4/check-version.m4 (gl_CHECK_VERSION):
58143         * m4/crc.m4 (gl_CRC):
58144         * m4/des.m4 (gl_DES):
58145         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58146         * m4/gc.m4 (gl_GC):
58147         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58148         * m4/getline.m4 (gl_FUNC_GETLINE):
58149         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58150         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58151         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58152         * m4/md2.m4 (gl_MD2):
58153         * m4/md4.m4 (gl_MD4):
58154         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58155         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58156         * m4/readline.m4 (gl_FUNC_READLINE):
58157         * m4/rijndael.m4 (gl_RIJNDAEL):
58158         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58159         to get the necessary .h files and whatnot.
58160
58161 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58162
58163         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58164         gnulib rather than the other way around.
58165         * config/srclistvars.sh (COREUTILS): Remove.
58166
58167 2006-08-22  Jim Meyering  <jim@meyering.net>
58168
58169         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58170
58171         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58172
58173 2006-08-22  Eric Blake  <ebb9@byu.net>
58174
58175         * modules/regexprops-generic: New file.
58176         * MODULES.html.sh (Support for building documentation): List it.
58177
58178 2006-08-22  Eric Blake  <ebb9@byu.net>
58179
58180         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58181         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58182         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58183         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58184
58185 2006-08-22  Bruno Haible  <bruno@clisp.org>
58186
58187         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58188         and lib_LTLIBRARIES like the other lib_* variables.
58189
58190 2006-08-22  Bruno Haible  <bruno@clisp.org>
58191
58192         * build-aux/x-to-1.in: New file, from GNU gettext.
58193
58194 2006-08-22  Bruno Haible  <bruno@clisp.org>
58195
58196         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58197         <utmpx.h> exists.
58198
58199 2006-08-22  Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58202         <utmpx.h> exists.
58203
58204 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58205
58206         BeOS portability.
58207         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58208         exist.
58209         Problem reported by Bruno Haible.
58210
58211 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         Avoid the need for AC_LIBSOURCES in m4 macros.
58214         * modules/acl (EXTRA_DIST): Add acl.h.
58215         * modules/argmatch (Files): Add m4/argmatch.m4.
58216         (configure.ac): Add gl_ARGMATCH.
58217         (EXTRA_DIST): Renamed from lib_SOURCES, for
58218         consistency with the other modules.  Remove argmatch.c.
58219         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58220         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58221         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58222         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58223         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58224         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58225         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58226         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58227         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58228         * modules/closeout (EXTRA_DIST): Add closeout.h.
58229         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58230         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58231         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58232         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58233         dirname.h; remove basename.c and stripslash.c.
58234         * modules/exclude (EXTRA_DIST): Add exclude.h.
58235         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58236         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58237         * modules/file-type (EXTRA_DIST): Add file-type.h.
58238         * modules/filemode (EXTRA_DIST): Add filemode.h.
58239         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58240         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58241         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58242         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58243         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58244         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58245         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58246         * modules/getdate (EXTRA_DIST): Add getdate.c.
58247         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58248         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58249         * modules/getpass (EXTRA_DIST): Add getpass.h.
58250         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58251         * modules/group-member (EXTRA_DIST): Add group-member.h.
58252         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58253         * modules/hash (EXTRA_DIST): Add hash.h.
58254         * modules/human (EXTRA_DIST): Add human.h.
58255         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58256         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58257         * modules/lchown (EXTRA_DIST): Add lchown.h.
58258         * modules/long-options (EXTRA_DIST): Add long-options.h.
58259         * modules/lstat (EXTRA_DIST): Add lstat.h.
58260         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58261         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58262         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58263         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58264         * modules/memxor (EXTRA_DIST): Add memxor.h.
58265         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58266         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58267         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58268         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58269         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58270         * modules/physmem (EXTRA_DIST): Add physmem.h.
58271         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58272         * modules/posixver (EXTRA_DIST): Add posixver.h.
58273         * modules/quote (EXTRA_DIST): Add quote.h.
58274         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58275         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58276         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58277         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58278         regex_internal.h regexec.c.
58279         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58280         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58281         * modules/same (EXTRA_DIST): Add same.h.
58282         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58283         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58284         * modules/savedir (EXTRA_DIST): Add savedir.h.
58285         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58286         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58287         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58288         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58289         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58290         * modules/strdup (EXTRA_DIST): Add strdup.h.
58291         * modules/strftime (EXTRA_DIST): Add strftime.h.
58292         * modules/strndup (EXTRA_DIST): Add strndup.h.
58293         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58294         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58295         * modules/time_r (EXTRA_DIST): Add time_r.h.
58296         * modules/timespec (EXTRA_DIST): Add timespec.h.
58297         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58298         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58299         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58300         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58301         * modules/userspec (EXTRA_DIST): Add userspec.h.
58302         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58303         * modules/utimens (EXTRA_DIST): Add utimens.h.
58304         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58305         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58306         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58307         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58308         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58309         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58310         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58311         * modules/yesno (EXTRA_DIST): Add yesno.h.
58312
58313 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58316
58317         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58318         * m4/dev-ino.m4, same-inode.m4: Remove.
58319
58320         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58321         * m4/acl.m4 (AC_FUNC_ACL):
58322         * m4/backupfile.m4 (gl_BACKUPFILE):
58323         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58324         * m4/canon-host.m4 (gl_CANON_HOST):
58325         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58326         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58327         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58328         * m4/cloexec.m4 (gl_CLOEXEC):
58329         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58330         * m4/closeout.m4 (gl_CLOSEOUT):
58331         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58332         * m4/dirname.m4 (gl_DIRNAME):
58333         * m4/exclude.m4 (gl_EXCLUDE):
58334         * m4/exitfail.m4 (gl_EXITFAIL):
58335         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58336         * m4/file-type.m4 (gl_FILE_TYPE):
58337         * m4/filemode.m4 (gl_FILEMODE):
58338         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58339         * m4/fpending.m4 (gl_FUNC_FPENDING):
58340         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58341         * m4/fts.m4 (gl_FUNC_FTS):
58342         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58343         * m4/getdate.m4 (gl_GETDATE):
58344         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58345         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58346         * m4/getpass.m4 (gl_FUNC_GETPASS):
58347         * m4/gettime.m4 (gl_GETTIME):
58348         * m4/getugroups.m4 (gl_GETUGROUPS):
58349         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58350         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58351         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58352         * m4/hash.m4 (gl_HASH):
58353         * m4/idcache.m4 (gl_IDCACHE):
58354         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58355         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58356         * m4/long-options.m4 (gl_LONG_OPTIONS):
58357         * m4/lstat.m4 (gl_FUNC_LSTAT):
58358         * m4/md5.m4 (gl_MD5):
58359         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58360         * m4/memcoll.m4 (gl_MEMCOLL):
58361         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58362         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58363         * m4/memxor.m4 (gl_MEMXOR):
58364         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58365         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58366         * m4/modechange.m4 (gl_MODECHANGE):
58367         * m4/mountlist.m4 (gl_MOUNTLIST):
58368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58369         * m4/openat.m4 (gl_FUNC_OPENAT):
58370         * m4/pathmax.m4 (gl_PATHMAX):
58371         * m4/physmem.m4 (gl_PHYSMEM):
58372         * m4/posixtm.m4 (gl_POSIXTM):
58373         * m4/posixver.m4 (gl_POSIXVER):
58374         * m4/quote.m4 (gl_QUOTE):
58375         * m4/quotearg.m4 (gl_QUOTEARG):
58376         * m4/readtokens.m4 (gl_READTOKENS):
58377         * m4/readutmp.m4 (gl_READUTMP):
58378         * m4/regex.m4 (gl_REGEX):
58379         * m4/safe-read.m4 (gl_SAFE_READ):
58380         * m4/safe-write.m4 (gl_SAFE_WRITE):
58381         * m4/same.m4 (gl_SAME):
58382         * m4/save-cwd.m4 (gl_SAVE_CWD):
58383         * m4/savedir.m4 (gl_SAVEDIR):
58384         * m4/settime.m4 (gl_SETTIME):
58385         * m4/sha1.m4 (gl_SHA1):
58386         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58387         * m4/stat-macros.m4 (gl_STAT_MACROS):
58388         * m4/stat-time.m4 (gl_STAT_TIME):
58389         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58390         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58391         * m4/strdup.m4 (gl_FUNC_STRDUP):
58392         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58393         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58394         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58395         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58396         * m4/time_r.m4 (gl_TIME_R):
58397         * m4/timespec.m4 (gl_TIMESPEC):
58398         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58399         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58400         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58401         * m4/userspec.m4 (gl_USERSPEC):
58402         * m4/utimecmp.m4 (gl_UTIMECMP):
58403         * m4/utimens.m4 (gl_UTIMENS):
58404         * m4/xalloc.m4 (gl_XALLOC):
58405         * m4/xgetcwd.m4 (gl_XGETCWD):
58406         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58407         * m4/xreadlink.m4 (gl_XREADLINK):
58408         * m4/xstrtod.m4 (gl_XSTRTOD):
58409         * m4/yesno.m4 (gl_YESNO):
58410         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58411         to get the necessary .h files and whatnot.
58412
58413 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58414             Bruno Haible  <bruno@clisp.org>
58415
58416         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58417         /bin/sh understanding of '!' conditional negation.
58418
58419 2006-08-21  Jim Meyering  <jim@meyering.net>
58420
58421         * modules/openat (Depends-on): Really alphabetize.
58422
58423         * modules/acl (Depends-on): Add error and quote.
58424
58425         * check-module (find_included_lib_files): Add at-func.c to the
58426         ok-to-include-more-than-once white list.
58427
58428         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58429
58430 2006-08-21  Bruno Haible  <bruno@clisp.org>
58431
58432         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58433         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58434         Reported by Martin Lambers <marlam@marlam.de>.
58435
58436 2006-08-21  Bruno Haible  <bruno@clisp.org>
58437
58438         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58439         specify an installation location, don't emit a noinst_LIBRARIES or
58440         noinst_LTLIBRARIES assignment.
58441
58442 2006-08-21  Bruno Haible  <bruno@clisp.org>
58443
58444         BeOS portability.
58445         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58446         BeOS has mbrtowc() but no <wctype.h>.
58447
58448 2006-08-21  Bruno Haible  <bruno@clisp.org>
58449
58450         BeOS portability.
58451         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58452         exist.
58453
58454 2006-08-21  Bruno Haible  <bruno@clisp.org>
58455
58456         BeOS portability.
58457         * lib/mbchar.h: Include <wctype.h> only if it exists.
58458
58459 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58460
58461         Remove files that are no longer needed by their respective modules.
58462         * m4/obstack.m4: Remove.
58463         * m4/strerror_r.m4: Remove.
58464         * m4/uint32_t.m4: Remove.
58465         * m4/uintptr_t.m4: Remove.
58466         * m4/ullong_max.m4: Remove.
58467         * m4/xstrtoimax.m4: Remove.
58468         * m4/xstrtoumax.m4: Remove.
58469
58470         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58471         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58472         dependencies now capture this.
58473
58474         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58475         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58476         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58477         * m4/human.m4 (gl_HUMAN): Likewise.
58478         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58479         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58480
58481         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58482
58483         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58484         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58485         stdint.
58486         * m4/human.m4 (gl_HUMAN): Likewise.
58487         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58488         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58489         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58490         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58491         * m4/xstrtol (gl_XSTRTOL): Likewise.
58492
58493         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58494         AC_TYPE_LONG_LONG_INT.
58495         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58496         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58497         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58498         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58499
58500         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58501         on stdbool.
58502
58503         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58504         (gl_PREREQ_XSTRTOUL): Remove.
58505
58506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58507
58508         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58509         mode.
58510
58511 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58512
58513         Add and change modules to make it easier for coreutils to use
58514         gnulib-tool.
58515         * modules/backupfile (Files): Remove m4/d-ino.m4.
58516         (Depends-on): Add d-ino.
58517         * modules/cycle-check (Depends-on): Add stdint.
58518         (lib_SOURCES): Add cycle-check.h.
58519         * modules/d-ino: New module.
58520         * modules/d-type: New module.
58521         * modules/error (Files): Remove m4/strerror_r.m4.
58522         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58523         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58524         m4/inttypes_h.m4, m4/uintmax_t.m4.
58525         (Depends-on): Add stdint.
58526         (lib_SOURCES): Add fsusage.h.
58527         * modules/getcwd (Files): Remove d-ino.m4.
58528         (Depends-on): Add d-ino.
58529         * modules/getndelim2 (Depends-on): Add stdint.
58530         * modules/glob (Files): Remove m4/d-type.m4.
58531         (Depends-on): Add d-type.
58532         * modules/host-os: New module.
58533         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58534         m4/inttypes_h.m4, m4/uintmax_t.m4.
58535         * Depends-on: Add stdint.
58536         (lib_SOURCES): Add human.h.
58537         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58538         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58539         m4/uintmax_t.m4, m4/ulonglong.m4.
58540         (Depends-on): Add stdint.
58541         (EXTRA_DIST): Add inttostr.h.
58542         * modules/lchmod: New module.
58543         * modules/link-follow: New module.
58544         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58545         (Depends-on): Add lchmod.
58546         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58547         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58548         (Depends-on): Add stdint.
58549         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58550         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58551         (Depends-on): Add stdint.
58552         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58553         * modules/perl: New module.
58554         * modules/regex (Depends-on): Add stdint.
58555         * modules/rmdir-errno: New module.
58556         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58557         m4/intmax_t.m4.
58558         (Depends-on): Add stdint.
58559         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58560         m4/uintmax_t.m4.
58561         (Depends-on): Add stdint.
58562         * modules/unlink-busy: New module.
58563         * modules/utimecmp (Depends-on): Add stdint.
58564         * modules/uptime: New module.
58565         * modules/winsz-ioctl: New module.
58566         * modules/winsz-termios: New module.
58567         * modules/xnanosleep (Depends-on): Add nanosleep.
58568         * modules/ullong_max: Remove.
58569         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58570         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58571         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58572         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58573         (Depends-on): Add inttypes.
58574         (lib_SOURCES): Add xstrtol.h.
58575         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58576         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58577         * MODULES.html.sh: Move 'assert' into the assert section.
58578         Move 'dummy' into the linking section.
58579         Remove ullong_max.
58580         Add section for compatibility checks for POSIX:2001 functions,
58581         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58582         winsz-ioctl, and winsz-termios into it.
58583         Add lchmod.
58584         Add top-level Misc section and put host-os, perl, and uptime
58585         into it.
58586
58587 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58588
58589         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58590         now assume the stdint module.  Do not include inttypes.h.
58591         * lib/fsusage.h: Likewise.
58592         * lib/getndelim2.c: Likewise.
58593         * lib/human.h: Likewise.
58594         * lib/inttostr.h: Likewise.
58595         * lib/obstack.c: Likewise.
58596         * lib/regex_internal.h: Likewise.
58597         * lib/tempname.c: Likewise.
58598         * lib/utimecmp.c: Likewise.
58599         * lib/xstrtol.h: Likewise.
58600
58601         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58602
58603         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58604         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58605         * lib/xtime.h: Likewise.
58606
58607 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58608
58609         * modules/openat (Files): Add lib/fchmodat.c.
58610         Fixes problem reported by Jay Youngman.
58611
58612 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58615         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58616
58617 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58618             Bruno Haible  <bruno@clisp.org>
58619
58620         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58621         and is a script that invokes bison. Tighten the code. Add comments.
58622
58623 2006-08-18  Jim Meyering  <jim@meyering.net>
58624
58625         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58626         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58627         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58628         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58629
58630 2006-08-18  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/bison-i18n: New file.
58633         * MODULES.html.sh (Internationalization functions): Add it.
58634
58635 2006-08-18  Bruno Haible  <bruno@clisp.org>
58636
58637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58638         sys/statvfs.h. When getmntinfo was found, check its declaration and
58639         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58640
58641 2006-08-18  Bruno Haible  <bruno@clisp.org>
58642
58643         * m4/bison-i18n.m4: New file, from bison.
58644
58645 2006-08-18  Bruno Haible  <bruno@clisp.org>
58646
58647         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58648         (ME_DUMMY): Treat "kernfs" as a dummy.
58649         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58650
58651 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58652
58653         Update from coreutils.
58654
58655         2006-08-15  Jim Meyering  <jim@meyering.net>
58656
58657         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58658
58659         2006-01-17  Jim Meyering  <jim@meyering.net>
58660
58661         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58662
58663         2006-01-11  Jim Meyering  <jim@meyering.net>
58664
58665         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58666         Check for the lchmod function.
58667
58668 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         Update from coreutils.
58671
58672         * lib/__fpending.h: Add copyright notice.
58673         * lib/fprintftime.h: Likewise.
58674         * lib/savedir.c: Use (C) in copyright notice.
58675         * lib/savedir.h: Likewise.
58676
58677         2006-08-15  Jim Meyering  <jim@meyering.net>
58678
58679         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58680         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58681         in support of the EXPECTED_ERRNO macro.
58682         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58683         definitions.  Instead, define the appropriate symbols and include
58684         "at-func.c".
58685         * lib/mkdirat.c (mkdirat): Likewise.
58686         * lib/fchmodat.c (fchmodat): Likewise.
58687         (ENOSYS): Remove definition.
58688         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58689         it.  Don't include "unistd--.h" -- it wasn't ever used.
58690
58691         2006-01-17  Jim Meyering  <jim@meyering.net>
58692
58693         Rewrite fts.c not to change the current working directory,
58694         by using openat, fstatat, fdopendir, etc..
58695
58696         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58697         (HAVE_OPENAT_SUPPORT): Define.
58698         [_LIBC] (fchdir): Don't undef or define; no longer used.
58699         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58700         Now, this `function' always succeeds, and consumes its file descriptor
58701         parameter -- so callers must not close such FDs.  Update callers.
58702         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58703         (diropen): Add parameter, SP.  Adjust all callers.
58704         Implement using diropen_fd, rather than open.
58705         (fts_open): Initialize new member, fts_cwd_fd.
58706         Remove fts_rft-setting code.
58707         (fts_close): Close fts_cwd_fd, if necessary.
58708         (__opendir2): Define in terms of opendir or opendirat,
58709         depending on whether the FST_NOCHDIR flag is set.
58710         (fts_build): Since fts_safe_changedir consumes its FD, and since
58711         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58712         and close the dup'd file descriptor upon failure.
58713         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58714         (fts_safe_changedir): Tweak semantics to reflect that this function
58715         now calls cwd_advance_fd and hence consumes its FD argument.
58716         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58717         [struct FTS] (fts_rft): Remove now-unused member.
58718         [struct FTS] (fts_cycle.state): Improve comment.
58719
58720         * lib/openat.c (openat_needs_fchdir): New function.
58721         * lib/openat.h (openat_needs_fchdir): Declare it.
58722
58723 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58724
58725         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58726         Problem and fix reported by Pádraig Brady in
58727         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58728
58729 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58730
58731         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58732
58733 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58734
58735         * lib/memcoll.c (memcoll): Optimize for the common case where the
58736         arguments are bytewise equal.
58737
58738 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * doc/regexprops-generic.texi: Add a copyright notice.
58741
58742 2006-08-15  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/tmpdir (License): Change to LGPL.
58745
58746 2006-08-15  Bruno Haible  <bruno@clisp.org>
58747
58748         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58749         module.
58750
58751 2006-08-14  Simon Josefsson  <jas@extundo.com>
58752
58753         * config/srclist.txt: Add gnupload.
58754
58755 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         Change copyright notice from LGPL 2 to GPL 2, since that's the
58758         standard form used in the gnulib repository.
58759         * tests/test-lock.c: Likewise.
58760         * tests/test-stdint.c: Likewise.
58761         * tests/test-tls.c: Likewise.
58762
58763         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58764         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58765         Add copyright notice.
58766
58767         * check-module: Add copyright notice.  Output a copyright
58768         notice if "--version" is specified.
58769         * modules/COPYING: New file.
58770         * tests/test-getaddrinfo.c: Add copyright notice.
58771         * tests/test-verify.c: Likewise.
58772
58773 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58774
58775         Change copyright notice from LGPL 2 to GPL 2, since that's the
58776         standard form used in the gnulib repository.
58777         * lib/lock.c: LGPL -> GPL.
58778         * lib/lock.h: Likewise.
58779         * lib/strnlen1.c: Likewise.
58780         * lib/strnlen1.h: Likewise.
58781         * lib/tls.c: Likewise.
58782         * lib/tls.h: Likewise.
58783         * lib/tmpdir.c: Likewise.
58784
58785         * lib/TODO: Remove; this belongs only in coreutils.
58786
58787 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         Add copyright notices to long-enough files that lack them, since
58790         otherwise the files aren't clearly free.  Use the same notice that
58791         getdate.texi already uses.
58792         * doc/alloca-opt.texi: Add copyright notice.
58793         * doc/alloca.texi: Likewise.
58794         * doc/ctime.texi: Likewise.
58795         * doc/functions.texi: Likewise.
58796         * doc/gcd.texi: Likewise.
58797         * doc/gnulib-tool.texi: Likewise.
58798         * doc/inet_ntoa.texi: Likewise.
58799         * doc/visibility.texi: Likewise.
58800
58801         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58802         * doc/quote.texi: Add copyright notice.
58803
58804         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58805         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58806         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58807         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58808         is now obsolete, and give a pointer to the Sun list.
58809         Add copyright notice.
58810
58811 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58812
58813         * config/srclistvars.sh: Add copyright notice.
58814
58815 2006-08-14  Eric Blake  <ebb9@byu.net>
58816
58817         Import the following change from libc:
58818
58819         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58820
58821         Upstream bug 2997.
58822         * lib/misc/error.c: Add space between program name and message if file
58823         name is missing.
58824
58825 2006-08-12  Karl Berry  <karl@gnu.org>
58826
58827         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58828         remove, these originate in gnulib now.
58829
58830 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58831
58832         * doc/Makefile (standards.info standards.html standards.dvi):
58833         Also depend on make-stds.texi.
58834
58835 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58838         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58839
58840         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58841         in wchar_t.  Problem reported by Eric Blake.
58842
58843         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58844         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58845         Also, help the compiler to keep LEN in a register.
58846
58847 2006-08-11  Eric Blake  <ebb9@byu.net>
58848
58849         * users.txt: Sort.  Add tar.
58850
58851 2006-08-11  Bruno Haible  <bruno@clisp.org>
58852
58853         * users.txt: New file.
58854
58855 2006-08-11  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58858         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58859
58860 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58861
58862         * modules/snprintf (Depends-on): Remove minmax.
58863         (Maintainer): Add self and Bruno.
58864
58865 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58866
58867         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58868         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58869         (EOVERFLOW): Define if the system does not.
58870         Do not include "minmax.h"; it wasn't used.
58871         (snprintf): Don't assume size_t promotes to an unsigned type.
58872         Fix bug when generated string was too long for the buffer: the
58873         buffer's contents are supposed to be the initial prefix of the
58874         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58875         exceeds INT_MAX; do the check ourselves.
58876
58877         Import the following changes from libc:
58878
58879         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58880
58881         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58882         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58883         set wc to the byte which couldn't be converted.
58884         (re_string_reconstruct): Don't clear valid_raw_len before calling
58885         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58886         tip_context using re_string_context_at.
58887
58888         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58889
58890         * lib/posix/regex.h: g++ still cannot handled [restrict].
58891
58892         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58893
58894         * lib/posix/regex.h: Remove special handling for VMS.
58895
58896 2006-08-10  Jim Meyering  <jim@meyering.net>
58897
58898         * modules/same-inode: New module.
58899         * modules/dev-ino: New module.
58900         * modules/cycle-check: Depend on these modules, rather than simply
58901         including their .h files.
58902         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58903         required via m4/cycle-check.m4.
58904         * modules/same: Depend on new same-inode module, rather than
58905         including same-inode.h.
58906         * modules/chdir-safer: New file.
58907
58908         * modules/chown (Depends-on): Add stat-macros.
58909
58910 2006-08-10  Jim Meyering  <jim@meyering.net>
58911
58912         * m4/cycle-check.m4: New file.
58913         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58914         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58915
58916 2006-08-10  Eric Blake  <ebb9@byu.net>
58917
58918         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58919         in from original proposal.
58920
58921 2006-08-10  Eric Blake  <ebb9@byu.net>
58922         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58923
58924         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58925         namespace.
58926
58927 2006-08-10  Bruno Haible  <bruno@clisp.org>
58928
58929         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58930         as well.
58931
58932 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         Sync from coreutils.
58935
58936         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58937
58938         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58939         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58940
58941 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58942
58943         * modules/restrict: Remove; no longer needed now that we assume
58944         Autoconf 2.59 or later.
58945         * MODULES.html.sh: Remove 'restrict'.
58946         * modules/argp (Depends-on): Remove 'restrict'.
58947         * modules/base64 (Depends-on): Likewise.
58948         * modules/gc (Depends-on): Likewise.
58949         * modules/getaddrinfo (Depends-on): Likewise.
58950         * modules/glob (Depends-on): Likewise.
58951         * modules/inet_ntop (Depends-on): Likewise.
58952         * modules/inet_pton (Depends-on): Likewise.
58953         * modules/memxor (Depends-on): Likewise.
58954         * modules/regex (Depends-on): Likewise.
58955         * modules/strtok_r (Depends-on): Likewise.
58956         * modules/time_r (Depends-on): Likewise.
58957
58958 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58959
58960         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58961         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58962         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58963         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58964         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58965         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58966         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58967         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58968
58969         Merge from coreutils.
58970         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58971         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58972         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58973         * m4/time_r.m4 (gl_TIME_R): Likewise.
58974
58975 2006-08-09  Karl Berry  <karl@gnu.org>
58976
58977         * config/srclist.txt: no more gettext-tools, per Bruno.
58978
58979 2006-08-08  Eric Blake  <ebb9@byu.net>
58980
58981         * modules/verror: New module.
58982         * MODULES.html.sh: Document it.
58983
58984 2006-08-08  Eric Blake  <ebb9@byu.net>
58985
58986         * lib/verror.h, lib/verror.c: New files.
58987
58988 2006-08-08  Eric Blake  <ebb9@byu.net>
58989
58990         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58991         verror_at_line output complies with GNU Coding Standards even when
58992         file is NULL.
58993
58994 2006-08-07  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58997         versions of AIX.
58998         Reported by Ralf Wildenhues.
58999
59000 2006-08-07  Bruno Haible  <bruno@clisp.org>
59001
59002         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59003         in an AC_DEFUN. Needed so that the autoconf snippets can use
59004         AC_REQUIRE.
59005
59006 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59007
59008         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59009         Initialize pkgdata_DATA.
59010         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59011         overriding it.
59012
59013 2006-08-06  Eric Blake  <ebb9@byu.net>
59014
59015         * lib/error.h: Fold in some upstream changes from glibc.
59016         * lib/error.c: Likewise.
59017
59018 2006-08-04  Bruno Haible  <bruno@clisp.org>
59019
59020         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59021         Make the mostlyclean-local rule depend on mostlyclean-generic.
59022         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59023
59024 2006-07-31  Bruno Haible  <bruno@clisp.org>
59025
59026         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59027         <stdlib.h>, <string.h>.
59028
59029 2006-07-30  Bruno Haible  <bruno@clisp.org>
59030
59031         * modules/readlink (License): Change to LGPL.
59032
59033 2006-07-30  Bruno Haible  <bruno@clisp.org>
59034
59035         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59036         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59037         set PKGDATADIR to point to it.
59038
59039 2006-07-30  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/csharpexec (configure.ac): Comment out macro invocation.
59042         * modules/javaexec (configure.ac): Likewise.
59043         * modules/javacomp-script (configure.ac): Likewise.
59044
59045         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59046
59047 2006-07-30  Bruno Haible  <bruno@clisp.org>
59048
59049         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59050         linked-list.
59051
59052 2006-07-30  Bruno Haible  <bruno@clisp.org>
59053
59054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59055
59056 2006-07-30  Bruno Haible  <bruno@clisp.org>
59057
59058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59059         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59060         get removed.
59061
59062 2006-07-29  Bruno Haible  <bruno@clisp.org>
59063
59064         Make it possible for gnulib-tool to work with locally modified or
59065         augmented gnulib repositories.
59066         * gnulib-tool (func_usage): Document --local-dir option.
59067         (local_gnulib_dir): New variable.
59068         Handle --local-dir option.
59069         (func_lookup_file): New function.
59070         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59071         (func_get_description, func_get_filelist, func_get_description,
59072         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59073         func_get_automake_snippet, func_get_include_directive,
59074         func_get_license, func_get_maintainer): Use func_lookup_file.
59075         (func_import, func_create_testdir): Use func_lookup_file.
59076
59077 2006-07-29  Bruno Haible  <bruno@clisp.org>
59078
59079         * modules/setenv (Depends-on): Add unistd.
59080
59081 2006-07-29  Bruno Haible  <bruno@clisp.org>
59082
59083         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59084
59085 2006-07-29  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59088
59089 2006-07-29  Bruno Haible  <bruno@clisp.org>
59090
59091         * gnulib-tool (import, update): If there is no Makefile.am, look at
59092         aclocal.m4, instead of bailing out.
59093
59094 2006-07-29  Bruno Haible  <bruno@clisp.org>
59095
59096         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59097         Categorize the options by when they are useful.
59098
59099 2006-07-29  Bruno Haible  <bruno@clisp.org>
59100
59101         * gnulib-tool (func_usage): Document option --no-libtool.
59102         Handle option --no-libtool.
59103         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59104         for changed semantics of $libtool variable.
59105         (func_import): Likewise. If libtool is not used, show this through
59106         an option --no-libtool.
59107         (func_create_testdir): Update.
59108
59109 2006-07-29  Bruno Haible  <bruno@clisp.org>
59110
59111         * gnulib-tool (func_import): Extend error message about missing
59112         --doc-base.
59113
59114 2006-07-29  Bruno Haible  <bruno@clisp.org>
59115
59116         * gnulib-tool (func_import): Don't create the $docbase directory if
59117         there is no file to store there.
59118
59119 2006-07-29  Bruno Haible  <bruno@clisp.org>
59120
59121         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59122         relevant, look for configure.ac there, not in the current directory.
59123         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59124
59125 2006-07-29  Bruno Haible  <bruno@clisp.org>
59126
59127         * gnulib-tool (SORT): New variable.
59128         (func_usage): Undocument --assume-autoconf option.
59129         Remove --assume-autoconf option handling.
59130         (autoconf_minversion): Determine from the contents of configure.ac.
59131         (func_import): Remove autoconf_minversion handling.
59132         Suggested by Eric Blake.
59133
59134 2006-07-29  Bruno Haible  <bruno@clisp.org>
59135
59136         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59137
59138 2006-07-29  Bruno Haible  <bruno@clisp.org>
59139
59140         * config/srclist.txt (*setenv.[ch]): Remove rules.
59141
59142 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59143
59144         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59145
59146 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59147
59148         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59149         arpa/inet.h.
59150
59151 2006-07-28  Simon Josefsson  <jas@extundo.com>
59152
59153         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59154         * modules/inet_pton (Depends-on): Likewise.
59155
59156 2006-07-28  Simon Josefsson  <jas@extundo.com>
59157
59158         * m4/netinet_in_h.m4: New file.
59159
59160 2006-07-28  Simon Josefsson  <jas@extundo.com>
59161
59162         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59163         #include's.
59164
59165 2006-07-28  Simon Josefsson  <jas@extundo.com>
59166
59167         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59168         #include's.
59169
59170 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59171
59172         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59173         setgid on directories only if they set these bits.
59174         * lib/modechange.h: Remove obsolete comment about masks.
59175
59176 2006-07-28  Eric Blake  <ebb9@byu.net>
59177
59178         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59179         macro expansion.
59180
59181 2006-07-28  Bruno Haible  <bruno@clisp.org>
59182
59183         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59184
59185 2006-07-28  Bruno Haible  <bruno@clisp.org>
59186
59187         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59188
59189 2006-07-28  Bruno Haible  <bruno@clisp.org>
59190
59191         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59192         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59193         Define fallbacks.
59194         Avoids link error on FreeBSD 4.x.
59195         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59196
59197         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59198         encoding.
59199         * lib/mbswidth.c (iswcntrl): Likewise.
59200
59201 2006-07-27  Bruno Haible  <bruno@clisp.org>
59202
59203         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59204         test.
59205
59206 2006-07-27  Bruno Haible  <bruno@clisp.org>
59207
59208         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59209         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59210         defined.
59211
59212 2006-07-26  Eric Blake  <ebb9@byu.net>
59213
59214         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59215
59216 2006-07-26  Eric Blake  <ebb9@byu.net>
59217
59218         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59219         like mingw that lack mkstemp.
59220         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59221         avoid compilation warning on mingw.
59222
59223 2006-07-26  Bruno Haible  <bruno@clisp.org>
59224
59225         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59226         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59227         INT_FAST*_MIN, INTPTR_MIN.
59228
59229 2006-07-25  Bruno Haible  <bruno@clisp.org>
59230
59231         * modules/version-etc (Depends-on): Add stdarg.
59232
59233 2006-07-25  Bruno Haible  <bruno@clisp.org>
59234
59235         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59236         complex commands.
59237
59238 2006-07-25  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59241         defined in <stdarg.h> or config.h.
59242
59243 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59244
59245         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59246         (gl_STDIO_SAFER): Remove.
59247
59248 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         * MODULES.html.sh (File stream based Input/Output):
59251         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59252         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59253         * modules/fopen-safer, modules/tmpfile-safer: New files.
59254         * modules/stdio-safer: Remove.
59255
59256 2006-07-24  Bruno Haible  <bruno@clisp.org>
59257
59258         * modules/tmpdir: New file.
59259         * MODULES.html.sh (File system functions): Add it.
59260
59261 2006-07-24  Bruno Haible  <bruno@clisp.org>
59262
59263         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59264         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59265
59266 2006-07-24  Bruno Haible  <bruno@clisp.org>
59267
59268         * modules/clean-temp: New file.
59269
59270 2006-07-24  Bruno Haible  <bruno@clisp.org>
59271
59272         * m4/tmpdir.m4: New file, from GNU gettext.
59273
59274 2006-07-24  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/tmpdir.h: New file, from GNU gettext.
59277         * lib/tmpdir.c: New file, from GNU gettext.
59278
59279 2006-07-24  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/clean-temp.h: New file, from GNU gettext.
59282         * lib/clean-temp.c: New file, from GNU gettext.
59283
59284 2006-07-23  Eric Blake  <ebb9@byu.net>
59285
59286         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59287         (Depends-on): Add binary-io.
59288
59289 2006-07-23  Eric Blake  <ebb9@byu.net>
59290
59291         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59292
59293 2006-07-23  Eric Blake  <ebb9@byu.net>
59294
59295         * lib/tmpfile-safer.c: New file.
59296         * lib/stdio-safer.h (fopen_safer): Add prototype.
59297         * lib/stdio--.h (tmpfile): Make safer.
59298
59299 2006-07-23  Bruno Haible  <bruno@clisp.org>
59300
59301         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59302         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59303         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59304         gl_linked_remove_at): Use it.
59305
59306 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59307         and Simon Josefsson <jas@extundo.com>
59308
59309         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59310
59311         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59312
59313 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         * modules/close-stream: New file.
59316         * modules/closeout (Description): Make it clear that it exits
59317         with a diagnostic on error.
59318         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59319         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59320
59321 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * m4/close-stream.m4: New file.
59324
59325 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59326
59327         * lib/close-stream.c, lib/close-stream.h: New files.
59328
59329 2006-07-22  Bruno Haible  <bruno@clisp.org>
59330
59331         Merge from GNU gettext 0.15.
59332
59333         2006-05-01  Bruno Haible  <bruno@clisp.org>
59334
59335                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59336
59337         2006-07-22  Bruno Haible  <bruno@clisp.org>
59338
59339                 * modules/javaversion: New file.
59340                 * MODULES.html.sh (Java): Add javaversion.
59341
59342         2006-03-12  Bruno Haible  <bruno@clisp.org>
59343
59344                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59345
59346         2005-12-04  Bruno Haible  <bruno@clisp.org>
59347
59348                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59349                 (untested).
59350
59351         2006-06-21  Bruno Haible  <bruno@clisp.org>
59352
59353                 Avoid warnings from recent versions of mcs.
59354                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59355                 -o, -L, -r any more. Use options documented since mcs-1.0
59356                 instead. Similarly for -g.
59357
59358         2005-12-04  Bruno Haible  <bruno@clisp.org>
59359
59360                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59361                 .resources, not .resource.
59362
59363         2005-07-09  Bruno Haible  <bruno@clisp.org>
59364
59365                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59366                 add a .dll suffix.
59367                 Reported by Mark Junker <mjscod@gmx.de>.
59368
59369         2006-07-22  Bruno Haible  <bruno@clisp.org>
59370
59371                 * modules/gettext: Upgrade to gettext-0.15.
59372                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59373                 m4/visibility.m4.
59374                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59375
59376 2006-07-22  Bruno Haible  <bruno@clisp.org>
59377
59378         Merge from GNU gettext 0.15.
59379
59380         2006-03-25  Bruno Haible  <bruno@clisp.org>
59381
59382                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59383
59384         2006-07-21  Bruno Haible  <bruno@clisp.org>
59385
59386                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59387                 "1.1".
59388
59389         2006-05-09  Bruno Haible  <bruno@clisp.org>
59390
59391                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59392                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59393                 for the conftestver execution.
59394
59395         2006-05-01  Bruno Haible  <bruno@clisp.org>
59396
59397                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59398                 optional target-version argument. Verify that the compiler
59399                 groks source of the specified source-version, or add -source
59400                 option as necessary. Verify that the compiler produces
59401                 bytecode in the specified target-version, or add -target and
59402                 -source options as necessary. Make the result of the test
59403                 available as variable CONF_JAVAC. Also log error output in
59404                 config.log.
59405
59406         2006-03-11  Bruno Haible  <bruno@clisp.org>
59407
59408                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59409
59410         2006-05-09  Bruno Haible  <bruno@clisp.org>
59411
59412                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59413                 CLASSPATH_SEPARATOR to a semicolon.
59414
59415         2006-03-12  Bruno Haible  <bruno@clisp.org>
59416
59417                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59418                 available as variable CONF_JAVA, for subsequent autoconf
59419                 tests. Also log error output in config.log.
59420
59421         2006-07-19  Bruno Haible  <bruno@clisp.org>
59422
59423                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59424                 that getline works on glibc2 systems. Needed to avoid trouble
59425                 in relocatable.c.
59426                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59427
59428         2005-12-04  Bruno Haible  <bruno@clisp.org>
59429
59430                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59431                 launcher (untested).
59432
59433         2005-12-04  Bruno Haible  <bruno@clisp.org>
59434
59435                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59436
59437         2006-07-22  Bruno Haible  <bruno@clisp.org>
59438
59439                 * gettext.m4: Update from GNU gettext-0.15.
59440                 * nls.m4: Likewise.
59441                 * po.m4: Likewise.
59442                 * inttypes-pri.m4: Likewise.
59443                 * inttypes-h.m4: Renamed from inttypes.m4.
59444                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59445
59446 2006-07-22  Bruno Haible  <bruno@clisp.org>
59447
59448         Merge from GNU gettext 0.15.
59449
59450         2005-07-05  Bruno Haible  <bruno@clisp.org>
59451
59452                 * printf-args.c (printf_fetchargs): Work around broken
59453                 definition of wint_t on mingw.
59454
59455         2005-02-12  Bruno Haible  <bruno@clisp.org>
59456
59457                 * xallocsa.h: Add extern "C" for C++.
59458
59459         2006-05-17  Bruno Haible  <bruno@clisp.org>
59460
59461                 Cygwin portability.
59462                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59463
59464         2006-04-30  Bruno Haible  <bruno@clisp.org>
59465
59466                 * progreloc.c: Include <mach-o/dyld.h> if available.
59467                 (find_executable): Use _NSGetExecutablePath when possible.
59468
59469         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59470
59471                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59472                 function.
59473
59474         2005-12-29  Bruno Haible  <bruno@clisp.org>
59475
59476                 * progreloc.c (set_program_name_and_installdir): Fix
59477                 compilation error.
59478
59479         2005-12-04  Bruno Haible  <bruno@clisp.org>
59480
59481                 Cygwin portability.
59482                 * progreloc.c: Include <windows.h> also on Cygwin.
59483                 (find_executable): Add support for Cygwin.
59484                 (set_program_name_and_installdir): Handle also platforms with
59485                 nonempty EXEEXT.
59486
59487         2006-07-11  Bruno Haible  <bruno@clisp.org>
59488
59489                 * javacomp.c: Fix a comment.
59490                 Reported by Jim Meyering.
59491
59492         2006-04-30  Bruno Haible  <bruno@clisp.org>
59493
59494                 * javacomp.h (compile_java_class): Add source_version,
59495                 target_version arguments.
59496                 * javacomp.c: Rewritten to choose only a compiler that
59497                 respects the specified source_version and target_version.
59498
59499         2006-06-27  Bruno Haible  <bruno@clisp.org>
59500
59501                 Assume correct S_ISDIR macro.
59502                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59503
59504         2006-07-22  Bruno Haible  <bruno@clisp.org>
59505
59506                 * javaversion.h: New file, from GNU gettext.
59507                 * javaversion.c: New file, from GNU gettext.
59508                 * javaversion.java: New file, from GNU gettext.
59509                 * javaversion.class: New file, from GNU gettext.
59510
59511         2006-05-17  Bruno Haible  <bruno@clisp.org>
59512
59513                 Cygwin portability.
59514                 * javaexec.c (execute_java_class): Test for jview program
59515                 also on Cygwin.
59516
59517         2006-04-09  Bruno Haible  <bruno@clisp.org>
59518
59519                 * fatal-signal.c: Don't include string.h.
59520                 (at_fatal_signal): Use a copying loop instead of memcpy.
59521
59522         2005-12-04  Bruno Haible  <bruno@clisp.org>
59523
59524                 * csharpexec.c: Add support for 'clix' launcher (untested).
59525                 (execute_csharp_using_sscli): New function.
59526                 (execute_csharp_program): Call it.
59527
59528         2006-06-21  Bruno Haible  <bruno@clisp.org>
59529
59530                 Avoid warnings from recent versions of mcs.
59531                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59532                 -o, -L, -r any more. Use options documented since mcs-1.0
59533                 instead. Similarly for -g.
59534
59535         2005-07-09  Bruno Haible  <bruno@clisp.org>
59536
59537                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59538                 add a .dll suffix.
59539                 Reported by Mark Junker <mjscod@gmx.de>.
59540
59541         2006-06-17  Bruno Haible  <bruno@clisp.org>
59542
59543                 * config.charset: Update for NetBSD 3.0.
59544
59545         2006-05-17  Bruno Haible  <bruno@clisp.org>
59546
59547                 Cygwin portability.
59548                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59549
59550         2006-05-16  Bruno Haible  <bruno@clisp.org>
59551
59552                 * localcharset.c [CYGWIN]: Include <windows.h>.
59553                 (get_charset_aliases): For Cygwin, return the same CPxxx
59554                 aliases list as under WIN32.
59555                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59556                 the environment variables. Fall back to GetACP().
59557
59558         2006-04-05  Bruno Haible  <bruno@clisp.org>
59559
59560                 * config.charset: Update Juan Manuel Guerrero's address.
59561
59562         2005-02-12  Bruno Haible  <bruno@clisp.org>
59563
59564                 * allocsa.h: Add extern "C" for C++.
59565
59566         2005-02-10  Bruno Haible  <bruno@clisp.org>
59567
59568                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59569                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59570
59571         2006-07-22  Bruno Haible  <bruno@clisp.org>
59572
59573                 * gettext.h: Update to GNU gettext-0.15.
59574
59575 2006-07-22  Bruno Haible  <bruno@clisp.org>
59576
59577         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59578         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59579         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59580
59581 2006-07-21  Eric Blake  <ebb9@byu.net>
59582
59583         * modules/stdlib-safer: New file.
59584         * MODULES.html.sh (File stream based Input/Output): Add
59585         stdlib-safer.
59586
59587 2006-07-21  Eric Blake  <ebb9@byu.net>
59588
59589         * lib/stdlib-safer.h: New file from coreutils, required by
59590         stdlib--.h.
59591
59592 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59595
59596 2006-07-20  Bruno Haible  <bruno@clisp.org>
59597
59598         * gnulib-tool: Recognize new option --assume-autoconf.
59599         (autoconf_minversion): New variable.
59600         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59601
59602 2006-07-20  Bruno Haible  <bruno@clisp.org>
59603
59604         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59605
59606 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59607
59608         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59609         Reindent and repaginate.
59610
59611 2006-07-19  Derek Price  <derek@ximbiot.com>
59612
59613         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59614         Correct grammar.
59615
59616 2006-07-17  Bruno Haible  <bruno@clisp.org>
59617
59618         * modules/list: New file.
59619         * modules/array-list: New file.
59620         * modules/carray-list, modules/carray-list-tests: New files.
59621         * modules/linked-list, modules/linked-list-tests: New files.
59622         * modules/avltree-list, modules/avltree-list-tests: New files.
59623         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59624         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59625         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59626         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59627         * modules/oset: New file.
59628         * modules/array-oset: New file.
59629         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59630         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59631         * tests/test-carray_list.c: New file.
59632         * tests/test-linked_list.c: New file.
59633         * tests/test-avltree_list.c: New file.
59634         * tests/test-rbtree_list.c: New file.
59635         * tests/test-linkedhash_list.c: New file.
59636         * tests/test-avltreehash_list.c: New file.
59637         * tests/test-rbtreehash_list.c: New file.
59638         * tests/test-avltree_oset.c: New file.
59639         * tests/test-rbtree_oset.c: New file.
59640         * MODULES.html.sh (Container data structures): New section.
59641
59642 2006-07-17  Bruno Haible  <bruno@clisp.org>
59643
59644         * m4/gl_list.m4: New file.
59645
59646 2006-07-17  Bruno Haible  <bruno@clisp.org>
59647
59648         * lib/gl_list.h: New file.
59649         * lib/gl_list.c: New file.
59650         * lib/gl_array_list.h: New file.
59651         * lib/gl_array_list.c: New file.
59652         * lib/gl_carray_list.h: New file.
59653         * lib/gl_carray_list.c: New file.
59654         * lib/gl_linked_list.h: New file.
59655         * lib/gl_linked_list.c: New file.
59656         * lib/gl_anylinked_list1.h: New file.
59657         * lib/gl_anylinked_list2.h: New file.
59658         * lib/gl_avltree_list.h: New file.
59659         * lib/gl_avltree_list.c: New file.
59660         * lib/gl_anyavltree_list1.h: New file.
59661         * lib/gl_anyavltree_list2.h: New file.
59662         * lib/gl_rbtree_list.h: New file.
59663         * lib/gl_rbtree_list.c: New file.
59664         * lib/gl_anyrbtree_list1.h: New file.
59665         * lib/gl_anyrbtree_list2.h: New file.
59666         * lib/gl_anytree_list1.h: New file.
59667         * lib/gl_anytree_list2.h: New file.
59668         * lib/gl_linkedhash_list.h: New file.
59669         * lib/gl_linkedhash_list.c: New file.
59670         * lib/gl_anyhash_list1.h: New file.
59671         * lib/gl_anyhash_list2.h: New file.
59672         * lib/gl_avltreehash_list.h: New file.
59673         * lib/gl_avltreehash_list.c: New file.
59674         * lib/gl_rbtreehash_list.h: New file.
59675         * lib/gl_rbtreehash_list.c: New file.
59676         * lib/gl_anytreehash_list1.h: New file.
59677         * lib/gl_anytreehash_list2.h: New file.
59678
59679         * lib/gl_oset.h: New file.
59680         * lib/gl_oset.c: New file.
59681         * lib/gl_array_oset.h: New file.
59682         * lib/gl_array_oset.c: New file.
59683         * lib/gl_avltree_oset.h: New file.
59684         * lib/gl_avltree_oset.c: New file.
59685         * lib/gl_rbtree_oset.h: New file.
59686         * lib/gl_rbtree_oset.c: New file.
59687         * lib/gl_anytree_oset.h: New file.
59688
59689 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59690
59691         * m4/mkancesdirs.m4: New file.
59692         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59693         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59694         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59695         it.
59696
59697 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59698
59699         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59700         * lib/mkancesdirs.h: New files.
59701         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59702         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59703         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59704         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59705         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59706         callers changed.  Revamp internals significantly, by not
59707         attempting to create directories that are temporarily more
59708         permissive than the final results.  Do not attempt to use
59709         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59710         This removes some race conditions, fixes some bugs, and simplifies
59711         things.  Use new dirchownmod function to do owner and mode changes.
59712         * lib/mkdir-p.h: Likewise.
59713         * lib/modechange.c (octal_to_mode): New function.
59714         (struct mode_change): New member mentioned.
59715         (make_node_op_equals): New arg mentioned.  All callers changed.
59716         (mode_compile): Keep track of which mode bits the user has explicitly
59717         mentioned.
59718         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59719         New arg PMODE_BITS, to keep track of which mode bits the user
59720         mentioned; it treats S_ISUID and S_ISGID speciall.
59721         All callers changed.
59722         * lib/modechange.h: Likewise.
59723
59724 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59725
59726         * MODULES.html.sh: Add mkancestors.
59727         * modules/mkancesdirs: New module.
59728         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59729         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59730         The chdir-safer and afs files are now orphans; I'll remove them
59731         unless someone speaks up.
59732         Add lib/dirchownmod.c, lib/dirchownmod.h.
59733         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59734         Add lchown, mkancesdirs.
59735         (Maintainer): Add self.
59736
59737 2006-07-15  Karl Berry  <karl@gnu.org>
59738
59739         * gnulib-tool: help message wording/arrangement.
59740
59741 2006-07-14  Simon Josefsson  <jas@extundo.com>
59742
59743         * doc/gnulib.texi (Libtool and Windows): New section.
59744
59745 2006-07-12  Simon Josefsson  <jas@extundo.com>
59746
59747         * modules/gendocs (License): Fix license, approved by Karl.
59748
59749 2006-07-12  Eric Blake  <ebb9@byu.net>
59750
59751         * MODULES.html.sh: Add gendocs.
59752
59753 2006-07-11  Eric Blake  <ebb9@byu.net>
59754
59755         * modules/fdl: New module, to install doc/fdl.texi.
59756         * MODULES.html.sh: Add new section for documentation modules.
59757         * gnulib-tool: Avoid space-tab.
59758         (--doc-base): New option, to manage files from doc.
59759
59760 2006-07-11  Eric Blake  <ebb9@byu.net>
59761
59762         * m4/absolute-header.m4: Fix comments to match recent change.
59763
59764 2006-07-11  Eric Blake  <ebb9@byu.net>
59765
59766         * gnulib-tool: List --doc-base before --tests-base.
59767
59768 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59769
59770         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59771
59772 2006-07-11  Bruno Haible  <bruno@clisp.org>
59773
59774         * README: Mention where to put documentation.
59775
59776 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59777
59778         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59779
59780 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59781
59782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59783         to stdint.m4.
59784
59785 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59788         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59789         "no/such/file/stdint.h" when there is no such file, so that
59790         the resulting C code can be parsed by dodgy compilers.
59791         Problems reported by Bob Proulx.
59792
59793 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59794
59795         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59796         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59797         macros into the GNU _D_EXACT_NAMLEN.
59798         * lib/savedir.c:  Likewise.
59799         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59800
59801 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59802         and Paul Eggert  <eggert@cs.ucla.edu>
59803
59804         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59805         * m4/savedir.m4:
59806         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59807         macros into the GNU _D_EXACT_NAMLEN.
59808
59809 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59810
59811         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59812         around the absolute name, to work around a problem with the HP-UX
59813         11.23 native C compiler, reported by Bob Proulx.
59814
59815 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59816
59817         * doc/maintain.texi, make-stds.texi: Sync from
59818         <http://savannah.gnu.org/projects/gnustandards>.
59819
59820 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59821
59822         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59823
59824 2006-07-09  Jim Meyering  <jim@meyering.net>
59825
59826         * m4/glob.m4: Remove a doubled word in a comment.
59827
59828 2006-07-09  Jim Meyering  <jim@meyering.net>
59829
59830         * lib/argp-pv.c: Remove a doubled word in a comment.
59831         * lib/check-version.c (check_version): Likewise.
59832         * lib/javacomp.c (compile_java_class): Likewise.
59833
59834 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59837         for the benefit of people using Autoconf 2.60.  If you want to
59838         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59839         (or m4/onceonly.m4, if pre-2.57) manually.
59840
59841 2006-07-08  Jim Meyering  <jim@meyering.net>
59842
59843         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59844         comment.
59845         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59846         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59847         comment.
59848
59849 2006-07-08  Jim Meyering  <jim@meyering.net>
59850
59851         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59852
59853 2006-07-07  Simon Josefsson  <jas@extundo.com>
59854
59855         * tests/test-crc.c: Change expected crc value, the test vector
59856         were probably computed using the old broken crc.c?
59857
59858 2006-07-06  Simon Josefsson  <jas@extundo.com>
59859
59860         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59861         now the canonical place for the M4 file).
59862
59863         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59864         from the sys_socket dependency now.
59865
59866         * modules/inet_pton (Files): Ditto.
59867
59868         * modules/inet_ntop (Files): Ditto.
59869
59870 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59871
59872         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59873         not gl_PREREQ_GETUSERSHELL.
59874
59875 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59876
59877         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59878         with only one argument, for Autoconf 2.60.
59879         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59880         expand to nothing, so add a shell command to avoid syntax error.
59881         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59882
59883 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59884
59885         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59886
59887 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59890         no longer needed.  Check for isblank decl.
59891         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59892         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59893         of existence.
59894
59895 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59896
59897         * lib/getloadavg.c: Use __VMS, not VMS.
59898         * lib/getopt.c: Likewise.
59899         * lib/getpagesize.h: Likewise.
59900         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59901         and probably does not work.
59902
59903 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59904
59905         * lib/.cppi-disable: Add wcwidth.
59906         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59907         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59908         (ISGRAPH): Remove.  All uses changed to isgraph.
59909         (FOLD) [!defined _LIBC]: Remove special case.
59910         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59911         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59912         HAVE_ISBLANK.
59913         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59914         case.
59915
59916 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59917
59918         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59919         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59920         brackets.  Other minor changes to suppress some compiler
59921         warnings.
59922
59923 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59924         and Paul Eggert  <eggert@cs.ucla.edu>
59925
59926         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59927         of invoking obsolescent AC_HEADER_DIRENT macro.
59928         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59929         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59930         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59931         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59932         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59933         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59934         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59935         * m4/readdir.m4: Remove; no longer needed.
59936
59937 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59938         and Paul Eggert  <eggert@cs.ucla.edu>
59939
59940         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59941         Don't worry about this obsolete case any more.
59942         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59943         directories.
59944         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59945         worry about this obsolete case any more.
59946         * lib/fts.c: Likewise.
59947         * lib/getcwd.c: Likewise.
59948         * lib/glob.h: Likewise.
59949         * lib/savedir.c: Likewise.
59950
59951 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59954         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59955         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59956         needed.
59957         All uses removed.
59958         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59959         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59960         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59961         needed.
59962         * m4/getdate.m4 (gl_GETDATE): Likewise.
59963         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59964         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59965         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59966         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59967         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59968         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59969         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59970         needed.
59971
59972 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * lib/memcasecmp.c: Include <limits.h>.
59975         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59976         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59977         Don't assume isdigit succeeds only on '0' through '9'.
59978
59979 2006-07-05  Eric Blake  <ebb9@byu.net>
59980
59981         * modules/getaddrinfo (Depends-on): Add snprintf.
59982
59983 2006-07-05  Eric Blake  <ebb9@byu.net>
59984
59985         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59986         to avoid 'header present but could not be compiled' on cygwin.
59987
59988 2006-07-05  Eric Blake  <ebb9@byu.net>
59989
59990         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59991         missing from netdb.h.
59992         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59993
59994 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59995
59996         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59997         no longer needed.
59998         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59999         * m4/getdate.m4 (gl_GETDATE): Likewise.
60000         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60001         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60002         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60003         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60005
60006 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60007
60008         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60009         All uses of is_space replaced by isspace.
60010         * lib/exit.h: Don't talk about STDC_HEADERS.
60011         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60012         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60013         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60014         replaced by isprint etc.
60015         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60016         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60017         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60018         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60019         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60020         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60021
60022 2006-07-05  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60025         the function exists, before testing against AIX.
60026         Reported by Martin Lambers <marlam@marlam.de>.
60027
60028 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60029
60030         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60031         From Mark D. Baushke.
60032
60033 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60036         to the absolute name, not just one, to bypass Sun C 5.8's
60037         "warning: #include of /usr/include/... may be non-portable".
60038
60039 2006-07-04  Eric Blake  <ebb9@byu.net>
60040
60041         * modules/dirname-tests: New test module.
60042         * tests/test-dirname.c: New file, replacing dirname.c
60043         TEST_DIRNAME section that was recently deleted.
60044
60045 2006-07-04  Bruno Haible  <bruno@clisp.org>
60046
60047         Assume ANSI C header files and <ctype.h> functions.
60048         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60049         (mbsnwidth): Use isprint, iscntrl instead.
60050
60051 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60052
60053         Merge from coreutils.
60054         * MODULES.html.sh: Add xstrtold.
60055         * modules/xstrtold: New file.
60056         * modules/cycle-check (Files): Add lib/same-inode.h.
60057         * modules/dirname (Files): Add m4/double-slash-root.m4.
60058         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60059         * modules/mkdir-p (Files): Add lib/same-inode.h.
60060         * modules/same (Files): Add lib/same-inode.h.
60061
60062 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60063
60064         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60065         This is to keep the terminology clean; POSIX talks about
60066         "absolute pathnames", not "full pathnames", but the GNU
60067         Coding Standards say to use "path" for something else;
60068         so use "absolute" to keep both sides happy.
60069         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60070         Set gl_absolute_header, not gl_full_header_path.
60071         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60072         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60073         All uses changed.
60074
60075         Merge from coreutils.
60076
60077         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60080         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60081         want to require the building of c-strtod.o.
60082         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60083         needs -lm directly.
60084         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60085
60086         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60087
60088         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60089         --as-needed option if available.  Problem reported by Albert Chin in
60090         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60091         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60092         cc merely issues a bunch of annoying warnings for --as-needed
60093         (this problem was reported by Bob Proulx).  Also, try linking with
60094         -lm to detect a bug in binutils 2.16 (this problem was reported
60095         by Ralf Wildenhues).
60096
60097         2006-06-18  Jim Meyering  <jim@meyering.net>
60098
60099         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60100         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60101         macro.
60102         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60103         also check for glibc-2.4's abort-inducing bug.
60104
60105         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60106         Low-probability clean-up should be to use rmdir to get rid of
60107         the just-created directory, not unlink.
60108
60109         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60110         configure fail, and request a bug report to inform us about it.
60111         Add a comment that, barring reports to the contrary, in 2007 we'll
60112         assume ftruncate is universally available.
60113
60114         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60115
60116         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60117
60118         2006-03-12  Jim Meyering  <jim@meyering.net>
60119
60120         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60121         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60122         * m4/same.m4 (gl_SAME): Likewise.
60123         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60124
60125         2006-03-11  Eric Blake  <ebb9@byu.net>
60126
60127         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60128         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60129         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60130         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60131
60132 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60135         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60136         reported by Mark D. Baushke, one in
60137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60138
60139         Merge from coreutils.
60140
60141         * lib/.cppi-disable: Add stdint_.h.
60142         * lib/.cvsignore: Add stdint.h.
60143
60144         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60145
60146         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60147         both double and long double versions.
60148         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60149         * lib/xstrtold.c: New file.
60150         * lib/xstrtod.h (xstrtold): New decl.
60151
60152         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         * lib/filemode.c (setst): Remove.
60155         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60156         (arguably) clearer, and the generated code is a bit smaller on my
60157         Debian GNU/Linux stable x86 host.
60158
60159         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60160
60161         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60162         Assume that filemode.h includes sys/types.h and sys/stat.h.
60163         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60164         (ftypelet): Reorder to put common cases first, for efficiency.
60165         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60166         to do 'M'.
60167         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60168         of 10, for compatibility with FreeBSD.  All callers changed.
60169         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60170         types that can't be deduced solely from st_mode.  First arg is now a
60171         const pointer.
60172         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60173         (strmode): Renamed from mode_string.
60174         (filemodestring): New decl.
60175         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60176         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60177         needed.
60178         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60179
60180         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60181
60182         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60183         fsusage.h now does that.  Include fsusage.h first, to test interface.
60184         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60185         at most one method (the old code could have generated decls that
60186         didn't conform to C89, not that this was ever exercised).
60187         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60188
60189         2006-03-19  Jim Meyering  <jim@meyering.net>
60190
60191         Work even in a chroot where d_ino values for entries in "/"
60192         don't match the stat.st_ino values for the same names.
60193         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60194         number, iterate through all entries again, using lstat instead.
60195         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60196         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60197
60198         * lib/getcwd.c (__getcwd): Clarify a comment.
60199         Use memcpy in place of a call to strcpy.
60200
60201         2006-03-12  Jim Meyering  <jim@meyering.net>
60202
60203         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60204         matches that of the current directory (which we're about to chdir ".."
60205         out of), then save the dev-ino of the parent, instead.
60206
60207         * lib/same-inode.h (SAME_INODE): New file/macro.
60208         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60209         Include "same-inode.h", instead.
60210         * lib/same.c: Likewise.
60211         * lib/cycle-check.h: Include "same-inode.h".
60212         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60213         * lib/cycle-check.c (SAME_INODE): Remove definition.
60214         * lib/root-dev-ino.h: Include "same-inode.h".
60215
60216         2006-03-11  Eric Blake  <ebb9@byu.net>
60217
60218         * lib/same.c (same_name): s/base_name/last_component/
60219         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60220         * lib/filenamecat.c (file_name_concat): Likewise.
60221
60222         2006-03-11  Eric Blake  <ebb9@byu.net>,
60223                     Paul Eggert  <eggert@cs.ucla.edu>
60224
60225         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60226         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60227         drive prefix.
60228         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60229         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60230         (last_component): New method.
60231         * lib/dirname.c (dir_len): Determine when drive letters need a
60232         subsequent slash.  Preserve // when it is special.
60233         (dir_name): Don't append dot when drive letter is absolute.
60234         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60235         * lib/basename.c (base_name): New semantics - malloc the result.
60236         Preserve // when it is special.  Preserve relative files that look
60237         like drive letters.
60238         (base_len): Preserve // when it is special.
60239         (last_component): New method, similar to old base_name semantics.
60240         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60241         base_name.  Strip redundant slashes from ///.
60242
60243 2006-07-03  Jim Meyering  <jim@meyering.net>
60244
60245         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60246         macro is used before the first cycle_check call.
60247
60248 2006-07-03  Eric Blake  <ebb9@byu.net>
60249
60250         * modules/dirname (Depends-on): Add xstrndup.
60251
60252 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60255         test cases, so that config.log is a bit easier to follow.
60256
60257 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60260         both are 64 bits, since this seems to be the tradition, and this
60261         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60262         we ever run into a host that prefers long long to long in this
60263         case, we'll need another configure-time test.  Problem reported by
60264         Jim Meyering.
60265
60266 2006-07-02  Eric Blake  <ebb9@byu.net>
60267
60268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60269
60270 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60271
60272         * modules/inttypes (Depends-on): No longer depends on stdint.
60273         * modules/stdint (Description): Say more about assumptions.
60274         Say that the fast types might differ.  Say macros are used.
60275         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60276         (Makefile.am): Revise list of substituted symbols to match
60277         new stdint.m4.
60278         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60279         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60280         * tests/test-stdint.c (verify_same_types)
60281         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60282         the code conforms to C99/C89.
60283         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60284         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60285
60286 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60289         but fix a bug, by requiring at least 64 bits.
60290         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60291         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60292         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60293         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60294
60295         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60296         changes.  Make 2.59 a prerequisite.  Check and substitute for
60297         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60298         inttypes.h.  Do not use special include files; just use the
60299         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60300         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60301         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60302         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60303         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60304         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60305         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60306         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60307         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60308         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60309         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60310         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60311         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60312         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60313         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60314         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60315         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60316         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60317         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60318         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60319         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60320         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60321         not check for things that C99 does not require, e.g., int8_t.  If
60322         a test isn't needed unless <stdint.h> isn't working, and is
60323         unlikely to be needed for any other reason, then don't do it
60324         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60325         size_t, since we assume C89 freestanding at least.  Do not check
60326         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60327         the right thing even if the types are not defined.  Instead use:
60328         (gl_STDINT_TYPE_PROPERTIES): New macro.
60329         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60330         testing whether <sys/types.h> clashes, as Autoconf does this for
60331         us now.  All uses removed.
60332         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60333         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60334         (gl_CHECK_TYPE_SAME):
60335         Remove; no longer needed.
60336         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60337         exists, since we'll return 0 anyway in that case.
60338         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60339
60340 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60343         possible collision with system files.
60344         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60345         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60346         WCHAR_MIN and WCHAR_MAX in this case.
60347         (<stddef.h>): Do not include; no longer needed.
60348         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60349         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60350         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60351         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60352         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60353         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60354         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60355         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60356         !defined(__c99))]: Include in this case too, since it's harmless
60357         now.
60358         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60359         dangerous to do so.
60360         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60361         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60362         (_STDINT_MIN, _STDINT_MAX): New macros.
60363         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60364         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60365         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60366         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60367         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60368         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60369         macros, not typedefs; this simplifies things quite a bit.
60370         Use long int for all types narrower than int64_t.
60371         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60372         Define in terms of long long int or int64_t or long int,
60373         not int64_t or int32_t.  This saves some compile-time testing.
60374         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60375         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60376         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60377         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60378         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60379         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60380         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60381         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60382         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60383         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60384         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60385         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60386         undef any previous version and define our own version, for
60387         simplicity and consistency with the new macros for types.
60388         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60389         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60390         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60391         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60392         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60393         @WINT_T_SUFFIX@ to keep things simple here.
60394         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60395         Simplify by assuming typical 8/16/32/64 host, since we're
60396         already doing that elsewhere anyway.
60397         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60398         and assume long long int is 64 bits if available.  This
60399         speeds up 'configure'.
60400
60401 2006-07-01  Eric Blake  <ebb9@byu.net>
60402
60403         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60404         Reported by Andreas Buening.
60405
60406 2006-07-01  Eric Blake  <ebb9@byu.net>
60407
60408         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60409
60410 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60411
60412         * lib/getaddrinfo.c: fixed typo
60413
60414 2006-06-29  Jim Meyering  <jim@meyering.net>
60415
60416         * modules/strftime (Maintainer): Add my name, since with the
60417         FPRINTFTIME changes strftime.c has forked from glibc.
60418
60419 2006-06-29  Eric Blake  <ebb9@byu.net>
60420
60421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60422
60423 2006-06-29  Eric Blake  <ebb9@byu.net>
60424
60425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60426
60427 2006-06-29  Eric Blake  <ebb9@byu.net>
60428
60429         * lib/stat_.h: New file.
60430
60431 2006-06-29  Eric Blake  <ebb9@byu.net>
60432
60433         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60434         unused static function.
60435
60436 2006-06-29  Eric Blake  <ebb9@byu.net>
60437
60438         * doc/functions.texi (Function Portability): Document missing lstat
60439         on mingw.
60440
60441 2006-06-29  Eric Blake  <ebb9@byu.net>
60442
60443         * MODULES.html.sh: Add sys_stat.
60444         * modules/sys_stat: New module.
60445         * modules/mkstemp (Depends-on): Add sys_stat.
60446
60447 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60448
60449         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60450
60451 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60452
60453         * m4/c-bs-a.m4: Removed.
60454
60455 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60456
60457         * lib/strftime.c: Assume strftime() exists.
60458
60459 2006-06-29  Derek Price  <derek@ximbiot.com>
60460
60461         * modules/c-bs-a: Removed - \a is C89.
60462         * MODULES.html.sh: Remove c-bs-a.
60463
60464 2006-06-29  Bruno Haible  <bruno@clisp.org>
60465
60466         * modules/wcwidth (License): Change to LGPL.
60467
60468 2006-06-28  Simon Josefsson  <jas@extundo.com>
60469
60470         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60471         on _WIN32.
60472
60473         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60474         getnameinfo.
60475
60476 2006-06-28  Simon Josefsson  <jas@extundo.com>
60477
60478         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60479
60480 2006-06-28  Simon Josefsson  <jas@extundo.com>
60481
60482         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60483         functions there.  It will succeed on Windows XP, but on Windows
60484         2000 and (presumably) earlier, it will fail, and use the internal
60485         re-implementation.
60486         (use_win32_p): New function.
60487         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60488         Support AI_NUMERICSERV to disable getservbyname.
60489         (getnameinfo): New function, only supports
60490         NI_NUMERICHOST|NI_NUMERICSERV for now.
60491
60492         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60493         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60494         getnameinfo.
60495
60496 2006-06-28  Eric Blake  <ebb9@byu.net>
60497
60498         * modules/wcwidth: New file.
60499         * modules/mbchar (Depends-on): Add wcwidth.
60500         * modules/mbswidth (Depends-on): Add wcwidth.
60501         * MODULES.html.sh: Add wcwidth.
60502
60503 2006-06-28  Eric Blake  <ebb9@byu.net>
60504
60505         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60507
60508 2006-06-28  Eric Blake  <ebb9@byu.net>
60509
60510         * lib/xvasprintf.h: Fix comments.
60511
60512 2006-06-28  Eric Blake  <ebb9@byu.net>
60513
60514         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60515         * lib/mbswidth.c (wcwidth): Move from here...
60516         * lib/wcwidth.h: ...to this new file.
60517
60518 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60519
60520         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60521
60522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60523         it's obsolete.
60524         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60525
60526 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60527
60528         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60529         Autoconf 2.60 says this stuff was obsolete.
60530
60531 2006-06-28  Bruno Haible  <bruno@clisp.org>
60532
60533         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60534
60535 2006-06-28  Bruno Haible  <bruno@clisp.org>
60536
60537         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60538         gt_TYPE_WCHAR_T.
60539
60540 2006-06-28  Bruno Haible  <bruno@clisp.org>
60541
60542         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60543         declaration for wcwidth.
60544         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60545
60546 2006-06-28  Bruno Haible  <bruno@clisp.org>
60547
60548         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60549         (mkdir): Define using _mkdir.
60550
60551 2006-06-28  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/getaddrinfo.h: Fix POSIX URL.
60554         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60555         _WIN32.
60556         (use_win32_p): Make static.
60557         (getaddrinfo): Reject service name if it is empty or does not consist
60558         solely of decimal digits, or if its value is > 65535.
60559         (getnameinfo): Remove useless casts.
60560
60561 2006-06-27  Simon Josefsson  <jas@extundo.com>
60562
60563         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60564         Eggert and Martin Lambers.
60565
60566 2006-06-27  Simon Josefsson  <jas@extundo.com>
60567
60568         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60569         Eggert and Martin Lambers.
60570
60571 2006-06-27  Bruno Haible  <bruno@clisp.org>
60572
60573         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60574         result to 0, not to empty.
60575         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60576
60577 2006-06-27  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60580
60581 2006-06-26  Simon Josefsson  <jas@extundo.com>
60582
60583         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60584         present.
60585
60586 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60587
60588         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60589         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60590         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60591
60592 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60593
60594         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60595
60596 2006-06-26  Bruno Haible  <bruno@clisp.org>
60597
60598         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60599
60600 2006-06-26  Bruno Haible  <bruno@clisp.org>
60601
60602         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60603
60604 2006-06-26  Bruno Haible  <bruno@clisp.org>
60605
60606         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60607         SGI C compiler in pre-C99 mode.
60608         Suggested by Mark D. Baushke and Larry Jones.
60609
60610 2006-06-26  Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60613         WCHAR_MAX.
60614         Reported by Mark D. Baushke and Larry Jones.
60615
60616 2006-06-26  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60619         in pre-C99 mode.
60620         Suggested by Mark D. Baushke and Larry Jones.
60621
60622 2006-06-23  Simon Josefsson  <jas@extundo.com>
60623             Bruno Haible  <bruno@clisp.org>
60624
60625         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60626         Emit mostlyclean-local rule.
60627         (func_emit_tests_Makefile_am): Likewise.
60628         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60629
60630 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60631
60632         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60633
60634 2006-06-23  Bruno Haible  <bruno@clisp.org>
60635
60636         * tests/test-stdint.c: Update to match ISO C 99 Technical
60637         Corrigendum 1.
60638
60639 2006-06-23  Bruno Haible  <bruno@clisp.org>
60640
60641         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60642
60643 2006-06-23  Bruno Haible  <bruno@clisp.org>
60644
60645         * lib/stdint_.h: Treat IRIX like OpenBSD.
60646
60647 2006-06-23  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60650         ISO C 99 Technical Corrigendum 1.
60651
60652 2006-06-22  Simon Josefsson  <jas@extundo.com>
60653
60654         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60655         MinGW.
60656
60657 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60660         needed.  Some compiler complained about some of them.  Problem reported
60661         by Larry Jones in
60662         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60663
60664 2006-06-21  Simon Josefsson  <jas@extundo.com>
60665
60666         * tests/test-getaddrinfo.c: New file.
60667
60668         * modules/getaddrinfo-tests: New file.
60669
60670         * MODULES.html.sh: Add inet_pton.
60671
60672         * modules/inet_pton: New file.
60673
60674 2006-06-21  Simon Josefsson  <jas@extundo.com>
60675
60676         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60677         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60678         of using the (limited) gnulib implementation on Windows XP.
60679
60680         * m4/inet_pton.m4: New file.
60681
60682 2006-06-21  Simon Josefsson  <jas@extundo.com>
60683
60684         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60685         variable.
60686
60687         * lib/socket_.h: Don't define WINVER.
60688
60689         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60690         slightly modified to work in gnulib.
60691
60692 2006-06-21  Simon Josefsson  <jas@extundo.com>
60693
60694         * doc/gnulib.texi (Windows sockets): Add.
60695
60696 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60697
60698         * lib/read-file.c (fread_file): Start with buffer allocation of
60699         0 bytes rather than 1 byte; this simplifies the code.
60700         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60701         code to free buffer and save/restore errno.
60702         (internal_read_file): Remove unused local.
60703
60704 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60705
60706         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60707         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60708         Problem reported by Denis Excoffier in
60709         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60710
60711 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60712
60713         * modules/sys_socket, modules/socklen: Include sys/types since
60714         FreeBSD 4.x's sys/socket.h needs it.
60715
60716 2006-06-19  Simon Josefsson  <jas@extundo.com>
60717
60718         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60719
60720 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60721
60722         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60723
60724 2006-06-19  Bruno Haible  <bruno@clisp.org>
60725
60726         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60727         and FULL_PATH_INTTYPES_H in angle brackets.
60728         Reported by Mark D. Baushke <mdb@gnu.org>.
60729
60730 2006-06-17  Eric Blake  <ebb9@byu.net>
60731
60732         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60733         errno.
60734
60735 2006-06-17  Bruno Haible  <bruno@clisp.org>
60736
60737         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60738         <sys/inttypes.h>.
60739
60740 2006-06-17  Bruno Haible  <bruno@clisp.org>
60741
60742         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60743         whether errno is declared. Assume <errno.h> declares errno.
60744
60745 2006-06-17  Bruno Haible  <bruno@clisp.org>
60746
60747         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60748
60749 2006-06-17  Bruno Haible  <bruno@clisp.org>
60750
60751         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60752         problem on Solaris 2.5.1.
60753
60754 2006-06-16  Eric Blake  <ebb9@byu.net>
60755
60756         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60757         * lib/unicodeio.c [!defined errno]: Likewise.
60758         * lib/strtol.c [!defined errno]: Likewise.
60759         * lib/strtod.c [!defined errno]: Likewise.
60760
60761 2006-06-15  Eric Blake  <ebb9@byu.net>
60762
60763         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60764
60765 2006-06-15  Eric Blake  <ebb9@byu.net>
60766
60767         * config/srclist.txt (ssize_t.m4): Lose sync.
60768
60769 2006-06-15  Bruno Haible  <bruno@clisp.org>
60770
60771         * modules/stdint (Files): Include m4/full-header-path.m4,
60772         m4/size_max.m4, m4/wchar_t.m4.
60773         (Makefile.am): Many more substitutions.
60774         * modules/stdint-tests: New file.
60775         * tests/test-stdint.c: New file.
60776
60777 2006-06-15  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60780         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60781         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60782         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60783         gl_CHECK_TYPE_SAME): New macros.
60784
60785 2006-06-15  Bruno Haible  <bruno@clisp.org>
60786
60787         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60788
60789 2006-06-15  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/stdint_.h: Rewritten to be fully auto-configured.
60792         Fixes bug on HP-UX/IA64.
60793
60794 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60795
60796         * lib/getdate.y (__attribute__): Don't define if already defined.
60797         Problem reported by Larry Jones.
60798         * lib/utimens.c (__attribute__): Likewise.
60799
60800 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60801
60802         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60803         reported by Andreas Schwab.
60804
60805 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60806             Bruno Haible  <bruno@clisp.org>
60807
60808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60809         check for the declaration of strnlen and a run test that exposes the
60810         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60811         rpl_strndup.
60812
60813 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60814             Bruno Haible  <bruno@clisp.org>
60815
60816         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60817
60818 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60819
60820         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60821         compile test, for Tru64 4.0D.
60822
60823 2006-05-28  Karl Berry  <karl@gnu.org>
60824
60825         * config/srclist.txt (printf-args.c): lose sync.
60826
60827 2006-05-26  Martin Lambers  <marlam@marlam.de>
60828
60829         * lib/getpass.c: Updates the test for the native W32 API, and adds
60830         missing includes, thus fixing compilation warnings.
60831
60832 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60833
60834         * lib/exclude.c (exclude_fnmatch): New function.
60835         (excluded_file_name): Call exclude_fnmatch.
60836         * lib/exclude.h (excluded_file_name): New prototype
60837
60838 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60839
60840         * lib/tempname.c (small_open, large_open): New macros.
60841         (__open, __open64) [!_LIBC]: Remove.
60842         (__gen_tempname): Use small_open and large_open instead of __open
60843         and __open64.  This fixes a portability bug on HP-UX 11.11i
60844         reported by Simon Wing-Tang in
60845         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60846
60847 2006-05-24  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60850         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60851         Reported by Thorsten Maerz <torte@netztorte.de> via
60852         Aaron Stone <aaron@serendipity.cx>.
60853
60854 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60857         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60858         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60859         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60860         not really conditional on the cache.
60861         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60862
60863 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60866         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60867         (my_usleep): Don't mishandle maximum value.
60868
60869 2006-05-19  Jim Meyering  <jim@meyering.net>
60870
60871         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60872
60873 2006-05-17  Bruno Haible  <bruno@clisp.org>
60874
60875         Cygwin portability.
60876         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60877
60878 2006-05-17  Bruno Haible  <bruno@clisp.org>
60879
60880         * lib/stdint_.h: Fix recognition of Cygwin.
60881
60882 2006-05-15  Bruno Haible  <bruno@clisp.org>
60883
60884         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60885         on libtool patch by Ralf Wildenhues.
60886
60887 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60890         test for C99 conformance; (bool) 0.5 is an integer constant
60891         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60892         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60893
60894 2006-05-11  Simon Josefsson  <jas@extundo.com>
60895
60896         * m4/xvasprintf.m4: Fix obvious typo.
60897
60898 2006-05-11  Jim Meyering  <jim@meyering.net>
60899
60900         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60901         James Lemley.
60902
60903 2006-05-10  Simon Josefsson  <jas@extundo.com>
60904
60905         * lib/md4.c: Typo fix, update copyright years.
60906         (K1, K2): Don't use L because it turn computations into 64-bit on
60907         64-bit platforms.
60908
60909 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60910
60911         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60912         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60913         unwanted sign propagation, e.g., on hosts with 64-bit int.
60914         There still are some problems with reeelly weird theoretical hosts
60915         (e.g., 33-bit int) but it's not worth worrying about now.
60916         * lib/sha1.c (rol): Likewise.
60917         (K1, K2, K3, K4): Remove unnecessary L suffix.
60918
60919 2006-05-10  Bruno Haible  <bruno@clisp.org>
60920
60921         * lib/des.c: Cast to avoid warnings.
60922
60923 2006-05-09  Bruno Haible  <bruno@clisp.org>
60924
60925         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60926         (Depends-on): Depend also on xsize, stdarg.
60927         (configure.ac): Add gl_XVASPRINTF.
60928
60929 2006-05-09  Bruno Haible  <bruno@clisp.org>
60930
60931         * m4/xvasprintf.m4: New file.
60932
60933 2006-05-09  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60936         (EOVERFLOW): Define fallback value.
60937         (xstrcat): New function.
60938         (xvasprintf): Recognize the special case of a string concatenation.
60939
60940 2006-05-08  Eric Blake  <ebb9@byu.net>
60941
60942         * gnulib-tool (func_version): Base copyright year on CVS date.
60943         (func_emit_copyright_notice): New function.
60944         (func_emit_lib_Makefile_am): Use it.
60945         (func_emit_tests_Makefile_am): Likewise.
60946         (func_import): Likewise.
60947
60948 2006-05-08  Bruno Haible  <bruno@clisp.org>
60949
60950         * modules/stdarg: New file.
60951         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60952
60953 2006-05-08  Bruno Haible  <bruno@clisp.org>
60954
60955         * m4/stdarg.m4: New file, from GNU gettext.
60956
60957 2006-05-08  Bruno Haible  <bruno@clisp.org>
60958
60959         * config/srclist.txt (build-aux/config.rpath): different from latest
60960         release.
60961
60962 2006-05-08  Bruno Haible  <bruno@clisp.org>
60963
60964         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60965
60966 2006-05-05  Jim Meyering  <jim@meyering.net>
60967
60968         * m4/warning.m4: New file, derived from bison's file by the same name.
60969
60970 2006-05-03  Bruno Haible  <bruno@clisp.org>
60971
60972         * lib/stdint_.h: Shorter URL.
60973         * lib/inttypes.h: Likewise.
60974
60975 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60976
60977         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60978
60979 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/verify.h: Document the internals better.  Most of this change
60982         was written by Bruno Haible.
60983
60984 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60985
60986         * doc/verify.texi: New file, partly based on a proposal by
60987         Bruno Haible.
60988
60989 2006-05-02  Bruno Haible  <bruno@clisp.org>
60990
60991         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60992         test from here...
60993         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60994
60995 2006-04-29  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60998         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60999
61000 2006-04-29  Bruno Haible  <bruno@clisp.org>
61001
61002         * gnulib-tool: Make --update option actually work.
61003
61004 2006-04-29  Bruno Haible  <bruno@clisp.org>
61005
61006         * doc/gcd.texi: New file.
61007         * doc/gnulib.texi: Include it.
61008
61009 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         * lib/getdate.y (get_date): When adding relative date, start with the
61012         initial time, not with the result of the first mktime call.
61013
61014 2006-04-25  Bruno Haible  <bruno@clisp.org>
61015
61016         * gnulib-tool (func_import): Output the include directives in three
61017         blocks, sorted separately.
61018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61019
61020 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61021
61022         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61023         to define main with arguments, for C++.  Reported by Eric Blake.
61024         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61025         Prefer 'int main ()' to 'int main (void)', for C++.
61026         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61027         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61028         for 'main', for C99 and C++.
61029
61030 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61031
61032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61033         Don't assume that exit status -1 is valid.
61034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61035         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61036         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61037         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61038         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61039         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61040         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61041         functions can be used without declaring them, or that you can
61042         exit with status -1.
61043         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61044
61045 2006-04-24  Karl Berry  <karl@gnu.org>
61046
61047         * config/srclist.txt (longdouble.m4): sync lost.
61048
61049 2006-04-24  Eric Blake  <ebb9@byu.net>
61050
61051         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61052
61053 2006-04-24  Bruno Haible  <bruno@clisp.org>
61054
61055         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61056         poll() implementation in AIX.
61057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61058
61059 2006-04-24  Bruno Haible  <bruno@clisp.org>
61060
61061         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61062         assigned exactly once.
61063
61064 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61065             Bruno Haible  <bruno@clisp.org>
61066
61067         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61068         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61069         for AM_CPPFLAGS.
61070
61071 2006-04-23  Bruno Haible  <bruno@clisp.org>
61072
61073         * modules/copy-file: Depend on unistd.
61074         * modules/execute: Likewise.
61075         * modules/fatal-signal: Likewise.
61076         * modules/findprog: Likewise.
61077         * modules/mkdtemp : Likewise.
61078         * modules/pipe: Likewise.
61079         * modules/wait-process: Likewise.
61080
61081 2006-04-23  Bruno Haible  <bruno@clisp.org>
61082
61083         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61084         condition was already detected.
61085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61086
61087 2006-04-23  Bruno Haible  <bruno@clisp.org>
61088
61089         * lib/copy-file.c: Include <unistd.h> unconditionally.
61090         * lib/execute.c: Likewise.
61091         * lib/fatal-signal.c: Likewise.
61092         * lib/findprog.c: Likewise.
61093         * lib/mkdtemp.c: Likewise.
61094         * lib/pipe.h: Likewise.
61095         * lib/pipe.c: Likewise.
61096         * lib/wait-process.h: Likewise.
61097
61098 2006-04-23  Bruno Haible  <bruno@clisp.org>
61099
61100         * gnulib-tool (func_usage): Fix --import description. Document
61101         --update.
61102         (func_import): Create temporary file in a temporary directory, if
61103         --dry-run is specified. Silence errors from 'grep' when there are no
61104         m4 files in $m4dir.
61105         (func_create_testdir): Silence errors from 'grep' when there are no
61106         m4 files in $m4dir.
61107         Reported by Karl Berry <karl@freefriends.org>.
61108
61109 2006-04-20  Bruno Haible  <bruno@clisp.org>
61110
61111         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61112         one argument, so that the code will be portable to Autoconf 2.60.
61113         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61115         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61116
61117 2006-04-19  Derek Price  <derek@ximbiot.com>
61118             Eric Blake  <ebb9@byu.net>
61119
61120         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61121         rather than "/full/path.h".  Update comment to match.  Shorten &
61122         generalize m4_translit call via AS_TR_CPP.
61123
61124 2006-04-19  Derek Price  <derek@ximbiot.com>
61125             Eric Blake  <ebb9@byu.net>
61126
61127         * lib/inttypes.h: Correct grammar in comment.
61128
61129 2006-04-18  Derek Price  <derek@ximbiot.com>
61130             Paul Eggert  <eggert@cs.ucla.edu>
61131
61132         * modules/inttypes: New file.
61133         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61134
61135 2006-04-18  Derek Price  <derek@ximbiot.com>
61136             Paul Eggert  <eggert@cs.ucla.edu>
61137
61138         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61139         New files.
61140
61141 2006-04-18  Derek Price  <derek@ximbiot.com>
61142             Paul Eggert  <eggert@cs.ucla.edu>
61143
61144         * lib/inttypes.h: New file.
61145         * lib/strtoimax.c: Assume <inttypes.h>.
61146
61147 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61148
61149         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61150         isn't mounted.  Problem reported by Kir Kolyshkin.
61151
61152 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61155         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61156         Derek R. Price.
61157         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61158         implementation.
61159
61160 2006-04-12  Eric Blake  <ebb9@byu.net>
61161
61162         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61163         is now done automatically by the corresponding Autoconf macro.
61164
61165 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61166
61167         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61168         time_r.h.
61169
61170 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         Merge regex changes from libc, removing some of our
61173         POSIX-conformance changes that were rejected and redoing them in a
61174         less-intrusive way.
61175
61176         * lib/regcomp.c (re_compile_internal, init_dfa):
61177         Length arg is now size_t, not Idx.  All uses changed.
61178         (peek_token): Forward decl now says internal_function.
61179         (__re_error_msgid, __re_error_msgid_idx):
61180         Now static rather than extern with attribute_hidden.
61181         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61182         For some reason libc prefers K&R style defns for external functions.
61183         (regerror) [!defined _LIBC]: Likewise.
61184         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61185         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61186         (build_range_exp, build_collating_symbol):
61187         Use K&R-style defn.
61188         (re_compile_fastmap): Use '\0' to memset, not 0.
61189         (utf8_sb_map): Make the calculations more obvious.
61190         (init_dfa, parse_bracket_exp, build_charclass_op):
61191         Call calloc and cast result, as glibc does.
61192         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61193         (build_range_exp, build_collating_symbol):
61194         Now internal functions.
61195
61196         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61197
61198         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61199         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61200         Don't depend on VMS; depend on __VMS instead, for POSIX
61201         namespace cleanness.
61202         (regoff_t): Define to ssize_t, not long int.
61203
61204         Remove the REG_ macros named below.  Instead, make the old names
61205         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61206         __USE_GNU_REGEX.
61207         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61208         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61209         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61210         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61211         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61212         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61213         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61214         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61215         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61216         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61217         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61218         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61219         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61220         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61221         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61222         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61223         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61224         (REG_NREGS):
61225         Remove.  All uses replaced by the old RE_* names.
61226         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61227         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61228         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61229         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61230         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61231         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61232         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61233         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61234         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61235         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61236         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61237         Don't bother having these macros be independent of each others'
61238         values, since they no longer exist in the POSIX name space.
61239
61240         Rename the following member names back to their old names,
61241         unless !__USE_GNU_REGEX.  All uses changed back.
61242         (buffer): Renamed from re_buffer.
61243         (allocated): Renamed from re_allocated.
61244         (used): Renamed from re_used.
61245         (syntax): Renamed from re_syntax.
61246         (fastmap): Renamed from re_fastmap.
61247         (translate): Renamed from re_translate.
61248         (can_be_null): Renamed from re_can_be_null.
61249         (regs_allocated): Renamed from re_regs_allocated.
61250         (fastmap_accurate): Renamed from re_fastmap_accurate.
61251         (no_sub): Renamed from re_no_sub.
61252         (not_bol): Renamed from re_not_bol.
61253         (not_eol): Renamed from re_not_eol.
61254         (newline_anchor): Renamed from re_newline_anchor.
61255         (num_regs): Renamed from rm_num_regs.
61256         (start): Renamed from rm_start.
61257         (end): Renamed from rm_end.
61258
61259         (free_state): Move up a bit.
61260
61261         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61262         #define to be empty.
61263         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61264         when that is what is intended.
61265         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61266         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61267         (MAX): New macro.
61268         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61269         All uses changed back to re_malloc, etc.  It's now the caller's
61270         responsibility to check for overflow; all callers changed.
61271         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61272         (re_x2nrealloc): Remove.
61273         (free_state): Remove decl.
61274
61275         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61276         (re_set_registers, re_exec):
61277         Use K&R-style defn.
61278
61279         2006-01-31  Roland McGrath  <roland@redhat.com>
61280
61281         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61282         Reported by Mike Frysinger <vapier@gentoo.org>.
61283
61284         2006-01-15  Andreas Jaeger  <aj@suse.de>
61285
61286         [BZ #1950]
61287         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61288         build_wcs_upper_buffer change.
61289         (build_wcs_upper_buffer): Change return type.
61290
61291         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61292
61293         * lib/regex_internal.h: Include <stdint.h> if available.
61294
61295         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61296
61297         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61298
61299         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61300
61301         * lib/regcomp.c: Adjust for changed secondary hash function.
61302
61303         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61304
61305         * lib/regex.h: Pretty printing.
61306         Clean up namespace a bit.
61307
61308         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61309
61310         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61311         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61312
61313         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61314                     Ulrich Drepper  <drepper@redhat.com>
61315
61316         [BZ #1302]
61317         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61318         changed.
61319         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61320
61321         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61322
61323         [BZ #281]
61324         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61325         * lib/regcomp.c: Remove unnecessary uses of
61326         unsigned RE_TRANSLATE_TYPE.
61327         * lib/regex_internal.h: Likewise.
61328         * lib/regex_internal.c: Likewise.
61329         * lib/regexec.c: Likewise.
61330         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61331
61332         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61333
61334         * lib/regexec.c (find_recover_state): Remove unnecessary
61335         initialization.
61336         (transit_state_bkref): Make DFA a const pointer.
61337         (get_subexp): Likewise.
61338         (check_arrival): Likewise.
61339         (update_cur_sifted_state): Likewise.
61340         (re_search_internal): Likewise.
61341         (prune_impossible_nodes): Likewise.
61342         (acquire_init_state_context): Likewise.
61343         (proceed_next_node): Likewise.
61344         (set_regs): Likewise.
61345         (free_fail_stack_return): Likewise.
61346         (check_arrival_expand_ecl): Mark DFA parameter as const.
61347         (check_arrival_expand_ecl_sub): Likewise.
61348         (check_subexp_limits): Likewise.
61349         (sub_epsilon_src_nodes):  Likewise.
61350         (add_epsilon_src_nodes):  Likewise.
61351         (merge_state_array): Likewise.
61352         (update_regs): Likewise.
61353         (build_trtable): Likewise.
61354         (sift_states_backward): Mark MCTX parameter as const.
61355         (build_sifted_states): Likewise.
61356         (update_cur_sifted_state): Likewise.
61357         (sift_states_mkref): Likewise.
61358         (check_arrival_expand_ecl): Mark eclosure as const.
61359         (check_dst_limits_calc_pos_1): Likewise.
61360         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61361         pointer.
61362
61363         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61364
61365         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61366         (transit_state_sb): Likewise.
61367         (transit_state_mb): Likewise.
61368         (sift_states_iter_mb): Likewise.
61369         (check_arrival_add_next_nodes): Likewise.
61370         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61371         [_LIBC] (re_search_2_stub): Use mempcpy.
61372
61373         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61374         mbrtowc for very simple UTF-8 case.
61375
61376         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61377         a pointer-to-const.
61378         (re_acquire_state_context): Likewise.
61379         * lib/regex_internal.h: Adjust prototypes.
61380
61381         * lib/regex.c: Prevent using C++ compilers.
61382
61383         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61384         (re_acquire_state_context): Likewise.
61385
61386 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61387
61388         * modules/regex (Depends-on): Add ssize_t.
61389
61390 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61393         translation table.
61394
61395 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61396
61397         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61398
61399 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61400             Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61403         <sys/types.h> and <inttypes.h>.
61404
61405 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61406
61407         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61408         `__error_t_defined', so argp.h will not typedef the former.
61409
61410 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61411
61412         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61413         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61414         glibc names.  Even if glibc is changed to conform to POSIX, the
61415         traditional names will be available anyway, since regex depends on
61416         the extensions module.  Also, fix a longstanding typo in the
61417         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61418         reported by Emanuele Giaquinta.  Also, change sense of cached
61419         variable, so that the message makes sense.
61420
61421 2006-03-24  Simon Josefsson  <jas@extundo.com>
61422
61423         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61424         including some doc fixes.
61425         (base64_encode_alloc): Fix +1 bug on allocation failures.
61426
61427 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61428
61429         * lib/base64.c (base64_encode): Do not read past end of array with
61430         unsanitized input on systems with CHAR_BIT > 8.
61431
61432 2006-03-24  Eric Blake  <ebb9@byu.net>
61433
61434         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61435
61436 2006-03-22  Karl Berry  <karl@gnu.org>
61437
61438         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61439         * config/srclistvars.sh (COREUTILS): new var.
61440
61441 2006-03-17  Jim Meyering  <jim@meyering.net>
61442
61443         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61444         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61445
61446 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61447
61448         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61449         no longer needs it.  Instead, check that regoff_t is as least
61450         as wide as ptrdiff_t.
61451
61452         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61453         so that our regex.h stays compatible with the installed regex.
61454         This is helpful for installers who configure --without-included-regex.
61455         Problem reported by Emanuele Giaquinta.
61456
61457 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61460         Typedef to long int, not to off_, as POSIX will likely change
61461         in that direction.
61462
61463 2006-03-15  Eric Blake  <ebb9@byu.net>
61464
61465         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61466
61467 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61468
61469         * lib/argp-help.c (validate_uparams): Fix typo
61470         * lib/argp-parse.c (argp_default_options): Consistently begin help
61471         messages with a lowercase letter.
61472
61473 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61474
61475         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61476         overrun buffers and shouldn't be used (much as gets shouldn't be
61477         used).
61478         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61479
61480 2006-03-08  Simon Josefsson  <jas@extundo.com>
61481
61482         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61483         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61484
61485 2006-03-08  Simon Josefsson  <jas@extundo.com>
61486
61487         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61488         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61489
61490 2006-03-08  Simon Josefsson  <jas@extundo.com>
61491
61492         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61493         signal that configure disabled the device.
61494
61495 2006-03-08  Simon Josefsson  <jas@extundo.com>
61496
61497         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61498         languages.
61499
61500 2006-03-07  Simon Josefsson  <jas@extundo.com>
61501
61502         * modules/getopt (Depends-on): Add unistd.
61503
61504         * modules/unistd: New file.
61505
61506 2006-03-07  Simon Josefsson  <jas@extundo.com>
61507
61508         * modules/gc-random: New file.
61509
61510 2006-03-07  Simon Josefsson  <jas@extundo.com>
61511
61512         * m4/unistd_h.m4: New file.
61513
61514 2006-03-07  Simon Josefsson  <jas@extundo.com>
61515
61516         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61517         test to be side-effect free by storing the result in the cache
61518         variable gl_cv_lib_readline, and moving the assignment of
61519         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61520         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61521
61522 2006-03-07  Simon Josefsson  <jas@extundo.com>
61523
61524         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61525         error on missing devices (the functions will return an error).
61526
61527         * m4/gc.m4: Move random stuff to gc-random.m4
61528
61529 2006-03-07  Simon Josefsson  <jas@extundo.com>
61530
61531         * lib/unistd_.h: New file.
61532
61533 2006-03-07  Simon Josefsson  <jas@extundo.com>
61534
61535         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61536
61537 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61540         Problem reported by Juan Manuel Guerrero.
61541
61542 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61543
61544         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61545         the unistd module.
61546         * lib/getlogin_r.c: Likewise.
61547         * lib/getlogin_r.h: Likewise.
61548         * lib/glob.c: Likewise.
61549         * lib/pagealign_alloc.c: Likewise.
61550         * lib/unistd_.h: Remove; no longer needed.
61551
61552 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61555         Add unistd.
61556         * modules/c-stack (Depends-on): Add unistd.
61557         * modules/getlogin_r: Likewise.
61558         * modules/glob: Likewise.
61559         * modules/pagealign_alloc: Likewise.
61560         * modules/unistd (Files): Remove lib/unistd_.h.
61561         (EXTRA_DIST): Remove.
61562         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61563         need unistd_.h.
61564         (MOSTLYCLEANFILES): Remove unistd.h-t.
61565
61566 2006-03-03  Simon Josefsson  <jas@extundo.com>
61567
61568         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61569
61570 2006-03-03  Simon Josefsson  <jas@extundo.com>
61571
61572         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61573         libidn and bison.
61574
61575 2006-03-03  Simon Josefsson  <jas@extundo.com>
61576
61577         * build-aux/maint.mk: Add indent target.
61578
61579 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61580
61581         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61582         our replacement poll.h in any case, to avoid a differing
61583         declaration from a system header.  Seen on AIX.
61584
61585 2006-03-01  Simon Josefsson  <jas@extundo.com>
61586
61587         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61588         <kasal@ucw.cz>.
61589
61590 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         * modules/gettime (Depends-on): Add extensions module.
61593         * modules/nanosleep (Depends-on): Likewise.
61594         * modules/settime (Depends-on): Likewise.
61595
61596 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61599         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61600         pedantically.
61601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61602         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61603
61604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61605         not "==".  Reported by Ralf Wildenhues.
61606
61607 2006-03-01  Karl Berry  <karl@gnu.org>
61608
61609         * doc/Copyright/request-*: new files, synced from gnuorg.
61610
61611 2006-03-01  Karl Berry  <karl@gnu.org>
61612
61613         * config/srclist.txt (Copyright/*): new entries.
61614
61615 2006-02-28  Simon Josefsson  <jas@extundo.com>
61616
61617         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61618
61619 2006-02-27  Simon Josefsson  <jas@extundo.com>
61620
61621         * lib/base64.h: Indent #define's.  From Jim Meyering
61622         <jim@meyering.net>.
61623
61624 2006-02-27  Jim Meyering  <jim@meyering.net>
61625
61626         Revert the change of 2006-02-24, so these files can continue
61627         to be sync'd from gettext.
61628         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61629         of `config.h'.
61630
61631 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61632
61633         * modules/intprops: New file.
61634         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61635         Add intprops.
61636         * modules/getloadavg (Files): Remove lib/intprops.h.
61637         (Depends-on): Add intprops.
61638         * modules/human: Likewise.
61639         * modules/inttostr: Likewise.
61640         * modules/openat: Likewise.
61641         * modules/sig2str: Likewise.
61642         * modules/userspec: Likewise.
61643         * modules/utimecmp: Likewise.
61644         * modules/xnanosleep: Likewise.
61645         * modules/xstrtol: Likewise.
61646
61647 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61648
61649         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61650         * modules/lock-tests (TESTS): Use $(EXEEXT).
61651         * modules/tls-tests: Likewise.
61652         * modules/argp-tests: Likewise.
61653         (check_PROGRAMS): New var, replacing...
61654         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61655
61656 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61657
61658         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61659         `config.h'.
61660
61661 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61662
61663         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61664
61665 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61666
61667         Sync from coreutils.
61668         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61669         gl_CHDIR_SAFER.
61670
61671 2006-02-22  Jim Meyering  <jim@meyering.net>
61672
61673         Sync from coreutils.
61674         * m4/chdir-safer.m4: New file.
61675
61676 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61677
61678         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61679         AT_FDCWD exceeds INT_MAX.
61680         * lib/openat.h (AT_FDCWD): Likewise.
61681
61682 2006-02-17  Eric Blake  <address@hidden>
61683
61684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61685
61686 2006-02-16  Simon Josefsson  <jas@extundo.com>
61687
61688         * modules/getaddrinfo (Depends-on): Add sys_socket.
61689
61690 2006-02-15  Simon Josefsson  <jas@extundo.com>
61691
61692         * build-aux/maint.mk: Add dsyntax-check rule.
61693
61694 2006-02-15  Eric Blake  <ebb9@byu.net>
61695
61696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61697         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61698         'present but cannot compile' warnings on cygwin.
61699         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61700         use ws2tcpip.h if sys/socket.h works.
61701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61702         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61703
61704 2006-02-14  Simon Josefsson  <jas@extundo.com>
61705
61706         * modules/maintainer-makefile (Files): Rename.
61707
61708         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61709         and (the local) Makefile.cfg to maint-cfg.mk.
61710
61711         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61712         to the latter.
61713
61714         * modules/maintainer-makefile: New module.
61715
61716         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61717         severaly stripped to make it possible to build it up from scratch
61718         with reliable tests.
61719
61720         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61721         fixes to permit overriding the default actions when configure and
61722         makefile are not available.
61723
61724 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         Sync from coreutils.
61727         * modules/lstat (Depends-on): Don't depend on xalloc.
61728         (License): Change from GPL to LGPL, since this is now simply a
61729         replacement for a libc function.
61730
61731 2006-02-14  Jim Meyering  <jim@meyering.net>
61732
61733         Sync from coreutils.
61734
61735         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61736         failure on deficient systems, and simplify gnulib lgpl dependencies.
61737         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61738         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61739
61740         * lib/xalloc-die.c: Remove unused definition of N_.
61741
61742 2006-02-14  Jim Meyering  <jim@meyering.net>
61743
61744         Sync from coreutils.
61745         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61746         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61747         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61748         double-quote uses of that variable, to accommodate the rare case in
61749         which getmntent is available in none of the libraries checked.  This
61750         happens at least on FreeBSD 5.0.
61751
61752 2006-02-13  Simon Josefsson  <jas@extundo.com>
61753
61754         * gnulib-tool (Usage): Fix --import, from
61755         karl@freefriends.org (Karl Berry).
61756
61757 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61758
61759         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61760
61761 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61762
61763         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61764         "autoupdate" on 2005-12-12.
61765
61766 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61767
61768         * modules/closeout (Depends-on): Remove atexit.
61769
61770 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61771
61772         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61773         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61774
61775 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61776
61777         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61778         __EXTENSIONS__ if this causes compilation to fail.  Problem
61779         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61780         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61781
61782 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61783
61784         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61785         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61787         All uses changed.
61788
61789 2006-01-26  Simon Josefsson  <jas@extundo.com>
61790
61791         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61792         prototype is visible on mingw32.
61793
61794         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61795         for mingw32.
61796
61797         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61798         mingw32).
61799
61800 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61801
61802         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61803         attempt to open for write; this always fails, at least on POSIX
61804         hosts.  This reinstates the 2006-01-09 change, which was
61805         inadvertently removed.
61806
61807 2006-01-26  Bruno Haible  <bruno@clisp.org>
61808
61809         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61810         Reported by Paul Eggert.
61811
61812 2006-01-26  Bruno Haible  <bruno@clisp.org>
61813             Paul Eggert  <eggert@cs.ucla.edu>
61814
61815         * lib/stdbool_.h (_Bool)
61816         [(! (defined __cplusplus || defined __BEOS__)
61817           && !defined __GNUC__
61818           && !(defined __HP_cc || defined __xlc__
61819                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61820                || defined __sgi))]:
61821         #define to signed char in these cases too; this simplifies
61822         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61823         etc., separately) and makes it more conservative.
61824
61825 2006-01-25  Simon Josefsson  <jas@extundo.com>
61826
61827         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61828         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61829         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61830
61831 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61832
61833         * lib/argp-namefrob.h: Bugfix. Remove stray #
61834
61835 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61838         so that we test the test.
61839         Check for yet another HP-UX cc bug involving *bool |= bool.
61840
61841 2006-01-25  Karl Berry  <karl@gnu.org>
61842
61843         * config/srclist.txt (vasnprintf.c): sync lost.
61844
61845 2006-01-25  Jim Meyering  <jim@meyering.net>
61846
61847         Sync from the stable (b5) branch of coreutils:
61848
61849         * lib/fts.c (fts_children): Don't let close() clobber errno from
61850         failed fchdir().
61851
61852         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61853         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61854         a dangling symlink.  That can also happen at least for ELOOP.
61855         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61856         FYI, this bug predates the inclusion of fts.c in coreutils.
61857
61858         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61859         in their own block, so pre-c99 compilers don't object.
61860
61861         Avoid the double-free (first in fts_read, second in fts_close) that
61862         would occur when an `active' directory is made inaccessible (e.g.,
61863         via chmod a-x) during a traversal.
61864         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61865         before returning.  Reproduce this failure by
61866         mkdir -p a/b; cd a; chmod a-x . b
61867         Reported by Stavros Passas.
61868
61869 2006-01-25  Jim Meyering  <jim@meyering.net>
61870
61871         * lib/fileblocks.c: Remove more useless parentheses.
61872         * lib/readutmp.h: Likewise.
61873
61874 2006-01-25  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61877         warnings.
61878         Reported by Paul Eggert.
61879
61880 2006-01-25  Bruno Haible  <bruno@clisp.org>
61881
61882         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61883         rid of a trap command. For Solaris sh.
61884         Reported by Mark D. Baushke <mdb@gnu.org>.
61885
61886 2006-01-24  Simon Josefsson  <jas@extundo.com>
61887
61888         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61889         Bruno.
61890
61891 2006-01-24  Karl Berry  <karl@gnu.org>
61892
61893         * config/srclist.txt (argp-namefrob.h): sync lost.
61894
61895 2006-01-24  Jim Meyering  <jim@meyering.net>
61896
61897         * modules/openat (Files): Add lib/intprops.h.
61898         From Mark D. Baushke.
61899
61900 2006-01-24  Jim Meyering  <jim@meyering.net>
61901
61902         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61903         Reported by Mark D. Baushke.
61904
61905 2006-01-24  Jim Meyering  <jim@meyering.net>
61906
61907         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61908
61909 2006-01-24  Bruno Haible  <bruno@clisp.org>
61910
61911         * modules/strnlen (Maintainer): Change from glibc to all.
61912
61913 2006-01-24  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61916         Patch by Paul Eggert.
61917
61918 2006-01-24  Bruno Haible  <bruno@clisp.org>
61919
61920         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61921         already has it.
61922         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61923         2005-11-26.
61924
61925         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61926         'signed char' to avoid problems with the built-in _Bool type.
61927         Reported by Paul Eggert on 2005-11-26.
61928
61929 2006-01-24  Bruno Haible  <bruno@clisp.org>
61930
61931         * gnulib-tool (func_import): Avoid constructing complicated sed
61932         expressions inside backquote.
61933         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61934
61935 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61936
61937         These changes imported from libc.
61938         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61939         test and two separate function calls.
61940         * lib/strndup.c (__strndup): Add libc_hidden_def.
61941
61942 2006-01-23  Simon Josefsson  <jas@extundo.com>
61943
61944         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61945         Remove the test_*_SOURCES variable: automake infers it by default.
61946         * modules/tls-tests: Likewise.
61947
61948 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61949
61950         Work around porting bugs reported by Dieter in
61951         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61952         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61953         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61954         Include "getopt.h" first, to check interface.
61955         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61956         !HAVE_DECL_GETENV.
61957         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61958         (__strndup): Revert to K&R-style function dfns, the glibc style.
61959         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61960         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61961         Include strnlen.h first, to get prototype properly.
61962         (strnlen): Renamed from __strnlen.
61963         Remove weak alias.
61964
61965 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61968
61969 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         * config/srclist.txt: Adjust to reflect glibc reorganization.
61972         This affects only comments.
61973
61974 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61975
61976          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61977          Reported by Bruce Korb <bkorb@gnu.org>.
61978
61979 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61980
61981         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61982         to pacify gcc -Wswitch-default.
61983
61984 2006-01-22  Bruno Haible  <bruno@clisp.org>
61985
61986         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61987         temporary buffer for sprintf, take into account the precision also
61988         for 'd', 'i', 'u', 'o', 'x', 'X'.
61989
61990 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61991
61992         * modules/argp-tests: New module
61993         * tests/test-argp.c: New file
61994         * tests/test-argp-2.sh: New file
61995
61996 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61997
61998         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61999         (__argp_base_name): Removed
62000         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62001         typo.
62002         (__argp_base_name): Provide macro definition or extern declaration
62003         depending on the configuration
62004
62005 2006-01-20  Simon Josefsson  <jas@extundo.com>
62006
62007         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62008
62009 2006-01-20  Simon Josefsson  <jas@extundo.com>
62010
62011         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62012
62013 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62016         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62017         Suggested by Bruno Haible.
62018
62019 2006-01-20  Karl Berry  <karl@gnu.org>
62020
62021         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62022         until changes propagate, I guess.
62023
62024 2006-01-19  Simon Josefsson  <jas@extundo.com>
62025
62026         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62027
62028 2006-01-19  Simon Josefsson  <jas@extundo.com>
62029
62030         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62031
62032 2006-01-19  Simon Josefsson  <jas@extundo.com>
62033
62034         * gnulib-tool: Set check_PROGRAMS.
62035
62036         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62037         modules/des-tests, modules/gc-arcfour-tests,
62038         modules/gc-arctwo-tests, modules/gc-des-tests,
62039         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62040         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62041         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62042         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62043         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62044         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62045         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62046         test_*_SOURCES.
62047
62048 2006-01-18  Simon Josefsson  <jas@extundo.com>
62049
62050         * modules/socklen (Depends-on): Depend on sys_socket.
62051
62052 2006-01-18  Simon Josefsson  <jas@extundo.com>
62053
62054         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62055         modules/des-tests, modules/gc-arcfour-tests,
62056         modules/gc-arctwo-tests, modules/gc-des-tests,
62057         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62058         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62059         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62060         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62061         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62062         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62063         $(EXEEXT) to automake TESTS variable, for mingw32.
62064
62065 2006-01-17  Simon Josefsson  <jas@extundo.com>
62066
62067         * modules/socklen (Include): Need sys/socket.h.
62068
62069 2006-01-17  Bruno Haible  <bruno@clisp.org>
62070
62071         * modules/ssize_t (Include): Add <sys/types.h>.
62072
62073 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62074
62075         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62076         it's not portable and it doesn't work with cross-compiles.
62077         Problem reported by Bruno Haible.  Fix missing-$ typo in
62078         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62079         -zignore from being used with Sun's C compiler.
62080
62081 2006-01-12  Simon Josefsson  <jas@extundo.com>
62082
62083         * lib/base64.c: Fix warning, reported by Bruno Haible
62084         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62085
62086 2006-01-12  Bruno Haible  <bruno@clisp.org>
62087
62088         * modules/ldd: New file.
62089         * build-aux/ldd.sh.in: New file.
62090         * MODULES.html.sh (Support for building libraries and executables): Add
62091         ldd.
62092
62093 2006-01-12  Bruno Haible  <bruno@clisp.org>
62094
62095         * m4/ldd.m4: New file.
62096
62097 2006-01-12  Bruno Haible  <bruno@clisp.org>
62098
62099         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62100         endless loop while replacing $auxdir with build-aux.
62101
62102 2006-01-11  Simon Josefsson  <jas@extundo.com>
62103
62104         * lib/stdint_.h (SIZE_MAX): Add missing (.
62105
62106 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62107
62108         Sync from coreutils.
62109         * lib/md5.c: Fix commentary typos.
62110         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62111         * lib/md5.h (__attribute__): Remove; unused.
62112         * lib/sha1.c: Fix commentary to match md5 better.
62113         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62114         so that we don't need to worry about alignment.  All uses changed.
62115         This merges the 2005-10-28 md5 change into sha1.
62116
62117 2006-01-11  Jim Meyering  <jim@meyering.net>
62118
62119         Sync from coreutils.
62120         * lib/md5.c (OP): Fix spacing.
62121
62122 2006-01-11  Bruno Haible  <bruno@clisp.org>
62123
62124         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62125         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62126         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62127
62128 2006-01-11  Bruno Haible  <bruno@clisp.org>
62129
62130         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62131         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62132         the "early" section as well.
62133
62134 2006-01-11  Bruno Haible  <bruno@clisp.org>
62135
62136         Avoid "ar: no archive members specified" error on MacOS X.
62137         * gnulib-tool (func_modules_add_dummy): New function.
62138         (func_import, func_create_testdir): Invoke it.
62139
62140 2006-01-11  Bruno Haible  <bruno@clisp.org>
62141
62142         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62143         with $auxdir in AC_CONFIG_FILES statements.
62144
62145 2006-01-11  Bruno Haible  <bruno@clisp.org>
62146
62147         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62148         Initialize also noinst_HEADERS to empty.
62149
62150 2006-01-11  Bruno Haible  <bruno@clisp.org>
62151
62152         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62153         variables.
62154         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62155         autoreconf.
62156
62157 2006-01-11  Bruno Haible  <bruno@clisp.org>
62158
62159         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62160         overridable by the user.
62161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62162
62163 2006-01-10  Simon Josefsson  <jas@extundo.com>
62164
62165         * modules/sys_socket: New file.
62166
62167 2006-01-10  Simon Josefsson  <jas@extundo.com>
62168
62169         * m4/sys_socket_h.m4: New file.
62170
62171 2006-01-10  Simon Josefsson  <jas@extundo.com>
62172
62173         * lib/socket_.h: New file.
62174
62175 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62176
62177         * modules/readutmp (Maintainer): Add myself.
62178
62179 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62182         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62183         People who are still concerned with buggy memcmp implementations
62184         can invoke gl_FUNC_MEMCMP themselves.
62185
62186 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62187
62188         * lib/regex_internal.h (BITSET_WORD_BITS):
62189         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62190         preprocessor mishandles large unsigned values as if they were signed.
62191         Problem reported by Claudio Fontana in
62192         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62193
62194 2006-01-10  Jim Meyering  <jim@meyering.net>
62195
62196         Avoid the double-free (first in fts_read, second in fts_close) that
62197         would occur when an `active' directory is made inaccessible (e.g.,
62198         via chmod a-x) during a traversal.
62199         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62200         before returning.  Reproduce this failure by
62201         mkdir -p a/b; cd a; chmod a-x . b
62202         Reported by Stavros Passas.
62203
62204         Sync from coreutils.
62205         * lib/sha1.c: Tweak grammar in a comment.
62206
62207 2006-01-10  Jim Meyering  <jim@meyering.net>
62208
62209         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62210         Patch by Joerg Sonnenberger.
62211
62212 2006-01-10  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/readutmp: Depend on module free.
62215         * modules/strtok_r: Depend on module restrict.
62216
62217 2006-01-10  Bruno Haible  <bruno@clisp.org>
62218
62219         * modules/gettext (configure.ac): Add an invocation of
62220         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62221
62222 2006-01-10  Bruno Haible  <bruno@clisp.org>
62223
62224         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62225         Reported by Werner Lemberg <wl@gnu.org>.
62226
62227 2006-01-10  Bruno Haible  <bruno@clisp.org>
62228
62229         * lib/localcharset.c: Update from GNU gettext.
62230
62231 2006-01-10  Bruno Haible  <bruno@clisp.org>
62232
62233         * lib/argp.h (__const): Remove macro. Use const instead.
62234         * lib/argp-fmtstream.h (__const): Likewise.
62235         * lib/glob_.h (__const): Remove macro.
62236         * lib/glob-libc.h: Use const instead of __const.
62237
62238 2006-01-10  Bruno Haible  <bruno@clisp.org>
62239
62240         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62241         variable.
62242         Needed to avoid an automake error regarding the 'gettext' module.
62243
62244 2006-01-09  Simon Josefsson  <jas@extundo.com>
62245
62246         * modules/inet_ntop (Depends-on): Add restrict.
62247
62248 2006-01-09  Simon Josefsson  <jas@extundo.com>
62249
62250         * modules/gc-rijndael-tests (License): Put under LGPL.
62251
62252         * modules/gc-des-tests (License): Likewise.
62253
62254         * modules/gc-arcfour-tests (License): Likewise.
62255
62256         * modules/gc-arctwo-tests (License): Likewise.
62257
62258         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62259
62260         * modules/gc-hmac-sha1-tests (Files): Likewise.
62261
62262         * modules/gc-hmac-md5-tests (License): Likewise.
62263
62264         * modules/gc-sha1-tests (License): Likewise.
62265
62266         * modules/gc-md5-tests (License): Likewise.
62267
62268         * modules/gc-md4-tests (License): Likewise.
62269
62270         * modules/gc-md2-tests (License): Likewise.
62271
62272         * modules/gc-tests (License): Likewise.
62273
62274         * modules/des-tests (License): Likewise.
62275
62276         * modules/md4-tests (License): Likewise.
62277
62278         * modules/md2-tests (License): Likewise.
62279
62280 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62281
62282         Sync from coreutils:
62283
62284         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62285         * modules/lib-ignore: New file.
62286         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62287         chdir-safer.m4, lchmod.m4.
62288         * modules/openat: Add mkdirat.c, openat-priv.h.
62289
62290 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62291
62292         Sync from coreutils.
62293         * m4/lib-ignore.m4: New file.
62294         * m4/lchmod.m4: New file.
62295
62296 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62297
62298         Sync from coreutils.
62299         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62300         for write access: POSIX says that must fail.
62301         * lib/fts.c (diropen): Likewise.
62302         * lib/save-cwd.c (save_cwd): Likewise.
62303         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62304         well, for minor improvements on hosts that lack O_DIRECTORY.
62305         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62306         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62307         Fall back on chown if open failed with EACCES.
62308
62309         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62310         Report an error at compile-time if only a 1-second nominal clock
62311         resolution is found.
62312
62313         * lib/lchmod.h: New file.
62314         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62315         (make_dir_parents): Use lchown rather than chown, and
62316         lchmod rather than chmod.
62317
62318         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62319         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62320         "proc" reported by n0dalus.
62321
62322         * lib/mountlist.c: Include <limits.h>.
62323         (dev_from_mount_options)
62324         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62325         New function.  It no longer assumes "dev=" has the System V meaning
62326         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62327         (read_file_system_list)
62328         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62329         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62330         dev= in that case.
62331
62332         * lib/posixtm.h (PDS_PRE_2000): New macro.
62333         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62334         allow_century.  All usages changed.  Reject dates outside the range
62335         1969-1999 if PDS_PRE_2000 is used.
62336
62337 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         Sync from coreutils.
62340         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62341         (Time of day items): Mention the possibility of leap seconds.
62342         Problem reported by Dr. David Alan Gilbert.
62343
62344 2006-01-09  Jim Meyering  <jim@meyering.net>
62345
62346         Sync from coreutils.
62347
62348         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62349
62350         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62351
62352         * lib/modechange.c (mode_compile): Reject an invalid mode string
62353         that starts with an octal digit.  From Andreas Gruenbacher.
62354
62355         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62356         and dup to open_safer and dup_safer, respectively.
62357         (openat_permissive): Fix typo in comment.
62358
62359         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62360         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62361         (_): Remove; no longer needed.
62362         (openat): Renamed from rpl_openat; no need for rpl_openat
62363         since openat.h renames openat for us.
62364         Replace most of the body with a call to openat_permissive,
62365         to avoid duplicate code.
62366         Port to (probably hypothetical) environments were mode_t is
62367         wider than int.
62368         (openat_permissive): Require mode arg, so that we can check
62369         types better.  Put it just after flags.  Change cwd failure
62370         indicator from pointer-to-bool to pointer-to-errno-value.
62371         All callers changed.
62372         Invoke openat_save_fail and/or openat_restore_fail if
62373         cwd_errno is null, so that openat can call us.
62374         (openat_permissive, fdopendir, fstatat, unlinkat):
62375         Simplify errno handling to avoid some duplicate code,
62376         as it's OK to set errno on success.
62377         * lib/openat.h: Revamp code so that function macros depend on
62378         __OPENAT_PREFIX only, not also on AT_FDCWD.
62379         (openat_ro): Remove.  Caller changed to use openat_permissive.
62380         (openat_permissive): Now a macro, if not a function.
62381         (openat_restore_fail, openat_save_fail): Now always functions,
62382         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62383
62384         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62385         and openat.c.
62386         * lib/mkdirat.c: Include openat-priv.h.
62387         Remove definitions of macros defined therein.
62388         * lib/openat.c: Likewise.
62389
62390         * lib/mkdirat.c (mkdirat): New file and function.
62391         * lib/openat.h (mkdirat): Declare.
62392
62393         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62394
62395         * lib/openat.h (openat_permissive): Declare.
62396         (openat_ro): Define.
62397
62398         * lib/openat.c (EXPECTED_ERRNO): New macro.
62399         (openat_permissive): New function -- used in remove.c rewrite.
62400         (all functions): Set errno just before returning, only if there
62401         was an actual failure.
62402         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62403
62404         Emulate openat-family functions using Linux's procfs, if possible.
62405         Idea and some code based on Ulrich Drepper's glibc changes.
62406
62407         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62408         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62409         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62410         before falling back on save_cwd and restore_cwd.
62411         (fdopendir, fstatat, unlinkat): Likewise.
62412
62413         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62414         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62415
62416         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62417         as second argument to va_arg.  Otherwise, some versions of gcc
62418         warn that `if this code is reached, the program will abort'.
62419
62420 2006-01-09  Jim Meyering  <jim@meyering.net>
62421
62422         Sync from coreutils.
62423         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62424         Require openat-priv.h.
62425
62426 2006-01-09  Bruno Haible  <bruno@clisp.org>
62427
62428         * modules/strnlen (Include): Use strnlen.h.
62429
62430 2006-01-09  Bruno Haible  <bruno@clisp.org>
62431
62432         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62433
62434 2006-01-09  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/sysexit_.h (EX_OK): New macro.
62437         Suggested by Martin Lambers <marlam@marlam.de>.
62438
62439 2006-01-09  Bruno Haible  <bruno@clisp.org>
62440
62441         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62442         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62443
62444 2006-01-09  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62447         numbers.
62448
62449 2006-01-09  Bruno Haible  <bruno@clisp.org>
62450
62451         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62452         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62453         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62454         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62455
62456 2006-01-09  Bruno Haible  <bruno@clisp.org>
62457
62458         * build-aux/javacomp.sh.in: New file, moved from lib/.
62459         * modules/javacomp-script (Files): Update.
62460         (configure.ac): Add AC_CONFIG_FILES invocation.
62461         (EXTRA_DIST): Remove variable.
62462
62463         * build-aux/javaexec.sh.in: New file, moved from lib/.
62464         * modules/javaexec (Files): Update.
62465         (configure.ac): Add AC_CONFIG_FILES invocation.
62466         (EXTRA_DIST): Remove javaexec.sh.in.
62467
62468         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62469         * modules/csharpcomp-script (Files): Update.
62470         (configure.ac): Add AC_CONFIG_FILES invocation.
62471         (EXTRA_DIST): Remove variable.
62472
62473         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62474         * modules/csharpexec (Files): Update.
62475         (configure.ac): Add AC_CONFIG_FILES invocation.
62476         (EXTRA_DIST): Remove csharpexec.sh.in.
62477
62478 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62479
62480         Sync from coreutils.
62481
62482         Add POSIX ACL support
62483         * lib/acl.h (copy_acl, set_acl): Add declarations.
62484         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62485         systems other than Linux.
62486         (chmod_or_fchmod): New function: use fchmod when possible,
62487         and chmod otherwise.
62488         (file_has_acl): Add a POSIX ACL implementation, with a
62489         Linux-specific subcase.
62490         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62491         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62492         acls are unsupported.
62493         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62494         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62495         are unsupported.
62496
62497 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62498
62499         Sync from coreutils.
62500         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62501
62502 2006-01-07  Bruno Haible  <bruno@clisp.org>
62503
62504         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62505         gl_EARLY.
62506
62507 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62508
62509         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62510         Problem reported for Mingw by Mark Junker.
62511
62512 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62513
62514         * README: Gnulib normally doesn't generate a tarball.
62515
62516 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62519         long int, not int, for nanosecond counts, so that people who are
62520         used to POSIX struct timespec won't be surprised.  Reported by Jim
62521         Meyering.
62522
62523 2005-12-28  Bruno Haible  <bruno@clisp.org>
62524
62525         * build-aux/config.rpath: Update from GNU gettext.
62526
62527 2005-12-16  Jim Meyering  <jim@meyering.net>
62528
62529         * modules/fprintftime: New module.
62530         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62531
62532 2005-12-16  Jim Meyering  <jim@meyering.net>
62533
62534         * m4/fprintftime.m4: New file.
62535
62536 2005-12-16  Jim Meyering  <jim@meyering.net>
62537
62538         * lib/fprintftime.c, lib/fprintftime.h: New files.
62539
62540 2005-12-15  Simon Josefsson  <jas@extundo.com>
62541
62542         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62543         new m4/socklen.m4.
62544
62545 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62546
62547         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62548         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62549
62550 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62551
62552         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62553         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62554         struct uparams is valid. Fall back to the default values if it is
62555         not.
62556
62557 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62558
62559         * modules/argp (Files): Add argp-pin.c
62560         (Depends-on): dirname
62561         (lib_SOURCES): Add argp-pin.c
62562
62563 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62564
62565         * m4/argp.m4:  Check if program_invocation_name and
62566         program_invocation_short_name are declared and define appropriate
62567         macros if they are not.
62568
62569 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62570
62571         * lib/argp-help.c (__argp_base_name): New function
62572         (__argp_short_program_name): Rewrite using __argp_base_name
62573         * lib/argp-namefrob.h: Define program_invocation_name and
62574         program_invocation_short_name if requested
62575         (__argp_base_name): Add prototype
62576         * lib/argp-parse.c (argp_def): Use gettext wrappers
62577         (argp_default_parser): Use __argp_base_name
62578         * lib/argp-pin.c: New file. Defines program_invocation_name and
62579         program_invocation_short_name on systems that lack them.
62580
62581 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62584         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62585         porting problem reported by Georg Schwarz in
62586         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62587
62588 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62591         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62592         porting problem reported by Georg Schwarz in
62593         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62594
62595 2005-12-05  Bruno Haible  <bruno@clisp.org>
62596
62597         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62598         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62599         Reported by Mark Junker <mjscod@gmx.de>.
62600
62601 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62604         Use implementation from Albert Chin, with some
62605         comments/corrections by Stepan Kasal and myself.
62606
62607 2005-12-02  Bruno Haible  <bruno@clisp.org>
62608
62609         * gnulib-tool (func_import): Accept GPLed build tool modules when
62610         --lgpl is given.
62611         * modules/csharpcomp-script: New file.
62612         * modules/csharpcomp: Depend on it.
62613         * modules/javacomp-script: New file.
62614         * modules/javacomp: Depend on it.
62615         Suggested by Simon Josefsson.
62616
62617 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62618
62619         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62620         statement, to work around an HP-UX 10.20 compiler bug reported by
62621         Peter O'Gorman.
62622
62623 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         * modules/savedir (Depends-on): Add openat.
62626
62627 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62630         (uintmax_t) [defined uintmax_t]: Do not declare.
62631         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62632         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62633         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62634         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62635         sake of portability to weird hosts that C allows (though we don't
62636         know of any practical examples).
62637
62638         * lib/savedir.h (fdsavedir): New decl.
62639         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62640         contains most of the former guts of savedir.
62641         (savedir): Use savedirstream.
62642         Include "openat.h".
62643
62644 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62645
62646         * modules/obstack (Files): Add m4/ulonglong.m4.
62647         Problem reported by Davide Angelocola.
62648
62649 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62650
62651         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62652         coreutils no longer futzes with rounding modes.
62653
62654 2005-11-14  Jim Meyering  <jim@meyering.net>
62655
62656         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62657         replacement of mkstemp.
62658
62659 2005-11-10  Simon Josefsson  <jas@extundo.com>
62660
62661         * lib/readline.c: Remove EOL.
62662
62663 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62664
62665         * modules/gethrxtime (Depends-on): Add gettime.
62666
62667 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62668
62669         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62670         or gettimeofday; no longer needed.
62671
62672 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62675         time business.
62676         (gethrxtime) [! (HAVE_NANOUPTIME
62677         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62678         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62679         our own approximation.
62680
62681 2005-11-08  Eric Blake  <ebb9@byu.net>
62682
62683         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62684
62685 2005-11-08  Eric Blake  <ebb9@byu.net>
62686
62687         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62688
62689 2005-11-04  Bruno Haible  <bruno@clisp.org>
62690
62691         * gnulib-tool: Implement --update mode.
62692
62693 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62694
62695         Fix porting problem reported by Theodoros V. Kalamatianos.
62696         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62697         Don't assume that futimes failing means we must fail.
62698
62699 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62702         variables to suggest the intended function of the PATH_MAX check.
62703
62704 2005-10-30  Kean Johnston  <jkj@sco.com>
62705
62706         Trivial changes to support SCO systems.
62707         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62708         as PATH_MAX.
62709         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62710         where __ptr is null when no I/O is pending.
62711
62712 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62713
62714         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62715         leave errno alone.  Problem reported by Dmitry V. Levin.
62716
62717 2005-10-28  Simon Josefsson  <jas@extundo.com>
62718
62719         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62720         Test more.
62721
62722         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62723
62724         * modules/md2, modules/md2-tests: New files.
62725
62726 2005-10-28  Simon Josefsson  <jas@extundo.com>
62727
62728         * m4/inet_ntop.m4: More tests.
62729
62730         * m4/gc-md2.m4, md2.m4: New file.
62731
62732 2005-10-28  Simon Josefsson  <jas@extundo.com>
62733
62734         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62735         "restrict" keywords, as per POSIX.  Protect the function
62736         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62737         Don't use K&R prototypes.  Check the sprintf return values.
62738         Re-define EAFNOSUPPORT if not present.  Indent.
62739
62740         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62741         suggested by Bruno Haible <bruno@clisp.org>.
62742
62743         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62744
62745         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62746
62747         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62748         libgcrypt).
62749
62750         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62751
62752         * lib/md2.h, lib/md2.c: New files.
62753
62754 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62755
62756         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62757         errno alone.  Problem reported by Frederic Jolliton.
62758
62759 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62760
62761         * modules/verify (License): Change from GPL to LGPL.  This is a
62762         tiny module and there are apparently near-equivalents that are
62763         under the BSD license.
62764
62765 2005-10-24  Simon Josefsson  <jas@extundo.com>
62766
62767         * modules/sha1: Relicense to LGPL.
62768
62769 2005-10-24  Simon Josefsson  <jas@extundo.com>
62770
62771         * lib/md4.h: Shrink buffer size, now that we changed the type.
62772
62773 2005-10-23  Simon Josefsson  <jas@extundo.com>
62774
62775         * gnulib-tool (func_import): Fix --tests-base.
62776
62777 2005-10-22  Simon Josefsson  <jas@extundo.com>
62778
62779         * modules/arcfour (Depends-on): Need stdint.
62780
62781 2005-10-22  Simon Josefsson  <jas@extundo.com>
62782
62783         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62784         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62785
62786 2005-10-22  Simon Josefsson  <jas@extundo.com>
62787
62788         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62789         suggested by Bruno Haible <bruno@clisp.org>.
62790
62791 2005-10-22  Simon Josefsson  <jas@extundo.com>
62792
62793         * lib/crc.h: Include stddef.h, for size_t.
62794
62795 2005-10-22  Simon Josefsson  <jas@extundo.com>
62796
62797         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62798         arcfour_context struct (simplify test vector testing in GNU
62799         Shishi).
62800
62801 2005-10-21  Simon Josefsson  <jas@extundo.com>
62802
62803         * modules/des, modules/des-tests: New files.
62804
62805         * modules/gc-des, modules/gc-des-tests: New files.
62806
62807         * tests/test-des.c, tests/test-gc-des.c: New file.
62808
62809 2005-10-21  Simon Josefsson  <jas@extundo.com>
62810
62811         * modules/arctwo, modules/arctwo-tests: New files.
62812
62813         * tests/test-arctwo.c: New file.
62814
62815         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62816
62817         * tests/test-gc-arctwo.c: New file.
62818
62819 2005-10-21  Simon Josefsson  <jas@extundo.com>
62820
62821         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62822         Bruno Haible <bruno@clisp.org>.
62823
62824         * m4/gc-des.m4: New file.
62825
62826 2005-10-21  Simon Josefsson  <jas@extundo.com>
62827
62828         * m4/arctwo.m4: New file.
62829
62830         * m4/gc-arctwo.m4: New file.
62831
62832 2005-10-21  Simon Josefsson  <jas@extundo.com>
62833
62834         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62835         block.
62836
62837 2005-10-21  Simon Josefsson  <jas@extundo.com>
62838
62839         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62840         <bruno@clisp.org>.
62841
62842         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62843
62844         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62845         Bruno Haible <bruno@clisp.org>.
62846
62847         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62848         <bruno@clisp.org>.
62849
62850 2005-10-21  Simon Josefsson  <jas@extundo.com>
62851
62852         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62853
62854 2005-10-21  Simon Josefsson  <jas@extundo.com>
62855
62856         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62857
62858 2005-10-21  Simon Josefsson  <jas@extundo.com>
62859
62860         * lib/des.h, lib/des.c: New files.
62861
62862         * lib/gc-gnulib.c: Support DES.c
62863
62864 2005-10-21  Simon Josefsson  <jas@extundo.com>
62865
62866         * lib/arctwo.h, lib/arctwo.c: New files.
62867
62868         * lib/gc-gnulib.c: Support ARCTWO.
62869
62870 2005-10-21  Simon Josefsson  <jas@extundo.com>
62871
62872         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62873         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62874
62875 2005-10-21  Simon Josefsson  <jas@extundo.com>
62876
62877         * gnulib-tool (func_import, func_create_testdir): Define automake
62878         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62879         Makefile.am snippet),
62880         suggested by Bruno Haible <bruno@clisp.org>.
62881
62882         * modules/gc (Makefile.am): Use it.
62883
62884 2005-10-21  Bruno Haible  <bruno@clisp.org>
62885
62886         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62887         patch.
62888
62889 2005-10-19  Simon Josefsson  <jas@extundo.com>
62890
62891         * tests/test-gc-rijndael.c: New file.
62892
62893         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62894
62895 2005-10-19  Simon Josefsson  <jas@extundo.com>
62896
62897         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62898         interface too.
62899
62900 2005-10-19  Simon Josefsson  <jas@extundo.com>
62901
62902         * tests/test-gc-arcfour.c: New file.
62903
62904         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62905
62906 2005-10-19  Simon Josefsson  <jas@extundo.com>
62907
62908         * modules/gc-md4, modules/gc-md4-tests: New file.
62909
62910         * tests/test-gc-md4.c: New file.
62911
62912 2005-10-19  Simon Josefsson  <jas@extundo.com>
62913
62914         * m4/gc-md4.m4: New file.
62915
62916 2005-10-19  Simon Josefsson  <jas@extundo.com>
62917
62918         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62919         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62920         <kasal@ucw.cz>.
62921
62922 2005-10-19  Simon Josefsson  <jas@extundo.com>
62923
62924         * m4/gc-arcfour.m4: New file.
62925
62926         * m4/gc-rijndael.m4: New file.
62927
62928 2005-10-19  Simon Josefsson  <jas@extundo.com>
62929
62930         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62931
62932 2005-10-19  Simon Josefsson  <jas@extundo.com>
62933
62934         * lib/gc-gnulib.c: Support ARCFOUR.
62935
62936 2005-10-19  Simon Josefsson  <jas@extundo.com>
62937
62938         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62939         support.
62940
62941         * lib/gc.h: Add ECB enum type.
62942
62943         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62944
62945 2005-10-18  Simon Josefsson  <jas@extundo.com>
62946
62947         * tests/test-md5.c: New file.
62948
62949         * modules/md5-tests: New file.
62950
62951 2005-10-18  Simon Josefsson  <jas@extundo.com>
62952
62953         * tests/test-md4.c: New file.
62954
62955         * modules/md4, modules/md4-tests: New files.
62956
62957 2005-10-18  Simon Josefsson  <jas@extundo.com>
62958
62959         * m4/md4.m4: New file.
62960
62961 2005-10-18  Simon Josefsson  <jas@extundo.com>
62962
62963         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62964
62965 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62966
62967         * gnulib-tool (func_create_testdir): Omit the second check whether
62968         BUILT_SOURCES in nonempty.
62969
62970 2005-10-17  Simon Josefsson  <jas@extundo.com>
62971
62972         * tests/test-rijndael.c: New file.
62973
62974 2005-10-17  Simon Josefsson  <jas@extundo.com>
62975
62976         * modules/sha1: Depend on stdint instead of md5.
62977
62978         * modules/md5: Depend on stdint, remove uint32_t.
62979
62980 2005-10-17  Simon Josefsson  <jas@extundo.com>
62981
62982         * modules/gc-sha1-tests: New file.
62983
62984         * tests/test-gc-sha1.c: New file.
62985
62986 2005-10-17  Simon Josefsson  <jas@extundo.com>
62987
62988         * m4/md5.m4: Remove call to uint32_t.m4.
62989
62990 2005-10-17  Simon Josefsson  <jas@extundo.com>
62991
62992         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62993
62994         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62995         md5.h.
62996
62997         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62998
62999         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63000
63001 2005-10-17  Simon Josefsson  <jas@extundo.com>
63002
63003         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63004
63005 2005-10-17  Simon Josefsson  <jas@extundo.com>
63006
63007         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63008
63009 2005-10-17  Simon Josefsson  <jas@extundo.com>
63010
63011         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63012
63013         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63014
63015 2005-10-17  Bruno Haible  <bruno@clisp.org>
63016
63017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63018         that it can also be used in a test.
63019
63020 2005-10-16  Bruno Haible  <bruno@clisp.org>
63021
63022         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63023         TESTS_ENVIRONMENT, so that individual tests can augment it.
63024
63025         * gnulib-tool (func_create_testdir): Use an intermediate target for
63026         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63027         macros, like $(ALLOCA_H), which cannot be passed through the command
63028         line.
63029
63030 2005-10-15  Simon Josefsson  <jas@extundo.com>
63031
63032         * modules/rijndael-tests: New file.
63033
63034         * modules/rijndael: New file.
63035
63036 2005-10-15  Simon Josefsson  <jas@extundo.com>
63037
63038         * m4/rijndael.m4: New file.
63039
63040 2005-10-15  Simon Josefsson  <jas@extundo.com>
63041
63042         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63043
63044         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63045
63046 2005-10-14  Simon Josefsson  <jas@extundo.com>
63047
63048         * tests/test-arcfour.c: New file.
63049
63050         * modules/arcfour, modules/arcfour-tests: New files.
63051
63052 2005-10-14  Simon Josefsson  <jas@extundo.com>
63053
63054         * m4/arcfour.m4: New file.
63055
63056 2005-10-14  Simon Josefsson  <jas@extundo.com>
63057
63058         * lib/arcfour.h, lib/arcfour.c: New files.
63059
63060 2005-10-14  Roland McGrath  <roland@redhat.com>
63061
63062         Import from libc.  [BZ #1331]
63063         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63064         macro argument.
63065         Reported by Matej Vela <vela@debian.org>.
63066
63067 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63068
63069         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63070         include <wchar.h>; no longer needed.
63071
63072 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63073
63074         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63075
63076 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63077         and  Ulrich Drepper  <drepper@redhat.com>
63078
63079         Import from libc.
63080         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63081         instead of inline stream orientation test and two separate
63082         function calls.  Pay no attention to USE_IN_LIBIO.
63083
63084 2005-10-13  Simon Josefsson  <jas@extundo.com>
63085
63086         * modules/gc-hmac-md5-tests: New file.
63087
63088         * tests/test-gc-hmac-sha1.c: New file.
63089
63090         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63091
63092         * modules/gc-hmac-md5-tests: New file.
63093
63094         * tests/test-gc-md5.c: New file.
63095
63096         * modules/gc-md5-tests: New file.
63097
63098 2005-10-13  Simon Josefsson  <jas@extundo.com>
63099
63100         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63101         Move memory allocation outside of loop.
63102
63103 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63104
63105         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63106         intermediate directory is in a read-only file system.  Problem
63107         reported by Eric Blake.
63108
63109 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63110
63111         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63112
63113 2005-10-12  Simon Josefsson  <jas@extundo.com>
63114
63115         * tests/test-hmac-sha1.c: New file.
63116
63117         * modules/hmac-sha1-tests: New file.
63118
63119         * modules/hmac-sha1: New file.
63120
63121 2005-10-12  Simon Josefsson  <jas@extundo.com>
63122
63123         * modules/gc-sha1: New file.
63124
63125 2005-10-12  Simon Josefsson  <jas@extundo.com>
63126
63127         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63128
63129         * tests/test-gc-pbkdf2-sha1.c: New file.
63130
63131 2005-10-12  Simon Josefsson  <jas@extundo.com>
63132
63133         * modules/gc-md5, modules/gc-hmac-md5: New files.
63134
63135         * modules/gc (Files): Remove md5, memxor and hmac files.
63136
63137 2005-10-12  Simon Josefsson  <jas@extundo.com>
63138
63139         * m4/gc-pbkdf2-sha1.m4: New file.
63140
63141         * m4/gc-hmac-sha1.m4: New file.
63142
63143         * m4/gc-sha1: New file.
63144
63145         * m4/hmac-sha1.m4: New file.
63146
63147 2005-10-12  Simon Josefsson  <jas@extundo.com>
63148
63149         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63150
63151         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63152
63153 2005-10-12  Simon Josefsson  <jas@extundo.com>
63154
63155         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63156         suggested by Bruno Haible <bruno@clisp.org>.
63157
63158 2005-10-12  Simon Josefsson  <jas@extundo.com>
63159
63160         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63161
63162 2005-10-12  Simon Josefsson  <jas@extundo.com>
63163
63164         * lib/gc-pbkdf2-sha1.c: New file.
63165
63166         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63167
63168 2005-10-12  Simon Josefsson  <jas@extundo.com>
63169
63170         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63171
63172         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63173
63174 2005-10-12  Simon Josefsson  <jas@extundo.com>
63175
63176         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63177         GC_USE_HMAC_MD5, respectively.
63178
63179         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63180         (gc_md5): Fix typo.
63181
63182         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63183
63184         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63185
63186         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63187
63188 2005-10-12  Bruno Haible  <bruno@clisp.org>
63189
63190         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63191         Reported by Stepan Kasal <kasal@ucw.cz>.
63192
63193 2005-10-11  Simon Josefsson  <jas@extundo.com>
63194
63195         * tests/test-crc.c: New file.
63196
63197         * modules/crc, modules/crc-tests: New files.
63198
63199 2005-10-11  Simon Josefsson  <jas@extundo.com>
63200
63201         * m4/crc.m4: New file.
63202
63203 2005-10-11  Simon Josefsson  <jas@extundo.com>
63204
63205         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63206
63207         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63208
63209         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63210
63211 2005-10-11  Simon Josefsson  <jas@extundo.com>
63212
63213         * lib/crc.h, lib/crc.c: New files.
63214
63215         * lib/gc.h (gc_hash_buffer): Add doc.
63216
63217 2005-10-11  Bruno Haible  <bruno@clisp.org>
63218
63219         * modules/c-strcasestr: New file.
63220         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63221
63222 2005-10-11  Bruno Haible  <bruno@clisp.org>
63223
63224         * modules/c-strcase: New file.
63225         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63226
63227 2005-10-11  Bruno Haible  <bruno@clisp.org>
63228
63229         * lib/strcasecmp.c: Include limits.h.
63230         (strcasecmp): Avoid integer overflow on exotic platforms.
63231         * lib/strncasecmp.c: Include limits.h.
63232         (strncasecmp): Avoid integer overflow on exotic platforms.
63233         Reported by Paul Eggert.
63234
63235 2005-10-11  Bruno Haible  <bruno@clisp.org>
63236
63237         * lib/c-strcasestr.h: New file, from GNU gettext.
63238         * lib/c-strcasestr.c: New file, from GNU gettext.
63239
63240 2005-10-11  Bruno Haible  <bruno@clisp.org>
63241
63242         * lib/c-strcase.h: New file, from GNU gettext.
63243         * lib/c-strcasecmp.c: New file, from GNU gettext.
63244         * lib/c-strncasecmp.c: New file, from GNU gettext.
63245
63246 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * modules/mempcpy (License): GPL -> LGPL.
63249         * modules/strchrnul (License): Likewise.
63250         * modules/sysexits (License): Likewise.
63251
63252 2005-10-08  Simon Josefsson  <jas@extundo.com>
63253
63254         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63255
63256 2005-10-07  Simon Josefsson  <jas@extundo.com>
63257
63258         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63259
63260 2005-10-06  Simon Josefsson  <jas@extundo.com>
63261
63262         * tests/test-hmac-md5.c: New file.
63263
63264         * modules/hmac-md5-tests: New file.
63265
63266         * modules/hmac-md5: New file.
63267
63268 2005-10-06  Simon Josefsson  <jas@extundo.com>
63269
63270         * m4/hmac-md5.m4: New file.
63271
63272         * m4/memxor.m4: Require gl_C_RESTRICT.
63273
63274 2005-10-06  Simon Josefsson  <jas@extundo.com>
63275
63276         * lib/memxor.c (memxor): Avoid casts and warnings.
63277
63278 2005-10-06  Simon Josefsson  <jas@extundo.com>
63279
63280         * lib/hmac-md5.c: New file.
63281
63282         * lib/hmac.h: New file.
63283
63284 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63285
63286         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63287         promotes to int, not unsigned int, to catch the AIX 5.3
63288         compiler bug.
63289
63290 2005-10-05  Simon Josefsson  <jas@extundo.com>
63291
63292         * modules/memxor: New file.
63293
63294         * modules/iconv (Files): Move config.rpath to havelib, it is used
63295         there.
63296
63297         * modules/havelib (Files): Add config.rpath.
63298
63299 2005-10-05  Simon Josefsson  <jas@extundo.com>
63300
63301         * m4/memxor.m4: New file.
63302
63303 2005-10-05  Simon Josefsson  <jas@extundo.com>
63304
63305         * lib/memxor.c (memxor): Fix compiler error.
63306
63307         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63308         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63309
63310         * lib/memxor.h, lib/memxor.c: New files.
63311
63312         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63313         we assume all systems have it, suggested by Jim Meyering
63314         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63315         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63316         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63317         same reasons.
63318
63319 2005-10-05  Simon Josefsson  <jas@extundo.com>
63320
63321         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63322
63323 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63324
63325         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63326         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63327         needed, since the source code now assumes these .h files.
63328
63329 2005-10-05  Derek Price  <derek@ximbiot.com>
63330
63331         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63332
63333 2005-10-05  Bruno Haible  <bruno@clisp.org>
63334
63335         * modules/stdint (License): Change to LGPL.
63336
63337 2005-10-04  Simon Josefsson  <jas@extundo.com>
63338
63339         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63340         D. Baushke" <mdb@gnu.org>.
63341
63342 2005-10-04  Bruno Haible  <bruno@clisp.org>
63343
63344         * lib/verify.h (verify_true): Provide alternative definition for C++.
63345
63346 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63347
63348         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63349         (SSIZE_MAX): New macro, if not already defined.
63350         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63351         than 2 GiB.
63352
63353 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63354
63355         Sync from coreutils.
63356         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63357         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63358         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63359         ULLONG_MAX doesn't work with 2.7.2.1.
63360
63361 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63362
63363         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63364         From Ben Pfaff.
63365
63366         * modules/exclude (Depends-on): Depend on verify.
63367         * modules/strtoimax (Depends-on): Likewise.
63368         * modules/utimecmp (Depends-on): Likewise.
63369
63370 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63371
63372         * lib/exclude.c: Include verify.h.
63373         (verify): Remove.  All callers changed to use verify.h's version.
63374         * lib/strtoimax.c: Likewise.
63375         * lib/utimecmp.c: Likewis.e
63376
63377         Sync from coreutils.
63378         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63379         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63380         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63381         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63382         bother returning ENOSYS if settimeofday or stime fails; just let
63383         them return whatever errno they want to return.
63384         * lib/utimens.c: Include unistd.h, for dup2.
63385         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63386         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63387
63388 2005-10-02  Jim Meyering  <jim@meyering.net>
63389
63390         Sync from coreutils.
63391         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63392         from glibc-2.2.5 that fails for read-only files.
63393
63394 2005-10-02  Jim Meyering  <jim@meyering.net>
63395
63396         Sync from coreutils.
63397         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63398         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63399         `#if HAVE_CONFIG_H'.
63400         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63401         Remove AT_FDCWD test.
63402         Do not consume the fd unless successful.
63403         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63404         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63405         block, so that we don't even try to compile it if settimeofday is
63406         available.  This works around a compilation failure on OSF1 V5.1,
63407         due to stime requiring a `long int*' while tv_sec is `int'.
63408
63409 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63410
63411         Sync from coreutils.
63412         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63413         against `yes', rather than just testing for nonempty.
63414
63415 2005-10-01  Simon Josefsson  <jas@extundo.com>
63416
63417         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63418         and Darwin.
63419
63420         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63421         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63422         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63423         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63424         Check if struct addrinfo is declared.
63425
63426 2005-10-01  Simon Josefsson  <jas@extundo.com>
63427
63428         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63429         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63430         AI_* and EAI_* definitions.  Protect function declarations.
63431
63432 2005-10-01  Jim Meyering  <jim@meyering.net>
63433
63434         Sync from coreutils.
63435
63436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63437         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63438         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63439         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63440         in the inet and nsl libraries.  Required on Solaris 5.7.
63441
63442 2005-10-01  Jim Meyering  <jim@meyering.net>
63443
63444         Sync from coreutils.
63445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63446         in the inet and nsl libraries.  Required on Solaris 5.7.
63447
63448 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63449
63450         * lib/getdelim.c (getdelim): Remove unused variables.
63451
63452 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63455         so that the code works even with ancient cpp.  Portability problem
63456         with GCC 2.7.2.1 reported by Thomas M.Ott.
63457
63458 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63459
63460         * modules/regex (Depends-on): Add strcase.
63461
63462         * modules/gethostname (Licence): Change from GPL to LGPL, since
63463         gethostname.c is a trivial implementation of a standard library
63464         function.
63465         * modules/poll (License): Change from GPL to LGPL, since it's
63466         derived from LGPL code.
63467
63468 2005-09-27  Jim Meyering  <jim@meyering.net>
63469
63470         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63471         HAVE_CONFIG_H.
63472
63473         * lib/intprops.h (signed_type_or_expr__): Define.
63474         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63475         for unsigned types.
63476
63477 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * lib/verify.h (verify_expr): Remove, replacing with:
63480         (verify_true): New macro that returns true instead of void.
63481         (verify_type__): Remove.
63482         (verify): Use verify_true rather than verify_type__.
63483
63484 2005-09-26  Bruno Haible  <bruno@clisp.org>
63485
63486         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63487         is necessary.
63488         (lib_SOURCES): Remove mbchar.c.
63489         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63490         (Files): Add m4/mbrtowc.m4.
63491         * modules/mbiter: Likewise.
63492         * modules/mbuiter: Likewise.
63493
63494 2005-09-26  Bruno Haible  <bruno@clisp.org>
63495
63496         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63497         compile mbchar.c if they are not both present.
63498         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63499         * m4/mbiter.m4 (gl_MBITER): Likewise.
63500         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63501         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63502         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63503
63504 2005-09-25  Jim Meyering  <jim@meyering.net>
63505
63506         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63507         also uses socklen_t.
63508
63509 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         * lib/utimens.c (ENOSYS): Define if not already defined.
63512         (futimens): Support having a null PATH if the file descriptor
63513         is nonnegative.
63514
63515         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63516         Remove.
63517         (__attribute): Define to empty unless GCC 3.1 or later.
63518         This works around a core dump on OpenBSD 3.4, which has GCC
63519         2.95.3, which dumps core when given __attribute__(()).  It also
63520         simplifies other tests, since we really don't want to bother with
63521         worrying about which ancient version of GCC supported what.
63522         Original problem reported by Yoann Vandoorselaere, with part of
63523         the fix suggested by Derek Price.
63524
63525 2005-09-24  Jim Meyering  <jim@meyering.net>
63526
63527         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63528         so we can once again use a positive bitfield width of 1 -- now we
63529         don't have to explain why we were using a bitfield width of 2.
63530
63531 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63534         and similarly for the other external symbols.  Problem reported
63535         by James Gallager.
63536
63537         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63538         bug reported by Jim Meyering.
63539
63540         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63541         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63542         not needed, since socklen is a prerequisite module.
63543
63544 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63547         Problem reported by Eric Blake.
63548         (getaddrinfo): Initialize se so that it's not garbage.
63549         Redo internal storage allocation so that it doesn't make unportable
63550         assumptions about alignment.
63551         Fix a memory leak.
63552
63553         * lib/utimens.c (futimens): Use futimesat if available.
63554         Prefer it to futimes since it doesn't have the futimes bug.
63555
63556         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63557         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63558         Instead, declare a function that returns a pointer to an array,
63559         and use verify_type__ to declare the size of the array.
63560         Problem and germ of a solution reported by Bruno Haible.
63561         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63562         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63563
63564 2005-09-23  Jim Meyering  <jim@meyering.net>
63565
63566         Sync from coreutils.
63567         Correct build failure (socklen_t not defined) on at least
63568         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63570
63571 2005-09-23  Jim Meyering  <jim@meyering.net>
63572
63573         * modules/getaddrinfo (Depends-on): Add socklen.
63574
63575 2005-09-23  Bruno Haible  <bruno@clisp.org>
63576
63577         * tests/test-verify.c: New file.
63578
63579 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63580
63581         Sync from coreutils.
63582
63583         * modules/argmatch (Depends-on): Add verify.
63584         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63585         unistd-safer.
63586         * modules/save-cwd (Depends-on): Likewise.
63587
63588         * modules/openat (Files): Add lib/openat-die.c.
63589         (Depends-on): Remove error, exitfail.
63590         Add dirname.
63591
63592         * modules/verify: New file.
63593         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63594         with "verify" module.
63595
63596 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         Sync from coreutils.
63599
63600         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63601         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63602         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63603         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63604         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63605         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63606         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63607         Don't bother checking for string.h, stdlib.h, unistd.h.
63608         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63609         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63610         module's job.
63611         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63612         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63613
63614         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63615         (gl_GETDATE): Use it.
63616
63617         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63618
63619 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63620
63621         Sync from coreutils.
63622
63623         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63624         stat-time.h.
63625         * lib/argmatch.h: Include verify.h
63626         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63627         (ARGMATCH_ASSERT): Remove; unused.
63628         * lib/canonicalize.c: Assume STDC_HEADERS.
63629         * lib/exclude.c: Include "strcase.h".
63630         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63631         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63632         and stdio-safer.h.
63633         (getusershell): Call fopen, not fopen_safer.
63634         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63635         Do not include unistd-safer.h.
63636         (save_cwd): Don't call fd_safer; no longer needed
63637         now that we include fcntl--.h.
63638
63639         * lib/getdate.y (relative_time): New type.
63640         (RELATIVE_TIME_0): New constant.
63641         (parser_control): Use relative_time instead of doing it ourselves.
63642         (%union): Add new relative_time rel member.
63643         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63644         Now typeless.
63645         (relunit, relunit_snumber): Now of type rel.
63646         (zone, rel, relunit, get_date): Adjust to above changes.
63647
63648         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63649         Do not include unistd-safer.h.
63650         (getloadavg): Don't call fd_safer; no longer needed
63651         now that we include fcntl--.h.
63652
63653         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63654         (make_dir_parents): Treat ENOSYS like EEXIST.
63655
63656         Improve quality of diagnostics on restore_cwd failure.
63657         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63658         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63659         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63660         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63661         each time through the loop.  Do not diagnose restore_cwd failure;
63662         that is the caller's job (and perhaps the caller does not care).
63663
63664         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63665         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63666         If the file already exists but is not a directory, don't bother
63667         to try to make its parents.
63668         Close potential file descriptor leak if we can't chdir("/") (!).
63669         Don't always return true if chdir($PWD) fails; return true only
63670         if the requested action was done successfully (except for the
63671         chdir($PWD)).
63672         Don't log final directory unless we actually made it.
63673         Refactor to avoid duplicate code to fix up permissions.
63674         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63675
63676         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63677         to make it a bit faster and (I hope) clearer.
63678         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63679         Fix bug in formats like %2N.
63680
63681         * lib/verify.h: New file.
63682
63683 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         Sync from coreutils.
63686         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63687
63688 2005-09-22  Jim Meyering  <jim@meyering.net>
63689
63690         Sync from coreutils.
63691
63692         * m4/lstat.m4 (gl_FUNC_LSTAT):
63693         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63694         Remove obsolete comment.
63695         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63696         * m4/xstrtod.m4: Likewise.
63697
63698         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63699
63700 2005-09-22  Jim Meyering  <jim@meyering.net>
63701
63702         Sync from coreutils.
63703
63704         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63705
63706         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63707         the .tm_year member, since otherwise gcc-4.0 would now warn about
63708         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63709
63710         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63711         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63712
63713         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63714         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63715         when run in a time zone for which daylight savings time is in effect
63716         for the starting date.
63717
63718         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63719         stop us from restricting permissions of just-created absolute-named
63720         directories.
63721         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63722         to restore initial working directory.
63723         * lib/mkdir-p.c (make_dir_parents): New parameter:
63724         different_working_dir, to tell caller if/when we change the working
63725         directory and are unable to return to the initial one.
63726         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63727         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63728         `return false'.  This fixes a bug introduced on 2004-07-30.
63729
63730         * lib/openat.c (fdopendir): Be sure to close the supplied
63731         file descriptor before returning.  This makes our replacement
63732         implementation a little closer to Solaris's, where fdopendir
63733         ties the file descriptor to the returned DIR* pointer.
63734         * lib/openat.c (unlinkat): New function.
63735         * lib/openat.h (unlinkat): Add prototype.
63736         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63737         (openat_restore_fail): Rename from openat_restore_die.
63738         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63739
63740         Provide an alternative to exiting immediately upon save_cwd or
63741         restore_cwd failure.  Now, an application can arrange e.g.,
63742         to perform a longjump in that case.
63743         * lib/openat.c: Include dirname.h.
63744         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63745         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63746         and openat_restore_die rather than calling error directly.
63747         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63748
63749         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63750         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63751         define.
63752
63753         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63754         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63755                             int utc, int nanoseconds);
63756         Background:
63757         date should not have to allocate a megabyte of virtual memory to
63758         handle a format argument like +%1048575T.  When implemented with
63759         strftime, it must allocate such a buffer, use strftime to fill it
63760         in, print it, then free it.
63761         With fprintftime, it simply prints everything and exits.
63762         With no need for memory allocation, that's one fewer way to fail.
63763         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63764         optional field width, not before, so we accept %9:z, not %:9z.
63765         (my_strftime): Be sure to use L_('x') for literals.
63766
63767         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63768         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63769         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63770         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63771         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63772         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63773         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63774         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63775         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63776         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63777         * lib/xgethostname.c, lib/xreadlink.c:
63778         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63779
63780         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63781         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63782         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63783         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63784         and don't include <sys/file.h>).
63785
63786 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63787
63788         Sync from coreutils.
63789
63790         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63791         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63792         [!LDAV_DONE]: Avoid unused variable warning.
63793
63794 2005-09-21  Bruno Haible  <bruno@clisp.org>
63795
63796         * lib/unicodeio.h (unicode_to_mb): New declaration.
63797
63798 2005-09-20  Derek Price  <derek@ximbiot.com>
63799
63800         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63801         getaddrinfo.h.
63802
63803 2005-09-20  Bruno Haible  <bruno@clisp.org>
63804
63805         * gnulib-tool: Remove trailing slashes from the values specified for
63806         --source-base, --m4-base, --tests-base, --aux-dir.
63807         Suggested by Simon Josefsson <jas@extundo.com>.
63808
63809 2005-09-20  Bruno Haible  <bruno@clisp.org>
63810
63811         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63812         func_modules_to_filelist, func_import, func_create_testdir): Make all
63813         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63814         change when gnulib-tool is invoked in a different locale.
63815
63816 2005-09-19  Simon Josefsson  <jas@extundo.com>
63817
63818         * m4/socklen.m4: Fix typo.
63819
63820 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63821
63822         Use a consistent style for including <config.h>.
63823         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63824         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63825         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63826         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63827         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63828         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63829         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63830         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63831         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63832         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63833         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63834         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63835         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63836         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63837         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63838         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63839         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63840         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63841         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63842         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63843         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63844         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63845         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63846         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63847         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63848         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63849         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63850         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63851         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63852         lib/xstrtoumax.c, lib/yesno.c:
63853         Standardize inclusion of config.h.
63854         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63855         lib/inttostr.h:  Removed inclusion of config.h from header files.
63856         * lib/inttostr.c:  Adjusted in-tree users.
63857         * lib/timespec.h: Remove superfluous warning to include config.h.
63858         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63859         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63860         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63861         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63862         config.h with HAVE_CONFIG_H.
63863
63864 2005-09-19  Jim Meyering  <jim@meyering.net>
63865
63866         * modules/pathmax (License): Change to LGPL.
63867
63868 2005-09-19  Derek Price  <derek@ximbiot.com>
63869
63870         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63871
63872 2005-09-19  Bruno Haible  <bruno@clisp.org>
63873
63874         * gnulib-tool (import): Provide default for --tests-base.
63875
63876 2005-09-19  Bruno Haible  <bruno@clisp.org>
63877
63878         * doc/quote.texi: New file, extracted from gnulib.texi.
63879         * doc/ctime.texi: New file, extracted from gnulib.texi.
63880         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63881         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63882         * doc/gnulib.texi: Include them.
63883
63884 2005-09-18  Bruno Haible  <bruno@clisp.org>
63885
63886         Portability fix.
63887         * gnulib-tool (func_readlink): New function.
63888         (func_ln_if_changed): Use it.
63889
63890 2005-09-18  Bruno Haible  <bruno@clisp.org>
63891
63892         * gnulib-tool: Support --with-tests also with --import.
63893         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63894         (func_import): Use variables $testsbase and $inctests. Emit a
63895         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63896         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63897         SUBDIRS += $testsdir.
63898         (func_create_testdir): Update.
63899
63900 2005-09-18  Bruno Haible  <bruno@clisp.org>
63901
63902         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63903         instead of $dry_run.
63904         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63905         (func_ln_if_changed): Don't handle dry-run here.
63906         (func_import): In dry-run mode, detect more precisely which actions
63907         would be performed, and don't use "...ing" verbs.
63908
63909 2005-09-18  Bruno Haible  <bruno@clisp.org>
63910
63911         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63912         (func_import): Use join on two temporary files instead of three nested
63913         loops, in order to determine which files are new or old.
63914
63915 2005-09-18  Bruno Haible  <bruno@clisp.org>
63916
63917         * gnulib-tool (func_import): Comment out code that spits out the
63918         new files with --dry-run.
63919
63920 2005-09-18  Bruno Haible  <bruno@clisp.org>
63921
63922         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63923
63924 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63925
63926         * lib/stat-time.h: New file.
63927         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63928         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63929         in a different way.
63930         (timespec_cmp): New function.
63931         * lib/utimecmp.c: Include stat-time.h.
63932         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63933         members exist, not on the obsolescent ST_MTIM_NSEC.
63934         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63935
63936 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63939
63940 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63941
63942         * MODULES.html.sh (File system functions): Add stat-time.
63943         * modules/stat-time: New file.
63944         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63945         is now done in a different way, by the stat-time module.
63946         * modules/utimecmp (Depends-on): Add stat-time.
63947
63948 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63949
63950         * m4/st_mtim.m4: Remove.  Superseded by...
63951         * m4/stat-time.m4: New file.
63952         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63953         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63954
63955 2005-09-15  Derek Price  <derek@ximbiot.com>
63956
63957         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63958
63959 2005-09-15  Derek Price  <derek@ximbiot.com>
63960
63961         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63962         * lib/regex_internal.c: Ditto, using this...
63963         (__GNUC_PREREQ): ...new macro.
63964         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63965         using...
63966         (__GNUC_PREREQ): ...this new macro.
63967
63968         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63969
63970 2005-09-15  Derek Price  <derek@ximbiot.com>
63971             Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63974         changes, consolidating in...
63975         * lib/regex_internal.h: ...this file.
63976
63977 2005-09-13  Jim Meyering  <jim@meyering.net>
63978
63979         * lib/canon-host.c: Filter through gnu indent and reword comments
63980         slightly.
63981         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63982
63983 2005-09-13  Derek Price  <derek@ximbiot.com>
63984
63985         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63986         failure.
63987         Reported by Jim Meyering  <jim@meyering.net>.
63988
63989 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63990
63991         * lib/base64.c: Typo.
63992         (base64_encode): Put b64str in initialized data section.
63993
63994 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63995
63996         Merge glibc and coreutils changes into gnulib, plus a few
63997         extra fixes.
63998         * lib/md5.c: Use #error rather than a string.
63999         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64000         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64001         (__attribute__): Define to empty for non recent-GCC.
64002         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64003         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64004         Renamed from their non-__ counterparts, with new macros replacing
64005         them if not _LIBC.  Add __THROW attribute.
64006         (rol): Remove.
64007         (struct md5_ctx): Align buffer if using GCC.
64008         * lib/sha1.h (struct sha1_ctx): Likewise.
64009         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64010         The old name was backwards.
64011         (NOTSWAP): Remove; not used.
64012         (rol): New macro, moved here from md5.h.
64013         (sha1_process_block): Remove a FIXME that doesn't make sense.
64014
64015 2005-09-12  Derek Price  <derek@ximbiot.com>
64016
64017         Return usable errors from canon-host.
64018         * lib/canon-host.h: New file.
64019         * lib/canon-host.c (canon_host): Wrap...
64020         (canon_host_r): ...this new function, which now relies exclusively on
64021         getaddrinfo.
64022         (ch_strerror): New function.
64023         (last_cherror): New global.
64024         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64025         interface.
64026         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64027         void *.
64028         (freeaddrinfo): Free ai->ai_canonname when set.
64029
64030 2005-09-12  Derek Price  <derek@ximbiot.com>
64031
64032         Make canon-host require getaddrinfo.
64033         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64034         AC_LIBSOURCE canon-host.h.  Call...
64035         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64036         gl_GETADDRINFO.
64037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64038
64039 2005-09-12  Derek Price  <derek@ximbiot.com>
64040
64041         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64042         LGPL.
64043         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64044
64045 2005-09-12  Derek Price  <derek@ximbiot.com>
64046
64047         * lib/gai_strerror.c: Include config.h when available.  Include
64048         getaddrinfo.h before other headers to test interface.
64049         Reported by Larry Jones <lawrence.jones@ugs.com>.
64050
64051 2005-09-12  Derek Price  <derek@ximbiot.com>
64052             Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         * modules/glob (Files): Add glob-libc.h.
64055
64056 2005-09-12  Derek Price  <derek@ximbiot.com>
64057             Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64060         glob_.h, glob-libc.h.
64061         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64062
64063 2005-09-12  Derek Price  <derek@ximbiot.com>
64064             Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64067         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64068         protecting things that should be done only in gnulib contexts.
64069         * lib/glob_.h: New file, containing only the glob things needed for
64070         gnulib.
64071         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64072         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64073         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64074         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64075         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64076         and to respect the namespace rules better.
64077
64078 2005-09-08  Simon Josefsson  <jas@extundo.com>
64079
64080         * modules/socklen: New file.
64081
64082 2005-09-08  Simon Josefsson  <jas@extundo.com>
64083
64084         * m4/socklen.m4: New file.
64085
64086 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * modules/utimens (Files): Add m4/utimbuf.m4, since
64089         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64090         Reported by Sergey Poznyakoff.
64091
64092 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64093
64094         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64095         definitions, since that's the preferred style in glibc.
64096         Fix a minor spacing issue, and update copyright notice to match
64097         glibc's.
64098
64099 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64100
64101         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64102
64103 2005-09-06  Simon Josefsson  <jas@extundo.com>
64104
64105         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64106         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64107
64108 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64111         warning.
64112
64113 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64114
64115         * config/srclist.txt: Add glibc bug 1302.
64116
64117 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64118
64119         Change bitset word type from unsigned int to unsigned long int,
64120         as this has better performance on typical 64-bit hosts.
64121         Port bitset code to hosts with unusual word sizes.
64122         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64123         (build_collating_symbol):
64124         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64125         argument is a bitset.  This is merely a style issue, but it makes
64126         it clearer that an entire array is expected.
64127         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64128         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64129         Port to the case where bitset_word is not the same as unsigned int.
64130         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64131         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64132         Likewise.
64133         * lib/regexec.c (check_dst_limits_calc_pos_1,
64134         check_subexp_matching_top):
64135         (build_trtable, group_nodes_into_DFAstates):
64136         Likewise.
64137         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64138         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64139         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64140         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64141         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64142         * lib/regcomp.c (optimize_subexps, lower_subexp):
64143         Work even if bitset_word has holes in its bitwise representation.
64144         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64145         * lib/regexec.c (check_dst_limits_calc_pos_1,
64146         check_subexp_matching_top):
64147         Likewise.
64148         * lib/regex_internal.c (re_string_reconstruct):
64149         Don't assume UCHAR_MAX == 255.
64150         * lib/regex_internal.h (bitset_set_all): Likewise.
64151         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64152         All uses changed.
64153         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64154         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64155         All uses changed.
64156         (BITSET_WORD_MAX): New macro.
64157         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64158         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64159         (bitset_empty, bitset_copy):
64160         Prefer sizeof (bitset) to multiplying it out ourselves.
64161         (bitset_not_merge): Remove; unused.
64162         (bitset_contain): Return bool, not unsigned int with one bit on.
64163         All callers changed.
64164         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64165         alignment than re_node_set; do this by defining a new internal
64166         type struct dests_alloc and using it to allocate memory.
64167
64168 2005-09-05  Bruno Haible  <bruno@clisp.org>
64169
64170         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64171         links.
64172
64173 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64174
64175         * modules/size_max (Makefile.am): Add size_max.h
64176
64177 2005-09-04  Derek Price  <derek@ximbiot.com>
64178
64179         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64180
64181 2005-09-03  Simon Josefsson  <jas@extundo.com>
64182
64183         * gnulib-tool: Fix typo.
64184
64185 2005-09-03  Simon Josefsson  <jas@extundo.com>
64186
64187         * config/srclist.txt: Add glibc bug 1293.
64188
64189 2005-09-03  Derek Price  <derek@ximbiot.com>
64190
64191         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64192         From Larry Jones <lawrence.jones@ugs.com>.
64193
64194 2005-09-02  Simon Josefsson  <jas@extundo.com>
64195
64196         * modules/socklen: New file.
64197
64198 2005-09-02  Simon Josefsson  <jas@extundo.com>
64199
64200         * modules/havelib: New module.
64201
64202         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64203         Use havelib.
64204
64205 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64206
64207         Check for arithmetic overflow when calculating sizes, to prevent
64208         some buffer-overflow issues.  These patches are conservative, in the
64209         sense that when I couldn't determine whether an overflow was possible,
64210         I inserted a run-time check.
64211         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64212         macros.
64213         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64214         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64215         (re_xnrealloc, re_x2nrealloc): New inline functions.
64216         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64217         parse_bracket_exp):
64218         (build_equiv_class, build_charclass): Check for arithmetic overflow
64219         in size expression calculations.
64220         * lib/regex_internal.c (re_string_realloc_buffers):
64221         (build_wcs_upper_buffer, re_node_set_add_intersect):
64222         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64223         (re_dfa_add_node, register_state): Likewise.
64224         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64225         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64226         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64227         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64228
64229 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64232         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64233
64234 2005-09-02  Bruno Haible  <bruno@clisp.org>
64235
64236         Support for lib vs. lib64 distinction on biarch platforms.
64237         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64238         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64240
64241 2005-09-02  Bruno Haible  <bruno@clisp.org>
64242
64243         * gnulib-tool (import): In the other first-use case, provide defaults
64244         as well.
64245
64246 2005-09-02  Bruno Haible  <bruno@clisp.org>
64247
64248         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64249         patches not yet found in the latest gettext release.
64250
64251 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64252
64253         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64254         to avoid a collision with bits/local_lim.h in glibc.
64255         All uses changed.  Problem reported by Dmitry V. Levin in
64256         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64257
64258         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64259         bugs in int versus size_t comparisons.
64260         (re_string_context_at): Fix bug where the code assumed that
64261         Idx is signed.
64262
64263         Use bool where appropriate.
64264         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64265         All callers changed.
64266         (calc_eclosure_iter): Likewise, for ROOT arg.
64267         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64268         (build_charclass_op): Likewise, for NON_MATCH arg.
64269         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64270         (re_string_construct_common): Likewise, for ICASE arg.
64271         * lib/regexec.c (re_search_2_stub, re_search_stub):
64272         Likewise, for RET_LEN arg.
64273         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64274         (set_regs): Likewise, for FL_BACKTRACK arg.
64275         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64276         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64277         (calc_eclosure_iter, parse_bracket_exp):
64278         Use bool for internal variables that are booleans.
64279         * lib/regexec.c (re_search_internal, check_matching,
64280         proceed_next_node):
64281         (set_regs, build_sifted_states, sift_states_bkref):
64282         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64283         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64284         (find_collation_sequence_value):
64285         Likewise.
64286         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64287         (re_node_set_compare):
64288         Return bool, not int. All callers changed.
64289         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64290         (build_trtable, check_node_accept): Likewise.
64291         * lib/regex_internal.h: Include stdbool.h.
64292
64293         Fix bugs uncovered when converting to bool.
64294         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64295         failure instead of charging ahead blindly.
64296         * lib/regex_internal.c (register_state): Likewise.
64297         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64298         for freeing internal storage.
64299         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64300         bitset pieces used as boolean, to avoid undefined behavior
64301         on hosts that do int overflow checking.
64302
64303 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64304
64305         * config/srclist.txt: Add glibc bugs 1285-1287.
64306
64307 2005-09-01  Jim Meyering  <jim@meyering.net>
64308
64309         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64310         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64311         Require gl_STAT_MACROS, too.
64312
64313 2005-09-01  Bruno Haible  <bruno@clisp.org>
64314
64315         * gnulib-tool (import): In the first-use case, provide defaults.
64316
64317 2005-09-01  Bruno Haible  <bruno@clisp.org>
64318
64319         * gnulib-tool (func_import): Remove the .tmp files.
64320
64321 2005-09-01  Bruno Haible  <bruno@clisp.org>
64322
64323         * gnulib-tool (func_import): Fix handling of symbolic links.
64324
64325 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64326
64327         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64328         old glibc regex code mishandles strings longer than 2**31 bytes.
64329         This patch fixes this when the regex code is used in gnulib
64330         (i.e., outside glibc).
64331
64332         This patch should not affect the use of the regex code inside
64333         glibc.  No doubt this problem also needs to be handled for glibc
64334         as well, but the result will be an incompatible change to the
64335         glibc ABI, and the old ABI will have to be supported too.  That
64336         can be the the subject for another patch.
64337
64338         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64339         governing whether the rest of this patch is active.  By default,
64340         the macro is disabled and the patch has no effect.
64341         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64342         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64343         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64344         (re_match_2, re_set_registers): Use the new types.
64345         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64346         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64347         New macros.
64348         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64349         (re_string_context_at, bin_tree_t, re_dfastate_t):
64350         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64351         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64352         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64353         (re_string_char_size_at, re_string_wchar_at):
64354         (re_string_elem_size_at):
64355         Use the new types and macros to port to 64-bit hosts.
64356         Use unsigned types for internal values, so that the code
64357         mostly works even for arrays larger than SSIZE_MAX.
64358         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64359         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64360         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64361         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64362         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64363         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64364         (calc_inveclosure, parse_dup_op, build_range_exp):
64365         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64366         (fetch_number, create_token_tree, mark_opt_subexp):
64367         Likewise.
64368         * lib/regex_internal.c (re_string_construct_common,
64369         create_ci_newstate):
64370         (create_cd_newstate, re_string_allocate, re_string_construct):
64371         (re_string_realloc_buffers, build_wcs_upper_buffer):
64372         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64373         (re_string_reconstruct, re_string_peek_byte_case):
64374         (re_string_fetch_byte_case, re_string_context_at):
64375         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64376         (re_node_set_init_copy, re_node_set_add_intersect):
64377         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64378         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64379         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64380         (re_acquire_state, re_acquire_state_context, register_state):
64381         Likewise.
64382         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64383         search_cur_bkref_entry):
64384         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64385         (re_search_internal, re_search_2_stub, re_search_stub)
64386         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64387         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64388         (update_cur_sifted_state, check_dst_limits):
64389         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64390         (check_subexp_limits, sift_states_bkref, merge_state_array):
64391         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64392         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64393         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64394         (expand_bkref_cache, check_node_accept_bytes):
64395         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64396         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64397         (acquire_init_state_context, check_halt_node_context):
64398         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64399         (sift_states_backward, clean_state_log_if_needed):
64400         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64401         (find_recover_state, transit_state_sb, transit_state_mb):
64402         (transit_state_bkref, build_trtable, match_ctx_clean):
64403         Likewise.
64404         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64405         to work around an assumption that REG_MISSING is negative.
64406
64407         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64408         (seek_collating_symbol_entry) [defined _LIBC]:
64409         (lookup_collation_sequence_value) [defined _LIBC]:
64410         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64411         Use prototypes rather than old-style function definitions.
64412         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64413         (transit_state_sb) [0]:
64414         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64415
64416         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64417         rm_eo.
64418
64419         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64420         (optimize_subexps, lower_subexp):
64421         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64422         since the signed shift might overflow.  Use 1u<<31 instead.
64423         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64424         Likewise.
64425         * lib/regexec.c (check_dst_limits_calc_pos_1,
64426         check_subexp_matching_top): Likewise.
64427
64428         * lib/regcomp.c (optimize_subexps, lower_subexp):
64429         Use CHAR_BIT rather than 8, for clarity.
64430         * lib/regexec.c (check_dst_limits_calc_pos_1):
64431         (check_subexp_matching_top): Likewise.
64432         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64433         have to worry about portability issues when shifting it left.
64434         Remove no-longer-needed test for table_size > 0.
64435         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64436         in a word, as the resulting behavior is undefined.
64437         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64438         in one case, a <= should have been an <, and in another case the
64439         whole test was missing.
64440         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64441         the standard name CHAR_BIT.
64442         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64443         this is not true on one's complement and signed-magnitude hosts.
64444
64445         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64446         next_last_offset.
64447         (struct re_dfa_t): Remove unused member states_alloc.
64448         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64449
64450 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64451
64452         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64453         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64454         and large-file glibc and in 32-bit large-file Solaris.
64455
64456 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64457
64458         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64459         lengths fit in regoff_t; this isn't true if regoff_t is the same
64460         width as size_t.
64461         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64462         (= START + RANGE) instead of RANGE.  This avoids overflow
64463         problems when regoff_t is the same width as size_t.
64464         All callers changed.
64465         (re_search_2_stub): Check for overflow when adding the
64466         sizes of the two strings.
64467         (re_search_stub): Check for overflow when adding START
64468         to RANGE; if it occurs, substitute the extreme value.
64469
64470 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64471
64472         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64473
64474 2005-08-31  Jim Meyering  <jim@meyering.net>
64475
64476         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64477         a pointer-to-const.
64478         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64479         (register_state): Likewise.
64480         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64481         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64482         (group_nodes_into_DFAstates): Likewise.
64483
64484 2005-08-31  Jim Meyering  <jim@meyering.net>
64485
64486         * check-module: Add a FIXME comment.
64487
64488 2005-08-31  Eric Blake  <ebb9@byu.net>
64489
64490         * modules/unistd-safer (Files): Add unistd--.h.
64491         * modules/stdio-safer (Files): Add stdio--.h.
64492
64493 2005-08-31  Derek Price  <derek@ximbiot.com>
64494
64495         * lib/getdelim.c (getdelim): Return EOF on EOF.
64496         Reported by Larry Jones <lawrence.jones@ugs.com>.
64497
64498 2005-08-31  Bruno Haible  <bruno@clisp.org>
64499
64500         Avoid unnecessary diffs in the generated lib/Makefile.am.
64501         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64502         the generated files.
64503         (func_import): Don't set cmd.
64504
64505 2005-08-31  Bruno Haible  <bruno@clisp.org>
64506
64507         * lib/strstr.c: Include <stddef.h>, for NULL.
64508         * lib/strcasestr.c: Likewise.
64509         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64510
64511 2005-08-31  Bruno Haible  <bruno@clisp.org>
64512
64513         * gnulib-tool: New option --macro-prefix.
64514         (func_import): Use macro_prefix.
64515         (import): Handle option --macro-prefix.
64516
64517 2005-08-31  Bruno Haible  <bruno@clisp.org>
64518
64519         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64520         Also use new variables cached_lgpl, cached_libtool.
64521
64522 2005-08-31  Bruno Haible  <bruno@clisp.org>
64523
64524         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64525         always instantiating them.
64526
64527 2005-08-31  Bruno Haible  <bruno@clisp.org>
64528
64529         * gnulib-tool (func_import): Read the previous cached settings
64530         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64531         earlier added by gnulib but are now dropped. Warn when a gnulib file
64532         overwrites a non-gnulib file.
64533
64534 2005-08-31  Bruno Haible  <bruno@clisp.org>
64535
64536         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64537         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64538         projects that don't keep autogenerated files in CVS. Put into
64539         actioncmd only the specified modules, not the transitive closure.
64540
64541 2005-08-31  Bruno Haible  <bruno@clisp.org>
64542
64543         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64544         Create directories that shall be filled.
64545         (import): Don't look for gl_* macros in configure.ac. Recurse across
64546         all directories containing a gnulib-cache.m4 files, if meaningful.
64547
64548 2005-08-31  Bruno Haible  <bruno@clisp.org>
64549
64550         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64551         (import): Set seen_libtool when we see gl_LIBTOOL.
64552
64553 2005-08-31  Bruno Haible  <bruno@clisp.org>
64554
64555         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64556         declaration macro definitions from generated gnulib.m4.
64557
64558 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64559
64560         * lib/iconvme.h: Add prototype for iconv_alloc.
64561
64562 2005-08-29  Simon Josefsson  <jas@extundo.com>
64563
64564         * lib/iconvme.c: Fix errno.
64565
64566 2005-08-29  Bruno Haible  <bruno@clisp.org>
64567
64568         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64569         that it works when the directory contains spaces.
64570
64571 2005-08-29  Bruno Haible  <bruno@clisp.org>
64572
64573         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64574
64575 2005-08-29  Bruno Haible  <bruno@clisp.org>
64576
64577         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64578         Emit more advice.
64579
64580 2005-08-29  Bruno Haible  <bruno@clisp.org>
64581         and Stepan Kasal  <kasal@ucw.cz>
64582
64583         * check-module: If more parameters are given, check each of them
64584         separately; add more exceptions, as noted by Jim Meyering.
64585         (check_module): New procedure.
64586         (%exempt_header): Now contains all exceptions.
64587
64588 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64589
64590         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64591
64592 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64593
64594         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64595
64596 2005-08-28  Bruno Haible  <bruno@clisp.org>
64597
64598         * m4/gnulib-tool.m4: New file.
64599
64600 2005-08-27  Jim Meyering  <jim@meyering.net>
64601
64602         * modules/unistd-safer (Files): Add pipe-safer.c.
64603         * modules/fcntl-safer (Files): Add creat-safer.c.
64604
64605 2005-08-27  Jim Meyering  <jim@meyering.net>
64606
64607         * m4/stdlib-safer.m4: New file.  From coreutils.
64608         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64609         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64610         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64611         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64612         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64613
64614 2005-08-27  Jim Meyering  <jim@meyering.net>
64615
64616         * lib/fopen-safer.c: Merge minor changes from coreutils.
64617         * lib/dup-safer.c: Likewise.
64618         * lib/fd-safer.c: Likewise.
64619
64620         Merge from coreutils.
64621         * lib/stdio--.h: New file.
64622         * lib/stdlib--.h: New file.
64623         * lib/mkstemp-safer.c: New file.
64624
64625         GNU tar needs these.
64626         * lib/pipe-safer.c: New file.
64627         * lib/creat-safer.c: New file.
64628         * lib/fcntl--.h (creat): Define to creat_safer.
64629         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64630         * lib/unistd--.h (pipe): Define to pipe_safer.
64631         * lib/unistd-safer.h: Declare pipe_safer.
64632
64633 2005-08-26  Simon Josefsson  <jas@extundo.com>
64634
64635         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64636         Haible <bruno@clisp.org>.
64637
64638 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * lib/regex_internal.h: Remove all references to
64641         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64642         or better.
64643         (bitset_not, bitset_merge, bitset_not_merge):
64644         (bitset_mask, re_string_allocate, re_string_construct):
64645         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64646         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64647         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64648         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64649         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64650         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64651         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64652         (re_acquire_state_context):
64653         Remove unnecessary forward decls.
64654         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64655         Put __attribute at function definition,
64656         now that the function decl has been removed.
64657         * lib/regex_internal.c (re_string_peek_byte_case):
64658         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64659         Likewise.
64660
64661 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64662
64663         * m4/regex.m4: Add AC_PREREQ(2.50).
64664         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64665
64666 2005-08-25  Simon Josefsson  <jas@extundo.com>
64667
64668         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64669         __fsetlocking.
64670
64671 2005-08-25  Simon Josefsson  <jas@extundo.com>
64672
64673         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64674         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64675         GLIBC specific code.
64676
64677 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         Make regex safe for g++.  This fixes one real bug (an "err"
64680         that should have been "*err").  g++ problem reported by
64681         Sam Steingold.
64682         * lib/regex_internal.h (re_calloc): New macro, consistent with
64683         re_malloc etc.  All callers of calloc changed to use re_calloc.
64684         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64685         not int.  All callers changed.
64686         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64687         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64688         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64689         (find_recover_state): Change "err" to "*err"; this fixes what
64690         appears to be a real bug.
64691         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64692         versus int.
64693
64694 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64695
64696         * modules/regex (Depends-on): Add malloc, since the code
64697         assumes that !malloc(0) means failure.
64698
64699 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64700
64701         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64702
64703         alloca modernization/simplification for regex.
64704         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64705         needs to be at the start of the file, and can be moved into
64706         regex_internal.h and simplified.
64707         * lib/regex_internal.h: Include <alloca.h>.
64708         (__libc_use_alloca) [!defined _LIBC]: New macro.
64709         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64710         now works outside glibc.
64711
64712 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64713
64714         * config/srclist.txt: Add glibc bugs 1241, 1245.
64715
64716 2005-08-25  Jim Meyering  <jim@meyering.net>
64717
64718         * lib/open-safer.c: Include <config.h>.
64719         Otherwise, we'd lose LARGEFILE support in any file using
64720         e.g. "fcntl--.h"
64721
64722 2005-08-25  Bruno Haible  <bruno@clisp.org>
64723
64724         * m4/minmax.m4: Require autoconf 2.52.
64725         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64726         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64727         alternatives of translit over the alphabet.
64728         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64729
64730 2005-08-24  Simon Josefsson  <jas@extundo.com>
64731
64732         * tests/test-getpass.c: New file.
64733
64734 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64737         for GNU regex features.
64738
64739 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64740
64741         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64742         * lib/regex.h (regerror): Likewise.
64743
64744         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64745         requires this.  (The code never needed it.)
64746
64747         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64748         All uses of recently-renamed identifiers changed to use the new,
64749         POSIX-compliant names.  The code will build and run just fine
64750         without these changes, but it's better to eat our own dog food
64751         and use the standard-conforming names.
64752
64753         * lib/regex.h: Fix a multitude of POSIX name space violations.
64754         These changes have an effect only for programs that define
64755         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64756         do not change anything for programs compiled in the normal way.
64757         Also, there is no effect on the ABI.
64758
64759         (_REGEX_SOURCE): New macro.
64760         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64761         defined and _GNU_SOURCE is not; this fixes a name space violation.
64762
64763         Rename the following macros to obey POSIX requirements.
64764         The old names are still visible as macros if _REGEX_SOURCE is defined.
64765         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64766         RE_BACKSLASH_ESCAPE_IN_LISTS.
64767         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64768         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64769         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64770         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64771         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64772         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64773         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64774         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64775         (REG_INTERVALS): renamed from RE_INTERVALS.
64776         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64777         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64778         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64779         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64780         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64781         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64782         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64783         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64784         RE_UNMATCHED_RIGHT_PAREN_ORD.
64785         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64786         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64787         (REG_DEBUG): renamed from RE_DEBUG.
64788         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64789         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64790         unusual, since we can't clash with the POSIX REG_ICASE.
64791         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64792         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64793         (REG_NO_SUB): renamed from RE_NO_SUB.
64794         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64795         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64796         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64797         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64798         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64799         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64800         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64801         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64802         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64803         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64804         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64805         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64806         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64807         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64808         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64809         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64810         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64811         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64812         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64813         (REG_FIXED): Renamed from REGS_FIXED.
64814         (REG_NREGS): Renamed from RE_NREGS.
64815
64816         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64817         of other REG_* macros, since POSIX says the user is allowed to
64818         #undef these macros selectively.
64819
64820         (reg_errcode_t): Update comment stating what other tables need
64821         to be consistent.
64822
64823         Rename the following enum values to obey POSIX requirements.
64824         The old names are still visible as macros.
64825         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64826         is not defined, since GNU is supposed to be a superset of POSIX as
64827         much as possible, and since we want reg_errcode_t to be a signed
64828         type for implementation consistency.
64829         (_REG_NOERROR): Renamed from REG_NOERROR.
64830         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64831         (_REG_BADPAT): Renamed from REG_BADPAT.
64832         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64833         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64834         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64835         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64836         (_REG_EBRACK): Renamed from REG_EBRACK.
64837         (_REG_EPAREN): Renamed from REG_EPAREN.
64838         (_REG_EBRACE): Renamed from REG_EBRACE.
64839         (_REG_BADBR): Renamed from REG_BADBR.
64840         (_REG_ERANGE): Renamed from REG_ERANGE.
64841         (_REG_ESPACE): Renamed from REG_ESPACE.
64842         (_REG_BADRPT): Renamed from REG_BADRPT.
64843         (_REG_EEND): Renamed from REG_EEND.
64844         (_REG_ESIZE): Renamed from REG_ESIZE.
64845         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64846         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64847         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64848         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64849         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64850
64851         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64852         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64853         changed.  But support the old name if the new one is not defined
64854         and if _REGEX_SOURCE.
64855
64856         Change the following member names in struct re_pattern_buffer.
64857         The old names are still supported if !_REGEX_SOURCE.
64858         The new names are always supported, regardless of _REGEX_SOURCE.
64859         (re_buffer): Renamed from buffer.
64860         (re_allocated): Renamed from allocated.
64861         (re_used): Renamed from used.
64862         (re_syntax): Renamed from syntax.
64863         (re_fastmap): Renamed from fastmap.
64864         (re_translate): Renamed from translate.
64865         (re_can_be_null): Renamed from can_be_null.
64866         (re_regs_allocated): Renamed from regs_allocated.
64867         (re_fastmap_accurate): Renamed from fastmap_accurate.
64868         (re_no_sub): Renamed from no_sub.
64869         (re_not_bol): Renamed from not_bol.
64870         (re_not_eol): Renamed from not_eol.
64871         (re_newline_anchor): Renamed from newline_anchor.
64872
64873         Change the following member names in struct re_registers.
64874         The old names are still supported if !_REGEX_SOURCE.
64875         The new names are always supported, regardless of _REGEX_SOURCE.
64876         (rm_num_regs): Renamed from num_regs.
64877         (rm_start): Renamed from start.
64878         (rm_end): Renamed from end.
64879
64880         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64881         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64882         Prepend __ to parameter names.
64883
64884         Undo yesterday's changes.
64885
64886 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64889         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64890         lib/regex.c.
64891
64892 2005-08-24  Jim Meyering  <jim@meyering.net>
64893
64894         Sync from coreutils.
64895         * m4/fcntl-safer.m4: New file.
64896
64897         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64898         and object files for this module.
64899
64900 2005-08-24  Jim Meyering  <jim@meyering.net>
64901
64902         Sync from coreutils.
64903         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64904
64905 2005-08-24  Jim Meyering  <jim@meyering.net>
64906
64907         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64908         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64909
64910 2005-08-24  Jim Meyering  <jim@meyering.net>
64911
64912         * modules/fcntl-safer: New module.
64913         * modules/fts (Depends-on): Add fcntl-safer.
64914         * MODULES.html.sh (File descriptor based Input/Output):
64915         Add fcntl-safer.
64916
64917 2005-08-24  Bruno Haible  <bruno@clisp.org>
64918
64919         Support for unit test modules.
64920         * modules/README: Mention tests modules.
64921         * modules/TEMPLATE-TESTS: New file.
64922         * gnulib-tool: New options --extract-tests-module, --with-tests and
64923         --tests-base (unused for the moment).
64924         (testsbase, inctests): New variables.
64925         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64926         (func_verify_module): Exclude TEMPLATE-TESTS.
64927         (func_verify_nontests_module, func_verify_tests_module): New functions.
64928         (func_get_dependencies): Add implicit dependency for tests modules.
64929         (func_get_tests_module): New function.
64930         (func_modules_transitive_closure): When --with-tests was specified,
64931         include the unit tests as well, unless explicitly avoided.
64932         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64933         (func_emit_tests_Makefile_am): New function.
64934         (func_create_testdir): When --with-tests was specified, emit a
64935         tests/ directory.
64936         * MODULES.html.sh (Future developments): Update.
64937
64938 2005-08-24  Bruno Haible  <bruno@clisp.org>
64939
64940         * modules/tls-tests: New file.
64941         * tests/test-tls.c: New file, from GNU gettext.
64942
64943 2005-08-24  Bruno Haible  <bruno@clisp.org>
64944
64945         * modules/lock-tests: New file.
64946         * tests/test-lock.c: New file, from GNU gettext.
64947
64948 2005-08-24  Bruno Haible  <bruno@clisp.org>
64949
64950         * lib/lock.h: Add multiple inclusion guard.
64951         * lib/tls.h: Add multiple inclusion guard.
64952
64953 2005-08-24  Bruno Haible  <bruno@clisp.org>
64954
64955         * gnulib-tool: Add support for the --aux-dir option to
64956         --create-testdir, --create-megatestdir, --test, --megatest.
64957         (func_create_testdir, func_create_megatestdir): Optionally emit a
64958         AC_CONFIG_AUX_DIR directive.
64959         (create-testdir, create-megatestdir, test, megatest): Provide a
64960         default value for $auxdir.
64961
64962 2005-08-24  Bruno Haible  <bruno@clisp.org>
64963
64964         * gnulib-tool (import): Use compound statement instead of subshell
64965         where possible.
64966
64967 2005-08-24  Bruno Haible  <bruno@clisp.org>
64968
64969         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64970
64971 2005-08-24  Bruno Haible  <bruno@clisp.org>
64972
64973         * gnulib-tool (func_version): Update.
64974
64975 2005-08-24  Bruno Haible  <bruno@clisp.org>
64976
64977         * gnulib-tool (func_import, func_create_testdir,
64978         func_create_megatestdir): Quote all autoconf macro arguments.
64979
64980 2005-08-24  Bruno Haible  <bruno@clisp.org>
64981
64982         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64983         option --force, because --force causes the aclocal.m4 of each
64984         subdirectory to be newer than the corresponding config.h.in.
64985
64986 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64987
64988         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64989         All contents moved to gl_REGEX.
64990         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64991         assume that it does.
64992
64993 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         * lib/regex.h (REG_NOSYS)
64996         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64997         Define, since POSIX requires it as of 2001.
64998         (_REG_ENOSYS)
64999         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65000         New private symbol, used to keep the enum signed in all cases.
65001         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65002         Youngman in
65003         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65004
65005         * lib/regex_internal.c (re_string_skip_chars, register_state):
65006         (calc_state_hash):
65007         Remove forward decls; no longer needed now that we use prototypes.
65008         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65009         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65010         (clean_state_log_if_needed): Likewise.
65011
65012 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65013
65014         * config/srclist.txt: Add glibc bugs 1231-1233.
65015
65016 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65017
65018         Fix problems reported by Sam Steingold in
65019         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65020         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65021         assumed that reg_errcode_t is a signed type, which is not
65022         necessarily true if _XOPEN_SOURCE is not defined.
65023         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65024         since some compilers warn about it otherwise.
65025
65026 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65027
65028         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65029         (init_word_char, create_initial_state, duplicate_node_closure):
65030         (fetch_token, peek_token_bracket, build_range_exp):
65031         (build_collating_symbol): Remove forward decls; no longer needed
65032         now that we use prototypes.
65033
65034         * lib/regcomp.c:
65035         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65036         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65037         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65038         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65039         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65040         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65041         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65042         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65043         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65044         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65045         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65046         (build_charclass, build_charclass_op, fetch_number, create_tree):
65047         (create_token_tree, mark_opt_subexp, duplicate_tree):
65048         Use prototypes rather than old-style definitions.
65049
65050         * lib/regex_internal.c:
65051         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65052         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65053         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65054         (re_string_reconstruct, re_string_peek_byte_case):
65055         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65056         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65057         (re_node_set_init_copy, re_node_set_add_intersect):
65058         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65059         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65060         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65061         (re_acquire_state, re_acquire_state_context, register_state):
65062         (create_ci_newstate, create_cd_newstate, free_state):
65063         Likewise.
65064         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65065         re_search_2):
65066         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65067         (re_search_internal, prune_impossible_nodes):
65068         (acquire_init_state_context, check_matching, static):
65069         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65070         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65071         (update_regs, sift_states_backward, build_sifted_states):
65072         (clean_state_log_if_needed, merge_state_array):
65073         (update_cur_sifted_state, add_epsilon_src_nodes):
65074         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65075         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65076         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65077         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65078         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65079         (check_arrival, check_arrival_add_next_nodes):
65080         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65081         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65082         (check_node_accept_bytes, check_node_accept, extend_buffers):
65083         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65084         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65085         (sift_ctx_init):
65086         Likewise.
65087
65088         * lib/regex_internal.h:
65089         (re_string_allocate, re_string_construct, re_string_reconstruct):
65090         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65091         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65092         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65093         (re_string_context_at, re_string_peek_byte_case):
65094         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65095         is defined, since we now use prototypes always.
65096
65097         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65098         C89 or better.  All uses removed.
65099
65100 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65101
65102         * config/srclist.txt: Add glibc bugs 1220-1227.
65103
65104 2005-08-20  Jim Meyering  <jim@meyering.net>
65105
65106         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65107         of unused local, dfa.
65108
65109 2005-08-20  Bruno Haible  <bruno@clisp.org>
65110
65111         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65112
65113 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65116         (re_node_set_insert_last, re_dfa_add_node):
65117         Rename local variables to avoid GCC shadowing warnings.
65118
65119 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65120
65121         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65122         [defined lint]: Suppress bogus uninitialized-variable warnings.
65123
65124         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65125         and let the caller return REG_ESPACE if out of space.  This
65126         removes an uninitialied-variable warning with GCC 4.0.1, and also
65127         avoids taking the address of a local variable.  All callers
65128         changed.
65129
65130 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65133         $LIBCSRC/posix/regexec.c.
65134         Add glibc bug 1217 for regcomp.c.
65135
65136 2005-08-19  Jim Meyering  <jim@meyering.net>
65137
65138         * lib/regexec.c (proceed_next_node): Redo local variables to
65139         avoid GCC shadowing warnings.
65140
65141 2005-08-18  Bruno Haible  <bruno@clisp.org>
65142
65143         * lib/strstr.c (strstr): Fix return value in multibyte case.
65144         * lib/strcasestr.c (strcasestr): Likewise.
65145
65146 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65147
65148         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65149
65150 2005-08-17  Jim Meyering  <jim@meyering.net>
65151
65152         Make the %s format (seconds since the epoch) work for a negative
65153         number and when used with a zero-padded field width, e.g. %015s.
65154
65155         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65156         label so that it precedes the code to set `digits'.  Otherwise,
65157         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65158         print `00-22'.  Now, it prints `-0022', as it should.
65159
65160 2005-08-17  Bruno Haible  <bruno@clisp.org>
65161
65162         * modules/strstr (Files): Add m4/mbrtowc.m4.
65163         (Depends-on): Add mbuiter.
65164
65165 2005-08-17  Bruno Haible  <bruno@clisp.org>
65166
65167         * modules/strcasestr: New file.
65168         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65169         strcasestr.
65170
65171 2005-08-17  Bruno Haible  <bruno@clisp.org>
65172
65173         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65174
65175 2005-08-17  Bruno Haible  <bruno@clisp.org>
65176
65177         * modules/mbuiter: New file.
65178         * MODULES.html.sh (Extended multibyte and wide character utilities):
65179         Add mbuiter.
65180
65181 2005-08-17  Bruno Haible  <bruno@clisp.org>
65182
65183         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65184         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65185
65186 2005-08-17  Bruno Haible  <bruno@clisp.org>
65187
65188         * m4/strcasestr.m4: New file.
65189
65190 2005-08-17  Bruno Haible  <bruno@clisp.org>
65191
65192         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65193         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65194
65195 2005-08-17  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/strcasestr.h: New file.
65198         * lib/strcasestr.c: New file.
65199
65200 2005-08-17  Bruno Haible  <bruno@clisp.org>
65201
65202         * lib/strcasecmp.c: Use mbuiter.h.
65203
65204 2005-08-17  Bruno Haible  <bruno@clisp.org>
65205
65206         * lib/mbuiter.h: New file.
65207
65208 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65211         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65212         and gl_GETOPT are both invoked via different paths (as happens
65213         with GNU tar CVS because it uses both argp and getopt), the former
65214         wins.
65215
65216 2005-08-16  Bruno Haible  <bruno@clisp.org>
65217
65218         * modules/tls: New file.
65219         * MODULES.html.sh (Multithreading): Add tls.
65220
65221 2005-08-16  Bruno Haible  <bruno@clisp.org>
65222
65223         * modules/strnlen1: New file.
65224         * MODULES.html.sh (String handling): Add strnlen1.
65225
65226 2005-08-16  Bruno Haible  <bruno@clisp.org>
65227
65228         * modules/strcase (Files): Add m4/mbrtowc.m4.
65229         (Depends-on): Add strnlen1, mbchar.
65230
65231 2005-08-16  Bruno Haible  <bruno@clisp.org>
65232
65233         * modules/mbiter: New file.
65234         * MODULES.html.sh (Extended multibyte and wide character utilities):
65235         Add mbiter.
65236
65237 2005-08-16  Bruno Haible  <bruno@clisp.org>
65238
65239         * modules/mbfile: New file.
65240         * MODULES.html.sh (Extended multibyte and wide character utilities):
65241         Add mbfile.
65242
65243 2005-08-16  Bruno Haible  <bruno@clisp.org>
65244
65245         * modules/mbchar: New file.
65246         * MODULES.html.sh (Extended multibyte and wide character utilities):
65247         New section.
65248
65249 2005-08-16  Bruno Haible  <bruno@clisp.org>
65250
65251         * m4/tls.m4: New file, from GNU gettext.
65252
65253 2005-08-16  Bruno Haible  <bruno@clisp.org>
65254
65255         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65256         always.
65257         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65258
65259 2005-08-16  Bruno Haible  <bruno@clisp.org>
65260
65261         * m4/mbiter.m4: New file.
65262
65263 2005-08-16  Bruno Haible  <bruno@clisp.org>
65264
65265         * m4/mbfile.m4: New file.
65266
65267 2005-08-16  Bruno Haible  <bruno@clisp.org>
65268
65269         * m4/mbchar.m4: New file.
65270
65271 2005-08-16  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/tls.h: New file, from GNU gettext.
65274         * lib/tls.c: New file, from GNU gettext.
65275
65276 2005-08-16  Bruno Haible  <bruno@clisp.org>
65277
65278         * lib/strnlen1.h: New file.
65279         * lib/strnlen1.c: New file.
65280
65281 2005-08-16  Bruno Haible  <bruno@clisp.org>
65282
65283         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65284         (mbi_init): Update.
65285         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65286         NUL byte, not after it.
65287
65288 2005-08-16  Bruno Haible  <bruno@clisp.org>
65289
65290         * lib/strcase.h (strcasecmp): Add note in comments.
65291         * lib/strncasecmp.c: Use code from strcasecmp.c.
65292         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65293         (strcasecmp): Work correctly in multibyte locales.
65294
65295 2005-08-16  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/mbiter.h: New file.
65298
65299 2005-08-16  Bruno Haible  <bruno@clisp.org>
65300
65301         * lib/mbfile.h: New file.
65302
65303 2005-08-16  Bruno Haible  <bruno@clisp.org>
65304
65305         * lib/mbchar.h: New file.
65306         * lib/mbchar.c: New file.
65307
65308 2005-08-16  Bruno Haible  <bruno@clisp.org>
65309
65310         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65311         the valid ones. Makes the comparison operations transitive:
65312         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65313         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65314
65315 2005-08-15  Simon Josefsson  <jas@extundo.com>
65316
65317         * modules/ssize_t (License): Change to 'unlimited'.
65318
65319         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65320
65321 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65322
65323         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65324         Add comments for each pending glibc patch.
65325
65326 2005-08-15  Bruno Haible  <bruno@clisp.org>
65327
65328         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65329         __cplusplus is defined.
65330
65331 2005-08-14  Jim Meyering  <jim@meyering.net>
65332
65333         Sync from coreutils.
65334
65335         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65336         Use the hash-table-based cycle-detection code not just when
65337         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65338         Reported by James Youngman in
65339         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65340         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65341         FTS_TIGHT_CYCLE_CHECK.
65342         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65343         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65344         once again.
65345         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65346         * lib/fts.c (fd_safer): Remove decl.
65347         Include fcntl--.h rather than unistd-safer.h
65348         (fts_safe_changedir): Don't call fd_safer; no longer needed
65349         now that we include fcntl--.h.
65350
65351 2005-08-12  Simon Josefsson  <jas@extundo.com>
65352
65353         * modules/getndelim2: Use ssize_t module.
65354         * modules/getnline: Likewise.
65355         * modules/safe-read: Likewise.
65356         * modules/xreadlink: Likewise.
65357
65358         * modules/ssize_t: New file.
65359
65360 2005-08-12  Simon Josefsson  <jas@extundo.com>
65361
65362         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65363
65364 2005-08-12  Simon Josefsson  <jas@extundo.com>
65365
65366         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65367         ssize_t.
65368
65369 2005-08-12  Simon Josefsson  <jas@extundo.com>
65370
65371         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65372         readline, getdelim and check_version.
65373         (Support for systems lacking ISO C 99: Sizes of integer types):
65374         Add size_max.
65375
65376 2005-08-12  Bruno Haible  <bruno@clisp.org>
65377
65378         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65379
65380 2005-08-11  Simon Josefsson  <jas@extundo.com>
65381
65382         * modules/readline: New file.
65383
65384         * modules/strnlen (Files): Add strnlen.h.
65385
65386 2005-08-11  Simon Josefsson  <jas@extundo.com>
65387
65388         * m4/readline.m4: New file.
65389
65390 2005-08-11  Simon Josefsson  <jas@extundo.com>
65391
65392         * lib/readline.h, readline.c: New file.
65393
65394 2005-08-11  Simon Josefsson  <jas@extundo.com>
65395
65396         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65397         gl_AVOID.
65398
65399 2005-08-11  Bruno Haible  <bruno@clisp.org>
65400
65401         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65402
65403 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65404
65405         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65406
65407 2005-08-10  Simon Josefsson  <jas@extundo.com>
65408
65409         * tests/test-iconvme.c: New file.
65410
65411 2005-08-10  Simon Josefsson  <jas@extundo.com>
65412
65413         * m4/strnlen.m4: New file.
65414
65415         * m4/strndup.m4: Don't check for strnlen declaration, done in
65416         strnlen.m4.
65417
65418 2005-08-10  Simon Josefsson  <jas@extundo.com>
65419
65420         * lib/strndup.c: Use strnlen.h.
65421
65422         * lib/strnlen.h: New file.
65423
65424 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65425
65426         * README: Typos.
65427
65428 2005-08-02  Simon Josefsson  <jas@extundo.com>
65429
65430         * modules/readline: New file.
65431
65432 2005-08-02  Simon Josefsson  <jas@extundo.com>
65433
65434         * modules/getdelim: New file.
65435
65436         * modules/getline: Rewrite, don't use getndelim2.
65437
65438 2005-08-02  Simon Josefsson  <jas@extundo.com>
65439
65440         * m4/getline.m4: Separate out getdelim stuff into separate module.
65441
65442         * m4/getdelim.m4: New file.
65443
65444 2005-08-02  Simon Josefsson  <jas@extundo.com>
65445
65446         * lib/getline.h, getline.c: Rewrite.
65447
65448         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65449
65450 2005-07-31  Bruno Haible  <bruno@clisp.org>
65451
65452         * lib/lock.h (gl_lock_initializer): New macro.
65453         (gl_lock_define_initialized): Use it.
65454         (gl_rwlock_initializer): New macro.
65455         (gl_rwlock_define_initialized): Use it.
65456         (gl_recursive_lock_initializer): New macro.
65457         (gl_recursive_lock_define_initialized): Use it.
65458
65459 2005-07-30  Karl Berry  <karl@gnu.org>
65460
65461         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65462         Report from Ben Pfaff, regarding getopt.
65463
65464 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65467         normal way.
65468         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65469         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65470         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65471         (gl_GETOPT): Use the new macros.  Most of the implementation
65472         is moved to the new macros.  This is for programs like Emacs
65473         that don't want all the functionality of gl_GETOPT.
65474
65475 2005-07-26  Bruno Haible  <bruno@clisp.org>
65476
65477         * m4/lock.m4: Update from GNU gettext.
65478
65479 2005-07-26  Bruno Haible  <bruno@clisp.org>
65480
65481         * lib/lock.h: Update from GNU gettext.
65482         * lib/lock.c: Update from GNU gettext.
65483
65484 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65485
65486         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65487         obsolescent AC_TRY_RUN.  Include the default includes files, for
65488         'exit'.
65489
65490 2005-07-24  Bruno Haible  <bruno@clisp.org>
65491
65492         * modules/visibility: New file.
65493         * MODULES.html.sh (Misc): Add visibility.
65494
65495 2005-07-24  Bruno Haible  <bruno@clisp.org>
65496
65497         * m4/visibility.m4: New file.
65498
65499 2005-07-24  Bruno Haible  <bruno@clisp.org>
65500
65501         * doc/visibility.texi: New file.
65502
65503 2005-07-22  Bruno Haible  <bruno@clisp.org>
65504
65505         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65506         $(ALLOCA_H), redundant through BUILT_SOURCES.
65507         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65508         redundant through BUILT_SOURCES.
65509         * modules/byteswap (Makefile.am): Remove explicit dependency on
65510         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65511         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65512         $(FNMATCH_H), redundant through BUILT_SOURCES.
65513         * modules/getopt (Makefile.am): Remove explicit dependency on
65514         $(GETOPT_H), redundant through BUILT_SOURCES.
65515         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65516         redundant through BUILT_SOURCES.
65517         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65518         redundant through BUILT_SOURCES.
65519         * modules/stdbool (Makefile.am): Remove explicit dependency on
65520         $(STDBOOL_H), redundant through BUILT_SOURCES.
65521         * modules/stdint (Makefile.am): Remove explicit dependency on
65522         $(STDINT_H), redundant through BUILT_SOURCES.
65523         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65524         Remove explicit dependency on $(SYSEXITS_H).
65525         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65526
65527 2005-07-18  Simon Josefsson  <jas@extundo.com>
65528
65529         * lib/check-version.c (check_version): Accept identical versions too.
65530
65531 2005-07-18  Bruno Haible  <bruno@clisp.org>
65532
65533         * modules/lock: New file.
65534         * MODULES.html.sh (Multithreading): New section.
65535
65536 2005-07-18  Bruno Haible  <bruno@clisp.org>
65537
65538         * m4/lock.m4: New file, from GNU gettext.
65539
65540 2005-07-18  Bruno Haible  <bruno@clisp.org>
65541
65542         * lib/lock.h: New file, from GNU gettext.
65543         * lib/lock.c: New file, from GNU gettext.
65544
65545 2005-07-18  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/lock.h (gl_once_t): New type.
65548         (gl_once_define, gl_once): New macros.
65549         * lib/lock.c (fresh_once): New variable.
65550         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65551         functions.
65552
65553 2005-07-16  Simon Josefsson  <jas@extundo.com>
65554
65555         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65556         workaround, suggested by Bruno.
65557
65558 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65559
65560         * modules/xalloc (Depends-on): Add xalloc-die.
65561         * modules/xvasprintf (Depends-on): Add xalloc-die.
65562
65563 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65566         with a minor change.
65567
65568 2005-07-15  Bruno Haible  <bruno@clisp.org>
65569
65570         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65571         When using lib/poll.c, define poll as rpl_poll.
65572
65573 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65574
65575         * modules/argp (Depends-on): Remove unlocked-io.
65576
65577 2005-07-14  Derek Price  <derek@ximbiot.com>
65578
65579         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65580         for glob symlink bug.
65581
65582 2005-07-14  Bruno Haible  <bruno@clisp.org>
65583
65584         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65585         Instead, test for *_unlocked function declarations directly.
65586
65587 2005-07-11  Simon Josefsson  <jas@extundo.com>
65588
65589         * modules/size_max: New file.
65590
65591         * modules/xsize: Depend on size_max module for size_max.m4.
65592
65593 2005-07-11  Simon Josefsson  <jas@extundo.com>
65594
65595         * lib/size_max.h: New file.
65596
65597 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65600         copyright symbol and the year.
65601         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65602         (version_etc_va): Use parameterized copyright notice.
65603         Reword to conform to the current GNU coding standards.
65604
65605 2005-07-11  Karl Berry  <karl@gnu.org>
65606
65607         * doc/gnulib.texi (Quoting): new node.
65608         (Initial import): more info, from Patrice.
65609
65610 2005-07-11  Bruno Haible  <bruno@clisp.org>
65611
65612         * gnulib-tool (func_usage): Document option --avoid.
65613         (Command line options): Handle --avoid.
65614         (func_acceptable): New function.
65615         (func_modules_transitive_closure): Use it.
65616
65617 2005-07-11  Bruno Haible  <bruno@clisp.org>
65618
65619         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65620         Reported by Jim Meyering.
65621
65622 2005-07-10  Bruno Haible  <bruno@clisp.org>
65623
65624         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65625         Needed when size_t is smaller than 'unsigned int'.
65626         Reported by Paul Eggert.
65627
65628 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65629
65630         * modules/argp (Depends-on): Add unlocked-io
65631
65632 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65633
65634         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65635         block of defines.
65636
65637 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65638
65639         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65640         fix now.
65641
65642 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65643         and Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65646         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65647
65648 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65649
65650         * modules/regex (Files): Add lib/regex_internal.c,
65651         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65652         (Depends-on): Add extensions.
65653         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65654
65655 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65658         pathconf.
65659         * m4/same.m4 (gl_SAME): Likewise.
65660         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65661
65662         * m4/regex.m4: Adjust to new libc regex implementation.
65663         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65664         all the .c and .h parts of (the new) regex.
65665         Quote the m4 stuff better.
65666         Check for RE_ICASE bug of old gnulib.
65667         Check for REG_STARTEND of recent libc.
65668         Rename local variables from jm_* to gl_*.
65669         Quote operand of "test -f".
65670         Say "recent enough" version of libc, not "version 2".
65671         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65672         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65673         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65674         Remove check for btowc, isascii.
65675         Require AM_LANGINFO_CODESET.
65676
65677 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * lib/regex.c, regex.h: Sync from libc.
65680         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65681         * lib/regexec.c:
65682         New files, synced from libc, except that regex_internal.h
65683         currently has a small porting fix.
65684
65685 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65686
65687         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65688         regex_internal.c, regexec.c.
65689         Add regex_internal.h too, but as a comment, since the libc version
65690         is currently broken in gnulib mode.
65691
65692 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         Support programs like Emacs that use gnulib but not gettext.
65695         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65696         * modules/gettext-h: New file.
65697         * modules/gettext (Files): Remove lib/gettext.h.
65698         (Depends-on): Add gettext-h.
65699         (Makefile.am): Remove lib_SOURCES.
65700         * modules/argmatch, modules/c-stack, modules/closeout:
65701         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65702         * modules/execute, modules/file-type, modules/getaddrinfo:
65703         * modules/getopt, modules/human, modules/javacomp:
65704         * modules/javaexec, modules/mkdir-p, modules/obstack:
65705         * modules/openat, modules/pagealign_alloc, modules/pipe:
65706         * modules/quotearg, modules/regex, modules/rpmatch:
65707         * modules/unicodeio, modules/userspec, modules/version-etc:
65708         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65709         * modules/xsetenv:
65710         Depend on gettext-h, not gettext.
65711
65712 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65713
65714         * gnulib-tool (func_import): Add support for 'public domain' license.
65715         * modules/alloca, modules/atexit, modules/memmove:
65716         Now public domain, not GPL.
65717         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65718         * modules/realloc, modules/strerror, modules/strtod:
65719         Now LGPL, not GPL.
65720
65721 2005-07-05  Bruno Haible  <bruno@clisp.org>
65722
65723         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65724         autoconf CVS. Needed for mingw.
65725
65726 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         Remove the dependency of the strftime module on the tzset module.
65729         * modules/strftime (Depends-on): Remove dependency on tzset.
65730
65731 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         Remove the dependency of the strftime module on the tzset module.
65734         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65735         gl_FUNC_TZSET_CLOBBER.
65736
65737 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65738
65739         Remove the dependency of the strftime module on the tzset module.
65740         * lib/strftime.c (my_strftime)
65741         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65742         Copy the input structure, to work around some of the bug with
65743         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65744         Solaris releases, you should also use the tzset module, but we won't
65745         require it as a dependency any more since we don't want LGPLed code
65746         to depend on GPLed code.
65747
65748 2005-07-02  Jim Meyering  <jim@meyering.net>
65749
65750         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65751         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65752         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65753         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65754
65755 2005-07-02  Jim Meyering  <jim@meyering.net>
65756
65757         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65758
65759 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65760
65761         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65762         declares only 'struct timespec;' (!).
65763
65764 2005-07-01  Jim Meyering  <jim@meyering.net>
65765
65766         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65767         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65768         * lib/save-cwd.c, tempname.c:
65769         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65770         and don't include <sys/file.h>).
65771
65772 2005-06-29  Jim Meyering  <jim@meyering.net>
65773
65774         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65775         type name.  Use the variable name instead.
65776         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65777         Likewise.
65778
65779 2005-06-28  Simon Josefsson  <jas@extundo.com>
65780
65781         * modules/check-version (Files): Add check-version.m4.
65782
65783 2005-06-28  Simon Josefsson  <jas@extundo.com>
65784
65785         * m4/check-version.m4: New file, suggested by Jim Meyering
65786         <jim@meyering.net>.
65787
65788 2005-06-28  Simon Josefsson  <jas@extundo.com>
65789
65790         * lib/check-version.h, lib/check-version.c: New files.
65791
65792 2005-06-28  Simon Josefsson  <jas@extundo.com>
65793
65794         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65795         collision with global variable.  Better indentation.  Don't
65796         increment buffer pointer beyond buffer end.  Based on comments
65797         from Paul Eggert <eggert@cs.ucla.edu>.
65798
65799         * lib/base64.h: Indent.
65800
65801 2005-06-28  Simon Josefsson  <jas@extundo.com>
65802
65803         * doc/gnulib.texi (Library version handling): New section.
65804
65805 2005-06-28  Jim Meyering  <jim@meyering.net>
65806
65807         * check-module (find_included_lib_files): Hard-code another
65808         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65809         but modules/fts-lgpl (correctly) does not list those files.
65810
65811         * modules/canonicalize (Files): Add lib/pathmax.h.
65812
65813 2005-06-25  Simon Josefsson  <jas@extundo.com>
65814
65815         * modules/check-version: New file.
65816
65817 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65818
65819         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65820         initializer of struct addrinfo, as an indication that we don't
65821         care how many members the structure has.
65822
65823 2005-06-24  Derek Price  <derek@ximbiot.com>
65824         and Bruno Haible  <bruno@clisp.org>
65825
65826         Remove stat module & update lstat.
65827         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65828         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65829         * m4/stat.m4: Remove this file.
65830
65831 2005-06-24  Derek Price  <derek@ximbiot.com>
65832         and Bruno Haible  <bruno@clisp.org>
65833
65834         Remove stat module & update lstat.
65835         * lib/stat.c: Remove this file...
65836         (slash_aware_lstat): ...moving this content and its support...
65837         * lib/lstat.c (rpl_lstat): ...into here.
65838         * lib/lstat.h: New file.
65839
65840 2005-06-24  Derek Price  <derek@ximbiot.com>
65841         and Bruno Haible  <bruno@clisp.org>
65842
65843         Remove stat module & update lstat.
65844         * config/srclist.txt (libc sources): Remove stat.
65845
65846 2005-06-24  Derek Price  <derek@ximbiot.com>
65847         and Bruno Haible  <bruno@clisp.org>
65848
65849         Remove stat module & update lstat.
65850         * MODULES.html.sh (stat): Remove.
65851         * MODULES.html: Regenerated.
65852         * modules/lstat (Description): Correct function name.
65853         (Files): Add "lstat.h".
65854         (Depends-on): Remove stat, add xalloc, stat-macros.
65855         * modules/stat: Remove this file.
65856         (Include): Add "lstat.h", remove <sys/stat.h>.
65857
65858 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65861         (ranged_convert): Don't save conversion in a temporary struct.
65862         This causes a warning with GCC 4.0.0, and anyway in the typical
65863         case it's not worth the extra 100 bytes or so of code.
65864         (ranged_convert, __mktime_internal): When calling a function via a
65865         pointer P, use P () rather than (*P) (), as we now assume C89 or
65866         better.
65867
65868 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65869
65870         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65871         "who -r" failed to give output.  Problem reported by Tim Waugh.
65872
65873         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65874         (xcalloc): Use it to avoid needless tests.
65875         Problem reported by Jim Meyering.
65876
65877 2005-06-20  Derek Price  <derek@ximbiot.com>
65878
65879         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65880         unnecessary for Autoconfs > 2.59c.
65881
65882 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65883
65884         * lib/argp.h (__option_is_short): Check upper limit of
65885         __key. Isprint() requires its argument to have the value
65886         of an unsigned char or EOF.
65887
65888 2005-06-16  Jim Meyering  <jim@meyering.net>
65889
65890         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65891         when either N or S is zero.
65892
65893 2005-06-16  Derek Price  <derek@ximbiot.com>
65894
65895         * m4/bison.m4: Declare YACC & YFLAGS precious.
65896
65897 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65898
65899         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65900         multibyte string or pattern, fall back on unibyte matching.
65901         Problem reported by James Youngman.
65902
65903 2005-06-08  Bruno Haible  <bruno@clisp.org>
65904
65905         * modules/csharpcomp: New file.
65906         * MODULES.html.sh (C#): Add csharpcomp.
65907
65908 2005-06-08  Bruno Haible  <bruno@clisp.org>
65909
65910         * m4/csharpcomp.m4: New file, from GNU gettext.
65911
65912 2005-06-08  Bruno Haible  <bruno@clisp.org>
65913
65914         * lib/csharpcomp.h: New file, from GNU gettext.
65915         * lib/csharpcomp.c: New file, from GNU gettext.
65916         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65917
65918 2005-06-08  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65921         warning on mingw.
65922
65923 2005-06-07  Derek Price  <derek@ximbiot.com>
65924
65925         Sync from CVS.
65926         * lib/glob_.h: Indent nested #ifdef.
65927
65928 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65929
65930         Sync from coreutils.
65931         Use "file name" when talking about file names, instead of "filename"
65932         or "path", as per the GNU coding standards.
65933         * lib/mkdir-p.c: Renamed from makepath.c.
65934         (make_dir_parents): Renamed from make_path.  All callers changed.
65935         * lib/mkdir-p.h: Likewise.  All includers changed.
65936         * lib/filenamecat.c: Renamed from path-concat.c.
65937         (file_name_concat): Renamed from path_concat.  All callers changed.
65938         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65939         * lib/filenamecat.h: Likewise.  All includers changed.
65940         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65941         in comments or local variable names.
65942         * lib/basename.c: Likewise.
65943         * lib/canonicalize.c, canonicalize.h: Likewise.
65944         * lib/dirname.c, dirname.h: Likewise.
65945         * lib/euidaccess.c: Likewise.
65946         * lib/exclude.c: Likewise
65947         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65948         * lib/fsusage.c, fsuage.h: Likewise.
65949         * lib/fts.c, fts_.h: Likewise.
65950         * lib/getcwd.c: Likewise.
65951         * lib/getloadavg.c: Likewise.
65952         * lib/mkstemp.c: Likewise.
65953         * lib/mountlist.c, mountlist.h: Likewise.
65954         * lib/openat.c, openat.h: Likewise.
65955         * lib/readlink-stub.c: Likewise.
65956         * lib/readutmp.c, readutmp.h: Likewise.
65957         * lib/rename.c: Likewise.
65958         * lib/rmdir.c: Likewise.
65959         * lib/same.c: Likewise.
65960         * lib/savedir.c: Likewise.
65961         * lib/stripslash.c: Likewise.
65962         * lib/tempname.c: Likewise.
65963         * lib/xreadlink.c: Likewise.
65964         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65965         All uses changed.
65966         * lib/exclude.h: Likewise.
65967
65968         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65969         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65970         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65971         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65972         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65973         files have been getting away with it for years (MORE/BSD 4.3
65974         is extinct now).
65975         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65976         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65977
65978         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65979         Define to 256, not 255, as per modern POSIX.
65980
65981 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65982
65983         Sync from coreutils.
65984         Use "file name" when talking about file names, instead of "filename"
65985         or "path", as per the GNU coding standards.
65986         * MODULES.html.sh: mkdir-p renamed from makepath.
65987         filenamecat renamed from path-concat.
65988         * modules/filenamecat: Renamed from modules/path-concat.
65989         (Files): filenamecat.h and filenamecat.c renamed from
65990         path-concat.h and path-concat.c.
65991         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65992         (Include): filenamecat.h, not path-concat.h.
65993         * modules/mkdir-p: Renamed from modules/makepath.
65994         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65995         makepath.c.
65996         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65997         (Include): mkdir-p.h, not makepath.h.
65998
65999 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         Sync from coreutils.
66002         * m4/mkdir-p.m4: Renamed from makepath.m4.
66003         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66004         Rename files from makepath.c to mkdir-p.c, and from
66005         makepath.h to mkdir-p.h.
66006         * m4/filenamecat.m4: Renamed from path-concat.m4.
66007         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66008         Rename files from path-concat.c to filenamecat.c,
66009         and from path-concat.h to filenamecat.h.
66010         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66011         "file name" in local variables or comments.
66012         * m4/rename.m4: Likewise.
66013
66014 2005-06-01  Bruno Haible  <bruno@clisp.org>
66015
66016         * modules/csharpexec: New file.
66017         * MODULES.html.sh (C#): New section.
66018
66019 2005-06-01  Bruno Haible  <bruno@clisp.org>
66020
66021         * m4/csharp.m4: New file, from GNU gettext.
66022         * m4/csharpexec.m4: New file, from GNU gettext.
66023
66024 2005-06-01  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/csharpexec.h: New file, from GNU gettext.
66027         * lib/csharpexec.c: New file, from GNU gettext.
66028         * lib/csharpexec.sh.in: New file, from GNU gettext.
66029
66030 2005-05-31  Derek Price  <derek@ximbiot.com>
66031             Paul Eggert  <eggert@cs.ucla.edu>
66032
66033         Sync from cvs.
66034         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66035
66036 2005-05-31  Derek Price  <derek@ximbiot.com>
66037             Paul Eggert  <eggert@cs.ucla.edu>
66038
66039         Sync from cvs.
66040         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66041
66042 2005-05-29  Derek Price  <derek@ximbiot.com>
66043
66044         * config/srclist.txt (glob_.h, glob.c): Add these files.
66045
66046 2005-05-29  Derek Price  <derek@ximbiot.com>
66047
66048         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66049         * modules/glob: New file.
66050         * modules/getlogin_r: Add link to POSIX spec in description.
66051
66052 2005-05-29  Derek Price  <derek@ximbiot.com>
66053             Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * m4/glob.m4: New file.
66056
66057 2005-05-29  Derek Price  <derek@ximbiot.com>
66058             Paul Eggert  <eggert@cs.ucla.edu>
66059
66060         * lib/glob_.h, lib/glob.c: New files.
66061
66062 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66063
66064         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66065         * modules/fts-lgpl (Depends-on): Remove gettext.
66066
66067 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66068
66069         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66070         and don't require gt_INTTYPES_PRI.
66071
66072 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66075
66076         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66077         the configuration hassle isn't worth it.
66078         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66079         (LONGEST_MODIFIER, PRIuMAX): Remove.
66080
66081 2005-05-27  Bruno Haible  <bruno@clisp.org>
66082
66083         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66084
66085 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66086
66087         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66088         _POSIX_PTHREAD_SEMANTICS for Solaris.
66089
66090 2005-05-25  Derek Price  <derek@ximbiot.com>
66091
66092         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66093
66094 2005-05-25  Derek Price  <derek@ximbiot.com>
66095             Paul Eggert  <eggert@cs.ucla.edu>
66096
66097         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66098         * lib/getlogin_r.c, getlogin_r.h: New files.
66099
66100 2005-05-25  Bruno Haible  <bruno@clisp.org>
66101             Derek Price  <derek@ximbiot.com>
66102
66103         * lib/getlogin_r.h: Simplify API documentation.
66104
66105 2005-05-23  Derek Price  <derek@ximbiot.com>
66106
66107         * modules/minmax (Files): Add m4/minmax.m4.
66108         (configure.ac): Add gl_MINMAX.
66109
66110 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66113         so that unistd-safer.h (GPL'ed code) need not be included.
66114
66115 2005-05-22  Bruno Haible  <bruno@clisp.org>
66116
66117         * m4/minmax.m4: New file.
66118         Based on a patch by Derek Price <derek@ximbiot.com>.
66119
66120 2005-05-22  Bruno Haible  <bruno@clisp.org>
66121
66122         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66123         (INT64_MIN): Fix definition.
66124         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66125
66126         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66127         NEED_SIGNED_INT_TYPES.
66128
66129         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66130         HAVE_SYSTEM_INTTYPES.
66131
66132 2005-05-22  Bruno Haible  <bruno@clisp.org>
66133
66134         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66135         Also include <sys/param.h> if it defines MIN, MAX.
66136         Based on a patch by Derek Price <derek@ximbiot.com>.
66137
66138 2005-05-21  Jim Meyering  <jim@meyering.net>
66139
66140         * modules/fts (Files): Add m4/inttypes-pri.m4.
66141         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66142
66143 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         New fts module.
66146         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66147         (setup_dir, free_dir): New functions.
66148         (enter_dir, leave_dir): Define trivial
66149         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66150         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66151         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66152         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66153         Move to fts-cycle.c.
66154         (fts_open): Use setup_dir.
66155         (fts_close): Use free_dir.
66156         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66157         This adds a label and some gotos, but the alternatives were messier.
66158         Check for memory allocation failure when entering a dir.
66159         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66160         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66161         (FTS): New member fts_cycle, that is a union that contains the
66162         old active_dir_ht and cycle_state.  All uses changed to mention
66163         fts_cycle.ht and fts_cycle.state.
66164         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66165         fts.c, with the following changes:
66166         (setup_dir, free_dir): New functions.
66167         (enter_dir): Now returns bool.  Return true if successful, false
66168         if memory exhausted.  All callers changed.
66169         Do not bother partly cleaning up on
66170         memory allocation failure; that is free_dir's job.
66171         However, free ad if hash_insert fails, to avoid memory leak.
66172         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66173         fts->fts_options to see which union member to use.
66174
66175 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66176
66177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66178         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66179
66180 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66183
66184 2005-05-20  Jim Meyering  <jim@meyering.net>
66185
66186         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66187         Now a macro, to pacify GCC.
66188
66189 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66190
66191         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66192         of -1.
66193
66194 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66195
66196         * lib/chown.c (rpl_chown): Return -1 on failure.
66197
66198 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66201         Don't check for stddef.h.
66202         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66203         don't use its results.
66204         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66205         since we include them unconditionally.  Don't require
66206         AM_STDBOOL_H, since stdbool is a prerequisite.
66207         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66208         since we assume C89 or better.
66209         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66210         as we don't use their results.
66211         Don't check for fchdir, memmove, memset, strrchr, as we use
66212         them unconditionally.
66213         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66214         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66215
66216 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66217
66218         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66219         Include <stddef.h> unconditionally, since we assume C89 now.
66220         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66221         * lib/fts.c: Include fts_.h first, to check interface.
66222         Do not include intprops.h; no longer needed.
66223         Include cycle-check.h and hash.h, since fts_.h no longer does.
66224         Remove unnecessary casts of closedir to void.
66225         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66226         decide whether to decrement nlinks.
66227         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66228         (FTS): Use struct hash_table * instead of Hash_table, so that
66229         we no longer need to include hash.h here.
66230
66231 2005-05-18  Jim Meyering  <jim@meyering.net>
66232
66233         * modules/dirfd (License): Change to LGPL.  Most of the code
66234         is already in the public domain.
66235
66236 2005-05-18  Jim Meyering  <jim@meyering.net>
66237
66238         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66239         Reported by Yoann Vandoorselaere.
66240
66241 2005-05-17  Jim Meyering  <jim@meyering.net>
66242
66243         * m4/fts.m4: New file, from coreutils.
66244
66245 2005-05-17  Jim Meyering  <jim@meyering.net>
66246
66247         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66248
66249 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66250
66251         Sync from coreutils.
66252         * m4/unlinkdir.m4: New file.
66253
66254 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         Sync from coreutils.
66257         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66258         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66259         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66260         White space changes only.
66261         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66262         special.
66263         * lib/yesno.c: Include getline.h, not ctype.h.
66264         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66265         Use getline to remove arbitrary restriction on response length.
66266
66267 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66268
66269         * config/srclist-update: Spell out "Street" in FSF postal
66270         mail address; this is the style the FSF seems to prefer.
66271
66272         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66273         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66274         this updates FSF postal mail address.
66275
66276         Sync from coreutils.
66277         * modules/unlinkdir: New file.
66278         * modules/yesno (Depends-on): Add getline.
66279         * MODULES.html.sh (File system functions): Add unlinkdir.
66280
66281 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66282
66283         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66284         lib/strsep.h:
66285         Change the initial comment to refer to GPL, not LGPL.
66286         gnulib-tool will change it to LGPL as needed.
66287
66288         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66289         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66290         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66291         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66292         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66293         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66294         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66295         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66296         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66297         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66298         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66299         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66300         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66301         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66302         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66303         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66304         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66305         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66306         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66307         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66308         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66309         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66310         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66311         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66312         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66313         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66314         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66315         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66316         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66317         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66318         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66319         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66320         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66321         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66322         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66323         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66324         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66325         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66326         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66327         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66328         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66329         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66330         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66331         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66332         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66333         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66334         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66335         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66336         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66337         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66338         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66339         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66340         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66341         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66342         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66343         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66344         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66345         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66346         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66347         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66348         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66349         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66350         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66351         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66352         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66353         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66354         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66355         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66356         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66357         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66358         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66359         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66360         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66361         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66362         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66363         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66364         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66365         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66366         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66367         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66368         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66369         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66370         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66371         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66372         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66373         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66374         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66375         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66376         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66377         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66378         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66379         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66380         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66381         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66382         lib/yesno.c, lib/yesno.h:
66383         Update FSF postal mail address.
66384
66385 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66386
66387         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66388         tests/test-memmem.c, tests/test-stpncpy.c:
66389         Update FSF postal mail address.
66390
66391 2005-05-13  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66394         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66395         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66396         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66397         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66398         Add support for 64-bit integers in the MSVC compiler.
66399
66400 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66401
66402         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66403
66404 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66405
66406         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66407
66408 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66409
66410         * doc/getdate.texi (General date syntax): Don't say that date
66411         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66412         Problem reported by Nic Ferrier.
66413
66414 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66415
66416         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66417         specified in ai_socktype. Fix invalid ai_protocol
66418         check. ai_protocol is usually set to 0 or depending on
66419         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66420         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66421         ai_socktype / ai_protocol in the returned addrinfo structure.
66422
66423 2005-05-10  Simon Josefsson  <jas@extundo.com>
66424
66425         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66426         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66427
66428 2005-05-10  Karl Berry  <karl@gnu.org>
66429
66430         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66431         (from http://www.gnu.org/licenses).
66432         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66433         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66434         fdl.texi suffices.
66435
66436 2005-05-10  Karl Berry  <karl@gnu.org>
66437
66438         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66439         (COPYING.DOC): remove.
66440
66441         * config/srclist-update: new FSF address.
66442
66443 2005-05-10  Derek Price  <derek@ximbiot.com>
66444
66445         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66446         possible.
66447
66448 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66449             Bruno Haible  <bruno@clisp.org>
66450
66451         * modules/inet_ntop: New file.
66452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66453         inet_ntop.
66454
66455 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66456             Bruno Haible  <bruno@clisp.org>
66457
66458         * m4/inet_ntop.m4: New file.
66459
66460 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66461             Bruno Haible  <bruno@clisp.org>
66462
66463         * lib/inet_ntop.h: New file.
66464         * lib/inet_ntop.c: New file, from glibc with modifications.
66465
66466 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66467
66468         * modules/time_r (License): Change to LGPL.
66469         * modules/extensions (License): Change to LGPL.  Actually,
66470         the license is more permissive than that, but currently gnulib-tool
66471         doesn't know how to handle more-permissive licenses.
66472
66473         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66474         Problem reported by Dave Love.
66475
66476 2005-05-08  Jim Meyering  <jim@meyering.net>
66477
66478         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66479         blank.
66480
66481 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         * modules/argmatch (Depends-on): Add stdbool.
66484         * modules/backupfile (Depends-on): Likewise.
66485         * modules/chdir-long (Depends-on): Likewise.
66486         * modules/closeout (Depends-on): Likewise.
66487         * modules/cycle-check (Depends-on): Likewise.
66488         * modules/dirname (Depends-on): Likewise.
66489         * modules/fnmatch (Depends-on): Likewise.
66490         * modules/fsusage (Depends-on): Likewise.
66491         * modules/fwriteerror (Depends-on): Likewise.
66492         * modules/getcwd (Depends-on): Likewise.
66493         * modules/getloadavg (Depends-on): Likewise.
66494         * modules/hard-locale (Depends-on): Likewise.
66495         * modules/makepath (Depends-on): Likewise.
66496         * modules/mountlist (Depends-on): Likewise.
66497         * modules/nanosleep (Depends-on): Likewise.
66498         * modules/posixtm (Depends-on): Likewise.
66499         * modules/quotearg (Depends-on): Likewise.
66500         * modules/readtokens (Depends-on): Likewise.
66501         * modules/readtokens0 (Depends-on): Likewise.
66502         * modules/readutmp (Depends-on): Likewise.
66503         * modules/save-cwd (Depends-on): Likewise.
66504         * modules/strftime (Depends-on): Likewise.
66505         * modules/userspec (Depends-on): Likewise.
66506         * modules/utimecmp (Depends-on): Likewise.
66507         * modules/xgetcwd (Depends-on): Likewise.
66508         * modules/xnanosleep (Depends-on): Likewise.
66509         * modules/xstrtod (Depends-on): Likewise.
66510         * modules/yesno (Depends-on): Likewise.
66511
66512 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66515         needless checks.
66516
66517 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66518
66519         Merge from coreutils.  Among other things,
66520         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66521         * lib/fd-safer.c: New file.
66522         * lib/fcntl-safer.h, open-safer.c: Remove.
66523         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66524         * lib/dup-safer.c: Include unistd-safer.h first.
66525         Don't include errno.h.
66526         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66527         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66528         * lib/file-type.c: Rely on file-type.h change.
66529         * lib/getloadavg.c: Include unistd-safer.h.
66530         (getloadavg): Use safer open.
66531         * lib/getusershell.c: Include "stdio-safer.h".
66532         (getusershell): Use safer fopen.
66533         * lib/long-options.c (long_options): Use NULL rather than 0.
66534         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66535         'free'.
66536         * lib/modechange.c: Likewise.
66537         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66538         (MODE_DONE): New constant.
66539         (struct mode_change): Remove 'next' member.
66540         (make_node_op_equals): New function; like the old one of the
66541         same name, except it allocates an array.
66542         (mode_compile, mode_create_from_ref): Use it.
66543         (mode_compile): Allocate result as an array, not a linked list.
66544         Parse octal string ourself, so that we catch mistakes like "+0".
66545         (mode_adjust): Arg is an array, not a linked list.
66546         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66547         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66548         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66549         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66550         Remove.  This is now stat-macros.h's job.
66551         (talloc): Remove.  All callers replaced by xalloc, so that
66552         our invokers don't have to worry about reporting memory failures.
66553         (make_node_op_equals): Remove.
66554         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66555         New constants.
66556         (struct mode_change): Moved here from modechange.h.
66557         (mode_append_entry): Remove.
66558         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66559         apps to have incorrect behavior.  Use simpler algorithm for head
66560         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66561         Detect more invalid usages rather than having somewhat-random behavior.
66562         Don't insert an "a=" action, as that leads to incorrect behavior.
66563         (mode_compile, mode_create_from_ref): Return NULL on error instead
66564         of an enum, since now there's only one way to have an error.  All
66565         callers changed.
66566         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66567         at the correct time.  Simplify calculation of "+u" and its ilk.
66568         Don't mishandle "+X".
66569         (mode_free): Remove "register" and localize decls.
66570         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66571         (struct mode_change): Move to modechange.c; callers don't
66572         need to see this stuff.
66573         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66574         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66575         (mode_change, mode_adjust): Reflect the new signatures noted above.
66576         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66577         that might redefine system include files.
66578         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66579         (my_usleep): Use NULL rather than (void *) 0.
66580         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66581         Use siginterrupt to specify that system calls should be interrupted.
66582         (rpl_nanosleep): Move initialization of suspended closer to call of
66583         my_usleep.
66584         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66585         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66586         (desirable_utmp_entry): New function.
66587         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66588         using x2nrealloc, to simplify logic.
66589         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66590         size calculation.  Do not assume utmp file is a regular file.
66591         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66592         (READ_UTMP_CHECK_PIDS): New constant.
66593         * lib/save-cwd.c: Include unistd-safer.h.
66594         (save_cwd): Use fd_safer.
66595         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66596         [!_LIBC] Include "stat-macros.h" instead.
66597         * lib/unistd-safer.h (fd_safer): New decl.
66598
66599 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66600
66601         * modules/getloadavg (Depends-on): Add unistd-safer.
66602         * modules/getusershell (Depends-on): Add stdio-safer.
66603         * modules/lstat (Depends-on): Remove xalloc.
66604         * modules/mkstemp (Depends-on): Add stat-macros.
66605         * modules/modechange (Depends-on): Remove xstrtol.
66606         Add stat-macros, xalloc.
66607         * modules/save-cwd (Depends-on): Add unistd-safer.
66608         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66609         * modules/unistd-safer (Files): Add lib/fd-safer.c
66610         (Makefile.am): Remove lib_SOURCES.
66611
66612         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66613         Remove fcntl-safer; unistd-safer supersedes it.
66614
66615 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66616
66617         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66618         AC_HEADER_STAT.
66619         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66620         (gl_PREREQ_CHOWN): Remove.
66621         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66622         it.  Don't require AC_HEADER_STAT.
66623         (gl_PREREQ_LSTAT): Remove.
66624         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66625         Don't require AC_HEADER_STAT.
66626         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66627         (gl_PREREQ_RMDIR): Remove.
66628         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66629         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66630         the stat-macros module a prerequisite.
66631         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66632         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66633         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66634         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66635         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66636         variable names.
66637         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66638         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66639         variable prefixes.
66640         * m4/fcntl-safer.m4: Remove.
66641         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66642         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66643         Invoke gl_PREREQ_FD_SAFER.
66644         (gl_PREREQ_FD_SAFER): New macro.
66645         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66646         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66647         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66648         Remove duplicate call to AC_LIBOBJ(readutmp).
66649         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66650
66651         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66652         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66653
66654 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66655
66656         * MODULES.html.sh (Misc): Add byteswap.
66657
66658 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66659
66660         * modules/getcwd (Depends-on): Add extensions.
66661         * modules/openat (Depends-on): Likewise.
66662
66663 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66664
66665         * modules/byteswap: New file.
66666
66667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66668
66669         * m4/byteswap.m4: New file.
66670
66671 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66672
66673         * lib/byteswap_.h: New file.
66674
66675 2005-04-25  Karl Berry  <karl@gnu.org>
66676
66677         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66678
66679 2005-04-25  Albert Chin  <china@thewrittenword.com>
66680
66681         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66682         Toolkit C bug.
66683
66684 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66685
66686         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66687         (func_ln_if_changed) Remove forcibly for no error message
66688         in case file does not exist.
66689
66690 2005-04-19  Simon Josefsson  <jas@extundo.com>
66691
66692         * gnulib-tool (Options): Make --symlink mean --symbolic.
66693
66694 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66695
66696         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66697
66698 2005-04-16  Simon Josefsson  <jas@extundo.com>
66699
66700         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66701
66702 2005-04-15  Simon Josefsson  <jas@extundo.com>
66703
66704         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66705
66706 2005-04-15  Simon Josefsson  <jas@extundo.com>
66707
66708         * gnulib-tool: Rename --symlink to --symbolic.
66709
66710 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66711
66712         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66713         symbolic links to files instead of copying/moving.  Add --aux-dir,
66714         specifying directory relative --dir where auxiliary build tools
66715         are placed.
66716
66717 2005-04-14  Bruno Haible  <bruno@clisp.org>
66718
66719         * modules/allocsa (License): Change to LGPL.
66720         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66721
66722 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66725         that "UTC +1 second" continues to work.  Problem reported
66726         by Dmitry V. Levin.
66727         (relunit_snumber): New rule.
66728         (relunit): Use it.
66729
66730 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66731
66732         * lib/getdate.y (universal_time_zone_table): New constant.
66733         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66734         universal_time_zone_table.
66735         (lookup_zone): Prefer universal_time_zone_table to
66736         local_time_zone_table, so that "GMT" time stamps are allowed in
66737         London during the summer.  Problem reported by Ian Abbott.
66738
66739 2005-04-12  Jim Meyering  <jim@meyering.net>
66740
66741         * lib/human.c (humblock): Set *options even when returning due to
66742         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66743         warning from gcc-4.
66744
66745 2005-04-09  Jim Meyering  <jim@meyering.net>
66746
66747         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66748         -Wuninitialized: initialize tm0.tm_year.
66749
66750 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66751
66752         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66753         count, since there's no maximum.  All uses changed.
66754         Add member dsts_seen.
66755         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66756         not being INT_MAX.
66757         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66758         Use pc_rels_seen to decide whther a date is absolute.
66759
66760         * lib/getdate.y (number): Don't overwrite year.
66761         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66762         check.
66763
66764 2005-04-02  Simon Josefsson  <jas@extundo.com>
66765
66766         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66767         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66768
66769 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66770
66771         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66772         where no absolute path name can be longer than PATH_MAX.
66773
66774 2005-03-27  Jim Meyering  <jim@meyering.net>
66775
66776         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66777
66778 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66781         "one's complement" -> "ones' complement" in comment, as per Knuth.
66782         "value of type" -> "type or expression" in comment.
66783         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66784
66785 2005-03-26  Jim Meyering  <jim@meyering.net>
66786
66787         Comment nits.
66788         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66789         Correct typos: s/or/of/.
66790
66791 2005-03-26  Jim Meyering  <jim@meyering.net>
66792
66793         * modules/check-include-files: Move to ../ and rename to...
66794         * check-module: ...this.
66795
66796 2005-03-25  Jim Meyering  <jim@meyering.net>
66797
66798         * modules/xvasprintf (Files): Add xalloc.h.
66799
66800 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * modules/gettext (Files): config/config.rpath ->
66803         build-aux/config.rpath
66804         * modules/iconv (Files): Likewise.
66805         Problem reported by Oskar Liljeblad.
66806
66807 2005-03-23  Jim Meyering  <jim@meyering.net>
66808
66809         * modules/check-include-files: New script to check for
66810         missing dependencies, multiple includes, etc.
66811
66812         * modules/c-strtold (Depends-on): Add xalloc.
66813         * modules/c-strtod (Depends-on): Add xalloc.
66814         * modules/hash (Depends-on): Add xalloc.
66815         (Files): Remove lib/xalloc.h.
66816
66817         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66818         * modules/userspec (Files): Add lib/inttostr.h.
66819
66820 2005-03-23  Jim Meyering  <jim@meyering.net>
66821
66822         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66823
66824 2005-03-22  Jim Meyering  <jim@meyering.net>
66825
66826         * modules/stat-macros: New module.
66827         * modules/canonicalize, modules/euidaccess, modules/file-type,
66828         * modules/filemode, modules/lchown, modules/makepath,
66829         * modules/rmdir, modules/stat: Depend on new stat-macros module
66830         rather than listing lib/stat-macros.h manually.
66831         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66832
66833 2005-03-22  Jim Meyering  <jim@meyering.net>
66834
66835         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66836
66837 2005-03-22  Bruno Haible  <bruno@clisp.org>
66838
66839         * config/srclist.txt: Replace target directory 'config' with
66840         'build-aux'.
66841         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66842         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66843         ../build-aux/.
66844
66845 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * modules/chdir-long (Depends-on): Add mempcpy.
66848
66849         * modules/acl, modules/backupfile, modules/c-strtod,
66850         modules/c-strtold, modules/canon-host, modules/canonicalize,
66851         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66852         modules/exclude, modules/exitfail, modules/file-type,
66853         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66854         modules/getdate, modules/getline, modules/getpagesize,
66855         modules/getpass, modules/getugroups, modules/group-member,
66856         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66857         modules/inttostr, modules/long-options, modules/makepath,
66858         modules/md5, modules/memcasecmp, modules/memcoll,
66859         modules/modechange, modules/mountlist, modules/path-concat,
66860         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66861         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66862         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66863         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66864         modules/strftime, modules/strndup, modules/strverscmp,
66865         modules/timespec, modules/unlocked-io, modules/userspec,
66866         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66867         modules/yesno:
66868         Remove lib_SOURCES line from Makefile.am section, as this is now
66869         done automatically by the corresponding Autoconf macro.
66870
66871 2005-03-21  Jim Meyering  <jim@meyering.net>
66872
66873         Changes imported from coreutils.
66874
66875         * lib/cycle-check.c: Don't include xalloc.h.
66876
66877         * lib/path-concat.c: Don't include assert.h.
66878         (path_concat): Remove assertion that would have triggered
66879         for ABASE starting with more than one slash.
66880         Reported by Andreas Schwab.
66881
66882         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66883         properly when ABASE is an absolute file name.
66884         Correct the description of this function.
66885         Include <assert.h>.
66886         Add an assertion and a test driver.
66887         This fixes a bug introduced on 2004-07-02.
66888         Andreas Schwab reported the resulting failure of cp --parents:
66889         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66890
66891 2005-03-21  Jim Meyering  <jim@meyering.net>
66892
66893         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66894         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66895
66896 2005-03-21  Jim Meyering  <jim@meyering.net>
66897         and  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66900         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66901         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66902         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66903         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66904         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66905         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66906         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66907         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66908         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66909         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66910         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66911         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66912         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66913         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66914         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66915         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66916         for these modules.
66917
66918 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66921         (which shouldn't happen), generate nothing instead of returning 0
66922         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66923
66924 2005-03-16  Bruno Haible  <bruno@clisp.org>
66925
66926         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66927         HAVE_LONGLONG_64BIT.
66928
66929 2005-03-16  Bruno Haible  <bruno@clisp.org>
66930
66931         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66932         HAVE_LONGLONG_64BIT.
66933
66934 2005-03-16  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66937         HAVE_LONGLONG_64BIT.
66938
66939 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66940
66941         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66942         reliably distinguish strftime failure from empty output on POSIX
66943         hosts.
66944
66945 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66948         (iconv_string): Don't guess a size-zero buffer, as that might cause
66949         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66950         result would be 'too large', where 'too large' is (heuristically)
66951         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66952         overflow concerns.  This will prevent some unwanted malloc failures
66953         when the inputs are very large.
66954
66955 2005-03-15  Karl Berry  <karl@gnu.org>
66956
66957         * config/srclist.txt (config.rpath): from gettext.
66958         * config/config.rpath: update.
66959
66960 2005-03-15  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66963         to 'negate'.
66964
66965         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66966         variable.
66967
66968         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66969         results.
66970
66971 2005-03-14  Simon Josefsson  <jas@extundo.com>
66972
66973         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66974         <fx@gnu.org>.
66975
66976 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66979         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66980         intprops.h.
66981         * lib/strtol.c: Likewise.
66982
66983 2005-03-14  Jim Meyering  <jim@meyering.net>
66984
66985         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66986         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66987         to be nonzero so that we (and caller) can detect the difference
66988         between a valid zero-length expansion and an error return, even
66989         when the underlying strftime fails before writing anything into
66990         that location.
66991
66992 2005-03-14  Bruno Haible  <bruno@clisp.org>
66993
66994         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66995         Update from GNU gettext 0.14.3.
66996
66997 2005-03-10  Jim Meyering  <jim@meyering.net>
66998
66999         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67000
67001 2005-03-10  Jim Meyering  <jim@meyering.net>
67002
67003         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67004         so that this module works on systems without fchdir.
67005
67006 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         Factor int-properties macros into a single file, except for
67009         glibc-related files.
67010         * lib/intprops.h: New file.
67011         * lib/getloadavg.c: Include it instead of limits.h.
67012         (INT_STRLEN_BOUND): Remove.
67013         * lib/human.c: Include intprops.h.
67014         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67015         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67016         302/1000.
67017         * lib/inttostr.h: Include intprops.h instead of limits.h.
67018         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67019         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67020         for consistency with intprops.h.
67021         (time_t_is_integer, twos_complement_arithmetic): Use them.
67022         * lib/sig2str.h: Include <signal.h>, intprops.h.
67023         (INT_STRLEN_BOUND): Remove.
67024         * lib/strftime.c (TYPE_SIGNED): Remove.
67025         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67026         * lib/strtol.c: Adjust comments to match intprops.h.
67027         * lib/userspec.c: Include intprops.h.
67028         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67029         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67030         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67031         instead of rolling our own expressions.
67032         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67033
67034         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67035         instead of int.
67036         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67037         the right thing even if adding 1900 would overflow.  Similarly
67038         for tm_mon + 1 and tm_yday + 1.
67039         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67040         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67041         (DO_SIGNED_NUMBER): New macro.
67042         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67043
67044 2005-03-07  Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67047
67048 2005-03-07  Bruno Haible  <bruno@clisp.org>
67049
67050         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67051
67052 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67053
67054         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67055         (func_import): Only replace files via --import when they have actually
67056         changed.
67057
67058 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67059
67060         * m4/mmap-anon.m4: New file.
67061         * m4/pagealign_alloc.m4: New file.
67062
67063 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67064             Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/pagealign_alloc: New file.
67067         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67068
67069 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67070             Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/pagealign_alloc.h: New file.
67073         * lib/pagealign_alloc.c: New file.
67074
67075 2005-03-03  Bruno Haible  <bruno@clisp.org>
67076
67077         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67078         Use an all-permissive copyright notice, recommended by RMS.
67079
67080 2005-03-02  Bruno Haible  <bruno@clisp.org>
67081
67082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67083         of AIX, the replacement has to be done only after <string.h> is
67084         included, therefore not in config.h. stpncpy.h does the replacement,
67085         and stpncpy.c uses it.
67086
67087 2005-03-02  Bruno Haible  <bruno@clisp.org>
67088
67089         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67090         stpncpy.c uses it.
67091
67092 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67093
67094         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67095         The workaround isn't strictly needed for POSIX conformance, and
67096         it's too much of a pain to configure and maintain.  We'll ask
67097         people to fix their kernels instead.
67098         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67099         (NANOSLEEP_BUG_WORKAROUND): Remove.
67100         (xnanosleep): Remove the workaround.
67101
67102 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67103
67104         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67105         Reported by Derek Price.
67106         (Include): Add "timespec.h".
67107
67108         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67109
67110 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67113         to detect nanosleep bug.
67114
67115 2005-03-01  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67118
67119 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * modules/gethrxtime: New file.
67122         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67123         (Depends-on): Add gethrxtime.
67124         (configure.ac): Add gl_XNANOSLEEP.
67125         (Makefile.am): Remove lib_SOURCES line.
67126
67127 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67128
67129         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67130         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67131
67132 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67133
67134         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67135         * lib/timespec.h (gettime): Return void, since it always
67136         succeeds now.  All uses changed.
67137         * lib/gettime.c (gettime) Likewise.
67138         [HAVE_NANOTIME]: Prefer nanotime.
67139         Assume gettimeofday succeeds, as POSIX requires.
67140         Assime time () succeeds, since other code already does.
67141         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67142         (timespec_subtract): Remove.
67143         (NANOSLEEP_BUG_WORKAROUND): New constant.
67144         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67145         things considerably.  Use it only on GNU/Linux hosts, since the
67146         workaround shouldn't be needed elsewhere.
67147
67148 2005-02-24  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/gettext (Files): Add m4/glibc2.m4.
67151
67152 2005-02-24  Bruno Haible  <bruno@clisp.org>
67153
67154         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67155         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67156         * m4/progtest.m4:
67157         Update from GNU gettext 0.14.2.
67158         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67159
67160 2005-02-24  Bruno Haible  <bruno@clisp.org>
67161
67162         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67163         * lib/config.charset: Update from GNU gettext 0.14.2.
67164
67165 2005-02-24  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/gettext.h: Update from GNU gettext 0.14.2.
67168
67169 2005-02-23  Simon Josefsson  <jas@extundo.com>
67170
67171         * m4/iconvme.m4: New file.
67172
67173 2005-02-23  Jim Meyering  <jim@meyering.net>
67174
67175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67176         change.
67177         Thanks to Bruno Haible for catching it.
67178
67179 2005-02-22  Simon Josefsson  <jas@extundo.com>
67180
67181         * modules/iconvme: New file.
67182
67183         * MODULES.html.sh: Add iconvme.
67184
67185 2005-02-22  Simon Josefsson  <jas@extundo.com>
67186
67187         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67188
67189 2005-02-22  Simon Josefsson  <jas@extundo.com>
67190
67191         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67192
67193 2005-02-22  Jim Meyering  <jim@meyering.net>
67194
67195         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67196         s/ifndef/ifdef/.
67197
67198 2005-02-20  Neil Conway  <neilc@samurai.com>
67199
67200         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67201         returned by OSX/Darwin if the specified buffer is not large
67202         enough for the hostname.
67203
67204 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67205
67206         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67207         pass it to _help, otherwise the latter coredumps trying to
67208         dereference state.root_argp.
67209
67210 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67211
67212         * modules/chdir-long (Depends-on): Add memrchr.
67213         * modules/memrchr (Files): Add lib/memrchr.h.
67214         (Include): "memrchr.h".
67215
67216 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67219
67220 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/memrchr.h: New file.
67223         * lib/chdir-long.c: Include it.
67224         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67225         Don't bother including stddef.h.
67226
67227 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67230         inclusion.
67231         Include <sys/types.h>, for dev_t.
67232         (ME_DUMMY, ME_REMOTE): Move from here....
67233         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67234         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67235         Dmitry V. Levin.
67236         Include mountlist.h first, to test the interface.
67237
67238 2005-01-29  Bruno Haible  <bruno@clisp.org>
67239
67240         * lib/progname.c (program_name): Initialize.
67241         Needed when linking statically on MacOS X.
67242
67243 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67244
67245         Sync from coreutils.
67246         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67247         (Depends-on): Add c-strtod.
67248         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67249
67250 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         Sync from coreutils.
67253         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67254
67255         Remove files that are specific to coreutils.
67256         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67257
67258 2005-01-28  Bruno Haible  <bruno@clisp.org>
67259
67260         * modules/javacomp: New file.
67261         * MODULES.html.sh (Java): Add javacomp.
67262
67263 2005-01-28  Bruno Haible  <bruno@clisp.org>
67264
67265         * m4/javacomp.m4: New file, from GNU gettext.
67266
67267 2005-01-28  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/javacomp.sh.in: New file, from GNU gettext.
67270         * lib/javacomp.h: New file, from GNU gettext.
67271         * lib/javacomp.c: New file, from GNU gettext.
67272
67273 2005-01-26  Simon Josefsson  <jas@extundo.com>
67274
67275         * lib/gai_strerror.c: Use GPL in header.
67276
67277 2005-01-26  Bruno Haible  <bruno@clisp.org>
67278
67279         * modules/javaexec: New file.
67280         * MODULES.html.sh (Java): Add javaexec.
67281
67282 2005-01-26  Bruno Haible  <bruno@clisp.org>
67283
67284         * m4/javaexec.m4: New file, from GNU gettext.
67285
67286 2005-01-26  Bruno Haible  <bruno@clisp.org>
67287
67288         * lib/javaexec.sh.in: New file, from GNU gettext.
67289         * lib/javaexec.h: New file, from GNU gettext.
67290         * lib/javaexec.c: New file, from GNU gettext.
67291
67292 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67293
67294         * modules/lchown (Depends-on): Remove lchown.h
67295
67296 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67297
67298         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67299         must be defined if the header file was not found, in order
67300         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67301
67302 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67303
67304         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67305         initializers for struct pentry_state.
67306         (__argp_error): Check return value of __asprintf
67307         (__argp_failure): Translate error message
67308
67309         * lib/argp-parse.c: Removed braces around the expansion of N_()
67310
67311 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67312
67313         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67314         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67315         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67316         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67317         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67318         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67319         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67320         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67321         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67322         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67323         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67324         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67325         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67326         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67327         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67328         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67329         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67330         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67331         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67332         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67333         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67334         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67335         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67336         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67337         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67338         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67339         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67340         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67341         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67342         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67343         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67344         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67345         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67346         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67347         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67348         Use an all-permissive copyright notice, recommended by RMS.
67349
67350 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * modules/chdir-long (Depends-on): Remove mempcpy.
67353
67354 2005-01-21  Jim Meyering  <jim@meyering.net>
67355
67356         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67357         same value as for Solaris 9.
67358
67359         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67360         component length.  This included changing the parameter to be
67361         of type `char *' rather than `char const *'.
67362         * lib/chdir-long.h (chdir_long): Update prototype.
67363
67364         * lib/openat.c (fdopendir, fstatat): New functions.
67365         * lib/openat.h: Include headers required for use of DIR and struct
67366         stat.
67367         [AT_SYMLINK_NOFOLLOW]: Define.
67368         (fdopendir, fstatat): Add prototypes.
67369
67370 2005-01-21  Bruno Haible  <bruno@clisp.org>
67371
67372         * modules/classpath: New file.
67373         * MODULES.html.sh (Java): Add classpath.
67374
67375 2005-01-21  Bruno Haible  <bruno@clisp.org>
67376
67377         * lib/classpath.h: New file, from GNU gettext.
67378         * lib/classpath.c: New file, from GNU gettext.
67379
67380 2005-01-20  Simon Josefsson  <jas@extundo.com>
67381
67382         * modules/version-etc-fsf: New file.
67383
67384 2005-01-20  Simon Josefsson  <jas@extundo.com>
67385
67386         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67387         * lib/version-etc.c: Remove version_etc_copyright.
67388         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67389         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67390
67391 2005-01-20  Simon Josefsson  <jas@extundo.com>
67392
67393         * lib/base64.h (isbase64): Add.
67394
67395         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67396         using a unsigned prototype, don't inline.
67397         (base64_decode): Use it.
67398
67399 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67402         it.
67403
67404 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67405
67406         * lib/save-cwd.c (save_cwd): Remove code to support the case
67407         where fchdir is missing or flaky.
67408
67409 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67410
67411         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67412
67413 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67414
67415         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67416         AC_LIBSOURCES now does this.
67417         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67418         with new ullong_max module.
67419
67420 2005-01-19  Bruno Haible  <bruno@clisp.org>
67421
67422         * modules/sh-quote: New file.
67423         * MODULES.html.sh (Executing programs): Add sh-quote.
67424
67425 2005-01-19  Bruno Haible  <bruno@clisp.org>
67426
67427         * lib/sh-quote.h: New file, from GNU gettext.
67428         * lib/sh-quote.c: New file, from GNU gettext.
67429
67430 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         Merge from coreutils.
67433         * m4/ullong_max.m4: New file.
67434         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67435         (gl_MACROS): Assume localeconv exists.
67436
67437 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67438
67439         Merge changes from coreutils, as described below in several
67440         changelogs dated today.
67441
67442         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67443         (O_DIRECTORY): Remove; not needed here, since "." must be
67444         a directory.  All uses removed.
67445         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67446         universal on Suns, and we also need to test for IRIX.
67447         Revamp code to use 'if' rather than '#if'.
67448         Avoid unnecessary comparison of cwd->desc to 0.
67449
67450         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67451         for known valid error numbers rather than observed invalid ones.
67452
67453 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * modules/ullong_max: New file.
67456
67457         * modules/chdir-long, modules/openat: New files.
67458         * modules/save-cwd (Depends-on): Depend on chdir-long.
67459         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67460
67461 2005-01-18  Jim Meyering  <jim@meyering.net>
67462
67463         Merge from coreutils.
67464         * m4/chdir-long.m4, m4/openat.m4: New files.
67465         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67466         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67467         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67468         is sane and DOES follow symlinks.  Besides, testing 20 different
67469         systems found no broken chown implementations.
67470         Prompted by a change in rsync's copy of this macro.
67471         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67472
67473         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67474
67475         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67476         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67477         NULL-means-set-to-current-time semantics.
67478         Remove temporary file immediately, rather than waiting
67479         for configure's at-exit trap code to do it.
67480
67481 2005-01-18  Jim Meyering  <jim@meyering.net>
67482
67483         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67484
67485         * lib/utimens.c (futimens): Account for the fact that futimes
67486         can also fail with errno == ENOSYS or errno == ENOENT.
67487         Patch from Dmitry V. Levin.
67488
67489         Change the name of the robust chdir function from chdir to chdir_long.
67490         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67491         (restore_cwd): Use chdir_long, not chdir.
67492         * lib/chdir-long.c: Renamed from chdir.c.
67493         * lib/chdir-long.h: Renamed from chdir.h.
67494         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67495         Hurd.
67496
67497 2005-01-18  Bruno Haible  <bruno@clisp.org>
67498
67499         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67500         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67501         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67502         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67503         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67504         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67505         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67506         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67507         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67508         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67509         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67510         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67511         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67512         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67513         Use an all-permissive copyright notice, recommended by RMS.
67514
67515 2005-01-18  Bob Proulx  <bob@proulx.com>
67516
67517         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67518         simplify offsetof() macro construct to avoid compile failure with
67519         native HP-UX 11.0 ANSI C compiler.
67520
67521 2005-01-17  Bruno Haible  <bruno@clisp.org>
67522
67523         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67524         redundant because stpncpy.m4 takes care of it.
67525
67526 2005-01-17  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67529
67530 2005-01-17  Bruno Haible  <bruno@clisp.org>
67531
67532         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67533         used.
67534
67535 2005-01-17  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/fwriteerror.h (fwriteerror): Change specification to include
67538         fclose.
67539         * lib/fwriteerror.c: Include <stdbool.h>.
67540         (fwriteerror): At the end, close the file stream. Record whether
67541         stdout was already closed.
67542
67543 2005-01-17  Bruno Haible  <bruno@clisp.org>
67544
67545         * lib/execute.c (environ): Declare if needed.
67546         * lib/pipe.c (environ): Likewise.
67547         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67548
67549 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67550
67551         * modules/argp: Depend on vsnprintf
67552
67553 2005-01-10  Jim Meyering  <jim@meyering.net>
67554
67555         * modules/closeout (Depends-on): Add atexit.
67556
67557 2005-01-06  Bruno Haible  <bruno@clisp.org>
67558
67559         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67560
67561 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67564         definitions to be after all include files, to avoid collisions.
67565         Problem reported by Bob Proulx.
67566
67567 2005-01-04  Jim Meyering  <jim@meyering.net>
67568
67569         Changes imported from coreutils.
67570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67571         as the mkstemp template, use a temporary directory and an
67572         8.3-friendly template to avoid trouble on systems like DJGPP.
67573         Reported by Juan M. Guerrero via Stepan Kasal.
67574         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67575         close. Remove the temporary directory right away, rather than waiting
67576         for configure's at-exit trap code to do it.
67577         Suggestion from Stepan Kasal.
67578
67579 2005-01-01  Simon Josefsson  <jas@extundo.com>
67580
67581         * gnulib-tool: Print #include directives when --import'ing.
67582
67583 2004-12-28  Simon Josefsson  <jas@extundo.com>
67584
67585         * tests/test-base64.c: Include required header files.  Remove
67586         unused variables.
67587
67588 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67589
67590         * modules/error (Depends-on): Remove gettext.
67591
67592 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67593
67594         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67595         not needed.  This removes a dependency on the gettext module.
67596         [defined _LIBC]: Do not include <libintl.h>; not needed.
67597
67598 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67599
67600         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67601         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67602
67603 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67606         HAVE_DECL_STRTOLD.
67607
67608 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67609
67610         * modules/getdate (Depends-on): Remove alloca-opt.
67611
67612 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67613
67614         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67615
67616 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67617
67618         * lib/argp-parse.c: Include <stddef.h>.
67619         (alignof, alignto): New macros.
67620         (parser_init): Don't assume that void * is aligned sufficiently
67621         for struct option.
67622
67623         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67624         need to extend the stack.
67625         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67626         large.
67627
67628 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67629
67630         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67631
67632 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67633
67634         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67635         (2004-10-24) change.  Apparently this was a false alarm.
67636
67637         * modules/getdate: Depend on alloca-opt, not alloca.
67638
67639 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67642         Remove now-obsolete comment about AIX.
67643         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67644         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67645         (YYMAXDEPTH): New macro.
67646
67647 2004-12-18  Simon Josefsson  <jas@extundo.com>
67648
67649         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67650
67651 2004-12-18  Bruno Haible  <bruno@clisp.org>
67652
67653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67654
67655 2004-12-18  Bruno Haible  <bruno@clisp.org>
67656
67657         * lib/fatal-signal.c (fatal_signals): Make non-const.
67658         (init_fatal_signals): New function.
67659         (uninstall_handlers, install_handlers): Ignore signals that were set to
67660         SIG_IGN.
67661         (at_fatal_signal): Call init_fatal_signals.
67662         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67663         SIG_IGN.
67664         Reported by Paul Eggert.
67665
67666 2004-12-18  Bruno Haible  <bruno@clisp.org>
67667
67668         * doc/alloca.texi: New file.
67669         * doc/alloca-opt.texi: New file.
67670
67671 2004-12-17  Jim Meyering  <jim@meyering.net>
67672
67673         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67674         Otherwise, install-sh could exit with improper exit status when
67675         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67676
67677 2004-12-16  Simon Josefsson  <jas@extundo.com>
67678
67679         * tests/test-base64.c: Add license.
67680
67681 2004-12-15  Stepan Kasal  <address@hidden>
67682
67683         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67684
67685 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67686
67687         * modules/getcwd (Files): Add m4/d-ino.m4.
67688         Suggested by Mark D. Baushke.
67689
67690 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * lib/getdate.y (textint): New member "negative".
67693         (time_zone_hhmm): New function.
67694         Expect 14 shift-reduce conflicts, not 13.
67695         (o_colon_minutes): New rule.
67696         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67697         (yylex): Set the "negative" member of signed numbers.
67698
67699 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * doc/getdate.texi (Time of day items, Time zone items):
67702         Describe new formats +00:00, UTC+00:00.
67703
67704 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67707         spurious "-l"s.  Problem reported by Stepan Kasal.
67708
67709 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67712         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67713
67714 2004-12-04  Simon Josefsson  <jas@extundo.com>
67715
67716         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67717         Vandoorselaere <yoann@prelude-ids.org>.
67718
67719 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         Changes imported from coreutils.
67722         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67723         exist.
67724         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67725
67726 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         Changes imported from coreutils.
67729         * lib/hard-locale.c: Assume <locale.h> exists.
67730         Include "strdup.h".
67731         (GLIBC_VERSION): New macro.
67732         (hard_locale): Assume setlocale exists.
67733         Rewrite to avoid #ifdef.
67734         Use strdup rather than malloc + strcpy.
67735         * lib/human.c: Assume <locale.h> exists.
67736         (human_readable): Assume localeconv exists.
67737
67738 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * modules/hard-locale (Depends-on): Add strdup.
67741
67742 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67743
67744         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67745         convert T2, not T.  (Imported from libc.)
67746
67747 2004-11-30  Simon Josefsson  <jas@extundo.com>
67748
67749         * modules/restrict (License): Change to LGPL.
67750
67751 2004-11-30  Simon Josefsson  <jas@extundo.com>
67752
67753         * m4/restrict.m4: Add copyright and copying conditions.
67754
67755 2004-11-30  Simon Josefsson  <jas@extundo.com>
67756
67757         * m4/base64.m4: New file.
67758
67759 2004-11-30  Simon Josefsson  <jas@extundo.com>
67760
67761         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67762         base64.
67763
67764         * tests/test-base64.c: New file.
67765
67766         * modules/base64: New file.
67767
67768 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67769
67770         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67771         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67772
67773         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67774
67775 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67778         (__getcwd.c): Don't restore errno; glibc doesn't.
67779         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67780         first, falling back to our code only if its results look suspicious.
67781         Ensure that the resulting buffer is only as large as necessary.
67782
67783         * lib/readutmp.c: Include readutmp.h first.
67784         Include <errno.h>, since readutmp.h no longer does that.
67785         * lib/readutmp.h: Don't include <errno.h>,
67786         <sys/param.h>, <time.h>; not needed to establish interface.
67787         (errno): Remove decl.
67788         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67789         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67790         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67791
67792 2004-11-28  Simon Josefsson  <jas@extundo.com>
67793
67794         * lib/base64.h, base64.c: New file.
67795
67796 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67799
67800 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67801
67802         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67803         (Depends-on): Remove pathmax, same.  Add mempcpy.
67804         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67805         (Makefile.am): Append getcwd.h to lib_SOURCES.
67806         (Include): Add getcwd.h.
67807         (Maintainer): Change from Jim Meyering to "all, glibc",
67808         since getdate now uses intended-for-glibc code.
67809         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67810         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67811
67812 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67813
67814         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67815         HP's ANSI C compiler.
67816         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67817         Declaring int functions causes warnings on some modern systems and
67818         shouldn't be needed to compile on ancient ones.
67819         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67820         defined.
67821
67822         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67823         with the following changes.
67824         (__set_errno): Parenthesize properly.
67825         Include <stdbool.h>.
67826         (MIN, MAX, MATCHING_INO): New macros.
67827         (__getcwd): Define with prototype, not K&R form.
67828         Use heuristics to allocate default buffer on stack if possible.
67829         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67830         behavior, and to avoid the PATH_MAX limit when computing
67831         ../../../../...
67832         Use MATCHING_INO to compare inode number to file.
67833         Check for arithmetic overflow in size calculations.
67834         Fix bug in reallocation of dot array that caused getcwd to fail
67835         on directories nested deeper than 75.
67836         Be more careful about saving errno on error.
67837         Do not use realloc; use only free+malloc, as this is a bit
67838         more flexible and avoids a needless copy operation.
67839         Do not inspect st_dev and st_ino for symbolic links; POSIX
67840         doesn't specify the latter.
67841         Check for closedir errors.
67842         Avoid needless casts.
67843         Use "#ifdef weak_alias" around weak_alias, to be like other
67844         glibc code.
67845         The following changes to getcwd.c have effect only when used in
67846         gnulib; they have no effect inside glibc proper.
67847         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67848         as alloca isn't used.
67849         (alloca, __alloca): Likewise.
67850         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67851         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67852         unconditionally, as gnulib assumes C89 or better.
67853         Do not include <sys/param.h>.
67854         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67855         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67856         better.
67857         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67858         Include <dirent.h> in a way that is compatible with modern Autoconf.
67859         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67860         New macros, if not already defined.
67861         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67862         Use "_LIBC", not "defined _LIBC", for consistency.
67863         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67864         a mempcpy module.
67865         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67866         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67867         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67868         credit only to Jim Meyering and adjust the copyright dates.
67869         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67870         <stdlib.h>, <unistd.h>, "pathmax.h".
67871         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67872         (INITIAL_BUFFER_SIZE): Remove.
67873         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67874
67875 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67876
67877         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67878         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67879         Use the _ONCE methods, for efficiency.
67880         Check for fcntl.h.  In test program, include <errno.h>
67881         and <fcntl.h> if available.  Remove old K&R cruft from
67882         test program.  Check for common errors in GNU/Linux,
67883         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67884         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67886         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67887         name accordingly.
67888         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67889         accommodate new getcwd.c.
67890         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67891         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67892         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67893         that's all we need now.
67894
67895 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67896
67897         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67898         argp-parse.c depends on getopt internals, that means we should
67899         always use our getopt, to be on the safe side.
67900         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67901         order not to spoil the result of an eventual previous invocation
67902         of gl_GETOPT_SUBSTITUTE.
67903
67904 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67905
67906         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67907         redefinition warnings. To avoid them, include the defines
67908         in `#if !defined __need_getopt ... #endif'. The only place
67909         where __getopt_argv_const is used is in definitions
67910         of getopt_long and getopt_long_only below, which are as well
67911         protected by `#ifndef __need_getopt'.
67912         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67913         __need_getopt after including <stdio.h> and <unistd.h> These
67914         headers might have defined it.
67915
67916 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67919
67920 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67923         (futimens): New function, which uses futimes if available.
67924         (futimens, utimens): Support timespec==NULL, with same semantics
67925         as utime and utimens.
67926         * lib/utimens.h (futimens): New decl.
67927
67928 2004-11-23  Jim Meyering  <jim@meyering.net>
67929
67930         * lib/getopt_.h: Remove trailing blanks.
67931
67932 2004-11-23  Jim Meyering  <jim@meyering.net>
67933
67934         * lib/__fpending.c: Add comment.
67935
67936 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67937
67938         * modules/canonicalize (Depends-on): Add xreadlink.
67939         Problem reported by James Youngman.
67940
67941 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67942
67943         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67944         New macros.
67945         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67946         optopt): Use them instead of invoking ## directly; otherwise, the
67947         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67948
67949 2004-11-19  Bruno Haible  <bruno@clisp.org>
67950
67951         * lib/strtok_r.c: Move comments from here...
67952         * lib/strtok_r.h: ... to here.
67953
67954 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67955
67956         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67957         implementations that mishandle size_t overflow.
67958
67959 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67962         might fail.  Problem reported by Yoann Vandoorselaere.
67963         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67964         implementations that mishandle size_t overflow.
67965
67966 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67967
67968         * modules/canon-host (Depends-on): Add strdup.
67969
67970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67971
67972         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67973
67974 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67975
67976         * lib/canon-host.c: Include "strdup.h".
67977         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67978         Use strdup instead of malloc/strcpy to duplicate strings.
67979
67980         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67981         (human_space_before_unit): New constant.
67982         * lib/human.c (human_readable): Support it.
67983
67984         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67985         (xgetcwd): Set errno correctly when failing.
67986         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67987         the failure is actually due to a PATH_MAX problem.
67988
67989         Further getopt changes to make it more likely that glibc will
67990         buy the changes back.
67991         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67992         (getopt): Use it, so to preserve glibc semantic
67993         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67994         when compiling for libc.
67995         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67996         (getopt_long, getopt_long_only): Use it.
67997
67998         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67999         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68000         (getopt): Argv is now char * const *, as per standard.
68001         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68002         not char *__getopt_argv_const *.
68003         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68004         _getopt_long_only_r): Likewise.
68005         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68006         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68007         _getopt_long_r, _getopt_long_only_r): Likewise.
68008         * lib/getopt_.h (__getopt_argv_const): Remove.
68009         (getopt): Argv is now char * const *, as per standard.
68010
68011         * lib/getdate.y (tORDINAL): New token.
68012         (day, relunit): Allow it for relative times.
68013         (relative_time_table): Use tORDINAL for ordinals.
68014
68015 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68016
68017         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68018         Document that "second" isn't allowed as an ordinal number.
68019
68020 2004-11-16  Jim Meyering  <jim@meyering.net>
68021
68022         * modules/closeout (Depends-on): Add fpending.
68023
68024 2004-11-15  Jim Meyering  <jim@meyering.net>
68025
68026         * lib/closeout.c: Include "__fpending.h" once again.
68027         Include <stdbool.h>.
68028         (close_stdout): Don't fail just because stdout was closed initially,
68029         since some programs don't write to stdout in the normal course of
68030         operation (other than --version and --help), and we don't want this
68031         function to make e.g. `touch file >&-' fail.
68032         But do fail if it was closed and someone has tried to write to it.
68033         E.g., `printf foo >&-' must fail.
68034
68035 2004-11-13  Jim Meyering  <jim@meyering.net>
68036
68037         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68038
68039 2004-11-12  Simon Josefsson  <jas@extundo.com>
68040
68041         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68042         small doc fix is still pending.
68043
68044 2004-11-11  Simon Josefsson  <jas@extundo.com>
68045
68046         * modules/strtok_r: New file.
68047
68048         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68049         strtok_r.
68050
68051 2004-11-11  Simon Josefsson  <jas@extundo.com>
68052
68053         * m4/strtok_r.m4: New file.
68054
68055         * m4/getopt.m4: Replace opterr.
68056
68057 2004-11-11  Simon Josefsson  <jas@extundo.com>
68058
68059         * lib/strtok_r.h, strtok_r.c: New file.
68060
68061 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68062
68063         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68064         of replacing opterr, getopt, etc.  This should handle the
68065         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68066
68067 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68068
68069         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68070         we can stop lying to compilers about the constness of argv when we
68071         are compiled outside glibc.
68072         (getopt, getopt_long, getopt_long_only): Use it.
68073         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68074         _getopt_internal, getopt): Likewise.
68075         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68076         _getopt_long_only_r): Likewise.
68077         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68078         _getopt_long_r, _getopt_long_only_r): Likewise.
68079
68080         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68081         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68082         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68083         the other external symbols.
68084         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68085         declaration, since the above renaming now works around collisions.
68086
68087 2004-11-11  Jim Meyering  <jim@meyering.net>
68088
68089         * lib/linebreak.c: Remove trailing blanks.
68090         * lib/alloca_.h: Likewise.
68091         * lib/acosl.c: Likewise.
68092         * lib/euidaccess.c: Likewise.
68093         * lib/allocsa.h: Likewise.
68094
68095 2004-11-10  Simon Josefsson  <jas@extundo.com>
68096
68097         * m4/getaddrinfo.m4: New file.
68098
68099 2004-11-10  Simon Josefsson  <jas@extundo.com>
68100
68101         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68102
68103 2004-11-10  Simon Josefsson  <jas@extundo.com>
68104
68105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68106         getaddrinfo.
68107
68108         * modules/getaddrinfo: New file.
68109
68110 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68113
68114 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * lib/mktime.c (SHR): New macro, which is a portable
68117         substitute for >> that should work even on Crays.
68118         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68119         Problem reported by Mark D. Baushke in
68120         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68121         * lib/getdate.y (SHR): Likewise.
68122         (tm_diff): Use it.
68123         * lib/strftime.c (SHR): Likewise.
68124         (tm_diff): Use it.
68125         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68126         quote_these_too, so that right shifts are well defined.  All uses
68127         changed.
68128
68129 2004-11-10  Jim Meyering  <jim@meyering.net>
68130
68131         Ensure that no close failure goes unreported.
68132         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68133         return early when it seems there's nothing to flush.
68134         Don't include __fpending.h.
68135
68136 2004-11-10  Jim Meyering  <jim@meyering.net>
68137
68138         * modules/closeout (Depends-on): Remove fpending.
68139
68140 2004-11-10  Jim Meyering  <jim@meyering.net>
68141
68142         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68143
68144 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68147         gl_FUNC_STRFTIME.
68148         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68149         and AC_REQUIRE when possible, to avoid duplicate checks.
68150         Check for <wchar.h>.
68151
68152 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68153
68154         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68155
68156 2004-11-09  Bruno Haible  <bruno@clisp.org>
68157
68158         * m4/sockpfaf.m4: New file.
68159
68160 2004-11-05  Bruno Haible  <bruno@clisp.org>
68161
68162         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68163         Reported by Mark D. Baushke <mdb@cvshome.org>.
68164
68165 2004-11-04  Bruno Haible  <bruno@clisp.org>
68166
68167         2004-09-11  Bruno Haible  <bruno@clisp.org>
68168                 * allocsa.valgrind: New file.
68169         2004-02-06  Bruno Haible  <bruno@clisp.org>
68170                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68171                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68172                 Reported by Christopher Seip <chris.seip@hp.com>.
68173
68174 2004-11-04  Bruno Haible  <bruno@clisp.org>
68175
68176         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68177         (Makefile.am): Distribute it.
68178
68179 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68182         with errno == ERANGE if the buffer is too small.
68183         Problem reported by Mark D. Baushke.
68184
68185 2004-11-03  Albert Chin  <china@thewrittenword.com>
68186             Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68189         equivalent, substitute $ac_type for equivalent type rather than
68190         blindly using uint32_t *always* which won't work if uint32_t is not
68191         available.  Define _UINT32_T to work around typedef of uint32_t if
68192         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68193         2.5.1.
68194
68195 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * m4/jm-macros.m4: Sync from coreutils.
68198         (gl_MACROS): Check for mbrlen, for pathchk.
68199         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68200
68201 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         * lib/xreadlink.c (MAXSIZE): New macro.
68204         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68205         size does not exceed MAXSIZE.  Avoid cast.
68206         As suggested by Mark D. Baushke in
68207         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68208         if readlink fails with buffer size just under MAXSIZE, try again
68209         with MAXSIZE.
68210
68211 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68212
68213         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68214
68215 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68216         and  Paul Eggert  <eggert@cs.ucla.edu>
68217
68218         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68219         (get_date): Overparenthesize to avoid GCC warning.
68220
68221 2004-11-02  Bruno Haible  <bruno@clisp.org>
68222
68223         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68224         returns void.
68225
68226 2004-11-02  Bruno Haible  <bruno@clisp.org>
68227
68228         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68229         function returns void.
68230
68231 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68232
68233         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68234         fflush_unlocked, flockfile, funlockfile, funlockfile,
68235         fputs_unlocked, putc_unlocked.
68236
68237 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68240         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68241         already declared.
68242
68243 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * modules/getdate (Files): Add doc/getdate.texi.
68246         (Depends-on): Add setenv, xalloc.
68247
68248 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * lib/getdate.y: Add support for TZ="foo" within a date string.
68251         Fix some bugs near time_t boundaries.  Reject dates with
68252         out-of-range components, e.g., "Sept 31".
68253         Include <stdlib.h>, "setenv.h", "xalloc.h".
68254         (ISDIGIT_LOCALE): Remove; unused.
68255         Note that the TZ and time functions used here are not reentrant.
68256         (mktime_ok, get_tz): New functions.
68257         (TZBUFSIZE): New constant.
68258         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68259         This requires that we sometimes generate our own TZ="XXX..." setting.
68260
68261 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68262
68263         * doc/getdate.texi: New file, from coreutils with modifications for
68264         the new TZ parsing.
68265
68266 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68267
68268         * lib/mktime.c (not_equal_tm): Remove redundant check.
68269
68270 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         * modules/regex (lib_SOURCES): Add regex.c.
68273         Reported by James Youngman in
68274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68275
68276 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         * lib/getdate.y: Use Bison 1.875 features, and some minor
68279         code cleanups.  This change does not affect semantics.
68280         Don't include <stdlib.h>; no longer needed.
68281         Don't include unlocked-io.h; only the "#if TEST" code uses
68282         stdio, and performance isn't crucial there.
68283         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68284         Bison 1.875 features as described below.
68285         All uses of "PC." replaced by "pc->".
68286         (YYSTYPE): Add a forward declaration.
68287         (yylex, yyerror): Use full prototypes in forward decls.
68288         Use "%pure-parser" rather than obsolescent "%pure_parser".
68289         Use %parse-param and %lex-param instead of obsolescent
68290         YYPARSE_PARAM and YYLEX_PARAM.
68291         (meridian_table, month_and_day_table, time_units_table,
68292         relative_time_table, time_zone_table, military_table,
68293         lookup_zone, lookup_word, get_date):
68294         Use NULL instead of 0 where appropriate.
68295         (to_hour): Avoid abort (), to avoid a dependency on
68296         stdlib.h.
68297         (yyerror, yylex): Now accepts parser_control * arg.
68298         (main) [TEST]: Use '\0' rather than 0 for char.
68299
68300 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68301
68302         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68303
68304 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68307         It's now the caller's responsibility to handle the case where
68308         !HAVE_GETPAGESIZE && !defined getpagesize.
68309
68310         * lib/mktime.c (leapyear): Arg is long int, not int.
68311
68312 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68313
68314         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68315
68316 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68319         missing.  Problem reported by James Youngman.
68320
68321 2004-10-16  Simon Josefsson  <jas@extundo.com>
68322
68323         * gnulib-tool: Fix comments.  Fix parse problem.
68324         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68325
68326 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68329         implementation of getopt_long.  Problem reported by Alexander Taler in:
68330         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68331
68332 2004-10-15  Bruno Haible  <bruno@clisp.org>
68333
68334         * gnulib-tool: Untabify. Initialize supplied_libname.
68335         (func_usage): More homogenous output.
68336         (func_modules_transitive_closure, func_modules_to_filelist,
68337         func_emit_lib_Makefile_am): New functions.
68338         (func_import): New function, extracted from big case statement. Use
68339         func_get_license, func_modules_transitive_closure,
68340         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68341         opt_lgpl. Don't use test -a, as it's not portable.
68342         (func_create_testdir): Use func_modules_transitive_closure,
68343         func_modules_to_filelist, func_emit_lib_Makefile_am.
68344
68345 2004-10-15  Bruno Haible  <bruno@clisp.org>
68346
68347         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68348
68349 2004-10-15  Bruno Haible  <bruno@clisp.org>
68350
68351         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68352         the portions belonging to each module.
68353         Suggested by Derek Robert Price <derek@ximbiot.com>.
68354
68355 2004-10-12  Simon Josefsson  <jas@extundo.com>
68356
68357         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68358         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68359         to real functions.
68360
68361 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68362
68363         * modules/vsnprintf: New file.
68364
68365 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68366
68367         * m4/vsnprintf.m4: New file.
68368
68369 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68370
68371         * lib/vsnprintf.h: New file.
68372         * lib/vsnprintf.c: New file.
68373
68374 2004-10-11  Bruno Haible  <bruno@clisp.org>
68375
68376         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68377         vsnprintf.
68378
68379 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68380
68381         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68382
68383 2004-10-07  Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68386         fits into the provided buffer.
68387
68388 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/diacrit.c, diacrit.h: Add GPL notice.
68391
68392         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68393         notice.
68394         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68395         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68396         This avoids a potential constant-folding bug.
68397
68398 2004-10-05  Bruno Haible  <bruno@clisp.org>
68399
68400         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68401         for the declaration of strsep.
68402
68403 2004-10-05  Bruno Haible  <bruno@clisp.org>
68404
68405         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68406
68407 2004-10-04  Simon Josefsson  <jas@extundo.com>
68408
68409         * modules/memmem: New file.
68410         * tests/test-memmem.c: New file.
68411         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68412
68413 2004-10-04  Simon Josefsson  <jas@extundo.com>
68414
68415         * m4/memmem.m4: New file.
68416
68417 2004-10-04  Simon Josefsson  <jas@extundo.com>
68418
68419         * lib/memmem.h: New file.
68420         * lib/memmem.c: New file, taken from glibc.
68421
68422 2004-10-04  Simon Josefsson  <jas@extundo.com>
68423
68424         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68425         '#ifdef USE_UNLOCKED_IO'.
68426
68427 2004-10-04  Simon Josefsson  <jas@extundo.com>
68428
68429         * config/srclist.txt: Add memmem from glibc.
68430
68431 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68434
68435         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68436         modules/exclude, modules/getdate, modules/getline,
68437         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68438         modules/getusershell, modules/linebuffer, modules/md5,
68439         modules/mountlist, modules/posixtm, modules/readtokens,
68440         modules/readutmp, modules/regex, modules/sha1,
68441         modules/version-etc, modules/yesno:
68442         Remove dependency on unlocked-io.
68443
68444 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68445
68446         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68447
68448         * m4/unlocked-io.m4: Add copyright notice.
68449         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68450
68451 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68454         * lib/xmalloc.c (xmemdup): Likewise.
68455         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68456         XFREE): Remove these long-obsolescent macros.
68457         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68458         * lib/xstrdup.c: Remove.
68459
68460         * lib/regex.c (re_comp): Cast gettext return value to char *,
68461         Problem reported by Martin Neitzel via Mark D. Baushke.
68462
68463 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68464
68465         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68466         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68467         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68468         regex.c, sha1.c, version-etc.c, yesno.c:
68469         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68470         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68471         the includer's responsibility.
68472
68473         Sync from coreutils.
68474
68475         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68476         points to the start of a string, as the C Standard says the
68477         resulting behavior is undefined.
68478
68479         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68480         simple -> simple_backups, numbered_existing ->
68481         numbered_existing_backups, numbered -> numbered_backups
68482         to avoid shadowing problems.  All uses changed.
68483         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68484         * lib/backupfile.c (check_extension, numbered_backup):
68485         Rename locals to avoid shadowing 'basename'.
68486         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68487         once.
68488
68489         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68490         * lib/.cvsignore: Add getopt.h.
68491
68492 2004-10-04  Bruno Haible  <bruno@clisp.org>
68493
68494         * modules/README: New file.
68495         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68496         not a module.
68497
68498 2004-10-02  Jim Meyering  <jim@meyering.net>
68499
68500         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68501
68502 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68503
68504         * modules/strsep: New file.
68505
68506 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68507
68508         * m4/strsep.m4: New file.
68509
68510 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68511
68512         * lib/strsep.h: New file.
68513         * lib/strsep.c: New file.
68514
68515 2004-10-01  Simon Josefsson  <jas@extundo.com>
68516
68517         * lib/snprintf.c (snprintf): Handle size==0.
68518
68519 2004-10-01  Simon Josefsson  <jas@extundo.com>
68520             Bruno Haible  <bruno@clisp.org>
68521
68522         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68523         (snprintf): Declare 'args'.
68524
68525 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * lib/snprintf.c: Remove comments as to why each header is needed.
68528
68529 2004-10-01  Bruno Haible  <bruno@clisp.org>
68530
68531         * MODULES.html.sh: Add strsep.
68532
68533 2004-09-30  Simon Josefsson  <jas@extundo.com>
68534
68535         * modules/snprintf: New file.
68536
68537 2004-09-30  Simon Josefsson  <jas@extundo.com>
68538
68539         * m4/snprintf.m4: New file.
68540
68541 2004-09-30  Simon Josefsson  <jas@extundo.com>
68542
68543         * lib/snprintf.h, lib/snprintf.c: New files.
68544
68545 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68546
68547         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68548         (hol_entry_help): Never translate an empty string.
68549         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68550         * lib/argp.h (OPTION_NO_TRANS): New option.
68551
68552 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         * modules/argp (Maintainer): Replace Simon Josefsson
68555         by Sergey Poznyakoff.
68556
68557 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68560         changes merged back into glibc.
68561
68562 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68565
68566 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68567
68568         * lib/xvasprintf.c: Include xalloc.h.
68569         (xvasprintf): Use xalloc_die, not xmalloc_die.
68570
68571 2004-09-29  Bruno Haible  <bruno@clisp.org>
68572
68573         * modules/alloca-opt: New file, derived from modules/alloca.
68574         * modules/allocsa: Depend on alloca-opt instead of alloca.
68575         * modules/setenv: Likewise.
68576         * modules/vasnprintf: Likewise.
68577         * MODULES.html.sh: Add alloca-opt.
68578
68579 2004-09-28  Simon Josefsson  <jas@extundo.com>
68580
68581         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68582         LGPL, and to replace license template from GPL to LGPL.
68583
68584 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68585
68586         * modules/dummy: Change license to LGPL.
68587
68588 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68591
68592 2004-09-24  Simon Josefsson  <jas@extundo.com>
68593
68594         * modules/minmax (License): Change from GPL to LGPL.
68595
68596 2004-09-23  Simon Josefsson  <jas@extundo.com>
68597
68598         * gnulib-tool (--import): Typo.
68599
68600 2004-09-23  Simon Josefsson  <jas@extundo.com>
68601
68602         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68603
68604 2004-09-22  Bruno Haible  <bruno@clisp.org>
68605
68606         * modules/*: Add 'License' field.
68607         * gnulib-tool: Accept --extract-license option.
68608         (func_get_license): New function.
68609
68610 2004-09-21  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68613         Reported by Simon Josefsson.
68614
68615 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68616
68617         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68618         gl_AC_TYPE_LONG_LONG.
68619
68620 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68623
68624 2004-09-18  Simon Josefsson  <jas@extundo.com>
68625         and  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68628         calls with autoreconf.  Define GL_LIB.
68629
68630 2004-09-14  Karl Berry  <karl@gnu.org>
68631
68632         * config/srclist.txt: unsync setenv.c, sigh.
68633
68634 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68637         Problem reported by Bruno Haible in:
68638         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68639
68640 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68641
68642         * config/srclist.txt: Comment out argp-pvh.c.
68643
68644 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68647         in case some system header has #define'd it.  Problem reported by
68648         Soeren D. Schulze in
68649         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68650
68651 2004-09-09  Karl Berry  <karl@gnu.org>
68652
68653         * regex.[ch]: delete from the root.  These were supposed to be
68654                 synced with emacs cvs, but this has not happened for about
68655                 a year, and anyway nothing else uses emacs regex.[ch].
68656                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68657                 lib/regex[.ch] is untouched.
68658
68659 2004-09-09  Bruno Haible  <bruno@clisp.org>
68660
68661         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68662
68663 2004-09-09  Bruno Haible  <bruno@clisp.org>
68664
68665         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68666         modifications.
68667         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68668
68669 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68670
68671         * modules/xvasprintf: New file.
68672         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68673
68674 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68675
68676         * lib/xvasprintf.h: New file.
68677         * lib/xvasprintf.c: New file.
68678         * lib/xasprintf.c: New file.
68679
68680 2004-09-08  Bruno Haible  <bruno@clisp.org>
68681
68682         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68683
68684 2004-09-08  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68687         length is > INT_MAX.
68688         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68689         more.
68690
68691 2004-09-08  Bruno Haible  <bruno@clisp.org>
68692
68693         * lib/stdint_.h: New file, taken from GNU clisp.
68694
68695 2004-09-08  Bruno Haible  <bruno@clisp.org>
68696             Oskar Liljeblad  <oskar@osk.mine.nu>
68697
68698         * modules/stdint: New file.
68699         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68700
68701 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         Import from coreutils.
68704         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68705         strings on unbounded length.  alloca's performance benefits aren't
68706         that important here.
68707         (V_STRDUP): Remove.
68708         (parse_with_separator): New function, with most of the internals
68709         of the old parse_user_spec.  Allow user to omit both user and group,
68710         for compatibility with FreeBSD.
68711         Clone only the user name, not the entire spec.
68712         Do not set *uid, *gid unless entirely successful.
68713         Avoid memory leak in some failing cases.
68714         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68715         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68716         (parse_user_spec): Rewrite to use parse_with_separator.
68717
68718 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * modules/userspec: Don't depend on alloca.
68721
68722 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68725
68726 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68727
68728         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68729         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68730         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68731
68732 2004-08-16  Simon Josefsson  <jas@extundo.com>
68733
68734         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68735         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68736         Add --dry-run for --import.
68737         Let user provided command line parameters override configure.ac
68738         settings.
68739
68740 2004-08-12  Simon Josefsson  <jas@extundo.com>
68741
68742         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68743         as discussed with Paul Eggert in threads rooted at
68744         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68745         and
68746         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68747         Before, the test was empty, and relied on ELIDE_CODE in source
68748         code.)
68749         (gl_PREREQ_GETOPT): New macro.
68750         (gl_GETOPT): Use them.
68751
68752 2004-08-12  Simon Josefsson  <jas@extundo.com>
68753
68754         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68755         * lib/getopt_.h: Renamed from getopt.h.
68756
68757 2004-08-12  Simon Josefsson  <jas@extundo.com>
68758
68759         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68760         Change default library name from libfoo to libgnu.
68761         Now, if you have a configure.ac that says:
68762                 gl_SOURCE_BASE(gl)
68763                 gl_M4_BASE(gl/m4)
68764                 gl_MODULES(error getopt etcetera)
68765                 gl_INIT
68766         you can import all you need by running:
68767                 ../gnulib/gnulib-tool --import
68768
68769         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68770         (Makefile.am): Rewrite, use logic from argz.
68771         (Include): Use <getopt.h> instead of "getopt.h".
68772
68773 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68774
68775         * modules/argp (Files): Add m4/unlocked-io.m4.
68776         (Depends-on): Add extensions.
68777
68778 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68781         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68782         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68783         Check for program_invocation_name, program_invocation_short_name,
68784         flockfile, funlockfile, features.h, _getopt_long_only_r.
68785
68786 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68789         its complicated substitute.
68790         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68791         and program_invocation_name.
68792         (__argp_basename) [!_LIBC]: Remove; the only use was
68793         replaced by its body.
68794         (__argp_short_program_name): Change condition from
68795         !defined __argp_short_program_name to
68796         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68797         to match argp-namefrob.h.
68798         (__argp_failure): Don't assume strerror_r returns char *.
68799         * lib/argp-parse.c (N_): Define unconditionally.
68800         (argp_default_options): Fill out initializers with 0 to avoid
68801         gcc warnings.
68802
68803 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68806         getopt1.c.
68807
68808 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         Merge from coreutils.
68811
68812         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68813
68814         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68815         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68816
68817 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68818
68819         Merge from coreutils.
68820
68821         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68822         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68823         for Reliant Unix 5.43.
68824
68825         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68826         (union fooround): Use uintmax_t, not long int.
68827         The rest is a merge from libc:
68828         [defined _LIBC]: Include <shlib-compat.h>.
68829         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68830
68831         * lib/settime.c (settime): Recode to avoid warning with
68832         Sun Forte C 6U2.
68833
68834         * lib/strverscmp.c: Convert to UTF-8.
68835
68836 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68839         m4/uintmax_t.m4.
68840
68841 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68842
68843         * modules/xalloc-die: New file.
68844         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68845
68846         * modules/md5 (Files): Add m4/uint32_t.m4.
68847         * modules/sha1: Renamed from modules/sha.
68848         (Files):
68849         Rename lib/sha.h to lib/sha1.h.
68850         Rename lib/sha.c to lib/sha1.c.
68851         Rename m4/sha.m4 to m4/sha1.m4.
68852         (lib_SOURCES): Likewise.
68853         (configure.ac): Rename gl_SHA to gl_SHA1.
68854         (Include): sha.h -> sha1.h.
68855
68856 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68857
68858         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68859         * m4/sha1.m4: Renamed from sha.m4.
68860         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68861
68862 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         * lib/obstack.h (obstack_empty_p):
68865         Don't assume that chunk->contents is suitably aligned.
68866         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68867         Likewise. Problem reported by Benno in
68868         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68869
68870         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68871         readable.  This could be improved further but it'd take some work.
68872
68873 2004-08-08  Simon Josefsson  <jas@extundo.com>
68874
68875         * modules/xgethostname (Depends-on): Remove exit and error (not
68876         used).
68877
68878         * modules/getpass-gnu: Add getpass.h.
68879         (Depends-on): Add stdbool.
68880         * modules/getpass: Add getpass.h.
68881
68882 2004-08-08  Simon Josefsson  <jas@extundo.com>
68883
68884         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68885         Check getpass declaration.
68886
68887 2004-08-08  Simon Josefsson  <jas@extundo.com>
68888
68889         * lib/xgethostname.c: Don't include error.h (not used).
68890
68891         * lib/getpass.h: Add.
68892         * lib/getpass.c: Include getpass.h first.
68893
68894 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68895
68896         * lib/xalloc-die.c: New file.
68897         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68898         All uses removed.
68899         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68900         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68901         xalloc-die.c.
68902         (_, N_, xalloc_die): Move to xalloc-die.c.
68903         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68904         so that we needn't mess with xalloc_msg_memory_exhausted.
68905
68906         * lib/sha1.h: Renamed from sha.h.
68907         (SHA1_H): Renamed from _SHA_H.
68908         (sha1_ctx): Renamed from sha_ctx.
68909         (sha1_init_ctx): Renamed from sha_init_ctx.
68910         (sha1_process_block): Renamed from sha_process_block.
68911         (sha1_process_bytes): Renamed from sha_process_bytes.
68912         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68913         (sha1_read_ctx): Renamed from sha_read_ctx.
68914         (sha1_stream): Renamed from sha_stream.
68915         (sha1_buffer): Renamed from sha_buffer.
68916         * lib/sha1.c: Likewise; renamed from sha.c.
68917         Do not include <sys/types.h>.
68918         Include <stddef.h> rather than <stdlib.h>.
68919
68920 2004-08-08  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68923         FILESYSTEM_PREFIX_LEN.
68924         * lib/progreloc.c: Likewise.
68925         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68926
68927 2004-08-06  Simon Josefsson  <jas@extundo.com>
68928
68929         * modules/progname (Depends-on): Don't depend on stdbool.
68930
68931 2004-08-06  Simon Josefsson  <jas@extundo.com>
68932
68933         * modules/getsubopt: New file.
68934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68935         getsubopt.
68936
68937 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68938
68939         More merge from coreutils.
68940
68941         * m4/utimens.m4, m4/utimecmp.m4: New files.
68942         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68943         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68944         prereq.m4, sha.m4: Import changes from coreutils.
68945
68946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         More merge from coreutils.
68949         * modules/raise, modules/readtokens0, modules/utimens:
68950         * modules/utimecmp, module/xnanosleep: New files.
68951         * modules/strftime: Add lib/strftime.h.
68952         Change include from <time.h> to "strftime.h".
68953         * modules/yesno: Add lib/yesno.h.
68954         * modules/backupfile: Remove lib/addext.c.
68955         * modules/euidaccess: Add stat-macros.h.
68956         * modules/canonicalize, modules/euidaccess,
68957         modules/filemode, modules/lchown, modules/makepath,
68958         modules/rmdir, modules/stat: Likewise.
68959
68960 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         Merge from tar.
68963         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68964         SIZE_MAX is a valid preprocessor constant.
68965         (__argp_basename): Change from "#ifndef _LIBC"
68966         to "#ifndef __argp_short_program_name", so that
68967         we don't compile these functions for tar.
68968
68969         More merges from coreutils.
68970         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68971         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68972         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68973         * lib/addext.c: Remove; no longer needed.
68974         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68975         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68976         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68977         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68978         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68979         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68980         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68981         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68982         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68983         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68984         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68985         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68986         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68987         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68988         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68989         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68990         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68991         Import changes from coreutils.
68992
68993 2004-08-05  Simon Josefsson  <jas@extundo.com>
68994
68995         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68996
68997 2004-08-05  Simon Josefsson  <jas@extundo.com>
68998
68999         * m4/getsubopt.m4: New file.
69000
69001 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         Merge from coreutils.
69004
69005         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69006         * m4/getcwd-path-max.m4: New files.
69007
69008         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69009         FILESYSTEM_PREFIX_LEN ->
69010         FILE_SYSTEM_PREFIX_LEN.
69011         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69012         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69013         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69014         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69015
69016         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69017         prerequisite modules now handle the DOS stuff.
69018         Don't check for unistd.h.
69019
69020 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69021
69022         Merge from coreutils.
69023
69024         * lib/.gdb-history: Remove; this doesn't belong here.
69025
69026         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69027         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69028         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69029         * lib/getcwd.c: New files.
69030
69031         * lib/dirname.h: Include <stdbool.h>.
69032         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69033         for consistency with POSIX terminology.  All uses changed.
69034         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69035         (strip_trailing_slashes): Use bool for booleans.
69036         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69037
69038         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69039         sometimes returns a positive errno value even when it succeeds.
69040         (print_errno_message) [!LIBC]: Fall back on strerror if
69041         __strerror_r fails.
69042
69043         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69044         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69045         (longest_relative_suffix): New function.
69046         (path_concat): Use it.  Assume first argument is not NULL.
69047         Port to DOS.  Omit redundant separators.
69048         Report an error instead of returning NULL.
69049         Use mempcpy instead of memcpy.
69050         (xpath_concat): Remove: not declared or used.
69051
69052         * lib/same.h: Include <stdbool.h>
69053         (same_name): Return bool, not int.
69054         * lib/same.c (same_name): Likewise.
69055         (errno): Don't declare; we assume C89 or better now.
69056
69057         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69058         if not already defined.
69059
69060         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69061         * lib/dup-safer.c (errno): Likewise.
69062
69063 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69064
69065         Merge from coreutils.
69066         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69067         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69068         * modules/path-concat: Don't depend on strdup.
69069
69070 2004-08-03  Simon Josefsson  <jas@extundo.com>
69071
69072         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69073         * lib/progname.h: Don't include stdbool.h.
69074
69075 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69078         * MODULES.html.sh (func_all_modules): Remove fatal.
69079
69080 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69083
69084 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69085
69086         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69087         working.
69088
69089 2004-08-02  Simon Josefsson  <jas@extundo.com>
69090
69091         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69092         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69093         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69094
69095 2004-08-01  Simon Josefsson  <jas@extundo.com>
69096
69097         * lib/xgetdomainname.c: Include stdlib.h, for free().
69098
69099 2004-07-19  Bruno Haible  <bruno@clisp.org>
69100
69101         * MODULES.html.sh (func_all_modules): Add dummy.
69102
69103 2004-07-16  Simon Josefsson  <jas@extundo.com>
69104
69105         * modules/dummy: New file.
69106
69107 2004-07-16  Simon Josefsson  <jas@extundo.com>
69108
69109         * lib/dummy.c: New file.
69110
69111 2004-07-16  Bruno Haible  <bruno@clisp.org>
69112
69113         * lib/backupfile.h: Add extern "C" for C++.
69114         * lib/closeout.h: Likewise.
69115         * lib/copy-file.h: Likewise.
69116         * lib/findprog.h: Likewise.
69117         * lib/full-write.h: Likewise.
69118         * lib/pathname.h: Likewise.
69119         * lib/progname.h: Likewise.
69120         * lib/stpcpy.h: Likewise.
69121         * lib/stpncpy.h: Likewise.
69122         * lib/strcase.h: Likewise.
69123         * lib/strstr.h: Likewise.
69124         * lib/xalloc.h: Likewise.
69125
69126         * lib/mbswidth.h: Add extern "C" for C++.
69127         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69128
69129 2004-07-13  Robert Millan  <robertmh@gnu.org>
69130
69131         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69132
69133 2004-07-09  Simon Josefsson  <jas@extundo.com>
69134
69135         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69136         failed without this.)
69137
69138 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * modules/chown (Files): Add lib/fchown-stub.c, since
69141         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69142
69143 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         * lib/fchown-stub.c: New file.
69146
69147 2004-06-24  Jim Meyering  <jim@meyering.net>
69148
69149         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69150
69151 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         * modules/argz: Omit "#include".
69154
69155         * MODULES.html.sh (func_all_modules): Add calloc, to match
69156         2004-06-01 addition of calloc module.
69157
69158 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * m4/argz.m4: New file, which is autoupdated from libtool.
69161
69162 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69163
69164         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69165         libtool.
69166
69167 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * config/srclist-update: Don't insist on "USA." before the
69170         close-comment, as libtool omits the period and puts the */ on a
69171         separate line.
69172         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69173         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69174
69175 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69176
69177         * modules/argz: New file.
69178         * MODULES.html.sh (func_all_modules): Add argz.
69179
69180 2004-06-12  Jim Meyering  <jim@meyering.net>
69181         and  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * modules/hash (Files): Add lib/xalloc.h.
69184         * modules/pipe (Depends-on): Add wait-process.
69185         * modules/stat (Depends-on): Add xalloc.
69186         * modules/userspec (Files): Add lib/userspec.h.
69187         * modules/xstrto
69188
69189         Upgrade from gettext-0.13.
69190         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69191         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69192         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69193
69194 2004-06-10  Jim Meyering  <jim@meyering.net>
69195
69196         * lib/calloc.c: New file.
69197
69198 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69199
69200         * lib/getdate.y (yylex): Allow space between sign and number.
69201         Problem reported by Dan Jacobson.
69202
69203 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         Merge from coreutils CVS.
69206
69207         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69208         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69209         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69210         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69211         xstrtol.m4: Fix copyright date and/or serial number.
69212
69213         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69214         See if we need an fchown replacement.
69215         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69216         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69217         and use the replacement function if we detect either defect.
69218
69219         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69220         gl_UTIMECMP.
69221
69222 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69223         and  Jim Meyering  <jim@meyering.net>
69224
69225         Merge from coreutils CVS.
69226
69227         * lib/stat-macros.h: New file, with contents from file-type.h
69228         and coreutils' system.h.
69229         * lib/file-type.c: Include "stat-macros.h".
69230         * lib/file-type.h (file_type): Move all macro definitions to new file,
69231         stat-macros.h.
69232
69233         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69234         Wrap old code with this conditional.
69235         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69236         function that does not dereference symlinks.
69237         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69238
69239         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69240         dependency problems.
69241         (xreadlink): Accept new arg SIZE, for efficiency.
69242         All decls and uses changed.
69243         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69244
69245         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69246         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69247
69248         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69249         sysexits.h.
69250
69251 2004-06-01  Jim Meyering  <jim@meyering.net>
69252
69253         * m4/calloc.m4: New file.
69254
69255 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69258         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69259         Also, fix a typo in a diagnostic.
69260
69261 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69264         or AC_FUNC_REALLOC.
69265
69266 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69269         macros to be defined.
69270         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69271         the allocator returns NULL because the requested size is zero.
69272
69273 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69276         var.  Add comment explaining why libc still defines it.  This
69277         merges the following patch from glibc:
69278         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69279
69280 2004-05-20  Andreas Schwab  <schwab@suse.de>
69281
69282         * m4/free.m4: Replace free if it not known to work, not the other
69283         way round.
69284
69285 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69288         present in glibc since revision 1.1 of this file.
69289         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69290         obstack_alignment_mask, obstack_alloc, obstack_base,
69291         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69292         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69293         obstack_grow0, obstack_init, obstack_int_grow,
69294         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69295         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69296         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69297         nonexistent functions.
69298
69299 2004-05-18  Karl Berry  <karl@gnu.org>
69300
69301         * config/srclist.txt: break link for vasnprintf.c.
69302
69303 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69304
69305         Port obstack to the AS/400, where pointers are 16 bytes wide and
69306         you cannot cast an integer to a valid pointer.  This patch is
69307         currently waiting to be integrated into glibc; see
69308         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69309
69310         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69311         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69312         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69313         (struct obstack): temp member is now a union of a pointer and
69314         an integer, instead of an integer.  All integer uses changed.
69315         This does not affect the physical layout of struct obstack,
69316         except on hosts (like the AS/400) where the size or alignment of
69317         void * is greater than that of ptrdiff_t.
69318         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69319         __STDC__)]: Store temporary in pointer member of union, not
69320         integer member.
69321         * lib/obstack.c: Include <stddef.h>, for offsetof.
69322         (struct fooalign): Remove; it doesn't need a name.
69323         (union fooround): Change double to long double, and add void *.
69324         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69325         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69326         not a macro.  Hence the values are always int; so remove all
69327         casts-to-int in uses.
69328
69329 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69332         we can get this patch merged into glibc.
69333
69334 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69335             Paul Eggert  <eggert@cs.ucla.edu>
69336
69337         * m4/argp: Depend on alloca.
69338
69339 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69340             Paul Eggert  <eggert@cs.ucla.edu>
69341
69342         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69343         freecoding.
69344
69345 2004-05-17  Bruno Haible  <bruno@clisp.org>
69346
69347         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69348         precision that consists of a '.' followed by an empty digit string.
69349         Patch by Tor Lillqvist <tml@iki.fi>.
69350
69351 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69354         for backward compatibility with older code.  We need our own
69355         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69356         it under some other name, and our alloca.h will define it.
69357
69358 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69359             Derek Price  <derek@ximbiot.com>
69360
69361         * lib/alloca.c: Include <alloca.h>, to get our interface.
69362         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69363         include <alloca.h> first.  Use C89 prototype for alloca; this
69364         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69365         Use #elif for simplicity, since we can assume C89 now.
69366         Don't try to source the system alloca.h since it will not be found
69367         and to prevent recursively including its replacement.
69368         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69369         * lib/regex.c: Likewise.
69370
69371 2004-05-16  Derek Price  <derek@ximbiot.com>
69372             Paul Eggert  <eggert@cs.ucla.edu>
69373
69374         getline cleanup.  This changes the getndelim2 API: both order of
69375         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69376         no delimiter).
69377
69378         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69379         interface does that.
69380         (getline): Always use getdelim, so that we don't have two
69381         copies of this code.
69382         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69383         if available.
69384         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69385         (GETNDELIM2_MAXIMUM): New macro.
69386         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69387         instead of the old practice of delim2==0.  All callers changed.
69388         Return -1 on overflow, instead of returning junk.
69389         Do not set *linesize unless allocation succeeds.
69390         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69391         that we include sys/types.h.
69392         * lib/getnline.h: Likewise.
69393         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69394         (getndelim2): Reorder arguments.
69395         * lib/getnline.c (getnline, getndelim):
69396         Don't discard the NMAX argument.
69397         (getnline): Invoke getndelim, to avoid code duplication.
69398         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69399         of (size_t) -1 by callers of the getnline family.
69400
69401 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69404         Check for gettimeofday.
69405         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69406         Check for settimeofday, stime.
69407
69408 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69409
69410         * lib/nanosleep.c (suspended): Change its type from int to
69411         sig_atomic_t volatile.
69412         (first_call): Make it private to rpl_nanosleep, and have it
69413         be zero initially as that's a bit faster.
69414         (my_usleep): Round up fractional times instead of truncating them,
69415         as this is the usual meaning for 'sleep'.
69416
69417         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69418         doesn't work.
69419         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69420         (ENOSYS): Define if not defined.
69421         (settime): Fall back on stime if it exists and settimeofday fails.
69422         But don't bother with fallbacks if a method fails with errno == EPERM.
69423
69424 2004-05-11  Jim Meyering  <jim@meyering.net>
69425
69426         Prior to this change, the save_cwd caller required read access to the
69427         current directory on most systems (ones with the fchdir function).
69428
69429         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69430         fails, try write-only, and finally, resort to using xgetcwd.
69431
69432 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69433
69434         * lib/obstack.c, obstack.h: Import changes from libc.
69435
69436 2004-04-28  Bruno Haible  <bruno@clisp.org>
69437
69438         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69439         also implicitly appends .exe to executables.
69440         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69441         accepts Windows pathnames.
69442         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69443         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69444         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69445         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69446         Reported by Derek Robert Price <derek@ximbiot.com>.
69447
69448 2004-04-21  Karl Berry  <karl@gnu.org>
69449
69450         * config/srclist.txt (localcharset.c): break sync.
69451
69452 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69453
69454         * m4/host-os.m4: Add a copyright notice.
69455
69456 2004-04-20  Jim Meyering  <jim@meyering.net>
69457
69458         Change UTILS_ to gl_ in AC_DEFINE'd names.
69459         Change utils_- and jm_-prefixed variables, too.
69460         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69461         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69462         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69463
69464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69465         Don't emit trailing blanks.
69466         Also rename jm_-prefixed variables to have gl_ prefix.
69467
69468         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69469         Also rename jm_-prefixed variables to have gl_ prefix.
69470
69471         * m4/jm-macros.m4: Reflect the renamings.
69472         * m4/prereq.m4: Likewise.
69473
69474 2004-04-20  Jim Meyering  <jim@meyering.net>
69475
69476         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69477         memory.
69478
69479 2004-04-20  Jim Meyering  <jim@meyering.net>
69480             Bruno Haible  <bruno@clisp.org>
69481
69482         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69483         memory when realloc fails.
69484
69485 2004-04-19  Jim Meyering  <jim@meyering.net>
69486
69487         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69488         now that readutmp.c may call `free (0)'.
69489
69490 2004-04-19  Bruno Haible  <bruno@clisp.org>
69491
69492         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69493         * m4/inttypes_h.m4: Likewise.
69494         * m4/stdint_h.m4: Likewise.
69495         * m4/intmax_t.m4: Likewise.
69496         * m4/uintmax_t.m4: Likewise.
69497
69498 2004-04-18  Jim Meyering  <jim@meyering.net>
69499
69500         * m4/prereq.m4: Don't forbid jm_ prefix.
69501
69502         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69503         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69504         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69505         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69506         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69507         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69508         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69509         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69510         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69511         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69512         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69513         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69514         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69515         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69516         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69517         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69518         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69519         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69520         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69521
69522 2004-04-18  Jim Meyering  <jim@meyering.net>
69523
69524         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69525         failure, don't leak memory and do call END_UTMP_ENT.
69526
69527 2004-04-16  Jim Meyering  <jim@meyering.net>
69528
69529         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69530         coreutils' stat program.
69531         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69532
69533 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69534
69535         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69536         C89.
69537         (CHAR_BIT): Remove, since we assume C89.
69538         Include <stdint.h> if available, as per current Autoconf CVS advice.
69539
69540 2004-03-31  Jim Meyering  <jim@meyering.net>
69541
69542         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69543         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69544         * m4/xalloc.m4: Likewise.
69545
69546 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69547
69548         Merge from coreutils.
69549
69550         * m4/inttostr.m4: New file.
69551         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69552         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69553         Require gl_CLOCK_TIME.
69554         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69555
69556 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69557
69558         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69559         not bool, to be more consistent with Unix conventions.
69560         Suggested by Bruno Haible.
69561
69562         Merge from coreutils.
69563
69564         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69565         * lib/umaxtostr.c: New files.
69566
69567         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69568         the usual <time.h> dance.
69569         (get_date): Change signature to support fractional time stamps.
69570         All callers changed.
69571         * lib/getdate.y: Include "getdate.h" first, as we can now
69572         assume C89 and don't need to worry about 'const'.
69573         Similarly, include "unlocked-io.h" near start, not in middle.
69574         Include <limits.h>.
69575         (textint.value): Use long int rather than int.
69576         (textint.digits): Use size_t rather than int.
69577         (BILLION, LOG10_BILLION): New constants.
69578         (parser_control): New member rel_ns.  Members day_ordinal,
69579         time_zone, month, day, hour, minutes, rel_year, rel_month,
69580         rel_day, rel_hour, rel_minutes, rel_seconds
69581         are now long int, not int.  Member seconds is now struct timespec,
69582         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69583         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69584         not int.
69585         (%union.intval): Now long int, not int.
69586         New member timespec.
69587         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69588         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69589         (spec): Now is a timespec or an item list.
69590         (timespec, items): New nonterminals.
69591         (time, rel, relunit, number, get_date):
69592         Add support for fractional seconds.
69593         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69594         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69595         (to_hour): First arg is now long int, not int.
69596         (to_year): Returns long int, not int.
69597         Don't treat year -70 like 70.
69598         (tm_diff): Returns long int, not int.
69599         (lookup_word): Use bool instead of int when appropriate.
69600         (yylex): Use size_t for count, not int.
69601         Detect overflow when parsing large integer constants.
69602         Add support for fractions.
69603         (get_date): Make pointers 'const' if possible.
69604         Use more-portable code to detect integer overflow.
69605         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69606         Don't use ctime; it's not reliable if the year has >4 digits.
69607
69608         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69609         This is for compatibility with BSD.
69610
69611         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69612         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69613         From coreutils' system.h.
69614
69615         * lib/userspec.c: Don't include "posixver.h".
69616         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69617         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69618         compatible extension.  Simplify code by removing a boolean int
69619         that was always nonzero if a string was nonnull.
69620
69621 2004-03-30  Jim Meyering  <jim@meyering.net>
69622
69623         Merge from coreutils.
69624
69625         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69626         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69627         on some systems one must include <grp.h> before it.
69628         Reported by Christian Krackowizer.
69629
69630 2004-03-30  Jim Meyering  <jim@meyering.net>
69631
69632         Merge from coreutils.
69633
69634         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69635
69636         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69637         an empty input stream.
69638
69639         * lib/readtokens.c: Include <stdbool.h>.
69640         (readtoken): Use `size_t' rather than int/long.
69641         All callers adjusted.
69642         Use `bool' rather than `int' where appropriate.
69643         Use memset rather than an explicit loop.
69644         Use x2nrealloc rather than xrealloc.
69645         Allow the use of `\0' as a delimiter.
69646         (readtokens): Likewise.
69647         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69648
69649 2004-03-30  Jim Meyering  <jim@meyering.net>
69650
69651         * m4/realloc.m4: Remove file, since now it does no more than
69652         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69653         the `configure.ac' section of module/realloc.
69654         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69655
69656 2004-03-30  Bruno Haible  <bruno@clisp.org>
69657
69658         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69659         nonnull.
69660
69661 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69662
69663         Merge changes to getloadavg.c from coreutils and Emacs.
69664
69665         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69666         Define to an expression, not to the empty string.
69667         Include cloexec.h and xalloc.h.
69668         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69669         Use set_cloexec_flag rather than rolling our own.
69670         * lib/cloexec.c, lib/cloexec.h: New files.
69671
69672 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69673
69674         * m4/cloexec.m4: New file.
69675
69676 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69677
69678         * lib/getopt.h: Sync with libc CVS.
69679
69680 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69681             Bruno Haible  <bruno@clisp.org>
69682
69683         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69684         mbswidth.
69685
69686 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69687             Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/mbswidth.h: Include <wchar.h> only if
69690         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69691         <wchar.h>.
69692         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69693
69694 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69695
69696         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69697         Sync with libc CVS.
69698         * lib/getopt_int.h: New file, also synced from libc.
69699
69700 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69701
69702         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69703         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69704         Bring back getopt.c, getopt.h, getopt1.c.
69705
69706 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69707
69708         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69709         All uses changed.  Check for sa_sigaction member; this fixes
69710         a bug first reported by Jason Andrade in
69711         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69712
69713 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69714
69715         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69716         '#if' expressions.  Unlike the code it replaces, it does not
69717         depend on (defined _SC_PAGESIZE).  However, it does depend on
69718         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69719         first reported by Jason Andrade in
69720         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69721
69722 2004-02-25  Simon Josefsson  <jas@extundo.com>
69723
69724         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69725
69726 2004-02-25  Simon Josefsson  <jas@extundo.com>
69727
69728         * lib/strdup.h: New file.
69729         * lib/strdup.c: Include it.
69730         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69731         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69732
69733 2004-02-23  Karl Berry  <karl@gnu.org>
69734
69735         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69736         (from fencepost.gnu.org:/gd/gnuorg).
69737
69738 2004-02-23  Karl Berry  <karl@gnu.org>
69739
69740         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69741         * config/srclist.txt: add maintain/standards documents.
69742
69743 2004-02-18  Bruno Haible  <bruno@clisp.org>
69744
69745         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69746         Reported by Derek Robert Price <derek@ximbiot.com>.
69747
69748 2004-02-16  Karl Berry  <karl@gnu.org>
69749
69750         * config/mkinstalldirs, install-sh: update from automake.
69751
69752 2004-02-06  Karl Berry  <karl@gnu.org>
69753
69754         * m4/po.m4: update from gettext 0.14.1.
69755
69756 2004-02-06  Karl Berry  <karl@gnu.org>
69757
69758         * lib/config.charset: update from gettext 0.14.1.
69759
69760 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69761
69762         Add comments and code, prompted by suggestions from Bruno Haible
69763         for sh-quote.
69764         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69765         describing the enum quoting_style values.
69766         * lib/quotearg.c (quotearg_alloc): New function.
69767         (quotearg_buffer_restyled): Treat lone { and } as special.
69768         Treat = as special.  Work around bug with older shells
69769         that "see" a '\' that is really the 2nd byte of a multibyte char.
69770         Quote empty string with shell_quoting_style.
69771
69772 2004-02-03  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/pipe.m4: New file, from GNU gettext.
69775
69776 2004-02-03  Bruno Haible  <bruno@clisp.org>
69777
69778         * lib/pipe.h: New file, from GNU gettext.
69779         * lib/pipe.c: New file, from GNU gettext.
69780
69781 2004-01-27  Bruno Haible  <bruno@clisp.org>
69782
69783         * m4/execute.m4: New file, from GNU gettext.
69784
69785 2004-01-27  Bruno Haible  <bruno@clisp.org>
69786
69787         * lib/execute.h: New file, from GNU gettext.
69788         * lib/execute.c: New file, from GNU gettext.
69789         * lib/w32spawn.h: New file, from GNU gettext.
69790
69791 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69792
69793         Merge from diffutils.
69794
69795         * lib/file-type.c (file_type): Add typed memory objects.
69796         * lib/file-type.h (S_TYPEISTMO): New macro.
69797
69798         * lib/c-stack.h (c_stack_action): Remove argv argument.
69799         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69800         (die): Don't calculate message unless segv_action returns.
69801         (get_stack_location, min_address_from_argv, max_address_from_argv,
69802         volatile stack_base, volatile_stack_size): Remove.
69803         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69804         that every segmentation violation is a stack overflow.  (Ouch!)
69805         See Debian bug 136249 (still outstanding) for more info about why
69806         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69807
69808 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69809
69810         Exit-status fix from coreutils.
69811
69812         Use exit_failure consistently in place of EXIT_FAILURE,
69813         so that program exit statuses are consistent on failure.
69814
69815         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69816         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69817         * lib/argmatch.h: Comment fix to match the above.
69818         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69819         Now a macro referring to exit_failure, instead of a separate
69820         variable.  Include "exitfail.h" to get it.
69821         * lib/xstrtol.h: Include "exitfail.h".
69822         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69823
69824         * lib/long-options.c (parse_long_options): Use prototype
69825         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69826         for clarity.
69827
69828 2004-01-21  Jim Meyering  <jim@meyering.net>
69829
69830         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69831         so as not to conflict with a different-sized __mktime_internal
69832         function in GNU libc.
69833         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69834         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69835
69836 2004-01-20  Karl Berry  <karl@gnu.org>
69837
69838         * config/config.guess: update from config.
69839
69840         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69841
69842 2004-01-20  Bruno Haible  <bruno@clisp.org>
69843
69844         Safer stack allocation.
69845         * lib/setenv.c: Include allocsa.h.
69846         (alloca): Remove fallback definition.
69847         (freea): Remove macro.
69848         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69849         instead of freea.
69850
69851 2004-01-20  Bruno Haible  <bruno@clisp.org>
69852
69853         * m4/eealloc.m4: New file, from GNU gettext.
69854
69855 2004-01-20  Bruno Haible  <bruno@clisp.org>
69856
69857         * m4/allocsa.m4: New file, from GNU gettext.
69858
69859 2004-01-20  Bruno Haible  <bruno@clisp.org>
69860
69861         * lib/xallocsa.h: New file, from GNU gettext.
69862         * lib/xallocsa.c: New file, from GNU gettext.
69863
69864 2004-01-20  Bruno Haible  <bruno@clisp.org>
69865
69866         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69867
69868 2004-01-20  Bruno Haible  <bruno@clisp.org>
69869
69870         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69871         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69872         specially.
69873
69874 2004-01-20  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69877         patch.
69878
69879 2004-01-20  Bruno Haible  <bruno@clisp.org>
69880
69881         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69882
69883 2004-01-20  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/eealloc.h: New file.
69886
69887 2004-01-20  Bruno Haible  <bruno@clisp.org>
69888
69889         * lib/binary-io.h: Avoid warnings on Cygwin.
69890
69891 2004-01-20  Bruno Haible  <bruno@clisp.org>
69892
69893         * lib/allocsa.h: New file, from GNU gettext.
69894         * lib/allocsa.c: New file, from GNU gettext.
69895
69896 2004-01-18  Karl Berry  <karl@gnu.org>
69897
69898         * doc/gpl.texi, doc/lgpl.texi: new files.
69899
69900 2004-01-18  Karl Berry  <karl@gnu.org>
69901
69902         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69903         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69904
69905 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69906
69907         Merge from coreutils.
69908
69909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69910         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69911         (gl_DEFAULT_POSIX2_VERSION): Move
69912         the documentation from 'configure' into 'config.hin',
69913         so that 'configure --help' isn't burdened by it and
69914         we don't have to worry about its formatting there.
69915         Reword the documentation so that it's more succinct
69916         and can be run together into a single paragraph.
69917         * m4/same.m4 (gl_SAME): Check for pathconf.
69918
69919 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69920
69921         Merge from coreutils.
69922
69923         * lib/posixver.c: Include posixver.h.
69924
69925         * lib/same.c: Include <stdbool.h>, <limits.h>.
69926         (_POSIX_NAME_MAX): Define if not defined.
69927         (MIN): New macro.
69928         (same_name): If file names are silently truncated, report
69929         that the file names are the same if they are the same after
69930         the silent truncation.
69931
69932         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69933         conversion function.
69934         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69935         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69936         longer needed.
69937
69938 2004-01-15  Jim Meyering  <jim@meyering.net>
69939
69940         Merge from coreutils.
69941
69942         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69943         if no library is required.
69944         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69945         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69946         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69947         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69948         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69949         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69950         value, $ac_cv_search_crypt, if it's "none required".
69951         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69952         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69953         not gl_FUNC_GETLOADAVG.
69954         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69955         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69956
69957 2004-01-15  Jim Meyering  <jim@meyering.net>
69958
69959         Merge from coreutils.
69960
69961         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69962         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69963         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69964
69965         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69966         optional configure-time default.
69967
69968         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69969
69970         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69971
69972 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69973
69974         Merge from coreutils.
69975
69976         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69977         value, $ac_cv_search_nanosleep, if it's "none required".
69978
69979 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69980
69981         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69982         with like-named macro in fnmatch.c.
69983         (EXT): Use an internal constant instead.
69984
69985         Merge fnmatch patches from glibc.
69986         * lib/fnmatch.c (mbsinit): Remove define.
69987         Add libc_hidden_ver (__fnmatch, fnmatch).
69988         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69989         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69990
69991 2004-01-14  Karl Berry  <karl@gnu.org>
69992
69993         * config/install-sh: update from automake.
69994
69995 2004-01-13  Karl Berry  <karl@gnu.org>
69996
69997         * config/install-sh: update from automake.
69998
69999 2004-01-09  Karl Berry  <karl@gnu.org>
70000
70001         * config/install-sh: update from automake.
70002
70003 2004-01-05  Karl Berry  <karl@gnu.org>
70004
70005         * config/config.{sub,guess}: update from config.
70006
70007 2003-12-31  Karl Berry  <karl@gnu.org>
70008
70009         * config/depcomp: update from automake.
70010
70011 2003-12-14  Karl Berry  <karl@gnu.org>
70012
70013         * lib/config.charset: update from gettext-runtime.
70014
70015 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70016
70017         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70018         Bug reported by Alfred M. Szmidt.
70019
70020 2003-12-03  Bruno Haible  <bruno@clisp.org>
70021
70022         * m4/gettext.m4: Upgrade from gettext-0.13.
70023         * m4/po.m4: Upgrade from gettext-0.13.
70024         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70025         * m4/intmax.m4: New file, from gettext-0.13.
70026         * m4/printf-posix.m4: New file, from gettext-0.13.
70027
70028 2003-11-29  Karl Berry  <karl@gnu.org>
70029
70030         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70031
70032 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70033             Bruno Haible  <bruno@clisp.org>
70034
70035         * lib/printf-parse.h: Don't include sys/types.h.
70036         (ARG_NONE): New macro.
70037         (char_directive): Change type of *arg_index fields to size_t.
70038         * lib/printf-parse.c: Don't include sys/types.h.
70039         (SSIZE_MAX): Remove macro.
70040         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70041         Remove unnecessary overflow check.
70042         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70043         fields.
70044
70045 2003-11-25  Bruno Haible  <bruno@clisp.org>
70046
70047         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70048
70049 2003-11-25  Bruno Haible  <bruno@clisp.org>
70050
70051         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70052         gt_TYPE_SSIZE_T.
70053
70054 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70055
70056         * modules/alloca: Remove dependency on xalloc.
70057
70058 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70059
70060         * lib/alloca.c: Remove dependency on xalloc module.
70061         (xalloc_die): Remove.
70062         (memory_full) [!defined emacs]: New macro.
70063         [!defined emacs]: Don't include xalloc.h.
70064         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70065         address arithmetic overflows.  Change datatypes a bit to avoid
70066         unnecessary casts.
70067
70068 2003-11-22  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70071         s/size/size_t/.
70072
70073 2003-11-21  Karl Berry  <karl@gnu.org>
70074
70075         * config/config.{sub,guess}: update from config.
70076
70077 2003-11-18  Karl Berry  <karl@gnu.org>
70078
70079         * config/config.{sub,guess}: update from config.
70080
70081         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70082
70083 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70084
70085         * README: Mention that S+T cannot overflow if S is the size of
70086         an existing object and T is sufficiently small.
70087
70088 2003-11-17  Jim Meyering  <jim@meyering.net>
70089
70090         On systems without utime and without a utimes function capable of
70091         dealing with a NULL struct utimbuf* argument, this utime replacement
70092         could -- in unusual circumstances -- leak a file descriptor.
70093         * lib/utime.c: Include <unistd.h> and <errno.h>.
70094         (utime_null): Be sure to close `fd' and to preserve errno.
70095         Reported by Geoff Collyer via Arnold Robbins.
70096
70097 2003-11-17  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70100         (Depends-on): Add xsize.
70101
70102 2003-11-17  Bruno Haible  <bruno@clisp.org>
70103
70104         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70105
70106 2003-11-17  Bruno Haible  <bruno@clisp.org>
70107
70108         * lib/vasnprintf.c (alloca): Remove fallback definition.
70109         (freea): Remove definition.
70110         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70111         Reported by Paul Eggert.
70112
70113 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70114             Bruno Haible  <bruno@clisp.org>
70115
70116         Protect against address arithmetic overflow.
70117         * lib/printf-args.h: Include stddef.h.
70118         (arguments): Change type of field 'count' to size_t.
70119         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70120         'unsigned int' where appropriate.
70121         * lib/printf-parse.h: Include sys/types.h.
70122         (char_directive): Change type of *arg_index fields to ssize_t.
70123         (char_directives): Change type of fields 'count', max_*_length to
70124         size_t.
70125         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70126         (SSIZE_MAX): Define fallback value.
70127         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70128         instead of 'int' where appropriate. Check a_allocated, d_allocated
70129         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70130         * lib/vasnprintf.c: Include xsize.h.
70131         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70132         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70133         overflow. Avoid wraparound when converting a width or precision from
70134         decimal to binary.
70135
70136 2003-11-16  Bruno Haible  <bruno@clisp.org>
70137
70138         Update from GNU gettext.
70139         * lib/printf-parse.c: Generalize to it can be compiled for wide
70140         strings.
70141         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70142         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70143         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70144         SNPRINTF): New macros.
70145         Don't include <alloca.h> if the file is used inside libintl.
70146         (local_wcslen): New function, for Solaris 2.5.1.
70147         (VASNPRINTF): Use it instead of wcslen.
70148
70149 2003-11-16  Bruno Haible  <bruno@clisp.org>
70150
70151         * lib/xsize.h (xmax): New function.
70152         (xsum, xsum3, xsum4): Declare as "pure" functions.
70153
70154 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70155
70156         * modules/xalloc (Files): Undo latest change, since xalloc.h
70157         no longer needs SIZE_MAX or PTRDIFF_MAX.
70158
70159 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70160
70161         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70162         gl_PTRDIFF_MAX.
70163
70164 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70165
70166         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70167         "return", to pacify some unknown compiler.  Problem reported
70168         by Joerg Schilling.
70169
70170 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70171
70172         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70173         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70174         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70175         heuristic is just as accurate as far as we know, and it removes a
70176         dependency on size_max.m4 and ptrdiff_max.m4.
70177
70178 2003-11-11  Bruno Haible  <bruno@clisp.org>
70179
70180         * modules/xsize (Files): Add m4/size_max.m4.
70181         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70182
70183 2003-11-11  Bruno Haible  <bruno@clisp.org>
70184
70185         * m4/size_max.m4: New file.
70186         * m4/ptrdiff_max.m4: New file.
70187         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70188         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70189         (gl_XALLOC): Invoke it.
70190
70191 2003-11-11  Bruno Haible  <bruno@clisp.org>
70192
70193         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70194         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70195         defined.
70196
70197 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70198
70199         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70200         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70201         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70202         From Bruno Haible.
70203         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70204         not (size_t) -1, since it's defined here.
70205
70206 2003-11-09  Karl Berry  <karl@gnu.org>
70207
70208         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70209
70210 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70211
70212         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70213         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70214         Reject sizes of exactly SIZE_MAX bytes.
70215         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70216         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70217
70218 2003-11-05  Bruno Haible  <bruno@clisp.org>
70219
70220         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70221         SIZE_MAX defined in <limits.h> on Solaris.
70222
70223 2003-11-04  Jim Meyering  <jim@meyering.net>
70224
70225         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70226         variable names, rather than @VAR@.
70227         * modules/poll: Likewise.
70228
70229 2003-11-04  Bruno Haible  <bruno@clisp.org>
70230
70231         * modules/xsize: New file.
70232         * modules/linebreak: Depend on xsize.
70233         * MODULES.html.sh (func_all_modules): Add xsize.
70234
70235 2003-11-04  Bruno Haible  <bruno@clisp.org>
70236
70237         * m4/xsize.m4: New file.
70238
70239 2003-11-04  Bruno Haible  <bruno@clisp.org>
70240
70241         * lib/xsize.h: New file.
70242         * lib/linebreak.c: Include xsize.h.
70243         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70244         argument for overflow.
70245         Suggested by Paul Eggert.
70246
70247 2003-11-03  Karl Berry  <karl@gnu.org>
70248
70249         * config/config.{guess,sub}: update from config.
70250
70251 2003-11-03  Jim Meyering  <jim@meyering.net>
70252
70253         * modules/userspec (lib_SOURCES): Add userspec.h.
70254         (Include): Add "userspec.h".
70255         Improve description.
70256
70257 2003-11-03  Jim Meyering  <jim@meyering.net>
70258
70259         * lib/userspec.c: Include "userspec.h".
70260         * lib/userspec.h: New file.
70261
70262 2003-11-03  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70265
70266 2003-11-03  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70269         available, to avoid (extremely rare) race condition.
70270         Suggested by Paul Eggert.
70271
70272 2003-11-02  Karl Berry  <karl@gnu.org>
70273
70274         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70275
70276 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70277
70278         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70279         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70280         (read_filesystem_list): Set and use me_type_malloced.
70281         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70282         whatever the type happens to be), for brevity and consistency.
70283         Check for size calculation overflow on Alphas running OSF/1.
70284
70285 2003-10-31  Jim Meyering  <jim@meyering.net>
70286
70287         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70288
70289         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70290
70291 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70292             Bruno Haible  <bruno@clisp.org>
70293
70294         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70295         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70296
70297 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70298
70299         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70300         netbsd*-gnu*.  Suggested by Robert Millan.
70301
70302 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70303
70304         * modules/group-member: Depend on stdbool.
70305
70306 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70307
70308         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70309
70310 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70311
70312         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70313         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70314         after the 'gnu' in these cases.  This fixes some bugs in the
70315         previous change, and is based on suggestions by Robert Millan.
70316
70317 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70318
70319         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70320         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70321         no longer needed.
70322         * lib/quotearg.c (quotearg_n_options): Use it.
70323         * lib/group-member.c: Include <stdbool.h>.
70324         (free_group_info): Arg is now const *; don't free arg.
70325         (get_group_info): Now returns bool and accepts struct group_info *,
70326         rather than returning a malloc'ed struct group_info *.
70327         All uses changed.  Check for overflow in internal size calculation.
70328
70329         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70330         rather than xmalloc/xrealloc.
70331         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70332         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70333         conformance bug: the old code used a pointer after freeing the
70334         storage that it addressed.
70335         * lib/hash.c (hash_initialize): Simplify the code by using
70336         xalloc_oversized rather than doing it by hand.
70337         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70338         the buffer preserved.  Use free and xmalloc instead.
70339         * lib/quotearg.c (quotearg_n_options): Likewise.
70340         Use a simpler test for size overflow.  Don't use xalloc_oversized
70341         because unsigned int might be wider than size_t (!); this suggests
70342         that we should switch from unsigned int to size_t for slot numbers.
70343
70344 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70345
70346         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70347         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70348         NetBSD kernels.  Requested by Richard Stallman.
70349
70350 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70351
70352         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70353         to allocate the returned structure.  Do not allocate a subarray,
70354         as x2nrealloc will do that.
70355         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70356         instead of xnrealloc.
70357         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70358
70359 2003-10-27  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/stdbool_.h: Better support for BeOS.
70362
70363 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70364
70365         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70366         now uses inline.
70367
70368 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70369
70370         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70371         callers that want to do their own size-overflow checking.  Include
70372         <stdbool.h>, since xalloc_oversized returns bool.
70373         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70374         to use xalloc_oversized.
70375
70376         Add two functions x2realloc, x2nrealloc, for programs that grow
70377         arrays dynamically by doubling their sizes.
70378         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70379         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70380         New functions.
70381
70382         Port to C99 semantics for 'inline' of external functions.
70383         Bug reported by Bruno Haible.
70384         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70385         with the old contents of xnmalloc.
70386         (xnmalloc, xmalloc): Use it.
70387         (xnrealloc_inline): New static inline function,
70388         with the old contents of xnrealloc.
70389         (xnrealloc, xrealloc): Use it.
70390
70391         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70392         that.
70393
70394 2003-10-26  Karl Berry  <karl@gnu.org>
70395
70396         * config/srclist.txt (COPYING.DOC): no longer available from
70397         /gd/gnuorg; don't know where the ultimate source is.
70398
70399 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70400
70401         Fix several address-calculation bugs in the hash modules,
70402         plus some minor code cleanup.
70403
70404         * lib/hash.h: Include <stdbool.h>, for bool.
70405         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70406         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70407         hash_get_n_entries, hash_get_max_bucket_length,
70408         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70409         hash_rehash): Use size_t rather than unsigned.
70410         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70411         hash_get_n_buckets_used, hash_get_n_entries,
70412         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70413         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70414         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70415         Likewise.
70416         (SIZE_MAX): Define if not defined.
70417         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70418         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70419         hash_print):
70420         Use const * when possible.
70421         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70422         (check_tuning): Fix bug: if tuning parameters were very close to
70423         0 or 1, rounding errors could have caused subscript violations.
70424         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70425         (hash_initialize): Add 'fail:' label
70426         to free table and return NULL, and use it to simplify code.
70427         Use calloc rather than clearing the storage ourself.
70428         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70429         buffer size calculations.
70430         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70431         Include <stddef.h>, for size_t.
70432         * lib/hash-pjw.c (hash_pjw): Likewise.
70433         Switch to method described by Bruno Haible.
70434         Include <limits.h>, for CHAR_BIT.
70435         (SIZE_BITS): New macro.
70436
70437 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70438
70439         * m4/getline.m4 (AM_FUNC_GETLINE):
70440         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70441         hosts.  Problem reported by Derek Robert Price in
70442         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70443         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70444         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70445
70446 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70447
70448         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70449         ceiling the allocation at NMAX bytes rather than silently
70450         discarding input bytes before NMAX is reached.  This makes
70451         a difference only if NMAX exceeds SIZE_MAX / 2.
70452
70453         * lib/obstack.c: Merge from glibc.
70454         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70455         Add libc_hidden_def (_obstack_newchunk).
70456         (_obstack_free) [! defined _LIBC]: Remove.
70457         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70458         a clone of the function body.
70459         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70460         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70461
70462         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70463         glibc.
70464         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70465         arg to memcpy.
70466
70467         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70468         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70469         Don't use lvalue casts, as GCC plans to remove support for them
70470         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70471         was also present in the non-GCC version, indicating that this
70472         code had always been buggy and had never been widely used.
70473         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70474         Use the fast variant of each macro, rather than copying the
70475         definiens of the fast variant; that way, we'll be more likely to
70476         catch future bugs in the fast variants.
70477
70478 2003-10-20  Bruno Haible  <bruno@clisp.org>
70479
70480         * modules/wait-process: New file.
70481         * MODULES.html.sh (func_all_modules): Add wait-process.
70482
70483 2003-10-20  Bruno Haible  <bruno@clisp.org>
70484
70485         * m4/wait-process.m4: New file.
70486
70487 2003-10-20  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/wait-process.h: New file, from GNU gettext.
70490         * lib/wait-process.c: New file, from GNU gettext.
70491
70492 2003-10-19  Jim Meyering  <jim@meyering.net>
70493
70494         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70495         HPUX 10.20.
70496
70497 2003-10-18  Karl Berry  <karl@gnu.org>
70498
70499         * config/config.guess: update from config.
70500
70501 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70502
70503         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70504         (getgroups): First arg is int, not size_t.
70505         Don't let 'free' mangle errno.
70506
70507 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70508
70509         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70510
70511 2003-10-16  Karl Berry  <karl@gnu.org>
70512
70513         * config/config.{guess,sub}: update from config.
70514
70515 2003-10-16  Jim Meyering  <jim@meyering.net>
70516
70517         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70518         memcpy.
70519
70520 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70521
70522         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70523         (SIZE_MAX): Remove.
70524         (new_exclude, add_exclude_file): Initial size no longer needs to
70525         be a power of 2.
70526         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70527         our own address arithmetic overflow checking.
70528
70529         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70530         (fnmatch): Do not alloca more than 2000 wide characters;
70531         instead, use malloc for large buffers.
70532         Check for address arithmetic overflow, and return -1
70533         with errno set to ENOMEM in that case.
70534         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70535         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70536         instead, return -1.  Check for address arithmetic overflow.
70537
70538 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70539
70540         Handle invalid suffixes and overflow independently, so that
70541         callers can treat them independently as needed.  Fix some bugs in
70542         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70543         suffix for a human-readable blocksize.  The major caller-visible
70544         change is the addition of a new
70545         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70546         that both overflow and suffix chars were found.
70547
70548         * lib/human.c (humblock): Don't check separately for invalid suffix
70549         char; that is xstrtoumax's job (now that its bug is fixed).
70550         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70551         INTMAX_MAX]: New macros.
70552         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70553         TYPE_MAXIMUM): New macros.
70554         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70555         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70556         if overflow occurs, as it's what __strtol does and it's more useful
70557         in practice.
70558         (__xstrtol): If __strtol reports some error other than ERANGE,
70559         reflect it to the caller as LONGINT_INVALID.  If it reports
70560         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70561         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70562         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70563         value.
70564         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70565         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70566         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70567         [defined UINTMAX_MAX]: New macros.
70568
70569 2003-10-14  Bruno Haible  <bruno@clisp.org>
70570
70571         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70572
70573 2003-10-14  Bruno Haible  <bruno@clisp.org>
70574
70575         * m4/sig_atomic_t: New file, from GNU gettext.
70576         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70577
70578 2003-10-14  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70581         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70582         Also use volatile where needed.
70583
70584 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70585
70586         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70587         Change maintainer from Bruno Haible to 'all'.
70588
70589 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70590
70591         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70592
70593 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70594
70595         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70596         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70597         and define in terms of the other primitives.
70598         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70599         (SIZE_MAX): Define if not already defined.
70600         (array_size_overflow): New function.
70601         (xalloc_die): Abort instead of exiting if 'error' returns.
70602         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70603         (xmalloc, xrealloc): Use them.
70604         (xcalloc): Check for address arithmetic overflow.
70605         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70606         a bit faster than strcpy.
70607
70608 2003-10-10  Simon Josefsson  <jas@extundo.com>
70609
70610         * modules/argp (Depends-on): Add restrict and strcase.
70611
70612 2003-10-10  Simon Josefsson  <jas@extundo.com>
70613
70614         * m4/argp.m4: Add AC_C_INLINE.
70615
70616 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70617
70618         Merge getpass from libc, plus a few fixes.
70619
70620         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70621         Include <stdbool.h>.
70622         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70623         __fsetlocking to empty.
70624         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70625         do include <bits/libc-lock.h>.
70626         Do not include <fcntl.h>; not needed.
70627         [_LIBC]: Include <wchar.h>.
70628         (NOTCANCEL_MODE): New macro.
70629         (flockfile, funlockfile) [_LIBC]: New macros.
70630         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70631         [!_LIBC]: New macros.
70632         (call_fclose): New function.
70633         (getpass): Use it.  Save tty stream separately; this simplifies the
70634         code and makes it more reliable if stdin happens to equal stdout.
70635         Invoke __fsetlocking on tty.
70636         Handle thread cancellation if needed.
70637         Namespace cleanup (use __tcgetattr, __getline).
70638         Use bool for Booleans.
70639         [USE_IN_LIBIO]: Handle wide streams.
70640         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70641         stream might go where.
70642
70643         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70644         doesn't have to include <stdio.h> before us.
70645         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70646         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70647         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70648         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70649         if not declared, so that we can use getpass.c code from libc without
70650         rewriting it.
70651         (flockfile, ftrylockfile, funlockfile): New macros.
70652
70653 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70654
70655         * modules/getpass: Depend on stdbool.
70656
70657 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70658
70659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70660
70661 2003-10-07  Karl Berry  <karl@gnu.org>
70662
70663         * config/config.{guess,sub}: update from config.
70664
70665 2003-10-06  Jim Meyering  <jim@meyering.net>
70666             Bruno Haible  <bruno@clisp.org>
70667
70668         This lets translators provide better translations for the
70669         "Written by ..." part of --version output.
70670         * lib/version-etc.h: Include stdarg.h.
70671         (version_etc_copyright): Declare as readonly.
70672         (version_etc): Make this function variadic with a NULL-terminated list
70673         of author name strings.
70674         (version_etc_va): New declaration.
70675         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70676         (version_etc_copyright): Declare as readonly.
70677         (version_etc_va): New function. Provide a different translatable string
70678         for each possible number of authors < 10. Abbreviate when there are 10
70679         authors or more.
70680         (version_etc): Make this function variadic. Call version_etc_va.
70681         Suggestion from Gary V. Vaughan.
70682
70683         * lib/long-options.h (parse_long_options): Change prototype: the
70684         authors string is moved to the end and becomes variadic.
70685         * lib/long-options.c: Include stdarg.h.
70686         (parse_long_options): Make this function variadic, too.
70687         Call version_etc_va, not version_etc.
70688
70689 2003-10-06  Bruno Haible  <bruno@clisp.org>
70690
70691         * modules/version-etc-2: Remove file.
70692         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70693
70694 2003-10-06  Bruno Haible  <bruno@clisp.org>
70695
70696         * modules/fatal-signal: New file.
70697         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70698
70699 2003-10-06  Bruno Haible  <bruno@clisp.org>
70700
70701         * m4/fatal-signal.m4: New file.
70702         * m4/signalblocking.m4: New file, from GNU gettext.
70703
70704 2003-10-06  Bruno Haible  <bruno@clisp.org>
70705
70706         * lib/version-etc-2.h: Remove file.
70707         * lib/version-etc-2.c: Remove file.
70708
70709 2003-10-06  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/fatal-signal.h: New file, from GNU gettext.
70712         * lib/fatal-signal.c: New file, from GNU gettext.
70713
70714 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70715
70716         * README: Rework advice for preventing empty .o files.
70717         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70718         not <sys/types.h>.
70719
70720 2003-10-04  Karl Berry  <karl@gnu.org>
70721
70722         * lib/argp*: update from libc.
70723
70724 2003-10-04  Karl Berry  <karl@gnu.org>
70725
70726         * config/config.{guess,sub}: update from config.
70727
70728 2003-10-02  Bruno Haible  <bruno@clisp.org>
70729
70730         * modules/lchown (Include): Add lchown.h.
70731         * modules/time_r (Include): Use "..." syntax.
70732         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70733
70734 2003-10-01  Simon Josefsson  <jas@extundo.com>
70735
70736         * MODULES.html.sh (func_all_modules): Move gethostname from section
70737         'based on' to section 'lacking' POSIX:2001.
70738
70739 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70740
70741         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70742         to output mode on the same stream.
70743
70744 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70745
70746         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70747         Fix arg typo in previous patch.
70748
70749 2003-09-28  Jim Meyering  <jim@meyering.net>
70750
70751         * lib/error.c: Correct cpp indentation.
70752
70753 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70754
70755         * modules/free: New file.
70756
70757 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70758
70759         * m4/free.m4: New file.
70760
70761 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70762
70763         * lib/minmax.h (MIN, MAX)
70764         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70765         Omit the special code that used __typeof__, since we worry that
70766         it could be more trouble than it's worth.  See:
70767         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70768         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70769
70770         * lib/free.c: New file.
70771
70772 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70773
70774         Trivial fixes to Makefile.am parts of module listings.
70775         * modules/strstr: Append strstr.h to lib_SOURCES.
70776         * modules/strcase: Likewise, for strcase.h.
70777
70778 2003-09-27  Karl Berry  <karl@gnu.org>
70779
70780         * config/mkinstalldirs: update from automake.
70781
70782 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70783
70784         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70785         (error_tail): Do not loop, reallocating temporary buffer, since
70786         the output cannot contain more wide characters than the input
70787         contains bytes, the size must be big enough already.  This avoids
70788         one potential size overflow calculation.  Check for size overflow
70789         when calculating temporary buffer size.  Free temporary buffer
70790         when done, if it was allocated with malloc; this plugs a memory
70791         leak.  Remove casts from void * to pointers, that are no longer
70792         needed now that we're assuming C89 or better.
70793
70794         Merge error changes from glibc.
70795
70796         * lib/error.c, error.h: Update copyright notice header to match glibc.
70797         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70798         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70799         Disable cancellation while printing error.
70800         * lib/error.h: Prepend __ to parameter names.
70801
70802 2003-09-26  Jim Meyering  <jim@meyering.net>
70803
70804         * lib/error.c (error_tail): Move some declarations
70805         into inner scope where the local variables are used.
70806
70807 2003-09-26  Bruno Haible  <bruno@clisp.org>
70808
70809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70810         stpncpy().
70811         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70812
70813 2003-09-26  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70816         (stpncpy): Define as alias for gnu_stpncpy.
70817         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70818
70819 2003-09-25  Simon Josefsson  <jas@extundo.com>
70820
70821         * lib/xgetdomainname.h: New file.
70822         * lib/xgetdomainname.c: New file.
70823
70824 2003-09-25  Simon Josefsson  <jas@extundo.com>
70825             Bruno Haible  <bruno@clisp.org>
70826
70827         * modules/getdomainname: New file.
70828         * modules/xgetdomainname: New file.
70829         * MODULES.html.sh (func_all_modules): Add getdomainname,
70830         xgetdomainname.
70831
70832 2003-09-25  Simon Josefsson  <jas@extundo.com>
70833             Bruno Haible  <bruno@clisp.org>
70834
70835         * m4/getdomainname.m4: New file.
70836
70837 2003-09-25  Simon Josefsson  <jas@extundo.com>
70838             Bruno Haible  <bruno@clisp.org>
70839
70840         * lib/getdomainname.h: New file.
70841         * lib/getdomainname.c: New file.
70842
70843 2003-09-25  Karl Berry  <karl@gnu.org>
70844
70845         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70846
70847 2003-09-25  Karl Berry  <karl@gnu.org>
70848
70849         * config/install-sh: update from automake.
70850
70851 2003-09-25  Bruno Haible  <bruno@clisp.org>
70852
70853         * modules/version-etc-2: New file, from modules/version-etc with
70854         modifications.
70855         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70856
70857 2003-09-25  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70860         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70861
70862 2003-09-24  Simon Josefsson  <jas@extundo.com>
70863
70864         * modules/xgethostname: Add xgethostname.h.
70865
70866 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70867
70868         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70869         the buffer associated with the argument.  Bug reported by
70870         Simon Josefsson.
70871
70872 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70873
70874         * README: Document assumptions that 'int' is at least 32 bits
70875         wide, that integer arithmetic is 2's complement without overflow,
70876         that there are no holes in integer values, that adding sizes of
70877         two nonoverlapping objects can't overflow, and that all-bits-zero
70878         yields scalar zero.  Fix spelling and capitalization typos.
70879
70880 2003-09-19  Karl Berry  <karl@gnu.org>
70881
70882         * lib/argp.h: update from libc.
70883
70884 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70885
70886         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70887         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70888         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70889
70890 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70891
70892         * gnulib-tool: Use "test -h", not "test -L", for portability
70893         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70894         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70895         (sed_extract_prog): Issue s commands one-by-one, rather than
70896         using \| in one s command.
70897
70898 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70899
70900         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70901         input error, instead of returning NULL the next time we are called
70902         (and therefore losing track of errno).
70903
70904 2003-09-16  Bruno Haible  <bruno@clisp.org>
70905
70906         * gnulib-tool (func_create_testdir): Warn about duplicated
70907         dependencies.
70908
70909 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70910
70911         * modules/argmatch, modules/fatal, modules/obstack,
70912         modules/xalloc, modules/xgethostname: Sort dependencies by
70913         importance, not alphabetically.
70914
70915 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70916
70917         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70918         fails, so that the caller gets the proper errno.
70919
70920         * lib/readutmp.c (read_utmp): Likewise.
70921         Check for fstat error.  Close stream and free storage
70922         when failing.
70923
70924 2003-09-14  Karl Berry  <karl@gnu.org>
70925
70926         * config/srclist.txt (strdup.c): disable for c89 changes.
70927
70928 2003-09-14  Jim Meyering  <jim@meyering.net>
70929
70930         * lib/getloadavg.c: Correct cpp indentation.
70931         * lib/strdup.c: Likewise.
70932         * lib/vasnprintf.c: Likewise.
70933
70934 2003-09-14  Bruno Haible  <bruno@clisp.org>
70935
70936         * modules/fwriteerror: New file.
70937         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70938
70939 2003-09-14  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/fwriteerror.h: New file.
70942         * lib/fwriteerror.c: New file.
70943
70944 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70945
70946         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70947         modules/xgethostname, modules/xalloc: Depend on exit.
70948
70949 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70950
70951         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70952
70953         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70954         and AC_MINIX, too, so that their extensions are available.
70955
70956         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70957         This macro has been superseded by gl_BACKUPFILE.
70958
70959         More patches to assume C89 or better.
70960
70961         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70962
70963         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70964         unconditionally.
70965         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70966         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70967         Include <string.h>, <stdlib.h> unconditionally.
70968         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70969         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70970         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70971         headers or for string.h.
70972         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70973         or strtoul.
70974
70975         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70976         headers.
70977         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70978         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70979         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70980         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70981         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70982         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70983         memcpy, memset.
70984         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70985         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70986         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70987         strtol.
70988         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70989         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70991         strtoul.
70992
70993 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70994
70995         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70996         * lib/obstack.c [!defined _LIBC]: Likewise.
70997         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70998         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70999         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71000
71001         More changes to assume C89 or better.
71002
71003         * lib/error.c (error_tail): Assume vprintf.
71004
71005         * lib/argmatch.c (getenv): Remove decl.
71006         * lib/progreloc.c (get_full_program_name): Define via prototype.
71007         * lib/setenv.c (clearenv): Likewise.
71008         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71009         needed.
71010         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71011         (malloc, memcpy): Remove decls.
71012         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71013         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71014         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71015         (memcpy): Remove macro.
71016         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71017         (__P): Remove.  All uses removed.
71018         (PTR): Remove.  All uses changed to void *.
71019         (CHAR_BIT, NULL): Remove.
71020         (spaces, zeros, memset_space, memset_zero)
71021         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71022         Remove.
71023         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71024         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71025         Define with prototype.
71026         Remove now-unnecessary prototype decl.
71027         (extra_args_spec): Assume ANSI C.  All uses changed.
71028         (extra_args_spec_iso): Remove.
71029         (my_strftime, emacs_strftimeu): Define via prototype.
71030         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71031         unconditionally.
71032         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71033         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71034         (strtoul, strtol): Remove decls.
71035         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71036         LONG_MAX): Remove.
71037         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71038         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71039         (LOCALE_PARAM_PROTO): New macro.
71040         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71041         (INTERNAL (strtol), strtol): Define with a prototype.
71042         (PARAMS): Remove.  All uses removed.
71043         * lib/tempname.c: Include <string.h> unconditionally.
71044         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71045         * lib/xgethostname.c (main): Define with a prototype.
71046         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71047         Include <stdlib.h> unconditionally.
71048         (calloc, malloc, realloc, free): Remove decls.
71049         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71050         Include <stdlib.h> unconditionally.  Sort include file names.
71051         (strtod): Remove.
71052         (xstrtod): Define with a prototype.
71053         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71054         (strtol, strtoul): Remove decls.
71055
71056 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71057
71058         More patches to assume C89 or better.
71059         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71060         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71061         string.h, memchr, STDC_HEADERS.
71062
71063 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71064
71065         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71066         Include <stdlib.h>, <string.h> unconditionally.
71067         Remove now-unnecessary cast to char *.
71068         * lib/strnlen.c: Include <string.h> unconditionally.
71069         * lib/yesno.c (yesno): Define with a prototype.
71070
71071 2003-09-11  Bruno Haible  <bruno@clisp.org>
71072
71073         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71074
71075 2003-09-10  Jim Meyering  <jim@meyering.net>
71076
71077         * lib/error.c: Correct indentation of cpp directives.
71078
71079 2003-09-10  Bruno Haible  <bruno@clisp.org>
71080
71081         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71082         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71083         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71084         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71085         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71086         <stdlib.h> and <string.h> checks.
71087         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71088         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71089
71090 2003-09-10  Bruno Haible  <bruno@clisp.org>
71091
71092         * lib/strcspn.c: Include <string.h> unconditionally.
71093         * lib/strpbrk.c: Include <string.h> unconditionally.
71094         * lib/strstr.c: Include <string.h> unconditionally.
71095         * lib/unicodeio.c: Include <string.h> unconditionally.
71096         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71097         * lib/unsetenv.c: Likewise.
71098         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71099         * lib/yesno.c: Include <stdlib.h> unconditionally.
71100         (rpmatch): Add prototype.
71101
71102 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71103
71104         More patches to assume C89 or better.
71105         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71106         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71107         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71108         or for string.h.
71109         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71110         stdlib.h.
71111         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71112         C headers.
71113         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71114         string.h.
71115         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71116         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71117         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71118         or for string.h.
71119         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71120         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71121         C headers.
71122         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71123         memcpy.
71124         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71125         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71126         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71127         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71128         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71129         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71130         string.h, free.
71131         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71132         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71133         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71134         C headers, or for string.h.
71135         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71136         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71137         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71138         headers, memory.h, stdlib.h, string.h, strings.h.
71139         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71140         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71141         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71142         strchr.
71143         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71144         headers, memory.h, string.h.
71145         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71146         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71147         free.
71148         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71149         headers.
71150         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71151         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71152         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71153         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71154         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71155
71156 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71157
71158         More K&R removal.
71159
71160         * lib/acosl.c (main): Use a prototype.
71161         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71162         tanl.c: Likewise.
71163
71164         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71165
71166         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71167         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71168         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71169         with a prototype.
71170         * lib/getopt.c (const): Remove macro.
71171         Include <string.h> unconditionally.
71172         (my_index): Remove; all uses changed to strchr.
71173         (strlen): Remove decl.
71174         (exchange): Remove forward decl; no longer needed.
71175         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71176         Define with prototype.
71177         * lib/getopt1.c (const): Remove macro.
71178         (getopt_long, getopt_long_only, main): Define with prototype.
71179
71180         * lib/getugroups.c: Include <string.h> unconditionally.
71181
71182         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71183         (getusershell, setusershell, endusershell, readname, main):
71184         Define with prototypes.
71185
71186         * lib/group-member.c: Include group-member.h first.
71187         Include <stdlib.h> unconditionally.
71188
71189         * lib/hard-locale.c: Include hard-locale.h first.
71190         Include <stdlib.h>, <string.h> unconditionally.
71191
71192         * lib/hash.c (free, malloc): Remove decls.
71193         Include <stdlib.h> unconditionally.
71194
71195         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71196         (getenv): Do not declare.
71197
71198         * lib/idcache.c: Include <string.h> unconditionally.
71199
71200         * lib/long-options.c: Include long-options.h first, to test interface.
71201         Include <stdlib.h> unconditionally.
71202
71203         * lib/makepath.c: Include makepath.h first, to test interface.
71204         Include <stdlib.h> and <string.h> unconditionally.
71205
71206         * lib/linebuffer.c: Include <stdlib.h>.
71207         (free): Remove decl.
71208
71209         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71210         stddef.h. rpl_malloc returns void *, not char *.
71211         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71212         prototype.
71213
71214         * lib/md5.h: Include <limits.h> unconditionally.
71215         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71216         (__P): Remove; all uses removed.
71217         * lib/md5.c: Include "md5.h" first.
71218         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71219         md5_buffer, md5_process_bytes, md5_process_block):
71220         Define with prototypes.
71221         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71222         * lib/sha.c: Include "sha.h" first.
71223         Include <stdlib.h>, <string.h> unconditionally.
71224
71225         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71226         * lib/memcmp.c (__ptr_t): Likewise.
71227         * lib/memrchr.c (__ptr_t): Likewise.
71228         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71229         Include <string.h> unconditionally.
71230         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71231         * lib/memchr.c: Include <stdlib.h> unconditionally.
71232         * lib/memchr.c (LONG_MAX): Remove.
71233         * lib/memrchr.c (LONG_MAX): Likewise.
71234         * lib/memchr.c (__memchr): Define via a prototype.
71235         * lib/memrchr.c (__memrchr): Likewise.
71236         * lib/memcmp.c (__P): Remove, and remove all uses.
71237         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71238         Remove forward decls; no longer needed.
71239         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71240         Use types required by C89 in prototype.
71241
71242         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71243         * lib/savedir.c: Likewise.
71244         * lib/mkdir.c (free): Remove decl.
71245         * lib/rmdir.c (rmdir): Define with a prototype.
71246         * lib/savedir.c: Include savedir.h first, to test interface.
71247
71248         * lib/mktime.c (STDC_HEADERS): Remove.
71249         Include <stdlib.h>, <string.h> unconditionally.
71250
71251         * lib/modechange.c: Include <stdlib.h> unconditionally.
71252         (malloc): Remove decl.
71253
71254         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71255         (free): Remove decl.
71256
71257         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71258         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71259         (This type really should be intptr_t, but that's a C99ism.)
71260         (_obstack_memcpy): Remove: all uses changed to memcpy.
71261         Include <string.h> unconditionally.
71262         (struct obstack): Assume __STDC__ for types of members
71263         chunkfun, freefun, extra_arg.
71264         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71265         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71266         obstack_begin, obstack_specify_allocation,
71267         obstack_specify_allocation_with_arg, obstack_chunkfun,
71268         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71269         Remove unprototyped decls and the macros that use them.
71270         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71271         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71272         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71273         (defined __STDC__ && __STDC__)]:
71274         Remove nonprototyped code.
71275         Include <stdlib.h> unconditionally.
71276         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71277         _obstack_allocated_p, _obstack_free, obstack_free,
71278         _obstack_memory_used, print_and_abort):
71279         Define using prototypes.
71280         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71281         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71282         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71283         obstack_next_free, obstack_object_size, obstack_room) [0]:
71284         Remove unused, unprototyped code.
71285
71286         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71287
71288         * lib/physmem.c (physmem_total, physmem_available, main): Define
71289         with prototypes.
71290
71291         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71292         (main): Define with a prototype.
71293
71294         * lib/posixver.c (getenv): Remove decl.
71295
71296         * lib/putenv.c (malloc): Returns void *, not char *.
71297         Include <string.h> unconditionally.
71298         (strchr, memcpy, NULL): Do not define.
71299
71300         * lib/readtokens.c: Include readtokens.h first, to test interface.
71301         Include <stdlib.h>, <string.h> unconditionally.
71302         (init_tokenbuffer): Define with a prototype.
71303
71304         * lib/regex.c (PARAMS): Remove.  All uses removed.
71305         All uses of _RE_ARGS removed, too.
71306         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71307         unconditionally.
71308         (bzero): Assume memset exists.
71309         (memcmp, memcpy, NULL): Remove.
71310         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71311         char, or assignments to local vars of type signed char.
71312         (init_syntax_once, PREFIX(extract_number_and_incr),
71313         PREFIX(print_partial_compiled_pattern),
71314         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71315         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71316         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71317         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71318         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71319         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71320         wcs_compile_range, byte_compile_range, truncate_wchar,
71321         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71322         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71323         count_mbs_length, wcs_re_match_2_internal,
71324         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71325         PREFIX(alt_match_null_string_p),
71326         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71327         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71328         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71329         now-unnecessary declaration, if any.
71330         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71331         regcomp, regexec):
71332         Remove now-unnecessary casts among pointer types.
71333         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71334
71335         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71336         (free): Remove decl.
71337
71338         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71339
71340         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71341         (free): Remove decl.
71342
71343         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71344         * lib/xgetcwd.c: Likewise.
71345
71346         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71347         (free): Remove decl.
71348
71349         * lib/strchrnul.c (strchrnul): Define with a prototype.
71350         Fix bug: c_in was not converted to char before searching.
71351
71352         The following changes are not K&R related:
71353
71354         * lib/group-member.h: Include <sys/types.h>, so that this file is
71355         self-contained.
71356         * lib/makepath.h: Likewise.
71357
71358         * lib/getusershell.c (readname, default_index, line_size, readname):
71359         Use size_t, not int, for sizes.
71360         (readname): If the size overflows, report an error instead of
71361         looping forever.
71362
71363 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71364
71365         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71366         libc.
71367
71368 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71369
71370         * README: New section: portability guidelines.
71371
71372 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71373
71374         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71375         C89 spec.
71376
71377 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71378
71379         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71380
71381 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71382
71383         Assume C89 or better; remove K&R cruft.
71384         A few of these changes were first proposed by Derek Robert Price
71385         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71386
71387         * lib/addext.c: Include <string.h> unconditionally.
71388         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71389         Don't declare getenv or malloc.
71390
71391         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71392         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71393         (NULL): Remove.
71394         (find_stack_direction, alloca): Use prototypes.
71395
71396         * lib/atexit.c (atexit): Define using a prototype.
71397
71398         * lib/basename.c, dirname.c, stripslash.c:
71399         Include <string.h> unconditionally.
71400
71401         * lib/bcopy.c: Include <stddef.h>.
71402         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71403
71404         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71405
71406         * lib/error.h (error, error_at_line, error_print_progname)
71407         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71408         * lib/error.c: Include error.h first, to check interface.
71409         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71410         (VA_START): Remove; all uses changeed to va_start.
71411         (exit, strerror): Remove decls.
71412         (error_print_progname): Prototype uncondionally.
71413         Don't include <errno.h>; no longer needed.
71414         (private_strerror): Remove.
71415         (error_tail): Always define.
71416         (error, error_at_line): Assume C89 or better; always use prototypes.
71417         * lib/fatal.c: Include "fatal.h" first, to test interface.
71418         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71419         (VA_START): Remove; all uses changed to va_start.
71420         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71421         this case.
71422         (exit): Remove decl.
71423         (fatal): Prototype unconditionally.  Assume va_start works.
71424         Abort at end, to pacify gcc.
71425
71426         * lib/euidaccess.c (main): Define with a prototype.
71427
71428         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71429
71430         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71431
71432         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71433         prototypes.
71434         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71435         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71436         (getenv): Remove decl.
71437         (fnmatch): Define using a prototype.
71438         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71439         (FCT): Define using a prototype.
71440
71441         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71442
71443         * lib/gethostname.c: Include <stddef.h>.
71444         (gethostname): Define with prototype.  Length is size_t, not int.
71445
71446 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71447
71448         Assume C89 or better; remove K&R cruft.
71449         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71450         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71451         string.h, getenv, malloc.
71452         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71453         headers.
71454         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71455         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71456         do not check for strerror.
71457         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71458         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71459         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71460         do not check for doprnt or vprintf.
71461         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71462         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71463
71464 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71465
71466         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71467         getversion.c should have been removed then, but was accidentally
71468         preserved.
71469
71470         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71471         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71472
71473 2003-09-08  Karl Berry  <karl@gnu.org>
71474
71475         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71476                 config, forget about prep.
71477
71478         * config/depcomp, missing: update from automake.
71479
71480 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71481
71482         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71483         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71484
71485 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71486
71487         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71488         copy_tm_result.  Bug reported by Simon Josefsson in
71489         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71490
71491 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71492
71493         * m4/time_r.m4: New file.
71494         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71495         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71496         is. Check for timegm declaration.
71497         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71498         Do not check for gmtime_r.
71499         Replace mktime if __mktime_internal does not exist and if mktime
71500         hasn't been replaced already.
71501
71502 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71503
71504         * lib/time_r.c, lib/time_r.h: New files.
71505
71506         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71507         __localtime_r.
71508         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71509         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71510
71511         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71512         __gmtime_r.
71513         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71514         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71515         Include <time_r.h>.
71516
71517         * lib/timegm.c: Switch to glibc implementation, with the following
71518         changes:
71519         [defined HAVE_CONFIG_H]: Include <config.h>.
71520         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71521         (__mktime_internal) [!defined _LIBC]: New decl.
71522         (__gmtime_r) [!defined _LIBC]: New macro and function.
71523         (timegm): Use a prototype, since gnulib assumes C89.
71524         Do not bother declaring tmp to be const, as it's not really usefu.
71525         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71526         (timegm): Declare only if HAVE_DECL_TIMEGM.
71527
71528 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71529
71530         * MODULES.html.sh (func_all_modules): Add time_r.
71531         * modules/time_r: New file.
71532         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71533         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71534
71535 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71536
71537         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71538         Bug reported by Lute Kamstra in
71539         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71540
71541         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71542         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71543         course with correspondingly smaller numbers for tomorrow and
71544         yesterday.  From Tadayoshi Funaba.  Originally installed into
71545         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71546         coreutils merge?).
71547
71548 2003-08-31  Simon Josefsson  <jas@extundo.com>
71549
71550         * modules/timegm: New file.
71551         * MODULES.html.sh (func_all_modules): Add timegm.
71552
71553 2003-08-31  Simon Josefsson  <jas@extundo.com>
71554
71555         * m4/timegm.m4: New file.
71556
71557 2003-08-31  Simon Josefsson  <jas@extundo.com>
71558
71559         * lib/timegm.h: New file.
71560         * lib/timegm.c: New file.  Based on
71561         wget-1.8.2/src/http.c:mktime_from_utc.
71562
71563 2003-08-31  Karl Berry  <karl@gnu.org>
71564
71565         * lib/argp.h: update from libc.
71566
71567 2003-08-28  Bruno Haible  <bruno@clisp.org>
71568
71569         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71570         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71571         followed by '#define fnmatch fnmatch_posix' gives an error.
71572
71573 2003-08-28  Bruno Haible  <bruno@clisp.org>
71574
71575         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71576         warning on QNX, which defines O_BINARY to 000000.
71577
71578 2003-08-27  Jim Meyering  <jim@meyering.net>
71579
71580         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71581         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71582         would fail after 32.  Reported by Danny Levinson.  Details here:
71583         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71584
71585 2003-08-24  Bruno Haible  <bruno@clisp.org>
71586
71587         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71588         MSVC7 <stdio.h> is included later.
71589
71590 2003-08-22  Simon Josefsson  <jas@extundo.com>
71591
71592         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71593
71594 2003-08-20  Karl Berry  <karl@gnu.org>
71595
71596         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71597
71598 2003-08-20  Bruno Haible  <bruno@clisp.org>
71599
71600         * modules/progname: New file.
71601         * MODULES.html.sh (func_all_modules): Add progname.
71602
71603 2003-08-20  Bruno Haible  <bruno@clisp.org>
71604
71605         * lib/progname.h: New file, from GNU gettext.
71606         * lib/progname.c: New file, from GNU gettext.
71607         * lib/progreloc.c: New file, from GNU gettext.
71608
71609 2003-08-19  Jim Meyering  <jim@meyering.net>
71610
71611         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71612         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71613
71614 2003-08-19  Bruno Haible  <bruno@clisp.org>
71615
71616         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71617         more.
71618
71619 2003-08-19  Bruno Haible  <bruno@clisp.org>
71620
71621         * lib/xstrdup.c: Assume <string.h> exists.
71622
71623 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71624
71625         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71626         in makefile rules.
71627
71628 2003-08-18  Jim Meyering  <jim@meyering.net>
71629
71630         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71631         * m4/lib-ld.m4: Likewise.
71632
71633 2003-08-18  Jim Meyering  <jim@meyering.net>
71634
71635         * lib/setenv.h: Indent nested cpp directive.
71636         * lib/vasnprintf.c: Remove trailing blanks.
71637
71638 2003-08-17  Simon Josefsson  <jas@extundo.com>
71639
71640         * modules/xstrndup: New file.
71641         * MODULES.html.sh (func_all_modules): Add xstrndup.
71642
71643 2003-08-17  Simon Josefsson  <jas@extundo.com>
71644
71645         * modules/argp: Fix autoconf macro name. Add more dependencies.
71646
71647 2003-08-17  Simon Josefsson  <jas@extundo.com>
71648
71649         * m4/xstrndup.m4: New file.
71650
71651 2003-08-17  Simon Josefsson  <jas@extundo.com>
71652
71653         * m4/argp.m4: New file.
71654
71655 2003-08-17  Simon Josefsson  <jas@extundo.com>
71656             Bruno Haible  <bruno@clisp.org>
71657
71658         * lib/xstrndup.h: New file.
71659         * lib/xstrndup.c: New file.
71660
71661 2003-08-17  Bruno Haible  <bruno@clisp.org>
71662
71663         * modules/strndup (Files, Include): Add lib/strndup.h.
71664
71665 2003-08-17  Bruno Haible  <bruno@clisp.org>
71666
71667         * modules/euidaccess (Files): Add lib/euidaccess.h.
71668
71669 2003-08-17  Bruno Haible  <bruno@clisp.org>
71670
71671         * lib/strndup.h: New file.
71672
71673 2003-08-17  Bruno Haible  <bruno@clisp.org>
71674
71675         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71676         like AC_GNU_SOURCE.
71677         * modules/extensions (configure.ac): Comment out the invocation of
71678         gl_USE_SYSTEM_EXTENSIONS.
71679
71680 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71681
71682         Merges from coreutils, etc.
71683         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71684         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71685         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71686         fixing a typo.
71687         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71688         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71689
71690 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71691
71692         Document merge from coreutils.
71693         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71694         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71695         * modules/utime: Add m4/utimes-null.m4.
71696
71697 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71698
71699         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71700         space, undoing this 2003-08-12 change:
71701         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71702
71703 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71704
71705         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71706         strtoul.c from libc, undoing this 2003-08-12 change:
71707         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71708
71709 2003-08-16  Jim Meyering  <jim@meyering.net>
71710
71711         Merges from coreutils.
71712         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71713         prefix.  Adjust cache variables similarly.  Create 500 rather than
71714         just 300 files, to exercise bug on Darwin6.5, too.
71715         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71716         $missing_dir.
71717         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71718         AM_SYS_POSIX_TERMIOS.
71719         Reported by mkc@mathdogs.com.
71720         Also change use of $am_cv_sys_posix_termios
71721         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71722         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71723         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71724         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71725         in /proc/mounts until it finds one with matching device number.  This
71726         is unnecessary when the FILE argument *is* a mount point.  No stat call
71727         is necessary in that case.  So, disable the statvfs-testing code on
71728         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71729         as RedHat bug# 84846.
71730         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71731         to 1MB, so as not to render systems with no stack size limit (e.g.,
71732         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71733         Include <unistd.h>.  On some systems,
71734         it is required for the definition of _SC_PAGESIZE.
71735
71736 2003-08-16  Jim Meyering  <jim@meyering.net>
71737
71738         Merge from coreutils.
71739         * lib/xstrtoimax.c: #else #if -> #elif.
71740         * lib/xstrtoumax.c: Likewise.
71741
71742 2003-08-16  Jim Meyering  <jim@meyering.net>
71743
71744         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71745         * m4/utimes.m4: Removed.
71746         * m4/utimes-null.m4: Renamed from utimes.m4.
71747
71748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71749         to 1MB, so as not to render systems with no stack size limit (e.g.,
71750         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71751         Include <unistd.h>.  On some systems,
71752         it is required for the definition of _SC_PAGESIZE.
71753
71754 2003-08-16  Jim Meyering  <jim@meyering.net>
71755         and Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         Merges from coreutils, etc.
71758
71759         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71760         using the latest version from cvs.  This avoids problems with #line
71761         directives using a vendor (Sun) compiler.
71762         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71763         Don't set GETGROUPS_LIB here; now it's
71764         done via getgroups.m4's wrapper function.
71765         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71766         rather than just in sh-util/configure.in, so that the
71767         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71768         same.
71769         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71770         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71771         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71772         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71773         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71774         Remove code that is now done by the newly-required macros.
71775         Append $(EXEEXT) to DF_PROG.
71776         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71777         Do not invoke or require the following here,
71778         since prereq.m4 or some gnulib .m4 now does this for us:
71779         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71780         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71781         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71782         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71783         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71784         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71785         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71786         AC_FUNC_OBSTACK.
71787         Do not replace the following functions, as this is now the job
71788         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71789         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71790         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71791         atexit getpass, strdup, getpagesize.
71792         Replace 'raise'.
71793         Do not check for the following functions, as this is now the job
71794         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71795         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71796         setregid.
71797         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71798         Check for sys/sysctl.h.
71799         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71800         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71801         of checking for ssize_t ourselves.
71802
71803         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71804         Require every macro that gnulib/modules/* suggests for us.
71805         (jm_PREREQ_ADDEXT): New macro.
71806         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71807         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71808
71809         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71810         (gl_PHYSMEM): Use it.
71811         Also check for `table' function.
71812         Check for new headers and functions.
71813         Add check for sys/sysmp.h.
71814         With suggestions from Kaveh Ghazi.
71815         Ignore headers that are present but cannot be compiled.  This
71816         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71817         C 5.4.
71818
71819 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71820
71821         Document merge from coreutils.
71822         * modules/userspec: Depend on posixver.
71823         * modules/strftime: Depend on tzset.
71824
71825 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71826
71827         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71828         rather than tab, after '#' in shell-script copyright notices.
71829         Suggested by Bruno Haible.
71830
71831 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71832
71833         * config/srclist-update: Use three spaces, rather than tab, after '#'
71834         in shell-script copyright notices.  Suggested by Bruno Haible.
71835         Remove unnecessary parenthesization in regular expression.
71836
71837 2003-08-15  Jim Meyering  <jim@meyering.net>
71838
71839         Merge from coreutils.
71840         * lib/xgethostname.c: Include <stdlib.h>.
71841         (xghostname): Don't exit for anything other than memory-related
71842         failure; just return NULL.
71843         * lib/userspec.c: Include "posixver.h".
71844         (parse_user_spec): Accept `.' as a separator only
71845         in pre-POSIX-200112 mode.
71846         * lib/strtoimax.c: Use #elif rather than #else #if.
71847         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71848         Remove function, now that we can rely on a working tzset function.
71849         [!_LIBC]: Ensure that the required autoconf test has been run.
71850         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71851         Use underlying_strftime for %r.
71852         * lib/sha.c: Merge in some clean-up and optimization changes from
71853         glibc.
71854         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71855         Ensure that it is a multiple of 64.
71856         Rearrange loop exit tests so as to avoid performing an
71857         additional fread after encountering an error or EOF.
71858         * lib/realloc.c: Update copyright date.
71859
71860 2003-08-15  Jim Meyering  <jim@meyering.net>
71861         and Paul Eggert  <eggert@twinsun.com>
71862
71863         Merge from coreutils.
71864         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71865         member but strut utmpx does not.  Needed for AIX 4.3.3.
71866         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71867
71868 2003-08-15  Jim Meyering  <jim@meyering.net>
71869         and Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         Merges from coreutils, etc.
71872         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71873         Require gl_FUNC_TZSET_CLOBBER.
71874         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71875         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71876         members.
71877
71878 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71879
71880         Help the merge from coreutils.
71881         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71882         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71883         * m4/tzset.m4: Use it too.
71884
71885 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71886
71887         * modules/tzset: New file.
71888
71889 2003-08-14  Jim Meyering  <jim@meyering.net>
71890
71891         Merges from coreutils.
71892         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71893         variable names, rather than @FNMATCH_H@.
71894         * modules/alloca: Likewise for $(ALLOCA_H).
71895
71896         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71897         the three copies of the literal target, `fnmatch.h'.
71898         * modules/alloca (alloca.h): Likewise.
71899
71900 2003-08-14  Jim Meyering  <jim@meyering.net>
71901
71902         Merge from coreutils.
71903         * m4/tzset.m4: New file.
71904         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71905         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71906         otherwise, AIX 5.1 systems would end up using the latter.
71907         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71908         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71909         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71910         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71911
71912 2003-08-14  Jim Meyering  <jim@meyering.net>
71913
71914         Merge from coreutils.
71915         * lib/obstack.h: Whitespace changes.
71916         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71917         and xcalloc return values.
71918         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71919         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71920         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71921         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71922         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71923         error from mntctl.
71924         Use mntctl's return value to drive the entry-processing loop, since
71925         we can't rely on the value of the vmt_length member in the last
71926         entry.  On some systems doing so could result in exhausting
71927         virtual memory.  Based in part on a patch from Mike Jetzer.
71928
71929 2003-08-14  Jim Meyering  <jim@meyering.net>
71930         and Paul Eggert  <eggert@twinsun.com>
71931
71932         Merges from coreutils, plus other fixes.
71933         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71934         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71935         for credits and details.  Thanks to Kaveh Ghazi for helping
71936         to keep these files in sync.
71937         (ARRAY_SIZE): Define it.
71938         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71939         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71940         (memcasecmp): Don't assume size_t fits in unsigned int.
71941         Remove casts and duplicate code.
71942         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71943         (memcpy): Remove definition.
71944         Merge in some clean-up and optimization changes from glibc.
71945         [BLOCKSIZE]: Move definition to top of file.
71946         Ensure that it is a multiple of 64.
71947         Rearrange loop exit tests so as to avoid performing an
71948         additional fread after encountering an error or EOF.
71949         * lib/md5.h (md5_uintptr): Define.
71950         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71951         return to the initial working directory.  Preserve errno
71952         for caller.
71953         * lib/idcache.c: Include "xalloc.h".
71954         (xmalloc, xrealloc): Remove decls.
71955         (getuser): Remove casts no longer required in C89.
71956         * lib/human.c: Include stdio.h, for sprintf.
71957         * lib/group-member.c: Include "xalloc.h".
71958         (xmalloc, xrealloc): Remove decls.
71959         (get_group_info): Remove casts no longer required in C89.
71960         * lib/getusershell.c (readname): Remove casts no longer required in
71961         C89.
71962         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71963         * lib/getline.c: Whitespace fix, from coreutils.
71964
71965 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71966
71967         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71968         Check for isascii.
71969
71970         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71971         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71972         Undo previous (whitespace-only) change.
71973
71974 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71975
71976         * lib/exclude.c: Include <ctype.h>
71977         (IN_CTYPE_DOMAIN): New macro.
71978         (is_space): New fn.
71979         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71980         and empty lines.
71981
71982         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71983         Undo previous (whitespace-only) change.
71984
71985 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71986
71987         * config/srclist-update: Change update back to the old behavior,
71988         leaving whitespace alone.  Use one 'sed' command rather than a
71989         pipeline.
71990         (fixlicense): Now a variable, not a function.
71991         (remove_trailing_blanks): Remove.
71992         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71993         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71994         Undo previous (whitespace-only) change.
71995
71996 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71997
71998         Merge from coreutils.
71999         * modules/euidaccess: Add lib_SOURCES, include for new
72000         file euidaccess.h
72001
72002 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72003
72004         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72005         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72006         Normalize leading white space and remove trailing white space.
72007
72008         Merge from coreutils
72009         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72010
72011         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72012         0.12.1.  These files are now being upgraded automatically by
72013         ../config/srclist-update.
72014
72015 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72016
72017         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72018         Normalize leading white space and remove trailing white space.
72019         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72020         notice, as per ../config/srclist-update.
72021
72022         Merge from coreutils.
72023         * lib/euidaccess.h: New file.
72024         * lib/euidaccess.c: Include it.
72025         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72026         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72027         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72028
72029 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72030
72031         * config/srclist-update: Add copyright notice.
72032         (remove_id_lines, remove_trailing_blanks): New constants.
72033         (fixfile): Use them to normalize spacing a bit in copied files.
72034         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72035         Normalize leading white space and remove trailing white space.
72036
72037         * config/texinfo.tex: Sync with texinfo.
72038
72039         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72040         strtoul.c from libc, to merge coreutils whitespace changes.
72041
72042         * config/srclist.txt: Get the following m4 files from gettext:
72043         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72044         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72045         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72046         wint_t.m4.
72047
72048 2003-08-12  Karl Berry  <karl@gnu.org>
72049
72050         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72051         been made.
72052
72053 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72054
72055         * modules/gnu-source, m4/gnu-source.m4:
72056         Remove; we're assuming Autoconf 2.54 or later now.
72057         Suggested by Bruno Haible.
72058         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72059
72060 2003-08-11  Bruno Haible  <bruno@clisp.org>
72061
72062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72063
72064 2003-08-11  Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72067         (vasnprintf): Use it instead of wcslen.
72068
72069 2003-08-11  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72072         value to ensure that _Bool promotes to int. Use #define for _Bool when
72073         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72074
72075 2003-08-10  Karl Berry  <karl@gnu.org>
72076
72077         * lib/regex.h: update from libc (whitespace fix).
72078
72079 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72080
72081         Merge some files from coreutils.  These changes were
72082         originally made by Jim Meyering.
72083         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72084         many older Unixes require this.
72085         * lib/alloca.c (alloca): Remove cast to argument of free;
72086         no longer needed in C89.
72087         * lib/alloca_.h, regex.h: Fix white space to match
72088         what GNU indent does.
72089
72090 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72091
72092         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72093         apparently Emacs's Unicode mode got confused before my 2003-08-05
72094         checkin.
72095
72096 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72097
72098         * m4/extensions.m4: New file.
72099         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72100         Require gl_USE_SYSTEM_EXTENSIONS.
72101         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72102         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72103
72104 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72105
72106         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72107         * modules/extensions, modules/gnu-source: New files.
72108         * modules/timespec, modules/unlocked-io: Depend on extensions.
72109
72110 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72111
72112         * modules/restrict: New file.
72113         * MODULES.html.sh (func_all_modules): Add restrict.
72114         * modules/regex: Depend on restrict.
72115
72116 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72117
72118         * m4/restrict.m4: New file.
72119         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72120
72121 2003-08-07  Bruno Haible  <bruno@clisp.org>
72122
72123         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72124         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72125
72126 2003-08-07  Bruno Haible  <bruno@clisp.org>
72127
72128         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72129         makes the module 'getndelim2' compatible with the module 'getline'.
72130
72131 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72132
72133         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72134         byte with "\201" to avoid glitches when editing that source file
72135         with multi-gnome-terminal.
72136
72137 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72138
72139         * lib/bumpalloc.h: Remove.
72140
72141 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72142
72143         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72144         * modules/bumpalloc: Remove.
72145
72146 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72147
72148         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72149         GNU coding style.
72150
72151         Merge from coreutils.
72152         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72153         1. From glibc.
72154         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72155         from Karl Berry, implemented by Jim Meyering.
72156         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72157         from Dmitry V. Levin.
72158         Remove anachronistic cast of xrealloc.
72159         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72160         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72161         type. Otherwise, it wouldn't compile with at least /bin/cc on
72162         ymp-cray-unicos9.0.2.X.
72163         Combine two mostly-identical uses of alloca into one.
72164         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72165
72166 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72167
72168         [From Emacs.]
72169
72170         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72171         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72172         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72173         obsolete NLIST_NAME_UNION.
72174         [__GNU__]: Undef BSD and FSCALE.
72175         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72176
72177 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72178
72179         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72180         an enum type, so that it's guaranteed to promote to int.  See:
72181         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72182
72183 2003-08-03  Karl Berry  <karl@gnu.org>
72184
72185         * config/depcomp: update from automake.
72186
72187 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72188
72189         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72190         (strerror): Don't assume that a printable int fits in 14 bytes.
72191
72192 2003-07-31  Bruno Haible  <bruno@clisp.org>
72193
72194         * modules/getpass-gnu: New file.
72195         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72196
72197 2003-07-31  Bruno Haible  <bruno@clisp.org>
72198
72199         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72200
72201 2003-07-24  Karl Berry  <karl@gnu.org>
72202
72203         * config/missing: update from automake.
72204
72205 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72206             Bruno Haible  <bruno@clisp.org>
72207
72208         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72209         * lib/getline.c (getline, getdelim): Likewise.
72210         Remove _GNU_SOURCE define; now it's defined in config.h through
72211         m4/getline.m4.
72212
72213 2003-07-23  Karl Berry  <karl@gnu.org>
72214
72215         * config/config.sub: update from prep.
72216
72217 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72218
72219         * modules/xalloc (Depends-on): Add exitfail.
72220         * modules/xmemcoll: Likewise.
72221
72222 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72223
72224         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72225         over-parenthesization in macros.
72226
72227         Sync with coreutils.
72228
72229         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72230         required by C99.
72231
72232         Use `exit_failure' for xalloc and xmemcoll instead of their own
72233         private exit-failure variables.
72234         * lib/xalloc.h (xalloc_exit_failure): Remove.
72235         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72236         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72237         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72238         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72239         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72240
72241 2003-07-20  Jim Meyering  <jim@meyering.net>
72242
72243         * modules/closeout (Depends-on): Add exitfail.
72244         Suggestion from Bruno Haible.
72245
72246 2003-07-19  Karl Berry  <karl@gnu.org>
72247
72248         * config/config.sub: update from prep.
72249
72250 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72251
72252         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72253         Remove.
72254         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72255         to test that it can stand by itself.  Include "exitfail.h".
72256         Clients should set exit_failure instead.
72257         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72258
72259 2003-07-18  Bruno Haible  <bruno@clisp.org>
72260
72261         * modules/getndelim2: New file.
72262         * modules/getline: Share files with module getndelim2.
72263         * modules/getnline: Depend on getndelim2 instead of sharing files with
72264         it. Add getnline.c to lib_SOURCES.
72265         * MODULES.html.sh (func_all_modules): Add getndelim2.
72266
72267 2003-07-18  Bruno Haible  <bruno@clisp.org>
72268
72269         * m4/getndelim2.m4: New file.
72270         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72271         invoke gl_PREREQ_GETNDELIM2.
72272         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72273         gl_PREREQ_GETNDELIM2.
72274         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72275         gl_GETNDELIM2.
72276
72277 2003-07-18  Bruno Haible  <bruno@clisp.org>
72278
72279         * lib/getndelim2.h: New file.
72280         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72281         getndelim2.h.
72282         (getndelim2): Make non-static. Change return type to ssize_t.
72283         * lib/getline.h: Change argument names.
72284         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72285         * lib/getnline.c: Include getndelim2.h.
72286
72287 2003-07-18  Andreas Schwab  <schwab@suse.de>
72288
72289         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72290
72291 2003-07-17  Karl Berry  <karl@gnu.org>
72292
72293         * config/config.sub: update from prep.
72294
72295 2003-07-17  Bruno Haible  <bruno@clisp.org>
72296
72297         * modules/getnline: New file.
72298         * modules/getline: Add lib/getndelim2.c to source file list.
72299         * MODULES.html.sh (func_all_modules): Add getnline.
72300
72301 2003-07-17  Bruno Haible  <bruno@clisp.org>
72302
72303         * m4/getnline.m4: New file.
72304
72305 2003-07-17  Bruno Haible  <bruno@clisp.org>
72306
72307         * m4/Makefile.am.in: Remove file.
72308         * m4/Makefile.am: Remove file.
72309         * m4/Makefile.in: Remove file.
72310
72311 2003-07-17  Bruno Haible  <bruno@clisp.org>
72312
72313         * lib/getnline.h: New file.
72314         * lib/getnline.c: New file.
72315         * lib/getndelim2.c: New file, extracted from getline.c.
72316         (getndelim2): Renamed from getdelim2, with added nmax argument.
72317         * lib/getline.c: Include getndelim2.c.
72318         (getdelim2): Moved out to getndelim2.c.
72319         (getline, getdelim): Update.
72320
72321 2003-07-17  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/Makefile.am: Remove file.
72324         * lib/Makefile.in: Remove file.
72325
72326 2003-07-17  Bruno Haible  <bruno@clisp.org>
72327
72328         * configure.in: Remove file.
72329         * Makefile.in: Remove file.
72330
72331 2003-07-17  Bruno Haible  <bruno@clisp.org>
72332
72333         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72334
72335 2003-07-16  Karl Berry  <karl@gnu.org>
72336
72337         * config/srclist-update: was running fixlicense twice, which caused
72338                 texinfo.tex to be nullified for some reason.  Simplify,
72339                 $gplsrc is no longer needed as far as I can see?
72340
72341 2003-07-16  Jim Meyering  <jim@meyering.net>
72342
72343         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72344
72345 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72346
72347         * config/srclist.txt: Get the following files from gettext-runtime/intl
72348         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72349         ref-del.sin.  From Bruno Haible.
72350         * config/srclist-update (fixfile): Change grep pattern again, since the
72351         previous fix didn't work (there was another trailing $).  Use
72352         '[$]' to escape the $s.
72353
72354 2003-07-15  Karl Berry  <karl@gnu.org>
72355
72356         * lib/vasnprintf.c: update from gettext.
72357
72358 2003-07-15  Karl Berry  <karl@gnu.org>
72359
72360         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72361         gets expanded when surrounded by '$'.
72362
72363 2003-07-15  Jim Meyering  <jim@meyering.net>
72364
72365         * modules/save-cwd: Don't depend on error.  From Derek Price.
72366
72367 2003-07-15  Jim Meyering  <jim@meyering.net>
72368
72369         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72370
72371 2003-07-14  Simon Josefsson  <jas@extundo.com>
72372
72373         * modules/mempcpy: New file.
72374         * MODULES.html.sh (func_all_modules): Add mempcpy.
72375
72376 2003-07-14  Simon Josefsson  <jas@extundo.com>
72377
72378         * m4/mempcpy.m4: New file.
72379
72380 2003-07-14  Simon Josefsson  <jas@extundo.com>
72381
72382         * lib/mempcpy.h: New file.
72383         * lib/mempcpy.c: New file.
72384
72385 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72386
72387         * modules/getdate, modules/posixtm: Depend on mktime.
72388
72389 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72390
72391         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72392         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72393         unicodeio.c, unicodeio.h, unlocked-io.h:
72394         Switch from LGPL to GPL.
72395
72396 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72397
72398         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72399         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72400         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72401         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72402         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72403         updated automatically by ../config/srclist-update.  This changes
72404         their license from LPGL to GPL.
72405
72406 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72407
72408         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72409         assumed to refer to the root of the most recent stable gettext version.
72410         * config/srclistvars.sh: Add defaults for eggert.
72411         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72412         Match "This program" as well as "The program".  This is needed
72413         for gettext.
72414
72415 2003-07-14  Jim Meyering  <jim@meyering.net>
72416
72417         Don't emit diagnostics.  Let callers do that.
72418         * lib/save-cwd.c: Don't include "error.h".
72419         (save_cwd): Don't call error.  Ensure that errno is valid
72420         when returning nonzero.
72421
72422         * lib/save-cwd.h (restore_cwd): Update prototype.
72423         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72424         Simplify.  Don't call error upon failure.  Let callers do that.
72425         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72426         when auditing is enabled.  But don't bother updating the #if.
72427
72428 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72429
72430         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72431         it breaks C++ compilation.
72432         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72433
72434 2003-07-10  Simon Josefsson  <jas@extundo.com>
72435
72436         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72437
72438 2003-07-10  Jim Meyering  <jim@meyering.net>
72439
72440         * m4/clock_time.m4: Remove trailing blank.
72441         * m4/intmax_t.m4: Likewise.
72442
72443 2003-07-10  Jim Meyering  <jim@meyering.net>
72444
72445         * lib/vasnprintf.c: Remove trailing blanks.
72446         Make cpp indentation consistent.
72447
72448 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72449
72450         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72451         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72452         Switch from LGPL to GPL.
72453
72454 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72455
72456         * config/srclist.txt: Sort sublists.  Add
72457         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72458         that differ from gnulib for one reason or another; we'd like this list
72459         to be smaller but for now let's document what we have.
72460
72461 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72462
72463         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72464         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72465         and sweeter "eval x=$x".
72466         * config/srclist.txt: Get lib/argp* from glibc.
72467
72468 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72469
72470         * lib/mktime.c: Fix some boundary cases and remove need for floating
72471         point.
72472
72473         Issue a compile-time diagnostic if time_t is floating point, or if
72474         two's complement arithmetic is not in effect, or if arithmetic
72475         right shift does not propagate the sign.  These assumptions were
72476         all in the original code but they weren't checked.
72477
72478         (TIME_T_MIDPOINT, verify): New macros.
72479         (__isleap): Remove; it has integer overflow problems.
72480         (leapyear): New function, without those problems.
72481         (ydhms_tm_diff): Remove; splitting into two parts.
72482         (ydhms_diff): New function, containing the arithmetic part of
72483         the old ydhms_tm_diff function.  Issue a compile-time
72484         diagnostic if we are not using C99 integer division.
72485         Avoid casts when possible.
72486         (guess_time_tm): New function, containing the checking part of
72487         the old ydhms_tm_diff function.  Return the new value, rather than
72488         the difference between it and the old.  Accept a new argument T
72489         so that *T specifies the old value.  Check for overflow in the result.
72490
72491         (__mktime_internal): Use a time_t offset, not a long int offset.
72492         This undoes the 2003-06-04 change, which is no longer needed now
72493         that we have better overflow checking.
72494         (localtime_offset): Likewise.
72495
72496         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72497         and long are 64-bit but int is only 32-bit.
72498         (ydhms_diff): Use long int to store year1 and yday1.
72499         Issue a compile-time diagnostic if long int is not wide enough.
72500
72501         (__mktime_internal): Use long int to store adjusted year and yday.
72502         Use plain C rather than preprocessor commands, if that doesn't
72503         affect efficiency.
72504         Check for overflow (and try to repair) after each probe
72505         rather than checking only at the very end.  This avoids some bugs
72506         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72507         does not equal GMT offset at maximum time).
72508         Use integer to check for overflow rather than floating point; this
72509         is more portable to non-IEEE hosts, and is a tad faster.
72510         When we detect that we are oscillating between two values,
72511         don't check whether tm_isdst has the requested value, since
72512         we already know the answer.  When tm_isdst has the wrong value,
72513         use a different heuristic to find the right one, based on the
72514         extreme values actually observed in practice in tz2003a,
72515         rather than the (overly optimistic) "previous 3 calendar quarters".
72516
72517         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72518         "T const" to accommodate glibc style.
72519         (check_result): Use less-confusing report format.  "long" -> "long int.
72520         (main): Likewise.
72521         Don't loop if the iteration overflows time_t.
72522         Allow a negative step in the iteration.
72523
72524 2003-07-06  Karl Berry  <karl@gnu.org>
72525
72526         * config/depcomp: update from automake.
72527         * config/config.sub: update from prep.
72528
72529 2003-07-03  Karl Berry  <karl@gnu.org>
72530
72531         * config/config.guess: update from prep.
72532
72533 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72534
72535         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72536         xreadlink.c now includes it unconditionally.
72537
72538 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72539
72540         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72541         having it depend on HAVE_SYS_TYPES_H.
72542
72543 2003-07-01  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72546         <sys/types.h> should be sufficient.
72547         Reported by Paul Eggert.
72548
72549 2003-06-26  Karl Berry  <karl@gnu.org>
72550
72551         * config/depcomp: update from automake.
72552
72553 2003-06-26  Bruno Haible  <bruno@clisp.org>
72554
72555         * modules/human: Depend on module stdbool.
72556
72557 2003-06-25  Bruno Haible  <bruno@clisp.org>
72558
72559         * modules/readlink: New file.
72560         * modules/xreadlink: Depend on it.
72561         * MODULES.html.sh (func_all_modules): Add readlink.
72562
72563 2003-06-25  Bruno Haible  <bruno@clisp.org>
72564
72565         * m4/readlink.m4: New file.
72566
72567 2003-06-25  Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/readlink.c: New file.
72570
72571 2003-06-22  Karl Berry  <karl@gnu.org>
72572
72573         * config/srclist.txt: update mkinstalldirs from automake.
72574         * config/mkinstalldirs: update.
72575
72576 2003-06-22  Bruno Haible  <bruno@clisp.org>
72577
72578         Portability to mingw32.
72579         * m4/ssize_t.m4: New file, from GNU gettext.
72580         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72581         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72582
72583 2003-06-22  Bruno Haible  <bruno@clisp.org>
72584
72585         * modules/safe-read: Add m4/ssize_t.m4.
72586         * modules/xreadlink: Add m4/ssize_t.m4.
72587
72588 2003-06-20  Bruno Haible  <bruno@clisp.org>
72589
72590         Assume C89, so PARAMS isn't needed.
72591         * lib/unicodeio.h (PARAMS): Remove.
72592         * lib/unicodeio.c: Don't use PARAMS.
72593
72594 2003-06-18  Karl Berry  <karl@gnu.org>
72595
72596         * config/config.{guess,sub}: update from prep.
72597
72598 2003-06-18  Jim Meyering  <jim@meyering.net>
72599
72600         Merge changes from coreutils.
72601         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72602         Remove explicit declarations of xmalloc and realloc.
72603         Include xalloc.h.
72604         (read_utmp): Remove anachronistic cast of xmalloc.
72605
72606 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72607
72608         Assume C89, so PARAMS isn't needed.
72609         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72610         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72611         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72612         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72613         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72614         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72615         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72616         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72617         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72618         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72619         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72620         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72621         no longer needed. Anyway, config.h should always be included before any
72622         other file.
72623
72624 2003-06-11  Simon Josefsson  <jas@extundo.com>
72625
72626         * modules/sysexits: New file.
72627         * MODULES.html.sh (func_all_modules): Add sysexits.
72628
72629 2003-06-11  Simon Josefsson  <jas@extundo.com>
72630
72631         * lib/sysexit_.h: New file.
72632
72633 2003-06-11  Derek Price  <derek@ximbiot.com>
72634
72635         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72636         necessary.
72637
72638 2003-06-11  Bruno Haible  <bruno@clisp.org>
72639
72640         * m4/sysexits.m4: New file.
72641
72642 2003-06-10  Simon Josefsson  <jas@extundo.com>
72643
72644         * lib/argp.h: New file, from glibc.
72645         * lib/argp-ba.c: New file, from glibc.
72646         * lib/argp-eexst.c: New file, from glibc.
72647         * lib/argp-fmtstream.c: New file, from glibc.
72648         * lib/argp-fmtstream.h: New file, from glibc.
72649         * lib/argp-fs-xinl.c: New file, from glibc.
72650         * lib/argp-help.c: New file, from glibc.
72651         * lib/argp-namefrob.h: New file, from glibc.
72652         * lib/argp-parse.c: New file, from glibc.
72653         * lib/argp-pv.c: New file, from glibc.
72654         * lib/argp-pvh.c: New file, from glibc.
72655         * lib/argp-xinl.c: New file, from glibc.
72656
72657 2003-06-10  Simon Josefsson  <jas@extundo.com>
72658
72659         * modules/strchrnul: New file.
72660
72661 2003-06-10  Simon Josefsson  <jas@extundo.com>
72662
72663         * modules/argp: New file.
72664
72665 2003-06-10  Simon Josefsson  <jas@extundo.com>
72666
72667         * m4/strchrnul.m4: New file.
72668
72669 2003-06-10  Simon Josefsson  <jas@extundo.com>
72670
72671         * lib/strchrnul.h: New file.
72672         * lib/strchrnul.c: New file.
72673
72674 2003-06-10  Bruno Haible  <bruno@clisp.org>
72675
72676         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72677
72678 2003-06-07  Karl Berry  <karl@gnu.org>
72679
72680         * config/config.{guess,sub}: update from prep.
72681
72682 2003-06-07  Jim Meyering  <jim@meyering.net>
72683
72684         * modules/strtod: Use $(...) notation, not @...@ for
72685         AC_REPLACE'd variables.
72686         * modules/localcharset: Likewise.
72687
72688 2003-06-07  Jim Meyering  <jim@meyering.net>
72689
72690         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72691         in place of my name in the copyright comment.
72692         Remove definition and uses of __P.
72693
72694         From coreutils.
72695         * lib/stat.c: Don't declare xmalloc explicitly.
72696         Instead, include "xalloc.h".
72697         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72698         xrealloc, and xcalloc return values.
72699         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72700         Improve comment.
72701         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72702
72703 2003-06-07  Bruno Haible  <bruno@clisp.org>
72704
72705         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72706         avoid AC_CONFIG_LINKS.
72707         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72708         fnmatch.h, to avoid AC_CONFIG_LINKS.
72709         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72710
72711 2003-06-07  Bruno Haible  <bruno@clisp.org>
72712
72713         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72714         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72715         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72716         directory.
72717         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72718         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72719         directory.
72720
72721 2003-06-06  Jim Meyering  <jim@meyering.net>
72722
72723         Merge from coreutils.
72724         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72725         Consolidate declarations and initializations of *_base* locals.
72726
72727         Merge from coreutils.
72728         This avoids a core dump on systems without GNU putenv,
72729         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72730         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72731         (unsetenv): New static function, from GNU libc.
72732         (rpl_putenv): Use it.
72733
72734         * lib/modechange.c: Remove trailing blanks.
72735
72736         Merge from coreutils.
72737         * lib/fsusage.c: Remove declaration of statfs.
72738         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72739
72740         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72741
72742 2003-06-06  Jim Meyering  <jim@meyering.net>
72743
72744         * lib/stdbool_.h: Renamed from stdbool.h.in.
72745
72746 2003-06-06  Jim Meyering  <jim@meyering.net>
72747             Bruno Haible  <bruno@clisp.org>
72748
72749         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72750         Adjust Makefile.am snippet not to redirect directly to target.
72751         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72752
72753 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72754
72755         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72756         mismatch, look in future quarters as well as past.  This fixes a
72757         bug when processing fall-backwards gaps immediately after a long
72758         period of daylight-saving time.
72759
72760         * lib/mktime.c: Assume freestanding C89 or better.
72761         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72762         (__P): Remove; not used.
72763         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72764         (mktime, not_equal_tm, print_tm, check_result,
72765         main): Use prototypes.  Use const * where appropriate.
72766         (main): Fix typo in testing code that uncovered by above changes.
72767         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72768
72769 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72770
72771         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72772         locale.h, localeconv.  This merges changes from coreutils.
72773
72774         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72775         It can be removed after the next Autoconf is released.
72776         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72777         needed.
72778
72779 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72780
72781         * lib/mktime.c: Fix Debian bug 177940
72782         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72783         (localtime_offset): Now long int, not time_t, because we want it
72784         to be guaranteed to be signed.  All uses changed.
72785         (__mktime_internal): If overflow would occur when adding offset,
72786         don't add it.
72787
72788         Merge 'human' changes from coreutils.  Rewrite to support
72789         locale-specific notations like thousands separators.
72790         * lib/human.c: Simplify authorship notice.
72791         Include human.h immediately after config.h.
72792         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72793         <limits.h>: Do not include, since human.h does.
72794         (SIZE_MAX, UINTMAX_MAX): New macros.
72795         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72796         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72797         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72798         (power_letter): Renamed from suffixes.
72799         (generate_suffix_backwards): Remove.
72800         (adjust_value): Now takes int style (because of human.h changes)
72801         and long double value (for greater precision on some platforms).
72802         (group_number): New function.
72803         (human_readable): Use it.  Use integer options, not enum.
72804         Put the options before the sizes in the arg list.
72805         Support all the new options.
72806         The old human_readable function has been removed;
72807         use inttostr.h instead.
72808         (human_readable, default_block_size, humblock):
72809         Use uintmax_t, not int, for block sizes.
72810         (human_readable_inexact, block_size_types): Remove.
72811         (block_size_opts): New constant.
72812         (human_options): Renamed from human_block_size, with new signature
72813         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72814         * lib/human.h: Add copyright and authorship notice.
72815         Include <limits.h> and <stdbool.h> unconditionally.
72816         (PARAMS): Remove.  All uses removed.
72817         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72818         (enum human_inexact_style): Remove tag; now a nameless enum.
72819         (human_floor, human_ceiling, human_round_to_even): Now have
72820         values 2, 0, 1 rather than -1, 1, 0.
72821         (human_group_digits, human_suppress_point_zero, human_autoscale,
72822         human_base_1024, human_SI, human_B): New constants.
72823         (human_readable_inexact, human_block_size): Remove.
72824         (human_readable): Size args are now uintmax_t, not int.
72825         (human_options): New decl.
72826
72827         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72828         unnecessary now that we assume C89 or better.  This change
72829         imported from coreutils.
72830
72831         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72832         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72833         in the 2003-05-30 sync from glibc.
72834
72835         .h files should stand alone, but we shouldn't include <sys/types.h>
72836         if we can get away with just <stddef.h>.
72837
72838         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72839         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72840         rather than <sys/types.h>, as we merely need size_t.
72841         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72842         to get size_t.
72843         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72844         Include <stdio.h>, to get FILE.
72845         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72846         memcasecmp.h has included <stddef.h> and all we need is size_t.
72847         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72848         our interface, instead of including <sys/types.h>
72849
72850 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72851
72852         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72853         now, as glibc mktime is buggy on non-glibc systems.
72854
72855 2003-06-03  Karl Berry  <karl@gnu.org>
72856
72857         * config/config.sub: update from prep.
72858
72859 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72860
72861         [from coreutils]
72862         Fix some minor time-related bugs with POSIX time arguments.
72863         Some valid time stamps were being rejected (notably -1, and
72864         time stamps before 1900 on 64-bit hosts).  And some invalid
72865         time stamps were being accepted, e.g. September 31.
72866
72867         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72868         that we can return (time_t) -1 successfully.
72869         * lib/posixtm.c: Likewise.
72870         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72871         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72872         (t): Remove static var.
72873         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72874         of static var.  All uses changed.
72875         (year): Do not reject years before 1900; they can occur with
72876         64-bit time_t.
72877         (posix_time_parse): Do not check for out-of-range components;
72878         that is now the caller's responsibility, since our checks were
72879         only approximations.
72880         (posixtime): Use mktime to check for out-of-range components,
72881         since it knows them exactly.
72882         If mktime returns (time_t) -1, check whether an error actually occurred
72883         by invoking localtime on -1.
72884         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72885         posixtime failures better.
72886         Improve the test data (in comments only).
72887
72888 2003-06-02  Karl Berry  <karl@gnu.org>
72889
72890         * config/mkinstalldirs (version): new variable.
72891         (--version): new option.
72892         (usage): improve message.
72893
72894 2003-05-30  Karl Berry  <karl@gnu.org>
72895
72896         * lib/mktime.c: update from libc.
72897
72898 2003-05-30  Bruno Haible  <bruno@clisp.org>
72899
72900         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72901         * config/config.rpath: Upgrade to gettext-0.12.1.
72902
72903 2003-05-30  Bruno Haible  <bruno@clisp.org>
72904
72905         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72906         * m4/nls.m4: New file, from gettext-0.12.1.
72907         * m4/po.m4: New file, from gettext-0.12.1.
72908         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72909
72910 2003-05-30  Bruno Haible  <bruno@clisp.org>
72911
72912         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72913         * lib/localcharset.h: Likewise.
72914         * lib/localcharset.c: Likewise.
72915
72916 2003-05-29  Karl Berry  <karl@gnu.org>
72917
72918         * config/config.rpath: update from gettext.
72919
72920 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72921
72922         Assume the headers required for C89 freestanding compilers.
72923         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72924         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72925         * m4/human.m4 (gl_HUMAN): Likewise.
72926         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72927         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72928         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72929         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72930         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72931         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72932
72933 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72934
72935         Assume the headers required for C89 freestanding compilers.
72936         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72937         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72938         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72939         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72940         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72941         define, since <limits.h> is guaranteed to do that.
72942         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72943         * lib/exclude.c: Include <stdbool.h> unconditionally.
72944         * lib/tempname.c: Include <stddef.h> unconditionally.
72945         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72946         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72947         <stddef.h> does that.
72948         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72949         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72950         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72951         needed.
72952         * lib/xstrtol.c: Likewise.
72953         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72954         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72955
72956         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72957         warnings on some platforms.
72958
72959         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72960         arbitrarily.
72961
72962 2003-05-26  Jim Meyering  <jim@meyering.net>
72963
72964         Merge in a change from coreutils:
72965         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72966         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72967         that condition, rather than `-1' which is slightly misleading.
72968         Change the name of the cache variable to have the gl_ prefix.
72969         Prompted by a patch from Richard Dawe for DJGPP.
72970
72971 2003-05-24  Karl Berry  <karl@gnu.org>
72972
72973         * config/config.guess: update from prep.
72974
72975 2003-05-22  Karl Berry  <karl@gnu.org>
72976
72977         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72978
72979 2003-05-20  Karl Berry  <karl@gnu.org>
72980
72981         * config/config.guess: update from prep.
72982
72983 2003-05-18  Karl Berry  <karl@gnu.org>
72984
72985         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72986         might actually be set by the user.
72987
72988         * config/depcomp, install-sh, mdate-sh: update from automake.
72989
72990 2003-05-17  Bruno Haible  <bruno@clisp.org>
72991
72992         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72993         invalid expansion for AC_EGREP_CPP.
72994         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72995         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72996         Suggested by Akim Demaille <akim@epita.fr> in
72997         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72998
72999 2003-05-12  Jim Meyering  <jim@meyering.net>
73000
73001         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73002         the space-padded-by-default conversion specifiers, %e, %k, %l.
73003
73004 2003-05-12  Bruno Haible  <bruno@clisp.org>
73005
73006         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73007         the string is longer than 4 KB.
73008
73009 2003-05-11  Karl Berry  <karl@gnu.org>
73010
73011         * config/config.{guess,sub}: update from prep.
73012
73013 2003-05-09  Bruno Haible  <bruno@clisp.org>
73014
73015         * modules/error: Add m4/strerror_r.m4 to file list.
73016
73017 2003-05-03  Bruno Haible  <bruno@clisp.org>
73018
73019         Upgrade to Unicode-4.0.
73020         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73021         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73022         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73023         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73024         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73025         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73026         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73027         Change width of U+E0100..U+E01EF from 1 to 0.
73028
73029 2003-04-25  Jim Meyering  <jim@meyering.net>
73030
73031         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73032         of type size_t, not int.
73033
73034 2003-04-25  Bruno Haible  <bruno@clisp.org>
73035
73036         * lib/copy-file.c: Include <stddef.h>, for size_t.
73037
73038 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73039
73040         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73041         code which expansion is under static control.  Patch imported from
73042         Akim Demaille's patch to Bison; see
73043         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73044
73045 2003-04-14  Bruno Haible  <bruno@clisp.org>
73046
73047         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73048
73049 2003-04-11  Jim Meyering  <jim@meyering.net>
73050
73051         Merge changes from Coreutils.
73052
73053         2003-03-22  Jim Meyering  <jim@meyering.net>
73054
73055         * lib/strftime.c (widen): Cast alloca return value to proper type.
73056
73057         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73058
73059         From GNU libc.
73060         * lib/strftime.c (my_strftime): Handle very large width
73061         specifications for numeric values correctly.  Improve checks for
73062         overflow.
73063
73064         2003-01-19  Jim Meyering  <jim@meyering.net>
73065
73066         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73067         definitions.
73068         (nl_get_alt_digit) [! defined my_strftime]: Define.
73069         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73070         _nl_get_alt_digit and _nl_get_walt_digit.
73071
73072         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73073         libc. These changes have no effect outside of _LIBC.
73074
73075 2003-04-10  Bruno Haible  <bruno@clisp.org>
73076
73077         * modules/findprog: New file.
73078         * MODULES.html.sh (func_all_modules): Add it.
73079
73080 2003-04-10  Bruno Haible  <bruno@clisp.org>
73081
73082         * m4/findprog.m4: New file.
73083         * m4/eaccess.m4: New file.
73084
73085 2003-04-10  Bruno Haible  <bruno@clisp.org>
73086
73087         * lib/findprog.h: New file, from GNU gettext.
73088         * lib/findprog.c: New file, from GNU gettext.
73089
73090 2003-04-05  Jim Meyering  <jim@meyering.net>
73091
73092         Merge changes from Coreutils.
73093
73094         * lib/exclude.h (PARAMS): Remove definition and uses.
73095         * lib/exclude.c: Remove uses of `PARAMS'.
73096
73097         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73098         Add test-cases for DOS filenames. Declare program_name.
73099         (main): Set up program_name.  Patch by Rich Dawe.
73100
73101         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73102         error from mntctl.
73103         Use mntctl's return value to drive the entry-processing loop, since
73104         we can't rely on the value of the vmt_length member in the last
73105         entry.  On some systems doing so could result in exhausting
73106         virtual memory.  Based in part on a patch from Mike Jetzer.
73107
73108 2003-04-04  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/linebreak: New file.
73111         * MODULES.html.sh (func_all_modules): Add it.
73112
73113 2003-04-04  Bruno Haible  <bruno@clisp.org>
73114
73115         * m4/linebreak.m4: New file.
73116
73117 2003-04-04  Bruno Haible  <bruno@clisp.org>
73118
73119         * lib/linebreak.h: New file, from GNU gettext.
73120         * lib/linebreak.c: New file, from GNU gettext with slight
73121         modifications.
73122         * lib/lbrkprop.h: New file, from GNU gettext.
73123
73124 2003-04-03  Bruno Haible  <bruno@clisp.org>
73125
73126         * modules/utf8-ucs4: New file.
73127         * modules/utf16-ucs4: New file.
73128         * modules/ucs4-utf8: New file.
73129         * modules/ucs4-utf16: New file.
73130         * MODULES.html.sh (func_all_modules): Add them.
73131
73132 2003-04-03  Bruno Haible  <bruno@clisp.org>
73133
73134         * m4/utf-ucs4.m4: New file.
73135         * m4/ucs4-utf.m4: New file.
73136
73137 2003-04-03  Bruno Haible  <bruno@clisp.org>
73138
73139         * lib/utf8-ucs4.h: New file, from GNU gettext.
73140         * lib/utf16-ucs4.h: New file, from GNU gettext.
73141         * lib/ucs4-utf8.h: New file, from GNU gettext.
73142         * lib/ucs4-utf16.h: New file, from GNU gettext.
73143
73144 2003-04-02  Bruno Haible  <bruno@clisp.org>
73145
73146         * modules/binary-io: New file.
73147         * MODULES.html.sh (func_all_modules): Add it.
73148
73149 2003-04-02  Bruno Haible  <bruno@clisp.org>
73150
73151         * lib/binary-io.h: New file, from GNU gettext.
73152
73153 2003-04-01  Bruno Haible  <bruno@clisp.org>
73154
73155         * modules/pathname: New file.
73156         * MODULES.html.sh (func_all_modules): Add it.
73157
73158 2003-04-01  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/pathname.h: New file, from GNU gettext.
73161         * lib/concatpath.c: New file, from GNU gettext.
73162
73163 2003-03-30  Bruno Haible  <bruno@clisp.org>
73164
73165         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73166
73167 2003-03-30  Bruno Haible  <bruno@clisp.org>
73168
73169         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73170         function chown() doesn't exist.
73171
73172 2003-03-28  Bruno Haible  <bruno@clisp.org>
73173
73174         * modules/copy-file: New file.
73175         * MODULES.html.sh (func_all_modules): Add it.
73176
73177 2003-03-28  Bruno Haible  <bruno@clisp.org>
73178
73179         * m4/copy-file.m4: New file.
73180
73181 2003-03-28  Bruno Haible  <bruno@clisp.org>
73182
73183         * lib/copy-file.h: New file, from GNU gettext.
73184         * lib/copy-file.c: New file, from GNU gettext.
73185
73186 2003-03-18  Jim Meyering  <jim@meyering.net>
73187
73188         * lib/quote.c (quote_n): Fix typo in comment.
73189
73190 2003-03-18  Bruno Haible  <bruno@clisp.org>
73191
73192         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73193         checking.
73194         * m4/onceonly_2_57.m4: Likewise.
73195
73196 2003-03-17  Bruno Haible  <bruno@clisp.org>
73197
73198         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73199         (m4_quote): Remove macro.
73200         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73201
73202 2003-03-14  Jim Meyering  <jim@meyering.net>
73203
73204         Merge changes from Coreutils.
73205         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73206         to be const, in order to avoid warnings.
73207         (obstack_room): Likewise.
73208         (obstack_empty_p): Likewise.
73209
73210 2003-03-14  Bruno Haible  <bruno@clisp.org>
73211
73212         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73213         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73214
73215 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73216
73217         Merge changes from Bison.
73218         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73219         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73220         when compiling Bison 1.875's `bitset bset = obstack_alloc
73221         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73222         * lib/hash.c: Include <stdbool.h> unconditionally.
73223
73224 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73225
73226         * m4/onceonly.m4 (m4_quote): New macro.
73227         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73228         Quote AC_FOREACH variable-expansions properly.
73229
73230 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73231
73232         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73233
73234 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73235
73236         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73237         Reported by Bruce Becker; see:
73238         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73239
73240 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73241             Bruno Haible  <bruno@clisp.org>
73242
73243         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73244         Reported by John Hughes, see
73245         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73246
73247 2003-02-20  Bruno Haible  <bruno@clisp.org>
73248
73249         * MODULES.html.sh (func_all_modules): Add poll.
73250
73251 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73252
73253         * modules/poll: New file.
73254
73255 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73256
73257         * lib/poll_.h: New file.
73258         * lib/poll.c: New file.
73259
73260 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73261
73262         * m4/poll.m4: New file.
73263
73264 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73265
73266         * modules/mathl: New file.
73267
73268 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73269
73270         * lib/mathl.h: New file.
73271         * lib/acosl.c: New file.
73272         * lib/asinl.c: New file.
73273         * lib/atanl.c: New file.
73274         * lib/ceill.c: New file.
73275         * lib/cosl.c: New file.
73276         * lib/expl.c: New file.
73277         * lib/floorl.c: New file.
73278         * lib/frexpl.c: New file.
73279         * lib/ldexpl.c: New file.
73280         * lib/logl.c: New file.
73281         * lib/sincosl.c: New file.
73282         * lib/sinl.c: New file.
73283         * lib/sqrtl.c: New file.
73284         * lib/tanl.c: New file.
73285         * lib/trigl.c: New file.
73286         * lib/trigl.h: New file.
73287
73288 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73289
73290         * m4/mathl.m4: New file.
73291
73292 2003-02-18  Bruno Haible  <bruno@clisp.org>
73293
73294         * MODULES.html.sh (func_all_modules): Add mathl.
73295
73296 2003-02-17  Bruno Haible  <bruno@clisp.org>
73297
73298         * modules/mkdtemp: New module.
73299         * MODULES.html.sh (func_all_modules): Add it.
73300
73301 2003-02-17  Bruno Haible  <bruno@clisp.org>
73302
73303         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73304
73305 2003-02-17  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/mkdtemp.h: New file, from GNU gettext.
73308         * lib/mkdtemp.c: New file, from GNU gettext.
73309
73310 2003-02-02  Jim Meyering  <jim@meyering.net>
73311
73312         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73313         e.g. glibc-2.2.93.
73314
73315 2003-01-31  Bruno Haible  <bruno@clisp.org>
73316
73317         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73318         'rpl_rename'.
73319         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73320         'rpl_strnlen'.
73321         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73322         'rpl_strtod'.
73323         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73324         'rpl_utime'.
73325
73326 2003-01-31  Bruno Haible  <bruno@clisp.org>
73327
73328         * lib/rename.c: #undef rename before defining rpl_rename.
73329         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73330
73331 2003-01-30  Bruno Haible  <bruno@clisp.org>
73332
73333         * modules/vasnprintf, modules/vasprintf: New modules.
73334         * MODULES.html.sh (func_all_modules): Add them.
73335
73336 2003-01-30  Bruno Haible  <bruno@clisp.org>
73337
73338         * m4/signed.m4: New file, from GNU gettext.
73339         * m4/longdouble.m4: New file, from GNU gettext.
73340         * m4/wchar_t.m4: New file, from GNU gettext.
73341         * m4/wint_t.m4: New file, from GNU gettext.
73342         * m4/vasnprintf.m4: New file.
73343         * m4/vasprintf.m4: New file.
73344
73345 2003-01-30  Bruno Haible  <bruno@clisp.org>
73346
73347         * lib/printf-args.h: New file, from GNU gettext.
73348         * lib/printf-args.c: New file, from GNU gettext.
73349         * lib/printf-parse.h: New file, from GNU gettext.
73350         * lib/printf-parse.c: New file, from GNU gettext.
73351         * lib/vasnprintf.h: New file, from GNU gettext.
73352         * lib/vasnprintf.c: New file, from GNU gettext.
73353         * lib/asnprintf.c: New file, from GNU gettext.
73354         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73355         * lib/vasprintf.c: New file, from GNU gettext.
73356         * lib/asprintf.c: New file, from GNU gettext.
73357
73358 2003-01-29  Bruno Haible  <bruno@clisp.org>
73359
73360         * modules/stpncpy: New module.
73361         * MODULES.html.sh (func_all_modules): Add it.
73362
73363 2003-01-29  Bruno Haible  <bruno@clisp.org>
73364
73365         * m4/stpncpy.m4: New file.
73366
73367 2003-01-29  Bruno Haible  <bruno@clisp.org>
73368
73369         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73370         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73371
73372 2003-01-28  Bruno Haible  <bruno@clisp.org>
73373
73374         * modules/c-ctype: New module.
73375         * MODULES.html.sh (func_all_modules): Add it.
73376
73377 2003-01-28  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73380         Paul Eggert.
73381         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73382         Paul Eggert.
73383
73384 2003-01-27  Bruno Haible  <bruno@clisp.org>
73385
73386         * modules/xsetenv: New module.
73387         * MODULES.html.sh (func_all_modules): Add it.
73388
73389 2003-01-27  Bruno Haible  <bruno@clisp.org>
73390
73391         * lib/xsetenv.h: New file, from GNU gettext.
73392         * lib/xsetenv.c: New file, from GNU gettext.
73393
73394 2003-01-23  Jim Meyering  <jim@meyering.net>
73395
73396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73397         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73398
73399 2003-01-23  Bruno Haible  <bruno@clisp.org>
73400
73401         * modules/minmax: New module.
73402         * MODULES.html.sh (func_all_modules): Add it.
73403
73404 2003-01-23  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73407         Eggert.
73408
73409 2003-01-22  Bruno Haible  <bruno@clisp.org>
73410
73411         * modules/exit: New module.
73412         * MODULES.html.sh (func_all_modules): Add it.
73413
73414 2003-01-22  Bruno Haible  <bruno@clisp.org>
73415
73416         * lib/exit.h: New file, from GNU gettext.
73417
73418 2003-01-19  Bruno Haible  <bruno@clisp.org>
73419
73420         * gnulib-tool: Recognize option --extract-maintainer.
73421         (func_get_maintainer): New function.
73422         * modules/*: Add Maintainer entry.
73423
73424 2003-01-16  Jim Meyering  <jim@meyering.net>
73425
73426         * m4/regex.m4: The `regex' struct is both input and output.
73427         Initialize it before each use.  Patch by Tim Waugh.
73428
73429 2003-01-16  Bruno Haible  <bruno@clisp.org>
73430
73431         * MODULES.html.sh: Add a table of contents. Add the module name as
73432         leftmost column. Add hyperlinks.
73433
73434 2003-01-15  Bruno Haible  <bruno@clisp.org>
73435
73436         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73437
73438 2003-01-15  Bruno Haible  <bruno@clisp.org>
73439
73440         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73441         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73442         suffix.
73443
73444 2003-01-15  Bruno Haible  <bruno@clisp.org>
73445
73446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73447
73448 2003-01-15  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73451         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73452
73453 2003-01-14  Jim Meyering  <jim@meyering.net>
73454
73455         * lib/same.c (same_name): Tweak a comment.
73456
73457 2003-01-14  Bruno Haible  <bruno@clisp.org>
73458
73459         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73460         when a string comparison is sufficient.
73461
73462 2003-01-14  Bruno Haible  <bruno@clisp.org>
73463
73464         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73465         'unsigned int'.
73466
73467 2003-01-14  Bruno Haible  <bruno@clisp.org>
73468
73469         * lib/hash-pjw.c: Add comment about low quality of this function.
73470
73471 2003-01-13  Bruno Haible  <bruno@clisp.org>
73472
73473         * modules/stpcpy: Distribute lib/stpcpy.h.
73474         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73475
73476 2003-01-13  Bruno Haible  <bruno@clisp.org>
73477
73478         * modules/*: Add a description.
73479         * modules/strpbrk: Fix Makefile.am snippet.
73480         * modules/strtoimax: Fix dependencies.
73481         * modules/strtoumax: Likewise.
73482
73483 2003-01-13  Bruno Haible  <bruno@clisp.org>
73484
73485         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73486         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73487         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73488
73489 2003-01-13  Bruno Haible  <bruno@clisp.org>
73490
73491         * gnulib-tool (func_create_testdir): Store config/* files in the main
73492         directory.
73493         * config.rpath: Move to ...
73494         * config/config.rpath: ... here.
73495         * modules/gettext: Contains config/config.rpath, not config.rpath.
73496         * modules/iconv: Likewise.
73497
73498 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73499
73500         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73501         to avoid collisions with libcurses and libreadline.
73502
73503         * m4/getstr.m4: Remove.
73504         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73505
73506 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73507
73508         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73509         to avoid collisions with libcurses and libreadline.
73510
73511         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73512         * lib/getstr.h, getstr.c: Remove.
73513         * lib/getline.c: Include "getline.h", to check interface.
73514         Move body of old getstr.c here: this defines MIN_CHUNK and
73515         declares getdelim2, which is renamed from getstr.
73516         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73517
73518         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73519         All uses changed.
73520         * lib/linebuffer.h: Likewise.
73521         (readline): Remove backward-compatibility macro.
73522
73523 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73524
73525         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73526         to avoid collisions with libcurses and libreadline.
73527         * getstr: Remove.
73528         * MODULES.html.sh: Remove getstr.
73529         * modules/getline: Depend on unlocked-io, not getstr.
73530
73531 2003-01-12  Jim Meyering  <jim@meyering.net>
73532
73533         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73534
73535 2003-01-10  Bruno Haible  <bruno@clisp.org>
73536
73537         * modules/alloca: Change Makefile.am requirements. Simplify Include
73538         requirements. Add lib/alloca_.h to file list.
73539
73540 2003-01-10  Bruno Haible  <bruno@clisp.org>
73541
73542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73543
73544 2003-01-10  Bruno Haible  <bruno@clisp.org>
73545
73546         * lib/alloca_.h: New file.
73547         * lib/getdate.y: Unconditionally include alloca.h.
73548         * lib/makepath.c: Likewise.
73549         * lib/setenv.c: Likewise.
73550         * lib/userspec.c: Likewise.
73551
73552 2003-01-09  Karl Berry  <karl@gnu.org>
73553
73554         * MODULES.html.sh: include `dirname $0` in PATH, to find
73555         gnulib-tool.
73556
73557 2003-01-09  Bruno Haible  <bruno@clisp.org>
73558
73559         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73560         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73561
73562 2003-01-09  Bruno Haible  <bruno@clisp.org>
73563
73564         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73565
73566 2003-01-09  Bruno Haible  <bruno@clisp.org>
73567
73568         * lib/stdbool.h.in: New file.
73569
73570 2003-01-09  Bruno Haible  <bruno@clisp.org>
73571
73572         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73573         * MODULES.html.sh: Likewise.
73574
73575 2003-01-08  Jim Meyering  <jim@meyering.net>
73576
73577         * lib/full-write.c: Undefine and define-away `const' after inclusion
73578         of errno.h, not before.  Suggestion from Bruno Haible.
73579
73580 2003-01-08  Bruno Haible  <bruno@clisp.org>
73581
73582         * modules/full-read: Depend on full-write.
73583
73584 2003-01-08  Bruno Haible  <bruno@clisp.org>
73585
73586         * lib/safe-read.c: Include specification header first, to ensure its
73587         selfcontainedness.
73588         * lib/full-write.c: Likewise.
73589
73590 2003-01-07  Jim Meyering  <jim@meyering.net>
73591
73592         * lib/full-write.c: Rework so that it may serve to define full_read,
73593         too.
73594         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73595
73596 2003-01-07  Bruno Haible  <bruno@clisp.org>
73597
73598         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73599         <inttypes.h>.
73600         * lib/xstrtol.h: Likewise.
73601         * lib/xstrtoimax.c: Likewise.
73602         * lib/xstrtoumax.c: Likewise.
73603         * lib/human.h: Likewise.
73604
73605         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73606         on systems that have <inttypes.h> but not <stdint.h>.
73607
73608 2003-01-07  Bruno Haible  <bruno@clisp.org>
73609
73610         * MODULES.html.sh: Add copyright notice.
73611         (missed_files): Omit CVS directory entries.
73612         (func_module): Make it work with sed-3.02.
73613         * MODULES.txt: Remove file.
73614
73615 2003-01-06  Jim Meyering  <jim@meyering.net>
73616
73617         * lib/version-etc.c: Update year in translatable copyright string.
73618
73619 2003-01-03  Karl Berry  <karl@gnu.org>
73620
73621         * config/config.{guess,sub}: update from prep.
73622
73623 2003-01-02  Karl Berry  <karl@gnu.org>
73624
73625         * doc/COPYING.DOC: belatedly updated to 1.2.
73626
73627 2003-01-01  Karl Berry  <karl@gnu.org>
73628
73629         * gnulib-tool (func_verify_module): report module name $module in
73630         error message, not $1.
73631         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73632         be created, only if it doesn't exist.
73633         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73634
73635 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73636
73637         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73638
73639 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73640
73641         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73642         memcmp if strcoll doesn't work.
73643
73644 2002-12-31  Bruno Haible  <bruno@clisp.org>
73645
73646         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73647         nonempty.
73648
73649 2002-12-31  Bruno Haible  <bruno@clisp.org>
73650
73651         * lib/memcoll.c (STRCOLL): New macro.
73652         (memcoll): Use it.
73653
73654 2002-12-31  Bruno Haible  <bruno@clisp.org>
73655
73656         * lib/localcharset.h: New file.
73657         * lib/localcharset.c: Include it.
73658         * lib/unicodeio.c: Likewise.
73659
73660 2002-12-31  Bruno Haible  <bruno@clisp.org>
73661
73662         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73663         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73664
73665 2002-12-31  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/getline.h: Include <stddef.h>, for size_t.
73668
73669         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73670         * lib/unicodeio.c: Don't include <stddef.h>.
73671
73672 2002-12-31  Bruno Haible  <bruno@clisp.org>
73673
73674         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73675         HAVE_TM_ZONE.
73676
73677 2002-12-24  Karl Berry  <karl@gnu.org>
73678
73679         * config/config.guess: update from prep.
73680
73681 2002-12-24  Bruno Haible  <bruno@clisp.org>
73682
73683         General infrasructure.
73684         * m4/README: Rewritten.
73685         * m4/onceonly.m4: New file.
73686         * m4/onceonly_2_57.m4: New file.
73687
73688         Module atexit.
73689         * m4/atexit.m4: New file.
73690
73691         Module strtod.
73692         * m4/strtod.m4: New file.
73693
73694         Module strtol.
73695         * m4/strtol.m4: New file.
73696
73697         Module strtoul.
73698         * m4/strtoul.m4: New file.
73699
73700         Module memchr.
73701         * m4/memchr.m4: New file.
73702
73703         Module memcmp.
73704         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73705         (jm_FUNC_MEMCMP): Invoke it.
73706
73707         Module memcpy.
73708         * m4/memcpy.m4: New file.
73709
73710         Module memmove.
73711         * m4/memmove.m4: New file.
73712
73713         Module memset.
73714         * m4/memset.m4: New file.
73715
73716         Module strcspn.
73717         * m4/strcspn.m4: New file.
73718
73719         Module strpbrk.
73720         * m4/strpbrk.m4: New file.
73721
73722         Module strstr.
73723         * m4/strstr.m4: New file.
73724
73725         Module strerror.
73726         * m4/strerror.m4: New file.
73727
73728         Module mktime.
73729         * m4/mktime.m4: Renamed from jm-mktime.m4.
73730         (gl_PREREQ_MKTIME): New macro.
73731         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73732
73733         Module malloc.
73734         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73735         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73736         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73737
73738         Module realloc.
73739         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73740         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73741         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73742
73743         Module strftime.
73744         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73745         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73746         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73747         gl_TM_GMTOFF.
73748         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73749
73750         Module xalloc.
73751         * m4/xalloc.m4: New file.
73752
73753         Module alloca.
73754         * m4/alloca.m4: New file.
73755
73756         Module putenv.
73757         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73758         (jm_FUNC_PUTENV): Invoke it.
73759
73760         Module setenv.
73761         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73762         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73763         when invoked twice.
73764         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73765         gt_FUNC_SETENV.
73766
73767         Module memrchr.
73768         * m4/memrchr.m4: New file.
73769
73770         Module stpcpy.
73771         * m4/stpcpy.m4: New file.
73772
73773         Module strcase.
73774         * m4/strcase.m4: New file.
73775
73776         Module strdup.
73777         * m4/strdup.m4: New file.
73778
73779         Module strnlen.
73780         * m4/strnlen.m4: New file.
73781
73782         Module strndup.
73783         * m4/strndup.m4: New file.
73784
73785         Module xstrtod.
73786         * m4/xstrtod.m4: New file.
73787
73788         Module xstrtol.
73789         * m4/xstrtol.m4: New file.
73790
73791         Module getdate.
73792         * m4/getdate.m4: New file.
73793
73794         Module unlocked-io.
73795         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73796         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73797         * m4/jm-glibc-io.m4n: Remove file.
73798
73799         Module long-options.
73800         * m4/long-options.m4: New file.
73801
73802         Module md5.
73803         * m4/md5.m4: New file.
73804
73805         Module sha.
73806         * m4/sha.m4: New file.
73807
73808         Module getstr.
73809         * m4/getstr.m4: New file.
73810
73811         Module getline.
73812         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73813         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73814         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73815         simply getline. Infoke gl_PREREQ_GETLINE.
73816
73817         Module obstack.
73818         * m4/obstack.m4: New file.
73819
73820         Module hash.
73821         * m4/hash.m4: New file.
73822
73823         Module readtokens.
73824         * m4/readtokens.m4: New file.
73825
73826         Module strverscmp.
73827         * m4/strverscmp.m4: New file.
73828
73829         Module stdbool.
73830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73831         OSF/1.
73832
73833         Module strtoll.
73834         * m4/strtoll.m4: New file.
73835
73836         Module strtoull.
73837         * m4/strtoull.m4: New file.
73838
73839         Module strtoimax.
73840         * m4/strtoimax.m4: New file.
73841
73842         Module strtoumax.
73843         * m4/strtoumax.m4: New file.
73844
73845         Module xstrtoimax.
73846         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73847         jm_AC_PREREQ_XSTRTOIMAX.
73848         Moved the strtol prerequisites to strtol.m4.
73849         Moved the strtoll prerequisites to strtoll.m4.
73850         Moved the strtoimax prerequisites to strtoimax.m4.
73851
73852         Module xstrtoumax.
73853         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73854         jm_AC_PREREQ_XSTRTOUMAX.
73855         Moved the strtoul prerequisites to strtoul.m4.
73856         Moved the strtoull prerequisites to strtoull.m4.
73857         Moved the strtoumax prerequisites to strtoumax.m4.
73858
73859         Module chown.
73860         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73861         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73862
73863         Module dup2.
73864         * m4/dup2.m4: New file.
73865
73866         Module ftruncate.
73867         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73868         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73869
73870         Module getgroups.
73871         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73872         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73873
73874         Module gettimeofday.
73875         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73876         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73877         gl_PREREQ_GETTIMEOFDAY.
73878
73879         Module mkdir.
73880         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73881         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73882
73883         Module mkstemp.
73884         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73885         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73886         jm_AC_TYPE_UINTMAX_T.
73887         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73888
73889         Module stat.
73890         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73891         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73892
73893         Module lstat.
73894         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73895         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73896
73897         Module timespec.
73898         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73899         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73900         * m4/st_mtim.m4: Indentation.
73901
73902         Module nanosleep.
73903         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73904         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73905         gl_PREREQ_NANOSLEEP.
73906
73907         Module regex.
73908         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73909         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73910         (gl_REGEX): New macro.
73911
73912         Module rename.
73913         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73914         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73915
73916         Module rmdir.
73917         * m4/rmdir.m4: New file.
73918
73919         Module utime.
73920         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73921         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73922         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73923
73924         Module dirname.
73925         * m4/dirname.m4: New file.
73926
73927         Module getopt.
73928         * m4/getopt.m4: New file.
73929
73930         Module unistd-safer.
73931         * m4/unistd-safer.m4: New file.
73932
73933         Module fnmatch.
73934         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73935         declaration.
73936         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73937         (gl_FUNC_FNMATCH_POSIX): New macro.
73938         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73939         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73940         simply fnmatch.
73941
73942         Module exclude.
73943         * m4/exclude.m4: New file.
73944
73945         Module human.
73946         * m4/human.m4: New file.
73947
73948         Module acl.
73949         * m4/acl.m4: Nop.
73950
73951         Module backupfile.
73952         * m4/backupfile.m4: New file.
73953         * m4/d-ino.m4: Indentation.
73954
73955         Module fsusage.
73956         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73957         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73958         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73959
73960         Module dirfd.
73961         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73962         requirements.
73963
73964         Module euidaccess.
73965         * m4/euidaccess.m4: New file.
73966
73967         Module file-type.
73968         * m4/file-type.m4: New file.
73969
73970         Module fileblocks.
73971         * m4/fileblocks.m4: New file.
73972
73973         Module filemode.
73974         * m4/filemode.m4: New file.
73975
73976         Module isdir.
73977         * m4/isdir.m4: New file.
73978
73979         Module lchown.
73980         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73981         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73982
73983         Module makepath.
73984         * m4/makepath.m4: New file.
73985
73986         Module modechange.
73987         * m4/modechange.m4: New file.
73988
73989         Module mountlist.
73990         * m4/mountlist.m4: New file.
73991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73992         Indentation.
73993
73994         Module path-concat.
73995         * m4/path-concat.m4: New file.
73996
73997         Module pathmax.
73998         * m4/pathmax.m4: New file.
73999
74000         Module same.
74001         * m4/same.m4: New file.
74002
74003         Module save-cwd.
74004         * m4/save-cwd.m4: New file.
74005
74006         Module savedir.
74007         * m4/savedir.m4: New file.
74008
74009         Module xgetcwd.
74010         * m4/xgetcwd.m4: New file.
74011         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74012
74013         Module xreadlink.
74014         * m4/xreadlink.m4: New file.
74015
74016         Module safe-read.
74017         * m4/safe-read.m4: New file.
74018
74019         Module safe-write.
74020         * m4/safe-write.m4: New file.
74021
74022         Module closeout.
74023         * m4/closeout.m4: New file.
74024
74025         Module stdio-safer.
74026         * m4/stdio-safer.m4: New file.
74027
74028         Module getpass.
74029         * m4/getpass.m4: New file.
74030
74031         Module getugroups.
74032         * m4/getugroups.m4: New file.
74033
74034         Module group-member.
74035         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74036         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74037
74038         Module idcache.
74039         * m4/idcache.m4: New file.
74040
74041         Module userspec.
74042         * m4/userspec.m4: New file.
74043
74044         Module gettime.
74045         * m4/clock_time.m4: New file.
74046         * m4/gettime.m4: New file.
74047
74048         Module settime.
74049         * m4/settime.m4: New file.
74050
74051         Module posixtm.
74052         * m4/posixtm.m4: New file.
74053
74054         Module gethostname.
74055         * m4/gethostname.m4: New file.
74056
74057         Module canon-host.
74058         * m4/canon-host.m4: New file.
74059
74060         Module gettext.
74061         * m4/codeset.m4: New file, from gettext-0.11.5.
74062         * m4/gettext.m4: New file, from gettext-0.11.5.
74063         * m4/glibc21.m4: New file, from gettext-0.11.5.
74064         * m4/iconv.m4: New file, from gettext-0.11.5.
74065         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74066         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74067         * m4/inttypes.m4: New file, from gettext-0.11.5.
74068         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74069         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74070         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74071         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74072         * m4/lib-link.m4: New file, from gettext-0.11.5.
74073         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74074         * m4/progtest.m4: New file, from gettext-0.11.5.
74075         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74076         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74077         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74078
74079         Module localcharset.
74080         * m4/localcharset.m4: New file.
74081
74082         Module hard-locale.
74083         * m4/hard-locale.m4: New file.
74084
74085         Module mbswidth.
74086         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74087         onceonly macros.
74088         * m4/mbrtowc.m4: Add comment.
74089
74090         Module memcasecmp.
74091         * m4/memcasecmp.m4: New file.
74092
74093         Module memcoll.
74094         * m4/memcoll.m4: New file.
74095
74096         Module unicodeio.
74097         * m4/unicodeio.m4: New file.
74098
74099         Module rpmatch.
74100         * m4/rpmatch.m4: New file.
74101
74102         Module yesno.
74103         * m4/yesno.m4: New file.
74104
74105         Module exitfail.
74106         * m4/exitfail.m4: New file.
74107
74108         Module c-stack.
74109         * m4/c-stack.m4 (gl_C_STACK): New macro.
74110         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74111
74112         Module error.
74113         * m4/error.m4 (gl_ERROR): New macro.
74114         (jm_PREREQ_ERROR): Use onceonly macros.
74115
74116         Module fatal.
74117         * m4/fatal.m4: New file.
74118
74119         Module getloadavg.
74120         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74121         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74122
74123         Module getpagesize.
74124         * m4/getpagesize.m4: New file.
74125
74126         Module getusershell.
74127         * m4/getusershell.m4: New file.
74128
74129         Module physmem.
74130         * m4/physmem.m4: New file.
74131
74132         Module posixver.
74133         * m4/posixver.m4: New file.
74134
74135         Module quotearg.
74136         * m4/quotearg.m4: New file.
74137
74138         Module quote.
74139         * m4/quote.m4: New file.
74140
74141         Module readutmp.
74142         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74143
74144         Module sig2str.
74145         * m4/sig2str.m4: New file.
74146
74147         Other.
74148         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74149         ulonglong.m4.
74150         * m4/intmax_t.m4: New file.
74151         * m4/d-type.m4: Indentation.
74152         * m4/jm-macros.m4: Update.
74153         * m4/prereq.m4 (jm_PREREQ): Update.
74154         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74155         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74156         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74157         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74158         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74159         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74160         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74161         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74162         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74163         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74164         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74165         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74166         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74167         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74168         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74169         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74170         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74171         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74172         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74173
74174 2002-12-24  Bruno Haible  <bruno@clisp.org>
74175
74176         * MODULES.txt: Update according to m4/ changes.
74177
74178         Module gettext.
74179         * config.rpath: New file, from gettext-0.11.5.
74180
74181         * modules/*: New module descriptions.
74182         * gnulib-tool: New file.
74183         * MODULES.html.sh: New file.
74184
74185 2002-12-21  Karl Berry  <karl@gnu.org>
74186
74187         * doc/fdl.texi: update to version 1.2.
74188
74189 2002-12-19  Karl Berry  <karl@gnu.org>
74190
74191         * config/config.guess: update from prep.
74192
74193 2002-12-18  Bruno Haible  <bruno@clisp.org>
74194
74195         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74196         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74197
74198 2002-12-17  Bruno Haible  <bruno@clisp.org>
74199
74200         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74201         stdlib.h, string.h.
74202
74203 2002-12-17  Bruno Haible  <bruno@clisp.org>
74204
74205         * lib/canon-host.c (strdup): Remove unused declaration.
74206
74207         * lib/fsusage.c: Include full_read.h.
74208         (get_fs_usage): Use full_read instead of safe_read.
74209
74210         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74211
74212 2002-12-12  Karl Berry  <karl@gnu.org>
74213
74214         * config/config.guess: update from prep.
74215
74216 2002-12-11  Bruno Haible  <bruno@clisp.org>
74217
74218         * m4/setenv.m4: New file, from gettext-0.11.5.
74219
74220 2002-12-11  Bruno Haible  <bruno@clisp.org>
74221
74222         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74223         not unsetenv().
74224         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74225         modifications:
74226
74227         2002-12-11  Bruno Haible  <bruno@clisp.org>
74228
74229                 * setenv.c (alloca): Fall back to malloc.
74230                 (freea): New macro.
74231                 (setenv): Use freea() to free memory allocated with alloca().
74232
74233         2002-11-13  Bruno Haible  <bruno@clisp.org>
74234
74235                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74236                 function declarations.
74237                 * unsetenv.c (unsetenv): Likewise.
74238
74239         2002-03-04  Bruno Haible  <bruno@clisp.org>
74240
74241                 Portability to AIX 4.3.3.
74242                 * unsetenv.c: New file, extracted from setenv.c.
74243                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74244
74245         2001-12-20  Bruno Haible  <bruno@clisp.org>
74246
74247                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74248                 use malloc instead. For SunOS 4.
74249
74250         2001-12-11  Bruno Haible  <bruno@clisp.org>
74251
74252                 * setenv.c: Declare alloca.
74253                 (compar_fn_t): New typedef.
74254                 (KNOWN_VALUE, STORE_VALUE): Use it.
74255
74256         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74257         setenv.h.
74258
74259 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74260
74261         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74262         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74263         Choose values that are less likely to collide with system fnmatch
74264         options.
74265         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74266         defined (e.g., a pure POSIX system).
74267         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74268         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74269
74270 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74271
74272         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74273         a pain in practice to deal with generated m4 files.  This change
74274         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74275
74276         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74277         and jm-glibc-io.m4, as they are no longer a special case.
74278         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74279         kludge and the auto-generation stuff.  Check only whether the
74280         functions are declared, not whether they exist, since older hosts
74281         that don't declare the functions can't use the optimization anyway.
74282
74283 2002-12-06  Jim Meyering  <jim@meyering.net>
74284
74285         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74286
74287         Merge in changes from libc's misc/error.c, in preparation
74288         for the merge of gnulib's changes back into libc.
74289
74290         * lib/error.c (_): Define only if not already defined.
74291         Move definition to follow all #include directives.
74292         Include unlocked-io.h only if !_LIBC.
74293         [_LIBC]: Include <libio/libioP.h>.
74294         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74295         (fflush): Tweak definition to use INTUSE.
74296         (putc): Define.
74297
74298 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74299
74300         * lib/alloca.c [defined emacs]: Include "lisp.h".
74301         (xalloc_die) [defined emacs]: New macro.
74302         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74303         [! defined emacs]: Include <xalloc.h>.
74304         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74305         (pointer): Typedef to POINTER_TYPE *.
74306         (malloc): Remove decl; we now always use xmalloc.
74307         (alloca): Use old-style definition, since Emacs needs this.
74308         Check for arithmetic overflow when computing combined size.
74309
74310 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74311
74312         Do not generate unlocked-io.h automatically, since it's easier to
74313         maintain it by hand.
74314
74315         * lib/unlocked-io.h: New file, from GNU diffutils,
74316         but with proper copyright notice and attribution.
74317         * lib/gen-uio: Remove.
74318         * lib/Makefile.am: Add copyright notice.
74319         (libfetish_a_SOURCES): Add unlocked-io.h.
74320         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74321         (DISTCLEANFILES, io_functions): Remove macros.
74322         (EXTRA_DIST): Remove gen_uio.
74323         (unlocked-io.h): Remove rule.
74324
74325 2002-12-04  Jim Meyering  <jim@meyering.net>
74326
74327         Reflect the fact that stat.c and lstat.c are no longer generated.
74328         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74329         (DISTCLEANFILES): Likewise.
74330         (EXTRA_DIST): Likewise.
74331         (all_local): Don't depend on stat.c or lstat.c.
74332         (stat.c, lstat.c): Remove rules.
74333         (EXTRA_DIST): Remove xstat.in.
74334
74335         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74336         * lib/stat.c: New file.  Contents mostly from xstat.in.
74337         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74338         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74339
74340         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74341         too.
74342         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74343
74344 2002-12-03  Jim Meyering  <jim@meyering.net>
74345
74346         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74347         but not semantics, to minimize the differences between these two files.
74348         (safe_read): Change comment to mention SAFE_READ_ERROR.
74349
74350         * lib/safe-read.c (IS_EINTR): Define.
74351         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74352
74353 2002-12-02  Jim Meyering  <jim@meyering.net>
74354
74355         * lib/safe-read.c (EINTR): Define.
74356         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74357         (INT_MAX): Provide fallback.
74358         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74359
74360         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74361
74362 2002-12-02  Bruno Haible  <bruno@clisp.org>
74363
74364         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74365         Define, taken from safe-read.c.
74366         (INT_MAX): Provide fallback.
74367         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74368         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74369
74370         * lib/safe-read.c (EINTR): Remove definition.
74371         (safe_read): Don't use EINTR if it is absent.
74372
74373 2002-12-01  Jim Meyering  <jim@meyering.net>
74374
74375         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74376         zero.
74377         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74378
74379 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74380
74381         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74382         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74383         with `if (! (value < limit)) abort ();', for readability.
74384
74385 2002-11-26  Karl Berry  <karl@gnu.org>
74386
74387         * lib/strdup.c: copy from libc again, with jim's ok.
74388         * lib/.cppi-disable: re-add strdup.c
74389
74390 2002-11-25  Karl Berry  <karl@gnu.org>
74391
74392         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74393         instead of "strtol.c".
74394
74395 2002-11-25  Karl Berry  <karl@gnu.org>
74396
74397         * config/install-sh: update from automake for variable quoting, $0 in
74398         error msgs, etc.
74399
74400         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74401         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74402         entry.
74403
74404 2002-11-25  Jim Meyering  <jim@meyering.net>
74405
74406         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74407
74408 2002-11-24  Karl Berry  <karl@gnu.org>
74409
74410         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74411         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74412
74413 2002-11-24  Jim Meyering  <jim@meyering.net>
74414
74415         Update from coreutils:
74416
74417         * lib/mktime.c: Merge in changes from libc.
74418
74419         Avoid a link-time failure on some Linux systems.
74420         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74421         (otherwise).
74422         (__mon_yday): Declare with the STATIC attribute.
74423         (__mktime_internal): Likewise.
74424         Based on a report from Greg Schafer.
74425
74426 2002-11-23  Jim Meyering  <jim@meyering.net>
74427
74428         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74429         Use `unsigned', not `int', as type of index.
74430
74431         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74432
74433         * lib/fsusage.c: Remove unneeded parentheses around operands of
74434         `defined'.
74435
74436 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74437
74438         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74439         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74440         so that we can be included first.
74441         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74442         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74443         No need to include stddef.h or sys/types.h any more.
74444         Surround local include files with "", not "<>".
74445         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74446         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74447         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74448         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74449         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74450         (ISPRINT): Remove; no longer needed now that we assume C89.
74451
74452         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74453         Preserve errno.
74454
74455         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74456         quotearg_char): Use SIZE_MAX rather than
74457         (size_t) -1 when we are talking about "infinity".
74458
74459         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74460
74461 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74462
74463         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74464         hint that one should use `if (! x) abort ();' rather than `assert
74465         (x);', and anyway it's one less thing to worry about configuring.
74466         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74467         hash_rehash, hash_insert): Use abort rather than assert.
74468
74469 2002-11-22  Bruno Haible  <bruno@clisp.org>
74470
74471         * lib/safe-read.h: Assume C89. Add comments.
74472         (safe_read): Change return type to size_t.
74473         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74474         byte counts > SSIZE_MAX correctly.
74475         * lib/safe-write.h: New file.
74476         * lib/safe-write.c: New file.
74477         * lib/full-read.h: New file.
74478         * lib/full-read.c: New file.
74479         * lib/full-write.h: Assume C89. Add comments.
74480         * lib/full-write.c: Include safe-write.h.
74481         (full_write): Rewritten to use safe_write.
74482         Suggested by Jim Meyering and Paul Eggert.
74483
74484 2002-11-21  Jim Meyering  <jim@meyering.net>
74485
74486         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74487
74488         Merge in changes from the coreutils.
74489
74490         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74491         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74492         <stdint.h>.
74493         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74494         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74495         int.  Work more efficiently if X is the same width as uintmax_t.
74496         Do not compare X to -1, to avoid bogus compiler warning.
74497         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74498         Don't assume that f_frsize and f_bsize are the same type.
74499
74500         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74501         warning on FreeBSD.
74502
74503         * lib/makepath.c (make_path): Restore umask *before* creating the final
74504         component.
74505         (make_path): Minor reformatting.
74506
74507         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74508         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74509         HAVE_MALLOC/HAVE_REALLOC.
74510
74511         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74512         dummy ones.  At least on GNU/Linux systems, `auto' means something
74513         else.
74514         From Michael Stone.
74515
74516 2002-11-21  Bruno Haible  <bruno@clisp.org>
74517
74518         Remove case insensitive option matching.
74519         * lib/argmatch.h (argcasematch): Remove declaration.
74520         (ARGCASEMATCH): Remove macro.
74521         (__xargmatch_internal): Remove case_sensitive argument.
74522         (XARGMATCH): Update.
74523         (XARGCASEMATCH): Remove macro.
74524         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74525         case_sensitive argument.
74526         (argcasematch): Remove function.
74527         (__xargmatch_internal): Remove case_sensitive argument.
74528         (main): Use XARGMATCH instead of XARGCASEMATCH.
74529
74530         * lib/xmalloc.c: Change compile-time error message. Add comment about
74531         required autoconf version.
74532
74533 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74534
74535         Merge argmatch cleanups from Bison.  Assume C89.
74536
74537         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74538         Include stdlib.h, for EXIT_FAILURE.
74539         Always include <string.h>, since we assume C89.
74540         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74541         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74542         Include <stddef.h> instead, since it's all we need for size_t.
74543         (PARAMS): Remove.  All uses removed.
74544         (ARRAY_CARDINALITY): Do not bother to #undef.
74545         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74546         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74547         Remove unnecessary parentheses.
74548         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74549         Insert necessary parentheses.
74550         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74551         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74552
74553 2002-11-19  Bruno Haible  <bruno@clisp.org>
74554
74555         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74556         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74557
74558         * lib/mbswidth.h (PARAMS): Remove macro.
74559         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74560         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74561
74562         * lib/gcd.h (PARAMS): Remove macro.
74563         (gcd): Use ANSI C function declarations.
74564         * lib/gcd.c (gcd): Likewise.
74565
74566 2002-11-15  Bruno Haible  <bruno@clisp.org>
74567
74568         * lib/strcspn.c: Include <stddef.h>.
74569         (strcspn): Use ANSI C function declaration. Change return type to
74570         size_t. Use NULL.
74571         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74572         (strpbrk): Use NULL.
74573         * lib/strpbrk.h (PARAMS): Remove macro.
74574         (strpbrk): Use ANSI C function declaration.
74575         * lib/strstr.c: Don't include <sys/types.h>.
74576         * lib/strstr.h (PARAMS): Remove macro.
74577         (strstr): Use ANSI C function declarations.
74578
74579 2002-11-14  Karl Berry  <karl@gnu.org>
74580
74581         * config/mkinstalldirs: `do' on separate line, instead of
74582         `for var; do'.
74583
74584 2002-11-06  Bruno Haible  <bruno@clisp.org>
74585
74586         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74587         * lib/gcd.c (gcd): Likewise.
74588
74589 2002-11-05  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/gcd.h: New file, from gettext-0.11.5.
74592         * lib/gcd.c: New file, from gettext-0.11.5.
74593
74594 2002-11-05  Bruno Haible  <bruno@clisp.org>
74595
74596         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74597         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74598         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74599         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74600
74601         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74602         <libintl.h>.
74603         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74604         <libintl.h>.
74605
74606         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74607         * lib/human.c: Include gettext.h instead of <libintl.h>.
74608         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74609         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74610         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74611         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74612         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74613         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74614         (textdomain): Remove definition.
74615         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74616
74617         * lib/long-options.c: Remove include of <libintl.h> and definition of
74618         _.
74619         * lib/same.c: Remove include of <libintl.h> and definition of _.
74620
74621 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74622
74623         * lib/config.charset: A few additions for Solaris.
74624
74625 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74626
74627         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74628         * lib/localcharset.c (locale_charset): Declare as extern "C".
74629
74630 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74631
74632         * lib/config.charset: msdos in uk_UA uses CP1125.
74633
74634 2002-11-04  Bruno Haible  <bruno@clisp.org>
74635
74636         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74637         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74638         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74639         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74640         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74641
74642 2002-11-04  Bruno Haible  <bruno@clisp.org>
74643
74644         * lib/localcharset.c (locale_charset): Don't return an empty string.
74645
74646 2002-11-04  Bruno Haible  <bruno@clisp.org>
74647
74648         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74649         aliases.
74650
74651 2002-11-04  Bruno Haible  <bruno@clisp.org>
74652
74653         * lib/config.charset: Update for newest glibc. Add canonical names
74654         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74655
74656 2002-11-04  Bruno Haible  <bruno@clisp.org>
74657
74658         * lib/config.charset: Add support for NetBSD.
74659
74660 2002-11-04  Bruno Haible  <bruno@clisp.org>
74661
74662         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74663
74664 2002-11-01  Bruno Haible  <bruno@clisp.org>
74665
74666         * configure.in: Add AC_CONFIG_AUX_DIR call.
74667         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74668         test/Makefile.
74669         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74670
74671 2002-09-28  Karl Berry  <karl@gnu.org>
74672
74673         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74674         installed automake until the next release, since changes have been
74675         made.
74676
74677 2002-09-25  Karl Berry  <karl@gnu.org>
74678
74679         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74680         * lib/getopt*: copy from libc/posix.
74681         * lib/gettext.h: copy from gettext.
74682         * lib/.cppi-disable: add strdup.c, gettext.h.
74683
74684 2002-09-25  Karl Berry  <karl@gnu.org>
74685
74686         * config/srclist.txt: enable gettext.h check.
74687         * config/config.{guess,sub}: update from prep.
74688         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74689                 from automake 1.6.3.
74690         See srclist*.
74691
74692 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74693
74694         * regex.c (PATFETCH): Remove the translating fetch.
74695         (PATFETCH_RAW): Rename to PATFETCH.
74696         (set_image_of_range): New fun.
74697         (SET_RANGE_TABLE_WORK_AREA): Use it.
74698         (regex_compile): Don't translate the pattern chars so eagerly.
74699         Only do it when inserting an `exactn' bytecode or when handling
74700         a char-range.
74701         (mutually_exclusive_p): Avoid empty statement.
74702
74703 2002-07-06  Jim Meyering  <meyering@lucent.com>
74704
74705         * m4/README: Don't mention Makefile.am.in.
74706         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74707
74708 2002-07-01  Jim Meyering  <meyering@lucent.com>
74709
74710         * lib/c-stack.c: Include sys/time.h.
74711         From Volker Borchert.
74712
74713 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74714
74715         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74716
74717 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74718
74719         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74720         New macro.  Use it uniformly instead of
74721         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74722         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74723         reported by Vin Shelton.
74724
74725 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74726
74727         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74728         Do not assume SA_SIGINFO behavior.
74729         Bug reported by Jim Meyering on NetBSD 1.5.2.
74730
74731 2002-06-22  Jim Meyering  <meyering@lucent.com>
74732
74733         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74734         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74735
74736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74737         now that configure.ac uses AC_GNU_SOURCE.
74738         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74739         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74740
74741         Update to latest tools.  Suggestions from Paul Eggert.
74742         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74743         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74744         * m4/fnmatch.m4: Likewise.
74745         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74746         to AC_HEADER_STDBOOL
74747
74748 2002-06-22  Jim Meyering  <meyering@lucent.com>
74749
74750         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74751         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74752
74753 2002-06-22  Jim Meyering  <meyering@lucent.com>
74754
74755         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74756
74757         * lib/exitfail.c, exitfail.h: Likewise.
74758         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74759
74760         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74761         of fnmatch.h.
74762         (EXTRA_DIST): Add fnmatch_loop.c.
74763         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74764
74765         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74766         * lib/fnmatch.c: Update from diffutils-2.8.2.
74767         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74768         * lib/fnmatch.h: Remove file.
74769
74770 2002-06-21  Jim Meyering  <meyering@lucent.com>
74771
74772         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74773         * m4/mbrtowc.m4: Likewise.
74774
74775         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74776         * m4/mbswidth.m4: Reflect name change:
74777         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74778         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74779
74780         * m4/lib-link.m4: Update from gettext-0.11.2.
74781         * m4/gettext.m4: Likewise.
74782
74783         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74784         From Alfred M. Szmidt.
74785
74786 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74787
74788         * lib/file-type.h: Report an error if neither S_ISREG nor
74789         S_IFREG is defined, instead of using a test specific to glibc
74790         2.2.  This should be safe, since POSIX requires S_ISREG and
74791         Unix Version 7 had S_IFREG.  We don't need to check for
74792         <sys/types.h> since we don't use any symbols that it defines.
74793
74794 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74795
74796         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74797         $@-t, so that each temporary file name is unique and valid in the first
74798         8 characters, for operation under DOS.
74799
74800 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74801
74802         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74803
74804 2002-06-15  Jim Meyering  <meyering@lucent.com>
74805
74806         Work even with DJGPP 2.03, which lacks support for symlinks.
74807         From Richard Dawe.
74808         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74809         is defined.
74810         * lib/lchown.c (S_ISLNK): Likewise.
74811
74812 2002-06-15  Jim Meyering  <meyering@lucent.com>
74813
74814         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74815         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74816         have been included before this file.
74817
74818 2002-06-14  Jim Meyering  <meyering@lucent.com>
74819
74820         * lib/file-type.h: Use the version from diffutils-2.8.2.
74821         * lib/file-type.c: Likewise.
74822
74823 2002-06-07  Jim Meyering  <meyering@lucent.com>
74824
74825         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74826         They're needed at least for NetBSD 1.5.2.
74827         ($statxfs_includes): Include those same headers.
74828         ($statxfs_includes): Include sys/vfs.h if available.
74829         ($statxfs_includes): Likewise for sys/statvfs.h.
74830         Check for the following members in both structs statfs and statvfs:
74831         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74832
74833 2002-06-01  Jim Meyering  <meyering@lucent.com>
74834
74835         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74836         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74837
74838 2002-05-28  Jim Meyering  <meyering@lucent.com>
74839
74840         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74841         Reported by Volker Borchert.
74842
74843 2002-05-27  Jim Meyering  <meyering@lucent.com>
74844
74845         Fix a problem seen only on nonconforming systems whereby ls.c's
74846         use of localtime, and then of gettimeofday would cause trouble:
74847         the localtime call used to initialize rpl_gettimeofday's save
74848         mechanism would clobber ls's current local time information so
74849         that in any long listing the first file would always be listed
74850         with date 1970-01-01.  Analysis by Volker Borchert.
74851
74852         * lib/gettimeofday.c (localtime): Undefine.
74853         (rpl_localtime): New function.
74854
74855 2002-05-27  Jim Meyering  <meyering@lucent.com>
74856
74857         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74858         localtime.
74859
74860         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74861         use the replacement function; it wouldn't resolve at link time.
74862         Reported by Volker Borchert.
74863
74864 2002-05-22  Jim Meyering  <meyering@lucent.com>
74865
74866         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74867         file-type.h.
74868         * lib/file-type.h: New file.
74869         * lib/file-type.c (file_type): New file/function.  Extracted from
74870         diffutils.
74871
74872 2002-04-30  Jim Meyering  <meyering@lucent.com>
74873
74874         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74875
74876 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74877
74878         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74879
74880 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74881
74882         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74883         Do not check for alloca.h (no longer used) or stdbool.h (was never
74884         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74885
74886 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74887
74888         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74889
74890 2002-04-29  Jim Meyering  <meyering@lucent.com>
74891
74892         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74893         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74894         Use AC_FUNC_STRNLEN here instead.
74895
74896         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74897         With autoconf-2.53a, it's part of AC_PROG_CC.
74898
74899 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74900
74901         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74903
74904 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74905
74906         * lib/sig2str.h, lib/sig2str.c: New files.
74907         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74908
74909 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74910
74911         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74912         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74913         of 127, since 64 is the largest conceivable number for ancient
74914         nonstandard hosts.
74915         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74916
74917 2002-04-28  Jim Meyering  <meyering@lucent.com>
74918
74919         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74920
74921 2002-04-24  Jim Meyering  <meyering@lucent.com>
74922
74923         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74924         (jm_PREREQ): Use it.
74925
74926         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74927         mach/mach.h fcntl.h.
74928         Check for this function: setlocale.
74929
74930 2002-04-24  Jim Meyering  <meyering@lucent.com>
74931
74932         * lib/gettext.h: New file, from Gettext.
74933         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74934         (libfetish_a_SOURCES): Add gettext.h.
74935
74936 2002-04-16  Jim Meyering  <meyering@lucent.com>
74937
74938         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74939         ut_pid, ut_id, ut_exit.
74940
74941 2002-04-16  Jim Meyering  <meyering@lucent.com>
74942
74943         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74944         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74945         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74946
74947 2002-04-12  Jim Meyering  <meyering@lucent.com>
74948
74949         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74950         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74951         existence of the getmntinfo function.  Needed for Darwin 5.3.
74952
74953         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74954         This is necessary at least on Darwin 5.3.
74955
74956         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74957         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74958         strnlen.o in the library, and that makes some versions of ranlib
74959         object.
74960
74961 2002-04-12  Jim Meyering  <meyering@lucent.com>
74962
74963         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74964
74965 2002-04-09  Jim Meyering  <meyering@lucent.com>
74966
74967         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74968         to be more precise.  Rather than saying we're checking whether the
74969         function `works', say what we're testing.
74970         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74971         Reported by Bruno Haible.
74972
74973 2002-03-10  Jim Meyering  <meyering@lucent.com>
74974
74975         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74976         Suggestion from Santiago Vila.
74977
74978 2002-03-08  Jim Meyering  <meyering@lucent.com>
74979
74980         * lib/rename.c: Mention that this wrapper is needed also on
74981         mips-dec-ultrix4.4 systems.
74982
74983 2002-03-02  Jim Meyering  <meyering@lucent.com>
74984
74985         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74986         not HAVE_CLOCK_SETTIME.
74987
74988 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74989
74990         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74991         Check for clock_settime.
74992
74993 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74994
74995         * lib/nanosleep.h: Rename to....
74996         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74997
74998         * lib/gettime.c: New file.
74999         * lib/settime.c: New file.
75000         * lib/stime.c: Remove.
75001
75002         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75003         timespec.h.  Remove nanosleep.h.
75004
75005 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75006
75007         * m4/acl.m4: New file.
75008         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75009         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75010
75011 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75012
75013         * lib/acl.c, lib/acl.h: New files.
75014         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75015
75016 2002-02-24  Jim Meyering  <meyering@lucent.com>
75017
75018         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75019         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75020         cause trouble.  Reported by Nelson Beebe.
75021
75022 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75023
75024         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75025         compilers that don't know that xalloc_die never returns.
75026
75027 2002-02-20  Jim Meyering  <meyering@lucent.com>
75028
75029         * lib/getdate.c: Regenerate using bison-1.33.
75030
75031 2002-02-17  Jim Meyering  <meyering@lucent.com>
75032
75033         * config/config.guess (main): Don't use `head -1'; it's no longer
75034         portable. Use `sed 1q' instead.
75035
75036 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75037
75038         * m4/codeset.m4: Upgrade to gettext-0.11.
75039         * m4/gettext.m4: Upgrade to gettext-0.11.
75040         * m4/glibc21.m4: Upgrade to gettext-0.11.
75041         * m4/iconv.m4: Upgrade to gettext-0.11.
75042         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75043         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75044         * m4/lib-ld.m4: New file, from gettext-0.11.
75045         * m4/lib-link.m4: New file, from gettext-0.11.
75046         * m4/lib-prefix.m4: New file, from gettext-0.11.
75047         * m4/progtest.m4: Upgrade to gettext-0.11.
75048
75049 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75050
75051         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75052         (jm_PREREQ): Use it.
75053
75054 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75055
75056         * lib/posixver.c, lib/posixver.h: New files.
75057         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75058
75059 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75060             Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75063         (fwrite_success_callback): New declaration.
75064         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75065         print_unicode_char. Call failure callback instead of error.
75066         (fwrite_success_callback): New function.
75067         (exit_failure_callback): New function.
75068         (fallback_failure_callback): New function.
75069         (print_unicode_char): Call unicode_to_mb.
75070
75071 2002-01-26  Jim Meyering  <meyering@lucent.com>
75072
75073         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75074         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75075
75076 2002-01-26  Jim Meyering  <meyering@lucent.com>
75077
75078         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75079
75080 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75081
75082         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75083
75084 2002-01-22  Jim Meyering  <meyering@lucent.com>
75085
75086         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75087         Otherwise, some versions of automake would omit the rule that makes
75088         Makefile from Makefile.in.
75089
75090 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75091
75092         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75093         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75094         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75095         (memcoll): Set errno to zero if there is no error.
75096
75097         * lib/quotearg.c (quotearg_buffer_restyled):
75098         Fix bug with quoting buffers containing NUL when backslashing escapes.
75099         This bug was exposed by the other changes in this patch.
75100         (quotearg_n_options): New arg ARGSIZE.
75101         All callers changed.
75102         (quoting_options_from_style): New function.
75103         (quotearg_n_style): Use it.
75104         (quotearg_n_style_mem): New function.
75105
75106         * lib/quotearg.h (quotearg_n_style_mem): New function.
75107
75108 2002-01-19  Jim Meyering  <meyering@lucent.com>
75109
75110         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75111         Remove useless quotes: DF_PROG="df".
75112         * m4/strnlen.m4: New file.
75113
75114 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75115
75116         * lib/backupfile.c (ISDIGIT): Comment fix.
75117         * lib/getdate.y (ISDIGIT): Likewise.
75118         * lib/posixtm.c (ISDIGIT, year): Likewise.
75119         * lib/strverscmp.c (ISDIGIT): Likewise.
75120         * lib/userspec.c (ISDIGIT): Likewise.
75121
75122 2002-01-16  Jim Meyering  <meyering@lucent.com>
75123
75124         * lib/getdate.y: Add three semicolons, each just before a closing
75125         brace. Bison (as of version 1.31) no longer papers over that mistake.
75126
75127 2002-01-05  Jim Meyering  <meyering@lucent.com>
75128
75129         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75130
75131 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75132
75133         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75134         not silently exit merely because the output buffer happens to
75135         have nothing pending.
75136
75137 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75138
75139         See the big note in ../ChangeLog.
75140         * lib/human.c (suffixes): Prefer K to k for 1024.
75141         (generate_suffix_backwards): New function.
75142         (human_readable_inexact): Use it.
75143         * lib/xstrtol.c (__xstrtol): If there is no number but there
75144         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75145         Accept 'K' as well as 'k'.
75146
75147 2001-12-15  Jim Meyering  <meyering@lucent.com>
75148
75149         * lib/regex.h (__restrict_arr): Update from libc.
75150
75151         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75152         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75153         (STREQ): Define.
75154
75155 2001-12-14  Jim Meyering  <meyering@lucent.com>
75156
75157         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75158         Suggestion from Bruno Haible.
75159
75160 2001-12-10  Jim Meyering  <meyering@lucent.com>
75161
75162         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75163         xrealloc, Instead, include "xalloc.h".
75164         (initbuffer): Don't cast xmalloc return value to char*.
75165         (readline): Reword comment.
75166         Don't cast xrealloc return value to char*
75167         Return NULL, not 0.
75168
75169 2001-12-09  Jim Meyering  <meyering@lucent.com>
75170
75171         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75172         about `signed and unsigned type in conditional expression'.
75173         * lib/posixtm.c (posix_time_parse): Likewise.
75174
75175         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75176
75177         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75178         to avoid a pedantic warning.
75179
75180         * lib/getstr.c: Don't include assert.h.
75181         (getstr): Remove warning-evoking assertions.
75182         Return -1 if offset parameter is out of bounds.
75183         Change the type of a local from int to size_t.
75184
75185         * lib/strftime.c (my_strftime_localtime_r): Include this function
75186         definition in the `#if ! HAVE_TM_GMTOFF' block.
75187
75188         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75189         Include xalloc.h instead.
75190
75191 2001-12-02  Jim Meyering  <meyering@lucent.com>
75192
75193         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75194         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75195         included.
75196
75197         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75198         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75199
75200 2001-11-30  Akim Demaille  <akim@epita.fr>
75201
75202         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75203         before being defined.
75204
75205 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75206
75207         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75208         First arg is int, not unsigned.
75209         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75210         (SIZE_MAX, UINT_MAX): New macros.
75211         (quotearg_n_options): Abort if N is negative.
75212         Avoid overflow check on hosts where size_t is 64 bits and int
75213         is 32 bits, as overflow is impossible there.
75214         Fix off-by-one typo that caused unnecessary reallocation.
75215
75216 2001-11-27  Jim Meyering  <meyering@lucent.com>
75217
75218         * lib/tempname.c: Merge with version from libc.
75219         * lib/regex.c: Likewise.
75220
75221         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75222         systems for which STDC_HEADERS is 0, it was not included, resulting in
75223         a warning about an integer-to-pointer conversion problem with getenv.
75224         Reported by Volker Borchert.
75225
75226 2001-11-26  Jim Meyering  <meyering@lucent.com>
75227
75228         * lib/gtod.h: Remove file.
75229         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75230         * lib/gettimeofday.c: Don't include gtod.h.
75231         (GTOD_init): Remove function.
75232         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75233         Suggestion from Volker Borchert.
75234
75235 2001-11-23  Jim Meyering  <meyering@lucent.com>
75236
75237         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75238         it.
75239         * lib/hash.c (struct hash_table): Define it here instead.
75240
75241 2001-11-22  Jim Meyering  <meyering@lucent.com>
75242
75243         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75244
75245 2001-11-20  Jim Meyering  <meyering@lucent.com>
75246
75247         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75248         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75249
75250 2001-11-19  Jim Meyering  <meyering@lucent.com>
75251
75252         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75253         directory.  Use "conftestXXXXXX" as the template.
75254         Suggestion from Paul Eggert.
75255
75256         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75257         immediately, so the test doesn't mistakenly hit the max-open-files
75258         limit.
75259
75260 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75261
75262         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75263         (TEMPORARIES): New macro.
75264         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75265         removes an artificial limitation (e.g. HP-UX 10.20, where
75266         TMP_MAX is 17576).
75267
75268 2001-11-18  Jim Meyering  <meyering@lucent.com>
75269
75270         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75271
75272 2001-11-18  Jim Meyering  <meyering@lucent.com>
75273
75274         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75275         on SunOS 4.
75276
75277         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75278         files will be created before anything else.
75279
75280 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75281
75282         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75283         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75284
75285 2001-11-17  Jim Meyering  <meyering@lucent.com>
75286
75287         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75288         Prompted by a report from Bob Proulx.
75289
75290         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75291         Instead, require UTILS_FUNC_MKSTEMP.
75292
75293 2001-11-17  Jim Meyering  <meyering@lucent.com>
75294
75295         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75296         Now, that's done as part of AC_FUNC_STRTOD.
75297
75298 2001-11-17  Jim Meyering  <meyering@lucent.com>
75299
75300         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75301         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75302         rather than group writable.  Patch by Juan F. Codagnone.
75303
75304         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75305         xrealloc, Instead, include "xalloc.h".
75306
75307         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75308         Remove explicit declarations of xmalloc, xrealloc,
75309         and xstrdup.  Instead, include "xalloc.h".
75310
75311         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75312         unlocked-io.h.
75313         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75314         Likewise.
75315         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75316
75317         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75318         Reported by Padraig Brady.
75319
75320         * lib/mkstemp.c: #undef mkstemp.
75321         Include config.h.
75322         (rpl_mkstemp): Rename from mkstemp.
75323         Protoize.
75324
75325 2001-11-16  Jim Meyering  <meyering@lucent.com>
75326
75327         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75328         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75329         determine the amount of total physical memory, use pstat_getstatic.
75330         HPUX-11 doesn't define _SC_PHYS_PAGES.
75331         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75332         If sysconf couldn't be used to determine the amount of available
75333         physical memory, use both pstat_getstatic and pstat_getdynamic.
75334         Based on a patch from Bob Proulx.
75335
75336 2001-11-10  Jim Meyering  <meyering@lucent.com>
75337
75338         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75339         (jm_PREREQ): Use it.
75340
75341 2001-11-09  Jim Meyering  <meyering@lucent.com>
75342
75343         * m4/jm-macros.m4: Require autoconf-2.52f.
75344         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75345         Use these AC_-prefixed names, not the AM_-prefixed ones.
75346
75347         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75348
75349 2001-11-05  Jim Meyering  <meyering@lucent.com>
75350
75351         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75352
75353 2001-11-04  Jim Meyering  <meyering@lucent.com>
75354
75355         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75356         $DEFS.
75357
75358 2001-11-03  Jim Meyering  <meyering@lucent.com>
75359
75360         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75361         of AC_DEFUN.
75362
75363         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75364         know the name of the variable in the macro definition.
75365
75366 2001-11-03  Jim Meyering  <meyering@lucent.com>
75367
75368         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75369         in argmatch_to_argument call.
75370
75371         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75372         argument.
75373
75374         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75375         e.g., a fault due to an attempt to free a NULL pointer.
75376
75377 2001-11-01  Jim Meyering  <meyering@lucent.com>
75378
75379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75380         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75381
75382 2001-11-01  Jim Meyering  <meyering@lucent.com>
75383
75384         * lib/dirfd.c, lib/dirfd.h: New files.
75385         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75386
75387         * lib/hash.c (hash_print) [TESTING]: Clean up.
75388
75389 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75390
75391         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75392         to avoid a warning if -Wall.
75393
75394 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75395
75396         * README: New file
75397         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75398         (per RMS's instructions, this is now the canonical source)
75399         * lgpl/, gpl/: New directories.
75400
75401 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75402
75403         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75404
75405 2001-10-21  Jim Meyering  <meyering@lucent.com>
75406
75407         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75408         this code would end up calling gettext even in packages built
75409         with --disable-nls.
75410         * lib/getopt.c (_): Likewise.
75411         * lib/regex.c (_): Likewise.
75412
75413 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75414
75415         * m4/error.m4 (jm_PREREQ_ERROR):
75416         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75417         AC_FUNC_STRERROR_R does that.
75418         Check for strerror declaration.
75419
75420         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75421         are supposed to have them these days.
75422         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75423         Merge changes from latest Autoconf CVS.
75424         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75425         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75426         POSIX decided to standardize on the int flavor of strerror_r.
75427
75428 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75429
75430         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75431         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75432         Use strerror_r that is only a macro, even if it is not a function.
75433         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75434         (private_strerror): Use prototypes, not old-style function definition.
75435         (print_errno_message): New function.
75436         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75437         char*-flavored one.
75438         (error_tail, error, error_at_line): Use it.
75439
75440 2001-10-11  Jim Meyering  <meyering@lucent.com>
75441
75442         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75443         and quote_n (1, ... to avoid clobbering a buffer.
75444
75445 2001-10-05  Jim Meyering  <meyering@lucent.com>
75446
75447         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75448         hash-pjw.h.
75449         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75450         * lib/hash-pjw.h: New file.
75451
75452 2001-09-30  Jim Meyering  <meyering@lucent.com>
75453
75454         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75455         `struct fsstat' has the `f_fstypename' member.
75456         Use that to define FS_TYPE, which is now used to make
75457         the getfsstat link test tighter.
75458
75459 2001-09-30  Jim Meyering  <meyering@lucent.com>
75460
75461         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75462         Include <sys/ucred.h>, for Apple Darwin.
75463         Include sys/mount.h and sys/fs_types.h only if available.
75464         (FS_TYPE): Define.
75465         (read_filesystem_list): Use FS_TYPE.
75466
75467 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75468
75469         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75470         a boolean context.
75471
75472 2001-09-29  Jim Meyering  <meyering@lucent.com>
75473
75474         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75475         [one-argument getmntent function]): Include stdio.h before mntent.h.
75476         SunOS 4.1.x needs it for the declaration of `FILE'.
75477         Patch by Volker Borchert.
75478
75479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75480         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75481         sys/fs_types.h, and make the link-test for getfsstat guard #include
75482         directives with appropriate #if HAVE_*_H tests so that we can
75483         detect getfsstat on Apple Darwin1.3.7 systems.
75484         Reported by Nelson Beebe.
75485         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75486
75487 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75488
75489         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75490         #defines strtoimax.  Also treat the other strto* functions
75491         like strtoimax.
75492
75493         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75494         Check for strtoul and strtoumax,
75495         as those declarations are made even in the signed case.
75496         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75497         Likewise, for strtol and strtoimax.
75498
75499 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75500
75501         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75502         #defines strtoimax.  Also treat the other strto* functions
75503         like strtoimax.
75504
75505         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75506         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75507         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75508
75509 2001-09-26  Jim Meyering  <meyering@lucent.com>
75510
75511         Most macros in unlocked-io.h had the wrong number of arguments.
75512         * lib/gen-uio: New script.
75513         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75514         * lib/unlocked-io.hin: Remove file.
75515         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75516         rather than trying to embed it here.
75517         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75518         Reported by Padraig Brady.
75519
75520 2001-09-25  Volker Borchert  <bt@teknon.de>
75521
75522         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75523         `result'.
75524
75525 2001-09-24  Jim Meyering  <meyering@lucent.com>
75526
75527         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75528
75529 2001-09-23  Jim Meyering  <meyering@lucent.com>
75530
75531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75532         instead of the mere test for existence of mntent.h.  The latter
75533         would get a false-positive on AIX 3.4 systems.
75534         In the outer getmntent if-block, don't die if neither of the getmntent
75535         tests succeeds.  Instead, just fall through and continue with the
75536         remaining tests.
75537
75538 2001-09-23  Jim Meyering  <meyering@lucent.com>
75539
75540         * lib/mountlist.c: Remove useless parentheses in #if directives.
75541         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75542         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75543
75544 2001-09-22  Jim Meyering  <meyering@lucent.com>
75545
75546         * m4/gettext.m4: New file.  From gettext.
75547         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75548         * m4/progtest.m4: Likewise
75549         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75550         * m4/glibc21.m4: Likewise.
75551
75552         * m4/libintl.m4: Remove.  No longer used.
75553
75554 2001-09-22  Jim Meyering  <meyering@lucent.com>
75555
75556         * lib/localcharset.c: Update from latest gettext.
75557         * lib/config.charset: Likewise.
75558
75559 2001-09-20  Jim Meyering  <meyering@lucent.com>
75560
75561         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75562         strtoimax.
75563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75564         strtoumax.
75565
75566 2001-09-20  Jim Meyering  <meyering@lucent.com>
75567
75568         * lib/xstrtol.c (strtoimax): Guard declaration with
75569         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75570         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75571         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75572         (strtoumax): Likewise, for completeness (it wasn't necessary).
75573
75574 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75575
75576         * lib/strtoimax.c (HAVE_LONG_LONG):
75577         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75578         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75579         to work around bug in IBM C compiler.
75580
75581 2001-09-17  Jim Meyering  <meyering@lucent.com>
75582
75583         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75584         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75585         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75586         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75587         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75588         whenever the right hand side need not be expanded by the shell.
75589
75590 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75591
75592         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75593         library.  It's not correct, as some older glibcs are buggy.
75594         fnmatch wasn't fixed until glibc 2.2.
75595
75596         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75597         special shell magic here.
75598
75599 2001-09-16  Jim Meyering  <meyering@lucent.com>
75600
75601         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75602         * m4/jm-macros.m4: Require it.
75603
75604 2001-09-16  Jim Meyering  <meyering@lucent.com>
75605
75606         * lib/mkdir.c: New file.
75607
75608 2001-09-15  Jim Meyering  <meyering@lucent.com>
75609
75610         * m4/jm-macros.m4: Check for help2man.
75611
75612 2001-09-11  Jim Meyering  <meyering@lucent.com>
75613
75614         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75615         The body, by Paul Eggert, was moved here from configure.in.
75616         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75617
75618 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75619
75620         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75621         (jm_PREREQ): Use it.
75622
75623 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75624
75625         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75626         Use ssize_t, not int, to store result of readlink.
75627         Check for ssize_t overflow as well as size_t overflow,
75628         as POSIX says the result of readlink is implementation-defined
75629         when ssize_t overflows.
75630         Remove unnecessary cast to char*.
75631         Use free+malloc instead of realloc, as the storage doesn't need
75632         to be preserved and it's clearer and can be more efficient that way.
75633         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75634         * lib/xreadlink.h (xreadlink): Update prototype.
75635
75636 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75637
75638         * lib/xgetcwd.c: Revert some of the previous change; intead,
75639         fix the HAVE_GETCWD_NULL code to behave more like the
75640         !HAVE_GETCWD_NULL code used to.
75641
75642         Include "xalloc.h".
75643         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75644         invoke xalloc_die.
75645
75646 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75647
75648         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75649         sys/param.h, as pathmax.h includes them.
75650
75651 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75652
75653         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75654         (jm_PREREQ_XGETCWD): New macro.
75655
75656         * m4/getcwd.m4: New file.
75657
75658 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75659
75660         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75661         like the HAVE_GETCWD_NULL code.
75662         Include pathmax.h if not HAVE_GETCWD.
75663         Do not include xalloc.h.
75664         (INITIAL_BUFFER_SIZE): New symbol.
75665         Do not use xmalloc / xrealloc, since the caller is responsible for
75666         handling errors.  Preserve errno around `free' during failure.
75667         Do not overrun buffer when using getwd.
75668
75669 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75670
75671         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75672         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75673         getcwd (NULL, 0).
75674
75675 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75676
75677         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75678         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75679         spotted by Jim Meyering.
75680
75681 2001-09-03  Jim Meyering  <meyering@lucent.com>
75682
75683         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75684         failure.
75685
75686 2001-09-02  Jim Meyering  <meyering@lucent.com>
75687
75688         * lib/error.c: Update from GNU libc.
75689
75690 2001-09-01  Jim Meyering  <meyering@lucent.com>
75691
75692         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75693         Used by df.
75694
75695 2001-09-01  Jim Meyering  <meyering@lucent.com>
75696
75697         * lib/xreadlink.c: New file.
75698         * lib/xreadlink.h: New file.
75699         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75700         xreadlink.h.
75701
75702         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75703         doesn't conflict with sparc Solaris 7's definition in
75704         /usr/include/sys/int_types.h.
75705
75706         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75707         files.
75708         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75709         and strncasecmp as r-values.  Unixware didn't have declarations.
75710
75711 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75712
75713         * lib/xstrtol.h: Add copyright notice.
75714         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75715         LONGINT_INVALID_SUFFIX_CHAR.
75716
75717 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75718
75719         * lib/xstrtol.c (strtoimax): New decl.
75720
75721 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75722
75723         * lib/xgetcwd.c: Don't include pathmax.h.
75724         Include stdlib.h and unistd.h if available.
75725         Include xalloc.h.
75726         (xmalloc, xstrdup, free): Remove decls.
75727         (xgetcwd): Don't assume sizes fit in unsigned.
75728         Check for overflow when computing sizes.
75729         Simplify reallocation code.
75730
75731 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75732
75733         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75734         a directory's st_size can have an arbitrary value, so the old
75735         usage could waste an arbitrary amount of memory.  All uses
75736         changed.
75737         * lib/savedir.h: Update prototype.
75738
75739 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75740
75741         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75742
75743         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75744         old strtoimax.c.
75745
75746         Also, make the following further changes to make this file's
75747         configuration more similar to that of strtol.c:
75748         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75749         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75750         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75751         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75752         changed to signed values.
75753
75754         And make the following changes as well:
75755         Fix copyright notice, as 1999 was missing.
75756         (verify): New macro.
75757         (strtoimax): Check sizes at compile-time, not run-time.
75758         Prefer strtol to strtoll if both work.
75759         (main): Remove; it was not that useful and was a pain to maintain.
75760
75761         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75762
75763 2001-08-31  Jim Meyering  <meyering@lucent.com>
75764
75765         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75766         Use an initial, malloc'd, buffer of length 128 rather than
75767         a statically allocated one of length 1024.
75768
75769 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75770
75771         Simplify code, partly by assuming autoconf 2.52 semantics.
75772
75773         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75774
75775         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75776         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75777         All uses removed.
75778         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75779         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75780         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75781         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75782         jm_AC_HEADER_INTTYPES_H.
75783         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75784
75785         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75786
75787         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75788         Quote first arg of AC_DEFUN.
75789         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75790         since they are needed to parse the include file even if we need
75791         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75792         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75793         but with opposite signedness.
75794
75795 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75796
75797         Merge 'exclude' changes from tar 1.13.22.
75798         This fixes one or two unlikely storage allocation overflow bugs,
75799         but doesn't change user-visible behavior otherwise.
75800
75801 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75802
75803         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75804         (jm_PREREQ_EXCLUDE): New macro.
75805
75806 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75807
75808         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75809         tm to be declared.
75810
75811 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75812
75813         * lib/hash.c: Remove '2001' from copyright notice.
75814
75815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75816
75817         * lib/full-write.h: New file.
75818         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75819         * lib/full-write.c: Correct credits, as cccp.c no longer
75820         exists and anyway it was so heavily changed from the old cccp
75821         code as to be unrecognizable.  Include full-write.h.
75822         (full_write) Return size_t, with short writes meaning failure.
75823         All callers changed.  This fixes a bug with large buffers
75824         on 64-bit hosts.
75825         * lib/utime.c: Include full-write.h.
75826
75827 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75828
75829         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75830         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75831         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75832         Include if available.
75833         (<xalloc.h>): Include
75834         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75835         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75836         collide with FNM macros.
75837         (struct patopts): New struct.
75838         (struct exclude): Use it, as exclude patterns now come with options.
75839         (new_exclude): Support above changes.
75840         (new_exclude, add_exclude_file):
75841         Initial size must now be a power of two to simplify overflow checking.
75842         (free_exclude, fnmatch_no_wildcards): New function.
75843         (excluded_filename): No longer requires options arg, as the options
75844         are determined by add_exclude.  Now returns bool, not int.
75845         (excluded_filename, add_exclude):
75846         Add support for the fancy new exclusion options.
75847         (add_exclude, add_exclude_file): Now takes int options arg.
75848         Check for arithmetic overflow when computing sizes.
75849         (add_exclude_file): xrealloc might modify errno, so don't
75850         realloc until after errno might be used.
75851
75852         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75853         New macros.
75854         (free_exclude): New decl.
75855         (add_exclude, add_exclude_file): Now takes int options arg.
75856         (excluded_filename): No longer requires options arg, as the options
75857         are determined by add_exclude.  Now returns bool, not int.
75858
75859 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75860
75861         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75862
75863 2001-08-27  Jim Meyering  <meyering@lucent.com>
75864
75865         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75866
75867         * lib/version-etc.c (N_): Remove definition.
75868         Revert most of last change.
75869         Instead, simply don't mark the `Copyright...' string for translation.
75870         Based on advice from Paul Eggert.
75871
75872         * lib/strtoxmax.c: Tweak comment.
75873
75874 2001-08-26  Jim Meyering  <meyering@lucent.com>
75875
75876         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75877
75878         * m4/xstrtoimax.m4: New file.
75879         * m4/xstrtoumax.m4: Add comments explaining why we
75880         AC_REPLACE_FUNCS(strtol).
75881
75882 2001-08-26  Jim Meyering  <meyering@lucent.com>
75883
75884         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75885         of copyright with `%s' so translators don't get an untranslated
75886         message in 2002.
75887         (COPYRIGHT_YEAR): Define.
75888         (version_etc): Use fprintf rather than fputs.
75889         Suggestion from Ulrich Drepper.
75890
75891         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75892
75893         * lib/strtoll.c: New file, from GNU libc.
75894         * lib/xstrtoimax.c: New file.
75895
75896         * lib/xstrtol.h: Add xstrtoimax.
75897         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75898         * lib/strtoimax.c: New file.  Likewise, but first define
75899         STRTOUXMAX_SIGNED.
75900
75901         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75902         ...
75903         * lib/strtoxmax.c: ... then renamed to this.
75904
75905 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75906
75907         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75908         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75909         (jm_AC_TYPE_INTMAX_T): New macro.
75910         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75911
75912         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75913
75914         * m4/longlong.m4: Renamed from ulonglong.m4.
75915         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75916         * m4/uintmax_t.m4: Removed.
75917
75918 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75919
75920         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75921         Port to Solaris 8, where 'sed' requires a space after the 'r'
75922         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75923         Redirect output to $tmp just once.
75924
75925 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75926
75927         * lib/addext.c (<errno.h>): Include.
75928         (errno): Declare if not defined.
75929         (addext): Work correctly when pathconf returns -1 and leaves
75930         errno alone because there is no limit.  Also, work even if
75931         pathconf returns a value greater than SIZE_MAX.
75932
75933 2001-08-12  Jim Meyering  <meyering@lucent.com>
75934
75935         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75936         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75937         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75938         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75939         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75940         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75941         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75942         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75943         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75944         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75945         utime.m4, utimes.m4, xstrtoumax.m4:
75946         Quote the first argument in each use of AC_DEFUN.
75947
75948 2001-08-12  Jim Meyering  <meyering@lucent.com>
75949
75950         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75951         Simply `return getcwd (NULL, 0);'.
75952         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75953         Use 1300 as initial value for length, not PATH_MAX.
75954
75955         * lib/pathmax.h: Clean up cpp syntax.
75956
75957 2001-08-12  Jim Meyering  <meyering@lucent.com>
75958
75959         * lib/gettimeofday.c: New file.
75960         * lib/gtod.h: New file.
75961         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75962
75963 2001-08-05  Jim Meyering  <meyering@lucent.com>
75964
75965         * m4/jm-macros.m4: Require autoconf-2.52.
75966
75967 2001-08-04  Jim Meyering  <meyering@lucent.com>
75968
75969         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75970         stmt, to get in sync with glibc.
75971
75972 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75973
75974         The following changes are from gettext 0.10.39 as maintained by
75975         Bruno Haible.
75976
75977         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75978         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75979         with inverted sense.  All uses changed.
75980
75981         * lib/mbswidth.c: Don't include <limits.h>.
75982         Include <stdlib.h> and <string.h> unconditionally.
75983         (iswcntrl, mbsinit, ISCNTRL): New macros.
75984         (mbsnwidth): Use K&R style function declarations.
75985         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75986         can optimize it when MB_CUR_MAX == 1.
75987         The width of control characters is zero, not 1.
75988
75989 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75990
75991         The following changes are from gettext 0.10.39 as maintained by
75992         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75993
75994         * m4/codeset.m4: Upgrade to serial AM1.
75995         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75996         all uses changed.  Quote first arg of AC_DEFUN.
75997         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75998
75999         * m4/iconv.m4: Upgrade to serial AM2.
76000         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76001         Add --with-libconv-prefix.
76002         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76003         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76004         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76005         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76006         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76007
76008         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76009         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76010         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76011         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76012         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76013         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76014         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76015         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76016         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76017
76018         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76019         string.h any more.
76020
76021         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76022         not the default value.
76023
76024         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76025         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76026         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76027         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76028         Also check for iswcntrl, used for wcwidth fallback.
76029         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76030         to Autoconf 2.13.
76031
76032 2001-08-03  Jim Meyering  <meyering@lucent.com>
76033
76034         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76035         as it was in the original.  Reported by Paul Eggert.
76036
76037 2001-07-16  Jim Meyering  <meyering@lucent.com>
76038
76039         * m4/gettimeofday.m4: New file.
76040         Prompted by a report from Bernhard Baehr.
76041
76042 2001-07-15  Jim Meyering  <meyering@lucent.com>
76043
76044         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76045         stuff. Now it's in ../Makefile.cfg.
76046
76047 2001-07-15  Jim Meyering  <meyering@lucent.com>
76048
76049         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76050         (BUILT_SOURCES): Add unlocked-io.h.
76051         (io_functions): Define.
76052         (unlocked-io.h): New rule.
76053         (DISTCLEANFILES): Add unlocked-io.h.
76054         (all-local): Depend on unlocked-io.h, to ensure it is created.
76055
76056         * lib/unlocked-io.hin: New file
76057
76058         * lib/regex.c: Update from glibc.
76059
76060 2001-07-05  Jim Meyering  <meyering@lucent.com>
76061
76062         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76063         recommendation.
76064         (libfetish_a_SOURCES): Put all .h files here instead.
76065         Remove a thus-exposed (better checks in automake) duplicate and
76066         two unnecessary .h files.
76067
76068 2001-07-04  Jim Meyering  <meyering@lucent.com>
76069
76070         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76071         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76072         distcheck failure.
76073
76074 2001-07-02  Jim Meyering  <meyering@lucent.com>
76075
76076         The following changes were prompted by suggestions from Bruno Haible.
76077
76078         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76079         is now generated.
76080         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76081         definition of EXTRA_DIST.
76082         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76083         ensure that the generated file is created/updated whenever the list
76084         of $(unlocked_functions) is changed.
76085         (jm-glibc-io.m4): New rule.
76086         (unlocked-io.h): New rule -- currently unused.
76087
76088 2001-06-24  Jim Meyering  <meyering@lucent.com>
76089
76090         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76091         unmatched right bracket, rather than kludging it with an extra,
76092         falsely-matching quote in a comment.  Patch by Akim Demaille.
76093
76094 2001-06-11  Jim Meyering  <meyering@lucent.com>
76095
76096         * lib/regex.c: Update from GNU libc.
76097
76098 2001-05-27  Jim Meyering  <meyering@lucent.com>
76099
76100         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76101         Check for ut_type in struct utmp.
76102
76103 2001-05-27  Jim Meyering  <meyering@lucent.com>
76104
76105         * lib/readutmp.h (UT_TYPE): Define.
76106
76107 2001-05-24  Jim Meyering  <meyering@lucent.com>
76108
76109         * lib/argmatch.c: Include "quote.h".
76110         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76111         quote function.  Reported by Göran Uddeborg.
76112
76113 2001-05-22  Jim Meyering  <meyering@lucent.com>
76114
76115         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76116         now that we use the package-supplied version unconditionally.
76117         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76118
76119 2001-05-21  Jim Meyering  <meyering@lucent.com>
76120
76121         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76122         shell syntax errors.
76123
76124 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76125
76126         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76127
76128 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76129
76130         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76131         Don't bother to check library strftime, since
76132         we'll be using our own my_strftime function anyway.
76133         Define my_strftime instead of strftime.
76134
76135 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76136
76137         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76138         which is not yet declared.
76139
76140 2001-05-15  Jim Meyering  <meyering@lucent.com>
76141
76142         * m4/regex.m4: Use proper quoting so brackets appear in the test
76143         program.
76144         Reported by, and with help from, Bruno Haible.
76145
76146 2001-05-13  Jim Meyering  <meyering@lucent.com>
76147
76148         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76149         undefined.
76150
76151 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76152
76153         dirname code cleanup.  base_name now behaves more compatibly
76154         with POSIX basename when given file names that have trailing
76155         slashes, and similarly for dir_name.  Add new primitives
76156         base_len and dir_len.  Put the directory-name-related decls
76157         into dirname.h.
76158
76159         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76160         * lib/backupfile.c (base_name): Likewise.
76161         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76162         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76163         * lib/makepath.c (strip_trailing_slashes): Likewise.
76164         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76165         ISSLASH): Likewise.
76166         * lib/rename.c (strip_trailing_slashes): Likewise.
76167         * lib/same.c (base_name): Likewise.
76168         * lib/stripslash.c (ISSLASH): Likewise.
76169
76170         * lib/addext.c: Include <dirname.h> after size_t is defined.
76171         * lib/backupfile.c: Likewise.
76172
76173         * lib/addext.c (addext): Use base_len to trim redundant
76174         trailing slashes instead of doing it ourselves.
76175         But do not trim the last slash if it is not redundant.
76176
76177         * lib/backupfile.c (find_backup_file_name,
76178         max_backup_version): Use base_len instead of rolling it ourselves.
76179         Handle the case of "" and (on DOS) "C:" correctly.
76180
76181         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76182         needed. Include <string.h>, <dirname.h>.
76183         (base_name): Allow file names ending in slashes, other than names
76184         that are all slashes.  In this case, return the basename followed
76185         by the slashes.  This is more general, and can be used in places
76186         where the original base_name purposely had an assertion failure.
76187         (base_len): New function.
76188
76189         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76190         Do not include <assert.h>; no longer needed.
76191         Include xalloc.h.
76192         (memrchr): Remove decl.
76193         (dir_name_r): Remove.
76194         (dir_len): Renamed from dirlen.  All callers changed.
76195         Rewrite in terms of base_name, for simplicity and consistency.
76196         (dir_name): Never return NULL.  All callers changed.
76197         Do not include <stdlib.h> in test program; no longer needed.
76198         return 0; is fine for test program.
76199
76200         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76201         New macros.
76202         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76203
76204         * lib/path-concat.c (path_concat): Use base_len to compute
76205         base length, not strlen; this means we cannot rely on memcpy
76206         to null-terminate.
76207
76208         * lib/same.c (STREQ): Remove.
76209         (same_name): Handle the case where the basename ends in trailing '/'.
76210
76211         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76212         a slash was stripped.  Do not strip the last slash after a
76213         file system prefix.
76214
76215 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76216
76217         * lib/Makefile.am (libfetish_a_SOURCES):
76218         Add strftime.c, since we now compile it on all hosts.
76219
76220         * lib/strftime.c (my_strftime):
76221         Define to nstrftime if emacs, but only if my_strftime is not defined.
76222         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76223         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76224         Add one more extra argument: a nanoseconds value.
76225         All uses changed.
76226         (ns): New macro.
76227         (my_strftime function): Add %N format.
76228         (emacs_strftimeu): Renamed from emacs_strftime,
76229         with extra ut argument.
76230
76231 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76232
76233         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76234
76235 2001-04-21  Jim Meyering  <meyering@lucent.com>
76236
76237         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76238         doesn't interfere.
76239
76240 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76241
76242         * m4/ftruncate.m4: Check for chsize.
76243         Link with ftruncate.o unconditionally if ftruncate is missing.
76244         This was required when cross-compiling to i586-mingw32msvc.
76245
76246 2001-04-08  Jim Meyering  <meyering@lucent.com>
76247
76248         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76249         recomputed; that's necessary when the offset spans a DST transition.
76250         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76251
76252 2001-04-02  Jim Meyering  <meyering@lucent.com>
76253
76254         * lib/regex.h, regex.c: Update from GNU libc.
76255
76256 2001-03-24  Jim Meyering  <meyering@lucent.com>
76257
76258         * m4/jm-macros.m4: Require autoconf-2.49d.
76259
76260 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76261
76262         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76263
76264 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76265
76266         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76267
76268 2001-03-17  Jim Meyering  <meyering@lucent.com>
76269
76270         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76271         now that the version in autoconf is equivalent.
76272         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76273
76274         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76275         Suggestion from Akim Demaille.
76276
76277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76278         (jm_PREREQ_TEMPNAME): New function.
76279
76280 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76281
76282         * lib/tempname.c (uint64_t): Define to uintmax_t if
76283         not defined, and if UINT64_MAX is not defined.
76284         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76285         Reported by John David Anglin.
76286
76287 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76288
76289         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76290         resolve alias if codeset is empty.
76291         * lib/config.charset (BeOS): Use wildcard syntax.
76292
76293 2001-03-13  Jim Meyering  <meyering@lucent.com>
76294
76295         * lib/path-concat.c (path_concat)
76296         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76297         concatenating e.g., `C:' and `foo'.
76298         From Bruno Haible.
76299
76300 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76301
76302         * lib/localcharset.c (locale_charset): Don't use
76303         setlocale(LC_CTYPE,NULL). Don't return NULL.
76304         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76305
76306 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76307
76308         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76309         support for DOS/DJGPP.
76310
76311 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76312
76313         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76314         lacks mkstemp.  Compile our own tempname.c if we compile our own
76315         mkstemp.c, as mkstemp relies on tempname.
76316
76317 2001-03-01  Jim Meyering  <meyering@lucent.com>
76318
76319         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76320         AH_VERBATIM really does output its argument verbatim.
76321
76322 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76323
76324         * lib/Makefile.am (libfetish_a_SOURCES):
76325         Add dup-safer.c, fopen-safer.c.
76326         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76327
76328         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76329         * lib/unistd-safer.h: New files.
76330
76331 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76332
76333         The mkstemp replacement is taken from glibc 2.2.2, with some
76334         portability fixes for use outside glibc, as follows:
76335
76336         * lib/tempname.c (struct_stat64): New macro.
76337         (direxists, __gen_tempname): Use it.
76338         This avoids a portability problem with Solaris 8.
76339
76340         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76341         (<stddef.h>, <stdint.h>, <string.h>):
76342         Include only if STDC_HEADERS || _LIBC.
76343         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76344         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76345         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76346         (__set_errno): Define this macro if <errno.h> doesn't.
76347         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76348         Define these macros if <stdio.h> doesn't.
76349         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76350         Define these macros if <sys/stat.h>
76351         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76352         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76353         __xstat64): Define if not _LIBC.
76354         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76355         (__gen_tempname): Invoke gettimeofday only if
76356         HAVE_GETTIMEOFDAY || _LIBC;
76357         otherwise, fall back on plain "time".
76358         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76359
76360         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76361
76362         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76363
76364 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76365
76366         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76367
76368 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76369
76370         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76371         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76372         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76373         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76374
76375 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76376
76377         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76378         Remove workaround macros for hosts that have mbrtowc but not
76379         mbstate_t, as we now insist on proper declarations for both
76380         before using mbrtowc.
76381
76382 2001-02-17  Jim Meyering  <meyering@lucent.com>
76383
76384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76385         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76386         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76387         UnixWare 7.1.1.
76388
76389         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76390         rather than AC_CACHE_VAL.
76391
76392 2001-02-17  Jim Meyering  <meyering@lucent.com>
76393
76394         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76395         around included file name.
76396
76397         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76398
76399         * lib/strftime.c: Update from GNU libc (the only changes were to
76400         comments).
76401
76402 2001-02-17  Jim Meyering  <meyering@lucent.com>
76403
76404         * lib/regex.c: Update from libc.
76405
76406 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76407
76408         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76409         clash.
76410
76411 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76412
76413         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76414         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76415         Reported by Mark Hounschell via Paul Eggert.
76416
76417 2001-02-07  Jim Meyering  <meyering@lucent.com>
76418
76419         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76420
76421 2001-02-05  Jim Meyering  <meyering@lucent.com>
76422
76423         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76424         it includes the patch required for `large file' support with at least
76425         HP-UX's 10.20 /bin/cc.
76426
76427 2001-02-03  Jim Meyering  <meyering@lucent.com>
76428
76429         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76430         AS_IF, now that it works once again (mysteriously).
76431         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76432
76433 2001-01-30  Jim Meyering  <meyering@lucent.com>
76434
76435         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76436         * m4/chown.m4: Rename conftestchown to conftest.chown.
76437         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76438         s/conftestdir2/conftest.d2/.
76439         * m4/utimes.m4: s/conftestdata/conftest.data/
76440         Inspired by Pavel Roskin's change in autoconf.
76441
76442 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76443
76444         * lib/config.charset: Update for FreeBSD 4.2.
76445
76446 2001-01-27  Jim Meyering  <meyering@lucent.com>
76447
76448         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76449         a use of AS_IF.
76450         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76451
76452 2001-01-26  Jim Meyering  <meyering@lucent.com>
76453
76454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76455         quotearg.c includes it.
76456
76457 2001-01-26  Jim Meyering  <meyering@lucent.com>
76458
76459         * lib/quotearg.c: Include stddef.h.
76460         * lib/quote.c: Include stddef.h.
76461         Reported by Axel Kittenberger.
76462
76463         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76464         line in double quotes so that it evokes a better diagnostic.
76465         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76466         Reported by Axel Kittenberger.
76467
76468 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76469
76470         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76471         as if it was a `charset'.
76472
76473 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76474
76475         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76476         has const.
76477
76478 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76479
76480         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76481         to avoid a warning.  Add back 'const' to inptr.
76482
76483 2001-01-20  Jim Meyering  <meyering@lucent.com>
76484
76485         Be sure that headers are checked before used in code compiled
76486         for the type checks.
76487         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76488         In place of that, invoke jm_CHECK_ALL_TYPES.
76489         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76490         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76491         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76492         The check for ssize_t was mistakenly run before the test for unistd.h.
76493
76494         The configure-time check for stdbool.h was missing.
76495         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76496         (jm_PREREQ_HASH): New function.
76497
76498 2001-01-17  Jim Meyering  <meyering@lucent.com>
76499
76500         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76501         for autoconf-2.49c.
76502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76503
76504 2001-01-16  Jim Meyering  <meyering@lucent.com>
76505
76506         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76507         From Bruno Haible.
76508
76509 2001-01-14  Jim Meyering  <meyering@lucent.com>
76510
76511         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76512         foo and bar.  Create conftestdir/ in the script, not in the C code.
76513         Remove directories in the script, not in the C code.
76514         Remove conftestdir{,2} before trying to create the directory.
76515         Make the entire configure script fail if the mkdir fails.
76516
76517 2001-01-14  Jim Meyering  <meyering@lucent.com>
76518
76519         * lib/rename.c: New file.  From Volker Borchert.
76520         Include stdlib.h, string.h or strings.h, and xalloc.h.
76521         Use strip_trailing_slashes rather than open-coding it.
76522
76523 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76524
76525         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76526
76527 2001-01-03  Jim Meyering  <meyering@lucent.com>
76528
76529         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76530         of local `inptr' to avoid warning with some system declarations of
76531         iconv.
76532
76533 2001-01-02  Volker Borchert  <bt@teknon.de>
76534
76535         * m4/rename.m4: New file.
76536         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76537
76538 2001-01-01  Jim Meyering  <meyering@lucent.com>
76539
76540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76541         even on systems with utmpx.h.  It's necessary for the declaration of
76542         utmp's ut_user member.  Reported by Andreas Jaeger.
76543
76544         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76545         available. They are required for the declarations of getgrgid and
76546         getpwuid resp.
76547         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76548         Reported by Andreas Jaeger.
76549
76550 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76551
76552         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76553         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76554         so `make install' also works in VPATH builds.
76555
76556 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76557
76558         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76559         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76560         can be used in subdirectories.
76561
76562 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76563
76564         * lib/modechange.c: Do not assume that mode_t uses the
76565         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76566         the other-execute bit of FOO even if S_IXOTH != 1.
76567
76568         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76569         WOTH, XOTH, ALLM): New macros.
76570         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76571          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76572         Use them.
76573         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76574         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76575         (mode_compile):
76576         No need to use uintmax_t; unsigned long is long enough.
76577         Don't bother to get suffix since we don't use it.
76578
76579 2000-12-26  Jim Meyering  <meyering@lucent.com>
76580
76581         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76582         better with autoheader.
76583
76584 2000-12-24  Jim Meyering  <meyering@lucent.com>
76585
76586         * lib/hash.c (is_prime): Return explicit boolean values.
76587         (hash_get_first): Return NULL to appease Irix5.6's 89.
76588         Reported by Nelson Beebe.
76589
76590 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76591
76592         * lib/localcharset.c (locale_charset): Add support for Win32.
76593
76594 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76595
76596         * lib/physmem.h, lib/physmem.c: New files.
76597
76598         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76599         (noinst_HEADERS): Add physmem.h.
76600
76601         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76602         't' for compatibility with Solaris 8 sort.
76603
76604 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76605
76606         * lib/config.charset: Add support for BeOS.
76607
76608 2000-12-17  Jim Meyering  <meyering@lucent.com>
76609
76610         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76611         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76612
76613 2000-12-16  Jim Meyering  <meyering@lucent.com>
76614
76615         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76616         N and M) would have treated it like `chown N:N FILE'.
76617
76618         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76619
76620 2000-12-16  Jim Meyering  <meyering@lucent.com>
76621
76622         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76623         SHELLS_FILE to a file name that's useful on djgpp systems.
76624         Include stdlib.h.
76625         (ADDITIONAL_DEFAULT_SHELLS): Define.
76626         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76627         Based mostly on a patch from Prashant TR.
76628
76629 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76630
76631         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76632         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76633         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76634
76635 2000-12-08  Andreas Schwab  <schwab@suse.de>
76636
76637         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76638         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76639
76640 2000-12-07  Jim Meyering  <meyering@lucent.com>
76641
76642         * lib/stripslash.c (ISSLASH): Define.
76643         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76644         `/'.
76645         From Prashant TR.
76646
76647         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76648         (dir_name_r): Declare this function as static.
76649         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76650         manifest itself on a name containing a mix of slashes and
76651         backslashes.
76652         Make this function work with names starting with a DOS-style
76653         drive letter and colon prefix.
76654         (dir_name): Append `.' if necessary.
76655         Based mostly on patches from Prashant TR and Eli Zaretskii.
76656
76657         * lib/dirname.h (dir_name_r): Remove prototype.
76658
76659 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76660
76661         * m4/off_t-format.m4: Remove this file.
76662         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76663
76664 2000-12-06  Jim Meyering  <meyering@lucent.com>
76665
76666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76667         replacement strtoull, we may well need the replacement strtoul, too.
76668         Check for declarations of strtoul and strtoull.
76669         Check for strtol.  Mainly as a cue to cause automake to include
76670         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76671         Check for limits.h -- strtol.c needs it.
76672
76673 2000-12-05  Jim Meyering  <meyering@lucent.com>
76674
76675         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76676
76677 2000-12-04  Jim Meyering  <meyering@lucent.com>
76678
76679         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76680         Also include memory.h, stdlib.h, unistd.h if appropriate.
76681         Reported by Andreas Jaeger (conflicting declaration of malloc).
76682
76683 2000-12-02  Jim Meyering  <meyering@lucent.com>
76684
76685         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76686         * m4/jm-macros.m4 (jm_MACROS): require it.
76687
76688 2000-12-02  Jim Meyering  <meyering@lucent.com>
76689
76690         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76691
76692 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76693
76694         * lib/memrchr.c: Include <config.h> before any system include file.
76695
76696 2000-11-30  Jim Meyering  <meyering@lucent.com>
76697
76698         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76699
76700 2000-11-30  Jim Meyering  <meyering@lucent.com>
76701
76702         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76703
76704 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76705
76706         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76707
76708 2000-11-26  Jim Meyering  <meyering@lucent.com>
76709
76710         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76711
76712 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76713
76714         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76715         size of (size_t) -1; it's not portable.
76716
76717 2000-11-17  Jim Meyering  <meyering@lucent.com>
76718
76719         * lib/strstr.c: Update from GNU libc.
76720
76721 2000-11-17  Akim Demaille  <akim@epita.fr>
76722
76723         * lib/obstack.h: Formatting changes.
76724         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76725         prevent type checking.
76726         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76727         cast the value to (void *): assigning a `foo *' to a `void *'
76728         variable is valid.
76729         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76730
76731 2000-11-16  Jim Meyering  <meyering@lucent.com>
76732
76733         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76734
76735 2000-11-11  Jim Meyering  <meyering@lucent.com>
76736
76737         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76738
76739 2000-11-10  Jim Meyering  <meyering@lucent.com>
76740
76741         * lib/obstack.h: Update from GNU libc.
76742         * lib/obstack.c: Likewise.
76743
76744 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76745
76746         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76747
76748 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76749
76750         * lib/getusershell.c (setusershell): Use rewind rather than
76751         fseek/fseeko, to avoid configuration hassles with fseeko.
76752         Don't bother opening SHELLS_FILE if shellstream is NULL;
76753         it's not necessary.
76754
76755 2000-11-05  Jim Meyering  <meyering@lucent.com>
76756
76757         * lib/makepath.h (make_dir): Declare.
76758         * lib/makepath.c (make_dir): Remove `static' attribute.
76759         Tweak a comment.
76760
76761 2000-11-04  Jim Meyering  <meyering@lucent.com>
76762
76763         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76764
76765 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76766
76767         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76768         last one in a bucket, advance to the next bucket.
76769
76770 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76771
76772         * lib/fnmatch.c: Do not comment out all the code if we are using
76773         the GNU C library, because in some cases we are replacing buggy
76774         code in the GNU C library itself.
76775
76776 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76777
76778         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76779         (regex_compile): Catch bogus \(\1\).
76780
76781 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76782
76783         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76784         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76785         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76786
76787 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76788
76789         * lib/error.h, getline.h, modechange.h:
76790         Remove "2000" from Copyright line, as the file hasn't been
76791         changed this year other than in the copyright notice.
76792
76793         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76794         was changed this year.
76795
76796 2000-10-29  Jim Meyering  <meyering@lucent.com>
76797
76798         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76799         renaming.
76800         * m4/ls-mntd-fs.m4: Likewise
76801
76802 2000-10-29  Jim Meyering  <meyering@lucent.com>
76803
76804         * lib/xstat.in: Fix grammar in comment.
76805
76806 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76807
76808         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76809         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76810         doesn't define __restrict_arr.
76811
76812 2000-10-28  Jim Meyering  <meyering@lucent.com>
76813
76814         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76815         (jm_PREREQ_MEMCHR): New function.
76816
76817 2000-10-28  Jim Meyering  <meyering@lucent.com>
76818
76819         * lib/memchr.c: Update from libc.
76820         Adjust for portability:
76821         [HAVE_STDLIB_H]: Include stdlib.h.
76822         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76823         Undef __memchr, too.
76824         [!weak_alias]: Define __memchr to memchr.
76825
76826         * lib/regex.c: Update from libc.
76827         * lib/regex.h: Likewise.
76828         * lib/getopt1.c: Likewise.
76829         * lib/memcmp.c: Likewise.
76830
76831         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76832         Avoid using fseek, when possible -- it's broken by design.
76833         Patch by Ulrich Drepper.
76834
76835 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76836
76837         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76838         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76839         Giving in to popular pressure to shut up the compiler with casts.
76840
76841 2000-10-26  Jim Meyering  <meyering@lucent.com>
76842
76843         * lib/strftime.c: Update from libc.
76844
76845 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76846
76847         * regex.c: More `unsigned char' -> `re_char' changes.
76848         Also change several `int' into `re_wchar_t'.
76849         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76850         (PUSH_FAILURE_POINTER): Don't cast any more.
76851         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76852         We want GCC to complain, since this piece of code makes
76853         re_match non-reentrant, which *should* be fixed.
76854         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76855         (EXTEND_BUFFER): Use RETALLOC.
76856         (SET_LIST_BIT): Don't cast.
76857         (re_wchar_t): New type.
76858         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76859         that those two functions will always properly return.
76860         (IMMEDIATE_QUIT_CHECK): Cast to void.
76861         (analyse_first): Use recursion rather than an explicit stack.
76862         (re_compile_fastmap): Can't fail anymore.
76863         (re_search_2): Don't check re_compile_fastmap for failure.
76864         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76865         Now also sets the new value (passed in a new argument).
76866         (re_match_2_internal): Use it.
76867         Also, use a new var `reg' of type size_t when looping through regs
76868         rather than reuse the inappropriate `mcnt'.
76869
76870 2000-10-25  Jim Meyering  <meyering@lucent.com>
76871
76872         * lib/obstack.c: Update from libc.
76873
76874 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76875
76876         * regex.c (regex_compile): Change the way of handling a range from
76877         a char less than 256 to a char not less than 256.
76878
76879 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76880
76881         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76882         NT-Emacs only.
76883         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76884         so that re_search functions only quit when callers expect them to.
76885
76886 2000-10-23  Jim Meyering  <meyering@lucent.com>
76887
76888         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76889         wrong.  That set_locale call must not have any side effects.
76890         From Paul Eggert.
76891
76892 2000-10-22  Jim Meyering  <meyering@lucent.com>
76893
76894         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76895         [CYCLIC]: Remove now-unused definition.
76896
76897         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76898         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76899         Suggestion from Ulrich Drepper.
76900
76901 2000-10-21  Jim Meyering  <meyering@lucent.com>
76902
76903         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76904         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76906
76907 2000-10-21  Jim Meyering  <meyering@lucent.com>
76908
76909         * lib/dirname.c (memrchr): Declare if necessary.
76910         (dir_name): Remove the restriction that there be no
76911         trailing slashes.  Now, this code skips past them, effectively
76912         ignoring them.
76913         [TEST_DIRNAME] (main): New unit tests.
76914
76915         * lib/memrchr.c: New file from GNU libc.
76916         Undef __memrchr, too.
76917         [!weak_alias]: Define __memrchr to memrchr.
76918         Guard weak_alias use with `#ifdef weak_alias'.
76919
76920 2000-10-21  Jim Meyering  <meyering@lucent.com>
76921
76922         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76923         (dir_name): Use dir_name_r.
76924         * lib/dirname.h (dir_name_r): Declare it.
76925
76926 2000-10-17  Jim Meyering  <meyering@lucent.com>
76927
76928         * lib/quote.h (PARAMS): Define and use.
76929         Reported by Akim Demaille.
76930
76931         * lib/getopt.c: Update from libc.
76932
76933 2000-10-16  Jim Meyering  <meyering@lucent.com>
76934
76935         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76936         setlocale.
76937         From Jan Fedak.
76938
76939 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76940
76941         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76942
76943 2000-09-25  Jim Meyering  <meyering@lucent.com>
76944
76945         * lib/md5.h (rol): Define (from GnuPG).
76946
76947         * lib/sha.c: Give credit (GnuPG) where due.
76948         (M): Use rol rather than open-coding it.
76949         Add a FIXME comment.
76950
76951 2000-09-21  Jim Meyering  <meyering@lucent.com>
76952
76953         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76954         Reported by Michael Stone.
76955
76956 2000-09-20  Jim Meyering  <meyering@lucent.com>
76957
76958         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76959         (noinst_HEADERS): Add sha.h.
76960         Based on code from Scott G. Miller and from GnuPG.
76961
76962 2000-09-18  Jim Meyering  <meyering@lucent.com>
76963
76964         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76965         LIBS. Otherwise, everyone ends up linking with -lelf for some
76966         configurations.
76967         Reported by Mike Stone.
76968
76969 2000-09-15  Jim Meyering  <meyering@lucent.com>
76970
76971         * lib/regex.c: Update from libc.
76972
76973 2000-09-10  Jim Meyering  <meyering@lucent.com>
76974
76975         * lib/getopt.c (_getopt_internal): Update from glibc.
76976
76977 2000-09-09  Jim Meyering  <meyering@lucent.com>
76978
76979         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76980         think it should be used as a general replacement for isascii.
76981         * lib/fnmatch.c: Likewise.
76982         * lib/mbswidth.c: Likewise
76983         * lib/regex.c: Likewise.
76984
76985         Don't use atoi.
76986         * lib/userspec.c: Include sys/param.h and limits.h.
76987         Include xstrtol.h.
76988         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76989         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76990         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76991         UID, GID.  Check range.
76992
76993 2000-09-06  Jim Meyering  <meyering@lucent.com>
76994
76995         * lib/getopt.c (_getopt_internal): Update from glibc.
76996
76997 2000-08-30  Jim Meyering  <meyering@lucent.com>
76998
76999         * lib/strftime.c: Merge in changes from GNU libc.
77000
77001 2000-08-26  Jim Meyering  <meyering@lucent.com>
77002
77003         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77004         * m4/fpending.m4: New file.
77005
77006 2000-08-26  Jim Meyering  <meyering@lucent.com>
77007
77008         * lib/closeout.c: Include "__fpending.h".
77009         (close_stdout_status): Return right away if there's nothing to flush.
77010
77011         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77012         * lib/__fpending.c: New file.
77013         * lib/__fpending.h: New file.
77014
77015 2000-08-20  Jim Meyering  <meyering@lucent.com>
77016
77017         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77018         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77019         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77020
77021 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77022
77023         Improve fileutils installation on systems where running
77024         programs (like install) can't be unlinked.
77025         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77026         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77027
77028 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77029
77030         Standardize on "memory exhausted" instead of "Memory exhausted"
77031         or "virtual memory exhausted".
77032         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77033         "virtual memory exhausted".
77034         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77035         our own message.
77036         * lib/userspec.c (parse_user_spec): Likewise.
77037         * lib/bumpalloc.h: comment fix
77038         * lib/same.c, userspec.c: Include xalloc.h.
77039
77040         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77041         not char *const and pointing to a constant array.
77042         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77043         (xrealloc): Comment fix.
77044
77045         * lib/userspec.c (parse_user_spec):
77046         Don't translate a message until just before returning,
77047         to avoid unnecessary translation.
77048
77049 2000-08-07  Jim Meyering  <meyering@lucent.com>
77050
77051         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77052         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77053         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77054         getgroups.c, gethostname.c, getopt.h, group-member.c,
77055         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77056         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77057         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77058         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77059         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77060         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77061         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77062         yesno.c: Back out Copyright date changes for each file with no change
77063         this year.  This eases coordination with other programs using the same
77064         source code modules.  From Paul Eggert.
77065
77066 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77067
77068         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77069         not char, for compatibility with glibc 2.1.3 strftime.c.
77070
77071 2000-08-03  Greg McGary  <greg@mcgary.org>
77072
77073         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77074         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77075         (EXTEND_BUFFER): Use them.
77076
77077 2000-08-01  Jim Meyering  <meyering@lucent.com>
77078
77079         * lib/dirname.c (ISSLASH): Define.
77080         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77081         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77082         both `\' and `/' may be use as path separators.
77083         Based on a patch from Prashant TR.
77084
77085 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77086
77087         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77088         slot vector a constant, since it might get modified.
77089
77090 2000-07-31  Jim Meyering  <meyering@lucent.com>
77091
77092         * lib/xmalloc.c: Use `virtual memory exhausted', not
77093         `Memory exhausted'.
77094         * lib/obstack.c (print_and_abort): Likewise.
77095
77096 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77097
77098         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77099         buffer, so that the caller can always quote one small
77100         component of a "memory exhausted" message in slot 0.
77101         From a suggestion by Jim Meyering.
77102
77103 2000-07-30  Jim Meyering  <meyering@lucent.com>
77104
77105         * lib/makepath.c (make_path): Quote the other instance, too.
77106
77107         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77108         (STATIC_BUF_SIZE): Define.
77109         (quotearg_n_options): Use only statically allocated storage when
77110         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77111         than STATIC_BUF_SIZE.
77112
77113 2000-07-29  Jim Meyering  <meyering@lucent.com>
77114
77115         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77116         * lib/dirname.c (dir_name): Likewise.
77117
77118         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77119         `/'.
77120
77121         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77122         (dir_name): Assert that there are no trailing slashes.
77123
77124 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77125
77126         * lib/mbswidth.h (mbswidth): Add a flags argument.
77127         (mbswidth): New declaration.
77128         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77129         * lib/mbswidth.c (mbswidth): Add a flags argument.
77130         (mbsnwidth): New function.
77131
77132 2000-07-24  Jim Meyering  <meyering@lucent.com>
77133
77134         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77135
77136 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77137
77138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77139
77140 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77141
77142         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77143         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77144         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77145         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77146         invoke multibyte primitives.
77147
77148 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77149
77150         * lib/quotearg.c:
77151         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77152         so that mbstate_t is always defined.
77153
77154         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77155         be 1 in at least one GCC installation, and this configuration
77156         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77157         performance on hosts that have mbrtowc but have only unibyte
77158         locales, but I assume these hosts are rare.
77159
77160 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77161
77162         * lib/mbswidth.c (_XOPEN_SOURCE):
77163         Don't define; this causes problems on Solaris 7.
77164         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77165
77166 2000-07-23  Jim Meyering  <meyering@lucent.com>
77167
77168         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77169         too: getgrgid, getpwuid, getuid.
77170
77171 2000-07-23  Jim Meyering  <meyering@lucent.com>
77172
77173         * lib/basename.c (base_name): Add an assertion.
77174
77175 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77176
77177         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77178         shadow its mbsinit function.
77179
77180 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77181
77182         * lib/mbswidth.h: New file.
77183         * lib/mbswidth.c: New file.
77184         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77185         (noinst_HEADERS): Add mbswidth.h.
77186
77187 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77188
77189         * lib/config.charset: Add support for FreeBSD. Improve support for
77190         HP-UX and IRIX 6.
77191
77192 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77193
77194         * m4/mbswidth.m4: New file.
77195         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77196
77197 2000-07-15  Jim Meyering  <meyering@lucent.com>
77198
77199         * lib/makepath.c: Include quote.h.
77200         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77201         corresponding argument in a `quote (...)' call.
77202         Give better diagnostics.
77203
77204         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77205         (noinst_HEADERS): Add quote.h.
77206
77207         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77208         from tar's src/misc.c.
77209         * lib/quote.h: New file.  Prototypes for same.
77210
77211 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77212
77213         From a suggestion by Bruno Haible.
77214         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77215         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77216         to decide whether to define the BeOS workaround macro;
77217         this adjusts to the change to AC_MBSTATE_T.
77218
77219 2000-07-14  Jim Meyering  <meyering@lucent.com>
77220
77221         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77222         jm_AC_TYPE_UINTMAX_T.
77223
77224 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77225
77226         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77227
77228         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77229         quotearg_buffer_restyled): Add support for
77230         clocale_quoting_style.  Undo previous change to
77231         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77232         and "{RIGHT QUOTATION MARK}" msgids.
77233
77234 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77235
77236         From a suggestion by Bruno Haible.
77237         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77238         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77239         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77240         and mbstate_t, to a single-part test that simply defines mbstate_t.
77241         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77242         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77243
77244 2000-07-10  Jim Meyering  <meyering@lucent.com>
77245
77246         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77247
77248         * m4/gnu-source.m4: Output to confdefs.h directly.
77249         Suggestion from Akim Demaille.
77250
77251 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77252
77253         The old behavior of quoting `like this' doesn't look good with
77254         newer, ISO-style fonts.  See:
77255         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77256
77257         Instead, quote "like this" by default.  Let the translator
77258         tailor the locale-specific quoting behavior by providing
77259         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77260
77261         * lib/quotearg.c (N_): New macro.
77262         (gettext_default): New function.
77263         (quotearg_buffer_restyled): Use
77264         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77265         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77266
77267 2000-07-09  Jim Meyering  <meyering@lucent.com>
77268
77269         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77270         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77271
77272         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77274
77275 2000-07-09  Jim Meyering  <meyering@lucent.com>
77276
77277         * lib/Most files: Update copyright dates to include 2000.
77278
77279 2000-07-08  Jim Meyering  <meyering@lucent.com>
77280
77281         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77282         if not defined.
77283         (xgethostname): Remove now-unnecessary #ifdef.
77284         Move declaration of `err' into loop where it's used.
77285
77286 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77287         and Bruno Haible  <haible@clisp.cons.org>
77288
77289         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77290         only if the test for an object-type mbstate_t fails.  This
77291         prevents us from mistakenly reporting that mbstate_t is a
77292         system object type after we "#define mbstate_t int" to work
77293         around its lack.
77294
77295 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77296         and Bruno Haible  <haible@clisp.cons.org>
77297
77298         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77299
77300 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77301
77302         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77303         to strerror_r.
77304         Include <ctype.h> for use of isalpha.
77305
77306 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77307
77308         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77309         by allocating a larger buffer. Test the gethostname return value for
77310         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77311         returns an error and ENAMETOOLONG isn't defined.
77312
77313 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77314
77315         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77316         dimension.
77317
77318 2000-07-04  Jim Meyering  <meyering@lucent.com>
77319
77320         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77321         of the deprecated AC_CHECKING.
77322
77323 2000-07-04  Jim Meyering  <meyering@lucent.com>
77324
77325         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77326         Reported by Bruno Haible.
77327
77328 2000-07-04  Jim Meyering  <meyering@lucent.com>
77329
77330         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77331         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77332         lacks mbrtowc.
77333
77334 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77335
77336         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77337         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77338
77339 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77340         and Bruno Haible  <haible@clisp.cons.org>
77341
77342         * lib/quotearg.c (mbrtowc):
77343         Assign to *pwc, and return 1 only if result is nonzero.
77344         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77345
77346 2000-07-03  Jim Meyering  <meyering@lucent.com>
77347
77348         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77349
77350 2000-07-03  Jim Meyering  <meyering@lucent.com>
77351
77352         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77353         This is necessary to get a definition of e.g., UTMP_FILE on
77354         HP-UX 10.20.
77355         From Bob Proulx.
77356
77357 2000-07-02  Jim Meyering  <meyering@lucent.com>
77358
77359         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77360
77361         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77362         AC_LIBOBJ(function_name).
77363         * m4/chown.m4: Likewise.
77364         * m4/fnmatch.m4: Likewise.
77365         * m4/ftruncate.m4: Likewise.
77366         * m4/getgroups.m4: Likewise.
77367         * m4/getline.m4: Likewise.
77368         * m4/group-member.m4: Likewise.
77369         * m4/jm-macros.m4: Likewise.
77370         * m4/lstat.m4: Likewise.
77371         * m4/malloc.m4: Likewise.
77372         * m4/memcmp.m4: Likewise.
77373         * m4/nanosleep.m4: Likewise.
77374         * m4/putenv.m4: Likewise.
77375         * m4/realloc.m4: Likewise.
77376         * m4/regex.m4: Likewise.
77377         * m4/stat.m4: Likewise.
77378         * m4/strftime.m4: Likewise.
77379
77380 2000-07-02  Jim Meyering  <meyering@lucent.com>
77381
77382         * lib/quotearg.c (mbstate_t): Don't define here.
77383
77384 2000-07-02  Jim Meyering  <meyering@lucent.com>
77385
77386         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77387
77388 2000-07-01  Jim Meyering  <meyering@lucent.com>
77389
77390         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77391
77392 2000-07-01  Jim Meyering  <meyering@lucent.com>
77393
77394         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77395         problem.
77396
77397 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77398
77399         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77400         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77401
77402 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77403
77404         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77405         per change in ../m4/ls-mntd-fs.m4.
77406         (read_filesystem_list): Ignore symbolic links.
77407
77408 2000-06-29  Jim Meyering  <meyering@lucent.com>
77409
77410         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77411         for declaration of strcmp.
77412
77413         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77414
77415         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77416         Avoid warning by casting result to `char *' to remove `const'.
77417
77418 2000-06-28  Jim Meyering  <meyering@lucent.com>
77419
77420         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77421         included by quotearg.c, for which we perform this test.  From
77422         Bruno Haible.
77423
77424 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77425
77426         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77427         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77428         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77429
77430 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77431
77432         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77433
77434 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77435
77436         savedir now sets errno on failure and invokes xmalloc to get memory.
77437         Fix a couple of other minor bugs while we're at it.
77438
77439         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77440         (NAMLEN): Remove macro.
77441         (malloc, realloc): Remove decls.
77442         (stpcpy): Likewise.
77443         ("xalloc.h"): Include.
77444         (NAME_SIZE_DEFAULT): New macro.
77445         (savedir): Use xmalloc / xrealloc to allocate memory.
77446         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77447         Skip "" directory entries.
77448         Use strlen to calculate directory entry length, since the old method
77449         is rarely used these days and isn't worth supporting.
77450         Don't use a pointer after freeing it.
77451         Check for integer overflow when calculating allocation size.
77452         Use memcpy to copy entries, instead of stpcpy.
77453         Set errno properly when returning NULL.
77454         Check for readdir error.
77455
77456 2000-06-26  Jim Meyering  <meyering@lucent.com>
77457
77458         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77459
77460 2000-06-25  Jim Meyering  <meyering@lucent.com>
77461
77462         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77463         Linux header bug when _XOPEN_SOURCE is defined to 500.
77464
77465 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77466
77467         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77468         deficiency.
77469
77470 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77471
77472         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77473         Include xalloc.h.
77474         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77475
77476 2000-06-24  Jim Meyering  <meyering@lucent.com>
77477
77478         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77479         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77480         for which strerror does return char*, but which lacks a conveniently
77481         accessible declaration of the function.  If the compile-test says
77482         strerror_r doesn't work, then resort to a `run'-test that works on
77483         BeOS and segfaults on DEC Unix.
77484
77485 2000-06-24  Jim Meyering  <meyering@lucent.com>
77486
77487         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77488
77489 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77490
77491         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77492         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77493
77494 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77495
77496         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77497         (mbrtowc, mbstate_t): Define substitutes if
77498         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77499         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77500         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77501
77502 2000-06-23  Jim Meyering  <meyering@lucent.com>
77503
77504         * m4/afs.m4: Add missing AC_MSG_RESULT.
77505         Reported by Bruno Haible.
77506
77507         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77508         Suggestion from Bruno Haible.
77509
77510 2000-06-23  Jim Meyering  <meyering@lucent.com>
77511
77512         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77513
77514 2000-06-21  Jim Meyering  <meyering@lucent.com>
77515
77516         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77517
77518 2000-06-21  Jim Meyering  <meyering@lucent.com>
77519
77520         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77521         (noinst_HEADERS): Add getstr.h.
77522
77523         * lib/getline.c (getstr): Move into a separate file.
77524         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77525         the following changes: new parameter, delim2; both delim[12]
77526         parameters have type `int', not `char'.  The latter would lose
77527         with 8-bit delimiters.
77528         * lib/getstr.h: New file.
77529
77530 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77531
77532         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77533         than 1024, return a memory chunk of least possible size, instead
77534         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77535         Use free/xmalloc instead of xrealloc to avoid copying for very long
77536         paths.
77537
77538 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77539
77540         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77541         the empty string.
77542
77543 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77544
77545         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77546         address, not strdup.  Include <stdlib.h> and don't declare free().
77547
77548 2000-06-19  Jim Meyering  <meyering@lucent.com>
77549
77550         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77551
77552 2000-06-18  Jim Meyering  <meyering@lucent.com>
77553
77554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77555
77556         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77557         `checking whether...' message to be consistent with that of the
77558         lstat test.
77559
77560 2000-06-18  Jim Meyering  <meyering@lucent.com>
77561
77562         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77563         Besides, these days every porting target provides a mkdir function.
77564
77565         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77566         needed. (this snippet comes from src/system.h).
77567
77568 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77569
77570         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77571
77572 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77573
77574         * lib/human.c (adjust_value): New function.
77575         (human_readable_inexact): Apply rounding style even when
77576         printing approximate values.
77577
77578 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77579
77580         * lib/human.c (human_readable_inexact): Allow an input block
77581         size that is not a multiple of the output block size, and vice versa.
77582         Reported by Piergiorgio Sartor.
77583
77584 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77585
77586         * lib/getdate.y (get_date): Apply relative times after time
77587         zone indicator, not before.  Reported by Todd A. Jacobs.
77588
77589 2000-06-13  Jim Meyering  <meyering@lucent.com>
77590
77591         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77592
77593         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77594
77595 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77596
77597         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77598
77599 2000-06-12  Jim Meyering  <meyering@lucent.com>
77600
77601         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77602         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77603         optional argument.
77604         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77605         the optional argument, `lib'.
77606
77607 2000-06-08  Jim Meyering  <meyering@lucent.com>
77608
77609         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77610
77611 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77612
77613         Rewrite largefile configuration so that we don't need to run
77614         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77615         AC_CANONICAL_HOST in configure.in -- jmm]
77616
77617         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77618         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77619         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77620         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77621         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77622         All uses changed.
77623         Instead of inspecting the output of getconf, try to compile the
77624         test program without and with the macro definition.
77625         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77626         for getconf.  Instead, check for the needed flags by compiling
77627         test programs.
77628
77629 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77630
77631         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77632
77633 2000-06-04  Jim Meyering  <meyering@lucent.com>
77634
77635         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77636         SunOS 4.1.4 for which gid_t is an unsigned type.
77637
77638 2000-06-03  Jim Meyering  <meyering@lucent.com>
77639
77640         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77641         now that autoconf requires that.
77642
77643         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77644         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77645         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77646
77647 2000-06-03  Jim Meyering  <meyering@lucent.com>
77648
77649         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77650
77651 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77652
77653         * m4/glibc21.m4: New file.
77654         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77655
77656 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77657
77658         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77659         newer, don't install charset.alias.
77660         * lib/config.charset: Change the Linux/glibc rules so they become empty
77661         on glibc-2.1 or newer.
77662
77663 2000-06-02  Jim Meyering  <meyering@lucent.com>
77664
77665         * lib/mountlist.c: Back out last change.  Instead, do this...
77666         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77667         me_dummy member using the same `ignore'-testing code.
77668         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77669         fs_type strings.
77670         From Mark D. Roth.
77671
77672 2000-05-29  Jim Meyering  <meyering@lucent.com>
77673
77674         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77675         mounts with the `ignore' attribute.  Based on a patch from
77676         Mark D. Roth.
77677
77678 2000-05-28  Jim Meyering  <meyering@lucent.com>
77679
77680         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77681         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77682         * m4/stat.m4: Likewise.
77683         * m4/lstat.m4: Likewise.
77684         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77685
77686         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77687         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77688
77689 2000-05-26  Jim Meyering  <meyering@lucent.com>
77690
77691         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77692
77693 2000-05-24  Jim Meyering  <meyering@lucent.com>
77694
77695         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77696         autoconf requires that.
77697         * m4/lib-check.m4: Likewise.
77698         * m4/jm-macros.m4: Likewise.
77699         * m4/strftime.m4: Likewise.
77700
77701         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77702         AC_CHECK_DECLS, now that autoconf requires that.
77703
77704 2000-05-22  Jim Meyering  <meyering@lucent.com>
77705
77706         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77707         * m4/lstat.m4: Likewise.
77708
77709 2000-05-22  Jim Meyering  <meyering@lucent.com>
77710
77711         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77712
77713 2000-05-20  Jim Meyering  <meyering@lucent.com>
77714
77715         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77716         (jm_PREREQ): Use it.
77717
77718 2000-05-18  Jim Meyering  <meyering@lucent.com>
77719
77720         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77721         back, too, since it may have been modified by allocate_entry.
77722         (hash_delete): Rewrite to use neither the assignment operator
77723         nor the comma operator in an if-expression.
77724
77725 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77726
77727         * lib/closeout.c:
77728         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77729         Remove; no longer needed.
77730         "quotearg.h": Add include.
77731         (file_name): Do not bother to explicitly initialize to NULL; it's less
77732         efficient on some hosts.
77733         (close_stdout_status): Remove test as to whether stdout was already
77734         closed; it breaks for the case "echo x | sort >&-".
77735         Quote file name colons.
77736         Do not assume that _("write error") lacks format strings.
77737
77738 2000-05-15  Jim Meyering  <meyering@lucent.com>
77739
77740         * lib/version-etc.c (version_etc_copyright): Update the copyright
77741         string used in all --version output.
77742
77743 2000-05-14  Jim Meyering  <meyering@lucent.com>
77744
77745         * lib/closeout.c (close_stdout_set_file_name): New function.
77746         (close_stdout_status): Use new file-scoped global.
77747         Return right away if fstat says the stdout file descriptor is invalid.
77748         * lib/closeout.h (close_stdout_set_file_name): Declare.
77749
77750 2000-05-10  Jim Meyering  <meyering@lucent.com>
77751
77752         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77753         (close_stdout_set_status): New function.
77754         * lib/closeout.h (close_stdout_set_status): Declare.
77755
77756 2000-05-09  Jim Meyering  <meyering@lucent.com>
77757
77758         * m4/gettext.m4: Rename this...
77759         * m4/libintl.m4: ...to this.
77760
77761 2000-05-08  Jim Meyering  <meyering@lucent.com>
77762
77763         * lib/long-options.c: Don't include closeout.h.
77764         (parse_long_options): Don't call close_stdout for --version.
77765
77766 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77767
77768         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77769         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77770         2.1.3 bug.  This avoids a clash when files like regex.c define
77771         _GNU_SOURCE.
77772
77773 2000-05-06  Jim Meyering  <meyering@lucent.com>
77774
77775         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77776         (AC_REPLACE_FUNCS): Add strnlen.
77777
77778         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77779         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77780
77781         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77782         AC_SEARCH_LIBS call for nanosleep.
77783         (LIB_NANOSLEEP): Set and AC_SUBST.
77784
77785 2000-05-06  Jim Meyering  <meyering@lucent.com>
77786
77787         * lib/strnlen.c: Undefine __strnlen and strnlen.
77788         [!weak_alias]: Define __strnlen to strnlen.
77789
77790         * lib/atexit.c: New file, from libiberty.
77791
77792 2000-05-06  Jim Meyering  <meyering@lucent.com>
77793
77794         * lib/closeout.c (close_stdout_status): Also check for errors on the
77795         stderr stream.
77796
77797 2000-05-05  Jim Meyering  <meyering@lucent.com>
77798
77799         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77800         AC_SEARCH_LIBS call for clock_gettime.
77801         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77802
77803         * m4/search-libs.m4: Update from autoconf.
77804
77805         su doesn't work on Solaris 2.6.
77806         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77807         <shadow.h>.  Reported by Dragos Harabor.
77808
77809 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77810
77811         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77812         memcpy instead of xmalloc, xrealloc, path_concat.
77813         (locale_charset): Treat empty environment variables as absent.
77814         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77815
77816 2000-05-04  Jim Meyering  <meyering@lucent.com>
77817
77818         * lib/getopt.c: Update from glibc.
77819         * lib/obstack.c: Likewise.
77820         * lib/obstack.h: Likewise.
77821         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77822         file
77823
77824         * lib/regex.h: Likewise.
77825         * lib/strndup.c: Likewise.
77826         * lib/strnlen.c: New file, from glibc.
77827
77828 2000-05-03  Jim Meyering  <meyering@lucent.com>
77829
77830         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77831
77832 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77833
77834         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77835         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77836         compile-time test, rather than inspecting host and OS, to
77837         decide whether to define _LARGEFILE_SOURCE.
77838
77839 2000-05-01  Jim Meyering  <meyering@lucent.com>
77840
77841         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77842
77843         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77844         Based on a patch from Bruno Haible.
77845
77846 2000-05-01  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77849
77850 2000-04-29  Jim Meyering  <meyering@lucent.com>
77851
77852         * lib/path-concat.c: Declare strdup only if it's not defined.
77853         * lib/canon-host.c: Likewise.
77854
77855 2000-04-28  Jim Meyering  <meyering@lucent.com>
77856
77857         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77858         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77859         is included first, then limits.h is included by locale.h by libintl.h.
77860         From John David Anglin.
77861
77862 2000-04-25  Jim Meyering  <meyering@lucent.com>
77863
77864         * lib/makepath.c (S_IRWXUGO): Define.
77865         (make_path): Always perform explicit chmod if MODE specifies any
77866         of the `special' permission bits.  Prompted by a bug report against
77867         install from Mate Wierdl and Joost van Baal.
77868
77869 2000-04-18  Jim Meyering  <meyering@lucent.com>
77870
77871         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77872         (jm_PREREQ): Use it.
77873
77874 2000-04-18  Jim Meyering  <meyering@lucent.com>
77875
77876         * lib/README: New file.
77877
77878         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77879         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77880
77881 2000-04-17  Jim Meyering  <meyering@lucent.com>
77882
77883         Get it right :-)
77884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77885         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77886         Suggestion from Akim Demaille.
77887
77888 2000-04-17  Jim Meyering  <meyering@lucent.com>
77889
77890         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77891         the definition of it to rpl_strftime also defined-away the system's
77892         declaration.
77893
77894 2000-04-15  Jim Meyering  <meyering@lucent.com>
77895
77896         Use `C' to denote so-called `contiguous' files, the same way
77897         that tar does.
77898         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77899         (ftypelet): Use S_ISCTG.
77900         From Michael Deutschmann.
77901
77902 2000-04-14  Jim Meyering  <meyering@lucent.com>
77903
77904         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77905         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77906         clobbered.
77907
77908 2000-04-14  Jim Meyering  <meyering@lucent.com>
77909
77910         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77911
77912 2000-04-13  Jim Meyering  <meyering@lucent.com>
77913
77914         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77915         AH_VERBATIM to insert required #ifndef into config.h.in.
77916         Suggestion from Akim Demaille.
77917
77918 2000-04-12  Jim Meyering  <meyering@lucent.com>
77919
77920         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77921         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77922         Christian Krackowizer.
77923
77924         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77925         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77926         (AC_SYS_LARGEFILE): Require.
77927         (AM_C_PROTOTYPES): Require.
77928
77929 2000-04-08  Jim Meyering  <meyering@lucent.com>
77930
77931         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77932         names don't conflict.  Reported by Eli Zaretskii.
77933
77934 2000-04-07  Jim Meyering  <meyering@lucent.com>
77935
77936         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77937         sys/types.h, to work around system header problems on AIX 3.2.5.
77938         From Bruno Haible.
77939
77940 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77941
77942         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77943         bug.  Deal with the different error behavior of Irix iconv.
77944
77945 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77946
77947         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77948         IRIX if the installer said otherwise.
77949
77950 2000-04-05  Jim Meyering  <meyering@lucent.com>
77951
77952         Portability tweaks required for ultrix4.3.
77953         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77954         (jm_CHECK_DECLS): Add getutent to the list of functions.
77955         (_jm_DECL_HEADERS): Add utmpx.h.
77956         From John David Anglin.
77957
77958         * m4/strftime.m4: Back out the 2000-04-02 change.
77959         Instead of that change, simply undefine putenv in the test program.
77960
77961 2000-04-05  Jim Meyering  <meyering@lucent.com>
77962
77963         Portability tweaks required for ultrix4.3.
77964         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77965         getutent.
77966         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77967         * lib/canon-host.c: Declare strdup.
77968         * lib/path-concat.c: Likewise.
77969         From John David Anglin.
77970
77971 2000-04-04  Jim Meyering  <meyering@lucent.com>
77972
77973         Be more DOS 8.3-friendly.
77974         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77975         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77976         * lib/Makefile.am: Reflect renaming.
77977         Reported by Eli Zaretskii.
77978
77979         Use a temporary file name that won't clash with `charset.alias'
77980         in the DOS 8.3 name space.
77981         * lib/Makefile.am (charset_tmp): Define.
77982         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77983         (uninstall-local): Likewise.
77984         Reported by Eli Zaretskii.
77985
77986 2000-04-03  Jim Meyering  <meyering@lucent.com>
77987
77988         * m4/gettext.m4: Fix typo in comment.
77989
77990         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77991         textutils/configure.in).  Suggestion from Paul Eggert.
77992         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77993
77994 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77995
77996         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77997         variable in the shell rather than using putenv, which isn't
77998         portable.  This avoids the configure-time inter-test dependency
77999         on the potentially-renamed putenv function.
78000
78001 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78002
78003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78004         before checking struct stat.st_blksize, so that
78005         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78006
78007 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78008
78009         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78010         since strftime.c uses HAVE_STRFTIME to decide whether to use
78011         the underlying strftime.
78012
78013 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78014
78015         * lib/time/strftime.c (my_strftime): Make sure we call the system
78016         strftime, not ourselves, when invoking the underlying strftime.
78017
78018 2000-03-24  Jim Meyering  <meyering@lucent.com>
78019
78020         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78021         (charset_alias): Define.
78022         (install-exec-local): Factor out common code.
78023         (uninstall-local): Split lines longer than 80.
78024         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78025         (SUFFIXES): Define.
78026         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78027         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78028
78029 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78030
78031         * lib/config.charset: Output a line containing "Packages using this
78032         file".
78033         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78034         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78035         ref-del.sed): New rules.
78036
78037 2000-03-17  Jim Meyering  <meyering@lucent.com>
78038
78039         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78040         Otherwise, include <strings.h>
78041
78042 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78043
78044         * lib/unicodeio.c (utf8_wctomb): New function.
78045         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78046         format instead of in UCS-4 with platform dependent endianness.
78047
78048 2000-03-10  Jim Meyering  <meyering@lucent.com>
78049
78050         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78051         From Marco Franzen.
78052
78053 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78054
78055         * lib/savedir.c (savedir): Work even if directory size is
78056         negative; this can happen with some screwy NFS configurations.
78057
78058 2000-03-06  Jim Meyering  <meyering@lucent.com>
78059
78060         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78061         if it's NULL (because we ran out of memory).  From Bruno Haible.
78062
78063 2000-03-05  Jim Meyering  <meyering@lucent.com>
78064
78065         * lib/localcharset.c ("path-concat.h"): Include.
78066         (get_charset_aliases): Use path_concat instead of ANSI string
78067         concatenation.
78068
78069         * lib/unicodeio.h (PARAMS): Define.
78070         Use it to guard prototype.
78071
78072 2000-03-04  Jim Meyering  <meyering@lucent.com>
78073
78074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78075         for lib/localcharset.c.
78076
78077 2000-03-04  Jim Meyering  <meyering@lucent.com>
78078
78079         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78080         installing into it.
78081         (uninstall-local): Uncomment this rule so `make distcheck' works
78082         once again.
78083
78084         * lib/unicodeio.c (<errno.h>): Include it.
78085         (errno): Declare if not defined.
78086
78087         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78088
78089         * lib/config.charset: New version, incorporating remarks from a linux
78090         i18n mailing list.  From Bruno Haible.
78091
78092 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78093
78094         * m4/codeset.m4: New file.
78095         * m4/iconv.m4: New file.
78096         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78097
78098 2000-03-03  Jim Meyering  <meyering@lucent.com>
78099
78100         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78101
78102 2000-03-02  Jim Meyering  <meyering@lucent.com>
78103
78104         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78105         the messages come out on separate lines.
78106
78107         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78108         rather than jm_CHECK_DECLARATIONS.
78109         * m4/decl.m4: Remove now-unused file.
78110
78111         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78112         geteuid.
78113
78114 2000-03-02  Jim Meyering  <meyering@lucent.com>
78115
78116         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78117
78118 2000-03-01  Jim Meyering  <meyering@lucent.com>
78119
78120         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78121         * lib/unicodeio.c: Likewise.
78122
78123 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78124
78125         * lib/config.charset: New file.
78126         * lib/localcharset.c: New file.
78127         * lib/unicodeio.h, lib/unicodeio.c: New files.
78128         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78129         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78130         (noinst_HEADERS): Add unicodeio.h.
78131         (all-local, install-exec-local, charset.alias): New targets.
78132
78133 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78134
78135         * lib/quotearg.c (ALERT_CHAR): New macro.
78136         (quotearg_buffer_restyled): Use it.
78137
78138 2000-02-27  Jim Meyering  <meyering@lucent.com>
78139
78140         * m4/check-decl.m4: Add getenv to the list.
78141
78142 2000-02-27  Jim Meyering  <meyering@lucent.com>
78143
78144         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78145         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78146
78147         * lib/backupfile.c: Guard inclusion of stdlib.h with
78148         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78149         Declare malloc if needed.
78150
78151         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78152         `#ifndef HAVE_DECL..'
78153         now that autoconf always defines the HAVE_DECL_ symbols.
78154         * lib/human.c: Likewise.
78155         * lib/same.c: Likewise.
78156         * lib/strtoumax.c: Likewise.
78157
78158         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78159         declaration check was not run.
78160         * lib/hash.c: Likewise.
78161         * lib/human.c: Likewise.
78162         * lib/same.c: Likewise.
78163         * lib/strtoumax.c: Likewise.
78164
78165         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78166         `.', then first look up the entire `.'-containing string as a login
78167         name.
78168
78169 2000-02-23  Jim Meyering  <meyering@lucent.com>
78170
78171         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78172         in place of my hack.
78173
78174 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78175
78176         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78177         (textint): New typedef.
78178         (parser_control): Member year changed from int to textint.
78179         All uses changed.
78180         (YYSTYPE): Removed; replaced by %union with int and textint members.
78181         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78182         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78183         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78184         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78185         (date, number, to_year): Use width of number in digits, not its value,
78186         to determine whether it's a 2-digit year, or a 2-digit time.
78187         (yylex): Store number of digits of numeric tokens.
78188         Reported by John Kendall.
78189
78190         (parser_control): Changed from struct parser_control to typedef (for
78191         consistency).  All uses changed.
78192
78193         (tID): Removed; not used.
78194         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78195
78196 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78197
78198         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78199         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78200
78201 2000-02-12  Jim Meyering  <meyering@lucent.com>
78202
78203         * lib/userspec.c (ISDIGIT): Define it.
78204         (isdigit): Remove definition.
78205         (is_number): Use ISDIGIT, not isdigit.
78206         <libintl.h>: Include.
78207         (_ and N_): Define.
78208         (parse_user_spec): Mark translatable strings.
78209
78210 2000-02-10  Jim Meyering  <meyering@lucent.com>
78211
78212         With these changes, nanosleep.[ch] are finally enough like the other
78213         lib/* replacement files to compile on a few more losing systems.
78214
78215         * lib/nanosleep.h: Don't include config.h.
78216         Remove prototype from declaration of nanosleep.
78217         (PARAMS): Remove now-unneeded definition.
78218         * lib/nanosleep.c: #undef nanosleep.
78219         (rpl_nanosleep): Rename from nanosleep.
78220
78221 2000-02-10  Jim Meyering  <meyering@lucent.com>
78222
78223         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78224         gnu_nanosleep to rpl_nanosleep.
78225
78226 2000-02-09  Jim Meyering  <meyering@lucent.com>
78227
78228         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78229         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78230
78231 2000-02-08  Akim Demaille  <akim@epita.fr>
78232
78233         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78234         `[' and `]' and remove uses of `changequote'.
78235         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78236         (AC_SYS_LARGEFILE): Likewise.
78237         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78238         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78239         of changequote.
78240         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78241         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78242         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78243         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78244
78245 2000-02-05  Jim Meyering  <meyering@lucent.com>
78246
78247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78248         Remove explicit use of AC_HEADER_TIME.  It is required by
78249         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78250         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78251         in autoconf whereby the expansion of the latter ended up preceding
78252         the expansion of its prerequisite, AC_HEADER_TIME.
78253         Reported by Volker Borchert.
78254
78255 2000-02-03  Jim Meyering  <meyering@lucent.com>
78256
78257         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78258
78259 2000-02-03  Jim Meyering  <meyering@lucent.com>
78260
78261         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78262         rather than with `#if HAVE_UTMPNAME'.
78263
78264 2000-02-02  Jim Meyering  <meyering@lucent.com>
78265
78266         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78267         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78268         Reported by Eli Zaretskii.
78269
78270 2000-02-01  Jim Meyering  <meyering@lucent.com>
78271
78272         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78273
78274 2000-01-31  Jim Meyering  <meyering@lucent.com>
78275
78276         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78277         functions.  Add the time.h and sys/time.h headers along with the
78278         AC_REQUIRE'ment of AC_HEADER_TIME.
78279
78280 2000-01-31  Jim Meyering  <meyering@lucent.com>
78281
78282         * lib/nanosleep.h (nanosleep): Guard declaration with
78283         `#if ! HAVE_DECL_NANOSLEEP'.
78284         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78285         the declaration in that vendor's sys/timers.h.
78286         Reported by Christian Krackowizer.
78287
78288         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78289         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78290         (ISPRINT): Likewise.
78291         Reported by Tom Tromey.
78292
78293 2000-01-30  Jim Meyering  <meyering@lucent.com>
78294
78295         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78296
78297         * m4/prereq.m4 (utmp_includes): Define.
78298         Check for ut_user and ut_name members in both struct utmpx
78299         and struct utmp.
78300
78301 2000-01-30  Jim Meyering  <meyering@lucent.com>
78302
78303         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78304         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78305         header files where only utmpx.ut_user is declared.
78306
78307         * lib/readutmp.h (UT_USER): Define.
78308
78309 2000-01-29  Jim Meyering  <meyering@lucent.com>
78310
78311         * m4/lib-check.m4: New file containing library-related checks from
78312         fileutils and sh-utils (textutils had none).
78313
78314 2000-01-28  Jim Meyering  <meyering@lucent.com>
78315
78316         * m4/perl.m4: Change format of warning message to look more like that
78317         from the missing script.  Suggestion from François Pinard.
78318
78319 2000-01-25  Jim Meyering  <meyering@lucent.com>
78320
78321         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78322         well as time.h in the compile check.
78323         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78324         Fix typo in cross-compiling case: s/yes/no/.
78325
78326 2000-01-23  Jim Meyering  <meyering@lucent.com>
78327
78328         * m4/jm-macros.m4: Move df-related tests here from
78329         fileutils/configure.in
78330
78331         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78332         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78333
78334         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78335         s/space/ac_fsusage_space/.
78336         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78337
78338         * m4/ftruncate.m4: New file (derived from part of
78339         fileutils/configure.in).
78340         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78341         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78342
78343         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78344         AC_SUBST these here, rather than just in sh-util/configure.in, so
78345         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78346         all the same.
78347         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78348         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78349         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78350         (AC_SUBST(POW_LIBM)): Likewise.
78351         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78352
78353 2000-01-23  Jim Meyering  <meyering@lucent.com>
78354
78355         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78356         obstack.c.
78357
78358 2000-01-22  Jim Meyering  <meyering@lucent.com>
78359
78360         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78361
78362         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78363
78364         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78365         configure.in
78366         (AC_CHECK_HEADERS): Likewise for sh-utils.
78367         (AC_CHECK_HEADERS): Likewise for textutils.
78368         Merge the three lists of headers.
78369
78370         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78371         from fileutils' configure.in.
78372
78373         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78374         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78375         check-decl.m4.
78376
78377         * m4/check-decl.m4: Use #if rather than #ifdef.
78378         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78379         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78380         (_jm_DECL_HEADERS): Define new function.
78381         (jm_CHECK_DECLARATIONS): Require it.
78382
78383 2000-01-22  Jim Meyering  <meyering@lucent.com>
78384
78385         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78386         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78387         Required for some AIX systems.  Reported by Christian Krackowizer.
78388         [TESTING] (main): New function.
78389
78390         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78391         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78392         letters.
78393
78394         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78395         iswprint.
78396
78397         * lib/strverscmp.c (ISDIGIT): Define.
78398         (strverscmp): Use ISDIGIT, not isdigit.
78399
78400 2000-01-19  Jim Meyering  <meyering@lucent.com>
78401
78402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78403         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78404         defines `struct timespec' in <sys/time.h>
78405
78406         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78407         Thanks to Akim for explaining.
78408
78409 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78410
78411         * lib/nanosleep.c (nanosleep):
78412         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78413         POSIX.1 doesn't require SA_INTERRUPT and some systems
78414         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78415         it's been part of POSIX.1 since day 1 (in 1988).
78416
78417 2000-01-17  Jim Meyering  <meyering@lucent.com>
78418
78419         * lib/interlock: Remove unused file.  Reported by François Pinard.
78420
78421 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78422
78423         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78424         alert, backslash, formfeed, and vertical tab unnecessarily in
78425         shell quoting style.
78426
78427 2000-01-16  Jim Meyering  <meyering@lucent.com>
78428
78429         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78430         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78431         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78432         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78433
78434 2000-01-16  Jim Meyering  <meyering@lucent.com>
78435
78436         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78437         because the latter didn't work.
78438
78439 2000-01-15  Jim Meyering  <meyering@lucent.com>
78440
78441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78442         (AC_REPLACE_FUNCS): Add memcpy and memset.
78443         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78444         Add strpbrk.
78445         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78446
78447 2000-01-12  Jim Meyering  <meyering@lucent.com>
78448
78449         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78450         (jm_PREREQ): Use it.
78451         (jm_PREREQ_READUTMP): New macro.
78452         (jm_PREREQ): Use it.
78453
78454 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78455
78456         Quote multibyte characters correctly.
78457         * m4/c-bs-a.m4: New file.
78458         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78459         (jm_PREREQ): Use it.
78460
78461 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78462
78463         * m4/uintmax_t.m4: Port to autoconf 2.13.
78464
78465 2000-01-08  Jim Meyering  <meyering@ascend.com>
78466
78467         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78468         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78469
78470 2000-01-04  Jim Meyering  <meyering@ascend.com>
78471
78472         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78473         jm_STRUCT_DIRENT_D_TYPE.
78474         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78475         jm_STRUCT_DIRENT_D_INO.
78476         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78477         jm_STRUCT_UTIMBUF.
78478         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78479         renamings.
78480         * m4/utime.m4: Likewise.
78481
78482         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78483         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78484
78485 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78486
78487         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78488         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78489
78490 2000-01-02  Jim Meyering  <meyering@ascend.com>
78491
78492         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78493         remember if this is necessary.
78494
78495 1999-12-26  Jim Meyering  <meyering@ascend.com>
78496
78497         * m4/jm-macros.m4: Use it here.
78498         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78499
78500 1999-12-23  Jim Meyering  <meyering@ascend.com>
78501
78502         * m4/jm-macros.m4: Check for clock_gettime (moved from
78503         fileutils/configure.in)
78504         Check for gettimeofday.
78505
78506 1999-12-20  Jim Meyering  <meyering@ascend.com>
78507
78508         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78509         autoconf-2.14a-1999-12-20.
78510
78511 1999-12-19  Jim Meyering  <meyering@ascend.com>
78512
78513         * m4/lstat-slash.m4: New file.
78514         * m4/jm-macros.m4: Use the new macro:
78515         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78516
78517 1999-12-07  Jim Meyering  <meyering@ascend.com>
78518
78519         * m4/perl.m4: Require that File::Compare be available, too.
78520         Too many systems seem to lack it.
78521
78522         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78523         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78524
78525 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78526
78527         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78528         problem with the QNX 4.25 shell, which doesn't propagate exit
78529         status of failed commands inside shell assignments.
78530
78531 1999-11-17  Jim Meyering  <meyering@ascend.com>
78532
78533         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78534
78535 1999-11-07  Jim Meyering  <meyering@ascend.com>
78536
78537         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78538
78539 1999-11-06  Jim Meyering  <meyering@ascend.com>
78540
78541         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78542         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78543
78544 1999-11-05  Jim Meyering  <meyering@ascend.com>
78545
78546         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78547         configure.in of textutils, fileutils, and sh-utils into this one
78548         (shared between those packages) file.
78549         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78550         AC_STRUCT_ST_BLKSIZE.
78551
78552 1999-11-03  Jim Meyering  <meyering@ascend.com>
78553
78554         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78555         of AC_CHECK_TYPE checks includes unistd.h.
78556         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78557         Suggestion from Akim Demaille.
78558
78559 1999-10-30  Jim Meyering  <meyering@ascend.com>
78560
78561         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78562         m4-quoted string.
78563         * m4/ls-mntd-fs.m4: Likewise.
78564         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78565         * m4/jm-winsz1.m4: Likewise.
78566
78567         * m4/const.m4: Remove file, since the fix made it into the experimental
78568         version of autoconf.
78569         * m4/mktime.m4: Likewise.
78570
78571         * m4/check-type.m4: Remove file, now that the latest version of
78572         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78573
78574         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78575         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78576         AC_CHECK_TYPE.
78577
78578 1999-10-04  Jim Meyering  <meyering@ascend.com>
78579
78580         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78581
78582 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78583
78584         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78585         2.95.1 bug with HP-UX 10.20.
78586
78587 1999-09-17  Jim Meyering  <meyering@ascend.com>
78588
78589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78590         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78591         due to missing strdup (against sh-utils-2.0).
78592
78593 1999-08-29  Jim Meyering  <meyering@ascend.com>
78594
78595         * m4/jm-macros.m4: Require jm_BISON.
78596         * m4/bison.m4: New file.
78597
78598 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78599
78600         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78601         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78602
78603 1999-08-05  Jim Meyering  <meyering@ascend.com>
78604
78605         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78606         to avoid conflicts with `conftest' on 8+3 filesystems.
78607         Suggestion from Eli Zaretskii.
78608
78609 1999-08-04  Jim Meyering  <meyering@ascend.com>
78610
78611         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78612         fileutils and sh-utils (textutils's getline test was inadequate).
78613         (AM_FUNC_GETLINE): Run this test.
78614         (AC_CHECK_FUNCS): Check for getdelim.
78615         Reported by Bob Proulx.
78616
78617 1999-08-02  Jim Meyering  <meyering@ascend.com>
78618
78619         * m4/jm-macros.m4: Add a comment.
78620
78621 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78622
78623         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78624         <inttypes.h> defines strtoumax as a macro (and not as a
78625         function).
78626
78627 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78628
78629         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78630         that we can shift, multiply and divide unsigned long long
78631         values; Ultrix cc can't do it.
78632
78633 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78634
78635         * m4/mktime.m4: New file, which is a preview of what should appear
78636         in the next public autoconf release.
78637
78638 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78639
78640         * m4/lfs.m4: Remove this file.
78641         * m4/largefile.m4: New file.  It contains the old contents of
78642         lfs.m4, except that all names with prefix AC_LFS have been
78643         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78644         compatible with future autoconf versions.  Also, some minor m4
78645         quoting problems have been fixed.
78646
78647 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78648
78649         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78650         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78651         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78652         and simplify the shell code.
78653
78654 1999-08-01  Jim Meyering  <meyering@ascend.com>
78655
78656         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78657         m4.
78658
78659 1999-07-20  Jim Meyering  <meyering@ascend.com>
78660
78661         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78662
78663 1999-07-15  Jim Meyering  <meyering@ascend.com>
78664
78665         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78666
78667 1999-05-22  Jim Meyering  <meyering@ascend.com>
78668
78669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78670
78671 1999-05-20  Jim Meyering  <meyering@ascend.com>
78672
78673         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78674         Add a colon after each `then' in case $4 is empty.
78675
78676 1999-05-16  Jim Meyering  <meyering@ascend.com>
78677
78678         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78679
78680 1999-05-10  Jim Meyering  <meyering@ascend.com>
78681
78682         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78683
78684         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78685         AC_FUNC_MKTIME.
78686
78687 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78688
78689         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78690
78691 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78692
78693         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78694         not CPPFLAGS, so that linking works correctly in IRIX.
78695
78696 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78697
78698         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78699
78700 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78701
78702         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78703         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78704         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78705         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78706         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78707
78708         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78709
78710 1999-04-20  Jim Meyering  <meyering@ascend.com>
78711
78712         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78713         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78714         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78715
78716 1999-04-18  Jim Meyering  <meyering@ascend.com>
78717
78718         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78719         * m4/jm-macros.m4: Use it.
78720
78721 1999-04-06  Jim Meyering  <meyering@ascend.com>
78722
78723         * m4/strftime.m4: Remove test for %f.
78724
78725 1999-03-29  Jim Meyering  <meyering@ascend.com>
78726
78727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78728         superset of the AC_TYPE_* checks in the textutils, fileutils,
78729         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78730         AC_TYPE_PID_T.
78731
78732 1999-03-28  Jim Meyering  <meyering@ascend.com>
78733
78734         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78735         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78736         replaced e.g., in the *.sh files of the sh-utils.
78737
78738 1999-03-20  Jim Meyering  <meyering@ascend.com>
78739
78740         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78741         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78742         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78743
78744 1999-03-19  Jim Meyering  <meyering@ascend.com>
78745
78746         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78747
78748 1999-03-12  Jim Meyering  <meyering@ascend.com>
78749
78750         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78751
78752 1999-03-07  Jim Meyering  <meyering@ascend.com>
78753
78754         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78755         declared.
78756
78757 1999-02-17  Jim Meyering  <meyering@ascend.com>
78758
78759         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78760         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78761
78762 1999-02-07  Jim Meyering  <meyering@ascend.com>
78763
78764         * m4/group-member.m4: New file -- extracted from sh-utils'
78765         configure.in.
78766
78767         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78768         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78769
78770 1999-02-06  Jim Meyering  <meyering@ascend.com>
78771
78772         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78773         * m4/fnmatch.m4: Likewise.
78774         * m4/getgroups.m4: Likewise.
78775         * m4/lstat.m4: Likewise.
78776         * m4/malloc.m4: Likewise.
78777         * m4/putenv.m4: Likewise.
78778         * m4/realloc.m4: Likewise.
78779         * m4/regex.m4: Likewise.
78780         * m4/stat.m4: Likewise.
78781         * m4/strftime.m4: Likewise.
78782         Suggestion from Alain Magloire.
78783
78784         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78785         * m4/fnmatch.m4: Likewise.
78786         * m4/getgroups.m4: Likewise.
78787         * m4/getline.m4: Likewise.
78788         * m4/lstat.m4: Likewise.
78789         * m4/malloc.m4: Likewise.
78790         * m4/memcmp.m4: Likewise.
78791         * m4/putenv.m4: Likewise.
78792         * m4/realloc.m4: Likewise.
78793         * m4/regex.m4: Likewise.
78794         * m4/stat.m4: Likewise.
78795         * m4/strftime.m4: Likewise.
78796         Suggestion from Alain Magloire.
78797
78798         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78799         an argument.
78800
78801         * m4/regex.m4: Add a run-time Test for proper operation of
78802         re_compile_pattern.
78803
78804 1999-01-31  Jim Meyering  <meyering@ascend.com>
78805
78806         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78807
78808 1999-01-30  Jim Meyering  <meyering@ascend.com>
78809
78810         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78811
78812         * m4/jm-mktime.m4: Make this a wrapper around the official
78813         AM_FUNC_MKTIME rather than my private copy, now that the official one
78814         is up to date.
78815         * m4/mktime.m4: Remove file.
78816
78817         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78818         * m4/uptime.m4: Likewise.
78819         * m4/uintmax_t.m4: Likewise.
78820
78821 1999-01-28  Jim Meyering  <meyering@ascend.com>
78822
78823         * m4/jm-macros.m4: Use jm_AFS.
78824         * m4/afs.m4: New file (from fileutils' configure.in).
78825
78826         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78827         * m4/chown.m4: Likewise.
78828         * m4/d-ino.m4: Likewise.
78829         * m4/d-type.m4: Likewise.
78830         * m4/fnmatch.m4: Likewise.
78831         * m4/getgroups.m4: Likewise.
78832         * m4/gettext.m4: Likewise.
78833         * m4/jm-mktime.m4: Likewise.
78834         * m4/jm-winsz2.m4: Likewise.
78835         * m4/lcmessage.m4: Likewise.
78836         * m4/ls-mntd-fs.m4: Likewise.
78837         * m4/malloc.m4: Likewise.
78838         * m4/memcmp.m4: Likewise.
78839         * m4/putenv.m4: Likewise.
78840         * m4/realloc.m4: Likewise.
78841         * m4/st_mtim.m4: Likewise.
78842         * m4/strftime.m4: Likewise.
78843
78844 1999-01-16  Jim Meyering  <meyering@ascend.com>
78845
78846         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78847         (ARGMATCH_DIE_DECL): Define.
78848
78849 1999-01-12  Jim Meyering  <meyering@ascend.com>
78850
78851         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78852         Reported by Lars Hecking.
78853
78854 1999-01-10  Jim Meyering  <meyering@ascend.com>
78855
78856         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78857         gross kludge.
78858         * m4/inttypes_h.m4: Likewise.
78859         * m4/lstat.m4: Likewise.
78860         * m4/malloc.m4: Likewise.
78861         * m4/readdir.m4: Likewise.
78862         * m4/realloc.m4: Likewise.
78863         * m4/st_dm_mode.m4: Likewise.
78864         * m4/stat.m4: Likewise.
78865         * m4/utimbuf.m4: Likewise.
78866         * m4/utimes.m4: Likewise.
78867
78868         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78869         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78870         comments in config.h.in are meaningful.
78871
78872         * m4/jm-macros.m4: Require autoconf-2.13 here.
78873
78874         * m4/regex.m4: By default, don't use the included regex.c on systems
78875         with glibc 2.  Suggestion from Uli Drepper.
78876
78877 1999-01-02  Jim Meyering  <meyering@ascend.com>
78878
78879         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78880
78881 1998-12-18  Jim Meyering  <meyering@ascend.com>
78882
78883         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78884         Based on a suggestion from Lars Hecking.
78885
78886 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78887
78888         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78889
78890 1998-11-16  Jim Meyering  <meyering@ascend.com>
78891
78892         * m4/lfs.m4: Double-quote the `uname...` expression.
78893
78894 1998-11-14  Jim Meyering  <meyering@ascend.com>
78895
78896         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78897         * m4/stat.m4: Likewise.
78898
78899 1998-11-03  Jim Meyering  <meyering@ascend.com>
78900
78901         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78902         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78903
78904 1998-10-18  Jim Meyering  <meyering@ascend.com>
78905
78906         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78907
78908 1998-10-17  Jim Meyering  <meyering@ascend.com>
78909
78910         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78911         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78912         calls for those previously hard-coded headers.  Instead, take a new
78913         parameter.
78914         (jm_CHECK_DECLARATIONS): Reflect interface change.
78915         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78916         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78917
78918         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78919
78920 1998-10-14  Jim Meyering  <meyering@ascend.com>
78921
78922         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78923         instead of "TZ=America/Vancouver".  From Paul Eggert.
78924
78925 1998-10-11  Jim Meyering  <meyering@ascend.com>
78926
78927         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78928         This adds a test for a recently added compatibility fix for mktime.c.
78929         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78930
78931 1998-09-27  Jim Meyering  <meyering@ascend.com>
78932
78933         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78934
78935         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78936         ../configure.in, including a change from Gordon Matzigkeit to allow
78937         cross-compiling for the Hurd.
78938
78939         * m4/glibc.m4: New file/macro to test for the GNU C Library
78940         versions 1 and 2.  From Gordon Matzigkeit.
78941         Indent.
78942
78943 1998-09-21  Jim Meyering  <meyering@ascend.com>
78944
78945         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78946
78947 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78948
78949         Port nanosecond-resolution times to UnixWare 2.1.2 and
78950         pedantic Solaris 2.6.
78951
78952         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78953         AC_STRUCT_ST_MTIM.
78954         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78955         Generate name of ns member, instead of just 1 or undef.
78956         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78957
78958 1998-08-15  Jim Meyering  <meyering@ascend.com>
78959
78960         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78961         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78962         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78963         instead of jm_TYPE_SSIZE_T.
78964
78965 1998-08-12  Jim Meyering  <meyering@ascend.com>
78966
78967         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78968
78969 1998-08-02  Jim Meyering  <meyering@ascend.com>
78970
78971         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78972         in acconfig.h manually.
78973
78974 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78975
78976         * m4/st_mtim.m4: New file.
78977
78978 1998-07-28  Jim Meyering  <meyering@ascend.com>
78979
78980         * m4/utimes.m4: Undef stat.
78981
78982 1998-07-25  Jim Meyering  <meyering@ascend.com>
78983
78984         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78985         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78986
78987 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78988
78989         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78990         uid and gid actually remain unchanged.
78991
78992 1998-07-07  Jim Meyering  <meyering@ascend.com>
78993
78994         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78995
78996 1998-07-04  Jim Meyering  <meyering@ascend.com>
78997
78998         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78999         to prove that this macro can be used in packages without regex.c.
79000
79001 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79002
79003         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79004         is to be used.
79005
79006 1998-07-03  Jim Meyering  <meyering@ascend.com>
79007
79008         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79009
79010         * m4/gettext.m4: New file -- from gettext-0.10.35.
79011         * m4/lcmessage.m4: Likewise.
79012         * m4/progtest.m4: Likewise.
79013
79014         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79015         * m4/jm-macros.m4: Require the new macro.
79016
79017 1998-06-29  Jim Meyering  <meyering@ascend.com>
79018
79019         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79020         for the definition of NGROUPS (used in a system header included
79021         by sys/mount.h).
79022
79023 1998-06-28  Jim Meyering  <meyering@ascend.com>
79024
79025         * m4/ls-mntd-fs.m4: New file.
79026         * m4/fstypename.m4: New file.
79027
79028         * m4/jm-macros.m4: Require the new macro.
79029         * m4/jm-glibc-io.m4: New file.
79030
79031 1998-05-19  Jim Meyering  <meyering@ascend.com>
79032
79033         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79034         * m4/lchown.m4: New file.
79035
79036         * m4/Makefile.am.in: New file.
79037         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79038
79039 1998-05-14  Jim Meyering  <meyering@ascend.com>
79040
79041         * m4/Makefile.am (EXTRA_DIST): Add them.
79042         * m4/jm-macros.m4: New file.
79043         * m4/utimbuf.m4: New file.
79044
79045 1998-05-12  Jim Meyering  <meyering@ascend.com>
79046
79047         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79048
79049 1998-05-11  Jim Meyering  <meyering@ascend.com>
79050
79051         * m4/isc-posix.m4: New file.
79052
79053 1998-05-10  Jim Meyering  <meyering@ascend.com>
79054
79055         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79056
79057 1998-05-09  Jim Meyering  <meyering@ascend.com>
79058
79059         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79060         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79061         with automake.
79062
79063         * m4/ssize_t.m4: New file.
79064         * m4/mktime.m4: Remove file -- the new automake has this now.
79065
79066 1998-04-26  Jim Meyering  <meyering@ascend.com>
79067
79068         * m4/assert.m4: New file.
79069         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79070
79071 1998-04-05  Jim Meyering  <meyering@ascend.com>
79072
79073         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79074         (jm_PREREQ): Use it here.
79075
79076 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79077
79078         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79079         in acconfig.h.
79080
79081 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79082
79083         * m4/prereq.m4: New file.
79084         * m4/error.m4: New file.
79085         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79086
79087 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79088
79089         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79090         cache-check for the same variable -- that defeated the purpose of
79091         the test; the test program was never run.  This was a problem only
79092         on systems with losing getline functions -- HP-UX 10.20 is one.
79093         Reported by Bjorn Helgaas.
79094
79095 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79096
79097         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79098
79099 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79100
79101         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79102
79103         * m4/const.m4: New file.  Use an initializer in this declaration
79104         typedef int charset[2]; const charset x;
79105         Reported by Bob Glickstein.
79106
79107 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79108
79109         * m4/chown.m4: Fix reversed types on -1 args to chown.
79110         From Kaveh Ghazi.
79111
79112 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79113
79114         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79115         Add lseek and memchr.
79116
79117         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79118         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79119         have a 20-character limit on names.
79120
79121 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79122
79123         * m4/inttypes_h.m4: New file.
79124         * m4/uintmax_t.m4: New file.
79125         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79126
79127
79128         -----
79129
79130         Local Variables:
79131         coding: utf-8
79132         End:
79133
79134         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79135
79136         Copying and distribution of this file, with or without
79137         modification, are permitted provided the copyright notice
79138         and this notice are preserved.